define(['exports', '@jupyter-widgets/base'], (function (exports, base$4) { 'use strict';

	function getDefaultExportFromCjs (x) {
		return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
	}

	var react = {exports: {}};

	var react_production_min = {};

	/*
	object-assign
	(c) Sindre Sorhus
	@license MIT
	*/

	var objectAssign;
	var hasRequiredObjectAssign;

	function requireObjectAssign () {
		if (hasRequiredObjectAssign) return objectAssign;
		hasRequiredObjectAssign = 1;
		/* eslint-disable no-unused-vars */
		var getOwnPropertySymbols = Object.getOwnPropertySymbols;
		var hasOwnProperty = Object.prototype.hasOwnProperty;
		var propIsEnumerable = Object.prototype.propertyIsEnumerable;

		function toObject(val) {
			if (val === null || val === undefined) {
				throw new TypeError('Object.assign cannot be called with null or undefined');
			}

			return Object(val);
		}

		function shouldUseNative() {
			try {
				if (!Object.assign) {
					return false;
				}

				// Detect buggy property enumeration order in older V8 versions.

				// https://bugs.chromium.org/p/v8/issues/detail?id=4118
				var test1 = new String('abc');  // eslint-disable-line no-new-wrappers
				test1[5] = 'de';
				if (Object.getOwnPropertyNames(test1)[0] === '5') {
					return false;
				}

				// https://bugs.chromium.org/p/v8/issues/detail?id=3056
				var test2 = {};
				for (var i = 0; i < 10; i++) {
					test2['_' + String.fromCharCode(i)] = i;
				}
				var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
					return test2[n];
				});
				if (order2.join('') !== '0123456789') {
					return false;
				}

				// https://bugs.chromium.org/p/v8/issues/detail?id=3056
				var test3 = {};
				'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
					test3[letter] = letter;
				});
				if (Object.keys(Object.assign({}, test3)).join('') !==
						'abcdefghijklmnopqrst') {
					return false;
				}

				return true;
			} catch (err) {
				// We don't expect any of the above to throw, but better to be safe.
				return false;
			}
		}

		objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
			var from;
			var to = toObject(target);
			var symbols;

			for (var s = 1; s < arguments.length; s++) {
				from = Object(arguments[s]);

				for (var key in from) {
					if (hasOwnProperty.call(from, key)) {
						to[key] = from[key];
					}
				}

				if (getOwnPropertySymbols) {
					symbols = getOwnPropertySymbols(from);
					for (var i = 0; i < symbols.length; i++) {
						if (propIsEnumerable.call(from, symbols[i])) {
							to[symbols[i]] = from[symbols[i]];
						}
					}
				}
			}

			return to;
		};
		return objectAssign;
	}

	/** @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.
	 */

	var hasRequiredReact_production_min;

	function requireReact_production_min () {
		if (hasRequiredReact_production_min) return react_production_min;
		hasRequiredReact_production_min = 1;
	var l=requireObjectAssign(),n=60103,p=60106;react_production_min.Fragment=60107;react_production_min.StrictMode=60108;react_production_min.Profiler=60114;var q=60109,r=60110,t=60112;react_production_min.Suspense=60113;var u=60115,v=60116;
		if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element");p=w("react.portal");react_production_min.Fragment=w("react.fragment");react_production_min.StrictMode=w("react.strict_mode");react_production_min.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");react_production_min.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy");}var x="function"===typeof Symbol&&Symbol.iterator;
		function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return "function"===typeof a?a:null}function z(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
		var A={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState");};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
		function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}var F=E.prototype=new D;F.constructor=E;l(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
		function J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f;}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return {$$typeof:n,type:a,key:k,ref:h,props:d,_owner:G.current}}
		function K(a,b){return {$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return "object"===typeof a&&null!==a&&a.$$typeof===n}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
		function O(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0;}}if(h)return h=a,d=d(h),a=""===e?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
		0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d);}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
		function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b);},function(b){0===a._status&&(a._status=2,a._result=b);});}if(1===a._status)return a._result;throw a._result;}var R={current:null};function S(){var a=R.current;if(null===a)throw Error(z(321));return a}var T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};
		react_production_min.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments);},c);},count:function(a){var b=0;P(a,function(){b++;});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};react_production_min.Component=C;react_production_min.PureComponent=E;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
		react_production_min.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g;}return {$$typeof:n,type:a.type,
		key:d,ref:k,props:e,_owner:h}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};react_production_min.createElement=J;react_production_min.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};react_production_min.forwardRef=function(a){return {$$typeof:t,render:a}};react_production_min.isValidElement=L;
		react_production_min.lazy=function(a){return {$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};react_production_min.memo=function(a,b){return {$$typeof:u,type:a,compare:void 0===b?null:b}};react_production_min.useCallback=function(a,b){return S().useCallback(a,b)};react_production_min.useContext=function(a,b){return S().useContext(a,b)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(a,b){return S().useEffect(a,b)};react_production_min.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};
		react_production_min.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return S().useMemo(a,b)};react_production_min.useReducer=function(a,b,c){return S().useReducer(a,b,c)};react_production_min.useRef=function(a){return S().useRef(a)};react_production_min.useState=function(a){return S().useState(a)};react_production_min.version="17.0.2";
		return react_production_min;
	}

	var react_development = {};

	/** @license React v17.0.2
	 * react.development.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.
	 */

	var hasRequiredReact_development;

	function requireReact_development () {
		if (hasRequiredReact_development) return react_development;
		hasRequiredReact_development = 1;
		(function (exports) {

			if (process.env.NODE_ENV !== "production") {
			  (function() {

			var _assign = requireObjectAssign();

			// TODO: this is special because it gets imported during build.
			var ReactVersion = '17.0.2';

			// ATTENTION
			// When adding new symbols to this file,
			// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
			// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
			// nor polyfill, then a plain number is used for performance.
			var REACT_ELEMENT_TYPE = 0xeac7;
			var REACT_PORTAL_TYPE = 0xeaca;
			exports.Fragment = 0xeacb;
			exports.StrictMode = 0xeacc;
			exports.Profiler = 0xead2;
			var REACT_PROVIDER_TYPE = 0xeacd;
			var REACT_CONTEXT_TYPE = 0xeace;
			var REACT_FORWARD_REF_TYPE = 0xead0;
			exports.Suspense = 0xead1;
			var REACT_SUSPENSE_LIST_TYPE = 0xead8;
			var REACT_MEMO_TYPE = 0xead3;
			var REACT_LAZY_TYPE = 0xead4;
			var REACT_BLOCK_TYPE = 0xead9;
			var REACT_SERVER_BLOCK_TYPE = 0xeada;
			var REACT_FUNDAMENTAL_TYPE = 0xead5;
			var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
			var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

			if (typeof Symbol === 'function' && Symbol.for) {
			  var symbolFor = Symbol.for;
			  REACT_ELEMENT_TYPE = symbolFor('react.element');
			  REACT_PORTAL_TYPE = symbolFor('react.portal');
			  exports.Fragment = symbolFor('react.fragment');
			  exports.StrictMode = symbolFor('react.strict_mode');
			  exports.Profiler = symbolFor('react.profiler');
			  REACT_PROVIDER_TYPE = symbolFor('react.provider');
			  REACT_CONTEXT_TYPE = symbolFor('react.context');
			  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
			  exports.Suspense = symbolFor('react.suspense');
			  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
			  REACT_MEMO_TYPE = symbolFor('react.memo');
			  REACT_LAZY_TYPE = symbolFor('react.lazy');
			  REACT_BLOCK_TYPE = symbolFor('react.block');
			  REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
			  REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
			  symbolFor('react.scope');
			  symbolFor('react.opaque.id');
			  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
			  symbolFor('react.offscreen');
			  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
			}

			var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
			var FAUX_ITERATOR_SYMBOL = '@@iterator';
			function getIteratorFn(maybeIterable) {
			  if (maybeIterable === null || typeof maybeIterable !== 'object') {
			    return null;
			  }

			  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

			  if (typeof maybeIterator === 'function') {
			    return maybeIterator;
			  }

			  return null;
			}

			/**
			 * Keeps track of the current dispatcher.
			 */
			var ReactCurrentDispatcher = {
			  /**
			   * @internal
			   * @type {ReactComponent}
			   */
			  current: null
			};

			/**
			 * Keeps track of the current batch's configuration such as how long an update
			 * should suspend for if it needs to.
			 */
			var ReactCurrentBatchConfig = {
			  transition: 0
			};

			/**
			 * Keeps track of the current owner.
			 *
			 * The current owner is the component who should own any components that are
			 * currently being constructed.
			 */
			var ReactCurrentOwner = {
			  /**
			   * @internal
			   * @type {ReactComponent}
			   */
			  current: null
			};

			var ReactDebugCurrentFrame = {};
			var currentExtraStackFrame = null;
			function setExtraStackFrame(stack) {
			  {
			    currentExtraStackFrame = stack;
			  }
			}

			{
			  ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
			    {
			      currentExtraStackFrame = stack;
			    }
			  }; // Stack implementation injected by the current renderer.


			  ReactDebugCurrentFrame.getCurrentStack = null;

			  ReactDebugCurrentFrame.getStackAddendum = function () {
			    var stack = ''; // Add an extra top frame while an element is being validated

			    if (currentExtraStackFrame) {
			      stack += currentExtraStackFrame;
			    } // Delegate to the injected renderer-specific implementation


			    var impl = ReactDebugCurrentFrame.getCurrentStack;

			    if (impl) {
			      stack += impl() || '';
			    }

			    return stack;
			  };
			}

			/**
			 * Used by act() to track whether you're inside an act() scope.
			 */
			var IsSomeRendererActing = {
			  current: false
			};

			var ReactSharedInternals = {
			  ReactCurrentDispatcher: ReactCurrentDispatcher,
			  ReactCurrentBatchConfig: ReactCurrentBatchConfig,
			  ReactCurrentOwner: ReactCurrentOwner,
			  IsSomeRendererActing: IsSomeRendererActing,
			  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
			  assign: _assign
			};

			{
			  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
			}

			// by calls to these methods by a Babel plugin.
			//
			// In PROD (or in packages without access to React internals),
			// they are left as they are instead.

			function warn(format) {
			  {
			    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
			      args[_key - 1] = arguments[_key];
			    }

			    printWarning('warn', format, args);
			  }
			}
			function error(format) {
			  {
			    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
			      args[_key2 - 1] = arguments[_key2];
			    }

			    printWarning('error', format, args);
			  }
			}

			function printWarning(level, format, args) {
			  // When changing this logic, you might want to also
			  // update consoleWithStackDev.www.js as well.
			  {
			    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
			    var stack = ReactDebugCurrentFrame.getStackAddendum();

			    if (stack !== '') {
			      format += '%s';
			      args = args.concat([stack]);
			    }

			    var argsWithFormat = args.map(function (item) {
			      return '' + item;
			    }); // Careful: RN currently depends on this prefix

			    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
			    // breaks IE9: https://github.com/facebook/react/issues/13610
			    // eslint-disable-next-line react-internal/no-production-logging

			    Function.prototype.apply.call(console[level], console, argsWithFormat);
			  }
			}

			var didWarnStateUpdateForUnmountedComponent = {};

			function warnNoop(publicInstance, callerName) {
			  {
			    var _constructor = publicInstance.constructor;
			    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
			    var warningKey = componentName + "." + callerName;

			    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
			      return;
			    }

			    error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);

			    didWarnStateUpdateForUnmountedComponent[warningKey] = true;
			  }
			}
			/**
			 * This is the abstract API for an update queue.
			 */


			var ReactNoopUpdateQueue = {
			  /**
			   * Checks whether or not this composite component is mounted.
			   * @param {ReactClass} publicInstance The instance we want to test.
			   * @return {boolean} True if mounted, false otherwise.
			   * @protected
			   * @final
			   */
			  isMounted: function (publicInstance) {
			    return false;
			  },

			  /**
			   * Forces an update. This should only be invoked when it is known with
			   * certainty that we are **not** in a DOM transaction.
			   *
			   * You may want to call this when you know that some deeper aspect of the
			   * component's state has changed but `setState` was not called.
			   *
			   * This will not invoke `shouldComponentUpdate`, but it will invoke
			   * `componentWillUpdate` and `componentDidUpdate`.
			   *
			   * @param {ReactClass} publicInstance The instance that should rerender.
			   * @param {?function} callback Called after component is updated.
			   * @param {?string} callerName name of the calling function in the public API.
			   * @internal
			   */
			  enqueueForceUpdate: function (publicInstance, callback, callerName) {
			    warnNoop(publicInstance, 'forceUpdate');
			  },

			  /**
			   * Replaces all of the state. Always use this or `setState` to mutate state.
			   * You should treat `this.state` as immutable.
			   *
			   * There is no guarantee that `this.state` will be immediately updated, so
			   * accessing `this.state` after calling this method may return the old value.
			   *
			   * @param {ReactClass} publicInstance The instance that should rerender.
			   * @param {object} completeState Next state.
			   * @param {?function} callback Called after component is updated.
			   * @param {?string} callerName name of the calling function in the public API.
			   * @internal
			   */
			  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
			    warnNoop(publicInstance, 'replaceState');
			  },

			  /**
			   * Sets a subset of the state. This only exists because _pendingState is
			   * internal. This provides a merging strategy that is not available to deep
			   * properties which is confusing. TODO: Expose pendingState or don't use it
			   * during the merge.
			   *
			   * @param {ReactClass} publicInstance The instance that should rerender.
			   * @param {object} partialState Next partial state to be merged with state.
			   * @param {?function} callback Called after component is updated.
			   * @param {?string} Name of the calling function in the public API.
			   * @internal
			   */
			  enqueueSetState: function (publicInstance, partialState, callback, callerName) {
			    warnNoop(publicInstance, 'setState');
			  }
			};

			var emptyObject = {};

			{
			  Object.freeze(emptyObject);
			}
			/**
			 * Base class helpers for the updating state of a component.
			 */


			function Component(props, context, updater) {
			  this.props = props;
			  this.context = context; // If a component has string refs, we will assign a different object later.

			  this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
			  // renderer.

			  this.updater = updater || ReactNoopUpdateQueue;
			}

			Component.prototype.isReactComponent = {};
			/**
			 * Sets a subset of the state. Always use this to mutate
			 * state. You should treat `this.state` as immutable.
			 *
			 * There is no guarantee that `this.state` will be immediately updated, so
			 * accessing `this.state` after calling this method may return the old value.
			 *
			 * There is no guarantee that calls to `setState` will run synchronously,
			 * as they may eventually be batched together.  You can provide an optional
			 * callback that will be executed when the call to setState is actually
			 * completed.
			 *
			 * When a function is provided to setState, it will be called at some point in
			 * the future (not synchronously). It will be called with the up to date
			 * component arguments (state, props, context). These values can be different
			 * from this.* because your function may be called after receiveProps but before
			 * shouldComponentUpdate, and this new state, props, and context will not yet be
			 * assigned to this.
			 *
			 * @param {object|function} partialState Next partial state or function to
			 *        produce next partial state to be merged with current state.
			 * @param {?function} callback Called after state is updated.
			 * @final
			 * @protected
			 */

			Component.prototype.setState = function (partialState, callback) {
			  if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
			    {
			      throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
			    }
			  }

			  this.updater.enqueueSetState(this, partialState, callback, 'setState');
			};
			/**
			 * Forces an update. This should only be invoked when it is known with
			 * certainty that we are **not** in a DOM transaction.
			 *
			 * You may want to call this when you know that some deeper aspect of the
			 * component's state has changed but `setState` was not called.
			 *
			 * This will not invoke `shouldComponentUpdate`, but it will invoke
			 * `componentWillUpdate` and `componentDidUpdate`.
			 *
			 * @param {?function} callback Called after update is complete.
			 * @final
			 * @protected
			 */


			Component.prototype.forceUpdate = function (callback) {
			  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
			};
			/**
			 * Deprecated APIs. These APIs used to exist on classic React classes but since
			 * we would like to deprecate them, we're not going to move them over to this
			 * modern base class. Instead, we define a getter that warns if it's accessed.
			 */


			{
			  var deprecatedAPIs = {
			    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
			    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
			  };

			  var defineDeprecationWarning = function (methodName, info) {
			    Object.defineProperty(Component.prototype, methodName, {
			      get: function () {
			        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);

			        return undefined;
			      }
			    });
			  };

			  for (var fnName in deprecatedAPIs) {
			    if (deprecatedAPIs.hasOwnProperty(fnName)) {
			      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
			    }
			  }
			}

			function ComponentDummy() {}

			ComponentDummy.prototype = Component.prototype;
			/**
			 * Convenience component with default shallow equality check for sCU.
			 */

			function PureComponent(props, context, updater) {
			  this.props = props;
			  this.context = context; // If a component has string refs, we will assign a different object later.

			  this.refs = emptyObject;
			  this.updater = updater || ReactNoopUpdateQueue;
			}

			var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
			pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.

			_assign(pureComponentPrototype, Component.prototype);

			pureComponentPrototype.isPureReactComponent = true;

			// an immutable object with a single mutable value
			function createRef() {
			  var refObject = {
			    current: null
			  };

			  {
			    Object.seal(refObject);
			  }

			  return refObject;
			}

			function getWrappedName(outerType, innerType, wrapperName) {
			  var functionName = innerType.displayName || innerType.name || '';
			  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
			}

			function getContextName(type) {
			  return type.displayName || 'Context';
			}

			function getComponentName(type) {
			  if (type == null) {
			    // Host root, text node or just invalid type.
			    return null;
			  }

			  {
			    if (typeof type.tag === 'number') {
			      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
			    }
			  }

			  if (typeof type === 'function') {
			    return type.displayName || type.name || null;
			  }

			  if (typeof type === 'string') {
			    return type;
			  }

			  switch (type) {
			    case exports.Fragment:
			      return 'Fragment';

			    case REACT_PORTAL_TYPE:
			      return 'Portal';

			    case exports.Profiler:
			      return 'Profiler';

			    case exports.StrictMode:
			      return 'StrictMode';

			    case exports.Suspense:
			      return 'Suspense';

			    case REACT_SUSPENSE_LIST_TYPE:
			      return 'SuspenseList';
			  }

			  if (typeof type === 'object') {
			    switch (type.$$typeof) {
			      case REACT_CONTEXT_TYPE:
			        var context = type;
			        return getContextName(context) + '.Consumer';

			      case REACT_PROVIDER_TYPE:
			        var provider = type;
			        return getContextName(provider._context) + '.Provider';

			      case REACT_FORWARD_REF_TYPE:
			        return getWrappedName(type, type.render, 'ForwardRef');

			      case REACT_MEMO_TYPE:
			        return getComponentName(type.type);

			      case REACT_BLOCK_TYPE:
			        return getComponentName(type._render);

			      case REACT_LAZY_TYPE:
			        {
			          var lazyComponent = type;
			          var payload = lazyComponent._payload;
			          var init = lazyComponent._init;

			          try {
			            return getComponentName(init(payload));
			          } catch (x) {
			            return null;
			          }
			        }
			    }
			  }

			  return null;
			}

			var hasOwnProperty = Object.prototype.hasOwnProperty;
			var RESERVED_PROPS = {
			  key: true,
			  ref: true,
			  __self: true,
			  __source: true
			};
			var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;

			{
			  didWarnAboutStringRefs = {};
			}

			function hasValidRef(config) {
			  {
			    if (hasOwnProperty.call(config, 'ref')) {
			      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;

			      if (getter && getter.isReactWarning) {
			        return false;
			      }
			    }
			  }

			  return config.ref !== undefined;
			}

			function hasValidKey(config) {
			  {
			    if (hasOwnProperty.call(config, 'key')) {
			      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;

			      if (getter && getter.isReactWarning) {
			        return false;
			      }
			    }
			  }

			  return config.key !== undefined;
			}

			function defineKeyPropWarningGetter(props, displayName) {
			  var warnAboutAccessingKey = function () {
			    {
			      if (!specialPropKeyWarningShown) {
			        specialPropKeyWarningShown = true;

			        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
			      }
			    }
			  };

			  warnAboutAccessingKey.isReactWarning = true;
			  Object.defineProperty(props, 'key', {
			    get: warnAboutAccessingKey,
			    configurable: true
			  });
			}

			function defineRefPropWarningGetter(props, displayName) {
			  var warnAboutAccessingRef = function () {
			    {
			      if (!specialPropRefWarningShown) {
			        specialPropRefWarningShown = true;

			        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
			      }
			    }
			  };

			  warnAboutAccessingRef.isReactWarning = true;
			  Object.defineProperty(props, 'ref', {
			    get: warnAboutAccessingRef,
			    configurable: true
			  });
			}

			function warnIfStringRefCannotBeAutoConverted(config) {
			  {
			    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
			      var componentName = getComponentName(ReactCurrentOwner.current.type);

			      if (!didWarnAboutStringRefs[componentName]) {
			        error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);

			        didWarnAboutStringRefs[componentName] = true;
			      }
			    }
			  }
			}
			/**
			 * Factory method to create a new React element. This no longer adheres to
			 * the class pattern, so do not use new to call it. Also, instanceof check
			 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
			 * if something is a React Element.
			 *
			 * @param {*} type
			 * @param {*} props
			 * @param {*} key
			 * @param {string|object} ref
			 * @param {*} owner
			 * @param {*} self A *temporary* helper to detect places where `this` is
			 * different from the `owner` when React.createElement is called, so that we
			 * can warn. We want to get rid of owner and replace string `ref`s with arrow
			 * functions, and as long as `this` and owner are the same, there will be no
			 * change in behavior.
			 * @param {*} source An annotation object (added by a transpiler or otherwise)
			 * indicating filename, line number, and/or other information.
			 * @internal
			 */


			var ReactElement = function (type, key, ref, self, source, owner, props) {
			  var element = {
			    // This tag allows us to uniquely identify this as a React Element
			    $$typeof: REACT_ELEMENT_TYPE,
			    // Built-in properties that belong on the element
			    type: type,
			    key: key,
			    ref: ref,
			    props: props,
			    // Record the component responsible for creating this element.
			    _owner: owner
			  };

			  {
			    // The validation flag is currently mutative. We put it on
			    // an external backing store so that we can freeze the whole object.
			    // This can be replaced with a WeakMap once they are implemented in
			    // commonly used development environments.
			    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
			    // the validation flag non-enumerable (where possible, which should
			    // include every environment we run tests in), so the test framework
			    // ignores it.

			    Object.defineProperty(element._store, 'validated', {
			      configurable: false,
			      enumerable: false,
			      writable: true,
			      value: false
			    }); // self and source are DEV only properties.

			    Object.defineProperty(element, '_self', {
			      configurable: false,
			      enumerable: false,
			      writable: false,
			      value: self
			    }); // Two elements created in two different places should be considered
			    // equal for testing purposes and therefore we hide it from enumeration.

			    Object.defineProperty(element, '_source', {
			      configurable: false,
			      enumerable: false,
			      writable: false,
			      value: source
			    });

			    if (Object.freeze) {
			      Object.freeze(element.props);
			      Object.freeze(element);
			    }
			  }

			  return element;
			};
			/**
			 * Create and return a new ReactElement of the given type.
			 * See https://reactjs.org/docs/react-api.html#createelement
			 */

			function createElement(type, config, children) {
			  var propName; // Reserved names are extracted

			  var props = {};
			  var key = null;
			  var ref = null;
			  var self = null;
			  var source = null;

			  if (config != null) {
			    if (hasValidRef(config)) {
			      ref = config.ref;

			      {
			        warnIfStringRefCannotBeAutoConverted(config);
			      }
			    }

			    if (hasValidKey(config)) {
			      key = '' + config.key;
			    }

			    self = config.__self === undefined ? null : config.__self;
			    source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object

			    for (propName in config) {
			      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
			        props[propName] = config[propName];
			      }
			    }
			  } // Children can be more than one argument, and those are transferred onto
			  // the newly allocated props object.


			  var childrenLength = arguments.length - 2;

			  if (childrenLength === 1) {
			    props.children = children;
			  } else if (childrenLength > 1) {
			    var childArray = Array(childrenLength);

			    for (var i = 0; i < childrenLength; i++) {
			      childArray[i] = arguments[i + 2];
			    }

			    {
			      if (Object.freeze) {
			        Object.freeze(childArray);
			      }
			    }

			    props.children = childArray;
			  } // Resolve default props


			  if (type && type.defaultProps) {
			    var defaultProps = type.defaultProps;

			    for (propName in defaultProps) {
			      if (props[propName] === undefined) {
			        props[propName] = defaultProps[propName];
			      }
			    }
			  }

			  {
			    if (key || ref) {
			      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;

			      if (key) {
			        defineKeyPropWarningGetter(props, displayName);
			      }

			      if (ref) {
			        defineRefPropWarningGetter(props, displayName);
			      }
			    }
			  }

			  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
			}
			function cloneAndReplaceKey(oldElement, newKey) {
			  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
			  return newElement;
			}
			/**
			 * Clone and return a new ReactElement using element as the starting point.
			 * See https://reactjs.org/docs/react-api.html#cloneelement
			 */

			function cloneElement(element, config, children) {
			  if (!!(element === null || element === undefined)) {
			    {
			      throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
			    }
			  }

			  var propName; // Original props are copied

			  var props = _assign({}, element.props); // Reserved names are extracted


			  var key = element.key;
			  var ref = element.ref; // Self is preserved since the owner is preserved.

			  var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
			  // transpiler, and the original source is probably a better indicator of the
			  // true owner.

			  var source = element._source; // Owner will be preserved, unless ref is overridden

			  var owner = element._owner;

			  if (config != null) {
			    if (hasValidRef(config)) {
			      // Silently steal the ref from the parent.
			      ref = config.ref;
			      owner = ReactCurrentOwner.current;
			    }

			    if (hasValidKey(config)) {
			      key = '' + config.key;
			    } // Remaining properties override existing props


			    var defaultProps;

			    if (element.type && element.type.defaultProps) {
			      defaultProps = element.type.defaultProps;
			    }

			    for (propName in config) {
			      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
			        if (config[propName] === undefined && defaultProps !== undefined) {
			          // Resolve default props
			          props[propName] = defaultProps[propName];
			        } else {
			          props[propName] = config[propName];
			        }
			      }
			    }
			  } // Children can be more than one argument, and those are transferred onto
			  // the newly allocated props object.


			  var childrenLength = arguments.length - 2;

			  if (childrenLength === 1) {
			    props.children = children;
			  } else if (childrenLength > 1) {
			    var childArray = Array(childrenLength);

			    for (var i = 0; i < childrenLength; i++) {
			      childArray[i] = arguments[i + 2];
			    }

			    props.children = childArray;
			  }

			  return ReactElement(element.type, key, ref, self, source, owner, props);
			}
			/**
			 * Verifies the object is a ReactElement.
			 * See https://reactjs.org/docs/react-api.html#isvalidelement
			 * @param {?object} object
			 * @return {boolean} True if `object` is a ReactElement.
			 * @final
			 */

			function isValidElement(object) {
			  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
			}

			var SEPARATOR = '.';
			var SUBSEPARATOR = ':';
			/**
			 * Escape and wrap key so it is safe to use as a reactid
			 *
			 * @param {string} key to be escaped.
			 * @return {string} the escaped key.
			 */

			function escape(key) {
			  var escapeRegex = /[=:]/g;
			  var escaperLookup = {
			    '=': '=0',
			    ':': '=2'
			  };
			  var escapedString = key.replace(escapeRegex, function (match) {
			    return escaperLookup[match];
			  });
			  return '$' + escapedString;
			}
			/**
			 * TODO: Test that a single child and an array with one item have the same key
			 * pattern.
			 */


			var didWarnAboutMaps = false;
			var userProvidedKeyEscapeRegex = /\/+/g;

			function escapeUserProvidedKey(text) {
			  return text.replace(userProvidedKeyEscapeRegex, '$&/');
			}
			/**
			 * Generate a key string that identifies a element within a set.
			 *
			 * @param {*} element A element that could contain a manual key.
			 * @param {number} index Index that is used if a manual key is not provided.
			 * @return {string}
			 */


			function getElementKey(element, index) {
			  // Do some typechecking here since we call this blindly. We want to ensure
			  // that we don't block potential future ES APIs.
			  if (typeof element === 'object' && element !== null && element.key != null) {
			    // Explicit key
			    return escape('' + element.key);
			  } // Implicit key determined by the index in the set


			  return index.toString(36);
			}

			function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
			  var type = typeof children;

			  if (type === 'undefined' || type === 'boolean') {
			    // All of the above are perceived as null.
			    children = null;
			  }

			  var invokeCallback = false;

			  if (children === null) {
			    invokeCallback = true;
			  } else {
			    switch (type) {
			      case 'string':
			      case 'number':
			        invokeCallback = true;
			        break;

			      case 'object':
			        switch (children.$$typeof) {
			          case REACT_ELEMENT_TYPE:
			          case REACT_PORTAL_TYPE:
			            invokeCallback = true;
			        }

			    }
			  }

			  if (invokeCallback) {
			    var _child = children;
			    var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
			    // so that it's consistent if the number of children grows:

			    var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;

			    if (Array.isArray(mappedChild)) {
			      var escapedChildKey = '';

			      if (childKey != null) {
			        escapedChildKey = escapeUserProvidedKey(childKey) + '/';
			      }

			      mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
			        return c;
			      });
			    } else if (mappedChild != null) {
			      if (isValidElement(mappedChild)) {
			        mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
			        // traverseAllChildren used to do for objects as children
			        escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
			        mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
			        escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
			      }

			      array.push(mappedChild);
			    }

			    return 1;
			  }

			  var child;
			  var nextName;
			  var subtreeCount = 0; // Count of children found in the current subtree.

			  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;

			  if (Array.isArray(children)) {
			    for (var i = 0; i < children.length; i++) {
			      child = children[i];
			      nextName = nextNamePrefix + getElementKey(child, i);
			      subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
			    }
			  } else {
			    var iteratorFn = getIteratorFn(children);

			    if (typeof iteratorFn === 'function') {
			      var iterableChildren = children;

			      {
			        // Warn about using Maps as children
			        if (iteratorFn === iterableChildren.entries) {
			          if (!didWarnAboutMaps) {
			            warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
			          }

			          didWarnAboutMaps = true;
			        }
			      }

			      var iterator = iteratorFn.call(iterableChildren);
			      var step;
			      var ii = 0;

			      while (!(step = iterator.next()).done) {
			        child = step.value;
			        nextName = nextNamePrefix + getElementKey(child, ii++);
			        subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
			      }
			    } else if (type === 'object') {
			      var childrenString = '' + children;

			      {
			        {
			          throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead." );
			        }
			      }
			    }
			  }

			  return subtreeCount;
			}

			/**
			 * Maps children that are typically specified as `props.children`.
			 *
			 * See https://reactjs.org/docs/react-api.html#reactchildrenmap
			 *
			 * The provided mapFunction(child, index) will be called for each
			 * leaf child.
			 *
			 * @param {?*} children Children tree container.
			 * @param {function(*, int)} func The map function.
			 * @param {*} context Context for mapFunction.
			 * @return {object} Object containing the ordered map of results.
			 */
			function mapChildren(children, func, context) {
			  if (children == null) {
			    return children;
			  }

			  var result = [];
			  var count = 0;
			  mapIntoArray(children, result, '', '', function (child) {
			    return func.call(context, child, count++);
			  });
			  return result;
			}
			/**
			 * Count the number of children that are typically specified as
			 * `props.children`.
			 *
			 * See https://reactjs.org/docs/react-api.html#reactchildrencount
			 *
			 * @param {?*} children Children tree container.
			 * @return {number} The number of children.
			 */


			function countChildren(children) {
			  var n = 0;
			  mapChildren(children, function () {
			    n++; // Don't return anything
			  });
			  return n;
			}

			/**
			 * Iterates through children that are typically specified as `props.children`.
			 *
			 * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
			 *
			 * The provided forEachFunc(child, index) will be called for each
			 * leaf child.
			 *
			 * @param {?*} children Children tree container.
			 * @param {function(*, int)} forEachFunc
			 * @param {*} forEachContext Context for forEachContext.
			 */
			function forEachChildren(children, forEachFunc, forEachContext) {
			  mapChildren(children, function () {
			    forEachFunc.apply(this, arguments); // Don't return anything.
			  }, forEachContext);
			}
			/**
			 * Flatten a children object (typically specified as `props.children`) and
			 * return an array with appropriately re-keyed children.
			 *
			 * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
			 */


			function toArray(children) {
			  return mapChildren(children, function (child) {
			    return child;
			  }) || [];
			}
			/**
			 * Returns the first child in a collection of children and verifies that there
			 * is only one child in the collection.
			 *
			 * See https://reactjs.org/docs/react-api.html#reactchildrenonly
			 *
			 * The current implementation of this function assumes that a single child gets
			 * passed without a wrapper, but the purpose of this helper function is to
			 * abstract away the particular structure of children.
			 *
			 * @param {?object} children Child collection structure.
			 * @return {ReactElement} The first and only `ReactElement` contained in the
			 * structure.
			 */


			function onlyChild(children) {
			  if (!isValidElement(children)) {
			    {
			      throw Error( "React.Children.only expected to receive a single React element child." );
			    }
			  }

			  return children;
			}

			function createContext(defaultValue, calculateChangedBits) {
			  if (calculateChangedBits === undefined) {
			    calculateChangedBits = null;
			  } else {
			    {
			      if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
			        error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
			      }
			    }
			  }

			  var context = {
			    $$typeof: REACT_CONTEXT_TYPE,
			    _calculateChangedBits: calculateChangedBits,
			    // As a workaround to support multiple concurrent renderers, we categorize
			    // some renderers as primary and others as secondary. We only expect
			    // there to be two concurrent renderers at most: React Native (primary) and
			    // Fabric (secondary); React DOM (primary) and React ART (secondary).
			    // Secondary renderers store their context values on separate fields.
			    _currentValue: defaultValue,
			    _currentValue2: defaultValue,
			    // Used to track how many concurrent renderers this context currently
			    // supports within in a single renderer. Such as parallel server rendering.
			    _threadCount: 0,
			    // These are circular
			    Provider: null,
			    Consumer: null
			  };
			  context.Provider = {
			    $$typeof: REACT_PROVIDER_TYPE,
			    _context: context
			  };
			  var hasWarnedAboutUsingNestedContextConsumers = false;
			  var hasWarnedAboutUsingConsumerProvider = false;
			  var hasWarnedAboutDisplayNameOnConsumer = false;

			  {
			    // A separate object, but proxies back to the original context object for
			    // backwards compatibility. It has a different $$typeof, so we can properly
			    // warn for the incorrect usage of Context as a Consumer.
			    var Consumer = {
			      $$typeof: REACT_CONTEXT_TYPE,
			      _context: context,
			      _calculateChangedBits: context._calculateChangedBits
			    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here

			    Object.defineProperties(Consumer, {
			      Provider: {
			        get: function () {
			          if (!hasWarnedAboutUsingConsumerProvider) {
			            hasWarnedAboutUsingConsumerProvider = true;

			            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
			          }

			          return context.Provider;
			        },
			        set: function (_Provider) {
			          context.Provider = _Provider;
			        }
			      },
			      _currentValue: {
			        get: function () {
			          return context._currentValue;
			        },
			        set: function (_currentValue) {
			          context._currentValue = _currentValue;
			        }
			      },
			      _currentValue2: {
			        get: function () {
			          return context._currentValue2;
			        },
			        set: function (_currentValue2) {
			          context._currentValue2 = _currentValue2;
			        }
			      },
			      _threadCount: {
			        get: function () {
			          return context._threadCount;
			        },
			        set: function (_threadCount) {
			          context._threadCount = _threadCount;
			        }
			      },
			      Consumer: {
			        get: function () {
			          if (!hasWarnedAboutUsingNestedContextConsumers) {
			            hasWarnedAboutUsingNestedContextConsumers = true;

			            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
			          }

			          return context.Consumer;
			        }
			      },
			      displayName: {
			        get: function () {
			          return context.displayName;
			        },
			        set: function (displayName) {
			          if (!hasWarnedAboutDisplayNameOnConsumer) {
			            warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);

			            hasWarnedAboutDisplayNameOnConsumer = true;
			          }
			        }
			      }
			    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty

			    context.Consumer = Consumer;
			  }

			  {
			    context._currentRenderer = null;
			    context._currentRenderer2 = null;
			  }

			  return context;
			}

			var Uninitialized = -1;
			var Pending = 0;
			var Resolved = 1;
			var Rejected = 2;

			function lazyInitializer(payload) {
			  if (payload._status === Uninitialized) {
			    var ctor = payload._result;
			    var thenable = ctor(); // Transition to the next state.

			    var pending = payload;
			    pending._status = Pending;
			    pending._result = thenable;
			    thenable.then(function (moduleObject) {
			      if (payload._status === Pending) {
			        var defaultExport = moduleObject.default;

			        {
			          if (defaultExport === undefined) {
			            error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + // Break up imports to avoid accidentally parsing them as dependencies.
			            'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
			          }
			        } // Transition to the next state.


			        var resolved = payload;
			        resolved._status = Resolved;
			        resolved._result = defaultExport;
			      }
			    }, function (error) {
			      if (payload._status === Pending) {
			        // Transition to the next state.
			        var rejected = payload;
			        rejected._status = Rejected;
			        rejected._result = error;
			      }
			    });
			  }

			  if (payload._status === Resolved) {
			    return payload._result;
			  } else {
			    throw payload._result;
			  }
			}

			function lazy(ctor) {
			  var payload = {
			    // We use these fields to store the result.
			    _status: -1,
			    _result: ctor
			  };
			  var lazyType = {
			    $$typeof: REACT_LAZY_TYPE,
			    _payload: payload,
			    _init: lazyInitializer
			  };

			  {
			    // In production, this would just set it on the object.
			    var defaultProps;
			    var propTypes; // $FlowFixMe

			    Object.defineProperties(lazyType, {
			      defaultProps: {
			        configurable: true,
			        get: function () {
			          return defaultProps;
			        },
			        set: function (newDefaultProps) {
			          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

			          defaultProps = newDefaultProps; // Match production behavior more closely:
			          // $FlowFixMe

			          Object.defineProperty(lazyType, 'defaultProps', {
			            enumerable: true
			          });
			        }
			      },
			      propTypes: {
			        configurable: true,
			        get: function () {
			          return propTypes;
			        },
			        set: function (newPropTypes) {
			          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

			          propTypes = newPropTypes; // Match production behavior more closely:
			          // $FlowFixMe

			          Object.defineProperty(lazyType, 'propTypes', {
			            enumerable: true
			          });
			        }
			      }
			    });
			  }

			  return lazyType;
			}

			function forwardRef(render) {
			  {
			    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
			      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
			    } else if (typeof render !== 'function') {
			      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
			    } else {
			      if (render.length !== 0 && render.length !== 2) {
			        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
			      }
			    }

			    if (render != null) {
			      if (render.defaultProps != null || render.propTypes != null) {
			        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
			      }
			    }
			  }

			  var elementType = {
			    $$typeof: REACT_FORWARD_REF_TYPE,
			    render: render
			  };

			  {
			    var ownName;
			    Object.defineProperty(elementType, 'displayName', {
			      enumerable: false,
			      configurable: true,
			      get: function () {
			        return ownName;
			      },
			      set: function (name) {
			        ownName = name;

			        if (render.displayName == null) {
			          render.displayName = name;
			        }
			      }
			    });
			  }

			  return elementType;
			}

			// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

			var enableScopeAPI = false; // Experimental Create Event Handle API.

			function isValidElementType(type) {
			  if (typeof type === 'string' || typeof type === 'function') {
			    return true;
			  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).


			  if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
			    return true;
			  }

			  if (typeof type === 'object' && type !== null) {
			    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
			      return true;
			    }
			  }

			  return false;
			}

			function memo(type, compare) {
			  {
			    if (!isValidElementType(type)) {
			      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
			    }
			  }

			  var elementType = {
			    $$typeof: REACT_MEMO_TYPE,
			    type: type,
			    compare: compare === undefined ? null : compare
			  };

			  {
			    var ownName;
			    Object.defineProperty(elementType, 'displayName', {
			      enumerable: false,
			      configurable: true,
			      get: function () {
			        return ownName;
			      },
			      set: function (name) {
			        ownName = name;

			        if (type.displayName == null) {
			          type.displayName = name;
			        }
			      }
			    });
			  }

			  return elementType;
			}

			function resolveDispatcher() {
			  var dispatcher = ReactCurrentDispatcher.current;

			  if (!(dispatcher !== null)) {
			    {
			      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
			    }
			  }

			  return dispatcher;
			}

			function useContext(Context, unstable_observedBits) {
			  var dispatcher = resolveDispatcher();

			  {
			    if (unstable_observedBits !== undefined) {
			      error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
			    } // TODO: add a more generic warning for invalid values.


			    if (Context._context !== undefined) {
			      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
			      // and nobody should be using this in existing code.

			      if (realContext.Consumer === Context) {
			        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
			      } else if (realContext.Provider === Context) {
			        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
			      }
			    }
			  }

			  return dispatcher.useContext(Context, unstable_observedBits);
			}
			function useState(initialState) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useState(initialState);
			}
			function useReducer(reducer, initialArg, init) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useReducer(reducer, initialArg, init);
			}
			function useRef(initialValue) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useRef(initialValue);
			}
			function useEffect(create, deps) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useEffect(create, deps);
			}
			function useLayoutEffect(create, deps) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useLayoutEffect(create, deps);
			}
			function useCallback(callback, deps) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useCallback(callback, deps);
			}
			function useMemo(create, deps) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useMemo(create, deps);
			}
			function useImperativeHandle(ref, create, deps) {
			  var dispatcher = resolveDispatcher();
			  return dispatcher.useImperativeHandle(ref, create, deps);
			}
			function useDebugValue(value, formatterFn) {
			  {
			    var dispatcher = resolveDispatcher();
			    return dispatcher.useDebugValue(value, formatterFn);
			  }
			}

			// Helpers to patch console.logs to avoid logging during side-effect free
			// replaying on render function. This currently only patches the object
			// lazily which won't cover if the log function was extracted eagerly.
			// We could also eagerly patch the method.
			var disabledDepth = 0;
			var prevLog;
			var prevInfo;
			var prevWarn;
			var prevError;
			var prevGroup;
			var prevGroupCollapsed;
			var prevGroupEnd;

			function disabledLog() {}

			disabledLog.__reactDisabledLog = true;
			function disableLogs() {
			  {
			    if (disabledDepth === 0) {
			      /* eslint-disable react-internal/no-production-logging */
			      prevLog = console.log;
			      prevInfo = console.info;
			      prevWarn = console.warn;
			      prevError = console.error;
			      prevGroup = console.group;
			      prevGroupCollapsed = console.groupCollapsed;
			      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

			      var props = {
			        configurable: true,
			        enumerable: true,
			        value: disabledLog,
			        writable: true
			      }; // $FlowFixMe Flow thinks console is immutable.

			      Object.defineProperties(console, {
			        info: props,
			        log: props,
			        warn: props,
			        error: props,
			        group: props,
			        groupCollapsed: props,
			        groupEnd: props
			      });
			      /* eslint-enable react-internal/no-production-logging */
			    }

			    disabledDepth++;
			  }
			}
			function reenableLogs() {
			  {
			    disabledDepth--;

			    if (disabledDepth === 0) {
			      /* eslint-disable react-internal/no-production-logging */
			      var props = {
			        configurable: true,
			        enumerable: true,
			        writable: true
			      }; // $FlowFixMe Flow thinks console is immutable.

			      Object.defineProperties(console, {
			        log: _assign({}, props, {
			          value: prevLog
			        }),
			        info: _assign({}, props, {
			          value: prevInfo
			        }),
			        warn: _assign({}, props, {
			          value: prevWarn
			        }),
			        error: _assign({}, props, {
			          value: prevError
			        }),
			        group: _assign({}, props, {
			          value: prevGroup
			        }),
			        groupCollapsed: _assign({}, props, {
			          value: prevGroupCollapsed
			        }),
			        groupEnd: _assign({}, props, {
			          value: prevGroupEnd
			        })
			      });
			      /* eslint-enable react-internal/no-production-logging */
			    }

			    if (disabledDepth < 0) {
			      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
			    }
			  }
			}

			var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
			var prefix;
			function describeBuiltInComponentFrame(name, source, ownerFn) {
			  {
			    if (prefix === undefined) {
			      // Extract the VM specific prefix used by each line.
			      try {
			        throw Error();
			      } catch (x) {
			        var match = x.stack.trim().match(/\n( *(at )?)/);
			        prefix = match && match[1] || '';
			      }
			    } // We use the prefix to ensure our stacks line up with native stack frames.


			    return '\n' + prefix + name;
			  }
			}
			var reentry = false;
			var componentFrameCache;

			{
			  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
			  componentFrameCache = new PossiblyWeakMap();
			}

			function describeNativeComponentFrame(fn, construct) {
			  // If something asked for a stack inside a fake render, it should get ignored.
			  if (!fn || reentry) {
			    return '';
			  }

			  {
			    var frame = componentFrameCache.get(fn);

			    if (frame !== undefined) {
			      return frame;
			    }
			  }

			  var control;
			  reentry = true;
			  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

			  Error.prepareStackTrace = undefined;
			  var previousDispatcher;

			  {
			    previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
			    // for warnings.

			    ReactCurrentDispatcher$1.current = null;
			    disableLogs();
			  }

			  try {
			    // This should throw.
			    if (construct) {
			      // Something should be setting the props in the constructor.
			      var Fake = function () {
			        throw Error();
			      }; // $FlowFixMe


			      Object.defineProperty(Fake.prototype, 'props', {
			        set: function () {
			          // We use a throwing setter instead of frozen or non-writable props
			          // because that won't throw in a non-strict mode function.
			          throw Error();
			        }
			      });

			      if (typeof Reflect === 'object' && Reflect.construct) {
			        // We construct a different control for this case to include any extra
			        // frames added by the construct call.
			        try {
			          Reflect.construct(Fake, []);
			        } catch (x) {
			          control = x;
			        }

			        Reflect.construct(fn, [], Fake);
			      } else {
			        try {
			          Fake.call();
			        } catch (x) {
			          control = x;
			        }

			        fn.call(Fake.prototype);
			      }
			    } else {
			      try {
			        throw Error();
			      } catch (x) {
			        control = x;
			      }

			      fn();
			    }
			  } catch (sample) {
			    // This is inlined manually because closure doesn't do it for us.
			    if (sample && control && typeof sample.stack === 'string') {
			      // This extracts the first frame from the sample that isn't also in the control.
			      // Skipping one frame that we assume is the frame that calls the two.
			      var sampleLines = sample.stack.split('\n');
			      var controlLines = control.stack.split('\n');
			      var s = sampleLines.length - 1;
			      var c = controlLines.length - 1;

			      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
			        // We expect at least one stack frame to be shared.
			        // Typically this will be the root most one. However, stack frames may be
			        // cut off due to maximum stack limits. In this case, one maybe cut off
			        // earlier than the other. We assume that the sample is longer or the same
			        // and there for cut off earlier. So we should find the root most frame in
			        // the sample somewhere in the control.
			        c--;
			      }

			      for (; s >= 1 && c >= 0; s--, c--) {
			        // Next we find the first one that isn't the same which should be the
			        // frame that called our sample function and the control.
			        if (sampleLines[s] !== controlLines[c]) {
			          // In V8, the first line is describing the message but other VMs don't.
			          // If we're about to return the first line, and the control is also on the same
			          // line, that's a pretty good indicator that our sample threw at same line as
			          // the control. I.e. before we entered the sample frame. So we ignore this result.
			          // This can happen if you passed a class to function component, or non-function.
			          if (s !== 1 || c !== 1) {
			            do {
			              s--;
			              c--; // We may still have similar intermediate frames from the construct call.
			              // The next one that isn't the same should be our match though.

			              if (c < 0 || sampleLines[s] !== controlLines[c]) {
			                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
			                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

			                {
			                  if (typeof fn === 'function') {
			                    componentFrameCache.set(fn, _frame);
			                  }
			                } // Return the line we found.


			                return _frame;
			              }
			            } while (s >= 1 && c >= 0);
			          }

			          break;
			        }
			      }
			    }
			  } finally {
			    reentry = false;

			    {
			      ReactCurrentDispatcher$1.current = previousDispatcher;
			      reenableLogs();
			    }

			    Error.prepareStackTrace = previousPrepareStackTrace;
			  } // Fallback to just using the name if we couldn't make it throw.


			  var name = fn ? fn.displayName || fn.name : '';
			  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

			  {
			    if (typeof fn === 'function') {
			      componentFrameCache.set(fn, syntheticFrame);
			    }
			  }

			  return syntheticFrame;
			}
			function describeFunctionComponentFrame(fn, source, ownerFn) {
			  {
			    return describeNativeComponentFrame(fn, false);
			  }
			}

			function shouldConstruct(Component) {
			  var prototype = Component.prototype;
			  return !!(prototype && prototype.isReactComponent);
			}

			function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

			  if (type == null) {
			    return '';
			  }

			  if (typeof type === 'function') {
			    {
			      return describeNativeComponentFrame(type, shouldConstruct(type));
			    }
			  }

			  if (typeof type === 'string') {
			    return describeBuiltInComponentFrame(type);
			  }

			  switch (type) {
			    case exports.Suspense:
			      return describeBuiltInComponentFrame('Suspense');

			    case REACT_SUSPENSE_LIST_TYPE:
			      return describeBuiltInComponentFrame('SuspenseList');
			  }

			  if (typeof type === 'object') {
			    switch (type.$$typeof) {
			      case REACT_FORWARD_REF_TYPE:
			        return describeFunctionComponentFrame(type.render);

			      case REACT_MEMO_TYPE:
			        // Memo may contain any component type so we recursively resolve it.
			        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

			      case REACT_BLOCK_TYPE:
			        return describeFunctionComponentFrame(type._render);

			      case REACT_LAZY_TYPE:
			        {
			          var lazyComponent = type;
			          var payload = lazyComponent._payload;
			          var init = lazyComponent._init;

			          try {
			            // Lazy may contain any component type so we recursively resolve it.
			            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
			          } catch (x) {}
			        }
			    }
			  }

			  return '';
			}

			var loggedTypeFailures = {};
			var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

			function setCurrentlyValidatingElement(element) {
			  {
			    if (element) {
			      var owner = element._owner;
			      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
			      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
			    } else {
			      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
			    }
			  }
			}

			function checkPropTypes(typeSpecs, values, location, componentName, element) {
			  {
			    // $FlowFixMe This is okay but Flow doesn't know it.
			    var has = Function.call.bind(Object.prototype.hasOwnProperty);

			    for (var typeSpecName in typeSpecs) {
			      if (has(typeSpecs, typeSpecName)) {
			        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
			        // fail the render phase where it didn't fail before. So we log it.
			        // After these have been cleaned up, we'll let them throw.

			        try {
			          // This is intentionally an invariant that gets caught. It's the same
			          // behavior as without this statement except with a better message.
			          if (typeof typeSpecs[typeSpecName] !== 'function') {
			            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
			            err.name = 'Invariant Violation';
			            throw err;
			          }

			          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
			        } catch (ex) {
			          error$1 = ex;
			        }

			        if (error$1 && !(error$1 instanceof Error)) {
			          setCurrentlyValidatingElement(element);

			          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

			          setCurrentlyValidatingElement(null);
			        }

			        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
			          // Only monitor this failure once because there tends to be a lot of the
			          // same error.
			          loggedTypeFailures[error$1.message] = true;
			          setCurrentlyValidatingElement(element);

			          error('Failed %s type: %s', location, error$1.message);

			          setCurrentlyValidatingElement(null);
			        }
			      }
			    }
			  }
			}

			function setCurrentlyValidatingElement$1(element) {
			  {
			    if (element) {
			      var owner = element._owner;
			      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
			      setExtraStackFrame(stack);
			    } else {
			      setExtraStackFrame(null);
			    }
			  }
			}

			var propTypesMisspellWarningShown;

			{
			  propTypesMisspellWarningShown = false;
			}

			function getDeclarationErrorAddendum() {
			  if (ReactCurrentOwner.current) {
			    var name = getComponentName(ReactCurrentOwner.current.type);

			    if (name) {
			      return '\n\nCheck the render method of `' + name + '`.';
			    }
			  }

			  return '';
			}

			function getSourceInfoErrorAddendum(source) {
			  if (source !== undefined) {
			    var fileName = source.fileName.replace(/^.*[\\\/]/, '');
			    var lineNumber = source.lineNumber;
			    return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
			  }

			  return '';
			}

			function getSourceInfoErrorAddendumForProps(elementProps) {
			  if (elementProps !== null && elementProps !== undefined) {
			    return getSourceInfoErrorAddendum(elementProps.__source);
			  }

			  return '';
			}
			/**
			 * Warn if there's no key explicitly set on dynamic arrays of children or
			 * object keys are not valid. This allows us to keep track of children between
			 * updates.
			 */


			var ownerHasKeyUseWarning = {};

			function getCurrentComponentErrorInfo(parentType) {
			  var info = getDeclarationErrorAddendum();

			  if (!info) {
			    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;

			    if (parentName) {
			      info = "\n\nCheck the top-level render call using <" + parentName + ">.";
			    }
			  }

			  return info;
			}
			/**
			 * Warn if the element doesn't have an explicit key assigned to it.
			 * This element is in an array. The array could grow and shrink or be
			 * reordered. All children that haven't already been validated are required to
			 * have a "key" property assigned to it. Error statuses are cached so a warning
			 * will only be shown once.
			 *
			 * @internal
			 * @param {ReactElement} element Element that requires a key.
			 * @param {*} parentType element's parent's type.
			 */


			function validateExplicitKey(element, parentType) {
			  if (!element._store || element._store.validated || element.key != null) {
			    return;
			  }

			  element._store.validated = true;
			  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);

			  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
			    return;
			  }

			  ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
			  // property, it may be the creator of the child that's responsible for
			  // assigning it a key.

			  var childOwner = '';

			  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
			    // Give the component that originally created this child.
			    childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
			  }

			  {
			    setCurrentlyValidatingElement$1(element);

			    error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);

			    setCurrentlyValidatingElement$1(null);
			  }
			}
			/**
			 * Ensure that every element either is passed in a static location, in an
			 * array with an explicit keys property defined, or in an object literal
			 * with valid key property.
			 *
			 * @internal
			 * @param {ReactNode} node Statically passed child of any type.
			 * @param {*} parentType node's parent's type.
			 */


			function validateChildKeys(node, parentType) {
			  if (typeof node !== 'object') {
			    return;
			  }

			  if (Array.isArray(node)) {
			    for (var i = 0; i < node.length; i++) {
			      var child = node[i];

			      if (isValidElement(child)) {
			        validateExplicitKey(child, parentType);
			      }
			    }
			  } else if (isValidElement(node)) {
			    // This element was passed in a valid location.
			    if (node._store) {
			      node._store.validated = true;
			    }
			  } else if (node) {
			    var iteratorFn = getIteratorFn(node);

			    if (typeof iteratorFn === 'function') {
			      // Entry iterators used to provide implicit keys,
			      // but now we print a separate warning for them later.
			      if (iteratorFn !== node.entries) {
			        var iterator = iteratorFn.call(node);
			        var step;

			        while (!(step = iterator.next()).done) {
			          if (isValidElement(step.value)) {
			            validateExplicitKey(step.value, parentType);
			          }
			        }
			      }
			    }
			  }
			}
			/**
			 * Given an element, validate that its props follow the propTypes definition,
			 * provided by the type.
			 *
			 * @param {ReactElement} element
			 */


			function validatePropTypes(element) {
			  {
			    var type = element.type;

			    if (type === null || type === undefined || typeof type === 'string') {
			      return;
			    }

			    var propTypes;

			    if (typeof type === 'function') {
			      propTypes = type.propTypes;
			    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
			    // Inner props are checked in the reconciler.
			    type.$$typeof === REACT_MEMO_TYPE)) {
			      propTypes = type.propTypes;
			    } else {
			      return;
			    }

			    if (propTypes) {
			      // Intentionally inside to avoid triggering lazy initializers:
			      var name = getComponentName(type);
			      checkPropTypes(propTypes, element.props, 'prop', name, element);
			    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
			      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:

			      var _name = getComponentName(type);

			      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
			    }

			    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
			      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
			    }
			  }
			}
			/**
			 * Given a fragment, validate that it can only be provided with fragment props
			 * @param {ReactElement} fragment
			 */


			function validateFragmentProps(fragment) {
			  {
			    var keys = Object.keys(fragment.props);

			    for (var i = 0; i < keys.length; i++) {
			      var key = keys[i];

			      if (key !== 'children' && key !== 'key') {
			        setCurrentlyValidatingElement$1(fragment);

			        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

			        setCurrentlyValidatingElement$1(null);
			        break;
			      }
			    }

			    if (fragment.ref !== null) {
			      setCurrentlyValidatingElement$1(fragment);

			      error('Invalid attribute `ref` supplied to `React.Fragment`.');

			      setCurrentlyValidatingElement$1(null);
			    }
			  }
			}
			function createElementWithValidation(type, props, children) {
			  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
			  // succeed and there will likely be errors in render.

			  if (!validType) {
			    var info = '';

			    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
			      info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
			    }

			    var sourceInfo = getSourceInfoErrorAddendumForProps(props);

			    if (sourceInfo) {
			      info += sourceInfo;
			    } else {
			      info += getDeclarationErrorAddendum();
			    }

			    var typeString;

			    if (type === null) {
			      typeString = 'null';
			    } else if (Array.isArray(type)) {
			      typeString = 'array';
			    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
			      typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
			      info = ' Did you accidentally export a JSX literal instead of a component?';
			    } else {
			      typeString = typeof type;
			    }

			    {
			      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
			    }
			  }

			  var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
			  // TODO: Drop this when these are no longer allowed as the type argument.

			  if (element == null) {
			    return element;
			  } // Skip key warning if the type isn't valid since our key validation logic
			  // doesn't expect a non-string/function type and can throw confusing errors.
			  // We don't want exception behavior to differ between dev and prod.
			  // (Rendering will throw with a helpful message and as soon as the type is
			  // fixed, the key warnings will appear.)


			  if (validType) {
			    for (var i = 2; i < arguments.length; i++) {
			      validateChildKeys(arguments[i], type);
			    }
			  }

			  if (type === exports.Fragment) {
			    validateFragmentProps(element);
			  } else {
			    validatePropTypes(element);
			  }

			  return element;
			}
			var didWarnAboutDeprecatedCreateFactory = false;
			function createFactoryWithValidation(type) {
			  var validatedFactory = createElementWithValidation.bind(null, type);
			  validatedFactory.type = type;

			  {
			    if (!didWarnAboutDeprecatedCreateFactory) {
			      didWarnAboutDeprecatedCreateFactory = true;

			      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
			    } // Legacy hook: remove it


			    Object.defineProperty(validatedFactory, 'type', {
			      enumerable: false,
			      get: function () {
			        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');

			        Object.defineProperty(this, 'type', {
			          value: type
			        });
			        return type;
			      }
			    });
			  }

			  return validatedFactory;
			}
			function cloneElementWithValidation(element, props, children) {
			  var newElement = cloneElement.apply(this, arguments);

			  for (var i = 2; i < arguments.length; i++) {
			    validateChildKeys(arguments[i], newElement.type);
			  }

			  validatePropTypes(newElement);
			  return newElement;
			}

			{

			  try {
			    var frozenObject = Object.freeze({});
			    /* eslint-disable no-new */

			    new Map([[frozenObject, null]]);
			    new Set([frozenObject]);
			    /* eslint-enable no-new */
			  } catch (e) {
			  }
			}

			var createElement$1 =  createElementWithValidation ;
			var cloneElement$1 =  cloneElementWithValidation ;
			var createFactory =  createFactoryWithValidation ;
			var Children = {
			  map: mapChildren,
			  forEach: forEachChildren,
			  count: countChildren,
			  toArray: toArray,
			  only: onlyChild
			};

			exports.Children = Children;
			exports.Component = Component;
			exports.PureComponent = PureComponent;
			exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
			exports.cloneElement = cloneElement$1;
			exports.createContext = createContext;
			exports.createElement = createElement$1;
			exports.createFactory = createFactory;
			exports.createRef = createRef;
			exports.forwardRef = forwardRef;
			exports.isValidElement = isValidElement;
			exports.lazy = lazy;
			exports.memo = memo;
			exports.useCallback = useCallback;
			exports.useContext = useContext;
			exports.useDebugValue = useDebugValue;
			exports.useEffect = useEffect;
			exports.useImperativeHandle = useImperativeHandle;
			exports.useLayoutEffect = useLayoutEffect;
			exports.useMemo = useMemo;
			exports.useReducer = useReducer;
			exports.useRef = useRef;
			exports.useState = useState;
			exports.version = ReactVersion;
			  })();
			} 
		} (react_development));
		return react_development;
	}

	if (process.env.NODE_ENV === 'production') {
	  react.exports = requireReact_production_min();
	} else {
	  react.exports = requireReact_development();
	}

	var reactExports = react.exports;

	// Unique ID creation requires a high quality random # generator. In the browser we therefore
	// require the crypto API and do not support built-in fallback to lower quality random number
	// generators (like Math.random()).
	let getRandomValues;
	const rnds8 = new Uint8Array(16);
	function rng() {
	  // lazy load so that environments that need to polyfill have a chance to do so
	  if (!getRandomValues) {
	    // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
	    getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);

	    if (!getRandomValues) {
	      throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
	    }
	  }

	  return getRandomValues(rnds8);
	}

	/**
	 * Convert array of 16 byte values to UUID string format of the form:
	 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
	 */

	const byteToHex = [];

	for (let i = 0; i < 256; ++i) {
	  byteToHex.push((i + 0x100).toString(16).slice(1));
	}

	function unsafeStringify(arr, offset = 0) {
	  // Note: Be careful editing this code!  It's been tuned for performance
	  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
	  return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
	}

	const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
	var native = {
	  randomUUID
	};

	function v4(options, buf, offset) {
	  if (native.randomUUID && !buf && !options) {
	    return native.randomUUID();
	  }

	  options = options || {};
	  const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`

	  rnds[6] = rnds[6] & 0x0f | 0x40;
	  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided

	  if (buf) {
	    offset = offset || 0;

	    for (let i = 0; i < 16; ++i) {
	      buf[offset + i] = rnds[i];
	    }

	    return buf;
	  }

	  return unsafeStringify(rnds);
	}

	function createModelContext() {
	    const ctx = reactExports.createContext(undefined);
	    const useModel = () => {
	        return reactExports.useContext(ctx);
	    };
	    const useModelEvent = (event, callback, deps) => {
	        const model = useModel();
	        const dependencies = deps === undefined ? [model] : [...deps, model];
	        reactExports.useEffect(() => {
	            const callbackWrapper = (event) => {
	                model && callback(model, event);
	            };
	            model?.on(event, callbackWrapper);
	            return () => void model?.off(event, callbackWrapper);
	        }, dependencies);
	    };
	    const useModelChange = (name, cb) => {
	        useModelEvent(`change:${name}`, (model) => {
	            cb(model.get(name));
	        }, [name]);
	    };
	    const useModelState = (name) => {
	        const model = useModel();
	        const [state, setState] = reactExports.useState(model?.get(name));
	        useModelChange(name, (newValue) => setState(newValue));
	        const updateModel = reactExports.useCallback((val, options) => {
	            model?.set(name, val, options);
	            model?.save_changes();
	        }, [name, model]);
	        return [state, updateModel];
	    };
	    const useTransport = () => {
	        const model = useModel();
	        return reactExports.useCallback(async (method, payload) => {
	            if (!model) {
	                throw new Error("No transport connected");
	            }
	            const requestId = await new Promise((resolve, reject) => {
	                const request = {
	                    request_id: v4(),
	                    method,
	                    payload: payload,
	                };
	                model.send(request, {
	                    iopub: {
	                        status: (msg) => {
	                            resolve(request.request_id);
	                        },
	                    },
	                });
	                setTimeout(() => reject(new Error("Request timed out")), 10000);
	            });
	            return await new Promise((resolve, reject) => {
	                const teardown = () => {
	                    model.off("msg:custom", listener);
	                };
	                const listener = (payload) => {
	                    if (payload?.request_id !== requestId) {
	                        return;
	                    }
	                    teardown();
	                    if (payload.success) {
	                        resolve(payload.payload);
	                    }
	                    else {
	                        reject(new Error(payload.error));
	                    }
	                };
	                model.on("msg:custom", listener);
	                setTimeout(() => {
	                    teardown();
	                    reject(new Error("Request timed out"));
	                }, 10000);
	            });
	        }, [model]);
	    };
	    return {
	        Provider: ({ model, children }) => reactExports.createElement(ctx.Provider, { value: model, children }),
	        useModel,
	        useModelEvent,
	        useModelState,
	        useTransport,
	        useModelChange,
	    };
	}

	var name$1 = "jupyter-notepad";
	var version = "0.0.2";
	var description = "A versioned code editor widget for Jupyter";
	var type$6 = "module";
	var main = "./dist/index.js";
	var types$7 = "./lib/index.d.ts";
	var homepage = "https://github.com/cfeenstra67/jupyter_notepad";
	var bugs = {
		url: "https://github.com/cfeenstra67/jupyter_notepad/issues"
	};
	var repository = {
		type: "git",
		url: "https://github.com/cfeenstra67/jupyter_notepad"
	};
	var files = [
		"lib/**/*.{d.ts,js}",
		"dist/*.js"
	];
	var keywords$J = [
		"jupyter",
		"jupyterlab",
		"jupyterlab-extension",
		"widgets"
	];
	var author = {
		name: "Cam Feenstra",
		email: "me@camfeenstra.com"
	};
	var license = "MIT";
	var scripts = {
		"build:python": "pnpm clean && venv/bin/python -m build .",
		"build:publish": "pnpm clean && pnpm build:prod",
		"build:prod": "pnpm build:lib && NODE_ENV=production pnpm build:nbextension && NODE_ENV=production pnpm build:labextension",
		"build:lib": "tsc",
		"build:labextension": "jupyter labextension build .",
		"build:labextension:dev": "jupyter labextension build --development True .",
		"build:nbextension": "rollup -c",
		"clean:lib": "rm -rf dist",
		"clean:labextension": "rm -rf jupyter_notepad/labextension",
		"clean:nbextension": "rm -rf jupyter_notepad/nbextension",
		clean: "pnpm run /clean:/",
		watch: "pnpm run /watch:/",
		"watch:lib": "tsc -w",
		"watch:nbextension": "rollup -c --watch",
		"watch:labextension": "jupyter labextension watch .",
		check: "pnpm run /check:/",
		"check:js": "biome check --apply src",
		"check:python": "venv/bin/ruff format jupyter_notepad && venv/bin/ruff check --fix jupyter_notepad && venv/bin/mypy",
		"npm-publish": "./npm-publish.sh",
		"pypi-check": "twine check dist/jupyter_notepad-*",
		"pypi-upload-test": "twine upload --repository-url https://test.pypi.org/legacy/ dist/jupyter_notepad-*",
		"pypi-upload": "twine upload dist/jupyter_notepad-*",
		"clean-all": "pnpm clean && rm -rf node_modules && rm -rf .ruff_cache && rm -rf .mypy_cache && rm -rf venv"
	};
	var dependencies = {
		"@codemirror/lang-markdown": "^6.2.4",
		"@codemirror/language": "^6.10.1",
		"@codemirror/language-data": "^6.4.1",
		"@codemirror/state": "^6.4.1",
		"@codemirror/view": "^6.26.0",
		"@jupyter-widgets/base": "^6.0.7",
		"@lezer/highlight": "^1.2.0",
		"@lumino/application": "^2.3.0",
		"@lumino/widgets": "^2.3.1",
		"@tanstack/react-query": "^4",
		"@uiw/react-codemirror": "^4.21.25",
		clsx: "^2.1.0",
		ms: "^2.1.3",
		react: "^17",
		"react-dom": "^17",
		uuid: "^9.0.1"
	};
	var devDependencies = {
		"@biomejs/biome": "^1.6.2",
		"@jupyterlab/builder": "^4.1.5",
		"@jupyterlab/services": "^7.1.5",
		"@rollup/plugin-commonjs": "^25.0.7",
		"@rollup/plugin-json": "^6.1.0",
		"@rollup/plugin-node-resolve": "^15.2.3",
		"@rollup/plugin-typescript": "^11.1.6",
		"@swc/core": "^1.4.8",
		"@types/ms": "^0.7.34",
		"@types/react": "^17",
		"@types/uuid": "^9.0.8",
		autoprefixer: "^10.4.19",
		postcss: "^8.4.38",
		process: "^0.11.10",
		rollup: "^4.13.0",
		"rollup-plugin-postcss": "^4.0.2",
		"rollup-plugin-svg": "^2.0.0",
		tailwindcss: "^3.4.1",
		tslib: "^2.6.2",
		typescript: "^5.4.3"
	};
	var jupyterlab = {
		extension: "dist/plugin.js",
		outputDir: "jupyter_notepad/labextension/jupyter-notepad",
		sharedPackages: {
			"@jupyter-widgets/base": {
				bundled: false,
				singleton: true
			}
		}
	};
	var pkg = {
		name: name$1,
		version: version,
		description: description,
		type: type$6,
		main: main,
		types: types$7,
		homepage: homepage,
		bugs: bugs,
		repository: repository,
		files: files,
		keywords: keywords$J,
		author: author,
		license: license,
		scripts: scripts,
		dependencies: dependencies,
		devDependencies: devDependencies,
		jupyterlab: jupyterlab
	};

	const MODULE_VERSION = pkg.version;
	const MODULE_NAME = pkg.name;

	const { Provider: WidgetViewProvider, useModel: useWidgetModel, useModelChange: useWidgetModelChange, useModelEvent: useWidgetModelEvent, useModelState: useWidgetModelState, useTransport: useWidgetTransport, } = createModelContext();
	const defaultModelProperties = {
	    path: "",
	    extension: "",
	    code: "",
	    height: 4,
	    is_dirty: false,
	    show_line_numbers: false,
	    head_commit: null,
	    checkout_commit: null,
	};
	class WidgetModel extends base$4.DOMWidgetModel {
	    defaults() {
	        return {
	            ...super.defaults(),
	            _model_name: WidgetModel.model_name,
	            _model_module: WidgetModel.model_module,
	            _model_module_version: WidgetModel.model_module_version,
	            _view_name: WidgetModel.view_name,
	            _view_module: WidgetModel.view_module,
	            _view_module_version: WidgetModel.view_module_version,
	            ...defaultModelProperties,
	        };
	    }
	}
	WidgetModel.serializers = {
	    ...base$4.DOMWidgetModel.serializers,
	};
	WidgetModel.model_name = "WidgetModel";
	WidgetModel.model_module = MODULE_NAME;
	WidgetModel.model_module_version = MODULE_VERSION;
	WidgetModel.view_name = "WidgetView";
	WidgetModel.view_module = MODULE_NAME;
	WidgetModel.view_module_version = MODULE_VERSION;

	class Subscribable {
	  constructor() {
	    this.listeners = new Set();
	    this.subscribe = this.subscribe.bind(this);
	  }

	  subscribe(listener) {
	    const identity = {
	      listener
	    };
	    this.listeners.add(identity);
	    this.onSubscribe();
	    return () => {
	      this.listeners.delete(identity);
	      this.onUnsubscribe();
	    };
	  }

	  hasListeners() {
	    return this.listeners.size > 0;
	  }

	  onSubscribe() {// Do nothing
	  }

	  onUnsubscribe() {// Do nothing
	  }

	}

	// TYPES
	// UTILS
	const isServer = typeof window === 'undefined' || 'Deno' in window;
	function noop() {
	  return undefined;
	}
	function functionalUpdate(updater, input) {
	  return typeof updater === 'function' ? updater(input) : updater;
	}
	function isValidTimeout(value) {
	  return typeof value === 'number' && value >= 0 && value !== Infinity;
	}
	function timeUntilStale(updatedAt, staleTime) {
	  return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
	}
	function parseQueryArgs(arg1, arg2, arg3) {
	  if (!isQueryKey(arg1)) {
	    return arg1;
	  }

	  if (typeof arg2 === 'function') {
	    return { ...arg3,
	      queryKey: arg1,
	      queryFn: arg2
	    };
	  }

	  return { ...arg2,
	    queryKey: arg1
	  };
	}
	function parseFilterArgs(arg1, arg2, arg3) {
	  return isQueryKey(arg1) ? [{ ...arg2,
	    queryKey: arg1
	  }, arg3] : [arg1 || {}, arg2];
	}
	function matchQuery(filters, query) {
	  const {
	    type = 'all',
	    exact,
	    fetchStatus,
	    predicate,
	    queryKey,
	    stale
	  } = filters;

	  if (isQueryKey(queryKey)) {
	    if (exact) {
	      if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
	        return false;
	      }
	    } else if (!partialMatchKey(query.queryKey, queryKey)) {
	      return false;
	    }
	  }

	  if (type !== 'all') {
	    const isActive = query.isActive();

	    if (type === 'active' && !isActive) {
	      return false;
	    }

	    if (type === 'inactive' && isActive) {
	      return false;
	    }
	  }

	  if (typeof stale === 'boolean' && query.isStale() !== stale) {
	    return false;
	  }

	  if (typeof fetchStatus !== 'undefined' && fetchStatus !== query.state.fetchStatus) {
	    return false;
	  }

	  if (predicate && !predicate(query)) {
	    return false;
	  }

	  return true;
	}
	function matchMutation(filters, mutation) {
	  const {
	    exact,
	    fetching,
	    predicate,
	    mutationKey
	  } = filters;

	  if (isQueryKey(mutationKey)) {
	    if (!mutation.options.mutationKey) {
	      return false;
	    }

	    if (exact) {
	      if (hashQueryKey(mutation.options.mutationKey) !== hashQueryKey(mutationKey)) {
	        return false;
	      }
	    } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
	      return false;
	    }
	  }

	  if (typeof fetching === 'boolean' && mutation.state.status === 'loading' !== fetching) {
	    return false;
	  }

	  if (predicate && !predicate(mutation)) {
	    return false;
	  }

	  return true;
	}
	function hashQueryKeyByOptions(queryKey, options) {
	  const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashQueryKey;
	  return hashFn(queryKey);
	}
	/**
	 * Default query keys hash function.
	 * Hashes the value into a stable hash.
	 */

	function hashQueryKey(queryKey) {
	  return JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
	    result[key] = val[key];
	    return result;
	  }, {}) : val);
	}
	/**
	 * Checks if key `b` partially matches with key `a`.
	 */

	function partialMatchKey(a, b) {
	  return partialDeepEqual(a, b);
	}
	/**
	 * Checks if `b` partially matches with `a`.
	 */

	function partialDeepEqual(a, b) {
	  if (a === b) {
	    return true;
	  }

	  if (typeof a !== typeof b) {
	    return false;
	  }

	  if (a && b && typeof a === 'object' && typeof b === 'object') {
	    return !Object.keys(b).some(key => !partialDeepEqual(a[key], b[key]));
	  }

	  return false;
	}
	/**
	 * This function returns `a` if `b` is deeply equal.
	 * If not, it will replace any deeply equal children of `b` with those of `a`.
	 * This can be used for structural sharing between JSON values for example.
	 */

	function replaceEqualDeep(a, b) {
	  if (a === b) {
	    return a;
	  }

	  const array = isPlainArray(a) && isPlainArray(b);

	  if (array || isPlainObject(a) && isPlainObject(b)) {
	    const aSize = array ? a.length : Object.keys(a).length;
	    const bItems = array ? b : Object.keys(b);
	    const bSize = bItems.length;
	    const copy = array ? [] : {};
	    let equalItems = 0;

	    for (let i = 0; i < bSize; i++) {
	      const key = array ? i : bItems[i];
	      copy[key] = replaceEqualDeep(a[key], b[key]);

	      if (copy[key] === a[key]) {
	        equalItems++;
	      }
	    }

	    return aSize === bSize && equalItems === aSize ? a : copy;
	  }

	  return b;
	}
	/**
	 * Shallow compare objects. Only works with objects that always have the same properties.
	 */

	function shallowEqualObjects(a, b) {
	  if (a && !b || b && !a) {
	    return false;
	  }

	  for (const key in a) {
	    if (a[key] !== b[key]) {
	      return false;
	    }
	  }

	  return true;
	}
	function isPlainArray(value) {
	  return Array.isArray(value) && value.length === Object.keys(value).length;
	} // Copied from: https://github.com/jonschlinkert/is-plain-object

	function isPlainObject(o) {
	  if (!hasObjectPrototype(o)) {
	    return false;
	  } // If has modified constructor


	  const ctor = o.constructor;

	  if (typeof ctor === 'undefined') {
	    return true;
	  } // If has modified prototype


	  const prot = ctor.prototype;

	  if (!hasObjectPrototype(prot)) {
	    return false;
	  } // If constructor does not have an Object-specific method


	  if (!prot.hasOwnProperty('isPrototypeOf')) {
	    return false;
	  } // Most likely a plain Object


	  return true;
	}

	function hasObjectPrototype(o) {
	  return Object.prototype.toString.call(o) === '[object Object]';
	}

	function isQueryKey(value) {
	  return Array.isArray(value);
	}
	function sleep(timeout) {
	  return new Promise(resolve => {
	    setTimeout(resolve, timeout);
	  });
	}
	/**
	 * Schedules a microtask.
	 * This can be useful to schedule state updates after rendering.
	 */

	function scheduleMicrotask(callback) {
	  sleep(0).then(callback);
	}
	function getAbortController() {
	  if (typeof AbortController === 'function') {
	    return new AbortController();
	  }

	  return;
	}
	function replaceData(prevData, data, options) {
	  // Use prev data if an isDataEqual function is defined and returns `true`
	  if (options.isDataEqual != null && options.isDataEqual(prevData, data)) {
	    return prevData;
	  } else if (typeof options.structuralSharing === 'function') {
	    return options.structuralSharing(prevData, data);
	  } else if (options.structuralSharing !== false) {
	    // Structurally share data between prev and new data if needed
	    return replaceEqualDeep(prevData, data);
	  }

	  return data;
	}

	class FocusManager extends Subscribable {
	  constructor() {
	    super();

	    this.setup = onFocus => {
	      // addEventListener does not exist in React Native, but window does
	      // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
	      if (!isServer && window.addEventListener) {
	        const listener = () => onFocus(); // Listen to visibillitychange and focus


	        window.addEventListener('visibilitychange', listener, false);
	        window.addEventListener('focus', listener, false);
	        return () => {
	          // Be sure to unsubscribe if a new handler is set
	          window.removeEventListener('visibilitychange', listener);
	          window.removeEventListener('focus', listener);
	        };
	      }

	      return;
	    };
	  }

	  onSubscribe() {
	    if (!this.cleanup) {
	      this.setEventListener(this.setup);
	    }
	  }

	  onUnsubscribe() {
	    if (!this.hasListeners()) {
	      var _this$cleanup;

	      (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);
	      this.cleanup = undefined;
	    }
	  }

	  setEventListener(setup) {
	    var _this$cleanup2;

	    this.setup = setup;
	    (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);
	    this.cleanup = setup(focused => {
	      if (typeof focused === 'boolean') {
	        this.setFocused(focused);
	      } else {
	        this.onFocus();
	      }
	    });
	  }

	  setFocused(focused) {
	    const changed = this.focused !== focused;

	    if (changed) {
	      this.focused = focused;
	      this.onFocus();
	    }
	  }

	  onFocus() {
	    this.listeners.forEach(({
	      listener
	    }) => {
	      listener();
	    });
	  }

	  isFocused() {
	    if (typeof this.focused === 'boolean') {
	      return this.focused;
	    } // document global can be unavailable in react native


	    if (typeof document === 'undefined') {
	      return true;
	    }

	    return [undefined, 'visible', 'prerender'].includes(document.visibilityState);
	  }

	}
	const focusManager = new FocusManager();

	const onlineEvents = ['online', 'offline'];
	class OnlineManager extends Subscribable {
	  constructor() {
	    super();

	    this.setup = onOnline => {
	      // addEventListener does not exist in React Native, but window does
	      // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
	      if (!isServer && window.addEventListener) {
	        const listener = () => onOnline(); // Listen to online


	        onlineEvents.forEach(event => {
	          window.addEventListener(event, listener, false);
	        });
	        return () => {
	          // Be sure to unsubscribe if a new handler is set
	          onlineEvents.forEach(event => {
	            window.removeEventListener(event, listener);
	          });
	        };
	      }

	      return;
	    };
	  }

	  onSubscribe() {
	    if (!this.cleanup) {
	      this.setEventListener(this.setup);
	    }
	  }

	  onUnsubscribe() {
	    if (!this.hasListeners()) {
	      var _this$cleanup;

	      (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);
	      this.cleanup = undefined;
	    }
	  }

	  setEventListener(setup) {
	    var _this$cleanup2;

	    this.setup = setup;
	    (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);
	    this.cleanup = setup(online => {
	      if (typeof online === 'boolean') {
	        this.setOnline(online);
	      } else {
	        this.onOnline();
	      }
	    });
	  }

	  setOnline(online) {
	    const changed = this.online !== online;

	    if (changed) {
	      this.online = online;
	      this.onOnline();
	    }
	  }

	  onOnline() {
	    this.listeners.forEach(({
	      listener
	    }) => {
	      listener();
	    });
	  }

	  isOnline() {
	    if (typeof this.online === 'boolean') {
	      return this.online;
	    }

	    if (typeof navigator === 'undefined' || typeof navigator.onLine === 'undefined') {
	      return true;
	    }

	    return navigator.onLine;
	  }

	}
	const onlineManager = new OnlineManager();

	function defaultRetryDelay(failureCount) {
	  return Math.min(1000 * 2 ** failureCount, 30000);
	}

	function canFetch(networkMode) {
	  return (networkMode != null ? networkMode : 'online') === 'online' ? onlineManager.isOnline() : true;
	}
	class CancelledError {
	  constructor(options) {
	    this.revert = options == null ? void 0 : options.revert;
	    this.silent = options == null ? void 0 : options.silent;
	  }

	}
	function isCancelledError(value) {
	  return value instanceof CancelledError;
	}
	function createRetryer(config) {
	  let isRetryCancelled = false;
	  let failureCount = 0;
	  let isResolved = false;
	  let continueFn;
	  let promiseResolve;
	  let promiseReject;
	  const promise = new Promise((outerResolve, outerReject) => {
	    promiseResolve = outerResolve;
	    promiseReject = outerReject;
	  });

	  const cancel = cancelOptions => {
	    if (!isResolved) {
	      reject(new CancelledError(cancelOptions));
	      config.abort == null ? void 0 : config.abort();
	    }
	  };

	  const cancelRetry = () => {
	    isRetryCancelled = true;
	  };

	  const continueRetry = () => {
	    isRetryCancelled = false;
	  };

	  const shouldPause = () => !focusManager.isFocused() || config.networkMode !== 'always' && !onlineManager.isOnline();

	  const resolve = value => {
	    if (!isResolved) {
	      isResolved = true;
	      config.onSuccess == null ? void 0 : config.onSuccess(value);
	      continueFn == null ? void 0 : continueFn();
	      promiseResolve(value);
	    }
	  };

	  const reject = value => {
	    if (!isResolved) {
	      isResolved = true;
	      config.onError == null ? void 0 : config.onError(value);
	      continueFn == null ? void 0 : continueFn();
	      promiseReject(value);
	    }
	  };

	  const pause = () => {
	    return new Promise(continueResolve => {
	      continueFn = value => {
	        const canContinue = isResolved || !shouldPause();

	        if (canContinue) {
	          continueResolve(value);
	        }

	        return canContinue;
	      };

	      config.onPause == null ? void 0 : config.onPause();
	    }).then(() => {
	      continueFn = undefined;

	      if (!isResolved) {
	        config.onContinue == null ? void 0 : config.onContinue();
	      }
	    });
	  }; // Create loop function


	  const run = () => {
	    // Do nothing if already resolved
	    if (isResolved) {
	      return;
	    }

	    let promiseOrValue; // Execute query

	    try {
	      promiseOrValue = config.fn();
	    } catch (error) {
	      promiseOrValue = Promise.reject(error);
	    }

	    Promise.resolve(promiseOrValue).then(resolve).catch(error => {
	      var _config$retry, _config$retryDelay;

	      // Stop if the fetch is already resolved
	      if (isResolved) {
	        return;
	      } // Do we need to retry the request?


	      const retry = (_config$retry = config.retry) != null ? _config$retry : 3;
	      const retryDelay = (_config$retryDelay = config.retryDelay) != null ? _config$retryDelay : defaultRetryDelay;
	      const delay = typeof retryDelay === 'function' ? retryDelay(failureCount, error) : retryDelay;
	      const shouldRetry = retry === true || typeof retry === 'number' && failureCount < retry || typeof retry === 'function' && retry(failureCount, error);

	      if (isRetryCancelled || !shouldRetry) {
	        // We are done if the query does not need to be retried
	        reject(error);
	        return;
	      }

	      failureCount++; // Notify on fail

	      config.onFail == null ? void 0 : config.onFail(failureCount, error); // Delay

	      sleep(delay) // Pause if the document is not visible or when the device is offline
	      .then(() => {
	        if (shouldPause()) {
	          return pause();
	        }

	        return;
	      }).then(() => {
	        if (isRetryCancelled) {
	          reject(error);
	        } else {
	          run();
	        }
	      });
	    });
	  }; // Start loop


	  if (canFetch(config.networkMode)) {
	    run();
	  } else {
	    pause().then(run);
	  }

	  return {
	    promise,
	    cancel,
	    continue: () => {
	      const didContinue = continueFn == null ? void 0 : continueFn();
	      return didContinue ? promise : Promise.resolve();
	    },
	    cancelRetry,
	    continueRetry
	  };
	}

	const defaultLogger = console;

	function createNotifyManager() {
	  let queue = [];
	  let transactions = 0;

	  let notifyFn = callback => {
	    callback();
	  };

	  let batchNotifyFn = callback => {
	    callback();
	  };

	  const batch = callback => {
	    let result;
	    transactions++;

	    try {
	      result = callback();
	    } finally {
	      transactions--;

	      if (!transactions) {
	        flush();
	      }
	    }

	    return result;
	  };

	  const schedule = callback => {
	    if (transactions) {
	      queue.push(callback);
	    } else {
	      scheduleMicrotask(() => {
	        notifyFn(callback);
	      });
	    }
	  };
	  /**
	   * All calls to the wrapped function will be batched.
	   */


	  const batchCalls = callback => {
	    return (...args) => {
	      schedule(() => {
	        callback(...args);
	      });
	    };
	  };

	  const flush = () => {
	    const originalQueue = queue;
	    queue = [];

	    if (originalQueue.length) {
	      scheduleMicrotask(() => {
	        batchNotifyFn(() => {
	          originalQueue.forEach(callback => {
	            notifyFn(callback);
	          });
	        });
	      });
	    }
	  };
	  /**
	   * Use this method to set a custom notify function.
	   * This can be used to for example wrap notifications with `React.act` while running tests.
	   */


	  const setNotifyFunction = fn => {
	    notifyFn = fn;
	  };
	  /**
	   * Use this method to set a custom function to batch notifications together into a single tick.
	   * By default React Query will use the batch function provided by ReactDOM or React Native.
	   */


	  const setBatchNotifyFunction = fn => {
	    batchNotifyFn = fn;
	  };

	  return {
	    batch,
	    batchCalls,
	    schedule,
	    setNotifyFunction,
	    setBatchNotifyFunction
	  };
	} // SINGLETON

	const notifyManager = createNotifyManager();

	class Removable {
	  destroy() {
	    this.clearGcTimeout();
	  }

	  scheduleGc() {
	    this.clearGcTimeout();

	    if (isValidTimeout(this.cacheTime)) {
	      this.gcTimeout = setTimeout(() => {
	        this.optionalRemove();
	      }, this.cacheTime);
	    }
	  }

	  updateCacheTime(newCacheTime) {
	    // Default to 5 minutes (Infinity for server-side) if no cache time is set
	    this.cacheTime = Math.max(this.cacheTime || 0, newCacheTime != null ? newCacheTime : isServer ? Infinity : 5 * 60 * 1000);
	  }

	  clearGcTimeout() {
	    if (this.gcTimeout) {
	      clearTimeout(this.gcTimeout);
	      this.gcTimeout = undefined;
	    }
	  }

	}

	// CLASS
	class Query extends Removable {
	  constructor(config) {
	    super();
	    this.abortSignalConsumed = false;
	    this.defaultOptions = config.defaultOptions;
	    this.setOptions(config.options);
	    this.observers = [];
	    this.cache = config.cache;
	    this.logger = config.logger || defaultLogger;
	    this.queryKey = config.queryKey;
	    this.queryHash = config.queryHash;
	    this.initialState = config.state || getDefaultState$1(this.options);
	    this.state = this.initialState;
	    this.scheduleGc();
	  }

	  get meta() {
	    return this.options.meta;
	  }

	  setOptions(options) {
	    this.options = { ...this.defaultOptions,
	      ...options
	    };
	    this.updateCacheTime(this.options.cacheTime);
	  }

	  optionalRemove() {
	    if (!this.observers.length && this.state.fetchStatus === 'idle') {
	      this.cache.remove(this);
	    }
	  }

	  setData(newData, options) {
	    const data = replaceData(this.state.data, newData, this.options); // Set data and mark it as cached

	    this.dispatch({
	      data,
	      type: 'success',
	      dataUpdatedAt: options == null ? void 0 : options.updatedAt,
	      manual: options == null ? void 0 : options.manual
	    });
	    return data;
	  }

	  setState(state, setStateOptions) {
	    this.dispatch({
	      type: 'setState',
	      state,
	      setStateOptions
	    });
	  }

	  cancel(options) {
	    var _this$retryer;

	    const promise = this.promise;
	    (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options);
	    return promise ? promise.then(noop).catch(noop) : Promise.resolve();
	  }

	  destroy() {
	    super.destroy();
	    this.cancel({
	      silent: true
	    });
	  }

	  reset() {
	    this.destroy();
	    this.setState(this.initialState);
	  }

	  isActive() {
	    return this.observers.some(observer => observer.options.enabled !== false);
	  }

	  isDisabled() {
	    return this.getObserversCount() > 0 && !this.isActive();
	  }

	  isStale() {
	    return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(observer => observer.getCurrentResult().isStale);
	  }

	  isStaleByTime(staleTime = 0) {
	    return this.state.isInvalidated || !this.state.dataUpdatedAt || !timeUntilStale(this.state.dataUpdatedAt, staleTime);
	  }

	  onFocus() {
	    var _this$retryer2;

	    const observer = this.observers.find(x => x.shouldFetchOnWindowFocus());

	    if (observer) {
	      observer.refetch({
	        cancelRefetch: false
	      });
	    } // Continue fetch if currently paused


	    (_this$retryer2 = this.retryer) == null ? void 0 : _this$retryer2.continue();
	  }

	  onOnline() {
	    var _this$retryer3;

	    const observer = this.observers.find(x => x.shouldFetchOnReconnect());

	    if (observer) {
	      observer.refetch({
	        cancelRefetch: false
	      });
	    } // Continue fetch if currently paused


	    (_this$retryer3 = this.retryer) == null ? void 0 : _this$retryer3.continue();
	  }

	  addObserver(observer) {
	    if (!this.observers.includes(observer)) {
	      this.observers.push(observer); // Stop the query from being garbage collected

	      this.clearGcTimeout();
	      this.cache.notify({
	        type: 'observerAdded',
	        query: this,
	        observer
	      });
	    }
	  }

	  removeObserver(observer) {
	    if (this.observers.includes(observer)) {
	      this.observers = this.observers.filter(x => x !== observer);

	      if (!this.observers.length) {
	        // If the transport layer does not support cancellation
	        // we'll let the query continue so the result can be cached
	        if (this.retryer) {
	          if (this.abortSignalConsumed) {
	            this.retryer.cancel({
	              revert: true
	            });
	          } else {
	            this.retryer.cancelRetry();
	          }
	        }

	        this.scheduleGc();
	      }

	      this.cache.notify({
	        type: 'observerRemoved',
	        query: this,
	        observer
	      });
	    }
	  }

	  getObserversCount() {
	    return this.observers.length;
	  }

	  invalidate() {
	    if (!this.state.isInvalidated) {
	      this.dispatch({
	        type: 'invalidate'
	      });
	    }
	  }

	  fetch(options, fetchOptions) {
	    var _this$options$behavio, _context$fetchOptions;

	    if (this.state.fetchStatus !== 'idle') {
	      if (this.state.dataUpdatedAt && fetchOptions != null && fetchOptions.cancelRefetch) {
	        // Silently cancel current fetch if the user wants to cancel refetches
	        this.cancel({
	          silent: true
	        });
	      } else if (this.promise) {
	        var _this$retryer4;

	        // make sure that retries that were potentially cancelled due to unmounts can continue
	        (_this$retryer4 = this.retryer) == null ? void 0 : _this$retryer4.continueRetry(); // Return current promise if we are already fetching

	        return this.promise;
	      }
	    } // Update config if passed, otherwise the config from the last execution is used


	    if (options) {
	      this.setOptions(options);
	    } // Use the options from the first observer with a query function if no function is found.
	    // This can happen when the query is hydrated or created with setQueryData.


	    if (!this.options.queryFn) {
	      const observer = this.observers.find(x => x.options.queryFn);

	      if (observer) {
	        this.setOptions(observer.options);
	      }
	    }

	    if (process.env.NODE_ENV !== 'production') {
	      if (!Array.isArray(this.options.queryKey)) {
	        this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");
	      }
	    }

	    const abortController = getAbortController(); // Create query function context

	    const queryFnContext = {
	      queryKey: this.queryKey,
	      pageParam: undefined,
	      meta: this.meta
	    }; // Adds an enumerable signal property to the object that
	    // which sets abortSignalConsumed to true when the signal
	    // is read.

	    const addSignalProperty = object => {
	      Object.defineProperty(object, 'signal', {
	        enumerable: true,
	        get: () => {
	          if (abortController) {
	            this.abortSignalConsumed = true;
	            return abortController.signal;
	          }

	          return undefined;
	        }
	      });
	    };

	    addSignalProperty(queryFnContext); // Create fetch function

	    const fetchFn = () => {
	      if (!this.options.queryFn) {
	        return Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'");
	      }

	      this.abortSignalConsumed = false;
	      return this.options.queryFn(queryFnContext);
	    }; // Trigger behavior hook


	    const context = {
	      fetchOptions,
	      options: this.options,
	      queryKey: this.queryKey,
	      state: this.state,
	      fetchFn
	    };
	    addSignalProperty(context);
	    (_this$options$behavio = this.options.behavior) == null ? void 0 : _this$options$behavio.onFetch(context); // Store state in case the current fetch needs to be reverted

	    this.revertState = this.state; // Set to fetching state if not already in it

	    if (this.state.fetchStatus === 'idle' || this.state.fetchMeta !== ((_context$fetchOptions = context.fetchOptions) == null ? void 0 : _context$fetchOptions.meta)) {
	      var _context$fetchOptions2;

	      this.dispatch({
	        type: 'fetch',
	        meta: (_context$fetchOptions2 = context.fetchOptions) == null ? void 0 : _context$fetchOptions2.meta
	      });
	    }

	    const onError = error => {
	      // Optimistically update state if needed
	      if (!(isCancelledError(error) && error.silent)) {
	        this.dispatch({
	          type: 'error',
	          error: error
	        });
	      }

	      if (!isCancelledError(error)) {
	        var _this$cache$config$on, _this$cache$config, _this$cache$config$on2, _this$cache$config2;

	        // Notify cache callback
	        (_this$cache$config$on = (_this$cache$config = this.cache.config).onError) == null ? void 0 : _this$cache$config$on.call(_this$cache$config, error, this);
	        (_this$cache$config$on2 = (_this$cache$config2 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on2.call(_this$cache$config2, this.state.data, error, this);

	        if (process.env.NODE_ENV !== 'production') {
	          this.logger.error(error);
	        }
	      }

	      if (!this.isFetchingOptimistic) {
	        // Schedule query gc after fetching
	        this.scheduleGc();
	      }

	      this.isFetchingOptimistic = false;
	    }; // Try to fetch the data


	    this.retryer = createRetryer({
	      fn: context.fetchFn,
	      abort: abortController == null ? void 0 : abortController.abort.bind(abortController),
	      onSuccess: data => {
	        var _this$cache$config$on3, _this$cache$config3, _this$cache$config$on4, _this$cache$config4;

	        if (typeof data === 'undefined') {
	          if (process.env.NODE_ENV !== 'production') {
	            this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: " + this.queryHash);
	          }

	          onError(new Error(this.queryHash + " data is undefined"));
	          return;
	        }

	        this.setData(data); // Notify cache callback

	        (_this$cache$config$on3 = (_this$cache$config3 = this.cache.config).onSuccess) == null ? void 0 : _this$cache$config$on3.call(_this$cache$config3, data, this);
	        (_this$cache$config$on4 = (_this$cache$config4 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on4.call(_this$cache$config4, data, this.state.error, this);

	        if (!this.isFetchingOptimistic) {
	          // Schedule query gc after fetching
	          this.scheduleGc();
	        }

	        this.isFetchingOptimistic = false;
	      },
	      onError,
	      onFail: (failureCount, error) => {
	        this.dispatch({
	          type: 'failed',
	          failureCount,
	          error
	        });
	      },
	      onPause: () => {
	        this.dispatch({
	          type: 'pause'
	        });
	      },
	      onContinue: () => {
	        this.dispatch({
	          type: 'continue'
	        });
	      },
	      retry: context.options.retry,
	      retryDelay: context.options.retryDelay,
	      networkMode: context.options.networkMode
	    });
	    this.promise = this.retryer.promise;
	    return this.promise;
	  }

	  dispatch(action) {
	    const reducer = state => {
	      var _action$meta, _action$dataUpdatedAt;

	      switch (action.type) {
	        case 'failed':
	          return { ...state,
	            fetchFailureCount: action.failureCount,
	            fetchFailureReason: action.error
	          };

	        case 'pause':
	          return { ...state,
	            fetchStatus: 'paused'
	          };

	        case 'continue':
	          return { ...state,
	            fetchStatus: 'fetching'
	          };

	        case 'fetch':
	          return { ...state,
	            fetchFailureCount: 0,
	            fetchFailureReason: null,
	            fetchMeta: (_action$meta = action.meta) != null ? _action$meta : null,
	            fetchStatus: canFetch(this.options.networkMode) ? 'fetching' : 'paused',
	            ...(!state.dataUpdatedAt && {
	              error: null,
	              status: 'loading'
	            })
	          };

	        case 'success':
	          return { ...state,
	            data: action.data,
	            dataUpdateCount: state.dataUpdateCount + 1,
	            dataUpdatedAt: (_action$dataUpdatedAt = action.dataUpdatedAt) != null ? _action$dataUpdatedAt : Date.now(),
	            error: null,
	            isInvalidated: false,
	            status: 'success',
	            ...(!action.manual && {
	              fetchStatus: 'idle',
	              fetchFailureCount: 0,
	              fetchFailureReason: null
	            })
	          };

	        case 'error':
	          const error = action.error;

	          if (isCancelledError(error) && error.revert && this.revertState) {
	            return { ...this.revertState,
	              fetchStatus: 'idle'
	            };
	          }

	          return { ...state,
	            error: error,
	            errorUpdateCount: state.errorUpdateCount + 1,
	            errorUpdatedAt: Date.now(),
	            fetchFailureCount: state.fetchFailureCount + 1,
	            fetchFailureReason: error,
	            fetchStatus: 'idle',
	            status: 'error'
	          };

	        case 'invalidate':
	          return { ...state,
	            isInvalidated: true
	          };

	        case 'setState':
	          return { ...state,
	            ...action.state
	          };
	      }
	    };

	    this.state = reducer(this.state);
	    notifyManager.batch(() => {
	      this.observers.forEach(observer => {
	        observer.onQueryUpdate(action);
	      });
	      this.cache.notify({
	        query: this,
	        type: 'updated',
	        action
	      });
	    });
	  }

	}

	function getDefaultState$1(options) {
	  const data = typeof options.initialData === 'function' ? options.initialData() : options.initialData;
	  const hasData = typeof data !== 'undefined';
	  const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === 'function' ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
	  return {
	    data,
	    dataUpdateCount: 0,
	    dataUpdatedAt: hasData ? initialDataUpdatedAt != null ? initialDataUpdatedAt : Date.now() : 0,
	    error: null,
	    errorUpdateCount: 0,
	    errorUpdatedAt: 0,
	    fetchFailureCount: 0,
	    fetchFailureReason: null,
	    fetchMeta: null,
	    isInvalidated: false,
	    status: hasData ? 'success' : 'loading',
	    fetchStatus: 'idle'
	  };
	}

	// CLASS
	class QueryCache extends Subscribable {
	  constructor(config) {
	    super();
	    this.config = config || {};
	    this.queries = [];
	    this.queriesMap = {};
	  }

	  build(client, options, state) {
	    var _options$queryHash;

	    const queryKey = options.queryKey;
	    const queryHash = (_options$queryHash = options.queryHash) != null ? _options$queryHash : hashQueryKeyByOptions(queryKey, options);
	    let query = this.get(queryHash);

	    if (!query) {
	      query = new Query({
	        cache: this,
	        logger: client.getLogger(),
	        queryKey,
	        queryHash,
	        options: client.defaultQueryOptions(options),
	        state,
	        defaultOptions: client.getQueryDefaults(queryKey)
	      });
	      this.add(query);
	    }

	    return query;
	  }

	  add(query) {
	    if (!this.queriesMap[query.queryHash]) {
	      this.queriesMap[query.queryHash] = query;
	      this.queries.push(query);
	      this.notify({
	        type: 'added',
	        query
	      });
	    }
	  }

	  remove(query) {
	    const queryInMap = this.queriesMap[query.queryHash];

	    if (queryInMap) {
	      query.destroy();
	      this.queries = this.queries.filter(x => x !== query);

	      if (queryInMap === query) {
	        delete this.queriesMap[query.queryHash];
	      }

	      this.notify({
	        type: 'removed',
	        query
	      });
	    }
	  }

	  clear() {
	    notifyManager.batch(() => {
	      this.queries.forEach(query => {
	        this.remove(query);
	      });
	    });
	  }

	  get(queryHash) {
	    return this.queriesMap[queryHash];
	  }

	  getAll() {
	    return this.queries;
	  }

	  find(arg1, arg2) {
	    const [filters] = parseFilterArgs(arg1, arg2);

	    if (typeof filters.exact === 'undefined') {
	      filters.exact = true;
	    }

	    return this.queries.find(query => matchQuery(filters, query));
	  }

	  findAll(arg1, arg2) {
	    const [filters] = parseFilterArgs(arg1, arg2);
	    return Object.keys(filters).length > 0 ? this.queries.filter(query => matchQuery(filters, query)) : this.queries;
	  }

	  notify(event) {
	    notifyManager.batch(() => {
	      this.listeners.forEach(({
	        listener
	      }) => {
	        listener(event);
	      });
	    });
	  }

	  onFocus() {
	    notifyManager.batch(() => {
	      this.queries.forEach(query => {
	        query.onFocus();
	      });
	    });
	  }

	  onOnline() {
	    notifyManager.batch(() => {
	      this.queries.forEach(query => {
	        query.onOnline();
	      });
	    });
	  }

	}

	// CLASS
	class Mutation extends Removable {
	  constructor(config) {
	    super();
	    this.defaultOptions = config.defaultOptions;
	    this.mutationId = config.mutationId;
	    this.mutationCache = config.mutationCache;
	    this.logger = config.logger || defaultLogger;
	    this.observers = [];
	    this.state = config.state || getDefaultState();
	    this.setOptions(config.options);
	    this.scheduleGc();
	  }

	  setOptions(options) {
	    this.options = { ...this.defaultOptions,
	      ...options
	    };
	    this.updateCacheTime(this.options.cacheTime);
	  }

	  get meta() {
	    return this.options.meta;
	  }

	  setState(state) {
	    this.dispatch({
	      type: 'setState',
	      state
	    });
	  }

	  addObserver(observer) {
	    if (!this.observers.includes(observer)) {
	      this.observers.push(observer); // Stop the mutation from being garbage collected

	      this.clearGcTimeout();
	      this.mutationCache.notify({
	        type: 'observerAdded',
	        mutation: this,
	        observer
	      });
	    }
	  }

	  removeObserver(observer) {
	    this.observers = this.observers.filter(x => x !== observer);
	    this.scheduleGc();
	    this.mutationCache.notify({
	      type: 'observerRemoved',
	      mutation: this,
	      observer
	    });
	  }

	  optionalRemove() {
	    if (!this.observers.length) {
	      if (this.state.status === 'loading') {
	        this.scheduleGc();
	      } else {
	        this.mutationCache.remove(this);
	      }
	    }
	  }

	  continue() {
	    var _this$retryer$continu, _this$retryer;

	    return (_this$retryer$continu = (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.continue()) != null ? _this$retryer$continu : this.execute();
	  }

	  async execute() {
	    const executeMutation = () => {
	      var _this$options$retry;

	      this.retryer = createRetryer({
	        fn: () => {
	          if (!this.options.mutationFn) {
	            return Promise.reject('No mutationFn found');
	          }

	          return this.options.mutationFn(this.state.variables);
	        },
	        onFail: (failureCount, error) => {
	          this.dispatch({
	            type: 'failed',
	            failureCount,
	            error
	          });
	        },
	        onPause: () => {
	          this.dispatch({
	            type: 'pause'
	          });
	        },
	        onContinue: () => {
	          this.dispatch({
	            type: 'continue'
	          });
	        },
	        retry: (_this$options$retry = this.options.retry) != null ? _this$options$retry : 0,
	        retryDelay: this.options.retryDelay,
	        networkMode: this.options.networkMode
	      });
	      return this.retryer.promise;
	    };

	    const restored = this.state.status === 'loading';

	    try {
	      var _this$mutationCache$c3, _this$mutationCache$c4, _this$options$onSucce, _this$options2, _this$mutationCache$c5, _this$mutationCache$c6, _this$options$onSettl, _this$options3;

	      if (!restored) {
	        var _this$mutationCache$c, _this$mutationCache$c2, _this$options$onMutat, _this$options;

	        this.dispatch({
	          type: 'loading',
	          variables: this.options.variables
	        }); // Notify cache callback

	        await ((_this$mutationCache$c = (_this$mutationCache$c2 = this.mutationCache.config).onMutate) == null ? void 0 : _this$mutationCache$c.call(_this$mutationCache$c2, this.state.variables, this));
	        const context = await ((_this$options$onMutat = (_this$options = this.options).onMutate) == null ? void 0 : _this$options$onMutat.call(_this$options, this.state.variables));

	        if (context !== this.state.context) {
	          this.dispatch({
	            type: 'loading',
	            context,
	            variables: this.state.variables
	          });
	        }
	      }

	      const data = await executeMutation(); // Notify cache callback

	      await ((_this$mutationCache$c3 = (_this$mutationCache$c4 = this.mutationCache.config).onSuccess) == null ? void 0 : _this$mutationCache$c3.call(_this$mutationCache$c4, data, this.state.variables, this.state.context, this));
	      await ((_this$options$onSucce = (_this$options2 = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options2, data, this.state.variables, this.state.context)); // Notify cache callback

	      await ((_this$mutationCache$c5 = (_this$mutationCache$c6 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c5.call(_this$mutationCache$c6, data, null, this.state.variables, this.state.context, this));
	      await ((_this$options$onSettl = (_this$options3 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options3, data, null, this.state.variables, this.state.context));
	      this.dispatch({
	        type: 'success',
	        data
	      });
	      return data;
	    } catch (error) {
	      try {
	        var _this$mutationCache$c7, _this$mutationCache$c8, _this$options$onError, _this$options4, _this$mutationCache$c9, _this$mutationCache$c10, _this$options$onSettl2, _this$options5;

	        // Notify cache callback
	        await ((_this$mutationCache$c7 = (_this$mutationCache$c8 = this.mutationCache.config).onError) == null ? void 0 : _this$mutationCache$c7.call(_this$mutationCache$c8, error, this.state.variables, this.state.context, this));

	        if (process.env.NODE_ENV !== 'production') {
	          this.logger.error(error);
	        }

	        await ((_this$options$onError = (_this$options4 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options4, error, this.state.variables, this.state.context)); // Notify cache callback

	        await ((_this$mutationCache$c9 = (_this$mutationCache$c10 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c9.call(_this$mutationCache$c10, undefined, error, this.state.variables, this.state.context, this));
	        await ((_this$options$onSettl2 = (_this$options5 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options5, undefined, error, this.state.variables, this.state.context));
	        throw error;
	      } finally {
	        this.dispatch({
	          type: 'error',
	          error: error
	        });
	      }
	    }
	  }

	  dispatch(action) {
	    const reducer = state => {
	      switch (action.type) {
	        case 'failed':
	          return { ...state,
	            failureCount: action.failureCount,
	            failureReason: action.error
	          };

	        case 'pause':
	          return { ...state,
	            isPaused: true
	          };

	        case 'continue':
	          return { ...state,
	            isPaused: false
	          };

	        case 'loading':
	          return { ...state,
	            context: action.context,
	            data: undefined,
	            failureCount: 0,
	            failureReason: null,
	            error: null,
	            isPaused: !canFetch(this.options.networkMode),
	            status: 'loading',
	            variables: action.variables
	          };

	        case 'success':
	          return { ...state,
	            data: action.data,
	            failureCount: 0,
	            failureReason: null,
	            error: null,
	            status: 'success',
	            isPaused: false
	          };

	        case 'error':
	          return { ...state,
	            data: undefined,
	            error: action.error,
	            failureCount: state.failureCount + 1,
	            failureReason: action.error,
	            isPaused: false,
	            status: 'error'
	          };

	        case 'setState':
	          return { ...state,
	            ...action.state
	          };
	      }
	    };

	    this.state = reducer(this.state);
	    notifyManager.batch(() => {
	      this.observers.forEach(observer => {
	        observer.onMutationUpdate(action);
	      });
	      this.mutationCache.notify({
	        mutation: this,
	        type: 'updated',
	        action
	      });
	    });
	  }

	}
	function getDefaultState() {
	  return {
	    context: undefined,
	    data: undefined,
	    error: null,
	    failureCount: 0,
	    failureReason: null,
	    isPaused: false,
	    status: 'idle',
	    variables: undefined
	  };
	}

	// CLASS
	class MutationCache extends Subscribable {
	  constructor(config) {
	    super();
	    this.config = config || {};
	    this.mutations = [];
	    this.mutationId = 0;
	  }

	  build(client, options, state) {
	    const mutation = new Mutation({
	      mutationCache: this,
	      logger: client.getLogger(),
	      mutationId: ++this.mutationId,
	      options: client.defaultMutationOptions(options),
	      state,
	      defaultOptions: options.mutationKey ? client.getMutationDefaults(options.mutationKey) : undefined
	    });
	    this.add(mutation);
	    return mutation;
	  }

	  add(mutation) {
	    this.mutations.push(mutation);
	    this.notify({
	      type: 'added',
	      mutation
	    });
	  }

	  remove(mutation) {
	    this.mutations = this.mutations.filter(x => x !== mutation);
	    this.notify({
	      type: 'removed',
	      mutation
	    });
	  }

	  clear() {
	    notifyManager.batch(() => {
	      this.mutations.forEach(mutation => {
	        this.remove(mutation);
	      });
	    });
	  }

	  getAll() {
	    return this.mutations;
	  }

	  find(filters) {
	    if (typeof filters.exact === 'undefined') {
	      filters.exact = true;
	    }

	    return this.mutations.find(mutation => matchMutation(filters, mutation));
	  }

	  findAll(filters) {
	    return this.mutations.filter(mutation => matchMutation(filters, mutation));
	  }

	  notify(event) {
	    notifyManager.batch(() => {
	      this.listeners.forEach(({
	        listener
	      }) => {
	        listener(event);
	      });
	    });
	  }

	  resumePausedMutations() {
	    var _this$resuming;

	    this.resuming = ((_this$resuming = this.resuming) != null ? _this$resuming : Promise.resolve()).then(() => {
	      const pausedMutations = this.mutations.filter(x => x.state.isPaused);
	      return notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(noop)), Promise.resolve()));
	    }).then(() => {
	      this.resuming = undefined;
	    });
	    return this.resuming;
	  }

	}

	function infiniteQueryBehavior() {
	  return {
	    onFetch: context => {
	      context.fetchFn = () => {
	        var _context$fetchOptions, _context$fetchOptions2, _context$fetchOptions3, _context$fetchOptions4, _context$state$data, _context$state$data2;

	        const refetchPage = (_context$fetchOptions = context.fetchOptions) == null ? void 0 : (_context$fetchOptions2 = _context$fetchOptions.meta) == null ? void 0 : _context$fetchOptions2.refetchPage;
	        const fetchMore = (_context$fetchOptions3 = context.fetchOptions) == null ? void 0 : (_context$fetchOptions4 = _context$fetchOptions3.meta) == null ? void 0 : _context$fetchOptions4.fetchMore;
	        const pageParam = fetchMore == null ? void 0 : fetchMore.pageParam;
	        const isFetchingNextPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'forward';
	        const isFetchingPreviousPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'backward';
	        const oldPages = ((_context$state$data = context.state.data) == null ? void 0 : _context$state$data.pages) || [];
	        const oldPageParams = ((_context$state$data2 = context.state.data) == null ? void 0 : _context$state$data2.pageParams) || [];
	        let newPageParams = oldPageParams;
	        let cancelled = false;

	        const addSignalProperty = object => {
	          Object.defineProperty(object, 'signal', {
	            enumerable: true,
	            get: () => {
	              var _context$signal;

	              if ((_context$signal = context.signal) != null && _context$signal.aborted) {
	                cancelled = true;
	              } else {
	                var _context$signal2;

	                (_context$signal2 = context.signal) == null ? void 0 : _context$signal2.addEventListener('abort', () => {
	                  cancelled = true;
	                });
	              }

	              return context.signal;
	            }
	          });
	        }; // Get query function


	        const queryFn = context.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + context.options.queryHash + "'"));

	        const buildNewPages = (pages, param, page, previous) => {
	          newPageParams = previous ? [param, ...newPageParams] : [...newPageParams, param];
	          return previous ? [page, ...pages] : [...pages, page];
	        }; // Create function to fetch a page


	        const fetchPage = (pages, manual, param, previous) => {
	          if (cancelled) {
	            return Promise.reject('Cancelled');
	          }

	          if (typeof param === 'undefined' && !manual && pages.length) {
	            return Promise.resolve(pages);
	          }

	          const queryFnContext = {
	            queryKey: context.queryKey,
	            pageParam: param,
	            meta: context.options.meta
	          };
	          addSignalProperty(queryFnContext);
	          const queryFnResult = queryFn(queryFnContext);
	          const promise = Promise.resolve(queryFnResult).then(page => buildNewPages(pages, param, page, previous));
	          return promise;
	        };

	        let promise; // Fetch first page?

	        if (!oldPages.length) {
	          promise = fetchPage([]);
	        } // Fetch next page?
	        else if (isFetchingNextPage) {
	          const manual = typeof pageParam !== 'undefined';
	          const param = manual ? pageParam : getNextPageParam(context.options, oldPages);
	          promise = fetchPage(oldPages, manual, param);
	        } // Fetch previous page?
	        else if (isFetchingPreviousPage) {
	          const manual = typeof pageParam !== 'undefined';
	          const param = manual ? pageParam : getPreviousPageParam(context.options, oldPages);
	          promise = fetchPage(oldPages, manual, param, true);
	        } // Refetch pages
	        else {
	          newPageParams = [];
	          const manual = typeof context.options.getNextPageParam === 'undefined';
	          const shouldFetchFirstPage = refetchPage && oldPages[0] ? refetchPage(oldPages[0], 0, oldPages) : true; // Fetch first page

	          promise = shouldFetchFirstPage ? fetchPage([], manual, oldPageParams[0]) : Promise.resolve(buildNewPages([], oldPageParams[0], oldPages[0])); // Fetch remaining pages

	          for (let i = 1; i < oldPages.length; i++) {
	            promise = promise.then(pages => {
	              const shouldFetchNextPage = refetchPage && oldPages[i] ? refetchPage(oldPages[i], i, oldPages) : true;

	              if (shouldFetchNextPage) {
	                const param = manual ? oldPageParams[i] : getNextPageParam(context.options, pages);
	                return fetchPage(pages, manual, param);
	              }

	              return Promise.resolve(buildNewPages(pages, oldPageParams[i], oldPages[i]));
	            });
	          }
	        }

	        const finalPromise = promise.then(pages => ({
	          pages,
	          pageParams: newPageParams
	        }));
	        return finalPromise;
	      };
	    }
	  };
	}
	function getNextPageParam(options, pages) {
	  return options.getNextPageParam == null ? void 0 : options.getNextPageParam(pages[pages.length - 1], pages);
	}
	function getPreviousPageParam(options, pages) {
	  return options.getPreviousPageParam == null ? void 0 : options.getPreviousPageParam(pages[0], pages);
	}

	// CLASS
	class QueryClient {
	  constructor(config = {}) {
	    this.queryCache = config.queryCache || new QueryCache();
	    this.mutationCache = config.mutationCache || new MutationCache();
	    this.logger = config.logger || defaultLogger;
	    this.defaultOptions = config.defaultOptions || {};
	    this.queryDefaults = [];
	    this.mutationDefaults = [];
	    this.mountCount = 0;

	    if (process.env.NODE_ENV !== 'production' && config.logger) {
	      this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.");
	    }
	  }

	  mount() {
	    this.mountCount++;
	    if (this.mountCount !== 1) return;
	    this.unsubscribeFocus = focusManager.subscribe(() => {
	      if (focusManager.isFocused()) {
	        this.resumePausedMutations();
	        this.queryCache.onFocus();
	      }
	    });
	    this.unsubscribeOnline = onlineManager.subscribe(() => {
	      if (onlineManager.isOnline()) {
	        this.resumePausedMutations();
	        this.queryCache.onOnline();
	      }
	    });
	  }

	  unmount() {
	    var _this$unsubscribeFocu, _this$unsubscribeOnli;

	    this.mountCount--;
	    if (this.mountCount !== 0) return;
	    (_this$unsubscribeFocu = this.unsubscribeFocus) == null ? void 0 : _this$unsubscribeFocu.call(this);
	    this.unsubscribeFocus = undefined;
	    (_this$unsubscribeOnli = this.unsubscribeOnline) == null ? void 0 : _this$unsubscribeOnli.call(this);
	    this.unsubscribeOnline = undefined;
	  }

	  isFetching(arg1, arg2) {
	    const [filters] = parseFilterArgs(arg1, arg2);
	    filters.fetchStatus = 'fetching';
	    return this.queryCache.findAll(filters).length;
	  }

	  isMutating(filters) {
	    return this.mutationCache.findAll({ ...filters,
	      fetching: true
	    }).length;
	  }

	  getQueryData(queryKey, filters) {
	    var _this$queryCache$find;

	    return (_this$queryCache$find = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find.state.data;
	  }

	  ensureQueryData(arg1, arg2, arg3) {
	    const parsedOptions = parseQueryArgs(arg1, arg2, arg3);
	    const cachedData = this.getQueryData(parsedOptions.queryKey);
	    return cachedData ? Promise.resolve(cachedData) : this.fetchQuery(parsedOptions);
	  }

	  getQueriesData(queryKeyOrFilters) {
	    return this.getQueryCache().findAll(queryKeyOrFilters).map(({
	      queryKey,
	      state
	    }) => {
	      const data = state.data;
	      return [queryKey, data];
	    });
	  }

	  setQueryData(queryKey, updater, options) {
	    const query = this.queryCache.find(queryKey);
	    const prevData = query == null ? void 0 : query.state.data;
	    const data = functionalUpdate(updater, prevData);

	    if (typeof data === 'undefined') {
	      return undefined;
	    }

	    const parsedOptions = parseQueryArgs(queryKey);
	    const defaultedOptions = this.defaultQueryOptions(parsedOptions);
	    return this.queryCache.build(this, defaultedOptions).setData(data, { ...options,
	      manual: true
	    });
	  }

	  setQueriesData(queryKeyOrFilters, updater, options) {
	    return notifyManager.batch(() => this.getQueryCache().findAll(queryKeyOrFilters).map(({
	      queryKey
	    }) => [queryKey, this.setQueryData(queryKey, updater, options)]));
	  }

	  getQueryState(queryKey, filters) {
	    var _this$queryCache$find2;

	    return (_this$queryCache$find2 = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find2.state;
	  }

	  removeQueries(arg1, arg2) {
	    const [filters] = parseFilterArgs(arg1, arg2);
	    const queryCache = this.queryCache;
	    notifyManager.batch(() => {
	      queryCache.findAll(filters).forEach(query => {
	        queryCache.remove(query);
	      });
	    });
	  }

	  resetQueries(arg1, arg2, arg3) {
	    const [filters, options] = parseFilterArgs(arg1, arg2, arg3);
	    const queryCache = this.queryCache;
	    const refetchFilters = {
	      type: 'active',
	      ...filters
	    };
	    return notifyManager.batch(() => {
	      queryCache.findAll(filters).forEach(query => {
	        query.reset();
	      });
	      return this.refetchQueries(refetchFilters, options);
	    });
	  }

	  cancelQueries(arg1, arg2, arg3) {
	    const [filters, cancelOptions = {}] = parseFilterArgs(arg1, arg2, arg3);

	    if (typeof cancelOptions.revert === 'undefined') {
	      cancelOptions.revert = true;
	    }

	    const promises = notifyManager.batch(() => this.queryCache.findAll(filters).map(query => query.cancel(cancelOptions)));
	    return Promise.all(promises).then(noop).catch(noop);
	  }

	  invalidateQueries(arg1, arg2, arg3) {
	    const [filters, options] = parseFilterArgs(arg1, arg2, arg3);
	    return notifyManager.batch(() => {
	      var _ref, _filters$refetchType;

	      this.queryCache.findAll(filters).forEach(query => {
	        query.invalidate();
	      });

	      if (filters.refetchType === 'none') {
	        return Promise.resolve();
	      }

	      const refetchFilters = { ...filters,
	        type: (_ref = (_filters$refetchType = filters.refetchType) != null ? _filters$refetchType : filters.type) != null ? _ref : 'active'
	      };
	      return this.refetchQueries(refetchFilters, options);
	    });
	  }

	  refetchQueries(arg1, arg2, arg3) {
	    const [filters, options] = parseFilterArgs(arg1, arg2, arg3);
	    const promises = notifyManager.batch(() => this.queryCache.findAll(filters).filter(query => !query.isDisabled()).map(query => {
	      var _options$cancelRefetc;

	      return query.fetch(undefined, { ...options,
	        cancelRefetch: (_options$cancelRefetc = options == null ? void 0 : options.cancelRefetch) != null ? _options$cancelRefetc : true,
	        meta: {
	          refetchPage: filters.refetchPage
	        }
	      });
	    }));
	    let promise = Promise.all(promises).then(noop);

	    if (!(options != null && options.throwOnError)) {
	      promise = promise.catch(noop);
	    }

	    return promise;
	  }

	  fetchQuery(arg1, arg2, arg3) {
	    const parsedOptions = parseQueryArgs(arg1, arg2, arg3);
	    const defaultedOptions = this.defaultQueryOptions(parsedOptions); // https://github.com/tannerlinsley/react-query/issues/652

	    if (typeof defaultedOptions.retry === 'undefined') {
	      defaultedOptions.retry = false;
	    }

	    const query = this.queryCache.build(this, defaultedOptions);
	    return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
	  }

	  prefetchQuery(arg1, arg2, arg3) {
	    return this.fetchQuery(arg1, arg2, arg3).then(noop).catch(noop);
	  }

	  fetchInfiniteQuery(arg1, arg2, arg3) {
	    const parsedOptions = parseQueryArgs(arg1, arg2, arg3);
	    parsedOptions.behavior = infiniteQueryBehavior();
	    return this.fetchQuery(parsedOptions);
	  }

	  prefetchInfiniteQuery(arg1, arg2, arg3) {
	    return this.fetchInfiniteQuery(arg1, arg2, arg3).then(noop).catch(noop);
	  }

	  resumePausedMutations() {
	    return this.mutationCache.resumePausedMutations();
	  }

	  getQueryCache() {
	    return this.queryCache;
	  }

	  getMutationCache() {
	    return this.mutationCache;
	  }

	  getLogger() {
	    return this.logger;
	  }

	  getDefaultOptions() {
	    return this.defaultOptions;
	  }

	  setDefaultOptions(options) {
	    this.defaultOptions = options;
	  }

	  setQueryDefaults(queryKey, options) {
	    const result = this.queryDefaults.find(x => hashQueryKey(queryKey) === hashQueryKey(x.queryKey));

	    if (result) {
	      result.defaultOptions = options;
	    } else {
	      this.queryDefaults.push({
	        queryKey,
	        defaultOptions: options
	      });
	    }
	  }

	  getQueryDefaults(queryKey) {
	    if (!queryKey) {
	      return undefined;
	    } // Get the first matching defaults


	    const firstMatchingDefaults = this.queryDefaults.find(x => partialMatchKey(queryKey, x.queryKey)); // Additional checks and error in dev mode

	    if (process.env.NODE_ENV !== 'production') {
	      // Retrieve all matching defaults for the given key
	      const matchingDefaults = this.queryDefaults.filter(x => partialMatchKey(queryKey, x.queryKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key

	      if (matchingDefaults.length > 1) {
	        this.logger.error("[QueryClient] Several query defaults match with key '" + JSON.stringify(queryKey) + "'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.");
	      }
	    }

	    return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions;
	  }

	  setMutationDefaults(mutationKey, options) {
	    const result = this.mutationDefaults.find(x => hashQueryKey(mutationKey) === hashQueryKey(x.mutationKey));

	    if (result) {
	      result.defaultOptions = options;
	    } else {
	      this.mutationDefaults.push({
	        mutationKey,
	        defaultOptions: options
	      });
	    }
	  }

	  getMutationDefaults(mutationKey) {
	    if (!mutationKey) {
	      return undefined;
	    } // Get the first matching defaults


	    const firstMatchingDefaults = this.mutationDefaults.find(x => partialMatchKey(mutationKey, x.mutationKey)); // Additional checks and error in dev mode

	    if (process.env.NODE_ENV !== 'production') {
	      // Retrieve all matching defaults for the given key
	      const matchingDefaults = this.mutationDefaults.filter(x => partialMatchKey(mutationKey, x.mutationKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key

	      if (matchingDefaults.length > 1) {
	        this.logger.error("[QueryClient] Several mutation defaults match with key '" + JSON.stringify(mutationKey) + "'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.");
	      }
	    }

	    return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions;
	  }

	  defaultQueryOptions(options) {
	    if (options != null && options._defaulted) {
	      return options;
	    }

	    const defaultedOptions = { ...this.defaultOptions.queries,
	      ...this.getQueryDefaults(options == null ? void 0 : options.queryKey),
	      ...options,
	      _defaulted: true
	    };

	    if (!defaultedOptions.queryHash && defaultedOptions.queryKey) {
	      defaultedOptions.queryHash = hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions);
	    } // dependent default values


	    if (typeof defaultedOptions.refetchOnReconnect === 'undefined') {
	      defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== 'always';
	    }

	    if (typeof defaultedOptions.useErrorBoundary === 'undefined') {
	      defaultedOptions.useErrorBoundary = !!defaultedOptions.suspense;
	    }

	    return defaultedOptions;
	  }

	  defaultMutationOptions(options) {
	    if (options != null && options._defaulted) {
	      return options;
	    }

	    return { ...this.defaultOptions.mutations,
	      ...this.getMutationDefaults(options == null ? void 0 : options.mutationKey),
	      ...options,
	      _defaulted: true
	    };
	  }

	  clear() {
	    this.queryCache.clear();
	    this.mutationCache.clear();
	  }

	}

	class QueryObserver extends Subscribable {
	  constructor(client, options) {
	    super();
	    this.client = client;
	    this.options = options;
	    this.trackedProps = new Set();
	    this.selectError = null;
	    this.bindMethods();
	    this.setOptions(options);
	  }

	  bindMethods() {
	    this.remove = this.remove.bind(this);
	    this.refetch = this.refetch.bind(this);
	  }

	  onSubscribe() {
	    if (this.listeners.size === 1) {
	      this.currentQuery.addObserver(this);

	      if (shouldFetchOnMount(this.currentQuery, this.options)) {
	        this.executeFetch();
	      }

	      this.updateTimers();
	    }
	  }

	  onUnsubscribe() {
	    if (!this.hasListeners()) {
	      this.destroy();
	    }
	  }

	  shouldFetchOnReconnect() {
	    return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect);
	  }

	  shouldFetchOnWindowFocus() {
	    return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
	  }

	  destroy() {
	    this.listeners = new Set();
	    this.clearStaleTimeout();
	    this.clearRefetchInterval();
	    this.currentQuery.removeObserver(this);
	  }

	  setOptions(options, notifyOptions) {
	    const prevOptions = this.options;
	    const prevQuery = this.currentQuery;
	    this.options = this.client.defaultQueryOptions(options);

	    if (process.env.NODE_ENV !== 'production' && typeof (options == null ? void 0 : options.isDataEqual) !== 'undefined') {
	      this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option");
	    }

	    if (!shallowEqualObjects(prevOptions, this.options)) {
	      this.client.getQueryCache().notify({
	        type: 'observerOptionsUpdated',
	        query: this.currentQuery,
	        observer: this
	      });
	    }

	    if (typeof this.options.enabled !== 'undefined' && typeof this.options.enabled !== 'boolean') {
	      throw new Error('Expected enabled to be a boolean');
	    } // Keep previous query key if the user does not supply one


	    if (!this.options.queryKey) {
	      this.options.queryKey = prevOptions.queryKey;
	    }

	    this.updateQuery();
	    const mounted = this.hasListeners(); // Fetch if there are subscribers

	    if (mounted && shouldFetchOptionally(this.currentQuery, prevQuery, this.options, prevOptions)) {
	      this.executeFetch();
	    } // Update result


	    this.updateResult(notifyOptions); // Update stale interval if needed

	    if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) {
	      this.updateStaleTimeout();
	    }

	    const nextRefetchInterval = this.computeRefetchInterval(); // Update refetch interval if needed

	    if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.currentRefetchInterval)) {
	      this.updateRefetchInterval(nextRefetchInterval);
	    }
	  }

	  getOptimisticResult(options) {
	    const query = this.client.getQueryCache().build(this.client, options);
	    const result = this.createResult(query, options);

	    if (shouldAssignObserverCurrentProperties(this, result, options)) {
	      // this assigns the optimistic result to the current Observer
	      // because if the query function changes, useQuery will be performing
	      // an effect where it would fetch again.
	      // When the fetch finishes, we perform a deep data cloning in order
	      // to reuse objects references. This deep data clone is performed against
	      // the `observer.currentResult.data` property
	      // When QueryKey changes, we refresh the query and get new `optimistic`
	      // result, while we leave the `observer.currentResult`, so when new data
	      // arrives, it finds the old `observer.currentResult` which is related
	      // to the old QueryKey. Which means that currentResult and selectData are
	      // out of sync already.
	      // To solve this, we move the cursor of the currentResult everytime
	      // an observer reads an optimistic value.
	      // When keeping the previous data, the result doesn't change until new
	      // data arrives.
	      this.currentResult = result;
	      this.currentResultOptions = this.options;
	      this.currentResultState = this.currentQuery.state;
	    }

	    return result;
	  }

	  getCurrentResult() {
	    return this.currentResult;
	  }

	  trackResult(result) {
	    const trackedResult = {};
	    Object.keys(result).forEach(key => {
	      Object.defineProperty(trackedResult, key, {
	        configurable: false,
	        enumerable: true,
	        get: () => {
	          this.trackedProps.add(key);
	          return result[key];
	        }
	      });
	    });
	    return trackedResult;
	  }

	  getCurrentQuery() {
	    return this.currentQuery;
	  }

	  remove() {
	    this.client.getQueryCache().remove(this.currentQuery);
	  }

	  refetch({
	    refetchPage,
	    ...options
	  } = {}) {
	    return this.fetch({ ...options,
	      meta: {
	        refetchPage
	      }
	    });
	  }

	  fetchOptimistic(options) {
	    const defaultedOptions = this.client.defaultQueryOptions(options);
	    const query = this.client.getQueryCache().build(this.client, defaultedOptions);
	    query.isFetchingOptimistic = true;
	    return query.fetch().then(() => this.createResult(query, defaultedOptions));
	  }

	  fetch(fetchOptions) {
	    var _fetchOptions$cancelR;

	    return this.executeFetch({ ...fetchOptions,
	      cancelRefetch: (_fetchOptions$cancelR = fetchOptions.cancelRefetch) != null ? _fetchOptions$cancelR : true
	    }).then(() => {
	      this.updateResult();
	      return this.currentResult;
	    });
	  }

	  executeFetch(fetchOptions) {
	    // Make sure we reference the latest query as the current one might have been removed
	    this.updateQuery(); // Fetch

	    let promise = this.currentQuery.fetch(this.options, fetchOptions);

	    if (!(fetchOptions != null && fetchOptions.throwOnError)) {
	      promise = promise.catch(noop);
	    }

	    return promise;
	  }

	  updateStaleTimeout() {
	    this.clearStaleTimeout();

	    if (isServer || this.currentResult.isStale || !isValidTimeout(this.options.staleTime)) {
	      return;
	    }

	    const time = timeUntilStale(this.currentResult.dataUpdatedAt, this.options.staleTime); // The timeout is sometimes triggered 1 ms before the stale time expiration.
	    // To mitigate this issue we always add 1 ms to the timeout.

	    const timeout = time + 1;
	    this.staleTimeoutId = setTimeout(() => {
	      if (!this.currentResult.isStale) {
	        this.updateResult();
	      }
	    }, timeout);
	  }

	  computeRefetchInterval() {
	    var _this$options$refetch;

	    return typeof this.options.refetchInterval === 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (_this$options$refetch = this.options.refetchInterval) != null ? _this$options$refetch : false;
	  }

	  updateRefetchInterval(nextInterval) {
	    this.clearRefetchInterval();
	    this.currentRefetchInterval = nextInterval;

	    if (isServer || this.options.enabled === false || !isValidTimeout(this.currentRefetchInterval) || this.currentRefetchInterval === 0) {
	      return;
	    }

	    this.refetchIntervalId = setInterval(() => {
	      if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {
	        this.executeFetch();
	      }
	    }, this.currentRefetchInterval);
	  }

	  updateTimers() {
	    this.updateStaleTimeout();
	    this.updateRefetchInterval(this.computeRefetchInterval());
	  }

	  clearStaleTimeout() {
	    if (this.staleTimeoutId) {
	      clearTimeout(this.staleTimeoutId);
	      this.staleTimeoutId = undefined;
	    }
	  }

	  clearRefetchInterval() {
	    if (this.refetchIntervalId) {
	      clearInterval(this.refetchIntervalId);
	      this.refetchIntervalId = undefined;
	    }
	  }

	  createResult(query, options) {
	    const prevQuery = this.currentQuery;
	    const prevOptions = this.options;
	    const prevResult = this.currentResult;
	    const prevResultState = this.currentResultState;
	    const prevResultOptions = this.currentResultOptions;
	    const queryChange = query !== prevQuery;
	    const queryInitialState = queryChange ? query.state : this.currentQueryInitialState;
	    const prevQueryResult = queryChange ? this.currentResult : this.previousQueryResult;
	    const {
	      state
	    } = query;
	    let {
	      dataUpdatedAt,
	      error,
	      errorUpdatedAt,
	      fetchStatus,
	      status
	    } = state;
	    let isPreviousData = false;
	    let isPlaceholderData = false;
	    let data; // Optimistically set result in fetching state if needed

	    if (options._optimisticResults) {
	      const mounted = this.hasListeners();
	      const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
	      const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);

	      if (fetchOnMount || fetchOptionally) {
	        fetchStatus = canFetch(query.options.networkMode) ? 'fetching' : 'paused';

	        if (!dataUpdatedAt) {
	          status = 'loading';
	        }
	      }

	      if (options._optimisticResults === 'isRestoring') {
	        fetchStatus = 'idle';
	      }
	    } // Keep previous data if needed


	    if (options.keepPreviousData && !state.dataUpdatedAt && prevQueryResult != null && prevQueryResult.isSuccess && status !== 'error') {
	      data = prevQueryResult.data;
	      dataUpdatedAt = prevQueryResult.dataUpdatedAt;
	      status = prevQueryResult.status;
	      isPreviousData = true;
	    } // Select data if needed
	    else if (options.select && typeof state.data !== 'undefined') {
	      // Memoize select result
	      if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === this.selectFn) {
	        data = this.selectResult;
	      } else {
	        try {
	          this.selectFn = options.select;
	          data = options.select(state.data);
	          data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
	          this.selectResult = data;
	          this.selectError = null;
	        } catch (selectError) {
	          if (process.env.NODE_ENV !== 'production') {
	            this.client.getLogger().error(selectError);
	          }

	          this.selectError = selectError;
	        }
	      }
	    } // Use query data
	    else {
	      data = state.data;
	    } // Show placeholder data if needed


	    if (typeof options.placeholderData !== 'undefined' && typeof data === 'undefined' && status === 'loading') {
	      let placeholderData; // Memoize placeholder data

	      if (prevResult != null && prevResult.isPlaceholderData && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
	        placeholderData = prevResult.data;
	      } else {
	        placeholderData = typeof options.placeholderData === 'function' ? options.placeholderData() : options.placeholderData;

	        if (options.select && typeof placeholderData !== 'undefined') {
	          try {
	            placeholderData = options.select(placeholderData);
	            this.selectError = null;
	          } catch (selectError) {
	            if (process.env.NODE_ENV !== 'production') {
	              this.client.getLogger().error(selectError);
	            }

	            this.selectError = selectError;
	          }
	        }
	      }

	      if (typeof placeholderData !== 'undefined') {
	        status = 'success';
	        data = replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options);
	        isPlaceholderData = true;
	      }
	    }

	    if (this.selectError) {
	      error = this.selectError;
	      data = this.selectResult;
	      errorUpdatedAt = Date.now();
	      status = 'error';
	    }

	    const isFetching = fetchStatus === 'fetching';
	    const isLoading = status === 'loading';
	    const isError = status === 'error';
	    const result = {
	      status,
	      fetchStatus,
	      isLoading,
	      isSuccess: status === 'success',
	      isError,
	      isInitialLoading: isLoading && isFetching,
	      data,
	      dataUpdatedAt,
	      error,
	      errorUpdatedAt,
	      failureCount: state.fetchFailureCount,
	      failureReason: state.fetchFailureReason,
	      errorUpdateCount: state.errorUpdateCount,
	      isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,
	      isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,
	      isFetching,
	      isRefetching: isFetching && !isLoading,
	      isLoadingError: isError && state.dataUpdatedAt === 0,
	      isPaused: fetchStatus === 'paused',
	      isPlaceholderData,
	      isPreviousData,
	      isRefetchError: isError && state.dataUpdatedAt !== 0,
	      isStale: isStale(query, options),
	      refetch: this.refetch,
	      remove: this.remove
	    };
	    return result;
	  }

	  updateResult(notifyOptions) {
	    const prevResult = this.currentResult;
	    const nextResult = this.createResult(this.currentQuery, this.options);
	    this.currentResultState = this.currentQuery.state;
	    this.currentResultOptions = this.options; // Only notify and update result if something has changed

	    if (shallowEqualObjects(nextResult, prevResult)) {
	      return;
	    }

	    this.currentResult = nextResult; // Determine which callbacks to trigger

	    const defaultNotifyOptions = {
	      cache: true
	    };

	    const shouldNotifyListeners = () => {
	      if (!prevResult) {
	        return true;
	      }

	      const {
	        notifyOnChangeProps
	      } = this.options;
	      const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps;

	      if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) {
	        return true;
	      }

	      const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps);

	      if (this.options.useErrorBoundary) {
	        includedProps.add('error');
	      }

	      return Object.keys(this.currentResult).some(key => {
	        const typedKey = key;
	        const changed = this.currentResult[typedKey] !== prevResult[typedKey];
	        return changed && includedProps.has(typedKey);
	      });
	    };

	    if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {
	      defaultNotifyOptions.listeners = true;
	    }

	    this.notify({ ...defaultNotifyOptions,
	      ...notifyOptions
	    });
	  }

	  updateQuery() {
	    const query = this.client.getQueryCache().build(this.client, this.options);

	    if (query === this.currentQuery) {
	      return;
	    }

	    const prevQuery = this.currentQuery;
	    this.currentQuery = query;
	    this.currentQueryInitialState = query.state;
	    this.previousQueryResult = this.currentResult;

	    if (this.hasListeners()) {
	      prevQuery == null ? void 0 : prevQuery.removeObserver(this);
	      query.addObserver(this);
	    }
	  }

	  onQueryUpdate(action) {
	    const notifyOptions = {};

	    if (action.type === 'success') {
	      notifyOptions.onSuccess = !action.manual;
	    } else if (action.type === 'error' && !isCancelledError(action.error)) {
	      notifyOptions.onError = true;
	    }

	    this.updateResult(notifyOptions);

	    if (this.hasListeners()) {
	      this.updateTimers();
	    }
	  }

	  notify(notifyOptions) {
	    notifyManager.batch(() => {
	      // First trigger the configuration callbacks
	      if (notifyOptions.onSuccess) {
	        var _this$options$onSucce, _this$options, _this$options$onSettl, _this$options2;

	        (_this$options$onSucce = (_this$options = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options, this.currentResult.data);
	        (_this$options$onSettl = (_this$options2 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options2, this.currentResult.data, null);
	      } else if (notifyOptions.onError) {
	        var _this$options$onError, _this$options3, _this$options$onSettl2, _this$options4;

	        (_this$options$onError = (_this$options3 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options3, this.currentResult.error);
	        (_this$options$onSettl2 = (_this$options4 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options4, undefined, this.currentResult.error);
	      } // Then trigger the listeners


	      if (notifyOptions.listeners) {
	        this.listeners.forEach(({
	          listener
	        }) => {
	          listener(this.currentResult);
	        });
	      } // Then the cache listeners


	      if (notifyOptions.cache) {
	        this.client.getQueryCache().notify({
	          query: this.currentQuery,
	          type: 'observerResultsUpdated'
	        });
	      }
	    });
	  }

	}

	function shouldLoadOnMount(query, options) {
	  return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === 'error' && options.retryOnMount === false);
	}

	function shouldFetchOnMount(query, options) {
	  return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount);
	}

	function shouldFetchOn(query, options, field) {
	  if (options.enabled !== false) {
	    const value = typeof field === 'function' ? field(query) : field;
	    return value === 'always' || value !== false && isStale(query, options);
	  }

	  return false;
	}

	function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
	  return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== 'error') && isStale(query, options);
	}

	function isStale(query, options) {
	  return query.isStaleByTime(options.staleTime);
	} // this function would decide if we will update the observer's 'current'
	// properties after an optimistic reading via getOptimisticResult


	function shouldAssignObserverCurrentProperties(observer, optimisticResult, options) {
	  // it is important to keep this condition like this for three reasons:
	  // 1. It will get removed in the v5
	  // 2. it reads: don't update the properties if we want to keep the previous
	  // data.
	  // 3. The opposite condition (!options.keepPreviousData) would fallthrough
	  // and will result in a bad decision
	  if (options.keepPreviousData) {
	    return false;
	  } // this means we want to put some placeholder data when pending and queryKey
	  // changed.


	  if (options.placeholderData !== undefined) {
	    // re-assign properties only if current data is placeholder data
	    // which means that data did not arrive yet, so, if there is some cached data
	    // we need to "prepare" to receive it
	    return optimisticResult.isPlaceholderData;
	  } // if the newly created result isn't what the observer is holding as current,
	  // then we'll need to update the properties as well


	  if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {
	    return true;
	  } // basically, just keep previous properties if nothing changed


	  return false;
	}

	var reactDom = {exports: {}};

	var reactDom_production_min = {};

	var scheduler = {exports: {}};

	var scheduler_production_min = {};

	/** @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.
	 */

	var hasRequiredScheduler_production_min;

	function requireScheduler_production_min () {
		if (hasRequiredScheduler_production_min) return scheduler_production_min;
		hasRequiredScheduler_production_min = 1;
		(function (exports) {
	var f,g,h,k;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()};}else {var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q};}
			if("undefined"===typeof window||"function"!==typeof MessageChannel){var t=null,u=null,w=function(){if(null!==t)try{var a=exports.unstable_now();t(!0,a);t=null;}catch(b){throw setTimeout(w,0),b;}};f=function(a){null!==t?setTimeout(f,0,a):(t=a,setTimeout(w,0));};g=function(a,b){u=setTimeout(a,b);};h=function(){clearTimeout(u);};exports.unstable_shouldYield=function(){return !1};k=exports.unstable_forceFrameRate=function(){};}else {var x=window.setTimeout,y=window.clearTimeout;if("undefined"!==typeof console){var z=
			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 z&&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 A=!1,B=null,C=-1,D=5,E=0;exports.unstable_shouldYield=function(){return exports.unstable_now()>=
			E};k=function(){};exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<a?Math.floor(1E3/a):5;};var F=new MessageChannel,G=F.port2;F.port1.onmessage=function(){if(null!==B){var a=exports.unstable_now();E=a+D;try{B(!0,a)?G.postMessage(null):(A=!1,B=null);}catch(b){throw G.postMessage(null),b;}}else A=!1;};f=function(a){B=a;A||(A=!0,G.postMessage(null));};g=function(a,b){C=
			x(function(){a(exports.unstable_now());},b);};h=function(){y(C);C=-1;};}function H(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&0<I(e,b))a[d]=b,a[c]=e,c=d;else break a}}function J(a){a=a[0];return void 0===a?null:a}
			function K(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;
			function T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M);}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else {var b=J(M);null!==b&&g(U,b.startTime-a);}}
			function V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if("function"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?O.callback=e:O===J(L)&&K(L);T(b);}else K(L);O=J(L);}if(null!==O)var m=!0;else {var n=J(M);null!==n&&g(U,n.startTime-b);m=!1;}return m}finally{O=null,P=c,Q=!1;}}var W=k;exports.unstable_IdlePriority=5;
			exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null;};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V));};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};
			exports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P;}var c=P;P=b;try{return a()}finally{P=c;}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3;}var c=P;P=a;try{return b()}finally{P=c;}};
			exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3;}e=c+e;a={id:N++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};
			exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c;}}}; 
		} (scheduler_production_min));
		return scheduler_production_min;
	}

	var scheduler_development = {};

	/** @license React v0.20.2
	 * scheduler.development.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.
	 */

	var hasRequiredScheduler_development;

	function requireScheduler_development () {
		if (hasRequiredScheduler_development) return scheduler_development;
		hasRequiredScheduler_development = 1;
		(function (exports) {

			if (process.env.NODE_ENV !== "production") {
			  (function() {

			var enableSchedulerDebugging = false;
			var enableProfiling = false;

			var requestHostCallback;
			var requestHostTimeout;
			var cancelHostTimeout;
			var requestPaint;
			var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';

			if (hasPerformanceNow) {
			  var localPerformance = performance;

			  exports.unstable_now = function () {
			    return localPerformance.now();
			  };
			} else {
			  var localDate = Date;
			  var initialTime = localDate.now();

			  exports.unstable_now = function () {
			    return localDate.now() - initialTime;
			  };
			}

			if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
			// implementation using setTimeout.
			typeof window === 'undefined' || // Check if MessageChannel is supported, too.
			typeof MessageChannel !== 'function') {
			  // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
			  // fallback to a naive implementation.
			  var _callback = null;
			  var _timeoutID = null;

			  var _flushCallback = function () {
			    if (_callback !== null) {
			      try {
			        var currentTime = exports.unstable_now();
			        var hasRemainingTime = true;

			        _callback(hasRemainingTime, currentTime);

			        _callback = null;
			      } catch (e) {
			        setTimeout(_flushCallback, 0);
			        throw e;
			      }
			    }
			  };

			  requestHostCallback = function (cb) {
			    if (_callback !== null) {
			      // Protect against re-entrancy.
			      setTimeout(requestHostCallback, 0, cb);
			    } else {
			      _callback = cb;
			      setTimeout(_flushCallback, 0);
			    }
			  };

			  requestHostTimeout = function (cb, ms) {
			    _timeoutID = setTimeout(cb, ms);
			  };

			  cancelHostTimeout = function () {
			    clearTimeout(_timeoutID);
			  };

			  exports.unstable_shouldYield = function () {
			    return false;
			  };

			  requestPaint = exports.unstable_forceFrameRate = function () {};
			} else {
			  // Capture local references to native APIs, in case a polyfill overrides them.
			  var _setTimeout = window.setTimeout;
			  var _clearTimeout = window.clearTimeout;

			  if (typeof console !== 'undefined') {
			    // TODO: Scheduler no longer requires these methods to be polyfilled. But
			    // maybe we want to continue warning if they don't exist, to preserve the
			    // option to rely on it in the future?
			    var requestAnimationFrame = window.requestAnimationFrame;
			    var cancelAnimationFrame = window.cancelAnimationFrame;

			    if (typeof requestAnimationFrame !== 'function') {
			      // Using console['error'] to evade Babel and ESLint
			      console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
			    }

			    if (typeof cancelAnimationFrame !== 'function') {
			      // Using console['error'] to evade Babel and ESLint
			      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 isMessageLoopRunning = false;
			  var scheduledHostCallback = null;
			  var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
			  // thread, like user events. By default, it yields multiple times per frame.
			  // It does not attempt to align with frame boundaries, since most tasks don't
			  // need to be frame aligned; for those that do, use requestAnimationFrame.

			  var yieldInterval = 5;
			  var deadline = 0; // TODO: Make this configurable

			  {
			    // `isInputPending` is not available. Since we have no way of knowing if
			    // there's pending input, always yield at the end of the frame.
			    exports.unstable_shouldYield = function () {
			      return exports.unstable_now() >= deadline;
			    }; // Since we yield every frame regardless, `requestPaint` has no effect.


			    requestPaint = function () {};
			  }

			  exports.unstable_forceFrameRate = function (fps) {
			    if (fps < 0 || fps > 125) {
			      // Using console['error'] to evade Babel and ESLint
			      console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
			      return;
			    }

			    if (fps > 0) {
			      yieldInterval = Math.floor(1000 / fps);
			    } else {
			      // reset the framerate
			      yieldInterval = 5;
			    }
			  };

			  var performWorkUntilDeadline = function () {
			    if (scheduledHostCallback !== null) {
			      var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
			      // cycle. This means there's always time remaining at the beginning of
			      // the message event.

			      deadline = currentTime + yieldInterval;
			      var hasTimeRemaining = true;

			      try {
			        var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);

			        if (!hasMoreWork) {
			          isMessageLoopRunning = false;
			          scheduledHostCallback = null;
			        } else {
			          // If there's more work, schedule the next message event at the end
			          // of the preceding one.
			          port.postMessage(null);
			        }
			      } catch (error) {
			        // If a scheduler task throws, exit the current browser task so the
			        // error can be observed.
			        port.postMessage(null);
			        throw error;
			      }
			    } else {
			      isMessageLoopRunning = false;
			    } // Yielding to the browser will give it a chance to paint, so we can
			  };

			  var channel = new MessageChannel();
			  var port = channel.port2;
			  channel.port1.onmessage = performWorkUntilDeadline;

			  requestHostCallback = function (callback) {
			    scheduledHostCallback = callback;

			    if (!isMessageLoopRunning) {
			      isMessageLoopRunning = true;
			      port.postMessage(null);
			    }
			  };

			  requestHostTimeout = function (callback, ms) {
			    taskTimeoutID = _setTimeout(function () {
			      callback(exports.unstable_now());
			    }, ms);
			  };

			  cancelHostTimeout = function () {
			    _clearTimeout(taskTimeoutID);

			    taskTimeoutID = -1;
			  };
			}

			function push(heap, node) {
			  var index = heap.length;
			  heap.push(node);
			  siftUp(heap, node, index);
			}
			function peek(heap) {
			  var first = heap[0];
			  return first === undefined ? null : first;
			}
			function pop(heap) {
			  var first = heap[0];

			  if (first !== undefined) {
			    var last = heap.pop();

			    if (last !== first) {
			      heap[0] = last;
			      siftDown(heap, last, 0);
			    }

			    return first;
			  } else {
			    return null;
			  }
			}

			function siftUp(heap, node, i) {
			  var index = i;

			  while (true) {
			    var parentIndex = index - 1 >>> 1;
			    var parent = heap[parentIndex];

			    if (parent !== undefined && compare(parent, node) > 0) {
			      // The parent is larger. Swap positions.
			      heap[parentIndex] = node;
			      heap[index] = parent;
			      index = parentIndex;
			    } else {
			      // The parent is smaller. Exit.
			      return;
			    }
			  }
			}

			function siftDown(heap, node, i) {
			  var index = i;
			  var length = heap.length;

			  while (index < length) {
			    var leftIndex = (index + 1) * 2 - 1;
			    var left = heap[leftIndex];
			    var rightIndex = leftIndex + 1;
			    var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.

			    if (left !== undefined && compare(left, node) < 0) {
			      if (right !== undefined && compare(right, left) < 0) {
			        heap[index] = right;
			        heap[rightIndex] = node;
			        index = rightIndex;
			      } else {
			        heap[index] = left;
			        heap[leftIndex] = node;
			        index = leftIndex;
			      }
			    } else if (right !== undefined && compare(right, node) < 0) {
			      heap[index] = right;
			      heap[rightIndex] = node;
			      index = rightIndex;
			    } else {
			      // Neither child is smaller. Exit.
			      return;
			    }
			  }
			}

			function compare(a, b) {
			  // Compare sort index first, then task id.
			  var diff = a.sortIndex - b.sortIndex;
			  return diff !== 0 ? diff : a.id - b.id;
			}

			// TODO: Use symbols?
			var ImmediatePriority = 1;
			var UserBlockingPriority = 2;
			var NormalPriority = 3;
			var LowPriority = 4;
			var IdlePriority = 5;

			function markTaskErrored(task, ms) {
			}

			/* eslint-disable no-var */
			// Math.pow(2, 30) - 1
			// 0b111111111111111111111111111111

			var maxSigned31BitInt = 1073741823; // Times out immediately

			var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out

			var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
			var NORMAL_PRIORITY_TIMEOUT = 5000;
			var LOW_PRIORITY_TIMEOUT = 10000; // Never times out

			var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap

			var taskQueue = [];
			var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.

			var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
			var currentTask = null;
			var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.

			var isPerformingWork = false;
			var isHostCallbackScheduled = false;
			var isHostTimeoutScheduled = false;

			function advanceTimers(currentTime) {
			  // Check for tasks that are no longer delayed and add them to the queue.
			  var timer = peek(timerQueue);

			  while (timer !== null) {
			    if (timer.callback === null) {
			      // Timer was cancelled.
			      pop(timerQueue);
			    } else if (timer.startTime <= currentTime) {
			      // Timer fired. Transfer to the task queue.
			      pop(timerQueue);
			      timer.sortIndex = timer.expirationTime;
			      push(taskQueue, timer);
			    } else {
			      // Remaining timers are pending.
			      return;
			    }

			    timer = peek(timerQueue);
			  }
			}

			function handleTimeout(currentTime) {
			  isHostTimeoutScheduled = false;
			  advanceTimers(currentTime);

			  if (!isHostCallbackScheduled) {
			    if (peek(taskQueue) !== null) {
			      isHostCallbackScheduled = true;
			      requestHostCallback(flushWork);
			    } else {
			      var firstTimer = peek(timerQueue);

			      if (firstTimer !== null) {
			        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
			      }
			    }
			  }
			}

			function flushWork(hasTimeRemaining, initialTime) {


			  isHostCallbackScheduled = false;

			  if (isHostTimeoutScheduled) {
			    // We scheduled a timeout but it's no longer needed. Cancel it.
			    isHostTimeoutScheduled = false;
			    cancelHostTimeout();
			  }

			  isPerformingWork = true;
			  var previousPriorityLevel = currentPriorityLevel;

			  try {
			    var currentTime; if (enableProfiling) ; else {
			      // No catch in prod code path.
			      return workLoop(hasTimeRemaining, initialTime);
			    }
			  } finally {
			    currentTask = null;
			    currentPriorityLevel = previousPriorityLevel;
			    isPerformingWork = false;
			  }
			}

			function workLoop(hasTimeRemaining, initialTime) {
			  var currentTime = initialTime;
			  advanceTimers(currentTime);
			  currentTask = peek(taskQueue);

			  while (currentTask !== null && !(enableSchedulerDebugging )) {
			    if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || exports.unstable_shouldYield())) {
			      // This currentTask hasn't expired, and we've reached the deadline.
			      break;
			    }

			    var callback = currentTask.callback;

			    if (typeof callback === 'function') {
			      currentTask.callback = null;
			      currentPriorityLevel = currentTask.priorityLevel;
			      var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;

			      var continuationCallback = callback(didUserCallbackTimeout);
			      currentTime = exports.unstable_now();

			      if (typeof continuationCallback === 'function') {
			        currentTask.callback = continuationCallback;
			      } else {

			        if (currentTask === peek(taskQueue)) {
			          pop(taskQueue);
			        }
			      }

			      advanceTimers(currentTime);
			    } else {
			      pop(taskQueue);
			    }

			    currentTask = peek(taskQueue);
			  } // Return whether there's additional work


			  if (currentTask !== null) {
			    return true;
			  } else {
			    var firstTimer = peek(timerQueue);

			    if (firstTimer !== null) {
			      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
			    }

			    return false;
			  }
			}

			function unstable_runWithPriority(priorityLevel, eventHandler) {
			  switch (priorityLevel) {
			    case ImmediatePriority:
			    case UserBlockingPriority:
			    case NormalPriority:
			    case LowPriority:
			    case IdlePriority:
			      break;

			    default:
			      priorityLevel = NormalPriority;
			  }

			  var previousPriorityLevel = currentPriorityLevel;
			  currentPriorityLevel = priorityLevel;

			  try {
			    return eventHandler();
			  } finally {
			    currentPriorityLevel = previousPriorityLevel;
			  }
			}

			function unstable_next(eventHandler) {
			  var priorityLevel;

			  switch (currentPriorityLevel) {
			    case ImmediatePriority:
			    case UserBlockingPriority:
			    case NormalPriority:
			      // Shift down to normal priority
			      priorityLevel = NormalPriority;
			      break;

			    default:
			      // Anything lower than normal priority should remain at the current level.
			      priorityLevel = currentPriorityLevel;
			      break;
			  }

			  var previousPriorityLevel = currentPriorityLevel;
			  currentPriorityLevel = priorityLevel;

			  try {
			    return eventHandler();
			  } finally {
			    currentPriorityLevel = previousPriorityLevel;
			  }
			}

			function unstable_wrapCallback(callback) {
			  var parentPriorityLevel = currentPriorityLevel;
			  return function () {
			    // This is a fork of runWithPriority, inlined for performance.
			    var previousPriorityLevel = currentPriorityLevel;
			    currentPriorityLevel = parentPriorityLevel;

			    try {
			      return callback.apply(this, arguments);
			    } finally {
			      currentPriorityLevel = previousPriorityLevel;
			    }
			  };
			}

			function unstable_scheduleCallback(priorityLevel, callback, options) {
			  var currentTime = exports.unstable_now();
			  var startTime;

			  if (typeof options === 'object' && options !== null) {
			    var delay = options.delay;

			    if (typeof delay === 'number' && delay > 0) {
			      startTime = currentTime + delay;
			    } else {
			      startTime = currentTime;
			    }
			  } else {
			    startTime = currentTime;
			  }

			  var timeout;

			  switch (priorityLevel) {
			    case ImmediatePriority:
			      timeout = IMMEDIATE_PRIORITY_TIMEOUT;
			      break;

			    case UserBlockingPriority:
			      timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
			      break;

			    case IdlePriority:
			      timeout = IDLE_PRIORITY_TIMEOUT;
			      break;

			    case LowPriority:
			      timeout = LOW_PRIORITY_TIMEOUT;
			      break;

			    case NormalPriority:
			    default:
			      timeout = NORMAL_PRIORITY_TIMEOUT;
			      break;
			  }

			  var expirationTime = startTime + timeout;
			  var newTask = {
			    id: taskIdCounter++,
			    callback: callback,
			    priorityLevel: priorityLevel,
			    startTime: startTime,
			    expirationTime: expirationTime,
			    sortIndex: -1
			  };

			  if (startTime > currentTime) {
			    // This is a delayed task.
			    newTask.sortIndex = startTime;
			    push(timerQueue, newTask);

			    if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
			      // All tasks are delayed, and this is the task with the earliest delay.
			      if (isHostTimeoutScheduled) {
			        // Cancel an existing timeout.
			        cancelHostTimeout();
			      } else {
			        isHostTimeoutScheduled = true;
			      } // Schedule a timeout.


			      requestHostTimeout(handleTimeout, startTime - currentTime);
			    }
			  } else {
			    newTask.sortIndex = expirationTime;
			    push(taskQueue, newTask);
			    // wait until the next time we yield.


			    if (!isHostCallbackScheduled && !isPerformingWork) {
			      isHostCallbackScheduled = true;
			      requestHostCallback(flushWork);
			    }
			  }

			  return newTask;
			}

			function unstable_pauseExecution() {
			}

			function unstable_continueExecution() {

			  if (!isHostCallbackScheduled && !isPerformingWork) {
			    isHostCallbackScheduled = true;
			    requestHostCallback(flushWork);
			  }
			}

			function unstable_getFirstCallbackNode() {
			  return peek(taskQueue);
			}

			function unstable_cancelCallback(task) {
			  // remove from the queue because you can't remove arbitrary nodes from an
			  // array based heap, only the first one.)


			  task.callback = null;
			}

			function unstable_getCurrentPriorityLevel() {
			  return currentPriorityLevel;
			}

			var unstable_requestPaint = requestPaint;
			var unstable_Profiling =  null;

			exports.unstable_IdlePriority = IdlePriority;
			exports.unstable_ImmediatePriority = ImmediatePriority;
			exports.unstable_LowPriority = LowPriority;
			exports.unstable_NormalPriority = NormalPriority;
			exports.unstable_Profiling = unstable_Profiling;
			exports.unstable_UserBlockingPriority = UserBlockingPriority;
			exports.unstable_cancelCallback = unstable_cancelCallback;
			exports.unstable_continueExecution = unstable_continueExecution;
			exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
			exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
			exports.unstable_next = unstable_next;
			exports.unstable_pauseExecution = unstable_pauseExecution;
			exports.unstable_requestPaint = unstable_requestPaint;
			exports.unstable_runWithPriority = unstable_runWithPriority;
			exports.unstable_scheduleCallback = unstable_scheduleCallback;
			exports.unstable_wrapCallback = unstable_wrapCallback;
			  })();
			} 
		} (scheduler_development));
		return scheduler_development;
	}

	var hasRequiredScheduler;

	function requireScheduler () {
		if (hasRequiredScheduler) return scheduler.exports;
		hasRequiredScheduler = 1;

		if (process.env.NODE_ENV === 'production') {
		  scheduler.exports = requireScheduler_production_min();
		} else {
		  scheduler.exports = requireScheduler_development();
		}
		return scheduler.exports;
	}

	/** @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.
	 */

	var hasRequiredReactDom_production_min;

	function requireReactDom_production_min () {
		if (hasRequiredReactDom_production_min) return reactDom_production_min;
		hasRequiredReactDom_production_min = 1;
	var aa=reactExports,m=requireObjectAssign(),r=requireScheduler();function y(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(y(227));var ba=new Set,ca={};function da(a,b){ea(a,b);ea(a+"Capture",b);}
		function ea(a,b){ca[a]=b;for(a=0;a<b.length;a++)ba.add(b[a]);}
		var fa=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ha=/^[: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]*$/,ia=Object.prototype.hasOwnProperty,
		ja={},ka={};function la(a){if(ia.call(ka,a))return !0;if(ia.call(ja,a))return !1;if(ha.test(a))return ka[a]=!0;ja[a]=!0;return !1}function ma(a,b,c,d){if(null!==c&&0===c.type)return !1;switch(typeof b){case "function":case "symbol":return !0;case "boolean":if(d)return !1;if(null!==c)return !c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return "data-"!==a&&"aria-"!==a;default:return !1}}
		function na(a,b,c,d){if(null===b||"undefined"===typeof b||ma(a,b,c,d))return !0;if(d)return !1;if(null!==c)switch(c.type){case 3:return !b;case 4:return !1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return !1}function B(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g;}var D={};
		"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1,!1);});
		["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new B(a,2,!1,a,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(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1,!1);});
		["checked","multiple","muted","selected"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1,!1);});["capture","download"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1,!1);});["cols","rows","size","span"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1,!1);});["rowSpan","start"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1,!1);});var oa=/[\-:]([a-z])/g;function pa(a){return a[1].toUpperCase()}
		"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(a){var b=a.replace(oa,
		pa);D[b]=new B(b,1,!1,a,null,!1,!1);});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(oa,pa);D[b]=new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1);});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(oa,pa);D[b]=new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1);});["tabIndex","crossOrigin"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1,!1);});
		D.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0,!0);});
		function qa(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1]?!1:!0;f||(na(b,c,e,d)&&(c=null),d||null===e?la(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))));}
		var ra=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sa=60103,ta=60106,ua=60107,wa=60108,xa=60114,ya=60109,za=60110,Aa=60112,Ba=60113,Ca=60120,Da=60115,Ea=60116,Fa=60121,Ga=60128,Ha=60129,Ia=60130,Ja=60131;
		if("function"===typeof Symbol&&Symbol.for){var E=Symbol.for;sa=E("react.element");ta=E("react.portal");ua=E("react.fragment");wa=E("react.strict_mode");xa=E("react.profiler");ya=E("react.provider");za=E("react.context");Aa=E("react.forward_ref");Ba=E("react.suspense");Ca=E("react.suspense_list");Da=E("react.memo");Ea=E("react.lazy");Fa=E("react.block");E("react.scope");Ga=E("react.opaque.id");Ha=E("react.debug_trace_mode");Ia=E("react.offscreen");Ja=E("react.legacy_hidden");}
		var Ka="function"===typeof Symbol&&Symbol.iterator;function La(a){if(null===a||"object"!==typeof a)return null;a=Ka&&a[Ka]||a["@@iterator"];return "function"===typeof a?a:null}var Ma;function Na(a){if(void 0===Ma)try{throw Error();}catch(c){var b=c.stack.trim().match(/\n( *(at )?)/);Ma=b&&b[1]||"";}return "\n"+Ma+a}var Oa=!1;
		function Pa(a,b){if(!a||Oa)return "";Oa=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,"props",{set:function(){throw Error();}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[]);}catch(k){var d=k;}Reflect.construct(a,[],b);}else {try{b.call();}catch(k){d=k;}a.call(b.prototype);}else {try{throw Error();}catch(k){d=k;}a();}}catch(k){if(k&&d&&"string"===typeof k.stack){for(var e=k.stack.split("\n"),
		f=d.stack.split("\n"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h])return "\n"+e[g].replace(" at new "," at ");while(1<=g&&0<=h)}break}}}finally{Oa=!1,Error.prepareStackTrace=c;}return (a=a?a.displayName||a.name:"")?Na(a):""}
		function Qa(a){switch(a.tag){case 5:return Na(a.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return a=Pa(a.type,!1),a;case 11:return a=Pa(a.type.render,!1),a;case 22:return a=Pa(a.type._render,!1),a;case 1:return a=Pa(a.type,!0),a;default:return ""}}
		function Ra(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ua:return "Fragment";case ta:return "Portal";case xa:return "Profiler";case wa:return "StrictMode";case Ba:return "Suspense";case Ca:return "SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case za:return (a.displayName||"Context")+".Consumer";case ya:return (a._context.displayName||"Context")+".Provider";case Aa:var b=a.render;b=b.displayName||b.name||"";
		return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case Da:return Ra(a.type);case Fa:return Ra(a._render);case Ea:b=a._payload;a=a._init;try{return Ra(a(b))}catch(c){}}return null}function Sa(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return ""}}function Ta(a){var b=a.type;return (a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
		function Ua(a){var b=Ta(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a);}});Object.defineProperty(a,b,{enumerable:c.enumerable});return {getValue:function(){return d},setValue:function(a){d=""+a;},stopTracking:function(){a._valueTracker=
		null;delete a[b];}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a));}function Wa(a){if(!a)return !1;var b=a._valueTracker;if(!b)return !0;var c=b.getValue();var d="";a&&(d=Ta(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}
		function Ya(a,b){var c=b.checked;return m({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value};}function $a(a,b){b=b.checked;null!=b&&qa(a,"checked",b,!1);}
		function ab(a,b){$a(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c;}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?bb(a,b.type,c):b.hasOwnProperty("defaultValue")&&bb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked);}
		function cb(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b;}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c);}
		function bb(a,b,c){if("number"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c);}function db(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a);});return b}function eb(a,b){a=m({children:void 0},b);if(b=db(b.children))a.children=b;return a}
		function fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0);}else {c=""+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e]);}null!==b&&(b.selected=!0);}}
		function gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(y(91));return m({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(y(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(y(93));c=c[0];}b=c;}null==b&&(b="");c=b;}a._wrapperState={initialValue:Sa(c)};}
		function ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d);}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b);}var kb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
		function lb(a){switch(a){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 mb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?lb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
		var nb,ob=function(a){return "undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)});}:a}(function(a,b){if(a.namespaceURI!==kb.svg||"innerHTML"in a)a.innerHTML=b;else {nb=nb||document.createElement("div");nb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=nb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild);}});
		function pb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b;}
		var qb={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},rb=["Webkit","ms","Moz","O"];Object.keys(qb).forEach(function(a){rb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);qb[b]=qb[a];});});function sb(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||qb.hasOwnProperty(a)&&qb[a]?(""+b).trim():b+"px"}
		function tb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=sb(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e;}}var ub=m({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 vb(a,b){if(b){if(ub[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(y(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(y(60));if(!("object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML))throw Error(y(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(y(62));}}
		function wb(a,b){if(-1===a.indexOf("-"))return "string"===typeof b.is;switch(a){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 xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;
		function Bb(a){if(a=Cb(a)){if("function"!==typeof yb)throw Error(y(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b));}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a;}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a]);}}function Gb(a,b){return a(b)}function Hb(a,b,c,d,e){return a(b,c,d,e)}function Ib(){}var Jb=Gb,Kb=!1,Lb=!1;function Mb(){if(null!==zb||null!==Ab)Ib(),Fb();}
		function Nb(a,b,c){if(Lb)return a(b,c);Lb=!0;try{return Jb(a,b,c)}finally{Lb=!1,Mb();}}
		function Ob(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1;}if(a)return null;if(c&&"function"!==
		typeof c)throw Error(y(231,b,typeof c));return c}var Pb=!1;if(fa)try{var Qb={};Object.defineProperty(Qb,"passive",{get:function(){Pb=!0;}});window.addEventListener("test",Qb,Qb);window.removeEventListener("test",Qb,Qb);}catch(a){Pb=!1;}function Rb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l);}catch(n){this.onError(n);}}var Sb=!1,Tb=null,Ub=!1,Vb=null,Wb={onError:function(a){Sb=!0;Tb=a;}};function Xb(a,b,c,d,e,f,g,h,k){Sb=!1;Tb=null;Rb.apply(Wb,arguments);}
		function Yb(a,b,c,d,e,f,g,h,k){Xb.apply(this,arguments);if(Sb){if(Sb){var l=Tb;Sb=!1;Tb=null;}else throw Error(y(198));Ub||(Ub=!0,Vb=l);}}function Zb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else {a=b;do b=a,0!==(b.flags&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function $b(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function ac(a){if(Zb(a)!==a)throw Error(y(188));}
		function bc(a){var b=a.alternate;if(!b){b=Zb(a);if(null===b)throw Error(y(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return ac(e),a;if(f===d)return ac(e),b;f=f.sibling;}throw Error(y(188));}if(c.return!==d.return)c=e,d=f;else {for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling;}if(!g){for(h=f.child;h;){if(h===
		c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling;}if(!g)throw Error(y(189));}}if(c.alternate!==d)throw Error(y(190));}if(3!==c.tag)throw Error(y(188));return c.stateNode.current===c?a:b}function cc(a){a=bc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else {if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return;}b.sibling.return=b.return;b=b.sibling;}}return null}
		function dc(a,b){for(var c=a.alternate;null!==b;){if(b===a||b===c)return !0;b=b.return;}return !1}var ec,fc,gc,hc,ic=!1,jc=[],kc=null,lc=null,mc=null,nc=new Map,oc=new Map,pc=[],qc="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 rc(a,b,c,d,e){return {blockedOn:a,domEventName:b,eventSystemFlags:c|16,nativeEvent:e,targetContainers:[d]}}function sc(a,b){switch(a){case "focusin":case "focusout":kc=null;break;case "dragenter":case "dragleave":lc=null;break;case "mouseover":case "mouseout":mc=null;break;case "pointerover":case "pointerout":nc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":oc.delete(b.pointerId);}}
		function tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a=rc(b,c,d,e,f),null!==b&&(b=Cb(b),null!==b&&fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}
		function uc(a,b,c,d,e){switch(b){case "focusin":return kc=tc(kc,a,b,c,d,e),!0;case "dragenter":return lc=tc(lc,a,b,c,d,e),!0;case "mouseover":return mc=tc(mc,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;nc.set(f,tc(nc.get(f)||null,a,b,c,d,e));return !0;case "gotpointercapture":return f=e.pointerId,oc.set(f,tc(oc.get(f)||null,a,b,c,d,e)),!0}return !1}
		function vc(a){var b=wc(a.target);if(null!==b){var c=Zb(b);if(null!==c)if(b=c.tag,13===b){if(b=$b(c),null!==b){a.blockedOn=b;hc(a.lanePriority,function(){r.unstable_runWithPriority(a.priority,function(){gc(c);});});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null;}
		function xc(a){if(null!==a.blockedOn)return !1;for(var b=a.targetContainers;0<b.length;){var c=yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null!==c)return b=Cb(c),null!==b&&fc(b),a.blockedOn=c,!1;b.shift();}return !0}function zc(a,b,c){xc(a)&&c.delete(b);}
		function Ac(){for(ic=!1;0<jc.length;){var a=jc[0];if(null!==a.blockedOn){a=Cb(a.blockedOn);null!==a&&ec(a);break}for(var b=a.targetContainers;0<b.length;){var c=yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null!==c){a.blockedOn=c;break}b.shift();}null===a.blockedOn&&jc.shift();}null!==kc&&xc(kc)&&(kc=null);null!==lc&&xc(lc)&&(lc=null);null!==mc&&xc(mc)&&(mc=null);nc.forEach(zc);oc.forEach(zc);}
		function Bc(a,b){a.blockedOn===b&&(a.blockedOn=null,ic||(ic=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ac)));}
		function Cc(a){function b(b){return Bc(b,a)}if(0<jc.length){Bc(jc[0],a);for(var c=1;c<jc.length;c++){var d=jc[c];d.blockedOn===a&&(d.blockedOn=null);}}null!==kc&&Bc(kc,a);null!==lc&&Bc(lc,a);null!==mc&&Bc(mc,a);nc.forEach(b);oc.forEach(b);for(c=0;c<pc.length;c++)d=pc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<pc.length&&(c=pc[0],null===c.blockedOn);)vc(c),null===c.blockedOn&&pc.shift();}
		function Dc(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Ec={animationend:Dc("Animation","AnimationEnd"),animationiteration:Dc("Animation","AnimationIteration"),animationstart:Dc("Animation","AnimationStart"),transitionend:Dc("Transition","TransitionEnd")},Fc={},Gc={};
		fa&&(Gc=document.createElement("div").style,"AnimationEvent"in window||(delete Ec.animationend.animation,delete Ec.animationiteration.animation,delete Ec.animationstart.animation),"TransitionEvent"in window||delete Ec.transitionend.transition);function Hc(a){if(Fc[a])return Fc[a];if(!Ec[a])return a;var b=Ec[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Gc)return Fc[a]=b[c];return a}
		var Ic=Hc("animationend"),Jc=Hc("animationiteration"),Kc=Hc("animationstart"),Lc=Hc("transitionend"),Mc=new Map,Nc=new Map,Oc=["abort","abort",Ic,"animationEnd",Jc,"animationIteration",Kc,"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",Lc,"transitionEnd","waiting","waiting"];function Pc(a,b){for(var c=0;c<a.length;c+=2){var d=a[c],e=a[c+1];e="on"+(e[0].toUpperCase()+e.slice(1));Nc.set(d,b);Mc.set(d,e);da(e,[d]);}}var Qc=r.unstable_now;Qc();var F=8;
		function Rc(a){if(0!==(1&a))return F=15,1;if(0!==(2&a))return F=14,2;if(0!==(4&a))return F=13,4;var b=24&a;if(0!==b)return F=12,b;if(0!==(a&32))return F=11,32;b=192&a;if(0!==b)return F=10,b;if(0!==(a&256))return F=9,256;b=3584&a;if(0!==b)return F=8,b;if(0!==(a&4096))return F=7,4096;b=4186112&a;if(0!==b)return F=6,b;b=62914560&a;if(0!==b)return F=5,b;if(a&67108864)return F=4,67108864;if(0!==(a&134217728))return F=3,134217728;b=805306368&a;if(0!==b)return F=2,b;if(0!==(1073741824&a))return F=1,1073741824;
		F=8;return a}function Sc(a){switch(a){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Tc(a){switch(a){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(y(358,a));}}
		function Uc(a,b){var c=a.pendingLanes;if(0===c)return F=0;var d=0,e=0,f=a.expiredLanes,g=a.suspendedLanes,h=a.pingedLanes;if(0!==f)d=f,e=F=15;else if(f=c&134217727,0!==f){var k=f&~g;0!==k?(d=Rc(k),e=F):(h&=f,0!==h&&(d=Rc(h),e=F));}else f=c&~g,0!==f?(d=Rc(f),e=F):0!==h&&(d=Rc(h),e=F);if(0===d)return 0;d=31-Vc(d);d=c&((0>d?0:1<<d)<<1)-1;if(0!==b&&b!==d&&0===(b&g)){Rc(b);if(e<=F)return b;F=e;}b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-Vc(b),e=1<<c,d|=a[c],b&=~e;return d}
		function Wc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function Xc(a,b){switch(a){case 15:return 1;case 14:return 2;case 12:return a=Yc(24&~b),0===a?Xc(10,b):a;case 10:return a=Yc(192&~b),0===a?Xc(8,b):a;case 8:return a=Yc(3584&~b),0===a&&(a=Yc(4186112&~b),0===a&&(a=512)),a;case 2:return b=Yc(805306368&~b),0===b&&(b=268435456),b}throw Error(y(358,a));}function Yc(a){return a&-a}function Zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}
		function $c(a,b,c){a.pendingLanes|=b;var d=b-1;a.suspendedLanes&=d;a.pingedLanes&=d;a=a.eventTimes;b=31-Vc(b);a[b]=c;}var Vc=Math.clz32?Math.clz32:ad,bd=Math.log,cd=Math.LN2;function ad(a){return 0===a?32:31-(bd(a)/cd|0)|0}var dd=r.unstable_UserBlockingPriority,ed=r.unstable_runWithPriority,fd=!0;function gd(a,b,c,d){Kb||Ib();var e=hd,f=Kb;Kb=!0;try{Hb(e,a,b,c,d);}finally{(Kb=f)||Mb();}}function id(a,b,c,d){ed(dd,hd.bind(null,a,b,c,d));}
		function hd(a,b,c,d){if(fd){var e;if((e=0===(b&4))&&0<jc.length&&-1<qc.indexOf(a))a=rc(null,a,b,c,d),jc.push(a);else {var f=yc(a,b,c,d);if(null===f)e&&sc(a,d);else {if(e){if(-1<qc.indexOf(a)){a=rc(f,a,b,c,d);jc.push(a);return}if(uc(f,a,b,c,d))return;sc(a,d);}jd(a,b,d,null,c);}}}}
		function yc(a,b,c,d){var e=xb(d);e=wc(e);if(null!==e){var f=Zb(e);if(null===f)e=null;else {var g=f.tag;if(13===g){e=$b(f);if(null!==e)return e;e=null;}else if(3===g){if(f.stateNode.hydrate)return 3===f.tag?f.stateNode.containerInfo:null;e=null;}else f!==e&&(e=null);}}jd(a,b,d,e,c);return null}var kd=null,ld=null,md=null;
		function nd(){if(md)return md;var a,b=ld,c=b.length,d,e="value"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}function od(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd(){return !0}function qd(){return !1}
		function rd(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd;this.isPropagationStopped=qd;return this}m(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&
		(a.returnValue=!1),this.isDefaultPrevented=pd);},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd);},persist:function(){},isPersistent:pd});return b}
		var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=m({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=m({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in
		a)return a.movementX;a!==yd&&(yd&&"mousemove"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a);return wd},movementY:function(a){return "movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=m({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=m({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=m({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=m({},sd,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=m({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",
		Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od[a])?!!b[a]:!1}function zd(){return Pd}
		var Qd=m({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if("Unidentified"!==b)return b}return "keypress"===a.type?(a=od(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return "keypress"===a.type?od(a):0},keyCode:function(a){return "keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return "keypress"===
		a.type?od(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),Rd=rd(Qd),Sd=m({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=m({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=m({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=m({},Ad,{deltaX:function(a){return "deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},
		deltaY:function(a){return "deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=fa&&"CompositionEvent"in window,be=null;fa&&"documentMode"in document&&(be=document.documentMode);var ce=fa&&"TextEvent"in window&&!be,de=fa&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;
		function ge(a,b){switch(a){case "keyup":return -1!==$d.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "focusout":return !0;default:return !1}}function he(a){a=a.detail;return "object"===typeof a&&"data"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case "compositionend":return he(b);case "keypress":if(32!==b.which)return null;fe=!0;return ee;case "textInput":return a=b.data,a===ee&&fe?null:a;default:return null}}
		function ke(a,b){if(ie)return "compositionend"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "compositionend":return de&&"ko"!==b.locale?null:b.data;default:return null}}
		var le={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 me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return "input"===b?!!le[a.type]:"textarea"===b?!0:!1}function ne(a,b,c,d){Eb(d);b=oe(b,"onChange");0<b.length&&(c=new td("onChange","change",null,c,d),a.push({event:c,listeners:b}));}var pe=null,qe=null;function re(a){se(a,0);}function te(a){var b=ue(a);if(Wa(b))return a}
		function ve(a,b){if("change"===a)return b}var we=!1;if(fa){var xe;if(fa){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;");ye="function"===typeof ze.oninput;}xe=ye;}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode);}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null);}function Be(a){if("value"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a));a=re;if(Kb)a(b);else {Kb=!0;try{Gb(a,b);}finally{Kb=!1,Mb();}}}}
		function Ce(a,b,c){"focusin"===a?(Ae(),pe=b,qe=c,pe.attachEvent("onpropertychange",Be)):"focusout"===a&&Ae();}function De(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return te(qe)}function Ee(a,b){if("click"===a)return te(b)}function Fe(a,b){if("input"===a||"change"===a)return te(b)}function Ge(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He="function"===typeof Object.is?Object.is:Ge,Ie=Object.prototype.hasOwnProperty;
		function Je(a,b){if(He(a,b))return !0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return !1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return !1;for(d=0;d<c.length;d++)if(!Ie.call(b,c[d])||!He(a[c[d]],b[c[d]]))return !1;return !0}function Ke(a){for(;a&&a.firstChild;)a=a.firstChild;return a}
		function Le(a,b){var c=Ke(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return {node:c,offset:b-a};a=d;}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode;}c=void 0;}c=Ke(c);}}function Me(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Me(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}
		function Ne(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href;}catch(d){c=!1;}if(c)a=b.contentWindow;else break;b=Xa(a.document);}return b}function Oe(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}
		var Pe=fa&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;
		function Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,"selectionStart"in d&&Oe(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Je(Se,d)||(Se=d,d=oe(Re,"onSelect"),0<d.length&&(b=new td("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)));}
		Pc("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);Pc("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);Pc(Oc,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<Ve.length;We++)Nc.set(Ve[We],0);ea("onMouseEnter",["mouseout","mouseover"]);
		ea("onMouseLeave",["mouseout","mouseover"]);ea("onPointerEnter",["pointerout","pointerover"]);ea("onPointerLeave",["pointerout","pointerover"]);da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));da("onBeforeInput",["compositionend","keypress","textInput","paste"]);da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));
		da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xe));
		function Ze(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Yb(d,b,void 0,a);a.currentTarget=null;}
		function se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;Ze(e,h,l);f=k;}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;Ze(e,h,l);f=k;}}}if(Ub)throw a=Vb,Ub=!1,Vb=null,a;}
		function G(a,b){var c=$e(b),d=a+"__bubble";c.has(d)||(af(b,a,2,!1),c.add(d));}var bf="_reactListening"+Math.random().toString(36).slice(2);function cf(a){a[bf]||(a[bf]=!0,ba.forEach(function(b){Ye.has(b)||df(b,!1,a,null);df(b,!0,a,null);}));}
		function df(a,b,c,d){var e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,f=c;"selectionchange"===a&&9!==c.nodeType&&(f=c.ownerDocument);if(null!==d&&!b&&Ye.has(a)){if("scroll"!==a)return;e|=2;f=d;}var g=$e(f),h=a+"__"+(b?"capture":"bubble");g.has(h)||(b&&(e|=4),af(f,a,e,b),g.add(h));}
		function af(a,b,c,d){var e=Nc.get(b);switch(void 0===e?2:e){case 0:e=gd;break;case 1:e=id;break;default:e=hd;}c=e.bind(null,b,c,a);e=void 0;!Pb||"touchstart"!==b&&"touchmove"!==b&&"wheel"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1);}
		function jd(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return;}for(;null!==h;){g=wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode;}}d=d.return;}Nb(function(){var d=f,e=xb(c),g=[];
		a:{var h=Mc.get(a);if(void 0!==h){var k=td,x=a;switch(a){case "keypress":if(0===od(c))break a;case "keydown":case "keyup":k=Rd;break;case "focusin":x="focus";k=Fd;break;case "focusout":x="blur";k=Fd;break;case "beforeblur":case "afterblur":k=Fd;break;case "click":if(2===c.button)break a;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":k=Bd;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":k=
		Dd;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=Vd;break;case Ic:case Jc:case Kc:k=Hd;break;case Lc:k=Xd;break;case "scroll":k=vd;break;case "wheel":k=Zd;break;case "copy":case "cut":case "paste":k=Jd;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=Td;}var w=0!==(b&4),z=!w&&"scroll"===a,u=w?null!==h?h+"Capture":null:h;w=[];for(var t=d,q;null!==
		t;){q=t;var v=q.stateNode;5===q.tag&&null!==v&&(q=v,null!==u&&(v=Ob(t,u),null!=v&&w.push(ef(t,v,q))));if(z)break;t=t.return;}0<w.length&&(h=new k(h,x,null,c,e),g.push({event:h,listeners:w}));}}if(0===(b&7)){a:{h="mouseover"===a||"pointerover"===a;k="mouseout"===a||"pointerout"===a;if(h&&0===(b&16)&&(x=c.relatedTarget||c.fromElement)&&(wc(x)||x[ff]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(x=c.relatedTarget||c.toElement,k=d,x=x?wc(x):null,null!==
		x&&(z=Zb(x),x!==z||5!==x.tag&&6!==x.tag))x=null;}else k=null,x=d;if(k!==x){w=Bd;v="onMouseLeave";u="onMouseEnter";t="mouse";if("pointerout"===a||"pointerover"===a)w=Td,v="onPointerLeave",u="onPointerEnter",t="pointer";z=null==k?h:ue(k);q=null==x?h:ue(x);h=new w(v,t+"leave",k,c,e);h.target=z;h.relatedTarget=q;v=null;wc(e)===d&&(w=new w(u,t+"enter",x,c,e),w.target=q,w.relatedTarget=z,v=w);z=v;if(k&&x)b:{w=k;u=x;t=0;for(q=w;q;q=gf(q))t++;q=0;for(v=u;v;v=gf(v))q++;for(;0<t-q;)w=gf(w),t--;for(;0<q-t;)u=
		gf(u),q--;for(;t--;){if(w===u||null!==u&&w===u.alternate)break b;w=gf(w);u=gf(u);}w=null;}else w=null;null!==k&&hf(g,h,k,w,!1);null!==x&&null!==z&&hf(g,z,x,w,!0);}}}a:{h=d?ue(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if("select"===k||"input"===k&&"file"===h.type)var J=ve;else if(me(h))if(we)J=Fe;else {J=De;var K=Ce;}else (k=h.nodeName)&&"input"===k.toLowerCase()&&("checkbox"===h.type||"radio"===h.type)&&(J=Ee);if(J&&(J=J(a,d))){ne(g,J,c,e);break a}K&&K(a,h,d);"focusout"===a&&(K=h._wrapperState)&&
		K.controlled&&"number"===h.type&&bb(h,"number",h.value);}K=d?ue(d):window;switch(a){case "focusin":if(me(K)||"true"===K.contentEditable)Qe=K,Re=d,Se=null;break;case "focusout":Se=Re=Qe=null;break;case "mousedown":Te=!0;break;case "contextmenu":case "mouseup":case "dragend":Te=!1;Ue(g,c,e);break;case "selectionchange":if(Pe)break;case "keydown":case "keyup":Ue(g,c,e);}var Q;if(ae)b:{switch(a){case "compositionstart":var L="onCompositionStart";break b;case "compositionend":L="onCompositionEnd";break b;
		case "compositionupdate":L="onCompositionUpdate";break b}L=void 0;}else ie?ge(a,c)&&(L="onCompositionEnd"):"keydown"===a&&229===c.keyCode&&(L="onCompositionStart");L&&(de&&"ko"!==c.locale&&(ie||"onCompositionStart"!==L?"onCompositionEnd"===L&&ie&&(Q=nd()):(kd=e,ld="value"in kd?kd.value:kd.textContent,ie=!0)),K=oe(d,L),0<K.length&&(L=new Ld(L,a,null,c,e),g.push({event:L,listeners:K}),Q?L.data=Q:(Q=he(c),null!==Q&&(L.data=Q))));if(Q=ce?je(a,c):ke(a,c))d=oe(d,"onBeforeInput"),0<d.length&&(e=new Ld("onBeforeInput",
		"beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=Q);}se(g,b);});}function ef(a,b,c){return {instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Ob(a,c),null!=f&&d.unshift(ef(a,f,e)),f=Ob(a,b),null!=f&&d.push(ef(a,f,e)));a=a.return;}return d}function gf(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}
		function hf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Ob(c,f),null!=k&&g.unshift(ef(c,k,h))):e||(k=Ob(c,f),null!=k&&g.push(ef(c,k,h))));c=c.return;}0!==g.length&&a.push({event:b,listeners:g});}function jf(){}var kf=null,lf=null;function mf(a,b){switch(a){case "button":case "input":case "select":case "textarea":return !!b.autoFocus}return !1}
		function nf(a,b){return "textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var of="function"===typeof setTimeout?setTimeout:void 0,pf="function"===typeof clearTimeout?clearTimeout:void 0;function qf(a){1===a.nodeType?a.textContent="":9===a.nodeType&&(a=a.body,null!=a&&(a.textContent=""));}
		function rf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}function sf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--;}else "/$"===c&&b++;}a=a.previousSibling;}return null}var tf=0;function uf(a){return {$$typeof:Ga,toString:a,valueOf:a}}var vf=Math.random().toString(36).slice(2),wf="__reactFiber$"+vf,xf="__reactProps$"+vf,ff="__reactContainer$"+vf,yf="__reactEvents$"+vf;
		function wc(a){var b=a[wf];if(b)return b;for(var c=a.parentNode;c;){if(b=c[ff]||c[wf]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=sf(a);null!==a;){if(c=a[wf])return c;a=sf(a);}return b}a=c;c=a.parentNode;}return null}function Cb(a){a=a[wf]||a[ff];return !a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(y(33));}function Db(a){return a[xf]||null}
		function $e(a){var b=a[yf];void 0===b&&(b=a[yf]=new Set);return b}var zf=[],Af=-1;function Bf(a){return {current:a}}function H(a){0>Af||(a.current=zf[Af],zf[Af]=null,Af--);}function I(a,b){Af++;zf[Af]=a.current;a.current=b;}var Cf={},M=Bf(Cf),N=Bf(!1),Df=Cf;
		function Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function Ff(a){a=a.childContextTypes;return null!==a&&void 0!==a}function Gf(){H(N);H(M);}function Hf(a,b,c){if(M.current!==Cf)throw Error(y(168));I(M,b);I(N,c);}
		function If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(y(108,Ra(b)||"Unknown",e));return m({},c,d)}function Jf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Cf;Df=M.current;I(M,a);I(N,N.current);return !0}function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(y(169));c?(a=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=a,H(N),H(M),I(M,a)):H(N);I(N,c);}
		var Lf=null,Mf=null,Nf=r.unstable_runWithPriority,Of=r.unstable_scheduleCallback,Pf=r.unstable_cancelCallback,Qf=r.unstable_shouldYield,Rf=r.unstable_requestPaint,Sf=r.unstable_now,Tf=r.unstable_getCurrentPriorityLevel,Uf=r.unstable_ImmediatePriority,Vf=r.unstable_UserBlockingPriority,Wf=r.unstable_NormalPriority,Xf=r.unstable_LowPriority,Yf=r.unstable_IdlePriority,Zf={},$f=void 0!==Rf?Rf:function(){},ag=null,bg=null,cg=!1,dg=Sf(),O=1E4>dg?Sf:function(){return Sf()-dg};
		function eg(){switch(Tf()){case Uf:return 99;case Vf:return 98;case Wf:return 97;case Xf:return 96;case Yf:return 95;default:throw Error(y(332));}}function fg(a){switch(a){case 99:return Uf;case 98:return Vf;case 97:return Wf;case 96:return Xf;case 95:return Yf;default:throw Error(y(332));}}function gg(a,b){a=fg(a);return Nf(a,b)}function hg(a,b,c){a=fg(a);return Of(a,b,c)}function ig(){if(null!==bg){var a=bg;bg=null;Pf(a);}jg();}
		function jg(){if(!cg&&null!==ag){cg=!0;var a=0;try{var b=ag;gg(99,function(){for(;a<b.length;a++){var c=b[a];do c=c(!0);while(null!==c)}});ag=null;}catch(c){throw null!==ag&&(ag=ag.slice(a+1)),Of(Uf,ig),c;}finally{cg=!1;}}}var kg=ra.ReactCurrentBatchConfig;function lg(a,b){if(a&&a.defaultProps){b=m({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}var mg=Bf(null),ng=null,og=null,pg=null;function qg(){pg=og=ng=null;}
		function rg(a){var b=mg.current;H(mg);a.type._context._currentValue=b;}function sg(a,b){for(;null!==a;){var c=a.alternate;if((a.childLanes&b)===b)if(null===c||(c.childLanes&b)===b)break;else c.childLanes|=b;else a.childLanes|=b,null!==c&&(c.childLanes|=b);a=a.return;}}function tg(a,b){ng=a;pg=og=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(ug=!0),a.firstContext=null);}
		function vg(a,b){if(pg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)pg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===og){if(null===ng)throw Error(y(308));og=b;ng.dependencies={lanes:0,firstContext:b,responders:null};}else og=og.next=b;}return a._currentValue}var wg=!1;function xg(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null};}
		function yg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects});}function zg(a,b){return {eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}function Ag(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b;}}
		function Bg(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next;}while(null!==c);null===f?e=f=b:f=f.next=b;}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=
		b;c.lastBaseUpdate=b;}
		function Cg(a,b,c,d){var e=a.updateQueue;wg=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var n=a.alternate;if(null!==n){n=n.updateQueue;var A=n.lastBaseUpdate;A!==g&&(null===A?n.firstBaseUpdate=l:A.next=l,n.lastBaseUpdate=k);}}if(null!==f){A=e.baseState;g=0;n=l=k=null;do{h=f.lane;var p=f.eventTime;if((d&h)===h){null!==n&&(n=n.next={eventTime:p,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,
		next:null});a:{var C=a,x=f;h=b;p=c;switch(x.tag){case 1:C=x.payload;if("function"===typeof C){A=C.call(p,A,h);break a}A=C;break a;case 3:C.flags=C.flags&-4097|64;case 0:C=x.payload;h="function"===typeof C?C.call(p,A,h):C;if(null===h||void 0===h)break a;A=m({},A,h);break a;case 2:wg=!0;}}null!==f.callback&&(a.flags|=32,h=e.effects,null===h?e.effects=[f]:h.push(f));}else p={eventTime:p,lane:h,tag:f.tag,payload:f.payload,callback:f.callback,next:null},null===n?(l=n=p,k=A):n=n.next=p,g|=h;f=f.next;if(null===
		f)if(h=e.shared.pending,null===h)break;else f=h.next,h.next=null,e.lastBaseUpdate=h,e.shared.pending=null;}while(1);null===n&&(k=A);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=n;Dg|=g;a.lanes=g;a.memoizedState=A;}}function Eg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(y(191,e));e.call(d);}}}var Fg=(new aa.Component).refs;
		function Gg(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:m({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c);}
		var Kg={isMounted:function(a){return (a=a._reactInternals)?Zb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=Hg(),e=Ig(a),f=zg(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);Ag(a,f);Jg(a,e,d);},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=Hg(),e=Ig(a),f=zg(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);Ag(a,f);Jg(a,e,d);},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=Hg(),d=Ig(a),e=zg(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=
		b);Ag(a,e);Jg(a,d,c);}};function Lg(a,b,c,d,e,f,g){a=a.stateNode;return "function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Je(c,d)||!Je(e,f):!0}
		function Mg(a,b,c){var d=!1,e=Cf;var f=b.contextType;"object"===typeof f&&null!==f?f=vg(f):(e=Ff(b)?Df:M.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Ef(a,e):Cf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=Kg;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}
		function Ng(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&Kg.enqueueReplaceState(b,b.state,null);}
		function Og(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=Fg;xg(a);var f=b.contextType;"object"===typeof f&&null!==f?e.context=vg(f):(f=Ff(b)?Df:M.current,e.context=Ef(a,f));Cg(a,c,e,d);e.state=a.memoizedState;f=b.getDerivedStateFromProps;"function"===typeof f&&(Gg(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||"function"!==typeof e.UNSAFE_componentWillMount&&"function"!==typeof e.componentWillMount||
		(b=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Kg.enqueueReplaceState(e,e.state,null),Cg(a,c,e,d),e.state=a.memoizedState);"function"===typeof e.componentDidMount&&(a.flags|=4);}var Pg=Array.isArray;
		function Qg(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(y(309));var d=c.stateNode;}if(!d)throw Error(y(147,a));var e=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs;b===Fg&&(b=d.refs={});null===a?delete b[e]:b[e]=a;};b._stringRef=e;return b}if("string"!==typeof a)throw Error(y(284));if(!c._owner)throw Error(y(290,a));}return a}
		function Rg(a,b){if("textarea"!==a.type)throw Error(y(31,"[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b));}
		function Sg(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.flags=8;}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Tg(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags=2,
		c):d;b.flags=2;return c}function g(b){a&&null===b.alternate&&(b.flags=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Ug(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){if(null!==b&&b.elementType===c.type)return d=e(b,c.props),d.ref=Qg(a,b,c),d.return=a,d;d=Vg(c.type,c.key,c.props,null,a.mode,d);d.ref=Qg(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=
		Wg(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function n(a,b,c,d,f){if(null===b||7!==b.tag)return b=Xg(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function A(a,b,c){if("string"===typeof b||"number"===typeof b)return b=Ug(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case sa:return c=Vg(b.type,b.key,b.props,null,a.mode,c),c.ref=Qg(a,null,b),c.return=a,c;case ta:return b=Wg(b,a.mode,c),b.return=a,b}if(Pg(b)||La(b))return b=Xg(b,
		a.mode,c,null),b.return=a,b;Rg(a,b);}return null}function p(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case sa:return c.key===e?c.type===ua?n(a,b,c.props.children,d,e):k(a,b,c,d):null;case ta:return c.key===e?l(a,b,c,d):null}if(Pg(c)||La(c))return null!==e?null:n(a,b,c,d,null);Rg(a,c);}return null}function C(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=a.get(c)||
		null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case sa:return a=a.get(null===d.key?c:d.key)||null,d.type===ua?n(b,a,d.props.children,e,d.key):k(b,a,d,e);case ta:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e)}if(Pg(d)||La(d))return a=a.get(c)||null,n(b,a,d,e,null);Rg(b,d);}return null}function x(e,g,h,k){for(var l=null,t=null,u=g,z=g=0,q=null;null!==u&&z<h.length;z++){u.index>z?(q=u,u=null):q=u.sibling;var n=p(e,u,h[z],k);if(null===n){null===u&&(u=q);break}a&&u&&null===
		n.alternate&&b(e,u);g=f(n,g,z);null===t?l=n:t.sibling=n;t=n;u=q;}if(z===h.length)return c(e,u),l;if(null===u){for(;z<h.length;z++)u=A(e,h[z],k),null!==u&&(g=f(u,g,z),null===t?l=u:t.sibling=u,t=u);return l}for(u=d(e,u);z<h.length;z++)q=C(u,e,z,h[z],k),null!==q&&(a&&null!==q.alternate&&u.delete(null===q.key?z:q.key),g=f(q,g,z),null===t?l=q:t.sibling=q,t=q);a&&u.forEach(function(a){return b(e,a)});return l}function w(e,g,h,k){var l=La(h);if("function"!==typeof l)throw Error(y(150));h=l.call(h);if(null==
		h)throw Error(y(151));for(var t=l=null,u=g,z=g=0,q=null,n=h.next();null!==u&&!n.done;z++,n=h.next()){u.index>z?(q=u,u=null):q=u.sibling;var w=p(e,u,n.value,k);if(null===w){null===u&&(u=q);break}a&&u&&null===w.alternate&&b(e,u);g=f(w,g,z);null===t?l=w:t.sibling=w;t=w;u=q;}if(n.done)return c(e,u),l;if(null===u){for(;!n.done;z++,n=h.next())n=A(e,n.value,k),null!==n&&(g=f(n,g,z),null===t?l=n:t.sibling=n,t=n);return l}for(u=d(e,u);!n.done;z++,n=h.next())n=C(u,e,z,n.value,k),null!==n&&(a&&null!==n.alternate&&
		u.delete(null===n.key?z:n.key),g=f(n,g,z),null===t?l=n:t.sibling=n,t=n);a&&u.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ua&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case sa:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ua){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,k.sibling);
		d=e(k,f.props);d.ref=Qg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling;}f.type===ua?(d=Xg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Vg(f.type,f.key,f.props,null,a.mode,h),h.ref=Qg(a,d,f),h.return=a,a=h);}return g(a);case ta:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else {c(a,d);break}else b(a,d);d=d.sibling;}d=
		Wg(f,a.mode,h);d.return=a;a=d;}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Ug(f,a.mode,h),d.return=a,a=d),g(a);if(Pg(f))return x(a,d,f,h);if(La(f))return w(a,d,f,h);l&&Rg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,Ra(a.type)||"Component"));}return c(a,d)}}var Yg=Sg(!0),Zg=Sg(!1),$g={},ah=Bf($g),bh=Bf($g),ch=Bf($g);
		function dh(a){if(a===$g)throw Error(y(174));return a}function eh(a,b){I(ch,b);I(bh,a);I(ah,$g);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:mb(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=mb(b,a);}H(ah);I(ah,b);}function fh(){H(ah);H(bh);H(ch);}function gh(a){dh(ch.current);var b=dh(ah.current);var c=mb(b,a.type);b!==c&&(I(bh,a),I(ah,c));}function hh(a){bh.current===a&&(H(ah),H(bh));}var P=Bf(0);
		function ih(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return;}b.sibling.return=b.return;b=b.sibling;}return null}var jh=null,kh=null,lh=!1;
		function mh(a,b){var c=nh(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.flags=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c;}function oh(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return !1;default:return !1}}
		function ph(a){if(lh){var b=kh;if(b){var c=b;if(!oh(a,b)){b=rf(c.nextSibling);if(!b||!oh(a,b)){a.flags=a.flags&-1025|2;lh=!1;jh=a;return}mh(jh,c);}jh=a;kh=rf(b.firstChild);}else a.flags=a.flags&-1025|2,lh=!1,jh=a;}}function qh(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;jh=a;}
		function rh(a){if(a!==jh)return !1;if(!lh)return qh(a),lh=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!nf(b,a.memoizedProps))for(b=kh;b;)mh(a,b),b=rf(b.nextSibling);qh(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(y(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){kh=rf(a.nextSibling);break a}b--;}else "$"!==c&&"$!"!==c&&"$?"!==c||b++;}a=a.nextSibling;}kh=null;}}else kh=jh?rf(a.stateNode.nextSibling):null;return !0}
		function sh(){kh=jh=null;lh=!1;}var th=[];function uh(){for(var a=0;a<th.length;a++)th[a]._workInProgressVersionPrimary=null;th.length=0;}var vh=ra.ReactCurrentDispatcher,wh=ra.ReactCurrentBatchConfig,xh=0,R=null,S=null,T=null,yh=!1,zh=!1;function Ah(){throw Error(y(321));}function Bh(a,b){if(null===b)return !1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return !1;return !0}
		function Ch(a,b,c,d,e,f){xh=f;R=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;vh.current=null===a||null===a.memoizedState?Dh:Eh;a=c(d,e);if(zh){f=0;do{zh=!1;if(!(25>f))throw Error(y(301));f+=1;T=S=null;b.updateQueue=null;vh.current=Fh;a=c(d,e);}while(zh)}vh.current=Gh;b=null!==S&&null!==S.next;xh=0;T=S=R=null;yh=!1;if(b)throw Error(y(300));return a}function Hh(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===T?R.memoizedState=T=a:T=T.next=a;return T}
		function Ih(){if(null===S){var a=R.alternate;a=null!==a?a.memoizedState:null;}else a=S.next;var b=null===T?R.memoizedState:T.next;if(null!==b)T=b,S=a;else {if(null===a)throw Error(y(310));S=a;a={memoizedState:S.memoizedState,baseState:S.baseState,baseQueue:S.baseQueue,queue:S.queue,next:null};null===T?R.memoizedState=T=a:T=T.next=a;}return T}function Jh(a,b){return "function"===typeof b?b(a):b}
		function Kh(a){var b=Ih(),c=b.queue;if(null===c)throw Error(y(311));c.lastRenderedReducer=a;var d=S,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g;}d.baseQueue=e=f;c.pending=null;}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.lane;if((xh&l)===l)null!==h&&(h=h.next={lane:0,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),d=k.eagerReducer===a?k.eagerState:a(d,k.action);else {var n={lane:l,action:k.action,eagerReducer:k.eagerReducer,
		eagerState:k.eagerState,next:null};null===h?(g=h=n,f=d):h=h.next=n;R.lanes|=l;Dg|=l;}k=k.next;}while(null!==k&&k!==e);null===h?f=d:h.next=g;He(d,b.memoizedState)||(ug=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d;}return [b.memoizedState,c.dispatch]}
		function Lh(a){var b=Ih(),c=b.queue;if(null===c)throw Error(y(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(ug=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f;}return [f,d]}
		function Mh(a,b,c){var d=b._getVersion;d=d(b._source);var e=b._workInProgressVersionPrimary;if(null!==e)a=e===d;else if(a=a.mutableReadLanes,a=(xh&a)===a)b._workInProgressVersionPrimary=d,th.push(b);if(a)return c(b._source);th.push(b);throw Error(y(350));}
		function Nh(a,b,c,d){var e=U;if(null===e)throw Error(y(349));var f=b._getVersion,g=f(b._source),h=vh.current,k=h.useState(function(){return Mh(e,b,c)}),l=k[1],n=k[0];k=T;var A=a.memoizedState,p=A.refs,C=p.getSnapshot,x=A.source;A=A.subscribe;var w=R;a.memoizedState={refs:p,source:b,subscribe:d};h.useEffect(function(){p.getSnapshot=c;p.setSnapshot=l;var a=f(b._source);if(!He(g,a)){a=c(b._source);He(n,a)||(l(a),a=Ig(w),e.mutableReadLanes|=a&e.pendingLanes);a=e.mutableReadLanes;e.entangledLanes|=a;for(var d=
		e.entanglements,h=a;0<h;){var k=31-Vc(h),v=1<<k;d[k]|=a;h&=~v;}}},[c,b,d]);h.useEffect(function(){return d(b._source,function(){var a=p.getSnapshot,c=p.setSnapshot;try{c(a(b._source));var d=Ig(w);e.mutableReadLanes|=d&e.pendingLanes;}catch(q){c(function(){throw q;});}})},[b,d]);He(C,c)&&He(x,b)&&He(A,d)||(a={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:n},a.dispatch=l=Oh.bind(null,R,a),k.queue=a,k.baseQueue=null,n=Mh(e,b,c),k.memoizedState=k.baseState=n);return n}
		function Ph(a,b,c){var d=Ih();return Nh(d,a,b,c)}function Qh(a){var b=Hh();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:a};a=a.dispatch=Oh.bind(null,R,a);return [b.memoizedState,a]}
		function Rh(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=R.updateQueue;null===b?(b={lastEffect:null},R.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function Sh(a){var b=Hh();a={current:a};return b.memoizedState=a}function Th(){return Ih().memoizedState}function Uh(a,b,c,d){var e=Hh();R.flags|=a;e.memoizedState=Rh(1|b,c,void 0,void 0===d?null:d);}
		function Vh(a,b,c,d){var e=Ih();d=void 0===d?null:d;var f=void 0;if(null!==S){var g=S.memoizedState;f=g.destroy;if(null!==d&&Bh(d,g.deps)){Rh(b,c,f,d);return}}R.flags|=a;e.memoizedState=Rh(1|b,c,f,d);}function Wh(a,b){return Uh(516,4,a,b)}function Xh(a,b){return Vh(516,4,a,b)}function Yh(a,b){return Vh(4,2,a,b)}function Zh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null);};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null;}}
		function $h(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Vh(4,2,Zh.bind(null,b,a),c)}function ai(){}function bi(a,b){var c=Ih();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Bh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function ci(a,b){var c=Ih();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Bh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}
		function di(a,b){var c=eg();gg(98>c?98:c,function(){a(!0);});gg(97<c?97:c,function(){var c=wh.transition;wh.transition=1;try{a(!1),b();}finally{wh.transition=c;}});}
		function Oh(a,b,c){var d=Hg(),e=Ig(a),f={lane:e,action:c,eagerReducer:null,eagerState:null,next:null},g=b.pending;null===g?f.next=f:(f.next=g.next,g.next=f);b.pending=f;g=a.alternate;if(a===R||null!==g&&g===R)zh=yh=!0;else {if(0===a.lanes&&(null===g||0===g.lanes)&&(g=b.lastRenderedReducer,null!==g))try{var h=b.lastRenderedState,k=g(h,c);f.eagerReducer=g;f.eagerState=k;if(He(k,h))return}catch(l){}finally{}Jg(a,e,d);}}
		var Gh={readContext:vg,useCallback:Ah,useContext:Ah,useEffect:Ah,useImperativeHandle:Ah,useLayoutEffect:Ah,useMemo:Ah,useReducer:Ah,useRef:Ah,useState:Ah,useDebugValue:Ah,useDeferredValue:Ah,useTransition:Ah,useMutableSource:Ah,useOpaqueIdentifier:Ah,unstable_isNewReconciler:!1},Dh={readContext:vg,useCallback:function(a,b){Hh().memoizedState=[a,void 0===b?null:b];return a},useContext:vg,useEffect:Wh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Uh(4,2,Zh.bind(null,
		b,a),c)},useLayoutEffect:function(a,b){return Uh(4,2,a,b)},useMemo:function(a,b){var c=Hh();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Hh();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Oh.bind(null,R,a);return [d.memoizedState,a]},useRef:Sh,useState:Qh,useDebugValue:ai,useDeferredValue:function(a){var b=Qh(a),c=b[0],d=b[1];Wh(function(){var b=wh.transition;
		wh.transition=1;try{d(a);}finally{wh.transition=b;}},[a]);return c},useTransition:function(){var a=Qh(!1),b=a[0];a=di.bind(null,a[1]);Sh(a);return [a,b]},useMutableSource:function(a,b,c){var d=Hh();d.memoizedState={refs:{getSnapshot:b,setSnapshot:null},source:a,subscribe:c};return Nh(d,a,b,c)},useOpaqueIdentifier:function(){if(lh){var a=!1,b=uf(function(){a||(a=!0,c("r:"+(tf++).toString(36)));throw Error(y(355));}),c=Qh(b)[1];0===(R.mode&2)&&(R.flags|=516,Rh(5,function(){c("r:"+(tf++).toString(36));},
		void 0,null));return b}b="r:"+(tf++).toString(36);Qh(b);return b},unstable_isNewReconciler:!1},Eh={readContext:vg,useCallback:bi,useContext:vg,useEffect:Xh,useImperativeHandle:$h,useLayoutEffect:Yh,useMemo:ci,useReducer:Kh,useRef:Th,useState:function(){return Kh(Jh)},useDebugValue:ai,useDeferredValue:function(a){var b=Kh(Jh),c=b[0],d=b[1];Xh(function(){var b=wh.transition;wh.transition=1;try{d(a);}finally{wh.transition=b;}},[a]);return c},useTransition:function(){var a=Kh(Jh)[0];return [Th().current,
		a]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Kh(Jh)[0]},unstable_isNewReconciler:!1},Fh={readContext:vg,useCallback:bi,useContext:vg,useEffect:Xh,useImperativeHandle:$h,useLayoutEffect:Yh,useMemo:ci,useReducer:Lh,useRef:Th,useState:function(){return Lh(Jh)},useDebugValue:ai,useDeferredValue:function(a){var b=Lh(Jh),c=b[0],d=b[1];Xh(function(){var b=wh.transition;wh.transition=1;try{d(a);}finally{wh.transition=b;}},[a]);return c},useTransition:function(){var a=Lh(Jh)[0];return [Th().current,
		a]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Lh(Jh)[0]},unstable_isNewReconciler:!1},ei=ra.ReactCurrentOwner,ug=!1;function fi(a,b,c,d){b.child=null===a?Zg(b,null,c,d):Yg(b,a.child,c,d);}function gi(a,b,c,d,e){c=c.render;var f=b.ref;tg(b,e);d=Ch(a,b,c,d,f,e);if(null!==a&&!ug)return b.updateQueue=a.updateQueue,b.flags&=-517,a.lanes&=~e,hi(a,b,e);b.flags|=1;fi(a,b,d,e);return b.child}
		function ii(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!ji(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,ki(a,b,g,d,e,f);a=Vg(c.type,null,d,b,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(0===(e&f)&&(e=g.memoizedProps,c=c.compare,c=null!==c?c:Je,c(e,d)&&a.ref===b.ref))return hi(a,b,f);b.flags|=1;a=Tg(g,d);a.ref=b.ref;a.return=b;return b.child=a}
		function ki(a,b,c,d,e,f){if(null!==a&&Je(a.memoizedProps,d)&&a.ref===b.ref)if(ug=!1,0!==(f&e))0!==(a.flags&16384)&&(ug=!0);else return b.lanes=a.lanes,hi(a,b,f);return li(a,b,c,d,f)}
		function mi(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode||"unstable-defer-without-hiding"===d.mode)if(0===(b.mode&4))b.memoizedState={baseLanes:0},ni(b,c);else if(0!==(c&1073741824))b.memoizedState={baseLanes:0},ni(b,null!==f?f.baseLanes:c);else return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a},ni(b,a),null;else null!==f?(d=f.baseLanes|c,b.memoizedState=null):d=c,ni(b,d);fi(a,b,e,c);return b.child}
		function oi(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=128;}function li(a,b,c,d,e){var f=Ff(c)?Df:M.current;f=Ef(b,f);tg(b,e);c=Ch(a,b,c,d,f,e);if(null!==a&&!ug)return b.updateQueue=a.updateQueue,b.flags&=-517,a.lanes&=~e,hi(a,b,e);b.flags|=1;fi(a,b,c,e);return b.child}
		function pi(a,b,c,d,e){if(Ff(c)){var f=!0;Jf(b);}else f=!1;tg(b,e);if(null===b.stateNode)null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2),Mg(b,c,d),Og(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=vg(l):(l=Ff(c)?Df:M.current,l=Ef(b,l));var n=c.getDerivedStateFromProps,A="function"===typeof n||"function"===typeof g.getSnapshotBeforeUpdate;A||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&
		"function"!==typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Ng(b,g,d,l);wg=!1;var p=b.memoizedState;g.state=p;Cg(b,d,g,e);k=b.memoizedState;h!==d||p!==k||N.current||wg?("function"===typeof n&&(Gg(b,c,n,d),k=b.memoizedState),(h=wg||Lg(b,c,h,d,p,k,l))?(A||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===
		typeof g.componentDidMount&&(b.flags|=4)):("function"===typeof g.componentDidMount&&(b.flags|=4),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4),d=!1);}else {g=b.stateNode;yg(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:lg(b.type,h);g.props=l;A=b.pendingProps;p=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=vg(k):(k=Ff(c)?Df:M.current,k=Ef(b,k));var C=c.getDerivedStateFromProps;(n="function"===typeof C||
		"function"===typeof g.getSnapshotBeforeUpdate)||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==A||p!==k)&&Ng(b,g,d,k);wg=!1;p=b.memoizedState;g.state=p;Cg(b,d,g,e);var x=b.memoizedState;h!==A||p!==x||N.current||wg?("function"===typeof C&&(Gg(b,c,C,d),x=b.memoizedState),(l=wg||Lg(b,c,l,d,p,x,k))?(n||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,
		x,k),"function"===typeof g.UNSAFE_componentWillUpdate&&g.UNSAFE_componentWillUpdate(d,x,k)),"function"===typeof g.componentDidUpdate&&(b.flags|=4),"function"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=256)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&p===a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&p===a.memoizedState||(b.flags|=256),b.memoizedProps=d,b.memoizedState=x),g.props=d,g.state=x,g.context=k,d=l):("function"!==typeof g.componentDidUpdate||
		h===a.memoizedProps&&p===a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&p===a.memoizedState||(b.flags|=256),d=!1);}return qi(a,b,c,d,f,e)}
		function qi(a,b,c,d,e,f){oi(a,b);var g=0!==(b.flags&64);if(!d&&!g)return e&&Kf(b,c,!1),hi(a,b,f);d=b.stateNode;ei.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Yg(b,a.child,null,f),b.child=Yg(b,null,h,f)):fi(a,b,h,f);b.memoizedState=d.state;e&&Kf(b,c,!0);return b.child}function ri(a){var b=a.stateNode;b.pendingContext?Hf(a,b.pendingContext,b.pendingContext!==b.context):b.context&&Hf(a,b.context,!1);eh(a,b.containerInfo);}
		var si={dehydrated:null,retryLane:0};
		function ti(a,b,c){var d=b.pendingProps,e=P.current,f=!1,g;(g=0!==(b.flags&64))||(g=null!==a&&null===a.memoizedState?!1:0!==(e&2));g?(f=!0,b.flags&=-65):null!==a&&null===a.memoizedState||void 0===d.fallback||!0===d.unstable_avoidThisFallback||(e|=1);I(P,e&1);if(null===a){void 0!==d.fallback&&ph(b);a=d.children;e=d.fallback;if(f)return a=ui(b,a,e,c),b.child.memoizedState={baseLanes:c},b.memoizedState=si,a;if("number"===typeof d.unstable_expectedLoadTime)return a=ui(b,a,e,c),b.child.memoizedState={baseLanes:c},
		b.memoizedState=si,b.lanes=33554432,a;c=vi({mode:"visible",children:a},b.mode,c,null);c.return=b;return b.child=c}if(null!==a.memoizedState){if(f)return d=wi(a,b,d.children,d.fallback,c),f=b.child,e=a.child.memoizedState,f.memoizedState=null===e?{baseLanes:c}:{baseLanes:e.baseLanes|c},f.childLanes=a.childLanes&~c,b.memoizedState=si,d;c=xi(a,b,d.children,c);b.memoizedState=null;return c}if(f)return d=wi(a,b,d.children,d.fallback,c),f=b.child,e=a.child.memoizedState,f.memoizedState=null===e?{baseLanes:c}:
		{baseLanes:e.baseLanes|c},f.childLanes=a.childLanes&~c,b.memoizedState=si,d;c=xi(a,b,d.children,c);b.memoizedState=null;return c}function ui(a,b,c,d){var e=a.mode,f=a.child;b={mode:"hidden",children:b};0===(e&2)&&null!==f?(f.childLanes=0,f.pendingProps=b):f=vi(b,e,0,null);c=Xg(c,e,d,null);f.return=a;c.return=a;f.sibling=c;a.child=f;return c}
		function xi(a,b,c,d){var e=a.child;a=e.sibling;c=Tg(e,{mode:"visible",children:c});0===(b.mode&2)&&(c.lanes=d);c.return=b;c.sibling=null;null!==a&&(a.nextEffect=null,a.flags=8,b.firstEffect=b.lastEffect=a);return b.child=c}
		function wi(a,b,c,d,e){var f=b.mode,g=a.child;a=g.sibling;var h={mode:"hidden",children:c};0===(f&2)&&b.child!==g?(c=b.child,c.childLanes=0,c.pendingProps=h,g=c.lastEffect,null!==g?(b.firstEffect=c.firstEffect,b.lastEffect=g,g.nextEffect=null):b.firstEffect=b.lastEffect=null):c=Tg(g,h);null!==a?d=Tg(a,d):(d=Xg(d,f,e,null),d.flags|=2);d.return=b;c.return=b;c.sibling=d;b.child=c;return d}function yi(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);sg(a.return,b);}
		function zi(a,b,c,d,e,f){var g=a.memoizedState;null===g?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e,lastEffect:f}:(g.isBackwards=b,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=c,g.tailMode=e,g.lastEffect=f);}
		function Ai(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;fi(a,b,d.children,c);d=P.current;if(0!==(d&2))d=d&1|2,b.flags|=64;else {if(null!==a&&0!==(a.flags&64))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&yi(a,c);else if(19===a.tag)yi(a,c);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return;}a.sibling.return=a.return;a=a.sibling;}d&=1;}I(P,d);if(0===(b.mode&2))b.memoizedState=
		null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===ih(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);zi(b,!1,e,c,f,b.lastEffect);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===ih(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a;}zi(b,!0,c,null,f,b.lastEffect);break;case "together":zi(b,!1,null,null,void 0,b.lastEffect);break;default:b.memoizedState=null;}return b.child}
		function hi(a,b,c){null!==a&&(b.dependencies=a.dependencies);Dg|=b.lanes;if(0!==(c&b.childLanes)){if(null!==a&&b.child!==a.child)throw Error(y(153));if(null!==b.child){a=b.child;c=Tg(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Tg(a,a.pendingProps),c.return=b;c.sibling=null;}return b.child}return null}var Bi,Ci,Di,Ei;
		Bi=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;}c.sibling.return=c.return;c=c.sibling;}};Ci=function(){};
		Di=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;dh(ah.current);var f=null;switch(c){case "input":e=Ya(a,e);d=Ya(a,d);f=[];break;case "option":e=eb(a,e);d=eb(a,d);f=[];break;case "select":e=m({},e,{value:void 0});d=m({},d,{value:void 0});f=[];break;case "textarea":e=gb(a,e);d=gb(a,d);f=[];break;default:"function"!==typeof e.onClick&&"function"===typeof d.onClick&&(a.onclick=jf);}vb(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===
		l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&(c||(c={}),c[g]="");}else "dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(ca.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||
		(c={}),c[g]=k[g]);}else c||(f||(f=[]),f.push(l,c)),c=k;else "dangerouslySetInnerHTML"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):"children"===l?"string"!==typeof k&&"number"!==typeof k||(f=f||[]).push(l,""+k):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(ca.hasOwnProperty(l)?(null!=k&&"onScroll"===l&&G("scroll",a),f||h===k||(f=[])):"object"===typeof k&&null!==k&&k.$$typeof===Ga?k.toString():(f=f||[]).push(l,k));}c&&(f=f||[]).push("style",
		c);var l=f;if(b.updateQueue=l)b.flags|=4;}};Ei=function(a,b,c,d){c!==d&&(b.flags|=4);};function Fi(a,b){if(!lh)switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null;}}
		function Gi(a,b,c){var d=b.pendingProps;switch(b.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:return Ff(b.type)&&Gf(),null;case 3:fh();H(N);H(M);uh();d=b.stateNode;d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)rh(b)?b.flags|=4:d.hydrate||(b.flags|=256);Ci(b);return null;case 5:hh(b);var e=dh(ch.current);c=b.type;if(null!==a&&null!=b.stateNode)Di(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=128);else {if(!d){if(null===
		b.stateNode)throw Error(y(166));return null}a=dh(ah.current);if(rh(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[wf]=b;d[xf]=f;switch(c){case "dialog":G("cancel",d);G("close",d);break;case "iframe":case "object":case "embed":G("load",d);break;case "video":case "audio":for(a=0;a<Xe.length;a++)G(Xe[a],d);break;case "source":G("error",d);break;case "img":case "image":case "link":G("error",d);G("load",d);break;case "details":G("toggle",d);break;case "input":Za(d,f);G("invalid",d);break;case "select":d._wrapperState=
		{wasMultiple:!!f.multiple};G("invalid",d);break;case "textarea":hb(d,f),G("invalid",d);}vb(c,f);a=null;for(var g in f)f.hasOwnProperty(g)&&(e=f[g],"children"===g?"string"===typeof e?d.textContent!==e&&(a=["children",e]):"number"===typeof e&&d.textContent!==""+e&&(a=["children",""+e]):ca.hasOwnProperty(g)&&null!=e&&"onScroll"===g&&G("scroll",d));switch(c){case "input":Va(d);cb(d,f,!0);break;case "textarea":Va(d);jb(d);break;case "select":case "option":break;default:"function"===typeof f.onClick&&(d.onclick=
		jf);}d=a;b.updateQueue=d;null!==d&&(b.flags|=4);}else {g=9===e.nodeType?e:e.ownerDocument;a===kb.html&&(a=lb(c));a===kb.html?"script"===c?(a=g.createElement("div"),a.innerHTML="<script>\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[wf]=b;a[xf]=d;Bi(a,b,!1,!1);b.stateNode=a;g=wb(c,d);switch(c){case "dialog":G("cancel",a);G("close",a);
		e=d;break;case "iframe":case "object":case "embed":G("load",a);e=d;break;case "video":case "audio":for(e=0;e<Xe.length;e++)G(Xe[e],a);e=d;break;case "source":G("error",a);e=d;break;case "img":case "image":case "link":G("error",a);G("load",a);e=d;break;case "details":G("toggle",a);e=d;break;case "input":Za(a,d);e=Ya(a,d);G("invalid",a);break;case "option":e=eb(a,d);break;case "select":a._wrapperState={wasMultiple:!!d.multiple};e=m({},d,{value:void 0});G("invalid",a);break;case "textarea":hb(a,d);e=
		gb(a,d);G("invalid",a);break;default:e=d;}vb(c,e);var h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?tb(a,k):"dangerouslySetInnerHTML"===f?(k=k?k.__html:void 0,null!=k&&ob(a,k)):"children"===f?"string"===typeof k?("textarea"!==c||""!==k)&&pb(a,k):"number"===typeof k&&pb(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(ca.hasOwnProperty(f)?null!=k&&"onScroll"===f&&G("scroll",a):null!=k&&qa(a,f,k,g));}switch(c){case "input":Va(a);cb(a,d,!1);
		break;case "textarea":Va(a);jb(a);break;case "option":null!=d.value&&a.setAttribute("value",""+Sa(d.value));break;case "select":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,!0);break;default:"function"===typeof e.onClick&&(a.onclick=jf);}mf(c,d)&&(b.flags|=4);}null!==b.ref&&(b.flags|=128);}return null;case 6:if(a&&null!=b.stateNode)Ei(a,b,a.memoizedProps,d);else {if("string"!==typeof d&&null===b.stateNode)throw Error(y(166));
		c=dh(ch.current);dh(ah.current);rh(b)?(d=b.stateNode,c=b.memoizedProps,d[wf]=b,d.nodeValue!==c&&(b.flags|=4)):(d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[wf]=b,b.stateNode=d);}return null;case 13:H(P);d=b.memoizedState;if(0!==(b.flags&64))return b.lanes=c,b;d=null!==d;c=!1;null===a?void 0!==b.memoizedProps.fallback&&rh(b):c=null!==a.memoizedState;if(d&&!c&&0!==(b.mode&2))if(null===a&&!0!==b.memoizedProps.unstable_avoidThisFallback||0!==(P.current&1))0===V&&(V=3);else {if(0===V||3===V)V=
		4;null===U||0===(Dg&134217727)&&0===(Hi&134217727)||Ii(U,W);}if(d||c)b.flags|=4;return null;case 4:return fh(),Ci(b),null===a&&cf(b.stateNode.containerInfo),null;case 10:return rg(b),null;case 17:return Ff(b.type)&&Gf(),null;case 19:H(P);d=b.memoizedState;if(null===d)return null;f=0!==(b.flags&64);g=d.rendering;if(null===g)if(f)Fi(d,!1);else {if(0!==V||null!==a&&0!==(a.flags&64))for(a=b.child;null!==a;){g=ih(a);if(null!==g){b.flags|=64;Fi(d,!1);f=g.updateQueue;null!==f&&(b.updateQueue=f,b.flags|=4);
		null===d.lastEffect&&(b.firstEffect=null);b.lastEffect=d.lastEffect;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,
		f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;I(P,P.current&1|2);return b.child}a=a.sibling;}null!==d.tail&&O()>Ji&&(b.flags|=64,f=!0,Fi(d,!1),b.lanes=33554432);}else {if(!f)if(a=ih(g),null!==a){if(b.flags|=64,f=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Fi(d,!0),null===d.tail&&"hidden"===d.tailMode&&!g.alternate&&!lh)return b=b.lastEffect=d.lastEffect,null!==b&&(b.nextEffect=null),null}else 2*O()-d.renderingStartTime>Ji&&1073741824!==c&&(b.flags|=
		64,f=!0,Fi(d,!1),b.lanes=33554432);d.isBackwards?(g.sibling=b.child,b.child=g):(c=d.last,null!==c?c.sibling=g:b.child=g,d.last=g);}return null!==d.tail?(c=d.tail,d.rendering=c,d.tail=c.sibling,d.lastEffect=b.lastEffect,d.renderingStartTime=O(),c.sibling=null,b=P.current,I(P,f?b&1|2:b&1),c):null;case 23:case 24:return Ki(),null!==a&&null!==a.memoizedState!==(null!==b.memoizedState)&&"unstable-defer-without-hiding"!==d.mode&&(b.flags|=4),null}throw Error(y(156,b.tag));}
		function Li(a){switch(a.tag){case 1:Ff(a.type)&&Gf();var b=a.flags;return b&4096?(a.flags=b&-4097|64,a):null;case 3:fh();H(N);H(M);uh();b=a.flags;if(0!==(b&64))throw Error(y(285));a.flags=b&-4097|64;return a;case 5:return hh(a),null;case 13:return H(P),b=a.flags,b&4096?(a.flags=b&-4097|64,a):null;case 19:return H(P),null;case 4:return fh(),null;case 10:return rg(a),null;case 23:case 24:return Ki(),null;default:return null}}
		function Mi(a,b){try{var c="",d=b;do c+=Qa(d),d=d.return;while(d);var e=c;}catch(f){e="\nError generating stack: "+f.message+"\n"+f.stack;}return {value:a,source:b,stack:e}}function Ni(a,b){try{console.error(b.value);}catch(c){setTimeout(function(){throw c;});}}var Oi="function"===typeof WeakMap?WeakMap:Map;function Pi(a,b,c){c=zg(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Qi||(Qi=!0,Ri=d);Ni(a,b);};return c}
		function Si(a,b,c){c=zg(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if("function"===typeof d){var e=b.value;c.payload=function(){Ni(a,b);return d(e)};}var f=a.stateNode;null!==f&&"function"===typeof f.componentDidCatch&&(c.callback=function(){"function"!==typeof d&&(null===Ti?Ti=new Set([this]):Ti.add(this),Ni(a,b));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""});});return c}var Ui="function"===typeof WeakSet?WeakSet:Set;
		function Vi(a){var b=a.ref;if(null!==b)if("function"===typeof b)try{b(null);}catch(c){Wi(a,c);}else b.current=null;}function Xi(a,b){switch(b.tag){case 0:case 11:case 15:case 22:return;case 1:if(b.flags&256&&null!==a){var c=a.memoizedProps,d=a.memoizedState;a=b.stateNode;b=a.getSnapshotBeforeUpdate(b.elementType===b.type?c:lg(b.type,c),d);a.__reactInternalSnapshotBeforeUpdate=b;}return;case 3:b.flags&256&&qf(b.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y(163));}
		function Yi(a,b,c){switch(c.tag){case 0:case 11:case 15:case 22:b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;do{if(3===(a.tag&3)){var d=a.create;a.destroy=d();}a=a.next;}while(a!==b)}b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;do{var e=a;d=e.next;e=e.tag;0!==(e&4)&&0!==(e&1)&&(Zi(c,a),$i(c,a));a=d;}while(a!==b)}return;case 1:a=c.stateNode;c.flags&4&&(null===b?a.componentDidMount():(d=c.elementType===c.type?b.memoizedProps:lg(c.type,b.memoizedProps),a.componentDidUpdate(d,
		b.memoizedState,a.__reactInternalSnapshotBeforeUpdate)));b=c.updateQueue;null!==b&&Eg(c,b,a);return;case 3:b=c.updateQueue;if(null!==b){a=null;if(null!==c.child)switch(c.child.tag){case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode;}Eg(c,b,a);}return;case 5:a=c.stateNode;null===b&&c.flags&4&&mf(c.type,c.memoizedProps)&&a.focus();return;case 6:return;case 4:return;case 12:return;case 13:null===c.memoizedState&&(c=c.alternate,null!==c&&(c=c.memoizedState,null!==c&&(c=c.dehydrated,null!==c&&Cc(c))));
		return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163));}
		function aj(a,b){for(var c=a;;){if(5===c.tag){var d=c.stateNode;if(b)d=d.style,"function"===typeof d.setProperty?d.setProperty("display","none","important"):d.display="none";else {d=c.stateNode;var e=c.memoizedProps.style;e=void 0!==e&&null!==e&&e.hasOwnProperty("display")?e.display:null;d.style.display=sb("display",e);}}else if(6===c.tag)c.stateNode.nodeValue=b?"":c.memoizedProps;else if((23!==c.tag&&24!==c.tag||null===c.memoizedState||c===a)&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===
		a)break;for(;null===c.sibling;){if(null===c.return||c.return===a)return;c=c.return;}c.sibling.return=c.return;c=c.sibling;}}
		function bj(a,b){if(Mf&&"function"===typeof Mf.onCommitFiberUnmount)try{Mf.onCommitFiberUnmount(Lf,b);}catch(f){}switch(b.tag){case 0:case 11:case 14:case 15:case 22:a=b.updateQueue;if(null!==a&&(a=a.lastEffect,null!==a)){var c=a=a.next;do{var d=c,e=d.destroy;d=d.tag;if(void 0!==e)if(0!==(d&4))Zi(b,c);else {d=b;try{e();}catch(f){Wi(d,f);}}c=c.next;}while(c!==a)}break;case 1:Vi(b);a=b.stateNode;if("function"===typeof a.componentWillUnmount)try{a.props=b.memoizedProps,a.state=b.memoizedState,a.componentWillUnmount();}catch(f){Wi(b,
		f);}break;case 5:Vi(b);break;case 4:cj(a,b);}}function dj(a){a.alternate=null;a.child=null;a.dependencies=null;a.firstEffect=null;a.lastEffect=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.return=null;a.updateQueue=null;}function ej(a){return 5===a.tag||3===a.tag||4===a.tag}
		function fj(a){a:{for(var b=a.return;null!==b;){if(ej(b))break a;b=b.return;}throw Error(y(160));}var c=b;b=c.stateNode;switch(c.tag){case 5:var d=!1;break;case 3:b=b.containerInfo;d=!0;break;case 4:b=b.containerInfo;d=!0;break;default:throw Error(y(161));}c.flags&16&&(pb(b,""),c.flags&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||ej(c.return)){c=null;break a}c=c.return;}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag&&18!==c.tag;){if(c.flags&2)continue b;if(null===
		c.child||4===c.tag)continue b;else c.child.return=c,c=c.child;}if(!(c.flags&2)){c=c.stateNode;break a}}d?gj(a,c,b):hj(a,c,b);}
		function gj(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=jf));else if(4!==d&&(a=a.child,null!==a))for(gj(a,b,c),a=a.sibling;null!==a;)gj(a,b,c),a=a.sibling;}
		function hj(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(hj(a,b,c),a=a.sibling;null!==a;)hj(a,b,c),a=a.sibling;}
		function cj(a,b){for(var c=b,d=!1,e,f;;){if(!d){d=c.return;a:for(;;){if(null===d)throw Error(y(160));e=d.stateNode;switch(d.tag){case 5:f=!1;break a;case 3:e=e.containerInfo;f=!0;break a;case 4:e=e.containerInfo;f=!0;break a}d=d.return;}d=!0;}if(5===c.tag||6===c.tag){a:for(var g=a,h=c,k=h;;)if(bj(g,k),null!==k.child&&4!==k.tag)k.child.return=k,k=k.child;else {if(k===h)break a;for(;null===k.sibling;){if(null===k.return||k.return===h)break a;k=k.return;}k.sibling.return=k.return;k=k.sibling;}f?(g=e,h=c.stateNode,
		8===g.nodeType?g.parentNode.removeChild(h):g.removeChild(h)):e.removeChild(c.stateNode);}else if(4===c.tag){if(null!==c.child){e=c.stateNode.containerInfo;f=!0;c.child.return=c;c=c.child;continue}}else if(bj(a,c),null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;4===c.tag&&(d=!1);}c.sibling.return=c.return;c=c.sibling;}}
		function ij(a,b){switch(b.tag){case 0:case 11:case 14:case 15:case 22:var c=b.updateQueue;c=null!==c?c.lastEffect:null;if(null!==c){var d=c=c.next;do 3===(d.tag&3)&&(a=d.destroy,d.destroy=void 0,void 0!==a&&a()),d=d.next;while(d!==c)}return;case 1:return;case 5:c=b.stateNode;if(null!=c){d=b.memoizedProps;var e=null!==a?a.memoizedProps:d;a=b.type;var f=b.updateQueue;b.updateQueue=null;if(null!==f){c[xf]=d;"input"===a&&"radio"===d.type&&null!=d.name&&$a(c,d);wb(a,e);b=wb(a,d);for(e=0;e<f.length;e+=
		2){var g=f[e],h=f[e+1];"style"===g?tb(c,h):"dangerouslySetInnerHTML"===g?ob(c,h):"children"===g?pb(c,h):qa(c,g,h,b);}switch(a){case "input":ab(c,d);break;case "textarea":ib(c,d);break;case "select":a=c._wrapperState.wasMultiple,c._wrapperState.wasMultiple=!!d.multiple,f=d.value,null!=f?fb(c,!!d.multiple,f,!1):a!==!!d.multiple&&(null!=d.defaultValue?fb(c,!!d.multiple,d.defaultValue,!0):fb(c,!!d.multiple,d.multiple?[]:"",!1));}}}return;case 6:if(null===b.stateNode)throw Error(y(162));b.stateNode.nodeValue=
		b.memoizedProps;return;case 3:c=b.stateNode;c.hydrate&&(c.hydrate=!1,Cc(c.containerInfo));return;case 12:return;case 13:null!==b.memoizedState&&(jj=O(),aj(b.child,!0));kj(b);return;case 19:kj(b);return;case 17:return;case 23:case 24:aj(b,null!==b.memoizedState);return}throw Error(y(163));}function kj(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Ui);b.forEach(function(b){var d=lj.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d));});}}
		function mj(a,b){return null!==a&&(a=a.memoizedState,null===a||null!==a.dehydrated)?(b=b.memoizedState,null!==b&&null===b.dehydrated):!1}var nj=Math.ceil,oj=ra.ReactCurrentDispatcher,pj=ra.ReactCurrentOwner,X=0,U=null,Y=null,W=0,qj=0,rj=Bf(0),V=0,sj=null,tj=0,Dg=0,Hi=0,uj=0,vj=null,jj=0,Ji=Infinity;function wj(){Ji=O()+500;}var Z=null,Qi=!1,Ri=null,Ti=null,xj=!1,yj=null,zj=90,Aj=[],Bj=[],Cj=null,Dj=0,Ej=null,Fj=-1,Gj=0,Hj=0,Ij=null,Jj=!1;function Hg(){return 0!==(X&48)?O():-1!==Fj?Fj:Fj=O()}
		function Ig(a){a=a.mode;if(0===(a&2))return 1;if(0===(a&4))return 99===eg()?1:2;0===Gj&&(Gj=tj);if(0!==kg.transition){0!==Hj&&(Hj=null!==vj?vj.pendingLanes:0);a=Gj;var b=4186112&~Hj;b&=-b;0===b&&(a=4186112&~a,b=a&-a,0===b&&(b=8192));return b}a=eg();0!==(X&4)&&98===a?a=Xc(12,Gj):(a=Sc(a),a=Xc(a,Gj));return a}
		function Jg(a,b,c){if(50<Dj)throw Dj=0,Ej=null,Error(y(185));a=Kj(a,b);if(null===a)return null;$c(a,b,c);a===U&&(Hi|=b,4===V&&Ii(a,W));var d=eg();1===b?0!==(X&8)&&0===(X&48)?Lj(a):(Mj(a,c),0===X&&(wj(),ig())):(0===(X&4)||98!==d&&99!==d||(null===Cj?Cj=new Set([a]):Cj.add(a)),Mj(a,c));vj=a;}function Kj(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}
		function Mj(a,b){for(var c=a.callbackNode,d=a.suspendedLanes,e=a.pingedLanes,f=a.expirationTimes,g=a.pendingLanes;0<g;){var h=31-Vc(g),k=1<<h,l=f[h];if(-1===l){if(0===(k&d)||0!==(k&e)){l=b;Rc(k);var n=F;f[h]=10<=n?l+250:6<=n?l+5E3:-1;}}else l<=b&&(a.expiredLanes|=k);g&=~k;}d=Uc(a,a===U?W:0);b=F;if(0===d)null!==c&&(c!==Zf&&Pf(c),a.callbackNode=null,a.callbackPriority=0);else {if(null!==c){if(a.callbackPriority===b)return;c!==Zf&&Pf(c);}15===b?(c=Lj.bind(null,a),null===ag?(ag=[c],bg=Of(Uf,jg)):ag.push(c),
		c=Zf):14===b?c=hg(99,Lj.bind(null,a)):(c=Tc(b),c=hg(c,Nj.bind(null,a)));a.callbackPriority=b;a.callbackNode=c;}}
		function Nj(a){Fj=-1;Hj=Gj=0;if(0!==(X&48))throw Error(y(327));var b=a.callbackNode;if(Oj()&&a.callbackNode!==b)return null;var c=Uc(a,a===U?W:0);if(0===c)return null;var d=c;var e=X;X|=16;var f=Pj();if(U!==a||W!==d)wj(),Qj(a,d);do try{Rj();break}catch(h){Sj(a,h);}while(1);qg();oj.current=f;X=e;null!==Y?d=0:(U=null,W=0,d=V);if(0!==(tj&Hi))Qj(a,0);else if(0!==d){2===d&&(X|=64,a.hydrate&&(a.hydrate=!1,qf(a.containerInfo)),c=Wc(a),0!==c&&(d=Tj(a,c)));if(1===d)throw b=sj,Qj(a,0),Ii(a,c),Mj(a,O()),b;a.finishedWork=
		a.current.alternate;a.finishedLanes=c;switch(d){case 0:case 1:throw Error(y(345));case 2:Uj(a);break;case 3:Ii(a,c);if((c&62914560)===c&&(d=jj+500-O(),10<d)){if(0!==Uc(a,0))break;e=a.suspendedLanes;if((e&c)!==c){Hg();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=of(Uj.bind(null,a),d);break}Uj(a);break;case 4:Ii(a,c);if((c&4186112)===c)break;d=a.eventTimes;for(e=-1;0<c;){var g=31-Vc(c);f=1<<g;g=d[g];g>e&&(e=g);c&=~f;}c=e;c=O()-c;c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3E3>c?3E3:4320>
		c?4320:1960*nj(c/1960))-c;if(10<c){a.timeoutHandle=of(Uj.bind(null,a),c);break}Uj(a);break;case 5:Uj(a);break;default:throw Error(y(329));}}Mj(a,O());return a.callbackNode===b?Nj.bind(null,a):null}function Ii(a,b){b&=~uj;b&=~Hi;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-Vc(b),d=1<<c;a[c]=-1;b&=~d;}}
		function Lj(a){if(0!==(X&48))throw Error(y(327));Oj();if(a===U&&0!==(a.expiredLanes&W)){var b=W;var c=Tj(a,b);0!==(tj&Hi)&&(b=Uc(a,b),c=Tj(a,b));}else b=Uc(a,0),c=Tj(a,b);0!==a.tag&&2===c&&(X|=64,a.hydrate&&(a.hydrate=!1,qf(a.containerInfo)),b=Wc(a),0!==b&&(c=Tj(a,b)));if(1===c)throw c=sj,Qj(a,0),Ii(a,b),Mj(a,O()),c;a.finishedWork=a.current.alternate;a.finishedLanes=b;Uj(a);Mj(a,O());return null}
		function Vj(){if(null!==Cj){var a=Cj;Cj=null;a.forEach(function(a){a.expiredLanes|=24&a.pendingLanes;Mj(a,O());});}ig();}function Wj(a,b){var c=X;X|=1;try{return a(b)}finally{X=c,0===X&&(wj(),ig());}}function Xj(a,b){var c=X;X&=-2;X|=8;try{return a(b)}finally{X=c,0===X&&(wj(),ig());}}function ni(a,b){I(rj,qj);qj|=b;tj|=b;}function Ki(){qj=rj.current;H(rj);}
		function Qj(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,pf(c));if(null!==Y)for(c=Y.return;null!==c;){var d=c;switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&Gf();break;case 3:fh();H(N);H(M);uh();break;case 5:hh(d);break;case 4:fh();break;case 13:H(P);break;case 19:H(P);break;case 10:rg(d);break;case 23:case 24:Ki();}c=c.return;}U=a;Y=Tg(a.current,null);W=qj=tj=b;V=0;sj=null;uj=Hi=Dg=0;}
		function Sj(a,b){do{var c=Y;try{qg();vh.current=Gh;if(yh){for(var d=R.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next;}yh=!1;}xh=0;T=S=R=null;zh=!1;pj.current=null;if(null===c||null===c.return){V=1;sj=b;Y=null;break}a:{var f=a,g=c.return,h=c,k=b;b=W;h.flags|=2048;h.firstEffect=h.lastEffect=null;if(null!==k&&"object"===typeof k&&"function"===typeof k.then){var l=k;if(0===(h.mode&2)){var n=h.alternate;n?(h.updateQueue=n.updateQueue,h.memoizedState=n.memoizedState,h.lanes=n.lanes):
		(h.updateQueue=null,h.memoizedState=null);}var A=0!==(P.current&1),p=g;do{var C;if(C=13===p.tag){var x=p.memoizedState;if(null!==x)C=null!==x.dehydrated?!0:!1;else {var w=p.memoizedProps;C=void 0===w.fallback?!1:!0!==w.unstable_avoidThisFallback?!0:A?!1:!0;}}if(C){var z=p.updateQueue;if(null===z){var u=new Set;u.add(l);p.updateQueue=u;}else z.add(l);if(0===(p.mode&2)){p.flags|=64;h.flags|=16384;h.flags&=-2981;if(1===h.tag)if(null===h.alternate)h.tag=17;else {var t=zg(-1,1);t.tag=2;Ag(h,t);}h.lanes|=1;break a}k=
		void 0;h=b;var q=f.pingCache;null===q?(q=f.pingCache=new Oi,k=new Set,q.set(l,k)):(k=q.get(l),void 0===k&&(k=new Set,q.set(l,k)));if(!k.has(h)){k.add(h);var v=Yj.bind(null,f,l,h);l.then(v,v);}p.flags|=4096;p.lanes=b;break a}p=p.return;}while(null!==p);k=Error((Ra(h.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!==V&&(V=2);k=Mi(k,h);p=
		g;do{switch(p.tag){case 3:f=k;p.flags|=4096;b&=-b;p.lanes|=b;var J=Pi(p,f,b);Bg(p,J);break a;case 1:f=k;var K=p.type,Q=p.stateNode;if(0===(p.flags&64)&&("function"===typeof K.getDerivedStateFromError||null!==Q&&"function"===typeof Q.componentDidCatch&&(null===Ti||!Ti.has(Q)))){p.flags|=4096;b&=-b;p.lanes|=b;var L=Si(p,f,b);Bg(p,L);break a}}p=p.return;}while(null!==p)}Zj(c);}catch(va){b=va;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}
		function Pj(){var a=oj.current;oj.current=Gh;return null===a?Gh:a}function Tj(a,b){var c=X;X|=16;var d=Pj();U===a&&W===b||Qj(a,b);do try{ak();break}catch(e){Sj(a,e);}while(1);qg();X=c;oj.current=d;if(null!==Y)throw Error(y(261));U=null;W=0;return V}function ak(){for(;null!==Y;)bk(Y);}function Rj(){for(;null!==Y&&!Qf();)bk(Y);}function bk(a){var b=ck(a.alternate,a,qj);a.memoizedProps=a.pendingProps;null===b?Zj(a):Y=b;pj.current=null;}
		function Zj(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&2048)){c=Gi(c,b,qj);if(null!==c){Y=c;return}c=b;if(24!==c.tag&&23!==c.tag||null===c.memoizedState||0!==(qj&1073741824)||0===(c.mode&4)){for(var d=0,e=c.child;null!==e;)d|=e.lanes|e.childLanes,e=e.sibling;c.childLanes=d;}null!==a&&0===(a.flags&2048)&&(null===a.firstEffect&&(a.firstEffect=b.firstEffect),null!==b.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=b.firstEffect),a.lastEffect=b.lastEffect),1<b.flags&&(null!==
		a.lastEffect?a.lastEffect.nextEffect=b:a.firstEffect=b,a.lastEffect=b));}else {c=Li(b);if(null!==c){c.flags&=2047;Y=c;return}null!==a&&(a.firstEffect=a.lastEffect=null,a.flags|=2048);}b=b.sibling;if(null!==b){Y=b;return}Y=b=a;}while(null!==b);0===V&&(V=5);}function Uj(a){var b=eg();gg(99,dk.bind(null,a,b));return null}
		function dk(a,b){do Oj();while(null!==yj);if(0!==(X&48))throw Error(y(327));var c=a.finishedWork;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(y(177));a.callbackNode=null;var d=c.lanes|c.childLanes,e=d,f=a.pendingLanes&~e;a.pendingLanes=e;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=e;a.mutableReadLanes&=e;a.entangledLanes&=e;e=a.entanglements;for(var g=a.eventTimes,h=a.expirationTimes;0<f;){var k=31-Vc(f),l=1<<k;e[k]=0;g[k]=-1;h[k]=-1;f&=~l;}null!==
		Cj&&0===(d&24)&&Cj.has(a)&&Cj.delete(a);a===U&&(Y=U=null,W=0);1<c.flags?null!==c.lastEffect?(c.lastEffect.nextEffect=c,d=c.firstEffect):d=c:d=c.firstEffect;if(null!==d){e=X;X|=32;pj.current=null;kf=fd;g=Ne();if(Oe(g)){if("selectionStart"in g)h={start:g.selectionStart,end:g.selectionEnd};else a:if(h=(h=g.ownerDocument)&&h.defaultView||window,(l=h.getSelection&&h.getSelection())&&0!==l.rangeCount){h=l.anchorNode;f=l.anchorOffset;k=l.focusNode;l=l.focusOffset;try{h.nodeType,k.nodeType;}catch(va){h=null;
		break a}var n=0,A=-1,p=-1,C=0,x=0,w=g,z=null;b:for(;;){for(var u;;){w!==h||0!==f&&3!==w.nodeType||(A=n+f);w!==k||0!==l&&3!==w.nodeType||(p=n+l);3===w.nodeType&&(n+=w.nodeValue.length);if(null===(u=w.firstChild))break;z=w;w=u;}for(;;){if(w===g)break b;z===h&&++C===f&&(A=n);z===k&&++x===l&&(p=n);if(null!==(u=w.nextSibling))break;w=z;z=w.parentNode;}w=u;}h=-1===A||-1===p?null:{start:A,end:p};}else h=null;h=h||{start:0,end:0};}else h=null;lf={focusedElem:g,selectionRange:h};fd=!1;Ij=null;Jj=!1;Z=d;do try{ek();}catch(va){if(null===
		Z)throw Error(y(330));Wi(Z,va);Z=Z.nextEffect;}while(null!==Z);Ij=null;Z=d;do try{for(g=a;null!==Z;){var t=Z.flags;t&16&&pb(Z.stateNode,"");if(t&128){var q=Z.alternate;if(null!==q){var v=q.ref;null!==v&&("function"===typeof v?v(null):v.current=null);}}switch(t&1038){case 2:fj(Z);Z.flags&=-3;break;case 6:fj(Z);Z.flags&=-3;ij(Z.alternate,Z);break;case 1024:Z.flags&=-1025;break;case 1028:Z.flags&=-1025;ij(Z.alternate,Z);break;case 4:ij(Z.alternate,Z);break;case 8:h=Z;cj(g,h);var J=h.alternate;dj(h);null!==
		J&&dj(J);}Z=Z.nextEffect;}}catch(va){if(null===Z)throw Error(y(330));Wi(Z,va);Z=Z.nextEffect;}while(null!==Z);v=lf;q=Ne();t=v.focusedElem;g=v.selectionRange;if(q!==t&&t&&t.ownerDocument&&Me(t.ownerDocument.documentElement,t)){null!==g&&Oe(t)&&(q=g.start,v=g.end,void 0===v&&(v=q),"selectionStart"in t?(t.selectionStart=q,t.selectionEnd=Math.min(v,t.value.length)):(v=(q=t.ownerDocument||document)&&q.defaultView||window,v.getSelection&&(v=v.getSelection(),h=t.textContent.length,J=Math.min(g.start,h),g=void 0===
		g.end?J:Math.min(g.end,h),!v.extend&&J>g&&(h=g,g=J,J=h),h=Le(t,J),f=Le(t,g),h&&f&&(1!==v.rangeCount||v.anchorNode!==h.node||v.anchorOffset!==h.offset||v.focusNode!==f.node||v.focusOffset!==f.offset)&&(q=q.createRange(),q.setStart(h.node,h.offset),v.removeAllRanges(),J>g?(v.addRange(q),v.extend(f.node,f.offset)):(q.setEnd(f.node,f.offset),v.addRange(q))))));q=[];for(v=t;v=v.parentNode;)1===v.nodeType&&q.push({element:v,left:v.scrollLeft,top:v.scrollTop});"function"===typeof t.focus&&t.focus();for(t=
		0;t<q.length;t++)v=q[t],v.element.scrollLeft=v.left,v.element.scrollTop=v.top;}fd=!!kf;lf=kf=null;a.current=c;Z=d;do try{for(t=a;null!==Z;){var K=Z.flags;K&36&&Yi(t,Z.alternate,Z);if(K&128){q=void 0;var Q=Z.ref;if(null!==Q){var L=Z.stateNode;switch(Z.tag){case 5:q=L;break;default:q=L;}"function"===typeof Q?Q(q):Q.current=q;}}Z=Z.nextEffect;}}catch(va){if(null===Z)throw Error(y(330));Wi(Z,va);Z=Z.nextEffect;}while(null!==Z);Z=null;$f();X=e;}else a.current=c;if(xj)xj=!1,yj=a,zj=b;else for(Z=d;null!==Z;)b=
		Z.nextEffect,Z.nextEffect=null,Z.flags&8&&(K=Z,K.sibling=null,K.stateNode=null),Z=b;d=a.pendingLanes;0===d&&(Ti=null);1===d?a===Ej?Dj++:(Dj=0,Ej=a):Dj=0;c=c.stateNode;if(Mf&&"function"===typeof Mf.onCommitFiberRoot)try{Mf.onCommitFiberRoot(Lf,c,void 0,64===(c.current.flags&64));}catch(va){}Mj(a,O());if(Qi)throw Qi=!1,a=Ri,Ri=null,a;if(0!==(X&8))return null;ig();return null}
		function ek(){for(;null!==Z;){var a=Z.alternate;Jj||null===Ij||(0!==(Z.flags&8)?dc(Z,Ij)&&(Jj=!0):13===Z.tag&&mj(a,Z)&&dc(Z,Ij)&&(Jj=!0));var b=Z.flags;0!==(b&256)&&Xi(a,Z);0===(b&512)||xj||(xj=!0,hg(97,function(){Oj();return null}));Z=Z.nextEffect;}}function Oj(){if(90!==zj){var a=97<zj?97:zj;zj=90;return gg(a,fk)}return !1}function $i(a,b){Aj.push(b,a);xj||(xj=!0,hg(97,function(){Oj();return null}));}function Zi(a,b){Bj.push(b,a);xj||(xj=!0,hg(97,function(){Oj();return null}));}
		function fk(){if(null===yj)return !1;var a=yj;yj=null;if(0!==(X&48))throw Error(y(331));var b=X;X|=32;var c=Bj;Bj=[];for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1],g=e.destroy;e.destroy=void 0;if("function"===typeof g)try{g();}catch(k){if(null===f)throw Error(y(330));Wi(f,k);}}c=Aj;Aj=[];for(d=0;d<c.length;d+=2){e=c[d];f=c[d+1];try{var h=e.create;e.destroy=h();}catch(k){if(null===f)throw Error(y(330));Wi(f,k);}}for(h=a.current.firstEffect;null!==h;)a=h.nextEffect,h.nextEffect=null,h.flags&8&&(h.sibling=
		null,h.stateNode=null),h=a;X=b;ig();return !0}function gk(a,b,c){b=Mi(c,b);b=Pi(a,b,1);Ag(a,b);b=Hg();a=Kj(a,1);null!==a&&($c(a,1,b),Mj(a,b));}
		function Wi(a,b){if(3===a.tag)gk(a,a,b);else for(var c=a.return;null!==c;){if(3===c.tag){gk(c,a,b);break}else if(1===c.tag){var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Ti||!Ti.has(d))){a=Mi(b,a);var e=Si(c,a,1);Ag(c,e);e=Hg();c=Kj(c,1);if(null!==c)$c(c,1,e),Mj(c,e);else if("function"===typeof d.componentDidCatch&&(null===Ti||!Ti.has(d)))try{d.componentDidCatch(b,a);}catch(f){}break}}c=c.return;}}
		function Yj(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=Hg();a.pingedLanes|=a.suspendedLanes&c;U===a&&(W&c)===c&&(4===V||3===V&&(W&62914560)===W&&500>O()-jj?Qj(a,0):uj|=c);Mj(a,b);}function lj(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=0;0===b&&(b=a.mode,0===(b&2)?b=1:0===(b&4)?b=99===eg()?1:2:(0===Gj&&(Gj=tj),b=Yc(62914560&~Gj),0===b&&(b=4194304)));c=Hg();a=Kj(a,b);null!==a&&($c(a,b,c),Mj(a,c));}var ck;
		ck=function(a,b,c){var d=b.lanes;if(null!==a)if(a.memoizedProps!==b.pendingProps||N.current)ug=!0;else if(0!==(c&d))ug=0!==(a.flags&16384)?!0:!1;else {ug=!1;switch(b.tag){case 3:ri(b);sh();break;case 5:gh(b);break;case 1:Ff(b.type)&&Jf(b);break;case 4:eh(b,b.stateNode.containerInfo);break;case 10:d=b.memoizedProps.value;var e=b.type._context;I(mg,e._currentValue);e._currentValue=d;break;case 13:if(null!==b.memoizedState){if(0!==(c&b.child.childLanes))return ti(a,b,c);I(P,P.current&1);b=hi(a,b,c);return null!==
		b?b.sibling:null}I(P,P.current&1);break;case 19:d=0!==(c&b.childLanes);if(0!==(a.flags&64)){if(d)return Ai(a,b,c);b.flags|=64;}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);I(P,P.current);if(d)break;else return null;case 23:case 24:return b.lanes=0,mi(a,b,c)}return hi(a,b,c)}else ug=!1;b.lanes=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);a=b.pendingProps;e=Ef(b,M.current);tg(b,c);e=Ch(null,b,d,a,e,c);b.flags|=1;if("object"===
		typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(Ff(d)){var f=!0;Jf(b);}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;xg(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&Gg(b,d,g,a);e.updater=Kg;b.stateNode=e;e._reactInternals=b;Og(b,d,a,c);b=qi(null,b,d,!0,f,c);}else b.tag=0,fi(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;a:{null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);
		a=b.pendingProps;f=e._init;e=f(e._payload);b.type=e;f=b.tag=hk(e);a=lg(e,a);switch(f){case 0:b=li(null,b,e,a,c);break a;case 1:b=pi(null,b,e,a,c);break a;case 11:b=gi(null,b,e,a,c);break a;case 14:b=ii(null,b,e,lg(e.type,a),d,c);break a}throw Error(y(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),li(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),pi(a,b,d,e,c);case 3:ri(b);d=b.updateQueue;if(null===a||null===d)throw Error(y(282));
		d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;yg(a,b);Cg(b,d,null,c);d=b.memoizedState.element;if(d===e)sh(),b=hi(a,b,c);else {e=b.stateNode;if(f=e.hydrate)kh=rf(b.stateNode.containerInfo.firstChild),jh=b,f=lh=!0;if(f){a=e.mutableSourceEagerHydrationData;if(null!=a)for(e=0;e<a.length;e+=2)f=a[e],f._workInProgressVersionPrimary=a[e+1],th.push(f);c=Zg(b,null,d,c);for(b.child=c;c;)c.flags=c.flags&-3|1024,c=c.sibling;}else fi(a,b,d,c),sh();b=b.child;}return b;case 5:return gh(b),null===a&&
		ph(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,nf(d,e)?g=null:null!==f&&nf(d,f)&&(b.flags|=16),oi(a,b),fi(a,b,g,c),b.child;case 6:return null===a&&ph(b),null;case 13:return ti(a,b,c);case 4:return eh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Yg(b,null,d,c):fi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),gi(a,b,d,e,c);case 7:return fi(a,b,b.pendingProps,c),b.child;case 8:return fi(a,b,b.pendingProps.children,
		c),b.child;case 12:return fi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(mg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=He(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!N.current){b=hi(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=
		k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=zg(-1,c&-c),l.tag=2,Ag(h,l));h.lanes|=c;l=h.alternate;null!==l&&(l.lanes|=c);sg(h.return,c);k.lanes|=c;break}l=l.next;}}else g=10===h.tag?h.type===b.type?null:h.child:h.child;if(null!==g)g.return=h;else for(g=h;null!==g;){if(g===b){g=null;break}h=g.sibling;if(null!==h){h.return=g.return;g=h;break}g=g.return;}h=g;}fi(a,b,e.children,c);b=b.child;}return b;case 9:return e=b.type,f=b.pendingProps,d=f.children,tg(b,c),e=vg(e,
		f.unstable_observedBits),d=d(e),b.flags|=1,fi(a,b,d,c),b.child;case 14:return e=b.type,f=lg(e,b.pendingProps),f=lg(e.type,f),ii(a,b,e,f,d,c);case 15:return ki(a,b,b.type,b.pendingProps,d,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2),b.tag=1,Ff(d)?(a=!0,Jf(b)):a=!1,tg(b,c),Mg(b,d,e),Og(b,d,e,c),qi(null,b,d,!0,a,c);case 19:return Ai(a,b,c);case 23:return mi(a,b,c);case 24:return mi(a,b,c)}throw Error(y(156,b.tag));
		};function ik(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.flags=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childLanes=this.lanes=0;this.alternate=null;}function nh(a,b,c,d){return new ik(a,b,c,d)}function ji(a){a=a.prototype;return !(!a||!a.isReactComponent)}
		function hk(a){if("function"===typeof a)return ji(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Aa)return 11;if(a===Da)return 14}return 2}
		function Tg(a,b){var c=a.alternate;null===c?(c=nh(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};
		c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}
		function Vg(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)ji(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ua:return Xg(c.children,e,f,b);case Ha:g=8;e|=16;break;case wa:g=8;e|=1;break;case xa:return a=nh(12,c,b,e|8),a.elementType=xa,a.type=xa,a.lanes=f,a;case Ba:return a=nh(13,c,b,e),a.type=Ba,a.elementType=Ba,a.lanes=f,a;case Ca:return a=nh(19,c,b,e),a.elementType=Ca,a.lanes=f,a;case Ia:return vi(c,e,f,b);case Ja:return a=nh(24,c,b,e),a.elementType=Ja,a.lanes=f,a;default:if("object"===
		typeof a&&null!==a)switch(a.$$typeof){case ya:g=10;break a;case za:g=9;break a;case Aa:g=11;break a;case Da:g=14;break a;case Ea:g=16;d=null;break a;case Fa:g=22;break a}throw Error(y(130,null==a?a:typeof a,""));}b=nh(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Xg(a,b,c,d){a=nh(7,a,d,b);a.lanes=c;return a}function vi(a,b,c,d){a=nh(23,a,d,b);a.elementType=Ia;a.lanes=c;return a}function Ug(a,b,c){a=nh(6,a,null,b);a.lanes=c;return a}
		function Wg(a,b,c){b=nh(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}
		function jk(a,b,c){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.pendingContext=this.context=null;this.hydrate=c;this.callbackNode=null;this.callbackPriority=0;this.eventTimes=Zc(0);this.expirationTimes=Zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=Zc(0);this.mutableSourceEagerHydrationData=null;}
		function kk(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return {$$typeof:ta,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}
		function lk(a,b,c,d){var e=b.current,f=Hg(),g=Ig(e);a:if(c){c=c._reactInternals;b:{if(Zb(c)!==c||1!==c.tag)throw Error(y(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(Ff(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return;}while(null!==h);throw Error(y(171));}if(1===c.tag){var k=c.type;if(Ff(k)){c=If(c,k,h);break a}}c=h;}else c=Cf;null===b.context?b.context=c:b.pendingContext=c;b=zg(f,g);b.payload={element:a};d=void 0===d?null:d;null!==
		d&&(b.callback=d);Ag(e,b);Jg(e,g,f);return g}function mk(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function nk(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b;}}function ok(a,b){nk(a,b);(a=a.alternate)&&nk(a,b);}function pk(){return null}
		function qk(a,b,c){var d=null!=c&&null!=c.hydrationOptions&&c.hydrationOptions.mutableSources||null;c=new jk(a,b,null!=c&&!0===c.hydrate);b=nh(3,null,null,2===b?7:1===b?3:0);c.current=b;b.stateNode=c;xg(b);a[ff]=c.current;cf(8===a.nodeType?a.parentNode:a);if(d)for(a=0;a<d.length;a++){b=d[a];var e=b._getVersion;e=e(b._source);null==c.mutableSourceEagerHydrationData?c.mutableSourceEagerHydrationData=[b,e]:c.mutableSourceEagerHydrationData.push(b,e);}this._internalRoot=c;}
		qk.prototype.render=function(a){lk(a,this._internalRoot,null,null);};qk.prototype.unmount=function(){var a=this._internalRoot,b=a.containerInfo;lk(null,a,null,function(){b[ff]=null;});};function rk(a){return !(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}
		function sk(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new qk(a,0,b?{hydrate:!0}:void 0)}
		function tk(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f._internalRoot;if("function"===typeof e){var h=e;e=function(){var a=mk(g);h.call(a);};}lk(b,g,a,e);}else {f=c._reactRootContainer=sk(c,d);g=f._internalRoot;if("function"===typeof e){var k=e;e=function(){var a=mk(g);k.call(a);};}Xj(function(){lk(b,g,a,e);});}return mk(g)}ec=function(a){if(13===a.tag){var b=Hg();Jg(a,4,b);ok(a,4);}};fc=function(a){if(13===a.tag){var b=Hg();Jg(a,67108864,b);ok(a,67108864);}};
		gc=function(a){if(13===a.tag){var b=Hg(),c=Ig(a);Jg(a,c,b);ok(a,c);}};hc=function(a,b){return b()};
		yb=function(a,b,c){switch(b){case "input":ab(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(y(90));Wa(d);ab(d,e);}}}break;case "textarea":ib(a,c);break;case "select":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1);}};Gb=Wj;
		Hb=function(a,b,c,d,e){var f=X;X|=4;try{return gg(98,a.bind(null,b,c,d,e))}finally{X=f,0===X&&(wj(),ig());}};Ib=function(){0===(X&49)&&(Vj(),Oj());};Jb=function(a,b){var c=X;X|=2;try{return a(b)}finally{X=c,0===X&&(wj(),ig());}};function uk(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rk(b))throw Error(y(200));return kk(a,b,null,c)}var vk={Events:[Cb,ue,Db,Eb,Fb,Oj,{current:!1}]},wk={findFiberByHostInstance:wc,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"};
		var xk={bundleType:wk.bundleType,version:wk.version,rendererPackageName:wk.rendererPackageName,rendererConfig:wk.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ra.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=cc(a);return null===a?null:a.stateNode},findFiberByHostInstance:wk.findFiberByHostInstance||
		pk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var yk=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yk.isDisabled&&yk.supportsFiber)try{Lf=yk.inject(xk),Mf=yk;}catch(a){}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vk;reactDom_production_min.createPortal=uk;
		reactDom_production_min.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(y(188));throw Error(y(268,Object.keys(a)));}a=cc(b);a=null===a?null:a.stateNode;return a};reactDom_production_min.flushSync=function(a,b){var c=X;if(0!==(c&48))return a(b);X|=1;try{if(a)return gg(99,a.bind(null,b))}finally{X=c,ig();}};reactDom_production_min.hydrate=function(a,b,c){if(!rk(b))throw Error(y(200));return tk(null,a,b,!0,c)};
		reactDom_production_min.render=function(a,b,c){if(!rk(b))throw Error(y(200));return tk(null,a,b,!1,c)};reactDom_production_min.unmountComponentAtNode=function(a){if(!rk(a))throw Error(y(40));return a._reactRootContainer?(Xj(function(){tk(null,null,a,!1,function(){a._reactRootContainer=null;a[ff]=null;});}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Wj;reactDom_production_min.unstable_createPortal=function(a,b){return uk(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)};
		reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!rk(c))throw Error(y(200));if(null==a||void 0===a._reactInternals)throw Error(y(38));return tk(a,b,c,!1,d)};reactDom_production_min.version="17.0.2";
		return reactDom_production_min;
	}

	var reactDom_development = {};

	var tracing = {exports: {}};

	var schedulerTracing_production_min = {};

	/** @license React v0.20.2
	 * scheduler-tracing.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.
	 */

	var hasRequiredSchedulerTracing_production_min;

	function requireSchedulerTracing_production_min () {
		if (hasRequiredSchedulerTracing_production_min) return schedulerTracing_production_min;
		hasRequiredSchedulerTracing_production_min = 1;
	var b=0;schedulerTracing_production_min.__interactionsRef=null;schedulerTracing_production_min.__subscriberRef=null;schedulerTracing_production_min.unstable_clear=function(a){return a()};schedulerTracing_production_min.unstable_getCurrent=function(){return null};schedulerTracing_production_min.unstable_getThreadID=function(){return ++b};schedulerTracing_production_min.unstable_subscribe=function(){};schedulerTracing_production_min.unstable_trace=function(a,d,c){return c()};schedulerTracing_production_min.unstable_unsubscribe=function(){};schedulerTracing_production_min.unstable_wrap=function(a){return a};
		return schedulerTracing_production_min;
	}

	var schedulerTracing_development = {};

	/** @license React v0.20.2
	 * scheduler-tracing.development.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.
	 */

	var hasRequiredSchedulerTracing_development;

	function requireSchedulerTracing_development () {
		if (hasRequiredSchedulerTracing_development) return schedulerTracing_development;
		hasRequiredSchedulerTracing_development = 1;
		(function (exports) {

			if (process.env.NODE_ENV !== "production") {
			  (function() {

			var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.

			var interactionIDCounter = 0;
			var threadIDCounter = 0; // Set of currently traced interactions.
			// Interactions "stack"–
			// Meaning that newly traced interactions are appended to the previously active set.
			// When an interaction goes out of scope, the previous set (if any) is restored.

			exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.

			exports.__subscriberRef = null;

			{
			  exports.__interactionsRef = {
			    current: new Set()
			  };
			  exports.__subscriberRef = {
			    current: null
			  };
			}
			function unstable_clear(callback) {

			  var prevInteractions = exports.__interactionsRef.current;
			  exports.__interactionsRef.current = new Set();

			  try {
			    return callback();
			  } finally {
			    exports.__interactionsRef.current = prevInteractions;
			  }
			}
			function unstable_getCurrent() {
			  {
			    return exports.__interactionsRef.current;
			  }
			}
			function unstable_getThreadID() {
			  return ++threadIDCounter;
			}
			function unstable_trace(name, timestamp, callback) {
			  var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;

			  var interaction = {
			    __count: 1,
			    id: interactionIDCounter++,
			    name: name,
			    timestamp: timestamp
			  };
			  var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
			  // To do that, clone the current interactions.
			  // The previous set will be restored upon completion.

			  var interactions = new Set(prevInteractions);
			  interactions.add(interaction);
			  exports.__interactionsRef.current = interactions;
			  var subscriber = exports.__subscriberRef.current;
			  var returnValue;

			  try {
			    if (subscriber !== null) {
			      subscriber.onInteractionTraced(interaction);
			    }
			  } finally {
			    try {
			      if (subscriber !== null) {
			        subscriber.onWorkStarted(interactions, threadID);
			      }
			    } finally {
			      try {
			        returnValue = callback();
			      } finally {
			        exports.__interactionsRef.current = prevInteractions;

			        try {
			          if (subscriber !== null) {
			            subscriber.onWorkStopped(interactions, threadID);
			          }
			        } finally {
			          interaction.__count--; // If no async work was scheduled for this interaction,
			          // Notify subscribers that it's completed.

			          if (subscriber !== null && interaction.__count === 0) {
			            subscriber.onInteractionScheduledWorkCompleted(interaction);
			          }
			        }
			      }
			    }
			  }

			  return returnValue;
			}
			function unstable_wrap(callback) {
			  var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;

			  var wrappedInteractions = exports.__interactionsRef.current;
			  var subscriber = exports.__subscriberRef.current;

			  if (subscriber !== null) {
			    subscriber.onWorkScheduled(wrappedInteractions, threadID);
			  } // Update the pending async work count for the current interactions.
			  // Update after calling subscribers in case of error.


			  wrappedInteractions.forEach(function (interaction) {
			    interaction.__count++;
			  });
			  var hasRun = false;

			  function wrapped() {
			    var prevInteractions = exports.__interactionsRef.current;
			    exports.__interactionsRef.current = wrappedInteractions;
			    subscriber = exports.__subscriberRef.current;

			    try {
			      var returnValue;

			      try {
			        if (subscriber !== null) {
			          subscriber.onWorkStarted(wrappedInteractions, threadID);
			        }
			      } finally {
			        try {
			          returnValue = callback.apply(undefined, arguments);
			        } finally {
			          exports.__interactionsRef.current = prevInteractions;

			          if (subscriber !== null) {
			            subscriber.onWorkStopped(wrappedInteractions, threadID);
			          }
			        }
			      }

			      return returnValue;
			    } finally {
			      if (!hasRun) {
			        // We only expect a wrapped function to be executed once,
			        // But in the event that it's executed more than once–
			        // Only decrement the outstanding interaction counts once.
			        hasRun = true; // Update pending async counts for all wrapped interactions.
			        // If this was the last scheduled async work for any of them,
			        // Mark them as completed.

			        wrappedInteractions.forEach(function (interaction) {
			          interaction.__count--;

			          if (subscriber !== null && interaction.__count === 0) {
			            subscriber.onInteractionScheduledWorkCompleted(interaction);
			          }
			        });
			      }
			    }
			  }

			  wrapped.cancel = function cancel() {
			    subscriber = exports.__subscriberRef.current;

			    try {
			      if (subscriber !== null) {
			        subscriber.onWorkCanceled(wrappedInteractions, threadID);
			      }
			    } finally {
			      // Update pending async counts for all wrapped interactions.
			      // If this was the last scheduled async work for any of them,
			      // Mark them as completed.
			      wrappedInteractions.forEach(function (interaction) {
			        interaction.__count--;

			        if (subscriber && interaction.__count === 0) {
			          subscriber.onInteractionScheduledWorkCompleted(interaction);
			        }
			      });
			    }
			  };

			  return wrapped;
			}

			var subscribers = null;

			{
			  subscribers = new Set();
			}

			function unstable_subscribe(subscriber) {
			  {
			    subscribers.add(subscriber);

			    if (subscribers.size === 1) {
			      exports.__subscriberRef.current = {
			        onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
			        onInteractionTraced: onInteractionTraced,
			        onWorkCanceled: onWorkCanceled,
			        onWorkScheduled: onWorkScheduled,
			        onWorkStarted: onWorkStarted,
			        onWorkStopped: onWorkStopped
			      };
			    }
			  }
			}
			function unstable_unsubscribe(subscriber) {
			  {
			    subscribers.delete(subscriber);

			    if (subscribers.size === 0) {
			      exports.__subscriberRef.current = null;
			    }
			  }
			}

			function onInteractionTraced(interaction) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onInteractionTraced(interaction);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			function onInteractionScheduledWorkCompleted(interaction) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onInteractionScheduledWorkCompleted(interaction);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			function onWorkScheduled(interactions, threadID) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onWorkScheduled(interactions, threadID);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			function onWorkStarted(interactions, threadID) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onWorkStarted(interactions, threadID);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			function onWorkStopped(interactions, threadID) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onWorkStopped(interactions, threadID);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			function onWorkCanceled(interactions, threadID) {
			  var didCatchError = false;
			  var caughtError = null;
			  subscribers.forEach(function (subscriber) {
			    try {
			      subscriber.onWorkCanceled(interactions, threadID);
			    } catch (error) {
			      if (!didCatchError) {
			        didCatchError = true;
			        caughtError = error;
			      }
			    }
			  });

			  if (didCatchError) {
			    throw caughtError;
			  }
			}

			exports.unstable_clear = unstable_clear;
			exports.unstable_getCurrent = unstable_getCurrent;
			exports.unstable_getThreadID = unstable_getThreadID;
			exports.unstable_subscribe = unstable_subscribe;
			exports.unstable_trace = unstable_trace;
			exports.unstable_unsubscribe = unstable_unsubscribe;
			exports.unstable_wrap = unstable_wrap;
			  })();
			} 
		} (schedulerTracing_development));
		return schedulerTracing_development;
	}

	var hasRequiredTracing;

	function requireTracing () {
		if (hasRequiredTracing) return tracing.exports;
		hasRequiredTracing = 1;

		if (process.env.NODE_ENV === 'production') {
		  tracing.exports = requireSchedulerTracing_production_min();
		} else {
		  tracing.exports = requireSchedulerTracing_development();
		}
		return tracing.exports;
	}

	/** @license React v17.0.2
	 * react-dom.development.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.
	 */

	var hasRequiredReactDom_development;

	function requireReactDom_development () {
		if (hasRequiredReactDom_development) return reactDom_development;
		hasRequiredReactDom_development = 1;

		if (process.env.NODE_ENV !== "production") {
		  (function() {

		var React = reactExports;
		var _assign = requireObjectAssign();
		var Scheduler = requireScheduler();
		var tracing = requireTracing();

		var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

		// by calls to these methods by a Babel plugin.
		//
		// In PROD (or in packages without access to React internals),
		// they are left as they are instead.

		function warn(format) {
		  {
		    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
		      args[_key - 1] = arguments[_key];
		    }

		    printWarning('warn', format, args);
		  }
		}
		function error(format) {
		  {
		    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
		      args[_key2 - 1] = arguments[_key2];
		    }

		    printWarning('error', format, args);
		  }
		}

		function printWarning(level, format, args) {
		  // When changing this logic, you might want to also
		  // update consoleWithStackDev.www.js as well.
		  {
		    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
		    var stack = ReactDebugCurrentFrame.getStackAddendum();

		    if (stack !== '') {
		      format += '%s';
		      args = args.concat([stack]);
		    }

		    var argsWithFormat = args.map(function (item) {
		      return '' + item;
		    }); // Careful: RN currently depends on this prefix

		    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
		    // breaks IE9: https://github.com/facebook/react/issues/13610
		    // eslint-disable-next-line react-internal/no-production-logging

		    Function.prototype.apply.call(console[level], console, argsWithFormat);
		  }
		}

		if (!React) {
		  {
		    throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
		  }
		}

		var FunctionComponent = 0;
		var ClassComponent = 1;
		var IndeterminateComponent = 2; // Before we know whether it is function or class

		var HostRoot = 3; // Root of a host tree. Could be nested inside another node.

		var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.

		var HostComponent = 5;
		var HostText = 6;
		var Fragment = 7;
		var Mode = 8;
		var ContextConsumer = 9;
		var ContextProvider = 10;
		var ForwardRef = 11;
		var Profiler = 12;
		var SuspenseComponent = 13;
		var MemoComponent = 14;
		var SimpleMemoComponent = 15;
		var LazyComponent = 16;
		var IncompleteClassComponent = 17;
		var DehydratedFragment = 18;
		var SuspenseListComponent = 19;
		var FundamentalComponent = 20;
		var ScopeComponent = 21;
		var Block = 22;
		var OffscreenComponent = 23;
		var LegacyHiddenComponent = 24;

		// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

		var enableProfilerTimer = true; // Record durations for commit and passive effects phases.

		var enableFundamentalAPI = false; // Experimental Scope support.
		var enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects)
		var warnAboutStringRefs = false;

		var allNativeEvents = new Set();
		/**
		 * Mapping from registration name to event name
		 */


		var registrationNameDependencies = {};
		/**
		 * Mapping from lowercase registration names to the properly cased version,
		 * used to warn in the case of missing event handlers. Available
		 * only in true.
		 * @type {Object}
		 */

		var possibleRegistrationNames =  {} ; // Trust the developer to only use possibleRegistrationNames in true

		function registerTwoPhaseEvent(registrationName, dependencies) {
		  registerDirectEvent(registrationName, dependencies);
		  registerDirectEvent(registrationName + 'Capture', dependencies);
		}
		function registerDirectEvent(registrationName, dependencies) {
		  {
		    if (registrationNameDependencies[registrationName]) {
		      error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
		    }
		  }

		  registrationNameDependencies[registrationName] = dependencies;

		  {
		    var lowerCasedName = registrationName.toLowerCase();
		    possibleRegistrationNames[lowerCasedName] = registrationName;

		    if (registrationName === 'onDoubleClick') {
		      possibleRegistrationNames.ondblclick = registrationName;
		    }
		  }

		  for (var i = 0; i < dependencies.length; i++) {
		    allNativeEvents.add(dependencies[i]);
		  }
		}

		var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');

		// A reserved attribute.
		// It is handled by React separately and shouldn't be written to the DOM.
		var RESERVED = 0; // A simple string attribute.
		// Attributes that aren't in the filter are presumed to have this type.

		var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
		// "enumerated" attributes with "true" and "false" as possible values.
		// When true, it should be set to a "true" string.
		// When false, it should be set to a "false" string.

		var BOOLEANISH_STRING = 2; // A real boolean attribute.
		// When true, it should be present (set either to an empty string or its name).
		// When false, it should be omitted.

		var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
		// When true, it should be present (set either to an empty string or its name).
		// When false, it should be omitted.
		// For any other value, should be present with that value.

		var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
		// When falsy, it should be removed.

		var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
		// When falsy, it should be removed.

		var POSITIVE_NUMERIC = 6;

		/* eslint-disable max-len */
		var ATTRIBUTE_NAME_START_CHAR = ":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";
		/* eslint-enable max-len */

		var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
		var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
		var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
		var hasOwnProperty = Object.prototype.hasOwnProperty;
		var illegalAttributeNameCache = {};
		var validatedAttributeNameCache = {};
		function isAttributeNameSafe(attributeName) {
		  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
		    return true;
		  }

		  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
		    return false;
		  }

		  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
		    validatedAttributeNameCache[attributeName] = true;
		    return true;
		  }

		  illegalAttributeNameCache[attributeName] = true;

		  {
		    error('Invalid attribute name: `%s`', attributeName);
		  }

		  return false;
		}
		function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
		  if (propertyInfo !== null) {
		    return propertyInfo.type === RESERVED;
		  }

		  if (isCustomComponentTag) {
		    return false;
		  }

		  if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
		    return true;
		  }

		  return false;
		}
		function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
		  if (propertyInfo !== null && propertyInfo.type === RESERVED) {
		    return false;
		  }

		  switch (typeof value) {
		    case 'function': // $FlowIssue symbol is perfectly valid here

		    case 'symbol':
		      // eslint-disable-line
		      return true;

		    case 'boolean':
		      {
		        if (isCustomComponentTag) {
		          return false;
		        }

		        if (propertyInfo !== null) {
		          return !propertyInfo.acceptsBooleans;
		        } else {
		          var prefix = name.toLowerCase().slice(0, 5);
		          return prefix !== 'data-' && prefix !== 'aria-';
		        }
		      }

		    default:
		      return false;
		  }
		}
		function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
		  if (value === null || typeof value === 'undefined') {
		    return true;
		  }

		  if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
		    return true;
		  }

		  if (isCustomComponentTag) {
		    return false;
		  }

		  if (propertyInfo !== null) {

		    switch (propertyInfo.type) {
		      case BOOLEAN:
		        return !value;

		      case OVERLOADED_BOOLEAN:
		        return value === false;

		      case NUMERIC:
		        return isNaN(value);

		      case POSITIVE_NUMERIC:
		        return isNaN(value) || value < 1;
		    }
		  }

		  return false;
		}
		function getPropertyInfo(name) {
		  return properties.hasOwnProperty(name) ? properties[name] : null;
		}

		function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
		  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
		  this.attributeName = attributeName;
		  this.attributeNamespace = attributeNamespace;
		  this.mustUseProperty = mustUseProperty;
		  this.propertyName = name;
		  this.type = type;
		  this.sanitizeURL = sanitizeURL;
		  this.removeEmptyString = removeEmptyString;
		} // When adding attributes to this list, be sure to also add them to
		// the `possibleStandardNames` module to ensure casing and incorrect
		// name warnings.


		var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.

		var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
		// elements (not just inputs). Now that ReactDOMInput assigns to the
		// defaultValue property -- do we need this?
		'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
		reservedProps.forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
		  name, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // A few React string attributes have a different name.
		// This is a mapping from React prop names to the attribute names.

		[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
		  var name = _ref[0],
		      attributeName = _ref[1];
		  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
		  attributeName, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are "enumerated" HTML attributes that accept "true" and "false".
		// In React, we let users pass `true` and `false` even though technically
		// these aren't boolean attributes (they are coerced to strings).

		['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
		  name.toLowerCase(), // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are "enumerated" SVG attributes that accept "true" and "false".
		// In React, we let users pass `true` and `false` even though technically
		// these aren't boolean attributes (they are coerced to strings).
		// Since these are SVG attributes, their attribute names are case-sensitive.

		['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
		  name, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are HTML boolean attributes.

		['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
		// on the client side because the browsers are inconsistent. Instead we call focus().
		'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
		'itemScope'].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
		  name.toLowerCase(), // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are the few React props that we set as DOM properties
		// rather than attributes. These are all booleans.

		['checked', // Note: `option.selected` is not updated if `select.multiple` is
		// disabled with `removeAttribute`. We have special logic for handling this.
		'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
		  name, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are HTML attributes that are "overloaded booleans": they behave like
		// booleans, but can also accept a string value.

		['capture', 'download' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
		  name, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are HTML attributes that must be positive numbers.

		['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
		  name, // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These are HTML attributes that must be numbers.

		['rowSpan', 'start'].forEach(function (name) {
		  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
		  name.toLowerCase(), // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		});
		var CAMELIZE = /[\-\:]([a-z])/g;

		var capitalize = function (token) {
		  return token[1].toUpperCase();
		}; // This is a list of all SVG attributes that need special casing, namespacing,
		// or boolean value assignment. Regular attributes that just accept strings
		// and have the same names are omitted, just like in the HTML attribute filter.
		// Some of these attributes can be hard to find. This list was created by
		// scraping the MDN documentation.


		['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' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (attributeName) {
		  var name = attributeName.replace(CAMELIZE, capitalize);
		  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
		  attributeName, null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // String SVG attributes with the xlink namespace.

		['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (attributeName) {
		  var name = attributeName.replace(CAMELIZE, capitalize);
		  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
		  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL
		  false);
		}); // String SVG attributes with the xml namespace.

		['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
		// you'll need to set attributeName to name.toLowerCase()
		// instead in the assignment below.
		].forEach(function (attributeName) {
		  var name = attributeName.replace(CAMELIZE, capitalize);
		  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
		  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL
		  false);
		}); // These attribute exists both in HTML and SVG.
		// The attribute name is case-sensitive in SVG so we can't just use
		// the React name like we do for attributes that exist only in HTML.

		['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
		  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
		  attributeName.toLowerCase(), // attributeName
		  null, // attributeNamespace
		  false, // sanitizeURL
		  false);
		}); // These attributes accept URLs. These must not allow javascript: URLS.
		// These will also need to accept Trusted Types object in the future.

		var xlinkHref = 'xlinkHref';
		properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
		'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL
		false);
		['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
		  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
		  attributeName.toLowerCase(), // attributeName
		  null, // attributeNamespace
		  true, // sanitizeURL
		  true);
		});

		// and any newline or tab are filtered out as if they're not part of the URL.
		// https://url.spec.whatwg.org/#url-parsing
		// Tab or newline are defined as \r\n\t:
		// https://infra.spec.whatwg.org/#ascii-tab-or-newline
		// A C0 control is a code point in the range \u0000 NULL to \u001F
		// INFORMATION SEPARATOR ONE, inclusive:
		// https://infra.spec.whatwg.org/#c0-control-or-space

		/* eslint-disable max-len */

		var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
		var didWarn = false;

		function sanitizeURL(url) {
		  {
		    if (!didWarn && isJavaScriptProtocol.test(url)) {
		      didWarn = true;

		      error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
		    }
		  }
		}

		/**
		 * Get the value for a property on a node. Only used in DEV for SSR validation.
		 * The "expected" argument is used as a hint of what the expected value is.
		 * Some properties have multiple equivalent values.
		 */
		function getValueForProperty(node, name, expected, propertyInfo) {
		  {
		    if (propertyInfo.mustUseProperty) {
		      var propertyName = propertyInfo.propertyName;
		      return node[propertyName];
		    } else {
		      if ( propertyInfo.sanitizeURL) {
		        // If we haven't fully disabled javascript: URLs, and if
		        // the hydration is successful of a javascript: URL, we
		        // still want to warn on the client.
		        sanitizeURL('' + expected);
		      }

		      var attributeName = propertyInfo.attributeName;
		      var stringValue = null;

		      if (propertyInfo.type === OVERLOADED_BOOLEAN) {
		        if (node.hasAttribute(attributeName)) {
		          var value = node.getAttribute(attributeName);

		          if (value === '') {
		            return true;
		          }

		          if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
		            return value;
		          }

		          if (value === '' + expected) {
		            return expected;
		          }

		          return value;
		        }
		      } else if (node.hasAttribute(attributeName)) {
		        if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
		          // We had an attribute but shouldn't have had one, so read it
		          // for the error message.
		          return node.getAttribute(attributeName);
		        }

		        if (propertyInfo.type === BOOLEAN) {
		          // If this was a boolean, it doesn't matter what the value is
		          // the fact that we have it is the same as the expected.
		          return expected;
		        } // Even if this property uses a namespace we use getAttribute
		        // because we assume its namespaced name is the same as our config.
		        // To use getAttributeNS we need the local name which we don't have
		        // in our config atm.


		        stringValue = node.getAttribute(attributeName);
		      }

		      if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
		        return stringValue === null ? expected : stringValue;
		      } else if (stringValue === '' + expected) {
		        return expected;
		      } else {
		        return stringValue;
		      }
		    }
		  }
		}
		/**
		 * Get the value for a attribute on a node. Only used in DEV for SSR validation.
		 * The third argument is used as a hint of what the expected value is. Some
		 * attributes have multiple equivalent values.
		 */

		function getValueForAttribute(node, name, expected) {
		  {
		    if (!isAttributeNameSafe(name)) {
		      return;
		    } // If the object is an opaque reference ID, it's expected that
		    // the next prop is different than the server value, so just return
		    // expected


		    if (isOpaqueHydratingObject(expected)) {
		      return expected;
		    }

		    if (!node.hasAttribute(name)) {
		      return expected === undefined ? undefined : null;
		    }

		    var value = node.getAttribute(name);

		    if (value === '' + expected) {
		      return expected;
		    }

		    return value;
		  }
		}
		/**
		 * Sets the value for a property on a node.
		 *
		 * @param {DOMElement} node
		 * @param {string} name
		 * @param {*} value
		 */

		function setValueForProperty(node, name, value, isCustomComponentTag) {
		  var propertyInfo = getPropertyInfo(name);

		  if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
		    return;
		  }

		  if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
		    value = null;
		  } // If the prop isn't in the special list, treat it as a simple attribute.


		  if (isCustomComponentTag || propertyInfo === null) {
		    if (isAttributeNameSafe(name)) {
		      var _attributeName = name;

		      if (value === null) {
		        node.removeAttribute(_attributeName);
		      } else {
		        node.setAttribute(_attributeName,  '' + value);
		      }
		    }

		    return;
		  }

		  var mustUseProperty = propertyInfo.mustUseProperty;

		  if (mustUseProperty) {
		    var propertyName = propertyInfo.propertyName;

		    if (value === null) {
		      var type = propertyInfo.type;
		      node[propertyName] = type === BOOLEAN ? false : '';
		    } else {
		      // Contrary to `setAttribute`, object properties are properly
		      // `toString`ed by IE8/9.
		      node[propertyName] = value;
		    }

		    return;
		  } // The rest are treated as attributes with special cases.


		  var attributeName = propertyInfo.attributeName,
		      attributeNamespace = propertyInfo.attributeNamespace;

		  if (value === null) {
		    node.removeAttribute(attributeName);
		  } else {
		    var _type = propertyInfo.type;
		    var attributeValue;

		    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
		      // If attribute type is boolean, we know for sure it won't be an execution sink
		      // and we won't require Trusted Type here.
		      attributeValue = '';
		    } else {
		      // `setAttribute` with objects becomes only `[object]` in IE8/9,
		      // ('' + value) makes it output the correct toString()-value.
		      {
		        attributeValue = '' + value;
		      }

		      if (propertyInfo.sanitizeURL) {
		        sanitizeURL(attributeValue.toString());
		      }
		    }

		    if (attributeNamespace) {
		      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
		    } else {
		      node.setAttribute(attributeName, attributeValue);
		    }
		  }
		}

		// ATTENTION
		// When adding new symbols to this file,
		// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
		// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
		// nor polyfill, then a plain number is used for performance.
		var REACT_ELEMENT_TYPE = 0xeac7;
		var REACT_PORTAL_TYPE = 0xeaca;
		var REACT_FRAGMENT_TYPE = 0xeacb;
		var REACT_STRICT_MODE_TYPE = 0xeacc;
		var REACT_PROFILER_TYPE = 0xead2;
		var REACT_PROVIDER_TYPE = 0xeacd;
		var REACT_CONTEXT_TYPE = 0xeace;
		var REACT_FORWARD_REF_TYPE = 0xead0;
		var REACT_SUSPENSE_TYPE = 0xead1;
		var REACT_SUSPENSE_LIST_TYPE = 0xead8;
		var REACT_MEMO_TYPE = 0xead3;
		var REACT_LAZY_TYPE = 0xead4;
		var REACT_BLOCK_TYPE = 0xead9;
		var REACT_SCOPE_TYPE = 0xead7;
		var REACT_OPAQUE_ID_TYPE = 0xeae0;
		var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
		var REACT_OFFSCREEN_TYPE = 0xeae2;
		var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

		if (typeof Symbol === 'function' && Symbol.for) {
		  var symbolFor = Symbol.for;
		  REACT_ELEMENT_TYPE = symbolFor('react.element');
		  REACT_PORTAL_TYPE = symbolFor('react.portal');
		  REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
		  REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
		  REACT_PROFILER_TYPE = symbolFor('react.profiler');
		  REACT_PROVIDER_TYPE = symbolFor('react.provider');
		  REACT_CONTEXT_TYPE = symbolFor('react.context');
		  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
		  REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
		  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
		  REACT_MEMO_TYPE = symbolFor('react.memo');
		  REACT_LAZY_TYPE = symbolFor('react.lazy');
		  REACT_BLOCK_TYPE = symbolFor('react.block');
		  symbolFor('react.server.block');
		  symbolFor('react.fundamental');
		  REACT_SCOPE_TYPE = symbolFor('react.scope');
		  REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
		  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
		  REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
		  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
		}

		var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
		var FAUX_ITERATOR_SYMBOL = '@@iterator';
		function getIteratorFn(maybeIterable) {
		  if (maybeIterable === null || typeof maybeIterable !== 'object') {
		    return null;
		  }

		  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

		  if (typeof maybeIterator === 'function') {
		    return maybeIterator;
		  }

		  return null;
		}

		// Helpers to patch console.logs to avoid logging during side-effect free
		// replaying on render function. This currently only patches the object
		// lazily which won't cover if the log function was extracted eagerly.
		// We could also eagerly patch the method.
		var disabledDepth = 0;
		var prevLog;
		var prevInfo;
		var prevWarn;
		var prevError;
		var prevGroup;
		var prevGroupCollapsed;
		var prevGroupEnd;

		function disabledLog() {}

		disabledLog.__reactDisabledLog = true;
		function disableLogs() {
		  {
		    if (disabledDepth === 0) {
		      /* eslint-disable react-internal/no-production-logging */
		      prevLog = console.log;
		      prevInfo = console.info;
		      prevWarn = console.warn;
		      prevError = console.error;
		      prevGroup = console.group;
		      prevGroupCollapsed = console.groupCollapsed;
		      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

		      var props = {
		        configurable: true,
		        enumerable: true,
		        value: disabledLog,
		        writable: true
		      }; // $FlowFixMe Flow thinks console is immutable.

		      Object.defineProperties(console, {
		        info: props,
		        log: props,
		        warn: props,
		        error: props,
		        group: props,
		        groupCollapsed: props,
		        groupEnd: props
		      });
		      /* eslint-enable react-internal/no-production-logging */
		    }

		    disabledDepth++;
		  }
		}
		function reenableLogs() {
		  {
		    disabledDepth--;

		    if (disabledDepth === 0) {
		      /* eslint-disable react-internal/no-production-logging */
		      var props = {
		        configurable: true,
		        enumerable: true,
		        writable: true
		      }; // $FlowFixMe Flow thinks console is immutable.

		      Object.defineProperties(console, {
		        log: _assign({}, props, {
		          value: prevLog
		        }),
		        info: _assign({}, props, {
		          value: prevInfo
		        }),
		        warn: _assign({}, props, {
		          value: prevWarn
		        }),
		        error: _assign({}, props, {
		          value: prevError
		        }),
		        group: _assign({}, props, {
		          value: prevGroup
		        }),
		        groupCollapsed: _assign({}, props, {
		          value: prevGroupCollapsed
		        }),
		        groupEnd: _assign({}, props, {
		          value: prevGroupEnd
		        })
		      });
		      /* eslint-enable react-internal/no-production-logging */
		    }

		    if (disabledDepth < 0) {
		      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
		    }
		  }
		}

		var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
		var prefix;
		function describeBuiltInComponentFrame(name, source, ownerFn) {
		  {
		    if (prefix === undefined) {
		      // Extract the VM specific prefix used by each line.
		      try {
		        throw Error();
		      } catch (x) {
		        var match = x.stack.trim().match(/\n( *(at )?)/);
		        prefix = match && match[1] || '';
		      }
		    } // We use the prefix to ensure our stacks line up with native stack frames.


		    return '\n' + prefix + name;
		  }
		}
		var reentry = false;
		var componentFrameCache;

		{
		  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
		  componentFrameCache = new PossiblyWeakMap();
		}

		function describeNativeComponentFrame(fn, construct) {
		  // If something asked for a stack inside a fake render, it should get ignored.
		  if (!fn || reentry) {
		    return '';
		  }

		  {
		    var frame = componentFrameCache.get(fn);

		    if (frame !== undefined) {
		      return frame;
		    }
		  }

		  var control;
		  reentry = true;
		  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

		  Error.prepareStackTrace = undefined;
		  var previousDispatcher;

		  {
		    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
		    // for warnings.

		    ReactCurrentDispatcher.current = null;
		    disableLogs();
		  }

		  try {
		    // This should throw.
		    if (construct) {
		      // Something should be setting the props in the constructor.
		      var Fake = function () {
		        throw Error();
		      }; // $FlowFixMe


		      Object.defineProperty(Fake.prototype, 'props', {
		        set: function () {
		          // We use a throwing setter instead of frozen or non-writable props
		          // because that won't throw in a non-strict mode function.
		          throw Error();
		        }
		      });

		      if (typeof Reflect === 'object' && Reflect.construct) {
		        // We construct a different control for this case to include any extra
		        // frames added by the construct call.
		        try {
		          Reflect.construct(Fake, []);
		        } catch (x) {
		          control = x;
		        }

		        Reflect.construct(fn, [], Fake);
		      } else {
		        try {
		          Fake.call();
		        } catch (x) {
		          control = x;
		        }

		        fn.call(Fake.prototype);
		      }
		    } else {
		      try {
		        throw Error();
		      } catch (x) {
		        control = x;
		      }

		      fn();
		    }
		  } catch (sample) {
		    // This is inlined manually because closure doesn't do it for us.
		    if (sample && control && typeof sample.stack === 'string') {
		      // This extracts the first frame from the sample that isn't also in the control.
		      // Skipping one frame that we assume is the frame that calls the two.
		      var sampleLines = sample.stack.split('\n');
		      var controlLines = control.stack.split('\n');
		      var s = sampleLines.length - 1;
		      var c = controlLines.length - 1;

		      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
		        // We expect at least one stack frame to be shared.
		        // Typically this will be the root most one. However, stack frames may be
		        // cut off due to maximum stack limits. In this case, one maybe cut off
		        // earlier than the other. We assume that the sample is longer or the same
		        // and there for cut off earlier. So we should find the root most frame in
		        // the sample somewhere in the control.
		        c--;
		      }

		      for (; s >= 1 && c >= 0; s--, c--) {
		        // Next we find the first one that isn't the same which should be the
		        // frame that called our sample function and the control.
		        if (sampleLines[s] !== controlLines[c]) {
		          // In V8, the first line is describing the message but other VMs don't.
		          // If we're about to return the first line, and the control is also on the same
		          // line, that's a pretty good indicator that our sample threw at same line as
		          // the control. I.e. before we entered the sample frame. So we ignore this result.
		          // This can happen if you passed a class to function component, or non-function.
		          if (s !== 1 || c !== 1) {
		            do {
		              s--;
		              c--; // We may still have similar intermediate frames from the construct call.
		              // The next one that isn't the same should be our match though.

		              if (c < 0 || sampleLines[s] !== controlLines[c]) {
		                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
		                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

		                {
		                  if (typeof fn === 'function') {
		                    componentFrameCache.set(fn, _frame);
		                  }
		                } // Return the line we found.


		                return _frame;
		              }
		            } while (s >= 1 && c >= 0);
		          }

		          break;
		        }
		      }
		    }
		  } finally {
		    reentry = false;

		    {
		      ReactCurrentDispatcher.current = previousDispatcher;
		      reenableLogs();
		    }

		    Error.prepareStackTrace = previousPrepareStackTrace;
		  } // Fallback to just using the name if we couldn't make it throw.


		  var name = fn ? fn.displayName || fn.name : '';
		  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

		  {
		    if (typeof fn === 'function') {
		      componentFrameCache.set(fn, syntheticFrame);
		    }
		  }

		  return syntheticFrame;
		}

		function describeClassComponentFrame(ctor, source, ownerFn) {
		  {
		    return describeNativeComponentFrame(ctor, true);
		  }
		}
		function describeFunctionComponentFrame(fn, source, ownerFn) {
		  {
		    return describeNativeComponentFrame(fn, false);
		  }
		}

		function shouldConstruct(Component) {
		  var prototype = Component.prototype;
		  return !!(prototype && prototype.isReactComponent);
		}

		function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

		  if (type == null) {
		    return '';
		  }

		  if (typeof type === 'function') {
		    {
		      return describeNativeComponentFrame(type, shouldConstruct(type));
		    }
		  }

		  if (typeof type === 'string') {
		    return describeBuiltInComponentFrame(type);
		  }

		  switch (type) {
		    case REACT_SUSPENSE_TYPE:
		      return describeBuiltInComponentFrame('Suspense');

		    case REACT_SUSPENSE_LIST_TYPE:
		      return describeBuiltInComponentFrame('SuspenseList');
		  }

		  if (typeof type === 'object') {
		    switch (type.$$typeof) {
		      case REACT_FORWARD_REF_TYPE:
		        return describeFunctionComponentFrame(type.render);

		      case REACT_MEMO_TYPE:
		        // Memo may contain any component type so we recursively resolve it.
		        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

		      case REACT_BLOCK_TYPE:
		        return describeFunctionComponentFrame(type._render);

		      case REACT_LAZY_TYPE:
		        {
		          var lazyComponent = type;
		          var payload = lazyComponent._payload;
		          var init = lazyComponent._init;

		          try {
		            // Lazy may contain any component type so we recursively resolve it.
		            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
		          } catch (x) {}
		        }
		    }
		  }

		  return '';
		}

		function describeFiber(fiber) {
		  fiber._debugOwner ? fiber._debugOwner.type : null ;
		  fiber._debugSource ;

		  switch (fiber.tag) {
		    case HostComponent:
		      return describeBuiltInComponentFrame(fiber.type);

		    case LazyComponent:
		      return describeBuiltInComponentFrame('Lazy');

		    case SuspenseComponent:
		      return describeBuiltInComponentFrame('Suspense');

		    case SuspenseListComponent:
		      return describeBuiltInComponentFrame('SuspenseList');

		    case FunctionComponent:
		    case IndeterminateComponent:
		    case SimpleMemoComponent:
		      return describeFunctionComponentFrame(fiber.type);

		    case ForwardRef:
		      return describeFunctionComponentFrame(fiber.type.render);

		    case Block:
		      return describeFunctionComponentFrame(fiber.type._render);

		    case ClassComponent:
		      return describeClassComponentFrame(fiber.type);

		    default:
		      return '';
		  }
		}

		function getStackByFiberInDevAndProd(workInProgress) {
		  try {
		    var info = '';
		    var node = workInProgress;

		    do {
		      info += describeFiber(node);
		      node = node.return;
		    } while (node);

		    return info;
		  } catch (x) {
		    return '\nError generating stack: ' + x.message + '\n' + x.stack;
		  }
		}

		function getWrappedName(outerType, innerType, wrapperName) {
		  var functionName = innerType.displayName || innerType.name || '';
		  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
		}

		function getContextName(type) {
		  return type.displayName || 'Context';
		}

		function getComponentName(type) {
		  if (type == null) {
		    // Host root, text node or just invalid type.
		    return null;
		  }

		  {
		    if (typeof type.tag === 'number') {
		      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
		    }
		  }

		  if (typeof type === 'function') {
		    return type.displayName || type.name || null;
		  }

		  if (typeof type === 'string') {
		    return type;
		  }

		  switch (type) {
		    case REACT_FRAGMENT_TYPE:
		      return 'Fragment';

		    case REACT_PORTAL_TYPE:
		      return 'Portal';

		    case REACT_PROFILER_TYPE:
		      return 'Profiler';

		    case REACT_STRICT_MODE_TYPE:
		      return 'StrictMode';

		    case REACT_SUSPENSE_TYPE:
		      return 'Suspense';

		    case REACT_SUSPENSE_LIST_TYPE:
		      return 'SuspenseList';
		  }

		  if (typeof type === 'object') {
		    switch (type.$$typeof) {
		      case REACT_CONTEXT_TYPE:
		        var context = type;
		        return getContextName(context) + '.Consumer';

		      case REACT_PROVIDER_TYPE:
		        var provider = type;
		        return getContextName(provider._context) + '.Provider';

		      case REACT_FORWARD_REF_TYPE:
		        return getWrappedName(type, type.render, 'ForwardRef');

		      case REACT_MEMO_TYPE:
		        return getComponentName(type.type);

		      case REACT_BLOCK_TYPE:
		        return getComponentName(type._render);

		      case REACT_LAZY_TYPE:
		        {
		          var lazyComponent = type;
		          var payload = lazyComponent._payload;
		          var init = lazyComponent._init;

		          try {
		            return getComponentName(init(payload));
		          } catch (x) {
		            return null;
		          }
		        }
		    }
		  }

		  return null;
		}

		var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
		var current = null;
		var isRendering = false;
		function getCurrentFiberOwnerNameInDevOrNull() {
		  {
		    if (current === null) {
		      return null;
		    }

		    var owner = current._debugOwner;

		    if (owner !== null && typeof owner !== 'undefined') {
		      return getComponentName(owner.type);
		    }
		  }

		  return null;
		}

		function getCurrentFiberStackInDev() {
		  {
		    if (current === null) {
		      return '';
		    } // Safe because if current fiber exists, we are reconciling,
		    // and it is guaranteed to be the work-in-progress version.


		    return getStackByFiberInDevAndProd(current);
		  }
		}

		function resetCurrentFiber() {
		  {
		    ReactDebugCurrentFrame.getCurrentStack = null;
		    current = null;
		    isRendering = false;
		  }
		}
		function setCurrentFiber(fiber) {
		  {
		    ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
		    current = fiber;
		    isRendering = false;
		  }
		}
		function setIsRendering(rendering) {
		  {
		    isRendering = rendering;
		  }
		}
		function getIsRendering() {
		  {
		    return isRendering;
		  }
		}

		// Flow does not allow string concatenation of most non-string types. To work
		// around this limitation, we use an opaque type that can only be obtained by
		// passing the value through getToStringValue first.
		function toString(value) {
		  return '' + value;
		}
		function getToStringValue(value) {
		  switch (typeof value) {
		    case 'boolean':
		    case 'number':
		    case 'object':
		    case 'string':
		    case 'undefined':
		      return value;

		    default:
		      // function, symbol are assigned as empty strings
		      return '';
		  }
		}

		var hasReadOnlyValue = {
		  button: true,
		  checkbox: true,
		  image: true,
		  hidden: true,
		  radio: true,
		  reset: true,
		  submit: true
		};
		function checkControlledValueProps(tagName, props) {
		  {
		    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
		      error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
		    }

		    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
		      error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
		    }
		  }
		}

		function isCheckable(elem) {
		  var type = elem.type;
		  var nodeName = elem.nodeName;
		  return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
		}

		function getTracker(node) {
		  return node._valueTracker;
		}

		function detachTracker(node) {
		  node._valueTracker = null;
		}

		function getValueFromNode(node) {
		  var value = '';

		  if (!node) {
		    return value;
		  }

		  if (isCheckable(node)) {
		    value = node.checked ? 'true' : 'false';
		  } else {
		    value = node.value;
		  }

		  return value;
		}

		function trackValueOnNode(node) {
		  var valueField = isCheckable(node) ? 'checked' : 'value';
		  var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
		  var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
		  // and don't track value will cause over reporting of changes,
		  // but it's better then a hard failure
		  // (needed for certain tests that spyOn input values and Safari)

		  if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
		    return;
		  }

		  var get = descriptor.get,
		      set = descriptor.set;
		  Object.defineProperty(node, valueField, {
		    configurable: true,
		    get: function () {
		      return get.call(this);
		    },
		    set: function (value) {
		      currentValue = '' + value;
		      set.call(this, value);
		    }
		  }); // We could've passed this the first time
		  // but it triggers a bug in IE11 and Edge 14/15.
		  // Calling defineProperty() again should be equivalent.
		  // https://github.com/facebook/react/issues/11768

		  Object.defineProperty(node, valueField, {
		    enumerable: descriptor.enumerable
		  });
		  var tracker = {
		    getValue: function () {
		      return currentValue;
		    },
		    setValue: function (value) {
		      currentValue = '' + value;
		    },
		    stopTracking: function () {
		      detachTracker(node);
		      delete node[valueField];
		    }
		  };
		  return tracker;
		}

		function track(node) {
		  if (getTracker(node)) {
		    return;
		  } // TODO: Once it's just Fiber we can move this to node._wrapperState


		  node._valueTracker = trackValueOnNode(node);
		}
		function updateValueIfChanged(node) {
		  if (!node) {
		    return false;
		  }

		  var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
		  // that trying again will succeed

		  if (!tracker) {
		    return true;
		  }

		  var lastValue = tracker.getValue();
		  var nextValue = getValueFromNode(node);

		  if (nextValue !== lastValue) {
		    tracker.setValue(nextValue);
		    return true;
		  }

		  return false;
		}

		function getActiveElement(doc) {
		  doc = doc || (typeof document !== 'undefined' ? document : undefined);

		  if (typeof doc === 'undefined') {
		    return null;
		  }

		  try {
		    return doc.activeElement || doc.body;
		  } catch (e) {
		    return doc.body;
		  }
		}

		var didWarnValueDefaultValue = false;
		var didWarnCheckedDefaultChecked = false;
		var didWarnControlledToUncontrolled = false;
		var didWarnUncontrolledToControlled = false;

		function isControlled(props) {
		  var usesChecked = props.type === 'checkbox' || props.type === 'radio';
		  return usesChecked ? props.checked != null : props.value != null;
		}
		/**
		 * Implements an <input> host component that allows setting these optional
		 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
		 *
		 * If `checked` or `value` are not supplied (or null/undefined), user actions
		 * that affect the checked state or value will trigger updates to the element.
		 *
		 * If they are supplied (and not null/undefined), the rendered element will not
		 * trigger updates to the element. Instead, the props must change in order for
		 * the rendered element to be updated.
		 *
		 * The rendered element will be initialized as unchecked (or `defaultChecked`)
		 * with an empty value (or `defaultValue`).
		 *
		 * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
		 */


		function getHostProps(element, props) {
		  var node = element;
		  var checked = props.checked;

		  var hostProps = _assign({}, props, {
		    defaultChecked: undefined,
		    defaultValue: undefined,
		    value: undefined,
		    checked: checked != null ? checked : node._wrapperState.initialChecked
		  });

		  return hostProps;
		}
		function initWrapperState(element, props) {
		  {
		    checkControlledValueProps('input', props);

		    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
		      error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

		      didWarnCheckedDefaultChecked = true;
		    }

		    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
		      error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

		      didWarnValueDefaultValue = true;
		    }
		  }

		  var node = element;
		  var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
		  node._wrapperState = {
		    initialChecked: props.checked != null ? props.checked : props.defaultChecked,
		    initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
		    controlled: isControlled(props)
		  };
		}
		function updateChecked(element, props) {
		  var node = element;
		  var checked = props.checked;

		  if (checked != null) {
		    setValueForProperty(node, 'checked', checked, false);
		  }
		}
		function updateWrapper(element, props) {
		  var node = element;

		  {
		    var controlled = isControlled(props);

		    if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
		      error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

		      didWarnUncontrolledToControlled = true;
		    }

		    if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
		      error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

		      didWarnControlledToUncontrolled = true;
		    }
		  }

		  updateChecked(element, props);
		  var value = getToStringValue(props.value);
		  var type = props.type;

		  if (value != null) {
		    if (type === 'number') {
		      if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
		      // eslint-disable-next-line
		      node.value != value) {
		        node.value = toString(value);
		      }
		    } else if (node.value !== toString(value)) {
		      node.value = toString(value);
		    }
		  } else if (type === 'submit' || type === 'reset') {
		    // Submit/reset inputs need the attribute removed completely to avoid
		    // blank-text buttons.
		    node.removeAttribute('value');
		    return;
		  }

		  {
		    // When syncing the value attribute, the value comes from a cascade of
		    // properties:
		    //  1. The value React property
		    //  2. The defaultValue React property
		    //  3. Otherwise there should be no change
		    if (props.hasOwnProperty('value')) {
		      setDefaultValue(node, props.type, value);
		    } else if (props.hasOwnProperty('defaultValue')) {
		      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
		    }
		  }

		  {
		    // When syncing the checked attribute, it only changes when it needs
		    // to be removed, such as transitioning from a checkbox into a text input
		    if (props.checked == null && props.defaultChecked != null) {
		      node.defaultChecked = !!props.defaultChecked;
		    }
		  }
		}
		function postMountWrapper(element, props, isHydrating) {
		  var node = element; // Do not assign value if it is already set. This prevents user text input
		  // from being lost during SSR hydration.

		  if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
		    var type = props.type;
		    var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
		    // default value provided by the browser. See: #12872

		    if (isButton && (props.value === undefined || props.value === null)) {
		      return;
		    }

		    var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
		    // from being lost during SSR hydration.

		    if (!isHydrating) {
		      {
		        // When syncing the value attribute, the value property should use
		        // the wrapperState._initialValue property. This uses:
		        //
		        //   1. The value React property when present
		        //   2. The defaultValue React property when present
		        //   3. An empty string
		        if (initialValue !== node.value) {
		          node.value = initialValue;
		        }
		      }
		    }

		    {
		      // Otherwise, the value attribute is synchronized to the property,
		      // so we assign defaultValue to the same thing as the value property
		      // assignment step above.
		      node.defaultValue = initialValue;
		    }
		  } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
		  // this is needed to work around a chrome bug where setting defaultChecked
		  // will sometimes influence the value of checked (even after detachment).
		  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
		  // We need to temporarily unset name to avoid disrupting radio button groups.


		  var name = node.name;

		  if (name !== '') {
		    node.name = '';
		  }

		  {
		    // When syncing the checked attribute, both the checked property and
		    // attribute are assigned at the same time using defaultChecked. This uses:
		    //
		    //   1. The checked React property when present
		    //   2. The defaultChecked React property when present
		    //   3. Otherwise, false
		    node.defaultChecked = !node.defaultChecked;
		    node.defaultChecked = !!node._wrapperState.initialChecked;
		  }

		  if (name !== '') {
		    node.name = name;
		  }
		}
		function restoreControlledState(element, props) {
		  var node = element;
		  updateWrapper(node, props);
		  updateNamedCousins(node, props);
		}

		function updateNamedCousins(rootNode, props) {
		  var name = props.name;

		  if (props.type === 'radio' && name != null) {
		    var queryRoot = rootNode;

		    while (queryRoot.parentNode) {
		      queryRoot = queryRoot.parentNode;
		    } // If `rootNode.form` was non-null, then we could try `form.elements`,
		    // but that sometimes behaves strangely in IE8. We could also try using
		    // `form.getElementsByName`, but that will only return direct children
		    // and won't include inputs that use the HTML5 `form=` attribute. Since
		    // the input might not even be in a form. It might not even be in the
		    // document. Let's just use the local `querySelectorAll` to ensure we don't
		    // miss anything.


		    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');

		    for (var i = 0; i < group.length; i++) {
		      var otherNode = group[i];

		      if (otherNode === rootNode || otherNode.form !== rootNode.form) {
		        continue;
		      } // This will throw if radio buttons rendered by different copies of React
		      // and the same name are rendered into the same form (same as #1939).
		      // That's probably okay; we don't support it just as we don't support
		      // mixing React radio buttons with non-React ones.


		      var otherProps = getFiberCurrentPropsFromNode(otherNode);

		      if (!otherProps) {
		        {
		          throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
		        }
		      } // We need update the tracked value on the named cousin since the value
		      // was changed but the input saw no event or value set


		      updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
		      // was previously checked to update will cause it to be come re-checked
		      // as appropriate.

		      updateWrapper(otherNode, otherProps);
		    }
		  }
		} // In Chrome, assigning defaultValue to certain input types triggers input validation.
		// For number inputs, the display value loses trailing decimal points. For email inputs,
		// Chrome raises "The specified value <x> is not a valid email address".
		//
		// Here we check to see if the defaultValue has actually changed, avoiding these problems
		// when the user is inputting text
		//
		// https://github.com/facebook/react/issues/7253


		function setDefaultValue(node, type, value) {
		  if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
		  type !== 'number' || getActiveElement(node.ownerDocument) !== node) {
		    if (value == null) {
		      node.defaultValue = toString(node._wrapperState.initialValue);
		    } else if (node.defaultValue !== toString(value)) {
		      node.defaultValue = toString(value);
		    }
		  }
		}

		var didWarnSelectedSetOnOption = false;
		var didWarnInvalidChild = false;

		function flattenChildren(children) {
		  var content = ''; // Flatten children. We'll warn if they are invalid
		  // during validateProps() which runs for hydration too.
		  // Note that this would throw on non-element objects.
		  // Elements are stringified (which is normally irrelevant
		  // but matters for <fbt>).

		  React.Children.forEach(children, function (child) {
		    if (child == null) {
		      return;
		    }

		    content += child; // Note: we don't warn about invalid children here.
		    // Instead, this is done separately below so that
		    // it happens during the hydration code path too.
		  });
		  return content;
		}
		/**
		 * Implements an <option> host component that warns when `selected` is set.
		 */


		function validateProps(element, props) {
		  {
		    // This mirrors the code path above, but runs for hydration too.
		    // Warn about invalid children here so that client and hydration are consistent.
		    // TODO: this seems like it could cause a DEV-only throw for hydration
		    // if children contains a non-element object. We should try to avoid that.
		    if (typeof props.children === 'object' && props.children !== null) {
		      React.Children.forEach(props.children, function (child) {
		        if (child == null) {
		          return;
		        }

		        if (typeof child === 'string' || typeof child === 'number') {
		          return;
		        }

		        if (typeof child.type !== 'string') {
		          return;
		        }

		        if (!didWarnInvalidChild) {
		          didWarnInvalidChild = true;

		          error('Only strings and numbers are supported as <option> children.');
		        }
		      });
		    } // TODO: Remove support for `selected` in <option>.


		    if (props.selected != null && !didWarnSelectedSetOnOption) {
		      error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');

		      didWarnSelectedSetOnOption = true;
		    }
		  }
		}
		function postMountWrapper$1(element, props) {
		  // value="" should make a value attribute (#6219)
		  if (props.value != null) {
		    element.setAttribute('value', toString(getToStringValue(props.value)));
		  }
		}
		function getHostProps$1(element, props) {
		  var hostProps = _assign({
		    children: undefined
		  }, props);

		  var content = flattenChildren(props.children);

		  if (content) {
		    hostProps.children = content;
		  }

		  return hostProps;
		}

		var didWarnValueDefaultValue$1;

		{
		  didWarnValueDefaultValue$1 = false;
		}

		function getDeclarationErrorAddendum() {
		  var ownerName = getCurrentFiberOwnerNameInDevOrNull();

		  if (ownerName) {
		    return '\n\nCheck the render method of `' + ownerName + '`.';
		  }

		  return '';
		}

		var valuePropNames = ['value', 'defaultValue'];
		/**
		 * Validation function for `value` and `defaultValue`.
		 */

		function checkSelectPropTypes(props) {
		  {
		    checkControlledValueProps('select', props);

		    for (var i = 0; i < valuePropNames.length; i++) {
		      var propName = valuePropNames[i];

		      if (props[propName] == null) {
		        continue;
		      }

		      var isArray = Array.isArray(props[propName]);

		      if (props.multiple && !isArray) {
		        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
		      } else if (!props.multiple && isArray) {
		        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
		      }
		    }
		  }
		}

		function updateOptions(node, multiple, propValue, setDefaultSelected) {
		  var options = node.options;

		  if (multiple) {
		    var selectedValues = propValue;
		    var selectedValue = {};

		    for (var i = 0; i < selectedValues.length; i++) {
		      // Prefix to avoid chaos with special keys.
		      selectedValue['$' + selectedValues[i]] = true;
		    }

		    for (var _i = 0; _i < options.length; _i++) {
		      var selected = selectedValue.hasOwnProperty('$' + options[_i].value);

		      if (options[_i].selected !== selected) {
		        options[_i].selected = selected;
		      }

		      if (selected && setDefaultSelected) {
		        options[_i].defaultSelected = true;
		      }
		    }
		  } else {
		    // Do not set `select.value` as exact behavior isn't consistent across all
		    // browsers for all cases.
		    var _selectedValue = toString(getToStringValue(propValue));

		    var defaultSelected = null;

		    for (var _i2 = 0; _i2 < options.length; _i2++) {
		      if (options[_i2].value === _selectedValue) {
		        options[_i2].selected = true;

		        if (setDefaultSelected) {
		          options[_i2].defaultSelected = true;
		        }

		        return;
		      }

		      if (defaultSelected === null && !options[_i2].disabled) {
		        defaultSelected = options[_i2];
		      }
		    }

		    if (defaultSelected !== null) {
		      defaultSelected.selected = true;
		    }
		  }
		}
		/**
		 * Implements a <select> host component that allows optionally setting the
		 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
		 * stringable. If `multiple` is true, the prop must be an array of stringables.
		 *
		 * If `value` is not supplied (or null/undefined), user actions that change the
		 * selected option will trigger updates to the rendered options.
		 *
		 * If it is supplied (and not null/undefined), the rendered options will not
		 * update in response to user actions. Instead, the `value` prop must change in
		 * order for the rendered options to update.
		 *
		 * If `defaultValue` is provided, any options with the supplied values will be
		 * selected.
		 */


		function getHostProps$2(element, props) {
		  return _assign({}, props, {
		    value: undefined
		  });
		}
		function initWrapperState$1(element, props) {
		  var node = element;

		  {
		    checkSelectPropTypes(props);
		  }

		  node._wrapperState = {
		    wasMultiple: !!props.multiple
		  };

		  {
		    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
		      error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');

		      didWarnValueDefaultValue$1 = true;
		    }
		  }
		}
		function postMountWrapper$2(element, props) {
		  var node = element;
		  node.multiple = !!props.multiple;
		  var value = props.value;

		  if (value != null) {
		    updateOptions(node, !!props.multiple, value, false);
		  } else if (props.defaultValue != null) {
		    updateOptions(node, !!props.multiple, props.defaultValue, true);
		  }
		}
		function postUpdateWrapper(element, props) {
		  var node = element;
		  var wasMultiple = node._wrapperState.wasMultiple;
		  node._wrapperState.wasMultiple = !!props.multiple;
		  var value = props.value;

		  if (value != null) {
		    updateOptions(node, !!props.multiple, value, false);
		  } else if (wasMultiple !== !!props.multiple) {
		    // For simplicity, reapply `defaultValue` if `multiple` is toggled.
		    if (props.defaultValue != null) {
		      updateOptions(node, !!props.multiple, props.defaultValue, true);
		    } else {
		      // Revert the select back to its default unselected state.
		      updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
		    }
		  }
		}
		function restoreControlledState$1(element, props) {
		  var node = element;
		  var value = props.value;

		  if (value != null) {
		    updateOptions(node, !!props.multiple, value, false);
		  }
		}

		var didWarnValDefaultVal = false;

		/**
		 * Implements a <textarea> host component that allows setting `value`, and
		 * `defaultValue`. This differs from the traditional DOM API because value is
		 * usually set as PCDATA children.
		 *
		 * If `value` is not supplied (or null/undefined), user actions that affect the
		 * value will trigger updates to the element.
		 *
		 * If `value` is supplied (and not null/undefined), the rendered element will
		 * not trigger updates to the element. Instead, the `value` prop must change in
		 * order for the rendered element to be updated.
		 *
		 * The rendered element will be initialized with an empty value, the prop
		 * `defaultValue` if specified, or the children content (deprecated).
		 */
		function getHostProps$3(element, props) {
		  var node = element;

		  if (!(props.dangerouslySetInnerHTML == null)) {
		    {
		      throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
		    }
		  } // Always set children to the same thing. In IE9, the selection range will
		  // get reset if `textContent` is mutated.  We could add a check in setTextContent
		  // to only set the value if/when the value differs from the node value (which would
		  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
		  // solution. The value can be a boolean or object so that's why it's forced
		  // to be a string.


		  var hostProps = _assign({}, props, {
		    value: undefined,
		    defaultValue: undefined,
		    children: toString(node._wrapperState.initialValue)
		  });

		  return hostProps;
		}
		function initWrapperState$2(element, props) {
		  var node = element;

		  {
		    checkControlledValueProps('textarea', props);

		    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
		      error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');

		      didWarnValDefaultVal = true;
		    }
		  }

		  var initialValue = props.value; // Only bother fetching default value if we're going to use it

		  if (initialValue == null) {
		    var children = props.children,
		        defaultValue = props.defaultValue;

		    if (children != null) {
		      {
		        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
		      }

		      {
		        if (!(defaultValue == null)) {
		          {
		            throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
		          }
		        }

		        if (Array.isArray(children)) {
		          if (!(children.length <= 1)) {
		            {
		              throw Error( "<textarea> can only have at most one child." );
		            }
		          }

		          children = children[0];
		        }

		        defaultValue = children;
		      }
		    }

		    if (defaultValue == null) {
		      defaultValue = '';
		    }

		    initialValue = defaultValue;
		  }

		  node._wrapperState = {
		    initialValue: getToStringValue(initialValue)
		  };
		}
		function updateWrapper$1(element, props) {
		  var node = element;
		  var value = getToStringValue(props.value);
		  var defaultValue = getToStringValue(props.defaultValue);

		  if (value != null) {
		    // Cast `value` to a string to ensure the value is set correctly. While
		    // browsers typically do this as necessary, jsdom doesn't.
		    var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed

		    if (newValue !== node.value) {
		      node.value = newValue;
		    }

		    if (props.defaultValue == null && node.defaultValue !== newValue) {
		      node.defaultValue = newValue;
		    }
		  }

		  if (defaultValue != null) {
		    node.defaultValue = toString(defaultValue);
		  }
		}
		function postMountWrapper$3(element, props) {
		  var node = element; // This is in postMount because we need access to the DOM node, which is not
		  // available until after the component has mounted.

		  var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
		  // initial value. In IE10/IE11 there is a bug where the placeholder attribute
		  // will populate textContent as well.
		  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/

		  if (textContent === node._wrapperState.initialValue) {
		    if (textContent !== '' && textContent !== null) {
		      node.value = textContent;
		    }
		  }
		}
		function restoreControlledState$2(element, props) {
		  // DOM component is still mounted; update
		  updateWrapper$1(element, props);
		}

		var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
		var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
		var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
		var Namespaces = {
		  html: HTML_NAMESPACE,
		  mathml: MATH_NAMESPACE,
		  svg: SVG_NAMESPACE
		}; // Assumes there is no parent namespace.

		function getIntrinsicNamespace(type) {
		  switch (type) {
		    case 'svg':
		      return SVG_NAMESPACE;

		    case 'math':
		      return MATH_NAMESPACE;

		    default:
		      return HTML_NAMESPACE;
		  }
		}
		function getChildNamespace(parentNamespace, type) {
		  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
		    // No (or default) parent namespace: potential entry point.
		    return getIntrinsicNamespace(type);
		  }

		  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
		    // We're leaving SVG.
		    return HTML_NAMESPACE;
		  } // By default, pass namespace below.


		  return parentNamespace;
		}

		/* globals MSApp */

		/**
		 * Create a function which has 'unsafe' privileges (required by windows8 apps)
		 */
		var createMicrosoftUnsafeLocalFunction = function (func) {
		  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
		    return function (arg0, arg1, arg2, arg3) {
		      MSApp.execUnsafeLocalFunction(function () {
		        return func(arg0, arg1, arg2, arg3);
		      });
		    };
		  } else {
		    return func;
		  }
		};

		var reusableSVGContainer;
		/**
		 * Set the innerHTML property of a node
		 *
		 * @param {DOMElement} node
		 * @param {string} html
		 * @internal
		 */

		var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
		  if (node.namespaceURI === Namespaces.svg) {

		    if (!('innerHTML' in node)) {
		      // IE does not have innerHTML for SVG nodes, so instead we inject the
		      // new markup in a temp node and then move the child nodes across into
		      // the target node
		      reusableSVGContainer = reusableSVGContainer || document.createElement('div');
		      reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
		      var svgNode = reusableSVGContainer.firstChild;

		      while (node.firstChild) {
		        node.removeChild(node.firstChild);
		      }

		      while (svgNode.firstChild) {
		        node.appendChild(svgNode.firstChild);
		      }

		      return;
		    }
		  }

		  node.innerHTML = html;
		});

		/**
		 * HTML nodeType values that represent the type of the node
		 */
		var ELEMENT_NODE = 1;
		var TEXT_NODE = 3;
		var COMMENT_NODE = 8;
		var DOCUMENT_NODE = 9;
		var DOCUMENT_FRAGMENT_NODE = 11;

		/**
		 * Set the textContent property of a node. For text updates, it's faster
		 * to set the `nodeValue` of the Text node directly instead of using
		 * `.textContent` which will remove the existing node and create a new one.
		 *
		 * @param {DOMElement} node
		 * @param {string} text
		 * @internal
		 */

		var setTextContent = function (node, text) {
		  if (text) {
		    var firstChild = node.firstChild;

		    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
		      firstChild.nodeValue = text;
		      return;
		    }
		  }

		  node.textContent = text;
		};

		// List derived from Gecko source code:
		// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
		var shorthandToLonghand = {
		  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
		  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
		  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
		  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
		  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
		  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
		  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
		  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
		  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
		  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
		  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
		  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
		  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
		  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
		  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
		  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
		  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
		  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
		  columns: ['columnCount', 'columnWidth'],
		  flex: ['flexBasis', 'flexGrow', 'flexShrink'],
		  flexFlow: ['flexDirection', 'flexWrap'],
		  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
		  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
		  gap: ['columnGap', 'rowGap'],
		  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
		  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
		  gridColumn: ['gridColumnEnd', 'gridColumnStart'],
		  gridColumnGap: ['columnGap'],
		  gridGap: ['columnGap', 'rowGap'],
		  gridRow: ['gridRowEnd', 'gridRowStart'],
		  gridRowGap: ['rowGap'],
		  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
		  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
		  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
		  marker: ['markerEnd', 'markerMid', 'markerStart'],
		  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
		  maskPosition: ['maskPositionX', 'maskPositionY'],
		  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
		  overflow: ['overflowX', 'overflowY'],
		  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
		  placeContent: ['alignContent', 'justifyContent'],
		  placeItems: ['alignItems', 'justifyItems'],
		  placeSelf: ['alignSelf', 'justifySelf'],
		  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
		  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
		  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
		  wordWrap: ['overflowWrap']
		};

		/**
		 * CSS properties which accept numbers but are not in units of "px".
		 */
		var isUnitlessNumber = {
		  animationIterationCount: true,
		  borderImageOutset: true,
		  borderImageSlice: true,
		  borderImageWidth: true,
		  boxFlex: true,
		  boxFlexGroup: true,
		  boxOrdinalGroup: true,
		  columnCount: true,
		  columns: true,
		  flex: true,
		  flexGrow: true,
		  flexPositive: true,
		  flexShrink: true,
		  flexNegative: true,
		  flexOrder: true,
		  gridArea: true,
		  gridRow: true,
		  gridRowEnd: true,
		  gridRowSpan: true,
		  gridRowStart: true,
		  gridColumn: true,
		  gridColumnEnd: true,
		  gridColumnSpan: true,
		  gridColumnStart: true,
		  fontWeight: true,
		  lineClamp: true,
		  lineHeight: true,
		  opacity: true,
		  order: true,
		  orphans: true,
		  tabSize: true,
		  widows: true,
		  zIndex: true,
		  zoom: true,
		  // SVG-related properties
		  fillOpacity: true,
		  floodOpacity: true,
		  stopOpacity: true,
		  strokeDasharray: true,
		  strokeDashoffset: true,
		  strokeMiterlimit: true,
		  strokeOpacity: true,
		  strokeWidth: true
		};
		/**
		 * @param {string} prefix vendor-specific prefix, eg: Webkit
		 * @param {string} key style name, eg: transitionDuration
		 * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
		 * WebkitTransitionDuration
		 */

		function prefixKey(prefix, key) {
		  return prefix + key.charAt(0).toUpperCase() + key.substring(1);
		}
		/**
		 * Support style names that may come passed in prefixed by adding permutations
		 * of vendor prefixes.
		 */


		var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
		// infinite loop, because it iterates over the newly added props too.

		Object.keys(isUnitlessNumber).forEach(function (prop) {
		  prefixes.forEach(function (prefix) {
		    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
		  });
		});

		/**
		 * Convert a value into the proper css writable value. The style name `name`
		 * should be logical (no hyphens), as specified
		 * in `CSSProperty.isUnitlessNumber`.
		 *
		 * @param {string} name CSS property name such as `topMargin`.
		 * @param {*} value CSS property value such as `10px`.
		 * @return {string} Normalized style value with dimensions applied.
		 */

		function dangerousStyleValue(name, value, isCustomProperty) {
		  // Note that we've removed escapeTextForBrowser() calls here since the
		  // whole string will be escaped when the attribute is injected into
		  // the markup. If you provide unsafe user data here they can inject
		  // arbitrary CSS which may be problematic (I couldn't repro this):
		  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
		  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
		  // This is not an XSS hole but instead a potential CSS injection issue
		  // which has lead to a greater discussion about how we're going to
		  // trust URLs moving forward. See #2115901
		  var isEmpty = value == null || typeof value === 'boolean' || value === '';

		  if (isEmpty) {
		    return '';
		  }

		  if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
		    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
		  }

		  return ('' + value).trim();
		}

		var uppercasePattern = /([A-Z])/g;
		var msPattern = /^ms-/;
		/**
		 * Hyphenates a camelcased CSS property name, for example:
		 *
		 *   > hyphenateStyleName('backgroundColor')
		 *   < "background-color"
		 *   > hyphenateStyleName('MozTransition')
		 *   < "-moz-transition"
		 *   > hyphenateStyleName('msTransition')
		 *   < "-ms-transition"
		 *
		 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
		 * is converted to `-ms-`.
		 */

		function hyphenateStyleName(name) {
		  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
		}

		var warnValidStyle = function () {};

		{
		  // 'msTransform' is correct, but the other prefixes should be capitalized
		  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
		  var msPattern$1 = /^-ms-/;
		  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon

		  var badStyleValueWithSemicolonPattern = /;\s*$/;
		  var warnedStyleNames = {};
		  var warnedStyleValues = {};
		  var warnedForNaNValue = false;
		  var warnedForInfinityValue = false;

		  var camelize = function (string) {
		    return string.replace(hyphenPattern, function (_, character) {
		      return character.toUpperCase();
		    });
		  };

		  var warnHyphenatedStyleName = function (name) {
		    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
		      return;
		    }

		    warnedStyleNames[name] = true;

		    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
		    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
		    // is converted to lowercase `ms`.
		    camelize(name.replace(msPattern$1, 'ms-')));
		  };

		  var warnBadVendoredStyleName = function (name) {
		    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
		      return;
		    }

		    warnedStyleNames[name] = true;

		    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
		  };

		  var warnStyleValueWithSemicolon = function (name, value) {
		    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
		      return;
		    }

		    warnedStyleValues[value] = true;

		    error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
		  };

		  var warnStyleValueIsNaN = function (name, value) {
		    if (warnedForNaNValue) {
		      return;
		    }

		    warnedForNaNValue = true;

		    error('`NaN` is an invalid value for the `%s` css style property.', name);
		  };

		  var warnStyleValueIsInfinity = function (name, value) {
		    if (warnedForInfinityValue) {
		      return;
		    }

		    warnedForInfinityValue = true;

		    error('`Infinity` is an invalid value for the `%s` css style property.', name);
		  };

		  warnValidStyle = function (name, value) {
		    if (name.indexOf('-') > -1) {
		      warnHyphenatedStyleName(name);
		    } else if (badVendoredStyleNamePattern.test(name)) {
		      warnBadVendoredStyleName(name);
		    } else if (badStyleValueWithSemicolonPattern.test(value)) {
		      warnStyleValueWithSemicolon(name, value);
		    }

		    if (typeof value === 'number') {
		      if (isNaN(value)) {
		        warnStyleValueIsNaN(name, value);
		      } else if (!isFinite(value)) {
		        warnStyleValueIsInfinity(name, value);
		      }
		    }
		  };
		}

		var warnValidStyle$1 = warnValidStyle;

		/**
		 * Operations for dealing with CSS properties.
		 */

		/**
		 * This creates a string that is expected to be equivalent to the style
		 * attribute generated by server-side rendering. It by-passes warnings and
		 * security checks so it's not safe to use this value for anything other than
		 * comparison. It is only used in DEV for SSR validation.
		 */

		function createDangerousStringForStyles(styles) {
		  {
		    var serialized = '';
		    var delimiter = '';

		    for (var styleName in styles) {
		      if (!styles.hasOwnProperty(styleName)) {
		        continue;
		      }

		      var styleValue = styles[styleName];

		      if (styleValue != null) {
		        var isCustomProperty = styleName.indexOf('--') === 0;
		        serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
		        serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
		        delimiter = ';';
		      }
		    }

		    return serialized || null;
		  }
		}
		/**
		 * Sets the value for multiple styles on a node.  If a value is specified as
		 * '' (empty string), the corresponding style property will be unset.
		 *
		 * @param {DOMElement} node
		 * @param {object} styles
		 */

		function setValueForStyles(node, styles) {
		  var style = node.style;

		  for (var styleName in styles) {
		    if (!styles.hasOwnProperty(styleName)) {
		      continue;
		    }

		    var isCustomProperty = styleName.indexOf('--') === 0;

		    {
		      if (!isCustomProperty) {
		        warnValidStyle$1(styleName, styles[styleName]);
		      }
		    }

		    var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);

		    if (styleName === 'float') {
		      styleName = 'cssFloat';
		    }

		    if (isCustomProperty) {
		      style.setProperty(styleName, styleValue);
		    } else {
		      style[styleName] = styleValue;
		    }
		  }
		}

		function isValueEmpty(value) {
		  return value == null || typeof value === 'boolean' || value === '';
		}
		/**
		 * Given {color: 'red', overflow: 'hidden'} returns {
		 *   color: 'color',
		 *   overflowX: 'overflow',
		 *   overflowY: 'overflow',
		 * }. This can be read as "the overflowY property was set by the overflow
		 * shorthand". That is, the values are the property that each was derived from.
		 */


		function expandShorthandMap(styles) {
		  var expanded = {};

		  for (var key in styles) {
		    var longhands = shorthandToLonghand[key] || [key];

		    for (var i = 0; i < longhands.length; i++) {
		      expanded[longhands[i]] = key;
		    }
		  }

		  return expanded;
		}
		/**
		 * When mixing shorthand and longhand property names, we warn during updates if
		 * we expect an incorrect result to occur. In particular, we warn for:
		 *
		 * Updating a shorthand property (longhand gets overwritten):
		 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
		 *   becomes .style.font = 'baz'
		 * Removing a shorthand property (longhand gets lost too):
		 *   {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
		 *   becomes .style.font = ''
		 * Removing a longhand property (should revert to shorthand; doesn't):
		 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
		 *   becomes .style.fontVariant = ''
		 */


		function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
		  {
		    if (!nextStyles) {
		      return;
		    }

		    var expandedUpdates = expandShorthandMap(styleUpdates);
		    var expandedStyles = expandShorthandMap(nextStyles);
		    var warnedAbout = {};

		    for (var key in expandedUpdates) {
		      var originalKey = expandedUpdates[key];
		      var correctOriginalKey = expandedStyles[key];

		      if (correctOriginalKey && originalKey !== correctOriginalKey) {
		        var warningKey = originalKey + ',' + correctOriginalKey;

		        if (warnedAbout[warningKey]) {
		          continue;
		        }

		        warnedAbout[warningKey] = true;

		        error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
		      }
		    }
		  }
		}

		// For HTML, certain tags should omit their close tag. We keep a list for
		// those special-case tags.
		var omittedCloseTags = {
		  area: true,
		  base: true,
		  br: true,
		  col: true,
		  embed: true,
		  hr: true,
		  img: true,
		  input: true,
		  keygen: true,
		  link: true,
		  meta: true,
		  param: true,
		  source: true,
		  track: true,
		  wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.

		};

		// `omittedCloseTags` except that `menuitem` should still have its closing tag.

		var voidElementTags = _assign({
		  menuitem: true
		}, omittedCloseTags);

		var HTML = '__html';

		function assertValidProps(tag, props) {
		  if (!props) {
		    return;
		  } // Note the use of `==` which checks for null or undefined.


		  if (voidElementTags[tag]) {
		    if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
		      {
		        throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." );
		      }
		    }
		  }

		  if (props.dangerouslySetInnerHTML != null) {
		    if (!(props.children == null)) {
		      {
		        throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
		      }
		    }

		    if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
		      {
		        throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." );
		      }
		    }
		  }

		  {
		    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
		      error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
		    }
		  }

		  if (!(props.style == null || typeof props.style === 'object')) {
		    {
		      throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." );
		    }
		  }
		}

		function isCustomComponent(tagName, props) {
		  if (tagName.indexOf('-') === -1) {
		    return typeof props.is === 'string';
		  }

		  switch (tagName) {
		    // These are reserved SVG and MathML elements.
		    // We don't mind this list too much because we expect it to never grow.
		    // The alternative is to track the namespace in a few places which is convoluted.
		    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
		    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 false;

		    default:
		      return true;
		  }
		}

		// When adding attributes to the HTML or SVG allowed attribute list, be sure to
		// also add them to this module to ensure casing and incorrect name
		// warnings.
		var possibleStandardNames = {
		  // HTML
		  accept: 'accept',
		  acceptcharset: 'acceptCharset',
		  'accept-charset': 'acceptCharset',
		  accesskey: 'accessKey',
		  action: 'action',
		  allowfullscreen: 'allowFullScreen',
		  alt: 'alt',
		  as: 'as',
		  async: 'async',
		  autocapitalize: 'autoCapitalize',
		  autocomplete: 'autoComplete',
		  autocorrect: 'autoCorrect',
		  autofocus: 'autoFocus',
		  autoplay: 'autoPlay',
		  autosave: 'autoSave',
		  capture: 'capture',
		  cellpadding: 'cellPadding',
		  cellspacing: 'cellSpacing',
		  challenge: 'challenge',
		  charset: 'charSet',
		  checked: 'checked',
		  children: 'children',
		  cite: 'cite',
		  class: 'className',
		  classid: 'classID',
		  classname: 'className',
		  cols: 'cols',
		  colspan: 'colSpan',
		  content: 'content',
		  contenteditable: 'contentEditable',
		  contextmenu: 'contextMenu',
		  controls: 'controls',
		  controlslist: 'controlsList',
		  coords: 'coords',
		  crossorigin: 'crossOrigin',
		  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
		  data: 'data',
		  datetime: 'dateTime',
		  default: 'default',
		  defaultchecked: 'defaultChecked',
		  defaultvalue: 'defaultValue',
		  defer: 'defer',
		  dir: 'dir',
		  disabled: 'disabled',
		  disablepictureinpicture: 'disablePictureInPicture',
		  disableremoteplayback: 'disableRemotePlayback',
		  download: 'download',
		  draggable: 'draggable',
		  enctype: 'encType',
		  enterkeyhint: 'enterKeyHint',
		  for: 'htmlFor',
		  form: 'form',
		  formmethod: 'formMethod',
		  formaction: 'formAction',
		  formenctype: 'formEncType',
		  formnovalidate: 'formNoValidate',
		  formtarget: 'formTarget',
		  frameborder: 'frameBorder',
		  headers: 'headers',
		  height: 'height',
		  hidden: 'hidden',
		  high: 'high',
		  href: 'href',
		  hreflang: 'hrefLang',
		  htmlfor: 'htmlFor',
		  httpequiv: 'httpEquiv',
		  'http-equiv': 'httpEquiv',
		  icon: 'icon',
		  id: 'id',
		  innerhtml: 'innerHTML',
		  inputmode: 'inputMode',
		  integrity: 'integrity',
		  is: 'is',
		  itemid: 'itemID',
		  itemprop: 'itemProp',
		  itemref: 'itemRef',
		  itemscope: 'itemScope',
		  itemtype: 'itemType',
		  keyparams: 'keyParams',
		  keytype: 'keyType',
		  kind: 'kind',
		  label: 'label',
		  lang: 'lang',
		  list: 'list',
		  loop: 'loop',
		  low: 'low',
		  manifest: 'manifest',
		  marginwidth: 'marginWidth',
		  marginheight: 'marginHeight',
		  max: 'max',
		  maxlength: 'maxLength',
		  media: 'media',
		  mediagroup: 'mediaGroup',
		  method: 'method',
		  min: 'min',
		  minlength: 'minLength',
		  multiple: 'multiple',
		  muted: 'muted',
		  name: 'name',
		  nomodule: 'noModule',
		  nonce: 'nonce',
		  novalidate: 'noValidate',
		  open: 'open',
		  optimum: 'optimum',
		  pattern: 'pattern',
		  placeholder: 'placeholder',
		  playsinline: 'playsInline',
		  poster: 'poster',
		  preload: 'preload',
		  profile: 'profile',
		  radiogroup: 'radioGroup',
		  readonly: 'readOnly',
		  referrerpolicy: 'referrerPolicy',
		  rel: 'rel',
		  required: 'required',
		  reversed: 'reversed',
		  role: 'role',
		  rows: 'rows',
		  rowspan: 'rowSpan',
		  sandbox: 'sandbox',
		  scope: 'scope',
		  scoped: 'scoped',
		  scrolling: 'scrolling',
		  seamless: 'seamless',
		  selected: 'selected',
		  shape: 'shape',
		  size: 'size',
		  sizes: 'sizes',
		  span: 'span',
		  spellcheck: 'spellCheck',
		  src: 'src',
		  srcdoc: 'srcDoc',
		  srclang: 'srcLang',
		  srcset: 'srcSet',
		  start: 'start',
		  step: 'step',
		  style: 'style',
		  summary: 'summary',
		  tabindex: 'tabIndex',
		  target: 'target',
		  title: 'title',
		  type: 'type',
		  usemap: 'useMap',
		  value: 'value',
		  width: 'width',
		  wmode: 'wmode',
		  wrap: 'wrap',
		  // SVG
		  about: 'about',
		  accentheight: 'accentHeight',
		  'accent-height': 'accentHeight',
		  accumulate: 'accumulate',
		  additive: 'additive',
		  alignmentbaseline: 'alignmentBaseline',
		  'alignment-baseline': 'alignmentBaseline',
		  allowreorder: 'allowReorder',
		  alphabetic: 'alphabetic',
		  amplitude: 'amplitude',
		  arabicform: 'arabicForm',
		  'arabic-form': 'arabicForm',
		  ascent: 'ascent',
		  attributename: 'attributeName',
		  attributetype: 'attributeType',
		  autoreverse: 'autoReverse',
		  azimuth: 'azimuth',
		  basefrequency: 'baseFrequency',
		  baselineshift: 'baselineShift',
		  'baseline-shift': 'baselineShift',
		  baseprofile: 'baseProfile',
		  bbox: 'bbox',
		  begin: 'begin',
		  bias: 'bias',
		  by: 'by',
		  calcmode: 'calcMode',
		  capheight: 'capHeight',
		  'cap-height': 'capHeight',
		  clip: 'clip',
		  clippath: 'clipPath',
		  'clip-path': 'clipPath',
		  clippathunits: 'clipPathUnits',
		  cliprule: 'clipRule',
		  'clip-rule': 'clipRule',
		  color: 'color',
		  colorinterpolation: 'colorInterpolation',
		  'color-interpolation': 'colorInterpolation',
		  colorinterpolationfilters: 'colorInterpolationFilters',
		  'color-interpolation-filters': 'colorInterpolationFilters',
		  colorprofile: 'colorProfile',
		  'color-profile': 'colorProfile',
		  colorrendering: 'colorRendering',
		  'color-rendering': 'colorRendering',
		  contentscripttype: 'contentScriptType',
		  contentstyletype: 'contentStyleType',
		  cursor: 'cursor',
		  cx: 'cx',
		  cy: 'cy',
		  d: 'd',
		  datatype: 'datatype',
		  decelerate: 'decelerate',
		  descent: 'descent',
		  diffuseconstant: 'diffuseConstant',
		  direction: 'direction',
		  display: 'display',
		  divisor: 'divisor',
		  dominantbaseline: 'dominantBaseline',
		  'dominant-baseline': 'dominantBaseline',
		  dur: 'dur',
		  dx: 'dx',
		  dy: 'dy',
		  edgemode: 'edgeMode',
		  elevation: 'elevation',
		  enablebackground: 'enableBackground',
		  'enable-background': 'enableBackground',
		  end: 'end',
		  exponent: 'exponent',
		  externalresourcesrequired: 'externalResourcesRequired',
		  fill: 'fill',
		  fillopacity: 'fillOpacity',
		  'fill-opacity': 'fillOpacity',
		  fillrule: 'fillRule',
		  'fill-rule': 'fillRule',
		  filter: 'filter',
		  filterres: 'filterRes',
		  filterunits: 'filterUnits',
		  floodopacity: 'floodOpacity',
		  'flood-opacity': 'floodOpacity',
		  floodcolor: 'floodColor',
		  'flood-color': 'floodColor',
		  focusable: 'focusable',
		  fontfamily: 'fontFamily',
		  'font-family': 'fontFamily',
		  fontsize: 'fontSize',
		  'font-size': 'fontSize',
		  fontsizeadjust: 'fontSizeAdjust',
		  'font-size-adjust': 'fontSizeAdjust',
		  fontstretch: 'fontStretch',
		  'font-stretch': 'fontStretch',
		  fontstyle: 'fontStyle',
		  'font-style': 'fontStyle',
		  fontvariant: 'fontVariant',
		  'font-variant': 'fontVariant',
		  fontweight: 'fontWeight',
		  'font-weight': 'fontWeight',
		  format: 'format',
		  from: 'from',
		  fx: 'fx',
		  fy: 'fy',
		  g1: 'g1',
		  g2: 'g2',
		  glyphname: 'glyphName',
		  'glyph-name': 'glyphName',
		  glyphorientationhorizontal: 'glyphOrientationHorizontal',
		  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
		  glyphorientationvertical: 'glyphOrientationVertical',
		  'glyph-orientation-vertical': 'glyphOrientationVertical',
		  glyphref: 'glyphRef',
		  gradienttransform: 'gradientTransform',
		  gradientunits: 'gradientUnits',
		  hanging: 'hanging',
		  horizadvx: 'horizAdvX',
		  'horiz-adv-x': 'horizAdvX',
		  horizoriginx: 'horizOriginX',
		  'horiz-origin-x': 'horizOriginX',
		  ideographic: 'ideographic',
		  imagerendering: 'imageRendering',
		  'image-rendering': 'imageRendering',
		  in2: 'in2',
		  in: 'in',
		  inlist: 'inlist',
		  intercept: 'intercept',
		  k1: 'k1',
		  k2: 'k2',
		  k3: 'k3',
		  k4: 'k4',
		  k: 'k',
		  kernelmatrix: 'kernelMatrix',
		  kernelunitlength: 'kernelUnitLength',
		  kerning: 'kerning',
		  keypoints: 'keyPoints',
		  keysplines: 'keySplines',
		  keytimes: 'keyTimes',
		  lengthadjust: 'lengthAdjust',
		  letterspacing: 'letterSpacing',
		  'letter-spacing': 'letterSpacing',
		  lightingcolor: 'lightingColor',
		  'lighting-color': 'lightingColor',
		  limitingconeangle: 'limitingConeAngle',
		  local: 'local',
		  markerend: 'markerEnd',
		  'marker-end': 'markerEnd',
		  markerheight: 'markerHeight',
		  markermid: 'markerMid',
		  'marker-mid': 'markerMid',
		  markerstart: 'markerStart',
		  'marker-start': 'markerStart',
		  markerunits: 'markerUnits',
		  markerwidth: 'markerWidth',
		  mask: 'mask',
		  maskcontentunits: 'maskContentUnits',
		  maskunits: 'maskUnits',
		  mathematical: 'mathematical',
		  mode: 'mode',
		  numoctaves: 'numOctaves',
		  offset: 'offset',
		  opacity: 'opacity',
		  operator: 'operator',
		  order: 'order',
		  orient: 'orient',
		  orientation: 'orientation',
		  origin: 'origin',
		  overflow: 'overflow',
		  overlineposition: 'overlinePosition',
		  'overline-position': 'overlinePosition',
		  overlinethickness: 'overlineThickness',
		  'overline-thickness': 'overlineThickness',
		  paintorder: 'paintOrder',
		  'paint-order': 'paintOrder',
		  panose1: 'panose1',
		  'panose-1': 'panose1',
		  pathlength: 'pathLength',
		  patterncontentunits: 'patternContentUnits',
		  patterntransform: 'patternTransform',
		  patternunits: 'patternUnits',
		  pointerevents: 'pointerEvents',
		  'pointer-events': 'pointerEvents',
		  points: 'points',
		  pointsatx: 'pointsAtX',
		  pointsaty: 'pointsAtY',
		  pointsatz: 'pointsAtZ',
		  prefix: 'prefix',
		  preservealpha: 'preserveAlpha',
		  preserveaspectratio: 'preserveAspectRatio',
		  primitiveunits: 'primitiveUnits',
		  property: 'property',
		  r: 'r',
		  radius: 'radius',
		  refx: 'refX',
		  refy: 'refY',
		  renderingintent: 'renderingIntent',
		  'rendering-intent': 'renderingIntent',
		  repeatcount: 'repeatCount',
		  repeatdur: 'repeatDur',
		  requiredextensions: 'requiredExtensions',
		  requiredfeatures: 'requiredFeatures',
		  resource: 'resource',
		  restart: 'restart',
		  result: 'result',
		  results: 'results',
		  rotate: 'rotate',
		  rx: 'rx',
		  ry: 'ry',
		  scale: 'scale',
		  security: 'security',
		  seed: 'seed',
		  shaperendering: 'shapeRendering',
		  'shape-rendering': 'shapeRendering',
		  slope: 'slope',
		  spacing: 'spacing',
		  specularconstant: 'specularConstant',
		  specularexponent: 'specularExponent',
		  speed: 'speed',
		  spreadmethod: 'spreadMethod',
		  startoffset: 'startOffset',
		  stddeviation: 'stdDeviation',
		  stemh: 'stemh',
		  stemv: 'stemv',
		  stitchtiles: 'stitchTiles',
		  stopcolor: 'stopColor',
		  'stop-color': 'stopColor',
		  stopopacity: 'stopOpacity',
		  'stop-opacity': 'stopOpacity',
		  strikethroughposition: 'strikethroughPosition',
		  'strikethrough-position': 'strikethroughPosition',
		  strikethroughthickness: 'strikethroughThickness',
		  'strikethrough-thickness': 'strikethroughThickness',
		  string: 'string',
		  stroke: 'stroke',
		  strokedasharray: 'strokeDasharray',
		  'stroke-dasharray': 'strokeDasharray',
		  strokedashoffset: 'strokeDashoffset',
		  'stroke-dashoffset': 'strokeDashoffset',
		  strokelinecap: 'strokeLinecap',
		  'stroke-linecap': 'strokeLinecap',
		  strokelinejoin: 'strokeLinejoin',
		  'stroke-linejoin': 'strokeLinejoin',
		  strokemiterlimit: 'strokeMiterlimit',
		  'stroke-miterlimit': 'strokeMiterlimit',
		  strokewidth: 'strokeWidth',
		  'stroke-width': 'strokeWidth',
		  strokeopacity: 'strokeOpacity',
		  'stroke-opacity': 'strokeOpacity',
		  suppresscontenteditablewarning: 'suppressContentEditableWarning',
		  suppresshydrationwarning: 'suppressHydrationWarning',
		  surfacescale: 'surfaceScale',
		  systemlanguage: 'systemLanguage',
		  tablevalues: 'tableValues',
		  targetx: 'targetX',
		  targety: 'targetY',
		  textanchor: 'textAnchor',
		  'text-anchor': 'textAnchor',
		  textdecoration: 'textDecoration',
		  'text-decoration': 'textDecoration',
		  textlength: 'textLength',
		  textrendering: 'textRendering',
		  'text-rendering': 'textRendering',
		  to: 'to',
		  transform: 'transform',
		  typeof: 'typeof',
		  u1: 'u1',
		  u2: 'u2',
		  underlineposition: 'underlinePosition',
		  'underline-position': 'underlinePosition',
		  underlinethickness: 'underlineThickness',
		  'underline-thickness': 'underlineThickness',
		  unicode: 'unicode',
		  unicodebidi: 'unicodeBidi',
		  'unicode-bidi': 'unicodeBidi',
		  unicoderange: 'unicodeRange',
		  'unicode-range': 'unicodeRange',
		  unitsperem: 'unitsPerEm',
		  'units-per-em': 'unitsPerEm',
		  unselectable: 'unselectable',
		  valphabetic: 'vAlphabetic',
		  'v-alphabetic': 'vAlphabetic',
		  values: 'values',
		  vectoreffect: 'vectorEffect',
		  'vector-effect': 'vectorEffect',
		  version: 'version',
		  vertadvy: 'vertAdvY',
		  'vert-adv-y': 'vertAdvY',
		  vertoriginx: 'vertOriginX',
		  'vert-origin-x': 'vertOriginX',
		  vertoriginy: 'vertOriginY',
		  'vert-origin-y': 'vertOriginY',
		  vhanging: 'vHanging',
		  'v-hanging': 'vHanging',
		  videographic: 'vIdeographic',
		  'v-ideographic': 'vIdeographic',
		  viewbox: 'viewBox',
		  viewtarget: 'viewTarget',
		  visibility: 'visibility',
		  vmathematical: 'vMathematical',
		  'v-mathematical': 'vMathematical',
		  vocab: 'vocab',
		  widths: 'widths',
		  wordspacing: 'wordSpacing',
		  'word-spacing': 'wordSpacing',
		  writingmode: 'writingMode',
		  'writing-mode': 'writingMode',
		  x1: 'x1',
		  x2: 'x2',
		  x: 'x',
		  xchannelselector: 'xChannelSelector',
		  xheight: 'xHeight',
		  'x-height': 'xHeight',
		  xlinkactuate: 'xlinkActuate',
		  'xlink:actuate': 'xlinkActuate',
		  xlinkarcrole: 'xlinkArcrole',
		  'xlink:arcrole': 'xlinkArcrole',
		  xlinkhref: 'xlinkHref',
		  'xlink:href': 'xlinkHref',
		  xlinkrole: 'xlinkRole',
		  'xlink:role': 'xlinkRole',
		  xlinkshow: 'xlinkShow',
		  'xlink:show': 'xlinkShow',
		  xlinktitle: 'xlinkTitle',
		  'xlink:title': 'xlinkTitle',
		  xlinktype: 'xlinkType',
		  'xlink:type': 'xlinkType',
		  xmlbase: 'xmlBase',
		  'xml:base': 'xmlBase',
		  xmllang: 'xmlLang',
		  'xml:lang': 'xmlLang',
		  xmlns: 'xmlns',
		  'xml:space': 'xmlSpace',
		  xmlnsxlink: 'xmlnsXlink',
		  'xmlns:xlink': 'xmlnsXlink',
		  xmlspace: 'xmlSpace',
		  y1: 'y1',
		  y2: 'y2',
		  y: 'y',
		  ychannelselector: 'yChannelSelector',
		  z: 'z',
		  zoomandpan: 'zoomAndPan'
		};

		var ariaProperties = {
		  'aria-current': 0,
		  // state
		  'aria-details': 0,
		  'aria-disabled': 0,
		  // state
		  'aria-hidden': 0,
		  // state
		  'aria-invalid': 0,
		  // state
		  'aria-keyshortcuts': 0,
		  'aria-label': 0,
		  'aria-roledescription': 0,
		  // Widget Attributes
		  'aria-autocomplete': 0,
		  'aria-checked': 0,
		  'aria-expanded': 0,
		  'aria-haspopup': 0,
		  'aria-level': 0,
		  'aria-modal': 0,
		  'aria-multiline': 0,
		  'aria-multiselectable': 0,
		  'aria-orientation': 0,
		  'aria-placeholder': 0,
		  'aria-pressed': 0,
		  'aria-readonly': 0,
		  'aria-required': 0,
		  'aria-selected': 0,
		  'aria-sort': 0,
		  'aria-valuemax': 0,
		  'aria-valuemin': 0,
		  'aria-valuenow': 0,
		  'aria-valuetext': 0,
		  // Live Region Attributes
		  'aria-atomic': 0,
		  'aria-busy': 0,
		  'aria-live': 0,
		  'aria-relevant': 0,
		  // Drag-and-Drop Attributes
		  'aria-dropeffect': 0,
		  'aria-grabbed': 0,
		  // Relationship Attributes
		  'aria-activedescendant': 0,
		  'aria-colcount': 0,
		  'aria-colindex': 0,
		  'aria-colspan': 0,
		  'aria-controls': 0,
		  'aria-describedby': 0,
		  'aria-errormessage': 0,
		  'aria-flowto': 0,
		  'aria-labelledby': 0,
		  'aria-owns': 0,
		  'aria-posinset': 0,
		  'aria-rowcount': 0,
		  'aria-rowindex': 0,
		  'aria-rowspan': 0,
		  'aria-setsize': 0
		};

		var warnedProperties = {};
		var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
		var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
		var hasOwnProperty$1 = Object.prototype.hasOwnProperty;

		function validateProperty(tagName, name) {
		  {
		    if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
		      return true;
		    }

		    if (rARIACamel.test(name)) {
		      var ariaName = 'aria-' + name.slice(4).toLowerCase();
		      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
		      // DOM properties, then it is an invalid aria-* attribute.

		      if (correctName == null) {
		        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);

		        warnedProperties[name] = true;
		        return true;
		      } // aria-* attributes should be lowercase; suggest the lowercase version.


		      if (name !== correctName) {
		        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);

		        warnedProperties[name] = true;
		        return true;
		      }
		    }

		    if (rARIA.test(name)) {
		      var lowerCasedName = name.toLowerCase();
		      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
		      // DOM properties, then it is an invalid aria-* attribute.

		      if (standardName == null) {
		        warnedProperties[name] = true;
		        return false;
		      } // aria-* attributes should be lowercase; suggest the lowercase version.


		      if (name !== standardName) {
		        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);

		        warnedProperties[name] = true;
		        return true;
		      }
		    }
		  }

		  return true;
		}

		function warnInvalidARIAProps(type, props) {
		  {
		    var invalidProps = [];

		    for (var key in props) {
		      var isValid = validateProperty(type, key);

		      if (!isValid) {
		        invalidProps.push(key);
		      }
		    }

		    var unknownPropString = invalidProps.map(function (prop) {
		      return '`' + prop + '`';
		    }).join(', ');

		    if (invalidProps.length === 1) {
		      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
		    } else if (invalidProps.length > 1) {
		      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
		    }
		  }
		}

		function validateProperties(type, props) {
		  if (isCustomComponent(type, props)) {
		    return;
		  }

		  warnInvalidARIAProps(type, props);
		}

		var didWarnValueNull = false;
		function validateProperties$1(type, props) {
		  {
		    if (type !== 'input' && type !== 'textarea' && type !== 'select') {
		      return;
		    }

		    if (props != null && props.value === null && !didWarnValueNull) {
		      didWarnValueNull = true;

		      if (type === 'select' && props.multiple) {
		        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
		      } else {
		        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
		      }
		    }
		  }
		}

		var validateProperty$1 = function () {};

		{
		  var warnedProperties$1 = {};
		  var _hasOwnProperty = Object.prototype.hasOwnProperty;
		  var EVENT_NAME_REGEX = /^on./;
		  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
		  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
		  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

		  validateProperty$1 = function (tagName, name, value, eventRegistry) {
		    if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
		      return true;
		    }

		    var lowerCasedName = name.toLowerCase();

		    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
		      error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');

		      warnedProperties$1[name] = true;
		      return true;
		    } // We can't rely on the event system being injected on the server.


		    if (eventRegistry != null) {
		      var registrationNameDependencies = eventRegistry.registrationNameDependencies,
		          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;

		      if (registrationNameDependencies.hasOwnProperty(name)) {
		        return true;
		      }

		      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;

		      if (registrationName != null) {
		        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);

		        warnedProperties$1[name] = true;
		        return true;
		      }

		      if (EVENT_NAME_REGEX.test(name)) {
		        error('Unknown event handler property `%s`. It will be ignored.', name);

		        warnedProperties$1[name] = true;
		        return true;
		      }
		    } else if (EVENT_NAME_REGEX.test(name)) {
		      // If no event plugins have been injected, we are in a server environment.
		      // So we can't tell if the event name is correct for sure, but we can filter
		      // out known bad ones like `onclick`. We can't suggest a specific replacement though.
		      if (INVALID_EVENT_NAME_REGEX.test(name)) {
		        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
		      }

		      warnedProperties$1[name] = true;
		      return true;
		    } // Let the ARIA attribute hook validate ARIA attributes


		    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
		      return true;
		    }

		    if (lowerCasedName === 'innerhtml') {
		      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    if (lowerCasedName === 'aria') {
		      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
		      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    if (typeof value === 'number' && isNaN(value)) {
		      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    var propertyInfo = getPropertyInfo(name);
		    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.

		    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
		      var standardName = possibleStandardNames[lowerCasedName];

		      if (standardName !== name) {
		        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);

		        warnedProperties$1[name] = true;
		        return true;
		      }
		    } else if (!isReserved && name !== lowerCasedName) {
		      // Unknown attributes should have lowercase casing since that's how they
		      // will be cased anyway with server rendering.
		      error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
		      if (value) {
		        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
		      } else {
		        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
		      }

		      warnedProperties$1[name] = true;
		      return true;
		    } // Now that we've validated casing, do not validate
		    // data types for reserved props


		    if (isReserved) {
		      return true;
		    } // Warn when a known attribute is a bad type


		    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
		      warnedProperties$1[name] = true;
		      return false;
		    } // Warn when passing the strings 'false' or 'true' into a boolean prop


		    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
		      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);

		      warnedProperties$1[name] = true;
		      return true;
		    }

		    return true;
		  };
		}

		var warnUnknownProperties = function (type, props, eventRegistry) {
		  {
		    var unknownProps = [];

		    for (var key in props) {
		      var isValid = validateProperty$1(type, key, props[key], eventRegistry);

		      if (!isValid) {
		        unknownProps.push(key);
		      }
		    }

		    var unknownPropString = unknownProps.map(function (prop) {
		      return '`' + prop + '`';
		    }).join(', ');

		    if (unknownProps.length === 1) {
		      error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
		    } else if (unknownProps.length > 1) {
		      error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
		    }
		  }
		};

		function validateProperties$2(type, props, eventRegistry) {
		  if (isCustomComponent(type, props)) {
		    return;
		  }

		  warnUnknownProperties(type, props, eventRegistry);
		}

		var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
		var IS_NON_DELEGATED = 1 << 1;
		var IS_CAPTURE_PHASE = 1 << 2;
		var IS_REPLAYED = 1 << 4;
		// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
		// we call willDeferLaterForLegacyFBSupport, thus not bailing out
		// will result in endless cycles like an infinite loop.
		// We also don't want to defer during event replaying.

		var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;

		/**
		 * Gets the target node from a native browser event by accounting for
		 * inconsistencies in browser DOM APIs.
		 *
		 * @param {object} nativeEvent Native browser event.
		 * @return {DOMEventTarget} Target node.
		 */

		function getEventTarget(nativeEvent) {
		  // Fallback to nativeEvent.srcElement for IE9
		  // https://github.com/facebook/react/issues/12506
		  var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963

		  if (target.correspondingUseElement) {
		    target = target.correspondingUseElement;
		  } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
		  // @see http://www.quirksmode.org/js/events_properties.html


		  return target.nodeType === TEXT_NODE ? target.parentNode : target;
		}

		var restoreImpl = null;
		var restoreTarget = null;
		var restoreQueue = null;

		function restoreStateOfTarget(target) {
		  // We perform this translation at the end of the event loop so that we
		  // always receive the correct fiber here
		  var internalInstance = getInstanceFromNode(target);

		  if (!internalInstance) {
		    // Unmounted
		    return;
		  }

		  if (!(typeof restoreImpl === 'function')) {
		    {
		      throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }

		  var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.

		  if (stateNode) {
		    var _props = getFiberCurrentPropsFromNode(stateNode);

		    restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
		  }
		}

		function setRestoreImplementation(impl) {
		  restoreImpl = impl;
		}
		function enqueueStateRestore(target) {
		  if (restoreTarget) {
		    if (restoreQueue) {
		      restoreQueue.push(target);
		    } else {
		      restoreQueue = [target];
		    }
		  } else {
		    restoreTarget = target;
		  }
		}
		function needsStateRestore() {
		  return restoreTarget !== null || restoreQueue !== null;
		}
		function restoreStateIfNeeded() {
		  if (!restoreTarget) {
		    return;
		  }

		  var target = restoreTarget;
		  var queuedTargets = restoreQueue;
		  restoreTarget = null;
		  restoreQueue = null;
		  restoreStateOfTarget(target);

		  if (queuedTargets) {
		    for (var i = 0; i < queuedTargets.length; i++) {
		      restoreStateOfTarget(queuedTargets[i]);
		    }
		  }
		}

		// the renderer. Such as when we're dispatching events or if third party
		// libraries need to call batchedUpdates. Eventually, this API will go away when
		// everything is batched by default. We'll then have a similar API to opt-out of
		// scheduled work and instead do synchronous work.
		// Defaults

		var batchedUpdatesImpl = function (fn, bookkeeping) {
		  return fn(bookkeeping);
		};

		var discreteUpdatesImpl = function (fn, a, b, c, d) {
		  return fn(a, b, c, d);
		};

		var flushDiscreteUpdatesImpl = function () {};

		var batchedEventUpdatesImpl = batchedUpdatesImpl;
		var isInsideEventHandler = false;
		var isBatchingEventUpdates = false;

		function finishEventHandler() {
		  // Here we wait until all updates have propagated, which is important
		  // when using controlled components within layers:
		  // https://github.com/facebook/react/issues/1698
		  // Then we restore state of any controlled component.
		  var controlledComponentsHavePendingUpdates = needsStateRestore();

		  if (controlledComponentsHavePendingUpdates) {
		    // If a controlled event was fired, we may need to restore the state of
		    // the DOM node back to the controlled value. This is necessary when React
		    // bails out of the update without touching the DOM.
		    flushDiscreteUpdatesImpl();
		    restoreStateIfNeeded();
		  }
		}

		function batchedUpdates(fn, bookkeeping) {
		  if (isInsideEventHandler) {
		    // If we are currently inside another batch, we need to wait until it
		    // fully completes before restoring state.
		    return fn(bookkeeping);
		  }

		  isInsideEventHandler = true;

		  try {
		    return batchedUpdatesImpl(fn, bookkeeping);
		  } finally {
		    isInsideEventHandler = false;
		    finishEventHandler();
		  }
		}
		function batchedEventUpdates(fn, a, b) {
		  if (isBatchingEventUpdates) {
		    // If we are currently inside another batch, we need to wait until it
		    // fully completes before restoring state.
		    return fn(a, b);
		  }

		  isBatchingEventUpdates = true;

		  try {
		    return batchedEventUpdatesImpl(fn, a, b);
		  } finally {
		    isBatchingEventUpdates = false;
		    finishEventHandler();
		  }
		}
		function discreteUpdates(fn, a, b, c, d) {
		  var prevIsInsideEventHandler = isInsideEventHandler;
		  isInsideEventHandler = true;

		  try {
		    return discreteUpdatesImpl(fn, a, b, c, d);
		  } finally {
		    isInsideEventHandler = prevIsInsideEventHandler;

		    if (!isInsideEventHandler) {
		      finishEventHandler();
		    }
		  }
		}
		function flushDiscreteUpdatesIfNeeded(timeStamp) {
		  {
		    if (!isInsideEventHandler) {
		      flushDiscreteUpdatesImpl();
		    }
		  }
		}
		function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
		  batchedUpdatesImpl = _batchedUpdatesImpl;
		  discreteUpdatesImpl = _discreteUpdatesImpl;
		  flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
		  batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
		}

		function isInteractive(tag) {
		  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
		}

		function shouldPreventMouseEvent(name, type, props) {
		  switch (name) {
		    case 'onClick':
		    case 'onClickCapture':
		    case 'onDoubleClick':
		    case 'onDoubleClickCapture':
		    case 'onMouseDown':
		    case 'onMouseDownCapture':
		    case 'onMouseMove':
		    case 'onMouseMoveCapture':
		    case 'onMouseUp':
		    case 'onMouseUpCapture':
		    case 'onMouseEnter':
		      return !!(props.disabled && isInteractive(type));

		    default:
		      return false;
		  }
		}
		/**
		 * @param {object} inst The instance, which is the source of events.
		 * @param {string} registrationName Name of listener (e.g. `onClick`).
		 * @return {?function} The stored callback.
		 */


		function getListener(inst, registrationName) {
		  var stateNode = inst.stateNode;

		  if (stateNode === null) {
		    // Work in progress (ex: onload events in incremental mode).
		    return null;
		  }

		  var props = getFiberCurrentPropsFromNode(stateNode);

		  if (props === null) {
		    // Work in progress.
		    return null;
		  }

		  var listener = props[registrationName];

		  if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
		    return null;
		  }

		  if (!(!listener || typeof listener === 'function')) {
		    {
		      throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
		    }
		  }

		  return listener;
		}

		var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners
		// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support

		if (canUseDOM) {
		  try {
		    var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value

		    Object.defineProperty(options, 'passive', {
		      get: function () {
		        passiveBrowserEventsSupported = true;
		      }
		    });
		    window.addEventListener('test', options, options);
		    window.removeEventListener('test', options, options);
		  } catch (e) {
		    passiveBrowserEventsSupported = false;
		  }
		}

		function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
		  var funcArgs = Array.prototype.slice.call(arguments, 3);

		  try {
		    func.apply(context, funcArgs);
		  } catch (error) {
		    this.onError(error);
		  }
		}

		var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;

		{
		  // In DEV mode, we swap out invokeGuardedCallback for a special version
		  // that plays more nicely with the browser's DevTools. The idea is to preserve
		  // "Pause on exceptions" behavior. Because React wraps all user-provided
		  // functions in invokeGuardedCallback, and the production version of
		  // invokeGuardedCallback uses a try-catch, all user exceptions are treated
		  // like caught exceptions, and the DevTools won't pause unless the developer
		  // takes the extra step of enabling pause on caught exceptions. This is
		  // unintuitive, though, because even though React has caught the error, from
		  // the developer's perspective, the error is uncaught.
		  //
		  // To preserve the expected "Pause on exceptions" behavior, we don't use a
		  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
		  // DOM node, and call the user-provided callback from inside an event handler
		  // for that fake event. If the callback throws, the error is "captured" using
		  // a global event handler. But because the error happens in a different
		  // event loop context, it does not interrupt the normal program flow.
		  // Effectively, this gives us try-catch behavior without actually using
		  // try-catch. Neat!
		  // Check that the browser supports the APIs we need to implement our special
		  // DEV version of invokeGuardedCallback
		  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
		    var fakeNode = document.createElement('react');

		    invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {
		      // If document doesn't exist we know for sure we will crash in this method
		      // when we call document.createEvent(). However this can cause confusing
		      // errors: https://github.com/facebookincubator/create-react-app/issues/3482
		      // So we preemptively throw with a better message instead.
		      if (!(typeof document !== 'undefined')) {
		        {
		          throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." );
		        }
		      }

		      var evt = document.createEvent('Event');
		      var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
		      // set this to true at the beginning, then set it to false right after
		      // calling the function. If the function errors, `didError` will never be
		      // set to false. This strategy works even if the browser is flaky and
		      // fails to call our global error handler, because it doesn't rely on
		      // the error event at all.

		      var didError = true; // Keeps track of the value of window.event so that we can reset it
		      // during the callback to let user code access window.event in the
		      // browsers that support it.

		      var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
		      // dispatching: https://github.com/facebook/react/issues/13688

		      var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');

		      function restoreAfterDispatch() {
		        // We immediately remove the callback from event listeners so that
		        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
		        // nested call would trigger the fake event handlers of any call higher
		        // in the stack.
		        fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
		        // window.event assignment in both IE <= 10 as they throw an error
		        // "Member not found" in strict mode, and in Firefox which does not
		        // support window.event.

		        if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
		          window.event = windowEvent;
		        }
		      } // Create an event handler for our fake event. We will synchronously
		      // dispatch our fake event using `dispatchEvent`. Inside the handler, we
		      // call the user-provided callback.


		      var funcArgs = Array.prototype.slice.call(arguments, 3);

		      function callCallback() {
		        didCall = true;
		        restoreAfterDispatch();
		        func.apply(context, funcArgs);
		        didError = false;
		      } // Create a global error event handler. We use this to capture the value
		      // that was thrown. It's possible that this error handler will fire more
		      // than once; for example, if non-React code also calls `dispatchEvent`
		      // and a handler for that event throws. We should be resilient to most of
		      // those cases. Even if our error event handler fires more than once, the
		      // last error event is always used. If the callback actually does error,
		      // we know that the last error event is the correct one, because it's not
		      // possible for anything else to have happened in between our callback
		      // erroring and the code that follows the `dispatchEvent` call below. If
		      // the callback doesn't error, but the error event was fired, we know to
		      // ignore it because `didError` will be false, as described above.


		      var error; // Use this to track whether the error event is ever called.

		      var didSetError = false;
		      var isCrossOriginError = false;

		      function handleWindowError(event) {
		        error = event.error;
		        didSetError = true;

		        if (error === null && event.colno === 0 && event.lineno === 0) {
		          isCrossOriginError = true;
		        }

		        if (event.defaultPrevented) {
		          // Some other error handler has prevented default.
		          // Browsers silence the error report if this happens.
		          // We'll remember this to later decide whether to log it or not.
		          if (error != null && typeof error === 'object') {
		            try {
		              error._suppressLogging = true;
		            } catch (inner) {// Ignore.
		            }
		          }
		        }
		      } // Create a fake event type.


		      var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers

		      window.addEventListener('error', handleWindowError);
		      fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
		      // errors, it will trigger our global error handler.

		      evt.initEvent(evtType, false, false);
		      fakeNode.dispatchEvent(evt);

		      if (windowEventDescriptor) {
		        Object.defineProperty(window, 'event', windowEventDescriptor);
		      }

		      if (didCall && didError) {
		        if (!didSetError) {
		          // The callback errored, but the error event never fired.
		          error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
		        } else if (isCrossOriginError) {
		          error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');
		        }

		        this.onError(error);
		      } // Remove our event listeners


		      window.removeEventListener('error', handleWindowError);

		      if (!didCall) {
		        // Something went really wrong, and our event was not dispatched.
		        // https://github.com/facebook/react/issues/16734
		        // https://github.com/facebook/react/issues/16585
		        // Fall back to the production implementation.
		        restoreAfterDispatch();
		        return invokeGuardedCallbackProd.apply(this, arguments);
		      }
		    };
		  }
		}

		var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;

		var hasError = false;
		var caughtError = null; // Used by event system to capture/rethrow the first error.

		var hasRethrowError = false;
		var rethrowError = null;
		var reporter = {
		  onError: function (error) {
		    hasError = true;
		    caughtError = error;
		  }
		};
		/**
		 * Call a function while guarding against errors that happens within it.
		 * Returns an error if it throws, otherwise null.
		 *
		 * In production, this is implemented using a try-catch. The reason we don't
		 * use a try-catch directly is so that we can swap out a different
		 * implementation in DEV mode.
		 *
		 * @param {String} name of the guard to use for logging or debugging
		 * @param {Function} func The function to invoke
		 * @param {*} context The context to use when calling the function
		 * @param {...*} args Arguments for function
		 */

		function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
		  hasError = false;
		  caughtError = null;
		  invokeGuardedCallbackImpl$1.apply(reporter, arguments);
		}
		/**
		 * Same as invokeGuardedCallback, but instead of returning an error, it stores
		 * it in a global so it can be rethrown by `rethrowCaughtError` later.
		 * TODO: See if caughtError and rethrowError can be unified.
		 *
		 * @param {String} name of the guard to use for logging or debugging
		 * @param {Function} func The function to invoke
		 * @param {*} context The context to use when calling the function
		 * @param {...*} args Arguments for function
		 */

		function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
		  invokeGuardedCallback.apply(this, arguments);

		  if (hasError) {
		    var error = clearCaughtError();

		    if (!hasRethrowError) {
		      hasRethrowError = true;
		      rethrowError = error;
		    }
		  }
		}
		/**
		 * During execution of guarded functions we will capture the first error which
		 * we will rethrow to be handled by the top level error handler.
		 */

		function rethrowCaughtError() {
		  if (hasRethrowError) {
		    var error = rethrowError;
		    hasRethrowError = false;
		    rethrowError = null;
		    throw error;
		  }
		}
		function hasCaughtError() {
		  return hasError;
		}
		function clearCaughtError() {
		  if (hasError) {
		    var error = caughtError;
		    hasError = false;
		    caughtError = null;
		    return error;
		  } else {
		    {
		      {
		        throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }
		  }
		}

		/**
		 * `ReactInstanceMap` maintains a mapping from a public facing stateful
		 * instance (key) and the internal representation (value). This allows public
		 * methods to accept the user facing instance as an argument and map them back
		 * to internal methods.
		 *
		 * Note that this module is currently shared and assumed to be stateless.
		 * If this becomes an actual Map, that will break.
		 */
		function get(key) {
		  return key._reactInternals;
		}
		function has(key) {
		  return key._reactInternals !== undefined;
		}
		function set(key, value) {
		  key._reactInternals = value;
		}

		// Don't change these two values. They're used by React Dev Tools.
		var NoFlags =
		/*                      */
		0;
		var PerformedWork =
		/*                */
		1; // You can change the rest (and add more).

		var Placement =
		/*                    */
		2;
		var Update =
		/*                       */
		4;
		var PlacementAndUpdate =
		/*           */
		6;
		var Deletion =
		/*                     */
		8;
		var ContentReset =
		/*                 */
		16;
		var Callback =
		/*                     */
		32;
		var DidCapture =
		/*                   */
		64;
		var Ref =
		/*                          */
		128;
		var Snapshot =
		/*                     */
		256;
		var Passive =
		/*                      */
		512; // TODO (effects) Remove this bit once the new reconciler is synced to the old.

		var PassiveUnmountPendingDev =
		/*     */
		8192;
		var Hydrating =
		/*                    */
		1024;
		var HydratingAndUpdate =
		/*           */
		1028; // Passive & Update & Callback & Ref & Snapshot

		var LifecycleEffectMask =
		/*          */
		932; // Union of all host effects

		var HostEffectMask =
		/*               */
		2047; // These are not really side effects, but we still reuse this field.

		var Incomplete =
		/*                   */
		2048;
		var ShouldCapture =
		/*                */
		4096;
		var ForceUpdateForLegacySuspense =
		/* */
		16384; // Static tags describe aspects of a fiber that are not specific to a render,

		var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
		function getNearestMountedFiber(fiber) {
		  var node = fiber;
		  var nearestMounted = fiber;

		  if (!fiber.alternate) {
		    // If there is no alternate, this might be a new tree that isn't inserted
		    // yet. If it is, then it will have a pending insertion effect on it.
		    var nextNode = node;

		    do {
		      node = nextNode;

		      if ((node.flags & (Placement | Hydrating)) !== NoFlags) {
		        // This is an insertion or in-progress hydration. The nearest possible
		        // mounted fiber is the parent but we need to continue to figure out
		        // if that one is still mounted.
		        nearestMounted = node.return;
		      }

		      nextNode = node.return;
		    } while (nextNode);
		  } else {
		    while (node.return) {
		      node = node.return;
		    }
		  }

		  if (node.tag === HostRoot) {
		    // TODO: Check if this was a nested HostRoot when used with
		    // renderContainerIntoSubtree.
		    return nearestMounted;
		  } // If we didn't hit the root, that means that we're in an disconnected tree
		  // that has been unmounted.


		  return null;
		}
		function getSuspenseInstanceFromFiber(fiber) {
		  if (fiber.tag === SuspenseComponent) {
		    var suspenseState = fiber.memoizedState;

		    if (suspenseState === null) {
		      var current = fiber.alternate;

		      if (current !== null) {
		        suspenseState = current.memoizedState;
		      }
		    }

		    if (suspenseState !== null) {
		      return suspenseState.dehydrated;
		    }
		  }

		  return null;
		}
		function getContainerFromFiber(fiber) {
		  return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
		}
		function isFiberMounted(fiber) {
		  return getNearestMountedFiber(fiber) === fiber;
		}
		function isMounted(component) {
		  {
		    var owner = ReactCurrentOwner.current;

		    if (owner !== null && owner.tag === ClassComponent) {
		      var ownerFiber = owner;
		      var instance = ownerFiber.stateNode;

		      if (!instance._warnedAboutRefsInRender) {
		        error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component');
		      }

		      instance._warnedAboutRefsInRender = true;
		    }
		  }

		  var fiber = get(component);

		  if (!fiber) {
		    return false;
		  }

		  return getNearestMountedFiber(fiber) === fiber;
		}

		function assertIsMounted(fiber) {
		  if (!(getNearestMountedFiber(fiber) === fiber)) {
		    {
		      throw Error( "Unable to find node on an unmounted component." );
		    }
		  }
		}

		function findCurrentFiberUsingSlowPath(fiber) {
		  var alternate = fiber.alternate;

		  if (!alternate) {
		    // If there is no alternate, then we only need to check if it is mounted.
		    var nearestMounted = getNearestMountedFiber(fiber);

		    if (!(nearestMounted !== null)) {
		      {
		        throw Error( "Unable to find node on an unmounted component." );
		      }
		    }

		    if (nearestMounted !== fiber) {
		      return null;
		    }

		    return fiber;
		  } // If we have two possible branches, we'll walk backwards up to the root
		  // to see what path the root points to. On the way we may hit one of the
		  // special cases and we'll deal with them.


		  var a = fiber;
		  var b = alternate;

		  while (true) {
		    var parentA = a.return;

		    if (parentA === null) {
		      // We're at the root.
		      break;
		    }

		    var parentB = parentA.alternate;

		    if (parentB === null) {
		      // There is no alternate. This is an unusual case. Currently, it only
		      // happens when a Suspense component is hidden. An extra fragment fiber
		      // is inserted in between the Suspense fiber and its children. Skip
		      // over this extra fragment fiber and proceed to the next parent.
		      var nextParent = parentA.return;

		      if (nextParent !== null) {
		        a = b = nextParent;
		        continue;
		      } // If there's no parent, we're at the root.


		      break;
		    } // If both copies of the parent fiber point to the same child, we can
		    // assume that the child is current. This happens when we bailout on low
		    // priority: the bailed out fiber's child reuses the current child.


		    if (parentA.child === parentB.child) {
		      var child = parentA.child;

		      while (child) {
		        if (child === a) {
		          // We've determined that A is the current branch.
		          assertIsMounted(parentA);
		          return fiber;
		        }

		        if (child === b) {
		          // We've determined that B is the current branch.
		          assertIsMounted(parentA);
		          return alternate;
		        }

		        child = child.sibling;
		      } // We should never have an alternate for any mounting node. So the only
		      // way this could possibly happen is if this was unmounted, if at all.


		      {
		        {
		          throw Error( "Unable to find node on an unmounted component." );
		        }
		      }
		    }

		    if (a.return !== b.return) {
		      // The return pointer of A and the return pointer of B point to different
		      // fibers. We assume that return pointers never criss-cross, so A must
		      // belong to the child set of A.return, and B must belong to the child
		      // set of B.return.
		      a = parentA;
		      b = parentB;
		    } else {
		      // The return pointers point to the same fiber. We'll have to use the
		      // default, slow path: scan the child sets of each parent alternate to see
		      // which child belongs to which set.
		      //
		      // Search parent A's child set
		      var didFindChild = false;
		      var _child = parentA.child;

		      while (_child) {
		        if (_child === a) {
		          didFindChild = true;
		          a = parentA;
		          b = parentB;
		          break;
		        }

		        if (_child === b) {
		          didFindChild = true;
		          b = parentA;
		          a = parentB;
		          break;
		        }

		        _child = _child.sibling;
		      }

		      if (!didFindChild) {
		        // Search parent B's child set
		        _child = parentB.child;

		        while (_child) {
		          if (_child === a) {
		            didFindChild = true;
		            a = parentB;
		            b = parentA;
		            break;
		          }

		          if (_child === b) {
		            didFindChild = true;
		            b = parentB;
		            a = parentA;
		            break;
		          }

		          _child = _child.sibling;
		        }

		        if (!didFindChild) {
		          {
		            throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
		          }
		        }
		      }
		    }

		    if (!(a.alternate === b)) {
		      {
		        throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }
		  } // If the root is not a host container, we're in a disconnected tree. I.e.
		  // unmounted.


		  if (!(a.tag === HostRoot)) {
		    {
		      throw Error( "Unable to find node on an unmounted component." );
		    }
		  }

		  if (a.stateNode.current === a) {
		    // We've determined that A is the current branch.
		    return fiber;
		  } // Otherwise B has to be current branch.


		  return alternate;
		}
		function findCurrentHostFiber(parent) {
		  var currentParent = findCurrentFiberUsingSlowPath(parent);

		  if (!currentParent) {
		    return null;
		  } // Next we'll drill down this component to find the first HostComponent/Text.


		  var node = currentParent;

		  while (true) {
		    if (node.tag === HostComponent || node.tag === HostText) {
		      return node;
		    } else if (node.child) {
		      node.child.return = node;
		      node = node.child;
		      continue;
		    }

		    if (node === currentParent) {
		      return null;
		    }

		    while (!node.sibling) {
		      if (!node.return || node.return === currentParent) {
		        return null;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  } // Flow needs the return null here, but ESLint complains about it.
		  // eslint-disable-next-line no-unreachable


		  return null;
		}
		function findCurrentHostFiberWithNoPortals(parent) {
		  var currentParent = findCurrentFiberUsingSlowPath(parent);

		  if (!currentParent) {
		    return null;
		  } // Next we'll drill down this component to find the first HostComponent/Text.


		  var node = currentParent;

		  while (true) {
		    if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
		      return node;
		    } else if (node.child && node.tag !== HostPortal) {
		      node.child.return = node;
		      node = node.child;
		      continue;
		    }

		    if (node === currentParent) {
		      return null;
		    }

		    while (!node.sibling) {
		      if (!node.return || node.return === currentParent) {
		        return null;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  } // Flow needs the return null here, but ESLint complains about it.
		  // eslint-disable-next-line no-unreachable


		  return null;
		}
		function doesFiberContain(parentFiber, childFiber) {
		  var node = childFiber;
		  var parentFiberAlternate = parentFiber.alternate;

		  while (node !== null) {
		    if (node === parentFiber || node === parentFiberAlternate) {
		      return true;
		    }

		    node = node.return;
		  }

		  return false;
		}

		var attemptUserBlockingHydration;
		function setAttemptUserBlockingHydration(fn) {
		  attemptUserBlockingHydration = fn;
		}
		var attemptContinuousHydration;
		function setAttemptContinuousHydration(fn) {
		  attemptContinuousHydration = fn;
		}
		var attemptHydrationAtCurrentPriority;
		function setAttemptHydrationAtCurrentPriority(fn) {
		  attemptHydrationAtCurrentPriority = fn;
		}
		var attemptHydrationAtPriority;
		function setAttemptHydrationAtPriority(fn) {
		  attemptHydrationAtPriority = fn;
		} // TODO: Upgrade this definition once we're on a newer version of Flow that
		var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.

		var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
		// if the last target was dehydrated.

		var queuedFocus = null;
		var queuedDrag = null;
		var queuedMouse = null; // For pointer events there can be one latest event per pointerId.

		var queuedPointers = new Map();
		var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.

		var queuedExplicitHydrationTargets = [];
		function hasQueuedDiscreteEvents() {
		  return queuedDiscreteEvents.length > 0;
		}
		var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase
		'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];
		function isReplayableDiscreteEvent(eventType) {
		  return discreteReplayableEvents.indexOf(eventType) > -1;
		}

		function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  return {
		    blockedOn: blockedOn,
		    domEventName: domEventName,
		    eventSystemFlags: eventSystemFlags | IS_REPLAYED,
		    nativeEvent: nativeEvent,
		    targetContainers: [targetContainer]
		  };
		}

		function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
		  queuedDiscreteEvents.push(queuedEvent);
		} // Resets the replaying for this type of continuous event to no event.

		function clearIfContinuousEvent(domEventName, nativeEvent) {
		  switch (domEventName) {
		    case 'focusin':
		    case 'focusout':
		      queuedFocus = null;
		      break;

		    case 'dragenter':
		    case 'dragleave':
		      queuedDrag = null;
		      break;

		    case 'mouseover':
		    case 'mouseout':
		      queuedMouse = null;
		      break;

		    case 'pointerover':
		    case 'pointerout':
		      {
		        var pointerId = nativeEvent.pointerId;
		        queuedPointers.delete(pointerId);
		        break;
		      }

		    case 'gotpointercapture':
		    case 'lostpointercapture':
		      {
		        var _pointerId = nativeEvent.pointerId;
		        queuedPointerCaptures.delete(_pointerId);
		        break;
		      }
		  }
		}

		function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
		    var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);

		    if (blockedOn !== null) {
		      var _fiber2 = getInstanceFromNode(blockedOn);

		      if (_fiber2 !== null) {
		        // Attempt to increase the priority of this target.
		        attemptContinuousHydration(_fiber2);
		      }
		    }

		    return queuedEvent;
		  } // If we have already queued this exact event, then it's because
		  // the different event systems have different DOM event listeners.
		  // We can accumulate the flags, and the targetContainers, and
		  // store a single event to be replayed.


		  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
		  var targetContainers = existingQueuedEvent.targetContainers;

		  if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {
		    targetContainers.push(targetContainer);
		  }

		  return existingQueuedEvent;
		}

		function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  // These set relatedTarget to null because the replayed event will be treated as if we
		  // moved from outside the window (no target) onto the target once it hydrates.
		  // Instead of mutating we could clone the event.
		  switch (domEventName) {
		    case 'focusin':
		      {
		        var focusEvent = nativeEvent;
		        queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);
		        return true;
		      }

		    case 'dragenter':
		      {
		        var dragEvent = nativeEvent;
		        queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);
		        return true;
		      }

		    case 'mouseover':
		      {
		        var mouseEvent = nativeEvent;
		        queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);
		        return true;
		      }

		    case 'pointerover':
		      {
		        var pointerEvent = nativeEvent;
		        var pointerId = pointerEvent.pointerId;
		        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));
		        return true;
		      }

		    case 'gotpointercapture':
		      {
		        var _pointerEvent = nativeEvent;
		        var _pointerId2 = _pointerEvent.pointerId;
		        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));
		        return true;
		      }
		  }

		  return false;
		} // Check if this target is unblocked. Returns true if it's unblocked.

		function attemptExplicitHydrationTarget(queuedTarget) {
		  // TODO: This function shares a lot of logic with attemptToDispatchEvent.
		  // Try to unify them. It's a bit tricky since it would require two return
		  // values.
		  var targetInst = getClosestInstanceFromNode(queuedTarget.target);

		  if (targetInst !== null) {
		    var nearestMounted = getNearestMountedFiber(targetInst);

		    if (nearestMounted !== null) {
		      var tag = nearestMounted.tag;

		      if (tag === SuspenseComponent) {
		        var instance = getSuspenseInstanceFromFiber(nearestMounted);

		        if (instance !== null) {
		          // We're blocked on hydrating this boundary.
		          // Increase its priority.
		          queuedTarget.blockedOn = instance;
		          attemptHydrationAtPriority(queuedTarget.lanePriority, function () {
		            Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
		              attemptHydrationAtCurrentPriority(nearestMounted);
		            });
		          });
		          return;
		        }
		      } else if (tag === HostRoot) {
		        var root = nearestMounted.stateNode;

		        if (root.hydrate) {
		          queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
		          // a root other than sync.

		          return;
		        }
		      }
		    }
		  }

		  queuedTarget.blockedOn = null;
		}

		function attemptReplayContinuousQueuedEvent(queuedEvent) {
		  if (queuedEvent.blockedOn !== null) {
		    return false;
		  }

		  var targetContainers = queuedEvent.targetContainers;

		  while (targetContainers.length > 0) {
		    var targetContainer = targetContainers[0];
		    var nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);

		    if (nextBlockedOn !== null) {
		      // We're still blocked. Try again later.
		      var _fiber3 = getInstanceFromNode(nextBlockedOn);

		      if (_fiber3 !== null) {
		        attemptContinuousHydration(_fiber3);
		      }

		      queuedEvent.blockedOn = nextBlockedOn;
		      return false;
		    } // This target container was successfully dispatched. Try the next.


		    targetContainers.shift();
		  }

		  return true;
		}

		function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
		  if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
		    map.delete(key);
		  }
		}

		function replayUnblockedEvents() {
		  hasScheduledReplayAttempt = false; // First replay discrete events.

		  while (queuedDiscreteEvents.length > 0) {
		    var nextDiscreteEvent = queuedDiscreteEvents[0];

		    if (nextDiscreteEvent.blockedOn !== null) {
		      // We're still blocked.
		      // Increase the priority of this boundary to unblock
		      // the next discrete event.
		      var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn);

		      if (_fiber4 !== null) {
		        attemptUserBlockingHydration(_fiber4);
		      }

		      break;
		    }

		    var targetContainers = nextDiscreteEvent.targetContainers;

		    while (targetContainers.length > 0) {
		      var targetContainer = targetContainers[0];
		      var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent);

		      if (nextBlockedOn !== null) {
		        // We're still blocked. Try again later.
		        nextDiscreteEvent.blockedOn = nextBlockedOn;
		        break;
		      } // This target container was successfully dispatched. Try the next.


		      targetContainers.shift();
		    }

		    if (nextDiscreteEvent.blockedOn === null) {
		      // We've successfully replayed the first event. Let's try the next one.
		      queuedDiscreteEvents.shift();
		    }
		  } // Next replay any continuous events.


		  if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
		    queuedFocus = null;
		  }

		  if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
		    queuedDrag = null;
		  }

		  if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
		    queuedMouse = null;
		  }

		  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
		  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
		}

		function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
		  if (queuedEvent.blockedOn === unblocked) {
		    queuedEvent.blockedOn = null;

		    if (!hasScheduledReplayAttempt) {
		      hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
		      // now unblocked. This first might not actually be unblocked yet.
		      // We could check it early to avoid scheduling an unnecessary callback.

		      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
		    }
		  }
		}

		function retryIfBlockedOn(unblocked) {
		  // Mark anything that was blocked on this as no longer blocked
		  // and eligible for a replay.
		  if (queuedDiscreteEvents.length > 0) {
		    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
		    // worth it because we expect very few discrete events to queue up and once
		    // we are actually fully unblocked it will be fast to replay them.

		    for (var i = 1; i < queuedDiscreteEvents.length; i++) {
		      var queuedEvent = queuedDiscreteEvents[i];

		      if (queuedEvent.blockedOn === unblocked) {
		        queuedEvent.blockedOn = null;
		      }
		    }
		  }

		  if (queuedFocus !== null) {
		    scheduleCallbackIfUnblocked(queuedFocus, unblocked);
		  }

		  if (queuedDrag !== null) {
		    scheduleCallbackIfUnblocked(queuedDrag, unblocked);
		  }

		  if (queuedMouse !== null) {
		    scheduleCallbackIfUnblocked(queuedMouse, unblocked);
		  }

		  var unblock = function (queuedEvent) {
		    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
		  };

		  queuedPointers.forEach(unblock);
		  queuedPointerCaptures.forEach(unblock);

		  for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
		    var queuedTarget = queuedExplicitHydrationTargets[_i];

		    if (queuedTarget.blockedOn === unblocked) {
		      queuedTarget.blockedOn = null;
		    }
		  }

		  while (queuedExplicitHydrationTargets.length > 0) {
		    var nextExplicitTarget = queuedExplicitHydrationTargets[0];

		    if (nextExplicitTarget.blockedOn !== null) {
		      // We're still blocked.
		      break;
		    } else {
		      attemptExplicitHydrationTarget(nextExplicitTarget);

		      if (nextExplicitTarget.blockedOn === null) {
		        // We're unblocked.
		        queuedExplicitHydrationTargets.shift();
		      }
		    }
		  }
		}

		var DiscreteEvent = 0;
		var UserBlockingEvent = 1;
		var ContinuousEvent = 2;

		/**
		 * Generate a mapping of standard vendor prefixes using the defined style property and event name.
		 *
		 * @param {string} styleProp
		 * @param {string} eventName
		 * @returns {object}
		 */

		function makePrefixMap(styleProp, eventName) {
		  var prefixes = {};
		  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
		  prefixes['Webkit' + styleProp] = 'webkit' + eventName;
		  prefixes['Moz' + styleProp] = 'moz' + eventName;
		  return prefixes;
		}
		/**
		 * A list of event names to a configurable list of vendor prefixes.
		 */


		var vendorPrefixes = {
		  animationend: makePrefixMap('Animation', 'AnimationEnd'),
		  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
		  animationstart: makePrefixMap('Animation', 'AnimationStart'),
		  transitionend: makePrefixMap('Transition', 'TransitionEnd')
		};
		/**
		 * Event names that have already been detected and prefixed (if applicable).
		 */

		var prefixedEventNames = {};
		/**
		 * Element to check for prefixes on.
		 */

		var style = {};
		/**
		 * Bootstrap if a DOM exists.
		 */

		if (canUseDOM) {
		  style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
		  // the un-prefixed "animation" and "transition" properties are defined on the
		  // style object but the events that fire will still be prefixed, so we need
		  // to check if the un-prefixed events are usable, and if not remove them from the map.

		  if (!('AnimationEvent' in window)) {
		    delete vendorPrefixes.animationend.animation;
		    delete vendorPrefixes.animationiteration.animation;
		    delete vendorPrefixes.animationstart.animation;
		  } // Same as above


		  if (!('TransitionEvent' in window)) {
		    delete vendorPrefixes.transitionend.transition;
		  }
		}
		/**
		 * Attempts to determine the correct vendor prefixed event name.
		 *
		 * @param {string} eventName
		 * @returns {string}
		 */


		function getVendorPrefixedEventName(eventName) {
		  if (prefixedEventNames[eventName]) {
		    return prefixedEventNames[eventName];
		  } else if (!vendorPrefixes[eventName]) {
		    return eventName;
		  }

		  var prefixMap = vendorPrefixes[eventName];

		  for (var styleProp in prefixMap) {
		    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
		      return prefixedEventNames[eventName] = prefixMap[styleProp];
		    }
		  }

		  return eventName;
		}

		var ANIMATION_END = getVendorPrefixedEventName('animationend');
		var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');
		var ANIMATION_START = getVendorPrefixedEventName('animationstart');
		var TRANSITION_END = getVendorPrefixedEventName('transitionend');

		var topLevelEventsToReactNames = new Map();
		var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
		// the code required to apply the same logic for event prioritization and that of the
		// SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
		// duplication (for which there would be quite a bit). For the events that are not needed
		// for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
		// array of top level events.
		// Lastly, we ignore prettier so we can keep the formatting sane.
		// prettier-ignore

		var discreteEventPairsForSimpleEventPlugin = ['cancel', 'cancel', 'click', 'click', 'close', 'close', 'contextmenu', 'contextMenu', 'copy', 'copy', 'cut', 'cut', 'auxclick', 'auxClick', 'dblclick', 'doubleClick', // Careful!
		'dragend', 'dragEnd', 'dragstart', 'dragStart', 'drop', 'drop', 'focusin', 'focus', // Careful!
		'focusout', 'blur', // Careful!
		'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'];
		var otherDiscreteEvents = ['change', 'selectionchange', 'textInput', 'compositionstart', 'compositionend', 'compositionupdate'];


		var userBlockingPairsForSimpleEventPlugin = ['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']; // prettier-ignore

		var continuousPairsForSimpleEventPlugin = ['abort', 'abort', ANIMATION_END, 'animationEnd', ANIMATION_ITERATION, 'animationIteration', ANIMATION_START, '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', TRANSITION_END, 'transitionEnd', 'waiting', 'waiting'];
		/**
		 * Turns
		 * ['abort', ...]
		 *
		 * into
		 *
		 * topLevelEventsToReactNames = new Map([
		 *   ['abort', 'onAbort'],
		 * ]);
		 *
		 * and registers them.
		 */

		function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) {
		  // As the event types are in pairs of two, we need to iterate
		  // through in twos. The events are in pairs of two to save code
		  // and improve init perf of processing this array, as it will
		  // result in far fewer object allocations and property accesses
		  // if we only use three arrays to process all the categories of
		  // instead of tuples.
		  for (var i = 0; i < eventTypes.length; i += 2) {
		    var topEvent = eventTypes[i];
		    var event = eventTypes[i + 1];
		    var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
		    var reactName = 'on' + capitalizedEvent;
		    eventPriorities.set(topEvent, priority);
		    topLevelEventsToReactNames.set(topEvent, reactName);
		    registerTwoPhaseEvent(reactName, [topEvent]);
		  }
		}

		function setEventPriorities(eventTypes, priority) {
		  for (var i = 0; i < eventTypes.length; i++) {
		    eventPriorities.set(eventTypes[i], priority);
		  }
		}

		function getEventPriorityForPluginSystem(domEventName) {
		  var priority = eventPriorities.get(domEventName); // Default to a ContinuousEvent. Note: we might
		  // want to warn if we can't detect the priority
		  // for the event.

		  return priority === undefined ? ContinuousEvent : priority;
		}
		function registerSimpleEvents() {
		  registerSimplePluginEventsAndSetTheirPriorities(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
		  registerSimplePluginEventsAndSetTheirPriorities(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
		  registerSimplePluginEventsAndSetTheirPriorities(continuousPairsForSimpleEventPlugin, ContinuousEvent);
		  setEventPriorities(otherDiscreteEvents, DiscreteEvent);
		}

		var Scheduler_now = Scheduler.unstable_now;

		{
		  // Provide explicit error message when production+profiling bundle of e.g.
		  // react-dom is used with production (non-profiling) bundle of
		  // scheduler/tracing
		  if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
		    {
		      throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
		    }
		  }
		}
		// ascending numbers so we can compare them like numbers. They start at 90 to
		// avoid clashing with Scheduler's priorities.

		var ImmediatePriority = 99;
		var UserBlockingPriority = 98;
		var NormalPriority = 97;
		var LowPriority = 96;
		var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.

		var NoPriority = 90;
		Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.

		var SyncLanePriority = 15;
		var SyncBatchedLanePriority = 14;
		var InputDiscreteHydrationLanePriority = 13;
		var InputDiscreteLanePriority = 12;
		var InputContinuousHydrationLanePriority = 11;
		var InputContinuousLanePriority = 10;
		var DefaultHydrationLanePriority = 9;
		var DefaultLanePriority = 8;
		var TransitionHydrationPriority = 7;
		var TransitionPriority = 6;
		var RetryLanePriority = 5;
		var SelectiveHydrationLanePriority = 4;
		var IdleHydrationLanePriority = 3;
		var IdleLanePriority = 2;
		var OffscreenLanePriority = 1;
		var NoLanePriority = 0;
		var TotalLanes = 31;
		var NoLanes =
		/*                        */
		0;
		var NoLane =
		/*                          */
		0;
		var SyncLane =
		/*                        */
		1;
		var SyncBatchedLane =
		/*                 */
		2;
		var InputDiscreteHydrationLane =
		/*      */
		4;
		var InputDiscreteLanes =
		/*                    */
		24;
		var InputContinuousHydrationLane =
		/*           */
		32;
		var InputContinuousLanes =
		/*                  */
		192;
		var DefaultHydrationLane =
		/*            */
		256;
		var DefaultLanes =
		/*                   */
		3584;
		var TransitionHydrationLane =
		/*                */
		4096;
		var TransitionLanes =
		/*                       */
		4186112;
		var RetryLanes =
		/*                            */
		62914560;
		var SomeRetryLane =
		/*                  */
		33554432;
		var SelectiveHydrationLane =
		/*          */
		67108864;
		var NonIdleLanes =
		/*                                 */
		134217727;
		var IdleHydrationLane =
		/*               */
		134217728;
		var IdleLanes =
		/*                             */
		805306368;
		var OffscreenLane =
		/*                   */
		1073741824;
		var NoTimestamp = -1;
		function setCurrentUpdateLanePriority(newLanePriority) {
		} // "Registers" used to "return" multiple values
		// Used by getHighestPriorityLanes and getNextLanes:

		var return_highestLanePriority = DefaultLanePriority;

		function getHighestPriorityLanes(lanes) {
		  if ((SyncLane & lanes) !== NoLanes) {
		    return_highestLanePriority = SyncLanePriority;
		    return SyncLane;
		  }

		  if ((SyncBatchedLane & lanes) !== NoLanes) {
		    return_highestLanePriority = SyncBatchedLanePriority;
		    return SyncBatchedLane;
		  }

		  if ((InputDiscreteHydrationLane & lanes) !== NoLanes) {
		    return_highestLanePriority = InputDiscreteHydrationLanePriority;
		    return InputDiscreteHydrationLane;
		  }

		  var inputDiscreteLanes = InputDiscreteLanes & lanes;

		  if (inputDiscreteLanes !== NoLanes) {
		    return_highestLanePriority = InputDiscreteLanePriority;
		    return inputDiscreteLanes;
		  }

		  if ((lanes & InputContinuousHydrationLane) !== NoLanes) {
		    return_highestLanePriority = InputContinuousHydrationLanePriority;
		    return InputContinuousHydrationLane;
		  }

		  var inputContinuousLanes = InputContinuousLanes & lanes;

		  if (inputContinuousLanes !== NoLanes) {
		    return_highestLanePriority = InputContinuousLanePriority;
		    return inputContinuousLanes;
		  }

		  if ((lanes & DefaultHydrationLane) !== NoLanes) {
		    return_highestLanePriority = DefaultHydrationLanePriority;
		    return DefaultHydrationLane;
		  }

		  var defaultLanes = DefaultLanes & lanes;

		  if (defaultLanes !== NoLanes) {
		    return_highestLanePriority = DefaultLanePriority;
		    return defaultLanes;
		  }

		  if ((lanes & TransitionHydrationLane) !== NoLanes) {
		    return_highestLanePriority = TransitionHydrationPriority;
		    return TransitionHydrationLane;
		  }

		  var transitionLanes = TransitionLanes & lanes;

		  if (transitionLanes !== NoLanes) {
		    return_highestLanePriority = TransitionPriority;
		    return transitionLanes;
		  }

		  var retryLanes = RetryLanes & lanes;

		  if (retryLanes !== NoLanes) {
		    return_highestLanePriority = RetryLanePriority;
		    return retryLanes;
		  }

		  if (lanes & SelectiveHydrationLane) {
		    return_highestLanePriority = SelectiveHydrationLanePriority;
		    return SelectiveHydrationLane;
		  }

		  if ((lanes & IdleHydrationLane) !== NoLanes) {
		    return_highestLanePriority = IdleHydrationLanePriority;
		    return IdleHydrationLane;
		  }

		  var idleLanes = IdleLanes & lanes;

		  if (idleLanes !== NoLanes) {
		    return_highestLanePriority = IdleLanePriority;
		    return idleLanes;
		  }

		  if ((OffscreenLane & lanes) !== NoLanes) {
		    return_highestLanePriority = OffscreenLanePriority;
		    return OffscreenLane;
		  }

		  {
		    error('Should have found matching lanes. This is a bug in React.');
		  } // This shouldn't be reachable, but as a fallback, return the entire bitmask.


		  return_highestLanePriority = DefaultLanePriority;
		  return lanes;
		}

		function schedulerPriorityToLanePriority(schedulerPriorityLevel) {
		  switch (schedulerPriorityLevel) {
		    case ImmediatePriority:
		      return SyncLanePriority;

		    case UserBlockingPriority:
		      return InputContinuousLanePriority;

		    case NormalPriority:
		    case LowPriority:
		      // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.
		      return DefaultLanePriority;

		    case IdlePriority:
		      return IdleLanePriority;

		    default:
		      return NoLanePriority;
		  }
		}
		function lanePriorityToSchedulerPriority(lanePriority) {
		  switch (lanePriority) {
		    case SyncLanePriority:
		    case SyncBatchedLanePriority:
		      return ImmediatePriority;

		    case InputDiscreteHydrationLanePriority:
		    case InputDiscreteLanePriority:
		    case InputContinuousHydrationLanePriority:
		    case InputContinuousLanePriority:
		      return UserBlockingPriority;

		    case DefaultHydrationLanePriority:
		    case DefaultLanePriority:
		    case TransitionHydrationPriority:
		    case TransitionPriority:
		    case SelectiveHydrationLanePriority:
		    case RetryLanePriority:
		      return NormalPriority;

		    case IdleHydrationLanePriority:
		    case IdleLanePriority:
		    case OffscreenLanePriority:
		      return IdlePriority;

		    case NoLanePriority:
		      return NoPriority;

		    default:
		      {
		        {
		          throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
		        }
		      }

		  }
		}
		function getNextLanes(root, wipLanes) {
		  // Early bailout if there's no pending work left.
		  var pendingLanes = root.pendingLanes;

		  if (pendingLanes === NoLanes) {
		    return_highestLanePriority = NoLanePriority;
		    return NoLanes;
		  }

		  var nextLanes = NoLanes;
		  var nextLanePriority = NoLanePriority;
		  var expiredLanes = root.expiredLanes;
		  var suspendedLanes = root.suspendedLanes;
		  var pingedLanes = root.pingedLanes; // Check if any work has expired.

		  if (expiredLanes !== NoLanes) {
		    nextLanes = expiredLanes;
		    nextLanePriority = return_highestLanePriority = SyncLanePriority;
		  } else {
		    // Do not work on any idle work until all the non-idle work has finished,
		    // even if the work is suspended.
		    var nonIdlePendingLanes = pendingLanes & NonIdleLanes;

		    if (nonIdlePendingLanes !== NoLanes) {
		      var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;

		      if (nonIdleUnblockedLanes !== NoLanes) {
		        nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);
		        nextLanePriority = return_highestLanePriority;
		      } else {
		        var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;

		        if (nonIdlePingedLanes !== NoLanes) {
		          nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);
		          nextLanePriority = return_highestLanePriority;
		        }
		      }
		    } else {
		      // The only remaining work is Idle.
		      var unblockedLanes = pendingLanes & ~suspendedLanes;

		      if (unblockedLanes !== NoLanes) {
		        nextLanes = getHighestPriorityLanes(unblockedLanes);
		        nextLanePriority = return_highestLanePriority;
		      } else {
		        if (pingedLanes !== NoLanes) {
		          nextLanes = getHighestPriorityLanes(pingedLanes);
		          nextLanePriority = return_highestLanePriority;
		        }
		      }
		    }
		  }

		  if (nextLanes === NoLanes) {
		    // This should only be reachable if we're suspended
		    // TODO: Consider warning in this path if a fallback timer is not scheduled.
		    return NoLanes;
		  } // If there are higher priority lanes, we'll include them even if they
		  // are suspended.


		  nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes); // If we're already in the middle of a render, switching lanes will interrupt
		  // it and we'll lose our progress. We should only do this if the new lanes are
		  // higher priority.

		  if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't
		  // bother waiting until the root is complete.
		  (wipLanes & suspendedLanes) === NoLanes) {
		    getHighestPriorityLanes(wipLanes);
		    var wipLanePriority = return_highestLanePriority;

		    if (nextLanePriority <= wipLanePriority) {
		      return wipLanes;
		    } else {
		      return_highestLanePriority = nextLanePriority;
		    }
		  } // Check for entangled lanes and add them to the batch.
		  //
		  // A lane is said to be entangled with another when it's not allowed to render
		  // in a batch that does not also include the other lane. Typically we do this
		  // when multiple updates have the same source, and we only want to respond to
		  // the most recent event from that source.
		  //
		  // Note that we apply entanglements *after* checking for partial work above.
		  // This means that if a lane is entangled during an interleaved event while
		  // it's already rendering, we won't interrupt it. This is intentional, since
		  // entanglement is usually "best effort": we'll try our best to render the
		  // lanes in the same batch, but it's not worth throwing out partially
		  // completed work in order to do it.
		  //
		  // For those exceptions where entanglement is semantically important, like
		  // useMutableSource, we should ensure that there is no partial work at the
		  // time we apply the entanglement.


		  var entangledLanes = root.entangledLanes;

		  if (entangledLanes !== NoLanes) {
		    var entanglements = root.entanglements;
		    var lanes = nextLanes & entangledLanes;

		    while (lanes > 0) {
		      var index = pickArbitraryLaneIndex(lanes);
		      var lane = 1 << index;
		      nextLanes |= entanglements[index];
		      lanes &= ~lane;
		    }
		  }

		  return nextLanes;
		}
		function getMostRecentEventTime(root, lanes) {
		  var eventTimes = root.eventTimes;
		  var mostRecentEventTime = NoTimestamp;

		  while (lanes > 0) {
		    var index = pickArbitraryLaneIndex(lanes);
		    var lane = 1 << index;
		    var eventTime = eventTimes[index];

		    if (eventTime > mostRecentEventTime) {
		      mostRecentEventTime = eventTime;
		    }

		    lanes &= ~lane;
		  }

		  return mostRecentEventTime;
		}

		function computeExpirationTime(lane, currentTime) {
		  // TODO: Expiration heuristic is constant per lane, so could use a map.
		  getHighestPriorityLanes(lane);
		  var priority = return_highestLanePriority;

		  if (priority >= InputContinuousLanePriority) {
		    // User interactions should expire slightly more quickly.
		    //
		    // NOTE: This is set to the corresponding constant as in Scheduler.js. When
		    // we made it larger, a product metric in www regressed, suggesting there's
		    // a user interaction that's being starved by a series of synchronous
		    // updates. If that theory is correct, the proper solution is to fix the
		    // starvation. However, this scenario supports the idea that expiration
		    // times are an important safeguard when starvation does happen.
		    //
		    // Also note that, in the case of user input specifically, this will soon no
		    // longer be an issue because we plan to make user input synchronous by
		    // default (until you enter `startTransition`, of course.)
		    //
		    // If weren't planning to make these updates synchronous soon anyway, I
		    // would probably make this number a configurable parameter.
		    return currentTime + 250;
		  } else if (priority >= TransitionPriority) {
		    return currentTime + 5000;
		  } else {
		    // Anything idle priority or lower should never expire.
		    return NoTimestamp;
		  }
		}

		function markStarvedLanesAsExpired(root, currentTime) {
		  // TODO: This gets called every time we yield. We can optimize by storing
		  // the earliest expiration time on the root. Then use that to quickly bail out
		  // of this function.
		  var pendingLanes = root.pendingLanes;
		  var suspendedLanes = root.suspendedLanes;
		  var pingedLanes = root.pingedLanes;
		  var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their
		  // expiration time. If so, we'll assume the update is being starved and mark
		  // it as expired to force it to finish.

		  var lanes = pendingLanes;

		  while (lanes > 0) {
		    var index = pickArbitraryLaneIndex(lanes);
		    var lane = 1 << index;
		    var expirationTime = expirationTimes[index];

		    if (expirationTime === NoTimestamp) {
		      // Found a pending lane with no expiration time. If it's not suspended, or
		      // if it's pinged, assume it's CPU-bound. Compute a new expiration time
		      // using the current time.
		      if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {
		        // Assumes timestamps are monotonically increasing.
		        expirationTimes[index] = computeExpirationTime(lane, currentTime);
		      }
		    } else if (expirationTime <= currentTime) {
		      // This lane expired
		      root.expiredLanes |= lane;
		    }

		    lanes &= ~lane;
		  }
		} // This returns the highest priority pending lanes regardless of whether they
		function getLanesToRetrySynchronouslyOnError(root) {
		  var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;

		  if (everythingButOffscreen !== NoLanes) {
		    return everythingButOffscreen;
		  }

		  if (everythingButOffscreen & OffscreenLane) {
		    return OffscreenLane;
		  }

		  return NoLanes;
		}
		function returnNextLanesPriority() {
		  return return_highestLanePriority;
		}
		function includesNonIdleWork(lanes) {
		  return (lanes & NonIdleLanes) !== NoLanes;
		}
		function includesOnlyRetries(lanes) {
		  return (lanes & RetryLanes) === lanes;
		}
		function includesOnlyTransitions(lanes) {
		  return (lanes & TransitionLanes) === lanes;
		} // To ensure consistency across multiple updates in the same event, this should
		// be a pure function, so that it always returns the same lane for given inputs.

		function findUpdateLane(lanePriority, wipLanes) {
		  switch (lanePriority) {
		    case NoLanePriority:
		      break;

		    case SyncLanePriority:
		      return SyncLane;

		    case SyncBatchedLanePriority:
		      return SyncBatchedLane;

		    case InputDiscreteLanePriority:
		      {
		        var _lane = pickArbitraryLane(InputDiscreteLanes & ~wipLanes);

		        if (_lane === NoLane) {
		          // Shift to the next priority level
		          return findUpdateLane(InputContinuousLanePriority, wipLanes);
		        }

		        return _lane;
		      }

		    case InputContinuousLanePriority:
		      {
		        var _lane2 = pickArbitraryLane(InputContinuousLanes & ~wipLanes);

		        if (_lane2 === NoLane) {
		          // Shift to the next priority level
		          return findUpdateLane(DefaultLanePriority, wipLanes);
		        }

		        return _lane2;
		      }

		    case DefaultLanePriority:
		      {
		        var _lane3 = pickArbitraryLane(DefaultLanes & ~wipLanes);

		        if (_lane3 === NoLane) {
		          // If all the default lanes are already being worked on, look for a
		          // lane in the transition range.
		          _lane3 = pickArbitraryLane(TransitionLanes & ~wipLanes);

		          if (_lane3 === NoLane) {
		            // All the transition lanes are taken, too. This should be very
		            // rare, but as a last resort, pick a default lane. This will have
		            // the effect of interrupting the current work-in-progress render.
		            _lane3 = pickArbitraryLane(DefaultLanes);
		          }
		        }

		        return _lane3;
		      }

		    case TransitionPriority: // Should be handled by findTransitionLane instead

		    case RetryLanePriority:
		      // Should be handled by findRetryLane instead
		      break;

		    case IdleLanePriority:
		      var lane = pickArbitraryLane(IdleLanes & ~wipLanes);

		      if (lane === NoLane) {
		        lane = pickArbitraryLane(IdleLanes);
		      }

		      return lane;
		  }

		  {
		    {
		      throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
		    }
		  }
		} // To ensure consistency across multiple updates in the same event, this should
		// be pure function, so that it always returns the same lane for given inputs.

		function findTransitionLane(wipLanes, pendingLanes) {
		  // First look for lanes that are completely unclaimed, i.e. have no
		  // pending work.
		  var lane = pickArbitraryLane(TransitionLanes & ~pendingLanes);

		  if (lane === NoLane) {
		    // If all lanes have pending work, look for a lane that isn't currently
		    // being worked on.
		    lane = pickArbitraryLane(TransitionLanes & ~wipLanes);

		    if (lane === NoLane) {
		      // If everything is being worked on, pick any lane. This has the
		      // effect of interrupting the current work-in-progress.
		      lane = pickArbitraryLane(TransitionLanes);
		    }
		  }

		  return lane;
		} // To ensure consistency across multiple updates in the same event, this should
		// be pure function, so that it always returns the same lane for given inputs.

		function findRetryLane(wipLanes) {
		  // This is a fork of `findUpdateLane` designed specifically for Suspense
		  // "retries" — a special update that attempts to flip a Suspense boundary
		  // from its placeholder state to its primary/resolved state.
		  var lane = pickArbitraryLane(RetryLanes & ~wipLanes);

		  if (lane === NoLane) {
		    lane = pickArbitraryLane(RetryLanes);
		  }

		  return lane;
		}

		function getHighestPriorityLane(lanes) {
		  return lanes & -lanes;
		}

		function getLowestPriorityLane(lanes) {
		  // This finds the most significant non-zero bit.
		  var index = 31 - clz32(lanes);
		  return index < 0 ? NoLanes : 1 << index;
		}

		function getEqualOrHigherPriorityLanes(lanes) {
		  return (getLowestPriorityLane(lanes) << 1) - 1;
		}

		function pickArbitraryLane(lanes) {
		  // This wrapper function gets inlined. Only exists so to communicate that it
		  // doesn't matter which bit is selected; you can pick any bit without
		  // affecting the algorithms where its used. Here I'm using
		  // getHighestPriorityLane because it requires the fewest operations.
		  return getHighestPriorityLane(lanes);
		}

		function pickArbitraryLaneIndex(lanes) {
		  return 31 - clz32(lanes);
		}

		function laneToIndex(lane) {
		  return pickArbitraryLaneIndex(lane);
		}

		function includesSomeLane(a, b) {
		  return (a & b) !== NoLanes;
		}
		function isSubsetOfLanes(set, subset) {
		  return (set & subset) === subset;
		}
		function mergeLanes(a, b) {
		  return a | b;
		}
		function removeLanes(set, subset) {
		  return set & ~subset;
		} // Seems redundant, but it changes the type from a single lane (used for
		// updates) to a group of lanes (used for flushing work).

		function laneToLanes(lane) {
		  return lane;
		}
		function higherPriorityLane(a, b) {
		  // This works because the bit ranges decrease in priority as you go left.
		  return a !== NoLane && a < b ? a : b;
		}
		function createLaneMap(initial) {
		  // Intentionally pushing one by one.
		  // https://v8.dev/blog/elements-kinds#avoid-creating-holes
		  var laneMap = [];

		  for (var i = 0; i < TotalLanes; i++) {
		    laneMap.push(initial);
		  }

		  return laneMap;
		}
		function markRootUpdated(root, updateLane, eventTime) {
		  root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But
		  // it's not practical to try every single possible combination. We need a
		  // heuristic to decide which lanes to attempt to render, and in which batches.
		  // For now, we use the same heuristic as in the old ExpirationTimes model:
		  // retry any lane at equal or lower priority, but don't try updates at higher
		  // priority without also including the lower priority updates. This works well
		  // when considering updates across different priority levels, but isn't
		  // sufficient for updates within the same priority, since we want to treat
		  // those updates as parallel.
		  // Unsuspend any update at equal or lower priority.

		  var higherPriorityLanes = updateLane - 1; // Turns 0b1000 into 0b0111

		  root.suspendedLanes &= higherPriorityLanes;
		  root.pingedLanes &= higherPriorityLanes;
		  var eventTimes = root.eventTimes;
		  var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most
		  // recent event, and we assume time is monotonically increasing.

		  eventTimes[index] = eventTime;
		}
		function markRootSuspended(root, suspendedLanes) {
		  root.suspendedLanes |= suspendedLanes;
		  root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.

		  var expirationTimes = root.expirationTimes;
		  var lanes = suspendedLanes;

		  while (lanes > 0) {
		    var index = pickArbitraryLaneIndex(lanes);
		    var lane = 1 << index;
		    expirationTimes[index] = NoTimestamp;
		    lanes &= ~lane;
		  }
		}
		function markRootPinged(root, pingedLanes, eventTime) {
		  root.pingedLanes |= root.suspendedLanes & pingedLanes;
		}
		function markDiscreteUpdatesExpired(root) {
		  root.expiredLanes |= InputDiscreteLanes & root.pendingLanes;
		}
		function hasDiscreteLanes(lanes) {
		  return (lanes & InputDiscreteLanes) !== NoLanes;
		}
		function markRootMutableRead(root, updateLane) {
		  root.mutableReadLanes |= updateLane & root.pendingLanes;
		}
		function markRootFinished(root, remainingLanes) {
		  var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
		  root.pendingLanes = remainingLanes; // Let's try everything again

		  root.suspendedLanes = 0;
		  root.pingedLanes = 0;
		  root.expiredLanes &= remainingLanes;
		  root.mutableReadLanes &= remainingLanes;
		  root.entangledLanes &= remainingLanes;
		  var entanglements = root.entanglements;
		  var eventTimes = root.eventTimes;
		  var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work

		  var lanes = noLongerPendingLanes;

		  while (lanes > 0) {
		    var index = pickArbitraryLaneIndex(lanes);
		    var lane = 1 << index;
		    entanglements[index] = NoLanes;
		    eventTimes[index] = NoTimestamp;
		    expirationTimes[index] = NoTimestamp;
		    lanes &= ~lane;
		  }
		}
		function markRootEntangled(root, entangledLanes) {
		  root.entangledLanes |= entangledLanes;
		  var entanglements = root.entanglements;
		  var lanes = entangledLanes;

		  while (lanes > 0) {
		    var index = pickArbitraryLaneIndex(lanes);
		    var lane = 1 << index;
		    entanglements[index] |= entangledLanes;
		    lanes &= ~lane;
		  }
		}
		var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. Only used on lanes, so assume input is an integer.
		// Based on:
		// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32

		var log = Math.log;
		var LN2 = Math.LN2;

		function clz32Fallback(lanes) {
		  if (lanes === 0) {
		    return 32;
		  }

		  return 31 - (log(lanes) / LN2 | 0) | 0;
		}

		// Intentionally not named imports because Rollup would use dynamic dispatch for
		var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority,
		    runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?

		var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.
		// We'd like to remove this but it's not clear if this is safe.

		function setEnabled(enabled) {
		  _enabled = !!enabled;
		}
		function isEnabled() {
		  return _enabled;
		}
		function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {
		  var eventPriority = getEventPriorityForPluginSystem(domEventName);
		  var listenerWrapper;

		  switch (eventPriority) {
		    case DiscreteEvent:
		      listenerWrapper = dispatchDiscreteEvent;
		      break;

		    case UserBlockingEvent:
		      listenerWrapper = dispatchUserBlockingUpdate;
		      break;

		    case ContinuousEvent:
		    default:
		      listenerWrapper = dispatchEvent;
		      break;
		  }

		  return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
		}

		function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
		  {
		    flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
		  }

		  discreteUpdates(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent);
		}

		function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) {
		  {
		    runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent));
		  }
		}

		function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  if (!_enabled) {
		    return;
		  }

		  var allowReplay = true;

		  {
		    // TODO: replaying capture phase events is currently broken
		    // because we used to do it during top-level native bubble handlers
		    // but now we use different bubble and capture handlers.
		    // In eager mode, we attach capture listeners early, so we need
		    // to filter them out until we fix the logic to handle them correctly.
		    // This could've been outside the flag but I put it inside to reduce risk.
		    allowReplay = (eventSystemFlags & IS_CAPTURE_PHASE) === 0;
		  }

		  if (allowReplay && hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(domEventName)) {
		    // If we already have a queue of discrete events, and this is another discrete
		    // event, then we can't dispatch it regardless of its target, since they
		    // need to dispatch in order.
		    queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
		    domEventName, eventSystemFlags, targetContainer, nativeEvent);
		    return;
		  }

		  var blockedOn = attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);

		  if (blockedOn === null) {
		    // We successfully dispatched this event.
		    if (allowReplay) {
		      clearIfContinuousEvent(domEventName, nativeEvent);
		    }

		    return;
		  }

		  if (allowReplay) {
		    if (isReplayableDiscreteEvent(domEventName)) {
		      // This this to be replayed later once the target is available.
		      queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
		      return;
		    }

		    if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {
		      return;
		    } // We need to clear only if we didn't queue because
		    // queueing is accummulative.


		    clearIfContinuousEvent(domEventName, nativeEvent);
		  } // This is not replayable so we'll invoke it but without a target,
		  // in case the event system needs to trace it.


		  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);
		} // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.

		function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
		  // TODO: Warn if _enabled is false.
		  var nativeEventTarget = getEventTarget(nativeEvent);
		  var targetInst = getClosestInstanceFromNode(nativeEventTarget);

		  if (targetInst !== null) {
		    var nearestMounted = getNearestMountedFiber(targetInst);

		    if (nearestMounted === null) {
		      // This tree has been unmounted already. Dispatch without a target.
		      targetInst = null;
		    } else {
		      var tag = nearestMounted.tag;

		      if (tag === SuspenseComponent) {
		        var instance = getSuspenseInstanceFromFiber(nearestMounted);

		        if (instance !== null) {
		          // Queue the event to be replayed later. Abort dispatching since we
		          // don't want this event dispatched twice through the event system.
		          // TODO: If this is the first discrete event in the queue. Schedule an increased
		          // priority for this boundary.
		          return instance;
		        } // This shouldn't happen, something went wrong but to avoid blocking
		        // the whole system, dispatch the event without a target.
		        // TODO: Warn.


		        targetInst = null;
		      } else if (tag === HostRoot) {
		        var root = nearestMounted.stateNode;

		        if (root.hydrate) {
		          // If this happens during a replay something went wrong and it might block
		          // the whole system.
		          return getContainerFromFiber(nearestMounted);
		        }

		        targetInst = null;
		      } else if (nearestMounted !== targetInst) {
		        // If we get an event (ex: img onload) before committing that
		        // component's mount, ignore it for now (that is, treat it as if it was an
		        // event on a non-React tree). We might also consider queueing events and
		        // dispatching them after the mount.
		        targetInst = null;
		      }
		    }
		  }

		  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer); // We're not blocked on anything.

		  return null;
		}

		function addEventBubbleListener(target, eventType, listener) {
		  target.addEventListener(eventType, listener, false);
		  return listener;
		}
		function addEventCaptureListener(target, eventType, listener) {
		  target.addEventListener(eventType, listener, true);
		  return listener;
		}
		function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {
		  target.addEventListener(eventType, listener, {
		    capture: true,
		    passive: passive
		  });
		  return listener;
		}
		function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {
		  target.addEventListener(eventType, listener, {
		    passive: passive
		  });
		  return listener;
		}

		/**
		 * These variables store information about text content of a target node,
		 * allowing comparison of content before and after a given event.
		 *
		 * Identify the node where selection currently begins, then observe
		 * both its text content and its current position in the DOM. Since the
		 * browser may natively replace the target node during composition, we can
		 * use its position to find its replacement.
		 *
		 *
		 */
		var root = null;
		var startText = null;
		var fallbackText = null;
		function initialize(nativeEventTarget) {
		  root = nativeEventTarget;
		  startText = getText();
		  return true;
		}
		function reset() {
		  root = null;
		  startText = null;
		  fallbackText = null;
		}
		function getData() {
		  if (fallbackText) {
		    return fallbackText;
		  }

		  var start;
		  var startValue = startText;
		  var startLength = startValue.length;
		  var end;
		  var endValue = getText();
		  var endLength = endValue.length;

		  for (start = 0; start < startLength; start++) {
		    if (startValue[start] !== endValue[start]) {
		      break;
		    }
		  }

		  var minEnd = startLength - start;

		  for (end = 1; end <= minEnd; end++) {
		    if (startValue[startLength - end] !== endValue[endLength - end]) {
		      break;
		    }
		  }

		  var sliceTail = end > 1 ? 1 - end : undefined;
		  fallbackText = endValue.slice(start, sliceTail);
		  return fallbackText;
		}
		function getText() {
		  if ('value' in root) {
		    return root.value;
		  }

		  return root.textContent;
		}

		/**
		 * `charCode` represents the actual "character code" and is safe to use with
		 * `String.fromCharCode`. As such, only keys that correspond to printable
		 * characters produce a valid `charCode`, the only exception to this is Enter.
		 * The Tab-key is considered non-printable and does not have a `charCode`,
		 * presumably because it does not produce a tab-character in browsers.
		 *
		 * @param {object} nativeEvent Native browser event.
		 * @return {number} Normalized `charCode` property.
		 */
		function getEventCharCode(nativeEvent) {
		  var charCode;
		  var keyCode = nativeEvent.keyCode;

		  if ('charCode' in nativeEvent) {
		    charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.

		    if (charCode === 0 && keyCode === 13) {
		      charCode = 13;
		    }
		  } else {
		    // IE8 does not implement `charCode`, but `keyCode` has the correct value.
		    charCode = keyCode;
		  } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
		  // report Enter as charCode 10 when ctrl is pressed.


		  if (charCode === 10) {
		    charCode = 13;
		  } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
		  // Must not discard the (non-)printable Enter-key.


		  if (charCode >= 32 || charCode === 13) {
		    return charCode;
		  }

		  return 0;
		}

		function functionThatReturnsTrue() {
		  return true;
		}

		function functionThatReturnsFalse() {
		  return false;
		} // This is intentionally a factory so that we have different returned constructors.
		// If we had a single constructor, it would be megamorphic and engines would deopt.


		function createSyntheticEvent(Interface) {
		  /**
		   * Synthetic events are dispatched by event plugins, typically in response to a
		   * top-level event delegation handler.
		   *
		   * These systems should generally use pooling to reduce the frequency of garbage
		   * collection. The system should check `isPersistent` to determine whether the
		   * event should be released into the pool after being dispatched. Users that
		   * need a persisted event should invoke `persist`.
		   *
		   * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
		   * normalizing browser quirks. Subclasses do not necessarily have to implement a
		   * DOM interface; custom application-specific events can also subclass this.
		   */
		  function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
		    this._reactName = reactName;
		    this._targetInst = targetInst;
		    this.type = reactEventType;
		    this.nativeEvent = nativeEvent;
		    this.target = nativeEventTarget;
		    this.currentTarget = null;

		    for (var _propName in Interface) {
		      if (!Interface.hasOwnProperty(_propName)) {
		        continue;
		      }

		      var normalize = Interface[_propName];

		      if (normalize) {
		        this[_propName] = normalize(nativeEvent);
		      } else {
		        this[_propName] = nativeEvent[_propName];
		      }
		    }

		    var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;

		    if (defaultPrevented) {
		      this.isDefaultPrevented = functionThatReturnsTrue;
		    } else {
		      this.isDefaultPrevented = functionThatReturnsFalse;
		    }

		    this.isPropagationStopped = functionThatReturnsFalse;
		    return this;
		  }

		  _assign(SyntheticBaseEvent.prototype, {
		    preventDefault: function () {
		      this.defaultPrevented = true;
		      var event = this.nativeEvent;

		      if (!event) {
		        return;
		      }

		      if (event.preventDefault) {
		        event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE
		      } else if (typeof event.returnValue !== 'unknown') {
		        event.returnValue = false;
		      }

		      this.isDefaultPrevented = functionThatReturnsTrue;
		    },
		    stopPropagation: function () {
		      var event = this.nativeEvent;

		      if (!event) {
		        return;
		      }

		      if (event.stopPropagation) {
		        event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE
		      } else if (typeof event.cancelBubble !== 'unknown') {
		        // The ChangeEventPlugin registers a "propertychange" event for
		        // IE. This event does not support bubbling or cancelling, and
		        // any references to cancelBubble throw "Member not found".  A
		        // typeof check of "unknown" circumvents this issue (and is also
		        // IE specific).
		        event.cancelBubble = true;
		      }

		      this.isPropagationStopped = functionThatReturnsTrue;
		    },

		    /**
		     * We release all dispatched `SyntheticEvent`s after each event loop, adding
		     * them back into the pool. This allows a way to hold onto a reference that
		     * won't be added back into the pool.
		     */
		    persist: function () {// Modern event system doesn't use pooling.
		    },

		    /**
		     * Checks if this event should be released back into the pool.
		     *
		     * @return {boolean} True if this should not be released, false otherwise.
		     */
		    isPersistent: functionThatReturnsTrue
		  });

		  return SyntheticBaseEvent;
		}
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */


		var EventInterface = {
		  eventPhase: 0,
		  bubbles: 0,
		  cancelable: 0,
		  timeStamp: function (event) {
		    return event.timeStamp || Date.now();
		  },
		  defaultPrevented: 0,
		  isTrusted: 0
		};
		var SyntheticEvent = createSyntheticEvent(EventInterface);

		var UIEventInterface = _assign({}, EventInterface, {
		  view: 0,
		  detail: 0
		});

		var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
		var lastMovementX;
		var lastMovementY;
		var lastMouseEvent;

		function updateMouseMovementPolyfillState(event) {
		  if (event !== lastMouseEvent) {
		    if (lastMouseEvent && event.type === 'mousemove') {
		      lastMovementX = event.screenX - lastMouseEvent.screenX;
		      lastMovementY = event.screenY - lastMouseEvent.screenY;
		    } else {
		      lastMovementX = 0;
		      lastMovementY = 0;
		    }

		    lastMouseEvent = event;
		  }
		}
		/**
		 * @interface MouseEvent
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */


		var MouseEventInterface = _assign({}, UIEventInterface, {
		  screenX: 0,
		  screenY: 0,
		  clientX: 0,
		  clientY: 0,
		  pageX: 0,
		  pageY: 0,
		  ctrlKey: 0,
		  shiftKey: 0,
		  altKey: 0,
		  metaKey: 0,
		  getModifierState: getEventModifierState,
		  button: 0,
		  buttons: 0,
		  relatedTarget: function (event) {
		    if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;
		    return event.relatedTarget;
		  },
		  movementX: function (event) {
		    if ('movementX' in event) {
		      return event.movementX;
		    }

		    updateMouseMovementPolyfillState(event);
		    return lastMovementX;
		  },
		  movementY: function (event) {
		    if ('movementY' in event) {
		      return event.movementY;
		    } // Don't need to call updateMouseMovementPolyfillState() here
		    // because it's guaranteed to have already run when movementX
		    // was copied.


		    return lastMovementY;
		  }
		});

		var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
		/**
		 * @interface DragEvent
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */

		var DragEventInterface = _assign({}, MouseEventInterface, {
		  dataTransfer: 0
		});

		var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
		/**
		 * @interface FocusEvent
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */

		var FocusEventInterface = _assign({}, UIEventInterface, {
		  relatedTarget: 0
		});

		var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
		 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
		 */

		var AnimationEventInterface = _assign({}, EventInterface, {
		  animationName: 0,
		  elapsedTime: 0,
		  pseudoElement: 0
		});

		var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/clipboard-apis/
		 */

		var ClipboardEventInterface = _assign({}, EventInterface, {
		  clipboardData: function (event) {
		    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
		  }
		});

		var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
		 */

		var CompositionEventInterface = _assign({}, EventInterface, {
		  data: 0
		});

		var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
		 *      /#events-inputevents
		 */
		// Happens to share the same list for now.

		var SyntheticInputEvent = SyntheticCompositionEvent;
		/**
		 * Normalization of deprecated HTML5 `key` values
		 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
		 */

		var normalizeKey = {
		  Esc: 'Escape',
		  Spacebar: ' ',
		  Left: 'ArrowLeft',
		  Up: 'ArrowUp',
		  Right: 'ArrowRight',
		  Down: 'ArrowDown',
		  Del: 'Delete',
		  Win: 'OS',
		  Menu: 'ContextMenu',
		  Apps: 'ContextMenu',
		  Scroll: 'ScrollLock',
		  MozPrintableKey: 'Unidentified'
		};
		/**
		 * Translation from legacy `keyCode` to HTML5 `key`
		 * Only special keys supported, all others depend on keyboard layout or browser
		 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
		 */

		var translateToKey = {
		  '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'
		};
		/**
		 * @param {object} nativeEvent Native browser event.
		 * @return {string} Normalized `key` property.
		 */

		function getEventKey(nativeEvent) {
		  if (nativeEvent.key) {
		    // Normalize inconsistent values reported by browsers due to
		    // implementations of a working draft specification.
		    // FireFox implements `key` but returns `MozPrintableKey` for all
		    // printable characters (normalized to `Unidentified`), ignore it.
		    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;

		    if (key !== 'Unidentified') {
		      return key;
		    }
		  } // Browser does not implement `key`, polyfill as much of it as we can.


		  if (nativeEvent.type === 'keypress') {
		    var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
		    // thus be captured by `keypress`, no other non-printable key should.

		    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
		  }

		  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
		    // While user keyboard layout determines the actual meaning of each
		    // `keyCode` value, almost all function keys have a universal value.
		    return translateToKey[nativeEvent.keyCode] || 'Unidentified';
		  }

		  return '';
		}
		/**
		 * Translation from modifier key to the associated property in the event.
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
		 */


		var modifierKeyToProp = {
		  Alt: 'altKey',
		  Control: 'ctrlKey',
		  Meta: 'metaKey',
		  Shift: 'shiftKey'
		}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
		// getModifierState. If getModifierState is not supported, we map it to a set of
		// modifier keys exposed by the event. In this case, Lock-keys are not supported.

		function modifierStateGetter(keyArg) {
		  var syntheticEvent = this;
		  var nativeEvent = syntheticEvent.nativeEvent;

		  if (nativeEvent.getModifierState) {
		    return nativeEvent.getModifierState(keyArg);
		  }

		  var keyProp = modifierKeyToProp[keyArg];
		  return keyProp ? !!nativeEvent[keyProp] : false;
		}

		function getEventModifierState(nativeEvent) {
		  return modifierStateGetter;
		}
		/**
		 * @interface KeyboardEvent
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */


		var KeyboardEventInterface = _assign({}, UIEventInterface, {
		  key: getEventKey,
		  code: 0,
		  location: 0,
		  ctrlKey: 0,
		  shiftKey: 0,
		  altKey: 0,
		  metaKey: 0,
		  repeat: 0,
		  locale: 0,
		  getModifierState: getEventModifierState,
		  // Legacy Interface
		  charCode: function (event) {
		    // `charCode` is the result of a KeyPress event and represents the value of
		    // the actual printable character.
		    // KeyPress is deprecated, but its replacement is not yet final and not
		    // implemented in any major browser. Only KeyPress has charCode.
		    if (event.type === 'keypress') {
		      return getEventCharCode(event);
		    }

		    return 0;
		  },
		  keyCode: function (event) {
		    // `keyCode` is the result of a KeyDown/Up event and represents the value of
		    // physical keyboard key.
		    // The actual meaning of the value depends on the users' keyboard layout
		    // which cannot be detected. Assuming that it is a US keyboard layout
		    // provides a surprisingly accurate mapping for US and European users.
		    // Due to this, it is left to the user to implement at this time.
		    if (event.type === 'keydown' || event.type === 'keyup') {
		      return event.keyCode;
		    }

		    return 0;
		  },
		  which: function (event) {
		    // `which` is an alias for either `keyCode` or `charCode` depending on the
		    // type of the event.
		    if (event.type === 'keypress') {
		      return getEventCharCode(event);
		    }

		    if (event.type === 'keydown' || event.type === 'keyup') {
		      return event.keyCode;
		    }

		    return 0;
		  }
		});

		var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
		/**
		 * @interface PointerEvent
		 * @see http://www.w3.org/TR/pointerevents/
		 */

		var PointerEventInterface = _assign({}, MouseEventInterface, {
		  pointerId: 0,
		  width: 0,
		  height: 0,
		  pressure: 0,
		  tangentialPressure: 0,
		  tiltX: 0,
		  tiltY: 0,
		  twist: 0,
		  pointerType: 0,
		  isPrimary: 0
		});

		var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
		/**
		 * @interface TouchEvent
		 * @see http://www.w3.org/TR/touch-events/
		 */

		var TouchEventInterface = _assign({}, UIEventInterface, {
		  touches: 0,
		  targetTouches: 0,
		  changedTouches: 0,
		  altKey: 0,
		  metaKey: 0,
		  ctrlKey: 0,
		  shiftKey: 0,
		  getModifierState: getEventModifierState
		});

		var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
		/**
		 * @interface Event
		 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
		 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
		 */

		var TransitionEventInterface = _assign({}, EventInterface, {
		  propertyName: 0,
		  elapsedTime: 0,
		  pseudoElement: 0
		});

		var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
		/**
		 * @interface WheelEvent
		 * @see http://www.w3.org/TR/DOM-Level-3-Events/
		 */

		var WheelEventInterface = _assign({}, MouseEventInterface, {
		  deltaX: function (event) {
		    return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
		    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
		  },
		  deltaY: function (event) {
		    return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
		    'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
		    'wheelDelta' in event ? -event.wheelDelta : 0;
		  },
		  deltaZ: 0,
		  // Browsers without "deltaMode" is reporting in raw wheel delta where one
		  // notch on the scroll is always +/- 120, roughly equivalent to pixels.
		  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
		  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
		  deltaMode: 0
		});

		var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);

		var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space

		var START_KEYCODE = 229;
		var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
		var documentMode = null;

		if (canUseDOM && 'documentMode' in document) {
		  documentMode = document.documentMode;
		} // Webkit offers a very useful `textInput` event that can be used to
		// directly represent `beforeInput`. The IE `textinput` event is not as
		// useful, so we don't use it.


		var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
		// by the native compositionend event may be incorrect. Japanese ideographic
		// spaces, for instance (\u3000) are not recorded correctly.

		var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
		var SPACEBAR_CODE = 32;
		var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);

		function registerEvents() {
		  registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);
		  registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
		  registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
		  registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
		} // Track whether we've ever handled a keypress on the space key.


		var hasSpaceKeypress = false;
		/**
		 * Return whether a native keypress event is assumed to be a command.
		 * This is required because Firefox fires `keypress` events for key commands
		 * (cut, copy, select-all, etc.) even though no character is inserted.
		 */

		function isKeypressCommand(nativeEvent) {
		  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
		  !(nativeEvent.ctrlKey && nativeEvent.altKey);
		}
		/**
		 * Translate native top level events into event types.
		 */


		function getCompositionEventType(domEventName) {
		  switch (domEventName) {
		    case 'compositionstart':
		      return 'onCompositionStart';

		    case 'compositionend':
		      return 'onCompositionEnd';

		    case 'compositionupdate':
		      return 'onCompositionUpdate';
		  }
		}
		/**
		 * Does our fallback best-guess model think this event signifies that
		 * composition has begun?
		 */


		function isFallbackCompositionStart(domEventName, nativeEvent) {
		  return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;
		}
		/**
		 * Does our fallback mode think that this event is the end of composition?
		 */


		function isFallbackCompositionEnd(domEventName, nativeEvent) {
		  switch (domEventName) {
		    case 'keyup':
		      // Command keys insert or clear IME input.
		      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;

		    case 'keydown':
		      // Expect IME keyCode on each keydown. If we get any other
		      // code we must have exited earlier.
		      return nativeEvent.keyCode !== START_KEYCODE;

		    case 'keypress':
		    case 'mousedown':
		    case 'focusout':
		      // Events are not possible without cancelling IME.
		      return true;

		    default:
		      return false;
		  }
		}
		/**
		 * Google Input Tools provides composition data via a CustomEvent,
		 * with the `data` property populated in the `detail` object. If this
		 * is available on the event object, use it. If not, this is a plain
		 * composition event and we have nothing special to extract.
		 *
		 * @param {object} nativeEvent
		 * @return {?string}
		 */


		function getDataFromCustomEvent(nativeEvent) {
		  var detail = nativeEvent.detail;

		  if (typeof detail === 'object' && 'data' in detail) {
		    return detail.data;
		  }

		  return null;
		}
		/**
		 * Check if a composition event was triggered by Korean IME.
		 * Our fallback mode does not work well with IE's Korean IME,
		 * so just use native composition events when Korean IME is used.
		 * Although CompositionEvent.locale property is deprecated,
		 * it is available in IE, where our fallback mode is enabled.
		 *
		 * @param {object} nativeEvent
		 * @return {boolean}
		 */


		function isUsingKoreanIME(nativeEvent) {
		  return nativeEvent.locale === 'ko';
		} // Track the current IME composition status, if any.


		var isComposing = false;
		/**
		 * @return {?object} A SyntheticCompositionEvent.
		 */

		function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
		  var eventType;
		  var fallbackData;

		  if (canUseCompositionEvent) {
		    eventType = getCompositionEventType(domEventName);
		  } else if (!isComposing) {
		    if (isFallbackCompositionStart(domEventName, nativeEvent)) {
		      eventType = 'onCompositionStart';
		    }
		  } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {
		    eventType = 'onCompositionEnd';
		  }

		  if (!eventType) {
		    return null;
		  }

		  if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
		    // The current composition is stored statically and must not be
		    // overwritten while composition continues.
		    if (!isComposing && eventType === 'onCompositionStart') {
		      isComposing = initialize(nativeEventTarget);
		    } else if (eventType === 'onCompositionEnd') {
		      if (isComposing) {
		        fallbackData = getData();
		      }
		    }
		  }

		  var listeners = accumulateTwoPhaseListeners(targetInst, eventType);

		  if (listeners.length > 0) {
		    var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
		    dispatchQueue.push({
		      event: event,
		      listeners: listeners
		    });

		    if (fallbackData) {
		      // Inject data generated from fallback path into the synthetic event.
		      // This matches the property of native CompositionEventInterface.
		      event.data = fallbackData;
		    } else {
		      var customData = getDataFromCustomEvent(nativeEvent);

		      if (customData !== null) {
		        event.data = customData;
		      }
		    }
		  }
		}

		function getNativeBeforeInputChars(domEventName, nativeEvent) {
		  switch (domEventName) {
		    case 'compositionend':
		      return getDataFromCustomEvent(nativeEvent);

		    case 'keypress':
		      /**
		       * If native `textInput` events are available, our goal is to make
		       * use of them. However, there is a special case: the spacebar key.
		       * In Webkit, preventing default on a spacebar `textInput` event
		       * cancels character insertion, but it *also* causes the browser
		       * to fall back to its default spacebar behavior of scrolling the
		       * page.
		       *
		       * Tracking at:
		       * https://code.google.com/p/chromium/issues/detail?id=355103
		       *
		       * To avoid this issue, use the keypress event as if no `textInput`
		       * event is available.
		       */
		      var which = nativeEvent.which;

		      if (which !== SPACEBAR_CODE) {
		        return null;
		      }

		      hasSpaceKeypress = true;
		      return SPACEBAR_CHAR;

		    case 'textInput':
		      // Record the characters to be added to the DOM.
		      var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
		      // it at the keypress level and bail immediately. Android Chrome
		      // doesn't give us keycodes, so we need to ignore it.

		      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
		        return null;
		      }

		      return chars;

		    default:
		      // For other native event types, do nothing.
		      return null;
		  }
		}
		/**
		 * For browsers that do not provide the `textInput` event, extract the
		 * appropriate string to use for SyntheticInputEvent.
		 */


		function getFallbackBeforeInputChars(domEventName, nativeEvent) {
		  // If we are currently composing (IME) and using a fallback to do so,
		  // try to extract the composed characters from the fallback object.
		  // If composition event is available, we extract a string only at
		  // compositionevent, otherwise extract it at fallback events.
		  if (isComposing) {
		    if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
		      var chars = getData();
		      reset();
		      isComposing = false;
		      return chars;
		    }

		    return null;
		  }

		  switch (domEventName) {
		    case 'paste':
		      // If a paste event occurs after a keypress, throw out the input
		      // chars. Paste events should not lead to BeforeInput events.
		      return null;

		    case 'keypress':
		      /**
		       * As of v27, Firefox may fire keypress events even when no character
		       * will be inserted. A few possibilities:
		       *
		       * - `which` is `0`. Arrow keys, Esc key, etc.
		       *
		       * - `which` is the pressed key code, but no char is available.
		       *   Ex: 'AltGr + d` in Polish. There is no modified character for
		       *   this key combination and no character is inserted into the
		       *   document, but FF fires the keypress for char code `100` anyway.
		       *   No `input` event will occur.
		       *
		       * - `which` is the pressed key code, but a command combination is
		       *   being used. Ex: `Cmd+C`. No character is inserted, and no
		       *   `input` event will occur.
		       */
		      if (!isKeypressCommand(nativeEvent)) {
		        // IE fires the `keypress` event when a user types an emoji via
		        // Touch keyboard of Windows.  In such a case, the `char` property
		        // holds an emoji character like `\uD83D\uDE0A`.  Because its length
		        // is 2, the property `which` does not represent an emoji correctly.
		        // In such a case, we directly return the `char` property instead of
		        // using `which`.
		        if (nativeEvent.char && nativeEvent.char.length > 1) {
		          return nativeEvent.char;
		        } else if (nativeEvent.which) {
		          return String.fromCharCode(nativeEvent.which);
		        }
		      }

		      return null;

		    case 'compositionend':
		      return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;

		    default:
		      return null;
		  }
		}
		/**
		 * Extract a SyntheticInputEvent for `beforeInput`, based on either native
		 * `textInput` or fallback behavior.
		 *
		 * @return {?object} A SyntheticInputEvent.
		 */


		function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
		  var chars;

		  if (canUseTextInputEvent) {
		    chars = getNativeBeforeInputChars(domEventName, nativeEvent);
		  } else {
		    chars = getFallbackBeforeInputChars(domEventName, nativeEvent);
		  } // If no characters are being inserted, no BeforeInput event should
		  // be fired.


		  if (!chars) {
		    return null;
		  }

		  var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');

		  if (listeners.length > 0) {
		    var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);
		    dispatchQueue.push({
		      event: event,
		      listeners: listeners
		    });
		    event.data = chars;
		  }
		}
		/**
		 * Create an `onBeforeInput` event to match
		 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
		 *
		 * This event plugin is based on the native `textInput` event
		 * available in Chrome, Safari, Opera, and IE. This event fires after
		 * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
		 *
		 * `beforeInput` is spec'd but not implemented in any browsers, and
		 * the `input` event does not provide any useful information about what has
		 * actually been added, contrary to the spec. Thus, `textInput` is the best
		 * available event to identify the characters that have actually been inserted
		 * into the target node.
		 *
		 * This plugin is also responsible for emitting `composition` events, thus
		 * allowing us to share composition fallback code for both `beforeInput` and
		 * `composition` event types.
		 */


		function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
		  extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
		  extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
		}

		/**
		 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
		 */
		var supportedInputTypes = {
		  color: true,
		  date: true,
		  datetime: true,
		  'datetime-local': true,
		  email: true,
		  month: true,
		  number: true,
		  password: true,
		  range: true,
		  search: true,
		  tel: true,
		  text: true,
		  time: true,
		  url: true,
		  week: true
		};

		function isTextInputElement(elem) {
		  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();

		  if (nodeName === 'input') {
		    return !!supportedInputTypes[elem.type];
		  }

		  if (nodeName === 'textarea') {
		    return true;
		  }

		  return false;
		}

		/**
		 * Checks if an event is supported in the current execution environment.
		 *
		 * NOTE: This will not work correctly for non-generic events such as `change`,
		 * `reset`, `load`, `error`, and `select`.
		 *
		 * Borrows from Modernizr.
		 *
		 * @param {string} eventNameSuffix Event name, e.g. "click".
		 * @return {boolean} True if the event is supported.
		 * @internal
		 * @license Modernizr 3.0.0pre (Custom Build) | MIT
		 */

		function isEventSupported(eventNameSuffix) {
		  if (!canUseDOM) {
		    return false;
		  }

		  var eventName = 'on' + eventNameSuffix;
		  var isSupported = (eventName in document);

		  if (!isSupported) {
		    var element = document.createElement('div');
		    element.setAttribute(eventName, 'return;');
		    isSupported = typeof element[eventName] === 'function';
		  }

		  return isSupported;
		}

		function registerEvents$1() {
		  registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);
		}

		function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
		  // Flag this event loop as needing state restore.
		  enqueueStateRestore(target);
		  var listeners = accumulateTwoPhaseListeners(inst, 'onChange');

		  if (listeners.length > 0) {
		    var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);
		    dispatchQueue.push({
		      event: event,
		      listeners: listeners
		    });
		  }
		}
		/**
		 * For IE shims
		 */


		var activeElement = null;
		var activeElementInst = null;
		/**
		 * SECTION: handle `change` event
		 */

		function shouldUseChangeEvent(elem) {
		  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
		  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
		}

		function manualDispatchChangeEvent(nativeEvent) {
		  var dispatchQueue = [];
		  createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
		  // other events and have it go through ReactBrowserEventEmitter. Since it
		  // doesn't, we manually listen for the events and so we have to enqueue and
		  // process the abstract event manually.
		  //
		  // Batching is necessary here in order to ensure that all event handlers run
		  // before the next rerender (including event handlers attached to ancestor
		  // elements instead of directly on the input). Without this, controlled
		  // components don't work properly in conjunction with event bubbling because
		  // the component is rerendered and the value reverted before all the event
		  // handlers can run. See https://github.com/facebook/react/issues/708.

		  batchedUpdates(runEventInBatch, dispatchQueue);
		}

		function runEventInBatch(dispatchQueue) {
		  processDispatchQueue(dispatchQueue, 0);
		}

		function getInstIfValueChanged(targetInst) {
		  var targetNode = getNodeFromInstance(targetInst);

		  if (updateValueIfChanged(targetNode)) {
		    return targetInst;
		  }
		}

		function getTargetInstForChangeEvent(domEventName, targetInst) {
		  if (domEventName === 'change') {
		    return targetInst;
		  }
		}
		/**
		 * SECTION: handle `input` event
		 */


		var isInputEventSupported = false;

		if (canUseDOM) {
		  // IE9 claims to support the input event but fails to trigger it when
		  // deleting text, so we ignore its input events.
		  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
		}
		/**
		 * (For IE <=9) Starts tracking propertychange events on the passed-in element
		 * and override the value property so that we can distinguish user events from
		 * value changes in JS.
		 */


		function startWatchingForValueChange(target, targetInst) {
		  activeElement = target;
		  activeElementInst = targetInst;
		  activeElement.attachEvent('onpropertychange', handlePropertyChange);
		}
		/**
		 * (For IE <=9) Removes the event listeners from the currently-tracked element,
		 * if any exists.
		 */


		function stopWatchingForValueChange() {
		  if (!activeElement) {
		    return;
		  }

		  activeElement.detachEvent('onpropertychange', handlePropertyChange);
		  activeElement = null;
		  activeElementInst = null;
		}
		/**
		 * (For IE <=9) Handles a propertychange event, sending a `change` event if
		 * the value of the active element has changed.
		 */


		function handlePropertyChange(nativeEvent) {
		  if (nativeEvent.propertyName !== 'value') {
		    return;
		  }

		  if (getInstIfValueChanged(activeElementInst)) {
		    manualDispatchChangeEvent(nativeEvent);
		  }
		}

		function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
		  if (domEventName === 'focusin') {
		    // In IE9, propertychange fires for most input events but is buggy and
		    // doesn't fire when text is deleted, but conveniently, selectionchange
		    // appears to fire in all of the remaining cases so we catch those and
		    // forward the event if the value has changed
		    // In either case, we don't want to call the event handler if the value
		    // is changed from JS so we redefine a setter for `.value` that updates
		    // our activeElementValue variable, allowing us to ignore those changes
		    //
		    // stopWatching() should be a noop here but we call it just in case we
		    // missed a blur event somehow.
		    stopWatchingForValueChange();
		    startWatchingForValueChange(target, targetInst);
		  } else if (domEventName === 'focusout') {
		    stopWatchingForValueChange();
		  }
		} // For IE8 and IE9.


		function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
		  if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {
		    // On the selectionchange event, the target is just document which isn't
		    // helpful for us so just check activeElement instead.
		    //
		    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
		    // propertychange on the first input event after setting `value` from a
		    // script and fires only keydown, keypress, keyup. Catching keyup usually
		    // gets it and catching keydown lets us fire an event for the first
		    // keystroke if user does a key repeat (it'll be a little delayed: right
		    // before the second keystroke). Other input methods (e.g., paste) seem to
		    // fire selectionchange normally.
		    return getInstIfValueChanged(activeElementInst);
		  }
		}
		/**
		 * SECTION: handle `click` event
		 */


		function shouldUseClickEvent(elem) {
		  // Use the `click` event to detect changes to checkbox and radio inputs.
		  // This approach works across all browsers, whereas `change` does not fire
		  // until `blur` in IE8.
		  var nodeName = elem.nodeName;
		  return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
		}

		function getTargetInstForClickEvent(domEventName, targetInst) {
		  if (domEventName === 'click') {
		    return getInstIfValueChanged(targetInst);
		  }
		}

		function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
		  if (domEventName === 'input' || domEventName === 'change') {
		    return getInstIfValueChanged(targetInst);
		  }
		}

		function handleControlledInputBlur(node) {
		  var state = node._wrapperState;

		  if (!state || !state.controlled || node.type !== 'number') {
		    return;
		  }

		  {
		    // If controlled, assign the value attribute to the current value on blur
		    setDefaultValue(node, 'number', node.value);
		  }
		}
		/**
		 * This plugin creates an `onChange` event that normalizes change events
		 * across form elements. This event fires at a time when it's possible to
		 * change the element's value without seeing a flicker.
		 *
		 * Supported elements are:
		 * - input (see `isTextInputElement`)
		 * - textarea
		 * - select
		 */


		function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
		  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
		  var getTargetInstFunc, handleEventFunc;

		  if (shouldUseChangeEvent(targetNode)) {
		    getTargetInstFunc = getTargetInstForChangeEvent;
		  } else if (isTextInputElement(targetNode)) {
		    if (isInputEventSupported) {
		      getTargetInstFunc = getTargetInstForInputOrChangeEvent;
		    } else {
		      getTargetInstFunc = getTargetInstForInputEventPolyfill;
		      handleEventFunc = handleEventsForInputEventPolyfill;
		    }
		  } else if (shouldUseClickEvent(targetNode)) {
		    getTargetInstFunc = getTargetInstForClickEvent;
		  }

		  if (getTargetInstFunc) {
		    var inst = getTargetInstFunc(domEventName, targetInst);

		    if (inst) {
		      createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
		      return;
		    }
		  }

		  if (handleEventFunc) {
		    handleEventFunc(domEventName, targetNode, targetInst);
		  } // When blurring, set the value attribute for number inputs


		  if (domEventName === 'focusout') {
		    handleControlledInputBlur(targetNode);
		  }
		}

		function registerEvents$2() {
		  registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);
		  registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);
		  registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);
		  registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);
		}
		/**
		 * For almost every interaction we care about, there will be both a top-level
		 * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
		 * we do not extract duplicate events. However, moving the mouse into the
		 * browser from outside will not fire a `mouseout` event. In this case, we use
		 * the `mouseover` top-level event.
		 */


		function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
		  var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';
		  var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';

		  if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0) {
		    // If this is an over event with a target, we might have already dispatched
		    // the event in the out event of the other target. If this is replayed,
		    // then it's because we couldn't dispatch against this target previously
		    // so we have to do it now instead.
		    var related = nativeEvent.relatedTarget || nativeEvent.fromElement;

		    if (related) {
		      // If the related node is managed by React, we can assume that we have
		      // already dispatched the corresponding events during its mouseout.
		      if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {
		        return;
		      }
		    }
		  }

		  if (!isOutEvent && !isOverEvent) {
		    // Must not be a mouse or pointer in or out - ignoring.
		    return;
		  }

		  var win; // TODO: why is this nullable in the types but we read from it?

		  if (nativeEventTarget.window === nativeEventTarget) {
		    // `nativeEventTarget` is probably a window object.
		    win = nativeEventTarget;
		  } else {
		    // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
		    var doc = nativeEventTarget.ownerDocument;

		    if (doc) {
		      win = doc.defaultView || doc.parentWindow;
		    } else {
		      win = window;
		    }
		  }

		  var from;
		  var to;

		  if (isOutEvent) {
		    var _related = nativeEvent.relatedTarget || nativeEvent.toElement;

		    from = targetInst;
		    to = _related ? getClosestInstanceFromNode(_related) : null;

		    if (to !== null) {
		      var nearestMounted = getNearestMountedFiber(to);

		      if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
		        to = null;
		      }
		    }
		  } else {
		    // Moving to a node from outside the window.
		    from = null;
		    to = targetInst;
		  }

		  if (from === to) {
		    // Nothing pertains to our managed components.
		    return;
		  }

		  var SyntheticEventCtor = SyntheticMouseEvent;
		  var leaveEventType = 'onMouseLeave';
		  var enterEventType = 'onMouseEnter';
		  var eventTypePrefix = 'mouse';

		  if (domEventName === 'pointerout' || domEventName === 'pointerover') {
		    SyntheticEventCtor = SyntheticPointerEvent;
		    leaveEventType = 'onPointerLeave';
		    enterEventType = 'onPointerEnter';
		    eventTypePrefix = 'pointer';
		  }

		  var fromNode = from == null ? win : getNodeFromInstance(from);
		  var toNode = to == null ? win : getNodeFromInstance(to);
		  var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);
		  leave.target = fromNode;
		  leave.relatedTarget = toNode;
		  var enter = null; // We should only process this nativeEvent if we are processing
		  // the first ancestor. Next time, we will ignore the event.

		  var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);

		  if (nativeTargetInst === targetInst) {
		    var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);
		    enterEvent.target = toNode;
		    enterEvent.relatedTarget = fromNode;
		    enter = enterEvent;
		  }

		  accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
		}

		/**
		 * inlined Object.is polyfill to avoid requiring consumers ship their own
		 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
		 */
		function is(x, y) {
		  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
		  ;
		}

		var objectIs = typeof Object.is === 'function' ? Object.is : is;

		var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
		/**
		 * Performs equality by iterating through keys on an object and returning false
		 * when any key has values which are not strictly equal between the arguments.
		 * Returns true when the values of all keys are strictly equal.
		 */

		function shallowEqual(objA, objB) {
		  if (objectIs(objA, objB)) {
		    return true;
		  }

		  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
		    return false;
		  }

		  var keysA = Object.keys(objA);
		  var keysB = Object.keys(objB);

		  if (keysA.length !== keysB.length) {
		    return false;
		  } // Test for A's keys different from B.


		  for (var i = 0; i < keysA.length; i++) {
		    if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
		      return false;
		    }
		  }

		  return true;
		}

		/**
		 * Given any node return the first leaf node without children.
		 *
		 * @param {DOMElement|DOMTextNode} node
		 * @return {DOMElement|DOMTextNode}
		 */

		function getLeafNode(node) {
		  while (node && node.firstChild) {
		    node = node.firstChild;
		  }

		  return node;
		}
		/**
		 * Get the next sibling within a container. This will walk up the
		 * DOM if a node's siblings have been exhausted.
		 *
		 * @param {DOMElement|DOMTextNode} node
		 * @return {?DOMElement|DOMTextNode}
		 */


		function getSiblingNode(node) {
		  while (node) {
		    if (node.nextSibling) {
		      return node.nextSibling;
		    }

		    node = node.parentNode;
		  }
		}
		/**
		 * Get object describing the nodes which contain characters at offset.
		 *
		 * @param {DOMElement|DOMTextNode} root
		 * @param {number} offset
		 * @return {?object}
		 */


		function getNodeForCharacterOffset(root, offset) {
		  var node = getLeafNode(root);
		  var nodeStart = 0;
		  var nodeEnd = 0;

		  while (node) {
		    if (node.nodeType === TEXT_NODE) {
		      nodeEnd = nodeStart + node.textContent.length;

		      if (nodeStart <= offset && nodeEnd >= offset) {
		        return {
		          node: node,
		          offset: offset - nodeStart
		        };
		      }

		      nodeStart = nodeEnd;
		    }

		    node = getLeafNode(getSiblingNode(node));
		  }
		}

		/**
		 * @param {DOMElement} outerNode
		 * @return {?object}
		 */

		function getOffsets(outerNode) {
		  var ownerDocument = outerNode.ownerDocument;
		  var win = ownerDocument && ownerDocument.defaultView || window;
		  var selection = win.getSelection && win.getSelection();

		  if (!selection || selection.rangeCount === 0) {
		    return null;
		  }

		  var anchorNode = selection.anchorNode,
		      anchorOffset = selection.anchorOffset,
		      focusNode = selection.focusNode,
		      focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
		  // up/down buttons on an <input type="number">. Anonymous divs do not seem to
		  // expose properties, triggering a "Permission denied error" if any of its
		  // properties are accessed. The only seemingly possible way to avoid erroring
		  // is to access a property that typically works for non-anonymous divs and
		  // catch any error that may otherwise arise. See
		  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427

		  try {
		    /* eslint-disable no-unused-expressions */
		    anchorNode.nodeType;
		    focusNode.nodeType;
		    /* eslint-enable no-unused-expressions */
		  } catch (e) {
		    return null;
		  }

		  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
		}
		/**
		 * Returns {start, end} where `start` is the character/codepoint index of
		 * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
		 * `end` is the index of (focusNode, focusOffset).
		 *
		 * Returns null if you pass in garbage input but we should probably just crash.
		 *
		 * Exported only for testing.
		 */

		function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
		  var length = 0;
		  var start = -1;
		  var end = -1;
		  var indexWithinAnchor = 0;
		  var indexWithinFocus = 0;
		  var node = outerNode;
		  var parentNode = null;

		  outer: while (true) {
		    var next = null;

		    while (true) {
		      if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
		        start = length + anchorOffset;
		      }

		      if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
		        end = length + focusOffset;
		      }

		      if (node.nodeType === TEXT_NODE) {
		        length += node.nodeValue.length;
		      }

		      if ((next = node.firstChild) === null) {
		        break;
		      } // Moving from `node` to its first child `next`.


		      parentNode = node;
		      node = next;
		    }

		    while (true) {
		      if (node === outerNode) {
		        // If `outerNode` has children, this is always the second time visiting
		        // it. If it has no children, this is still the first loop, and the only
		        // valid selection is anchorNode and focusNode both equal to this node
		        // and both offsets 0, in which case we will have handled above.
		        break outer;
		      }

		      if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
		        start = length;
		      }

		      if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
		        end = length;
		      }

		      if ((next = node.nextSibling) !== null) {
		        break;
		      }

		      node = parentNode;
		      parentNode = node.parentNode;
		    } // Moving from `node` to its next sibling `next`.


		    node = next;
		  }

		  if (start === -1 || end === -1) {
		    // This should never happen. (Would happen if the anchor/focus nodes aren't
		    // actually inside the passed-in node.)
		    return null;
		  }

		  return {
		    start: start,
		    end: end
		  };
		}
		/**
		 * In modern non-IE browsers, we can support both forward and backward
		 * selections.
		 *
		 * Note: IE10+ supports the Selection object, but it does not support
		 * the `extend` method, which means that even in modern IE, it's not possible
		 * to programmatically create a backward selection. Thus, for all IE
		 * versions, we use the old IE API to create our selections.
		 *
		 * @param {DOMElement|DOMTextNode} node
		 * @param {object} offsets
		 */

		function setOffsets(node, offsets) {
		  var doc = node.ownerDocument || document;
		  var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
		  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
		  // fails when pasting 100+ items)

		  if (!win.getSelection) {
		    return;
		  }

		  var selection = win.getSelection();
		  var length = node.textContent.length;
		  var start = Math.min(offsets.start, length);
		  var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
		  // Flip backward selections, so we can set with a single range.

		  if (!selection.extend && start > end) {
		    var temp = end;
		    end = start;
		    start = temp;
		  }

		  var startMarker = getNodeForCharacterOffset(node, start);
		  var endMarker = getNodeForCharacterOffset(node, end);

		  if (startMarker && endMarker) {
		    if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
		      return;
		    }

		    var range = doc.createRange();
		    range.setStart(startMarker.node, startMarker.offset);
		    selection.removeAllRanges();

		    if (start > end) {
		      selection.addRange(range);
		      selection.extend(endMarker.node, endMarker.offset);
		    } else {
		      range.setEnd(endMarker.node, endMarker.offset);
		      selection.addRange(range);
		    }
		  }
		}

		function isTextNode(node) {
		  return node && node.nodeType === TEXT_NODE;
		}

		function containsNode(outerNode, innerNode) {
		  if (!outerNode || !innerNode) {
		    return false;
		  } else if (outerNode === innerNode) {
		    return true;
		  } else if (isTextNode(outerNode)) {
		    return false;
		  } else if (isTextNode(innerNode)) {
		    return containsNode(outerNode, innerNode.parentNode);
		  } else if ('contains' in outerNode) {
		    return outerNode.contains(innerNode);
		  } else if (outerNode.compareDocumentPosition) {
		    return !!(outerNode.compareDocumentPosition(innerNode) & 16);
		  } else {
		    return false;
		  }
		}

		function isInDocument(node) {
		  return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
		}

		function isSameOriginFrame(iframe) {
		  try {
		    // Accessing the contentDocument of a HTMLIframeElement can cause the browser
		    // to throw, e.g. if it has a cross-origin src attribute.
		    // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
		    // iframe.contentDocument.defaultView;
		    // A safety way is to access one of the cross origin properties: Window or Location
		    // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
		    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
		    return typeof iframe.contentWindow.location.href === 'string';
		  } catch (err) {
		    return false;
		  }
		}

		function getActiveElementDeep() {
		  var win = window;
		  var element = getActiveElement();

		  while (element instanceof win.HTMLIFrameElement) {
		    if (isSameOriginFrame(element)) {
		      win = element.contentWindow;
		    } else {
		      return element;
		    }

		    element = getActiveElement(win.document);
		  }

		  return element;
		}
		/**
		 * @ReactInputSelection: React input selection module. Based on Selection.js,
		 * but modified to be suitable for react and has a couple of bug fixes (doesn't
		 * assume buttons have range selections allowed).
		 * Input selection module for React.
		 */

		/**
		 * @hasSelectionCapabilities: we get the element types that support selection
		 * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
		 * and `selectionEnd` rows.
		 */


		function hasSelectionCapabilities(elem) {
		  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
		  return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
		}
		function getSelectionInformation() {
		  var focusedElem = getActiveElementDeep();
		  return {
		    focusedElem: focusedElem,
		    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
		  };
		}
		/**
		 * @restoreSelection: If any selection information was potentially lost,
		 * restore it. This is useful when performing operations that could remove dom
		 * nodes and place them back in, resulting in focus being lost.
		 */

		function restoreSelection(priorSelectionInformation) {
		  var curFocusedElem = getActiveElementDeep();
		  var priorFocusedElem = priorSelectionInformation.focusedElem;
		  var priorSelectionRange = priorSelectionInformation.selectionRange;

		  if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
		    if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
		      setSelection(priorFocusedElem, priorSelectionRange);
		    } // Focusing a node can change the scroll position, which is undesirable


		    var ancestors = [];
		    var ancestor = priorFocusedElem;

		    while (ancestor = ancestor.parentNode) {
		      if (ancestor.nodeType === ELEMENT_NODE) {
		        ancestors.push({
		          element: ancestor,
		          left: ancestor.scrollLeft,
		          top: ancestor.scrollTop
		        });
		      }
		    }

		    if (typeof priorFocusedElem.focus === 'function') {
		      priorFocusedElem.focus();
		    }

		    for (var i = 0; i < ancestors.length; i++) {
		      var info = ancestors[i];
		      info.element.scrollLeft = info.left;
		      info.element.scrollTop = info.top;
		    }
		  }
		}
		/**
		 * @getSelection: Gets the selection bounds of a focused textarea, input or
		 * contentEditable node.
		 * -@input: Look up selection bounds of this input
		 * -@return {start: selectionStart, end: selectionEnd}
		 */

		function getSelection(input) {
		  var selection;

		  if ('selectionStart' in input) {
		    // Modern browser with input or textarea.
		    selection = {
		      start: input.selectionStart,
		      end: input.selectionEnd
		    };
		  } else {
		    // Content editable or old IE textarea.
		    selection = getOffsets(input);
		  }

		  return selection || {
		    start: 0,
		    end: 0
		  };
		}
		/**
		 * @setSelection: Sets the selection bounds of a textarea or input and focuses
		 * the input.
		 * -@input     Set selection bounds of this input or textarea
		 * -@offsets   Object of same form that is returned from get*
		 */

		function setSelection(input, offsets) {
		  var start = offsets.start;
		  var end = offsets.end;

		  if (end === undefined) {
		    end = start;
		  }

		  if ('selectionStart' in input) {
		    input.selectionStart = start;
		    input.selectionEnd = Math.min(end, input.value.length);
		  } else {
		    setOffsets(input, offsets);
		  }
		}

		var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;

		function registerEvents$3() {
		  registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);
		}

		var activeElement$1 = null;
		var activeElementInst$1 = null;
		var lastSelection = null;
		var mouseDown = false;
		/**
		 * Get an object which is a unique representation of the current selection.
		 *
		 * The return value will not be consistent across nodes or browsers, but
		 * two identical selections on the same node will return identical objects.
		 */

		function getSelection$1(node) {
		  if ('selectionStart' in node && hasSelectionCapabilities(node)) {
		    return {
		      start: node.selectionStart,
		      end: node.selectionEnd
		    };
		  } else {
		    var win = node.ownerDocument && node.ownerDocument.defaultView || window;
		    var selection = win.getSelection();
		    return {
		      anchorNode: selection.anchorNode,
		      anchorOffset: selection.anchorOffset,
		      focusNode: selection.focusNode,
		      focusOffset: selection.focusOffset
		    };
		  }
		}
		/**
		 * Get document associated with the event target.
		 */


		function getEventTargetDocument(eventTarget) {
		  return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
		}
		/**
		 * Poll selection to see whether it's changed.
		 *
		 * @param {object} nativeEvent
		 * @param {object} nativeEventTarget
		 * @return {?SyntheticEvent}
		 */


		function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
		  // Ensure we have the right element, and that the user is not dragging a
		  // selection (this matches native `select` event behavior). In HTML5, select
		  // fires only on input and textarea thus if there's no focused element we
		  // won't dispatch.
		  var doc = getEventTargetDocument(nativeEventTarget);

		  if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
		    return;
		  } // Only fire when selection has actually changed.


		  var currentSelection = getSelection$1(activeElement$1);

		  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
		    lastSelection = currentSelection;
		    var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');

		    if (listeners.length > 0) {
		      var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);
		      dispatchQueue.push({
		        event: event,
		        listeners: listeners
		      });
		      event.target = activeElement$1;
		    }
		  }
		}
		/**
		 * This plugin creates an `onSelect` event that normalizes select events
		 * across form elements.
		 *
		 * Supported elements are:
		 * - input (see `isTextInputElement`)
		 * - textarea
		 * - contentEditable
		 *
		 * This differs from native browser implementations in the following ways:
		 * - Fires on contentEditable fields as well as inputs.
		 * - Fires for collapsed selection.
		 * - Fires after user input.
		 */


		function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {

		  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;

		  switch (domEventName) {
		    // Track the input node that has focus.
		    case 'focusin':
		      if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
		        activeElement$1 = targetNode;
		        activeElementInst$1 = targetInst;
		        lastSelection = null;
		      }

		      break;

		    case 'focusout':
		      activeElement$1 = null;
		      activeElementInst$1 = null;
		      lastSelection = null;
		      break;
		    // Don't fire the event while the user is dragging. This matches the
		    // semantics of the native select event.

		    case 'mousedown':
		      mouseDown = true;
		      break;

		    case 'contextmenu':
		    case 'mouseup':
		    case 'dragend':
		      mouseDown = false;
		      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
		      break;
		    // Chrome and IE fire non-standard event when selection is changed (and
		    // sometimes when it hasn't). IE's event fires out of order with respect
		    // to key and input events on deletion, so we discard it.
		    //
		    // Firefox doesn't support selectionchange, so check selection status
		    // after each key entry. The selection changes after keydown and before
		    // keyup, but we check on keydown as well in the case of holding down a
		    // key, when multiple keydown events are fired but only one keyup is.
		    // This is also our approach for IE handling, for the reason above.

		    case 'selectionchange':
		      if (skipSelectionChangeEvent) {
		        break;
		      }

		    // falls through

		    case 'keydown':
		    case 'keyup':
		      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
		  }
		}

		function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
		  var reactName = topLevelEventsToReactNames.get(domEventName);

		  if (reactName === undefined) {
		    return;
		  }

		  var SyntheticEventCtor = SyntheticEvent;
		  var reactEventType = domEventName;

		  switch (domEventName) {
		    case 'keypress':
		      // Firefox creates a keypress event for function keys too. This removes
		      // the unwanted keypress events. Enter is however both printable and
		      // non-printable. One would expect Tab to be as well (but it isn't).
		      if (getEventCharCode(nativeEvent) === 0) {
		        return;
		      }

		    /* falls through */

		    case 'keydown':
		    case 'keyup':
		      SyntheticEventCtor = SyntheticKeyboardEvent;
		      break;

		    case 'focusin':
		      reactEventType = 'focus';
		      SyntheticEventCtor = SyntheticFocusEvent;
		      break;

		    case 'focusout':
		      reactEventType = 'blur';
		      SyntheticEventCtor = SyntheticFocusEvent;
		      break;

		    case 'beforeblur':
		    case 'afterblur':
		      SyntheticEventCtor = SyntheticFocusEvent;
		      break;

		    case 'click':
		      // Firefox creates a click event on right mouse clicks. This removes the
		      // unwanted click events.
		      if (nativeEvent.button === 2) {
		        return;
		      }

		    /* falls through */

		    case 'auxclick':
		    case 'dblclick':
		    case 'mousedown':
		    case 'mousemove':
		    case 'mouseup': // TODO: Disabled elements should not respond to mouse events

		    /* falls through */

		    case 'mouseout':
		    case 'mouseover':
		    case 'contextmenu':
		      SyntheticEventCtor = SyntheticMouseEvent;
		      break;

		    case 'drag':
		    case 'dragend':
		    case 'dragenter':
		    case 'dragexit':
		    case 'dragleave':
		    case 'dragover':
		    case 'dragstart':
		    case 'drop':
		      SyntheticEventCtor = SyntheticDragEvent;
		      break;

		    case 'touchcancel':
		    case 'touchend':
		    case 'touchmove':
		    case 'touchstart':
		      SyntheticEventCtor = SyntheticTouchEvent;
		      break;

		    case ANIMATION_END:
		    case ANIMATION_ITERATION:
		    case ANIMATION_START:
		      SyntheticEventCtor = SyntheticAnimationEvent;
		      break;

		    case TRANSITION_END:
		      SyntheticEventCtor = SyntheticTransitionEvent;
		      break;

		    case 'scroll':
		      SyntheticEventCtor = SyntheticUIEvent;
		      break;

		    case 'wheel':
		      SyntheticEventCtor = SyntheticWheelEvent;
		      break;

		    case 'copy':
		    case 'cut':
		    case 'paste':
		      SyntheticEventCtor = SyntheticClipboardEvent;
		      break;

		    case 'gotpointercapture':
		    case 'lostpointercapture':
		    case 'pointercancel':
		    case 'pointerdown':
		    case 'pointermove':
		    case 'pointerout':
		    case 'pointerover':
		    case 'pointerup':
		      SyntheticEventCtor = SyntheticPointerEvent;
		      break;
		  }

		  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

		  {
		    // Some events don't bubble in the browser.
		    // In the past, React has always bubbled them, but this can be surprising.
		    // We're going to try aligning closer to the browser behavior by not bubbling
		    // them in React either. We'll start by not bubbling onScroll, and then expand.
		    var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from
		    // nonDelegatedEvents list in DOMPluginEventSystem.
		    // Then we can remove this special list.
		    // This is a breaking change that can wait until React 18.
		    domEventName === 'scroll';

		    var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);

		    if (_listeners.length > 0) {
		      // Intentionally create event lazily.
		      var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);

		      dispatchQueue.push({
		        event: _event,
		        listeners: _listeners
		      });
		    }
		  }
		}

		// TODO: remove top-level side effect.
		registerSimpleEvents();
		registerEvents$2();
		registerEvents$1();
		registerEvents$3();
		registerEvents();

		function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
		  // TODO: we should remove the concept of a "SimpleEventPlugin".
		  // This is the basic functionality of the event system. All
		  // the other plugins are essentially polyfills. So the plugin
		  // should probably be inlined somewhere and have its logic
		  // be core the to event system. This would potentially allow
		  // us to ship builds of React without the polyfilled plugins below.
		  extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
		  var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the
		  // event's native "bubble" phase, which means that we're
		  // not in the capture phase. That's because we emulate
		  // the capture phase here still. This is a trade-off,
		  // because in an ideal world we would not emulate and use
		  // the phases properly, like we do with the SimpleEvent
		  // plugin. However, the plugins below either expect
		  // emulation (EnterLeave) or use state localized to that
		  // plugin (BeforeInput, Change, Select). The state in
		  // these modules complicates things, as you'll essentially
		  // get the case where the capture phase event might change
		  // state, only for the following bubble event to come in
		  // later and not trigger anything as the state now
		  // invalidates the heuristics of the event plugin. We
		  // could alter all these plugins to work in such ways, but
		  // that might cause other unknown side-effects that we
		  // can't forsee right now.

		  if (shouldProcessPolyfillPlugins) {
		    extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
		    extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
		    extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
		    extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
		  }
		} // List of events that need to be individually attached to media elements.


		var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather
		// set them on the actual target element itself. This is primarily
		// because these events do not consistently bubble in the DOM.

		var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));

		function executeDispatch(event, listener, currentTarget) {
		  var type = event.type || 'unknown-event';
		  event.currentTarget = currentTarget;
		  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
		  event.currentTarget = null;
		}

		function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
		  var previousInstance;

		  if (inCapturePhase) {
		    for (var i = dispatchListeners.length - 1; i >= 0; i--) {
		      var _dispatchListeners$i = dispatchListeners[i],
		          instance = _dispatchListeners$i.instance,
		          currentTarget = _dispatchListeners$i.currentTarget,
		          listener = _dispatchListeners$i.listener;

		      if (instance !== previousInstance && event.isPropagationStopped()) {
		        return;
		      }

		      executeDispatch(event, listener, currentTarget);
		      previousInstance = instance;
		    }
		  } else {
		    for (var _i = 0; _i < dispatchListeners.length; _i++) {
		      var _dispatchListeners$_i = dispatchListeners[_i],
		          _instance = _dispatchListeners$_i.instance,
		          _currentTarget = _dispatchListeners$_i.currentTarget,
		          _listener = _dispatchListeners$_i.listener;

		      if (_instance !== previousInstance && event.isPropagationStopped()) {
		        return;
		      }

		      executeDispatch(event, _listener, _currentTarget);
		      previousInstance = _instance;
		    }
		  }
		}

		function processDispatchQueue(dispatchQueue, eventSystemFlags) {
		  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

		  for (var i = 0; i < dispatchQueue.length; i++) {
		    var _dispatchQueue$i = dispatchQueue[i],
		        event = _dispatchQueue$i.event,
		        listeners = _dispatchQueue$i.listeners;
		    processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); //  event system doesn't use pooling.
		  } // This would be a good time to rethrow if any of the event handlers threw.


		  rethrowCaughtError();
		}

		function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
		  var nativeEventTarget = getEventTarget(nativeEvent);
		  var dispatchQueue = [];
		  extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
		  processDispatchQueue(dispatchQueue, eventSystemFlags);
		}

		function listenToNonDelegatedEvent(domEventName, targetElement) {
		  var isCapturePhaseListener = false;
		  var listenerSet = getEventListenerSet(targetElement);
		  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);

		  if (!listenerSet.has(listenerSetKey)) {
		    addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);
		    listenerSet.add(listenerSetKey);
		  }
		}
		var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);
		function listenToAllSupportedEvents(rootContainerElement) {
		  {
		    if (rootContainerElement[listeningMarker]) {
		      // Performance optimization: don't iterate through events
		      // for the same portal container or root node more than once.
		      // TODO: once we remove the flag, we may be able to also
		      // remove some of the bookkeeping maps used for laziness.
		      return;
		    }

		    rootContainerElement[listeningMarker] = true;
		    allNativeEvents.forEach(function (domEventName) {
		      if (!nonDelegatedEvents.has(domEventName)) {
		        listenToNativeEvent(domEventName, false, rootContainerElement, null);
		      }

		      listenToNativeEvent(domEventName, true, rootContainerElement, null);
		    });
		  }
		}
		function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) {
		  var eventSystemFlags = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
		  var target = rootContainerElement; // selectionchange needs to be attached to the document
		  // otherwise it won't capture incoming events that are only
		  // triggered on the document directly.

		  if (domEventName === 'selectionchange' && rootContainerElement.nodeType !== DOCUMENT_NODE) {
		    target = rootContainerElement.ownerDocument;
		  } // If the event can be delegated (or is capture phase), we can
		  // register it to the root container. Otherwise, we should
		  // register the event to the target element and mark it as
		  // a non-delegated event.


		  if (targetElement !== null && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) {
		    // For all non-delegated events, apart from scroll, we attach
		    // their event listeners to the respective elements that their
		    // events fire on. That means we can skip this step, as event
		    // listener has already been added previously. However, we
		    // special case the scroll event because the reality is that any
		    // element can scroll.
		    // TODO: ideally, we'd eventually apply the same logic to all
		    // events from the nonDelegatedEvents list. Then we can remove
		    // this special case and use the same logic for all events.
		    if (domEventName !== 'scroll') {
		      return;
		    }

		    eventSystemFlags |= IS_NON_DELEGATED;
		    target = targetElement;
		  }

		  var listenerSet = getEventListenerSet(target);
		  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); // If the listener entry is empty or we should upgrade, then
		  // we need to trap an event listener onto the target.

		  if (!listenerSet.has(listenerSetKey)) {
		    if (isCapturePhaseListener) {
		      eventSystemFlags |= IS_CAPTURE_PHASE;
		    }

		    addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);
		    listenerSet.add(listenerSetKey);
		  }
		}

		function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
		  var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be
		  // active and not passive.

		  var isPassiveListener = undefined;

		  if (passiveBrowserEventsSupported) {
		    // Browsers introduced an intervention, making these events
		    // passive by default on document. React doesn't bind them
		    // to document anymore, but changing this now would undo
		    // the performance wins from the change. So we emulate
		    // the existing behavior manually on the roots now.
		    // https://github.com/facebook/react/issues/19651
		    if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {
		      isPassiveListener = true;
		    }
		  }

		  targetContainer =  targetContainer;


		  if (isCapturePhaseListener) {
		    if (isPassiveListener !== undefined) {
		      addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
		    } else {
		      addEventCaptureListener(targetContainer, domEventName, listener);
		    }
		  } else {
		    if (isPassiveListener !== undefined) {
		      addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
		    } else {
		      addEventBubbleListener(targetContainer, domEventName, listener);
		    }
		  }
		}

		function isMatchingRootContainer(grandContainer, targetContainer) {
		  return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;
		}

		function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
		  var ancestorInst = targetInst;

		  if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {
		    var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we

		    if (targetInst !== null) {
		      // The below logic attempts to work out if we need to change
		      // the target fiber to a different ancestor. We had similar logic
		      // in the legacy event system, except the big difference between
		      // systems is that the modern event system now has an event listener
		      // attached to each React Root and React Portal Root. Together,
		      // the DOM nodes representing these roots are the "rootContainer".
		      // To figure out which ancestor instance we should use, we traverse
		      // up the fiber tree from the target instance and attempt to find
		      // root boundaries that match that of our current "rootContainer".
		      // If we find that "rootContainer", we find the parent fiber
		      // sub-tree for that root and make that our ancestor instance.
		      var node = targetInst;

		      mainLoop: while (true) {
		        if (node === null) {
		          return;
		        }

		        var nodeTag = node.tag;

		        if (nodeTag === HostRoot || nodeTag === HostPortal) {
		          var container = node.stateNode.containerInfo;

		          if (isMatchingRootContainer(container, targetContainerNode)) {
		            break;
		          }

		          if (nodeTag === HostPortal) {
		            // The target is a portal, but it's not the rootContainer we're looking for.
		            // Normally portals handle their own events all the way down to the root.
		            // So we should be able to stop now. However, we don't know if this portal
		            // was part of *our* root.
		            var grandNode = node.return;

		            while (grandNode !== null) {
		              var grandTag = grandNode.tag;

		              if (grandTag === HostRoot || grandTag === HostPortal) {
		                var grandContainer = grandNode.stateNode.containerInfo;

		                if (isMatchingRootContainer(grandContainer, targetContainerNode)) {
		                  // This is the rootContainer we're looking for and we found it as
		                  // a parent of the Portal. That means we can ignore it because the
		                  // Portal will bubble through to us.
		                  return;
		                }
		              }

		              grandNode = grandNode.return;
		            }
		          } // Now we need to find it's corresponding host fiber in the other
		          // tree. To do this we can use getClosestInstanceFromNode, but we
		          // need to validate that the fiber is a host instance, otherwise
		          // we need to traverse up through the DOM till we find the correct
		          // node that is from the other tree.


		          while (container !== null) {
		            var parentNode = getClosestInstanceFromNode(container);

		            if (parentNode === null) {
		              return;
		            }

		            var parentTag = parentNode.tag;

		            if (parentTag === HostComponent || parentTag === HostText) {
		              node = ancestorInst = parentNode;
		              continue mainLoop;
		            }

		            container = container.parentNode;
		          }
		        }

		        node = node.return;
		      }
		    }
		  }

		  batchedEventUpdates(function () {
		    return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);
		  });
		}

		function createDispatchListener(instance, listener, currentTarget) {
		  return {
		    instance: instance,
		    listener: listener,
		    currentTarget: currentTarget
		  };
		}

		function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) {
		  var captureName = reactName !== null ? reactName + 'Capture' : null;
		  var reactEventName = inCapturePhase ? captureName : reactName;
		  var listeners = [];
		  var instance = targetFiber;
		  var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.

		  while (instance !== null) {
		    var _instance2 = instance,
		        stateNode = _instance2.stateNode,
		        tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)

		    if (tag === HostComponent && stateNode !== null) {
		      lastHostComponent = stateNode; // createEventHandle listeners


		      if (reactEventName !== null) {
		        var listener = getListener(instance, reactEventName);

		        if (listener != null) {
		          listeners.push(createDispatchListener(instance, listener, lastHostComponent));
		        }
		      }
		    } // If we are only accumulating events for the target, then we don't
		    // continue to propagate through the React fiber tree to find other
		    // listeners.


		    if (accumulateTargetOnly) {
		      break;
		    }

		    instance = instance.return;
		  }

		  return listeners;
		} // We should only use this function for:
		// - BeforeInputEventPlugin
		// - ChangeEventPlugin
		// - SelectEventPlugin
		// This is because we only process these plugins
		// in the bubble phase, so we need to accumulate two
		// phase event listeners (via emulation).

		function accumulateTwoPhaseListeners(targetFiber, reactName) {
		  var captureName = reactName + 'Capture';
		  var listeners = [];
		  var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.

		  while (instance !== null) {
		    var _instance3 = instance,
		        stateNode = _instance3.stateNode,
		        tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)

		    if (tag === HostComponent && stateNode !== null) {
		      var currentTarget = stateNode;
		      var captureListener = getListener(instance, captureName);

		      if (captureListener != null) {
		        listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
		      }

		      var bubbleListener = getListener(instance, reactName);

		      if (bubbleListener != null) {
		        listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
		      }
		    }

		    instance = instance.return;
		  }

		  return listeners;
		}

		function getParent(inst) {
		  if (inst === null) {
		    return null;
		  }

		  do {
		    inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
		    // That is depending on if we want nested subtrees (layers) to bubble
		    // events to their parent. We could also go through parentNode on the
		    // host node but that wouldn't work for React Native and doesn't let us
		    // do the portal feature.
		  } while (inst && inst.tag !== HostComponent);

		  if (inst) {
		    return inst;
		  }

		  return null;
		}
		/**
		 * Return the lowest common ancestor of A and B, or null if they are in
		 * different trees.
		 */


		function getLowestCommonAncestor(instA, instB) {
		  var nodeA = instA;
		  var nodeB = instB;
		  var depthA = 0;

		  for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {
		    depthA++;
		  }

		  var depthB = 0;

		  for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {
		    depthB++;
		  } // If A is deeper, crawl up.


		  while (depthA - depthB > 0) {
		    nodeA = getParent(nodeA);
		    depthA--;
		  } // If B is deeper, crawl up.


		  while (depthB - depthA > 0) {
		    nodeB = getParent(nodeB);
		    depthB--;
		  } // Walk in lockstep until we find a match.


		  var depth = depthA;

		  while (depth--) {
		    if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {
		      return nodeA;
		    }

		    nodeA = getParent(nodeA);
		    nodeB = getParent(nodeB);
		  }

		  return null;
		}

		function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
		  var registrationName = event._reactName;
		  var listeners = [];
		  var instance = target;

		  while (instance !== null) {
		    if (instance === common) {
		      break;
		    }

		    var _instance4 = instance,
		        alternate = _instance4.alternate,
		        stateNode = _instance4.stateNode,
		        tag = _instance4.tag;

		    if (alternate !== null && alternate === common) {
		      break;
		    }

		    if (tag === HostComponent && stateNode !== null) {
		      var currentTarget = stateNode;

		      if (inCapturePhase) {
		        var captureListener = getListener(instance, registrationName);

		        if (captureListener != null) {
		          listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
		        }
		      } else if (!inCapturePhase) {
		        var bubbleListener = getListener(instance, registrationName);

		        if (bubbleListener != null) {
		          listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
		        }
		      }
		    }

		    instance = instance.return;
		  }

		  if (listeners.length !== 0) {
		    dispatchQueue.push({
		      event: event,
		      listeners: listeners
		    });
		  }
		} // We should only use this function for:
		// - EnterLeaveEventPlugin
		// This is because we only process this plugin
		// in the bubble phase, so we need to accumulate two
		// phase event listeners.


		function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
		  var common = from && to ? getLowestCommonAncestor(from, to) : null;

		  if (from !== null) {
		    accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);
		  }

		  if (to !== null && enterEvent !== null) {
		    accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);
		  }
		}
		function getListenerSetKey(domEventName, capture) {
		  return domEventName + "__" + (capture ? 'capture' : 'bubble');
		}

		var didWarnInvalidHydration = false;
		var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
		var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
		var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
		var AUTOFOCUS = 'autoFocus';
		var CHILDREN = 'children';
		var STYLE = 'style';
		var HTML$1 = '__html';
		var HTML_NAMESPACE$1 = Namespaces.html;
		var warnedUnknownTags;
		var suppressHydrationWarning;
		var validatePropertiesInDevelopment;
		var warnForTextDifference;
		var warnForPropDifference;
		var warnForExtraAttributes;
		var warnForInvalidEventListener;
		var canDiffStyleForHydrationWarning;
		var normalizeMarkupForTextOrAttribute;
		var normalizeHTML;

		{
		  warnedUnknownTags = {
		    // There are working polyfills for <dialog>. Let people use it.
		    dialog: true,
		    // Electron ships a custom <webview> tag to display external web content in
		    // an isolated frame and process.
		    // This tag is not present in non Electron environments such as JSDom which
		    // is often used for testing purposes.
		    // @see https://electronjs.org/docs/api/webview-tag
		    webview: true
		  };

		  validatePropertiesInDevelopment = function (type, props) {
		    validateProperties(type, props);
		    validateProperties$1(type, props);
		    validateProperties$2(type, props, {
		      registrationNameDependencies: registrationNameDependencies,
		      possibleRegistrationNames: possibleRegistrationNames
		    });
		  }; // IE 11 parses & normalizes the style attribute as opposed to other
		  // browsers. It adds spaces and sorts the properties in some
		  // non-alphabetical order. Handling that would require sorting CSS
		  // properties in the client & server versions or applying
		  // `expectedStyle` to a temporary DOM node to read its `style` attribute
		  // normalized. Since it only affects IE, we're skipping style warnings
		  // in that browser completely in favor of doing all that work.
		  // See https://github.com/facebook/react/issues/11807


		  canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
		  // It also can turn \u0000 into \uFFFD inside attributes.
		  // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
		  // If we have a mismatch, it might be caused by that.
		  // We will still patch up in this case but not fire the warning.

		  var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
		  var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;

		  normalizeMarkupForTextOrAttribute = function (markup) {
		    var markupString = typeof markup === 'string' ? markup : '' + markup;
		    return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
		  };

		  warnForTextDifference = function (serverText, clientText) {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
		    var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);

		    if (normalizedServerText === normalizedClientText) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
		  };

		  warnForPropDifference = function (propName, serverValue, clientValue) {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
		    var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);

		    if (normalizedServerValue === normalizedClientValue) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
		  };

		  warnForExtraAttributes = function (attributeNames) {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    didWarnInvalidHydration = true;
		    var names = [];
		    attributeNames.forEach(function (name) {
		      names.push(name);
		    });

		    error('Extra attributes from the server: %s', names);
		  };

		  warnForInvalidEventListener = function (registrationName, listener) {
		    if (listener === false) {
		      error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
		    } else {
		      error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
		    }
		  }; // Parse the HTML and read it back to normalize the HTML string so that it
		  // can be used for comparison.


		  normalizeHTML = function (parent, html) {
		    // We could have created a separate document here to avoid
		    // re-initializing custom elements if they exist. But this breaks
		    // how <noscript> is being handled. So we use the same document.
		    // See the discussion in https://github.com/facebook/react/pull/11157.
		    var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
		    testElement.innerHTML = html;
		    return testElement.innerHTML;
		  };
		}

		function getOwnerDocumentFromRootContainer(rootContainerElement) {
		  return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
		}

		function noop() {}

		function trapClickOnNonInteractiveElement(node) {
		  // Mobile Safari does not fire properly bubble click events on
		  // non-interactive elements, which means delegated click listeners do not
		  // fire. The workaround for this bug involves attaching an empty click
		  // listener on the target node.
		  // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
		  // Just set it using the onclick property so that we don't have to manage any
		  // bookkeeping for it. Not sure if we need to clear it when the listener is
		  // removed.
		  // TODO: Only do this for the relevant Safaris maybe?
		  node.onclick = noop;
		}

		function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
		  for (var propKey in nextProps) {
		    if (!nextProps.hasOwnProperty(propKey)) {
		      continue;
		    }

		    var nextProp = nextProps[propKey];

		    if (propKey === STYLE) {
		      {
		        if (nextProp) {
		          // Freeze the next style object so that we can assume it won't be
		          // mutated. We have already warned for this in the past.
		          Object.freeze(nextProp);
		        }
		      } // Relies on `updateStylesByID` not mutating `styleUpdates`.


		      setValueForStyles(domElement, nextProp);
		    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
		      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

		      if (nextHtml != null) {
		        setInnerHTML(domElement, nextHtml);
		      }
		    } else if (propKey === CHILDREN) {
		      if (typeof nextProp === 'string') {
		        // Avoid setting initial textContent when the text is empty. In IE11 setting
		        // textContent on a <textarea> will cause the placeholder to not
		        // show within the <textarea> until it has been focused and blurred again.
		        // https://github.com/facebook/react/issues/6731#issuecomment-254874553
		        var canSetTextContent = tag !== 'textarea' || nextProp !== '';

		        if (canSetTextContent) {
		          setTextContent(domElement, nextProp);
		        }
		      } else if (typeof nextProp === 'number') {
		        setTextContent(domElement, '' + nextProp);
		      }
		    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
		      if (nextProp != null) {
		        if ( typeof nextProp !== 'function') {
		          warnForInvalidEventListener(propKey, nextProp);
		        }

		        if (propKey === 'onScroll') {
		          listenToNonDelegatedEvent('scroll', domElement);
		        }
		      }
		    } else if (nextProp != null) {
		      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
		    }
		  }
		}

		function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
		  // TODO: Handle wasCustomComponentTag
		  for (var i = 0; i < updatePayload.length; i += 2) {
		    var propKey = updatePayload[i];
		    var propValue = updatePayload[i + 1];

		    if (propKey === STYLE) {
		      setValueForStyles(domElement, propValue);
		    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
		      setInnerHTML(domElement, propValue);
		    } else if (propKey === CHILDREN) {
		      setTextContent(domElement, propValue);
		    } else {
		      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
		    }
		  }
		}

		function createElement(type, props, rootContainerElement, parentNamespace) {
		  var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
		  // tags get no namespace.

		  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
		  var domElement;
		  var namespaceURI = parentNamespace;

		  if (namespaceURI === HTML_NAMESPACE$1) {
		    namespaceURI = getIntrinsicNamespace(type);
		  }

		  if (namespaceURI === HTML_NAMESPACE$1) {
		    {
		      isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
		      // allow <SVG> or <mATH>.

		      if (!isCustomComponentTag && type !== type.toLowerCase()) {
		        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
		      }
		    }

		    if (type === 'script') {
		      // Create the script via .innerHTML so its "parser-inserted" flag is
		      // set to true and it does not execute
		      var div = ownerDocument.createElement('div');

		      div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
		      // This is guaranteed to yield a script element.

		      var firstChild = div.firstChild;
		      domElement = div.removeChild(firstChild);
		    } else if (typeof props.is === 'string') {
		      // $FlowIssue `createElement` should be updated for Web Components
		      domElement = ownerDocument.createElement(type, {
		        is: props.is
		      });
		    } else {
		      // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
		      // See discussion in https://github.com/facebook/react/pull/6896
		      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
		      domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
		      // attributes on `select`s needs to be added before `option`s are inserted.
		      // This prevents:
		      // - a bug where the `select` does not scroll to the correct option because singular
		      //  `select` elements automatically pick the first item #13222
		      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
		      // See https://github.com/facebook/react/issues/13222
		      // and https://github.com/facebook/react/issues/14239

		      if (type === 'select') {
		        var node = domElement;

		        if (props.multiple) {
		          node.multiple = true;
		        } else if (props.size) {
		          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
		          // it is possible that no option is selected.
		          //
		          // This is only necessary when a select in "single selection mode".
		          node.size = props.size;
		        }
		      }
		    }
		  } else {
		    domElement = ownerDocument.createElementNS(namespaceURI, type);
		  }

		  {
		    if (namespaceURI === HTML_NAMESPACE$1) {
		      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
		        warnedUnknownTags[type] = true;

		        error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
		      }
		    }
		  }

		  return domElement;
		}
		function createTextNode(text, rootContainerElement) {
		  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
		}
		function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
		  var isCustomComponentTag = isCustomComponent(tag, rawProps);

		  {
		    validatePropertiesInDevelopment(tag, rawProps);
		  } // TODO: Make sure that we check isMounted before firing any of these events.


		  var props;

		  switch (tag) {
		    case 'dialog':
		      listenToNonDelegatedEvent('cancel', domElement);
		      listenToNonDelegatedEvent('close', domElement);
		      props = rawProps;
		      break;

		    case 'iframe':
		    case 'object':
		    case 'embed':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the load event.
		      listenToNonDelegatedEvent('load', domElement);
		      props = rawProps;
		      break;

		    case 'video':
		    case 'audio':
		      // We listen to these events in case to ensure emulated bubble
		      // listeners still fire for all the media events.
		      for (var i = 0; i < mediaEventTypes.length; i++) {
		        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
		      }

		      props = rawProps;
		      break;

		    case 'source':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the error event.
		      listenToNonDelegatedEvent('error', domElement);
		      props = rawProps;
		      break;

		    case 'img':
		    case 'image':
		    case 'link':
		      // We listen to these events in case to ensure emulated bubble
		      // listeners still fire for error and load events.
		      listenToNonDelegatedEvent('error', domElement);
		      listenToNonDelegatedEvent('load', domElement);
		      props = rawProps;
		      break;

		    case 'details':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the toggle event.
		      listenToNonDelegatedEvent('toggle', domElement);
		      props = rawProps;
		      break;

		    case 'input':
		      initWrapperState(domElement, rawProps);
		      props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;

		    case 'option':
		      validateProps(domElement, rawProps);
		      props = getHostProps$1(domElement, rawProps);
		      break;

		    case 'select':
		      initWrapperState$1(domElement, rawProps);
		      props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;

		    case 'textarea':
		      initWrapperState$2(domElement, rawProps);
		      props = getHostProps$3(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;

		    default:
		      props = rawProps;
		  }

		  assertValidProps(tag, props);
		  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);

		  switch (tag) {
		    case 'input':
		      // TODO: Make sure we check if this is still unmounted or do any clean
		      // up necessary since we never stop tracking anymore.
		      track(domElement);
		      postMountWrapper(domElement, rawProps, false);
		      break;

		    case 'textarea':
		      // TODO: Make sure we check if this is still unmounted or do any clean
		      // up necessary since we never stop tracking anymore.
		      track(domElement);
		      postMountWrapper$3(domElement);
		      break;

		    case 'option':
		      postMountWrapper$1(domElement, rawProps);
		      break;

		    case 'select':
		      postMountWrapper$2(domElement, rawProps);
		      break;

		    default:
		      if (typeof props.onClick === 'function') {
		        // TODO: This cast may not be sound for SVG, MathML or custom elements.
		        trapClickOnNonInteractiveElement(domElement);
		      }

		      break;
		  }
		} // Calculate the diff between the two objects.

		function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
		  {
		    validatePropertiesInDevelopment(tag, nextRawProps);
		  }

		  var updatePayload = null;
		  var lastProps;
		  var nextProps;

		  switch (tag) {
		    case 'input':
		      lastProps = getHostProps(domElement, lastRawProps);
		      nextProps = getHostProps(domElement, nextRawProps);
		      updatePayload = [];
		      break;

		    case 'option':
		      lastProps = getHostProps$1(domElement, lastRawProps);
		      nextProps = getHostProps$1(domElement, nextRawProps);
		      updatePayload = [];
		      break;

		    case 'select':
		      lastProps = getHostProps$2(domElement, lastRawProps);
		      nextProps = getHostProps$2(domElement, nextRawProps);
		      updatePayload = [];
		      break;

		    case 'textarea':
		      lastProps = getHostProps$3(domElement, lastRawProps);
		      nextProps = getHostProps$3(domElement, nextRawProps);
		      updatePayload = [];
		      break;

		    default:
		      lastProps = lastRawProps;
		      nextProps = nextRawProps;

		      if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
		        // TODO: This cast may not be sound for SVG, MathML or custom elements.
		        trapClickOnNonInteractiveElement(domElement);
		      }

		      break;
		  }

		  assertValidProps(tag, nextProps);
		  var propKey;
		  var styleName;
		  var styleUpdates = null;

		  for (propKey in lastProps) {
		    if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
		      continue;
		    }

		    if (propKey === STYLE) {
		      var lastStyle = lastProps[propKey];

		      for (styleName in lastStyle) {
		        if (lastStyle.hasOwnProperty(styleName)) {
		          if (!styleUpdates) {
		            styleUpdates = {};
		          }

		          styleUpdates[styleName] = '';
		        }
		      }
		    } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
		      // This is a special case. If any listener updates we need to ensure
		      // that the "current" fiber pointer gets updated so we need a commit
		      // to update this element.
		      if (!updatePayload) {
		        updatePayload = [];
		      }
		    } else {
		      // For all other deleted properties we add it to the queue. We use
		      // the allowed property list in the commit phase instead.
		      (updatePayload = updatePayload || []).push(propKey, null);
		    }
		  }

		  for (propKey in nextProps) {
		    var nextProp = nextProps[propKey];
		    var lastProp = lastProps != null ? lastProps[propKey] : undefined;

		    if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
		      continue;
		    }

		    if (propKey === STYLE) {
		      {
		        if (nextProp) {
		          // Freeze the next style object so that we can assume it won't be
		          // mutated. We have already warned for this in the past.
		          Object.freeze(nextProp);
		        }
		      }

		      if (lastProp) {
		        // Unset styles on `lastProp` but not on `nextProp`.
		        for (styleName in lastProp) {
		          if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
		            if (!styleUpdates) {
		              styleUpdates = {};
		            }

		            styleUpdates[styleName] = '';
		          }
		        } // Update styles that changed since `lastProp`.


		        for (styleName in nextProp) {
		          if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
		            if (!styleUpdates) {
		              styleUpdates = {};
		            }

		            styleUpdates[styleName] = nextProp[styleName];
		          }
		        }
		      } else {
		        // Relies on `updateStylesByID` not mutating `styleUpdates`.
		        if (!styleUpdates) {
		          if (!updatePayload) {
		            updatePayload = [];
		          }

		          updatePayload.push(propKey, styleUpdates);
		        }

		        styleUpdates = nextProp;
		      }
		    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
		      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
		      var lastHtml = lastProp ? lastProp[HTML$1] : undefined;

		      if (nextHtml != null) {
		        if (lastHtml !== nextHtml) {
		          (updatePayload = updatePayload || []).push(propKey, nextHtml);
		        }
		      }
		    } else if (propKey === CHILDREN) {
		      if (typeof nextProp === 'string' || typeof nextProp === 'number') {
		        (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
		      }
		    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
		      if (nextProp != null) {
		        // We eagerly listen to this even though we haven't committed yet.
		        if ( typeof nextProp !== 'function') {
		          warnForInvalidEventListener(propKey, nextProp);
		        }

		        if (propKey === 'onScroll') {
		          listenToNonDelegatedEvent('scroll', domElement);
		        }
		      }

		      if (!updatePayload && lastProp !== nextProp) {
		        // This is a special case. If any listener updates we need to ensure
		        // that the "current" props pointer gets updated so we need a commit
		        // to update this element.
		        updatePayload = [];
		      }
		    } else if (typeof nextProp === 'object' && nextProp !== null && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE) {
		      // If we encounter useOpaqueReference's opaque object, this means we are hydrating.
		      // In this case, call the opaque object's toString function which generates a new client
		      // ID so client and server IDs match and throws to rerender.
		      nextProp.toString();
		    } else {
		      // For any other property we always add it to the queue and then we
		      // filter it out using the allowed property list during the commit.
		      (updatePayload = updatePayload || []).push(propKey, nextProp);
		    }
		  }

		  if (styleUpdates) {
		    {
		      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
		    }

		    (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
		  }

		  return updatePayload;
		} // Apply the diff.

		function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
		  // Update checked *before* name.
		  // In the middle of an update, it is possible to have multiple checked.
		  // When a checked radio tries to change name, browser makes another radio's checked false.
		  if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
		    updateChecked(domElement, nextRawProps);
		  }

		  var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
		  var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.

		  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
		  // changed.

		  switch (tag) {
		    case 'input':
		      // Update the wrapper around inputs *after* updating props. This has to
		      // happen after `updateDOMProperties`. Otherwise HTML5 input validations
		      // raise warnings and prevent the new value from being assigned.
		      updateWrapper(domElement, nextRawProps);
		      break;

		    case 'textarea':
		      updateWrapper$1(domElement, nextRawProps);
		      break;

		    case 'select':
		      // <select> value update needs to occur after <option> children
		      // reconciliation
		      postUpdateWrapper(domElement, nextRawProps);
		      break;
		  }
		}

		function getPossibleStandardName(propName) {
		  {
		    var lowerCasedName = propName.toLowerCase();

		    if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
		      return null;
		    }

		    return possibleStandardNames[lowerCasedName] || null;
		  }
		}

		function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
		  var isCustomComponentTag;
		  var extraAttributeNames;

		  {
		    suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
		    isCustomComponentTag = isCustomComponent(tag, rawProps);
		    validatePropertiesInDevelopment(tag, rawProps);
		  } // TODO: Make sure that we check isMounted before firing any of these events.


		  switch (tag) {
		    case 'dialog':
		      listenToNonDelegatedEvent('cancel', domElement);
		      listenToNonDelegatedEvent('close', domElement);
		      break;

		    case 'iframe':
		    case 'object':
		    case 'embed':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the load event.
		      listenToNonDelegatedEvent('load', domElement);
		      break;

		    case 'video':
		    case 'audio':
		      // We listen to these events in case to ensure emulated bubble
		      // listeners still fire for all the media events.
		      for (var i = 0; i < mediaEventTypes.length; i++) {
		        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
		      }

		      break;

		    case 'source':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the error event.
		      listenToNonDelegatedEvent('error', domElement);
		      break;

		    case 'img':
		    case 'image':
		    case 'link':
		      // We listen to these events in case to ensure emulated bubble
		      // listeners still fire for error and load events.
		      listenToNonDelegatedEvent('error', domElement);
		      listenToNonDelegatedEvent('load', domElement);
		      break;

		    case 'details':
		      // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the toggle event.
		      listenToNonDelegatedEvent('toggle', domElement);
		      break;

		    case 'input':
		      initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;

		    case 'option':
		      validateProps(domElement, rawProps);
		      break;

		    case 'select':
		      initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;

		    case 'textarea':
		      initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
		      // listeners still fire for the invalid event.

		      listenToNonDelegatedEvent('invalid', domElement);

		      break;
		  }

		  assertValidProps(tag, rawProps);

		  {
		    extraAttributeNames = new Set();
		    var attributes = domElement.attributes;

		    for (var _i = 0; _i < attributes.length; _i++) {
		      var name = attributes[_i].name.toLowerCase();

		      switch (name) {
		        // Built-in SSR attribute is allowed
		        case 'data-reactroot':
		          break;
		        // Controlled attributes are not validated
		        // TODO: Only ignore them on controlled tags.

		        case 'value':
		          break;

		        case 'checked':
		          break;

		        case 'selected':
		          break;

		        default:
		          // Intentionally use the original name.
		          // See discussion in https://github.com/facebook/react/pull/10676.
		          extraAttributeNames.add(attributes[_i].name);
		      }
		    }
		  }

		  var updatePayload = null;

		  for (var propKey in rawProps) {
		    if (!rawProps.hasOwnProperty(propKey)) {
		      continue;
		    }

		    var nextProp = rawProps[propKey];

		    if (propKey === CHILDREN) {
		      // For text content children we compare against textContent. This
		      // might match additional HTML that is hidden when we read it using
		      // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
		      // satisfies our requirement. Our requirement is not to produce perfect
		      // HTML and attributes. Ideally we should preserve structure but it's
		      // ok not to if the visible content is still enough to indicate what
		      // even listeners these nodes might be wired up to.
		      // TODO: Warn if there is more than a single textNode as a child.
		      // TODO: Should we use domElement.firstChild.nodeValue to compare?
		      if (typeof nextProp === 'string') {
		        if (domElement.textContent !== nextProp) {
		          if ( !suppressHydrationWarning) {
		            warnForTextDifference(domElement.textContent, nextProp);
		          }

		          updatePayload = [CHILDREN, nextProp];
		        }
		      } else if (typeof nextProp === 'number') {
		        if (domElement.textContent !== '' + nextProp) {
		          if ( !suppressHydrationWarning) {
		            warnForTextDifference(domElement.textContent, nextProp);
		          }

		          updatePayload = [CHILDREN, '' + nextProp];
		        }
		      }
		    } else if (registrationNameDependencies.hasOwnProperty(propKey)) {
		      if (nextProp != null) {
		        if ( typeof nextProp !== 'function') {
		          warnForInvalidEventListener(propKey, nextProp);
		        }

		        if (propKey === 'onScroll') {
		          listenToNonDelegatedEvent('scroll', domElement);
		        }
		      }
		    } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
		    typeof isCustomComponentTag === 'boolean') {
		      // Validate that the properties correspond to their expected values.
		      var serverValue = void 0;
		      var propertyInfo = getPropertyInfo(propKey);

		      if (suppressHydrationWarning) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
		      // TODO: Only ignore them on controlled tags.
		      propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
		        var serverHTML = domElement.innerHTML;
		        var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

		        if (nextHtml != null) {
		          var expectedHTML = normalizeHTML(domElement, nextHtml);

		          if (expectedHTML !== serverHTML) {
		            warnForPropDifference(propKey, serverHTML, expectedHTML);
		          }
		        }
		      } else if (propKey === STYLE) {
		        // $FlowFixMe - Should be inferred as not undefined.
		        extraAttributeNames.delete(propKey);

		        if (canDiffStyleForHydrationWarning) {
		          var expectedStyle = createDangerousStringForStyles(nextProp);
		          serverValue = domElement.getAttribute('style');

		          if (expectedStyle !== serverValue) {
		            warnForPropDifference(propKey, serverValue, expectedStyle);
		          }
		        }
		      } else if (isCustomComponentTag) {
		        // $FlowFixMe - Should be inferred as not undefined.
		        extraAttributeNames.delete(propKey.toLowerCase());
		        serverValue = getValueForAttribute(domElement, propKey, nextProp);

		        if (nextProp !== serverValue) {
		          warnForPropDifference(propKey, serverValue, nextProp);
		        }
		      } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
		        var isMismatchDueToBadCasing = false;

		        if (propertyInfo !== null) {
		          // $FlowFixMe - Should be inferred as not undefined.
		          extraAttributeNames.delete(propertyInfo.attributeName);
		          serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
		        } else {
		          var ownNamespace = parentNamespace;

		          if (ownNamespace === HTML_NAMESPACE$1) {
		            ownNamespace = getIntrinsicNamespace(tag);
		          }

		          if (ownNamespace === HTML_NAMESPACE$1) {
		            // $FlowFixMe - Should be inferred as not undefined.
		            extraAttributeNames.delete(propKey.toLowerCase());
		          } else {
		            var standardName = getPossibleStandardName(propKey);

		            if (standardName !== null && standardName !== propKey) {
		              // If an SVG prop is supplied with bad casing, it will
		              // be successfully parsed from HTML, but will produce a mismatch
		              // (and would be incorrectly rendered on the client).
		              // However, we already warn about bad casing elsewhere.
		              // So we'll skip the misleading extra mismatch warning in this case.
		              isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.

		              extraAttributeNames.delete(standardName);
		            } // $FlowFixMe - Should be inferred as not undefined.


		            extraAttributeNames.delete(propKey);
		          }

		          serverValue = getValueForAttribute(domElement, propKey, nextProp);
		        }

		        if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
		          warnForPropDifference(propKey, serverValue, nextProp);
		        }
		      }
		    }
		  }

		  {
		    // $FlowFixMe - Should be inferred as not undefined.
		    if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
		      // $FlowFixMe - Should be inferred as not undefined.
		      warnForExtraAttributes(extraAttributeNames);
		    }
		  }

		  switch (tag) {
		    case 'input':
		      // TODO: Make sure we check if this is still unmounted or do any clean
		      // up necessary since we never stop tracking anymore.
		      track(domElement);
		      postMountWrapper(domElement, rawProps, true);
		      break;

		    case 'textarea':
		      // TODO: Make sure we check if this is still unmounted or do any clean
		      // up necessary since we never stop tracking anymore.
		      track(domElement);
		      postMountWrapper$3(domElement);
		      break;

		    case 'select':
		    case 'option':
		      // For input and textarea we current always set the value property at
		      // post mount to force it to diverge from attributes. However, for
		      // option and select we don't quite do the same thing and select
		      // is not resilient to the DOM state changing so we don't do that here.
		      // TODO: Consider not doing this for input and textarea.
		      break;

		    default:
		      if (typeof rawProps.onClick === 'function') {
		        // TODO: This cast may not be sound for SVG, MathML or custom elements.
		        trapClickOnNonInteractiveElement(domElement);
		      }

		      break;
		  }

		  return updatePayload;
		}
		function diffHydratedText(textNode, text) {
		  var isDifferent = textNode.nodeValue !== text;
		  return isDifferent;
		}
		function warnForUnmatchedText(textNode, text) {
		  {
		    warnForTextDifference(textNode.nodeValue, text);
		  }
		}
		function warnForDeletedHydratableElement(parentNode, child) {
		  {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
		  }
		}
		function warnForDeletedHydratableText(parentNode, child) {
		  {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
		  }
		}
		function warnForInsertedHydratedElement(parentNode, tag, props) {
		  {
		    if (didWarnInvalidHydration) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
		  }
		}
		function warnForInsertedHydratedText(parentNode, text) {
		  {
		    if (text === '') {
		      // We expect to insert empty text nodes since they're not represented in
		      // the HTML.
		      // TODO: Remove this special case if we can just avoid inserting empty
		      // text nodes.
		      return;
		    }

		    if (didWarnInvalidHydration) {
		      return;
		    }

		    didWarnInvalidHydration = true;

		    error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
		  }
		}
		function restoreControlledState$3(domElement, tag, props) {
		  switch (tag) {
		    case 'input':
		      restoreControlledState(domElement, props);
		      return;

		    case 'textarea':
		      restoreControlledState$2(domElement, props);
		      return;

		    case 'select':
		      restoreControlledState$1(domElement, props);
		      return;
		  }
		}

		var validateDOMNesting = function () {};

		var updatedAncestorInfo = function () {};

		{
		  // This validation code was written based on the HTML5 parsing spec:
		  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
		  //
		  // Note: this does not catch all invalid nesting, nor does it try to (as it's
		  // not clear what practical benefit doing so provides); instead, we warn only
		  // for cases where the parser will give a parse tree differing from what React
		  // intended. For example, <b><div></div></b> is invalid but we don't warn
		  // because it still parses correctly; we do warn for other cases like nested
		  // <p> tags where the beginning of the second element implicitly closes the
		  // first, causing a confusing mess.
		  // https://html.spec.whatwg.org/multipage/syntax.html#special
		  var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope

		  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
		  // TODO: Distinguish by namespace here -- for <title>, including it here
		  // errs on the side of fewer warnings
		  'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope

		  var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags

		  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
		  var emptyAncestorInfo = {
		    current: null,
		    formTag: null,
		    aTagInScope: null,
		    buttonTagInScope: null,
		    nobrTagInScope: null,
		    pTagInButtonScope: null,
		    listItemTagAutoclosing: null,
		    dlItemTagAutoclosing: null
		  };

		  updatedAncestorInfo = function (oldInfo, tag) {
		    var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);

		    var info = {
		      tag: tag
		    };

		    if (inScopeTags.indexOf(tag) !== -1) {
		      ancestorInfo.aTagInScope = null;
		      ancestorInfo.buttonTagInScope = null;
		      ancestorInfo.nobrTagInScope = null;
		    }

		    if (buttonScopeTags.indexOf(tag) !== -1) {
		      ancestorInfo.pTagInButtonScope = null;
		    } // See rules for 'li', 'dd', 'dt' start tags in
		    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


		    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
		      ancestorInfo.listItemTagAutoclosing = null;
		      ancestorInfo.dlItemTagAutoclosing = null;
		    }

		    ancestorInfo.current = info;

		    if (tag === 'form') {
		      ancestorInfo.formTag = info;
		    }

		    if (tag === 'a') {
		      ancestorInfo.aTagInScope = info;
		    }

		    if (tag === 'button') {
		      ancestorInfo.buttonTagInScope = info;
		    }

		    if (tag === 'nobr') {
		      ancestorInfo.nobrTagInScope = info;
		    }

		    if (tag === 'p') {
		      ancestorInfo.pTagInButtonScope = info;
		    }

		    if (tag === 'li') {
		      ancestorInfo.listItemTagAutoclosing = info;
		    }

		    if (tag === 'dd' || tag === 'dt') {
		      ancestorInfo.dlItemTagAutoclosing = info;
		    }

		    return ancestorInfo;
		  };
		  /**
		   * Returns whether
		   */


		  var isTagValidWithParent = function (tag, parentTag) {
		    // First, let's check if we're in an unusual parsing mode...
		    switch (parentTag) {
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
		      case 'select':
		        return tag === 'option' || tag === 'optgroup' || tag === '#text';

		      case 'optgroup':
		        return tag === 'option' || tag === '#text';
		      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
		      // but

		      case 'option':
		        return tag === '#text';
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
		      // No special behavior since these rules fall back to "in body" mode for
		      // all except special table nodes which cause bad parsing behavior anyway.
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr

		      case 'tr':
		        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody

		      case 'tbody':
		      case 'thead':
		      case 'tfoot':
		        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup

		      case 'colgroup':
		        return tag === 'col' || tag === 'template';
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable

		      case 'table':
		        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
		      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead

		      case 'head':
		        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
		      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element

		      case 'html':
		        return tag === 'head' || tag === 'body' || tag === 'frameset';

		      case 'frameset':
		        return tag === 'frame';

		      case '#document':
		        return tag === 'html';
		    } // Probably in the "in body" parsing mode, so we outlaw only tag combos
		    // where the parsing rules cause implicit opens or closes to be added.
		    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


		    switch (tag) {
		      case 'h1':
		      case 'h2':
		      case 'h3':
		      case 'h4':
		      case 'h5':
		      case 'h6':
		        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';

		      case 'rp':
		      case 'rt':
		        return impliedEndTags.indexOf(parentTag) === -1;

		      case 'body':
		      case 'caption':
		      case 'col':
		      case 'colgroup':
		      case 'frameset':
		      case 'frame':
		      case 'head':
		      case 'html':
		      case 'tbody':
		      case 'td':
		      case 'tfoot':
		      case 'th':
		      case 'thead':
		      case 'tr':
		        // These tags are only valid with a few parents that have special child
		        // parsing rules -- if we're down here, then none of those matched and
		        // so we allow it only if we don't know what the parent is, as all other
		        // cases are invalid.
		        return parentTag == null;
		    }

		    return true;
		  };
		  /**
		   * Returns whether
		   */


		  var findInvalidAncestorForTag = function (tag, ancestorInfo) {
		    switch (tag) {
		      case 'address':
		      case 'article':
		      case 'aside':
		      case 'blockquote':
		      case 'center':
		      case 'details':
		      case 'dialog':
		      case 'dir':
		      case 'div':
		      case 'dl':
		      case 'fieldset':
		      case 'figcaption':
		      case 'figure':
		      case 'footer':
		      case 'header':
		      case 'hgroup':
		      case 'main':
		      case 'menu':
		      case 'nav':
		      case 'ol':
		      case 'p':
		      case 'section':
		      case 'summary':
		      case 'ul':
		      case 'pre':
		      case 'listing':
		      case 'table':
		      case 'hr':
		      case 'xmp':
		      case 'h1':
		      case 'h2':
		      case 'h3':
		      case 'h4':
		      case 'h5':
		      case 'h6':
		        return ancestorInfo.pTagInButtonScope;

		      case 'form':
		        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;

		      case 'li':
		        return ancestorInfo.listItemTagAutoclosing;

		      case 'dd':
		      case 'dt':
		        return ancestorInfo.dlItemTagAutoclosing;

		      case 'button':
		        return ancestorInfo.buttonTagInScope;

		      case 'a':
		        // Spec says something about storing a list of markers, but it sounds
		        // equivalent to this check.
		        return ancestorInfo.aTagInScope;

		      case 'nobr':
		        return ancestorInfo.nobrTagInScope;
		    }

		    return null;
		  };

		  var didWarn$1 = {};

		  validateDOMNesting = function (childTag, childText, ancestorInfo) {
		    ancestorInfo = ancestorInfo || emptyAncestorInfo;
		    var parentInfo = ancestorInfo.current;
		    var parentTag = parentInfo && parentInfo.tag;

		    if (childText != null) {
		      if (childTag != null) {
		        error('validateDOMNesting: when childText is passed, childTag should be null');
		      }

		      childTag = '#text';
		    }

		    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
		    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
		    var invalidParentOrAncestor = invalidParent || invalidAncestor;

		    if (!invalidParentOrAncestor) {
		      return;
		    }

		    var ancestorTag = invalidParentOrAncestor.tag;
		    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;

		    if (didWarn$1[warnKey]) {
		      return;
		    }

		    didWarn$1[warnKey] = true;
		    var tagDisplayName = childTag;
		    var whitespaceInfo = '';

		    if (childTag === '#text') {
		      if (/\S/.test(childText)) {
		        tagDisplayName = 'Text nodes';
		      } else {
		        tagDisplayName = 'Whitespace text nodes';
		        whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
		      }
		    } else {
		      tagDisplayName = '<' + childTag + '>';
		    }

		    if (invalidParent) {
		      var info = '';

		      if (ancestorTag === 'table' && childTag === 'tr') {
		        info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
		      }

		      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
		    } else {
		      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
		    }
		  };
		}

		var SUPPRESS_HYDRATION_WARNING$1;

		{
		  SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
		}

		var SUSPENSE_START_DATA = '$';
		var SUSPENSE_END_DATA = '/$';
		var SUSPENSE_PENDING_START_DATA = '$?';
		var SUSPENSE_FALLBACK_START_DATA = '$!';
		var STYLE$1 = 'style';
		var eventsEnabled = null;
		var selectionInformation = null;

		function shouldAutoFocusHostComponent(type, props) {
		  switch (type) {
		    case 'button':
		    case 'input':
		    case 'select':
		    case 'textarea':
		      return !!props.autoFocus;
		  }

		  return false;
		}
		function getRootHostContext(rootContainerInstance) {
		  var type;
		  var namespace;
		  var nodeType = rootContainerInstance.nodeType;

		  switch (nodeType) {
		    case DOCUMENT_NODE:
		    case DOCUMENT_FRAGMENT_NODE:
		      {
		        type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
		        var root = rootContainerInstance.documentElement;
		        namespace = root ? root.namespaceURI : getChildNamespace(null, '');
		        break;
		      }

		    default:
		      {
		        var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
		        var ownNamespace = container.namespaceURI || null;
		        type = container.tagName;
		        namespace = getChildNamespace(ownNamespace, type);
		        break;
		      }
		  }

		  {
		    var validatedTag = type.toLowerCase();
		    var ancestorInfo = updatedAncestorInfo(null, validatedTag);
		    return {
		      namespace: namespace,
		      ancestorInfo: ancestorInfo
		    };
		  }
		}
		function getChildHostContext(parentHostContext, type, rootContainerInstance) {
		  {
		    var parentHostContextDev = parentHostContext;
		    var namespace = getChildNamespace(parentHostContextDev.namespace, type);
		    var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
		    return {
		      namespace: namespace,
		      ancestorInfo: ancestorInfo
		    };
		  }
		}
		function getPublicInstance(instance) {
		  return instance;
		}
		function prepareForCommit(containerInfo) {
		  eventsEnabled = isEnabled();
		  selectionInformation = getSelectionInformation();
		  var activeInstance = null;

		  setEnabled(false);
		  return activeInstance;
		}
		function resetAfterCommit(containerInfo) {
		  restoreSelection(selectionInformation);
		  setEnabled(eventsEnabled);
		  eventsEnabled = null;
		  selectionInformation = null;
		}
		function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
		  var parentNamespace;

		  {
		    // TODO: take namespace into account when validating.
		    var hostContextDev = hostContext;
		    validateDOMNesting(type, null, hostContextDev.ancestorInfo);

		    if (typeof props.children === 'string' || typeof props.children === 'number') {
		      var string = '' + props.children;
		      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
		      validateDOMNesting(null, string, ownAncestorInfo);
		    }

		    parentNamespace = hostContextDev.namespace;
		  }

		  var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
		  precacheFiberNode(internalInstanceHandle, domElement);
		  updateFiberProps(domElement, props);
		  return domElement;
		}
		function appendInitialChild(parentInstance, child) {
		  parentInstance.appendChild(child);
		}
		function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
		  setInitialProperties(domElement, type, props, rootContainerInstance);
		  return shouldAutoFocusHostComponent(type, props);
		}
		function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
		  {
		    var hostContextDev = hostContext;

		    if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
		      var string = '' + newProps.children;
		      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
		      validateDOMNesting(null, string, ownAncestorInfo);
		    }
		  }

		  return diffProperties(domElement, type, oldProps, newProps);
		}
		function shouldSetTextContent(type, props) {
		  return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
		}
		function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
		  {
		    var hostContextDev = hostContext;
		    validateDOMNesting(null, text, hostContextDev.ancestorInfo);
		  }

		  var textNode = createTextNode(text, rootContainerInstance);
		  precacheFiberNode(internalInstanceHandle, textNode);
		  return textNode;
		}
		// if a component just imports ReactDOM (e.g. for findDOMNode).
		// Some environments might not have setTimeout or clearTimeout.

		var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
		var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
		var noTimeout = -1; // -------------------
		function commitMount(domElement, type, newProps, internalInstanceHandle) {
		  // Despite the naming that might imply otherwise, this method only
		  // fires if there is an `Update` effect scheduled during mounting.
		  // This happens if `finalizeInitialChildren` returns `true` (which it
		  // does to implement the `autoFocus` attribute on the client). But
		  // there are also other cases when this might happen (such as patching
		  // up text content during hydration mismatch). So we'll check this again.
		  if (shouldAutoFocusHostComponent(type, newProps)) {
		    domElement.focus();
		  }
		}
		function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
		  // Update the props handle so that we know which props are the ones with
		  // with current event handlers.
		  updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.

		  updateProperties(domElement, updatePayload, type, oldProps, newProps);
		}
		function resetTextContent(domElement) {
		  setTextContent(domElement, '');
		}
		function commitTextUpdate(textInstance, oldText, newText) {
		  textInstance.nodeValue = newText;
		}
		function appendChild(parentInstance, child) {
		  parentInstance.appendChild(child);
		}
		function appendChildToContainer(container, child) {
		  var parentNode;

		  if (container.nodeType === COMMENT_NODE) {
		    parentNode = container.parentNode;
		    parentNode.insertBefore(child, container);
		  } else {
		    parentNode = container;
		    parentNode.appendChild(child);
		  } // This container might be used for a portal.
		  // If something inside a portal is clicked, that click should bubble
		  // through the React tree. However, on Mobile Safari the click would
		  // never bubble through the *DOM* tree unless an ancestor with onclick
		  // event exists. So we wouldn't see it and dispatch it.
		  // This is why we ensure that non React root containers have inline onclick
		  // defined.
		  // https://github.com/facebook/react/issues/11918


		  var reactRootContainer = container._reactRootContainer;

		  if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
		    // TODO: This cast may not be sound for SVG, MathML or custom elements.
		    trapClickOnNonInteractiveElement(parentNode);
		  }
		}
		function insertBefore(parentInstance, child, beforeChild) {
		  parentInstance.insertBefore(child, beforeChild);
		}
		function insertInContainerBefore(container, child, beforeChild) {
		  if (container.nodeType === COMMENT_NODE) {
		    container.parentNode.insertBefore(child, beforeChild);
		  } else {
		    container.insertBefore(child, beforeChild);
		  }
		}

		function removeChild(parentInstance, child) {
		  parentInstance.removeChild(child);
		}
		function removeChildFromContainer(container, child) {
		  if (container.nodeType === COMMENT_NODE) {
		    container.parentNode.removeChild(child);
		  } else {
		    container.removeChild(child);
		  }
		}
		function hideInstance(instance) {
		  // TODO: Does this work for all element types? What about MathML? Should we
		  // pass host context to this method?
		  instance = instance;
		  var style = instance.style;

		  if (typeof style.setProperty === 'function') {
		    style.setProperty('display', 'none', 'important');
		  } else {
		    style.display = 'none';
		  }
		}
		function hideTextInstance(textInstance) {
		  textInstance.nodeValue = '';
		}
		function unhideInstance(instance, props) {
		  instance = instance;
		  var styleProp = props[STYLE$1];
		  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
		  instance.style.display = dangerousStyleValue('display', display);
		}
		function unhideTextInstance(textInstance, text) {
		  textInstance.nodeValue = text;
		}
		function clearContainer(container) {
		  if (container.nodeType === ELEMENT_NODE) {
		    container.textContent = '';
		  } else if (container.nodeType === DOCUMENT_NODE) {
		    var body = container.body;

		    if (body != null) {
		      body.textContent = '';
		    }
		  }
		} // -------------------
		function canHydrateInstance(instance, type, props) {
		  if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
		    return null;
		  } // This has now been refined to an element node.


		  return instance;
		}
		function canHydrateTextInstance(instance, text) {
		  if (text === '' || instance.nodeType !== TEXT_NODE) {
		    // Empty strings are not parsed by HTML so there won't be a correct match here.
		    return null;
		  } // This has now been refined to a text node.


		  return instance;
		}
		function isSuspenseInstancePending(instance) {
		  return instance.data === SUSPENSE_PENDING_START_DATA;
		}
		function isSuspenseInstanceFallback(instance) {
		  return instance.data === SUSPENSE_FALLBACK_START_DATA;
		}

		function getNextHydratable(node) {
		  // Skip non-hydratable nodes.
		  for (; node != null; node = node.nextSibling) {
		    var nodeType = node.nodeType;

		    if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
		      break;
		    }
		  }

		  return node;
		}

		function getNextHydratableSibling(instance) {
		  return getNextHydratable(instance.nextSibling);
		}
		function getFirstHydratableChild(parentInstance) {
		  return getNextHydratable(parentInstance.firstChild);
		}
		function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
		  precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
		  // get attached.

		  updateFiberProps(instance, props);
		  var parentNamespace;

		  {
		    var hostContextDev = hostContext;
		    parentNamespace = hostContextDev.namespace;
		  }

		  return diffHydratedProperties(instance, type, props, parentNamespace);
		}
		function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
		  precacheFiberNode(internalInstanceHandle, textInstance);
		  return diffHydratedText(textInstance, text);
		}
		function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
		  var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
		  // There might be nested nodes so we need to keep track of how
		  // deep we are and only break out when we're back on top.

		  var depth = 0;

		  while (node) {
		    if (node.nodeType === COMMENT_NODE) {
		      var data = node.data;

		      if (data === SUSPENSE_END_DATA) {
		        if (depth === 0) {
		          return getNextHydratableSibling(node);
		        } else {
		          depth--;
		        }
		      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
		        depth++;
		      }
		    }

		    node = node.nextSibling;
		  } // TODO: Warn, we didn't find the end comment boundary.


		  return null;
		} // Returns the SuspenseInstance if this node is a direct child of a
		// SuspenseInstance. I.e. if its previous sibling is a Comment with
		// SUSPENSE_x_START_DATA. Otherwise, null.

		function getParentSuspenseInstance(targetInstance) {
		  var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
		  // There might be nested nodes so we need to keep track of how
		  // deep we are and only break out when we're back on top.

		  var depth = 0;

		  while (node) {
		    if (node.nodeType === COMMENT_NODE) {
		      var data = node.data;

		      if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
		        if (depth === 0) {
		          return node;
		        } else {
		          depth--;
		        }
		      } else if (data === SUSPENSE_END_DATA) {
		        depth++;
		      }
		    }

		    node = node.previousSibling;
		  }

		  return null;
		}
		function commitHydratedContainer(container) {
		  // Retry if any event replaying was blocked on this.
		  retryIfBlockedOn(container);
		}
		function commitHydratedSuspenseInstance(suspenseInstance) {
		  // Retry if any event replaying was blocked on this.
		  retryIfBlockedOn(suspenseInstance);
		}
		function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
		  {
		    warnForUnmatchedText(textInstance, text);
		  }
		}
		function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
		  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
		    warnForUnmatchedText(textInstance, text);
		  }
		}
		function didNotHydrateContainerInstance(parentContainer, instance) {
		  {
		    if (instance.nodeType === ELEMENT_NODE) {
		      warnForDeletedHydratableElement(parentContainer, instance);
		    } else if (instance.nodeType === COMMENT_NODE) ; else {
		      warnForDeletedHydratableText(parentContainer, instance);
		    }
		  }
		}
		function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
		  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
		    if (instance.nodeType === ELEMENT_NODE) {
		      warnForDeletedHydratableElement(parentInstance, instance);
		    } else if (instance.nodeType === COMMENT_NODE) ; else {
		      warnForDeletedHydratableText(parentInstance, instance);
		    }
		  }
		}
		function didNotFindHydratableContainerInstance(parentContainer, type, props) {
		  {
		    warnForInsertedHydratedElement(parentContainer, type);
		  }
		}
		function didNotFindHydratableContainerTextInstance(parentContainer, text) {
		  {
		    warnForInsertedHydratedText(parentContainer, text);
		  }
		}
		function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
		  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
		    warnForInsertedHydratedElement(parentInstance, type);
		  }
		}
		function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
		  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
		    warnForInsertedHydratedText(parentInstance, text);
		  }
		}
		function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
		  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
		}
		var clientId = 0;
		function makeClientIdInDEV(warnOnAccessInDEV) {
		  var id = 'r:' + (clientId++).toString(36);
		  return {
		    toString: function () {
		      warnOnAccessInDEV();
		      return id;
		    },
		    valueOf: function () {
		      warnOnAccessInDEV();
		      return id;
		    }
		  };
		}
		function isOpaqueHydratingObject(value) {
		  return value !== null && typeof value === 'object' && value.$$typeof === REACT_OPAQUE_ID_TYPE;
		}
		function makeOpaqueHydratingObject(attemptToReadValue) {
		  return {
		    $$typeof: REACT_OPAQUE_ID_TYPE,
		    toString: attemptToReadValue,
		    valueOf: attemptToReadValue
		  };
		}
		function preparePortalMount(portalInstance) {
		  {
		    listenToAllSupportedEvents(portalInstance);
		  }
		}

		var randomKey = Math.random().toString(36).slice(2);
		var internalInstanceKey = '__reactFiber$' + randomKey;
		var internalPropsKey = '__reactProps$' + randomKey;
		var internalContainerInstanceKey = '__reactContainer$' + randomKey;
		var internalEventHandlersKey = '__reactEvents$' + randomKey;
		function precacheFiberNode(hostInst, node) {
		  node[internalInstanceKey] = hostInst;
		}
		function markContainerAsRoot(hostRoot, node) {
		  node[internalContainerInstanceKey] = hostRoot;
		}
		function unmarkContainerAsRoot(node) {
		  node[internalContainerInstanceKey] = null;
		}
		function isContainerMarkedAsRoot(node) {
		  return !!node[internalContainerInstanceKey];
		} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
		// If the target node is part of a hydrated or not yet rendered subtree, then
		// this may also return a SuspenseComponent or HostRoot to indicate that.
		// Conceptually the HostRoot fiber is a child of the Container node. So if you
		// pass the Container node as the targetNode, you will not actually get the
		// HostRoot back. To get to the HostRoot, you need to pass a child of it.
		// The same thing applies to Suspense boundaries.

		function getClosestInstanceFromNode(targetNode) {
		  var targetInst = targetNode[internalInstanceKey];

		  if (targetInst) {
		    // Don't return HostRoot or SuspenseComponent here.
		    return targetInst;
		  } // If the direct event target isn't a React owned DOM node, we need to look
		  // to see if one of its parents is a React owned DOM node.


		  var parentNode = targetNode.parentNode;

		  while (parentNode) {
		    // We'll check if this is a container root that could include
		    // React nodes in the future. We need to check this first because
		    // if we're a child of a dehydrated container, we need to first
		    // find that inner container before moving on to finding the parent
		    // instance. Note that we don't check this field on  the targetNode
		    // itself because the fibers are conceptually between the container
		    // node and the first child. It isn't surrounding the container node.
		    // If it's not a container, we check if it's an instance.
		    targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];

		    if (targetInst) {
		      // Since this wasn't the direct target of the event, we might have
		      // stepped past dehydrated DOM nodes to get here. However they could
		      // also have been non-React nodes. We need to answer which one.
		      // If we the instance doesn't have any children, then there can't be
		      // a nested suspense boundary within it. So we can use this as a fast
		      // bailout. Most of the time, when people add non-React children to
		      // the tree, it is using a ref to a child-less DOM node.
		      // Normally we'd only need to check one of the fibers because if it
		      // has ever gone from having children to deleting them or vice versa
		      // it would have deleted the dehydrated boundary nested inside already.
		      // However, since the HostRoot starts out with an alternate it might
		      // have one on the alternate so we need to check in case this was a
		      // root.
		      var alternate = targetInst.alternate;

		      if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
		        // Next we need to figure out if the node that skipped past is
		        // nested within a dehydrated boundary and if so, which one.
		        var suspenseInstance = getParentSuspenseInstance(targetNode);

		        while (suspenseInstance !== null) {
		          // We found a suspense instance. That means that we haven't
		          // hydrated it yet. Even though we leave the comments in the
		          // DOM after hydrating, and there are boundaries in the DOM
		          // that could already be hydrated, we wouldn't have found them
		          // through this pass since if the target is hydrated it would
		          // have had an internalInstanceKey on it.
		          // Let's get the fiber associated with the SuspenseComponent
		          // as the deepest instance.
		          var targetSuspenseInst = suspenseInstance[internalInstanceKey];

		          if (targetSuspenseInst) {
		            return targetSuspenseInst;
		          } // If we don't find a Fiber on the comment, it might be because
		          // we haven't gotten to hydrate it yet. There might still be a
		          // parent boundary that hasn't above this one so we need to find
		          // the outer most that is known.


		          suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
		          // host component also hasn't hydrated yet. We can return it
		          // below since it will bail out on the isMounted check later.
		        }
		      }

		      return targetInst;
		    }

		    targetNode = parentNode;
		    parentNode = targetNode.parentNode;
		  }

		  return null;
		}
		/**
		 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
		 * instance, or null if the node was not rendered by this React.
		 */

		function getInstanceFromNode(node) {
		  var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];

		  if (inst) {
		    if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
		      return inst;
		    } else {
		      return null;
		    }
		  }

		  return null;
		}
		/**
		 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
		 * DOM node.
		 */

		function getNodeFromInstance(inst) {
		  if (inst.tag === HostComponent || inst.tag === HostText) {
		    // In Fiber this, is just the state node right now. We assume it will be
		    // a host component or host text.
		    return inst.stateNode;
		  } // Without this first invariant, passing a non-DOM-component triggers the next
		  // invariant for a missing parent, which is super confusing.


		  {
		    {
		      throw Error( "getNodeFromInstance: Invalid argument." );
		    }
		  }
		}
		function getFiberCurrentPropsFromNode(node) {
		  return node[internalPropsKey] || null;
		}
		function updateFiberProps(node, props) {
		  node[internalPropsKey] = props;
		}
		function getEventListenerSet(node) {
		  var elementListenerSet = node[internalEventHandlersKey];

		  if (elementListenerSet === undefined) {
		    elementListenerSet = node[internalEventHandlersKey] = new Set();
		  }

		  return elementListenerSet;
		}

		var loggedTypeFailures = {};
		var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

		function setCurrentlyValidatingElement(element) {
		  {
		    if (element) {
		      var owner = element._owner;
		      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
		      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
		    } else {
		      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
		    }
		  }
		}

		function checkPropTypes(typeSpecs, values, location, componentName, element) {
		  {
		    // $FlowFixMe This is okay but Flow doesn't know it.
		    var has = Function.call.bind(Object.prototype.hasOwnProperty);

		    for (var typeSpecName in typeSpecs) {
		      if (has(typeSpecs, typeSpecName)) {
		        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
		        // fail the render phase where it didn't fail before. So we log it.
		        // After these have been cleaned up, we'll let them throw.

		        try {
		          // This is intentionally an invariant that gets caught. It's the same
		          // behavior as without this statement except with a better message.
		          if (typeof typeSpecs[typeSpecName] !== 'function') {
		            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
		            err.name = 'Invariant Violation';
		            throw err;
		          }

		          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
		        } catch (ex) {
		          error$1 = ex;
		        }

		        if (error$1 && !(error$1 instanceof Error)) {
		          setCurrentlyValidatingElement(element);

		          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

		          setCurrentlyValidatingElement(null);
		        }

		        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
		          // Only monitor this failure once because there tends to be a lot of the
		          // same error.
		          loggedTypeFailures[error$1.message] = true;
		          setCurrentlyValidatingElement(element);

		          error('Failed %s type: %s', location, error$1.message);

		          setCurrentlyValidatingElement(null);
		        }
		      }
		    }
		  }
		}

		var valueStack = [];
		var fiberStack;

		{
		  fiberStack = [];
		}

		var index = -1;

		function createCursor(defaultValue) {
		  return {
		    current: defaultValue
		  };
		}

		function pop(cursor, fiber) {
		  if (index < 0) {
		    {
		      error('Unexpected pop.');
		    }

		    return;
		  }

		  {
		    if (fiber !== fiberStack[index]) {
		      error('Unexpected Fiber popped.');
		    }
		  }

		  cursor.current = valueStack[index];
		  valueStack[index] = null;

		  {
		    fiberStack[index] = null;
		  }

		  index--;
		}

		function push(cursor, value, fiber) {
		  index++;
		  valueStack[index] = cursor.current;

		  {
		    fiberStack[index] = fiber;
		  }

		  cursor.current = value;
		}

		var warnedAboutMissingGetChildContext;

		{
		  warnedAboutMissingGetChildContext = {};
		}

		var emptyContextObject = {};

		{
		  Object.freeze(emptyContextObject);
		} // A cursor to the current merged context object on the stack.


		var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.

		var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
		// We use this to get access to the parent context after we have already
		// pushed the next context provider, and now need to merge their contexts.

		var previousContext = emptyContextObject;

		function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
		  {
		    if (didPushOwnContextIfProvider && isContextProvider(Component)) {
		      // If the fiber is a context provider itself, when we read its context
		      // we may have already pushed its own child context on the stack. A context
		      // provider should not "see" its own child context. Therefore we read the
		      // previous (parent) context instead for a context provider.
		      return previousContext;
		    }

		    return contextStackCursor.current;
		  }
		}

		function cacheContext(workInProgress, unmaskedContext, maskedContext) {
		  {
		    var instance = workInProgress.stateNode;
		    instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
		    instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
		  }
		}

		function getMaskedContext(workInProgress, unmaskedContext) {
		  {
		    var type = workInProgress.type;
		    var contextTypes = type.contextTypes;

		    if (!contextTypes) {
		      return emptyContextObject;
		    } // Avoid recreating masked context unless unmasked context has changed.
		    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
		    // This may trigger infinite loops if componentWillReceiveProps calls setState.


		    var instance = workInProgress.stateNode;

		    if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
		      return instance.__reactInternalMemoizedMaskedChildContext;
		    }

		    var context = {};

		    for (var key in contextTypes) {
		      context[key] = unmaskedContext[key];
		    }

		    {
		      var name = getComponentName(type) || 'Unknown';
		      checkPropTypes(contextTypes, context, 'context', name);
		    } // Cache unmasked context so we can avoid recreating masked context unless necessary.
		    // Context is created before the class component is instantiated so check for instance.


		    if (instance) {
		      cacheContext(workInProgress, unmaskedContext, context);
		    }

		    return context;
		  }
		}

		function hasContextChanged() {
		  {
		    return didPerformWorkStackCursor.current;
		  }
		}

		function isContextProvider(type) {
		  {
		    var childContextTypes = type.childContextTypes;
		    return childContextTypes !== null && childContextTypes !== undefined;
		  }
		}

		function popContext(fiber) {
		  {
		    pop(didPerformWorkStackCursor, fiber);
		    pop(contextStackCursor, fiber);
		  }
		}

		function popTopLevelContextObject(fiber) {
		  {
		    pop(didPerformWorkStackCursor, fiber);
		    pop(contextStackCursor, fiber);
		  }
		}

		function pushTopLevelContextObject(fiber, context, didChange) {
		  {
		    if (!(contextStackCursor.current === emptyContextObject)) {
		      {
		        throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }

		    push(contextStackCursor, context, fiber);
		    push(didPerformWorkStackCursor, didChange, fiber);
		  }
		}

		function processChildContext(fiber, type, parentContext) {
		  {
		    var instance = fiber.stateNode;
		    var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
		    // It has only been added in Fiber to match the (unintentional) behavior in Stack.

		    if (typeof instance.getChildContext !== 'function') {
		      {
		        var componentName = getComponentName(type) || 'Unknown';

		        if (!warnedAboutMissingGetChildContext[componentName]) {
		          warnedAboutMissingGetChildContext[componentName] = true;

		          error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
		        }
		      }

		      return parentContext;
		    }

		    var childContext = instance.getChildContext();

		    for (var contextKey in childContext) {
		      if (!(contextKey in childContextTypes)) {
		        {
		          throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
		        }
		      }
		    }

		    {
		      var name = getComponentName(type) || 'Unknown';
		      checkPropTypes(childContextTypes, childContext, 'child context', name);
		    }

		    return _assign({}, parentContext, childContext);
		  }
		}

		function pushContextProvider(workInProgress) {
		  {
		    var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
		    // If the instance does not exist yet, we will push null at first,
		    // and replace it on the stack later when invalidating the context.

		    var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
		    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.

		    previousContext = contextStackCursor.current;
		    push(contextStackCursor, memoizedMergedChildContext, workInProgress);
		    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
		    return true;
		  }
		}

		function invalidateContextProvider(workInProgress, type, didChange) {
		  {
		    var instance = workInProgress.stateNode;

		    if (!instance) {
		      {
		        throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }

		    if (didChange) {
		      // Merge parent and own context.
		      // Skip this if we're not updating due to sCU.
		      // This avoids unnecessarily recomputing memoized values.
		      var mergedContext = processChildContext(workInProgress, type, previousContext);
		      instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
		      // It is important to unwind the context in the reverse order.

		      pop(didPerformWorkStackCursor, workInProgress);
		      pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.

		      push(contextStackCursor, mergedContext, workInProgress);
		      push(didPerformWorkStackCursor, didChange, workInProgress);
		    } else {
		      pop(didPerformWorkStackCursor, workInProgress);
		      push(didPerformWorkStackCursor, didChange, workInProgress);
		    }
		  }
		}

		function findCurrentUnmaskedContext(fiber) {
		  {
		    // Currently this is only used with renderSubtreeIntoContainer; not sure if it
		    // makes sense elsewhere
		    if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
		      {
		        throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }

		    var node = fiber;

		    do {
		      switch (node.tag) {
		        case HostRoot:
		          return node.stateNode.context;

		        case ClassComponent:
		          {
		            var Component = node.type;

		            if (isContextProvider(Component)) {
		              return node.stateNode.__reactInternalMemoizedMergedChildContext;
		            }

		            break;
		          }
		      }

		      node = node.return;
		    } while (node !== null);

		    {
		      {
		        throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }
		  }
		}

		var LegacyRoot = 0;
		var BlockingRoot = 1;
		var ConcurrentRoot = 2;

		var rendererID = null;
		var injectedHook = null;
		var hasLoggedError = false;
		var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
		function injectInternals(internals) {
		  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
		    // No DevTools
		    return false;
		  }

		  var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;

		  if (hook.isDisabled) {
		    // This isn't a real property on the hook, but it can be set to opt out
		    // of DevTools integration and associated warnings and logs.
		    // https://github.com/facebook/react/issues/3877
		    return true;
		  }

		  if (!hook.supportsFiber) {
		    {
		      error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');
		    } // DevTools exists, even though it doesn't support Fiber.


		    return true;
		  }

		  try {
		    rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.

		    injectedHook = hook;
		  } catch (err) {
		    // Catch all errors because it is unsafe to throw during initialization.
		    {
		      error('React instrumentation encountered an error: %s.', err);
		    }
		  } // DevTools exists


		  return true;
		}
		function onScheduleRoot(root, children) {
		  {
		    if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {
		      try {
		        injectedHook.onScheduleFiberRoot(rendererID, root, children);
		      } catch (err) {
		        if ( !hasLoggedError) {
		          hasLoggedError = true;

		          error('React instrumentation encountered an error: %s', err);
		        }
		      }
		    }
		  }
		}
		function onCommitRoot(root, priorityLevel) {
		  if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {
		    try {
		      var didError = (root.current.flags & DidCapture) === DidCapture;

		      if (enableProfilerTimer) {
		        injectedHook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
		      }
		    } catch (err) {
		      {
		        if (!hasLoggedError) {
		          hasLoggedError = true;

		          error('React instrumentation encountered an error: %s', err);
		        }
		      }
		    }
		  }
		}
		function onCommitUnmount(fiber) {
		  if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {
		    try {
		      injectedHook.onCommitFiberUnmount(rendererID, fiber);
		    } catch (err) {
		      {
		        if (!hasLoggedError) {
		          hasLoggedError = true;

		          error('React instrumentation encountered an error: %s', err);
		        }
		      }
		    }
		  }
		}

		var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
		    Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
		    Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
		    Scheduler_shouldYield = Scheduler.unstable_shouldYield,
		    Scheduler_requestPaint = Scheduler.unstable_requestPaint,
		    Scheduler_now$1 = Scheduler.unstable_now,
		    Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
		    Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
		    Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
		    Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
		    Scheduler_LowPriority = Scheduler.unstable_LowPriority,
		    Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;

		{
		  // Provide explicit error message when production+profiling bundle of e.g.
		  // react-dom is used with production (non-profiling) bundle of
		  // scheduler/tracing
		  if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
		    {
		      throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
		    }
		  }
		}

		var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
		// ascending numbers so we can compare them like numbers. They start at 90 to
		// avoid clashing with Scheduler's priorities.

		var ImmediatePriority$1 = 99;
		var UserBlockingPriority$2 = 98;
		var NormalPriority$1 = 97;
		var LowPriority$1 = 96;
		var IdlePriority$1 = 95; // NoPriority is the absence of priority. Also React-only.

		var NoPriority$1 = 90;
		var shouldYield = Scheduler_shouldYield;
		var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
		Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
		var syncQueue = null;
		var immediateQueueCallbackNode = null;
		var isFlushingSyncQueue = false;
		var initialTimeMs$1 = Scheduler_now$1(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
		// This will be the case for modern browsers that support `performance.now`. In
		// older browsers, Scheduler falls back to `Date.now`, which returns a Unix
		// timestamp. In that case, subtract the module initialization time to simulate
		// the behavior of performance.now and keep our times small enough to fit
		// within 32 bits.
		// TODO: Consider lifting this into Scheduler.

		var now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function () {
		  return Scheduler_now$1() - initialTimeMs$1;
		};
		function getCurrentPriorityLevel() {
		  switch (Scheduler_getCurrentPriorityLevel()) {
		    case Scheduler_ImmediatePriority:
		      return ImmediatePriority$1;

		    case Scheduler_UserBlockingPriority:
		      return UserBlockingPriority$2;

		    case Scheduler_NormalPriority:
		      return NormalPriority$1;

		    case Scheduler_LowPriority:
		      return LowPriority$1;

		    case Scheduler_IdlePriority:
		      return IdlePriority$1;

		    default:
		      {
		        {
		          throw Error( "Unknown priority level." );
		        }
		      }

		  }
		}

		function reactPriorityToSchedulerPriority(reactPriorityLevel) {
		  switch (reactPriorityLevel) {
		    case ImmediatePriority$1:
		      return Scheduler_ImmediatePriority;

		    case UserBlockingPriority$2:
		      return Scheduler_UserBlockingPriority;

		    case NormalPriority$1:
		      return Scheduler_NormalPriority;

		    case LowPriority$1:
		      return Scheduler_LowPriority;

		    case IdlePriority$1:
		      return Scheduler_IdlePriority;

		    default:
		      {
		        {
		          throw Error( "Unknown priority level." );
		        }
		      }

		  }
		}

		function runWithPriority$1(reactPriorityLevel, fn) {
		  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
		  return Scheduler_runWithPriority(priorityLevel, fn);
		}
		function scheduleCallback(reactPriorityLevel, callback, options) {
		  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
		  return Scheduler_scheduleCallback(priorityLevel, callback, options);
		}
		function scheduleSyncCallback(callback) {
		  // Push this callback into an internal queue. We'll flush these either in
		  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
		  if (syncQueue === null) {
		    syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.

		    immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
		  } else {
		    // Push onto existing queue. Don't need to schedule a callback because
		    // we already scheduled one when we created the queue.
		    syncQueue.push(callback);
		  }

		  return fakeCallbackNode;
		}
		function cancelCallback(callbackNode) {
		  if (callbackNode !== fakeCallbackNode) {
		    Scheduler_cancelCallback(callbackNode);
		  }
		}
		function flushSyncCallbackQueue() {
		  if (immediateQueueCallbackNode !== null) {
		    var node = immediateQueueCallbackNode;
		    immediateQueueCallbackNode = null;
		    Scheduler_cancelCallback(node);
		  }

		  flushSyncCallbackQueueImpl();
		}

		function flushSyncCallbackQueueImpl() {
		  if (!isFlushingSyncQueue && syncQueue !== null) {
		    // Prevent re-entrancy.
		    isFlushingSyncQueue = true;
		    var i = 0;

		    {
		      try {
		        var _isSync2 = true;
		        var _queue = syncQueue;
		        runWithPriority$1(ImmediatePriority$1, function () {
		          for (; i < _queue.length; i++) {
		            var callback = _queue[i];

		            do {
		              callback = callback(_isSync2);
		            } while (callback !== null);
		          }
		        });
		        syncQueue = null;
		      } catch (error) {
		        // If something throws, leave the remaining callbacks on the queue.
		        if (syncQueue !== null) {
		          syncQueue = syncQueue.slice(i + 1);
		        } // Resume flushing in the next tick


		        Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
		        throw error;
		      } finally {
		        isFlushingSyncQueue = false;
		      }
		    }
		  }
		}

		// TODO: this is special because it gets imported during build.
		var ReactVersion = '17.0.2';

		var NoMode = 0;
		var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
		// tag instead

		var BlockingMode = 2;
		var ConcurrentMode = 4;
		var ProfileMode = 8;
		var DebugTracingMode = 16;

		var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
		var NoTransition = 0;
		function requestCurrentTransition() {
		  return ReactCurrentBatchConfig.transition;
		}

		var ReactStrictModeWarnings = {
		  recordUnsafeLifecycleWarnings: function (fiber, instance) {},
		  flushPendingUnsafeLifecycleWarnings: function () {},
		  recordLegacyContextWarning: function (fiber, instance) {},
		  flushLegacyContextWarning: function () {},
		  discardPendingWarnings: function () {}
		};

		{
		  var findStrictRoot = function (fiber) {
		    var maybeStrictRoot = null;
		    var node = fiber;

		    while (node !== null) {
		      if (node.mode & StrictMode) {
		        maybeStrictRoot = node;
		      }

		      node = node.return;
		    }

		    return maybeStrictRoot;
		  };

		  var setToSortedString = function (set) {
		    var array = [];
		    set.forEach(function (value) {
		      array.push(value);
		    });
		    return array.sort().join(', ');
		  };

		  var pendingComponentWillMountWarnings = [];
		  var pendingUNSAFE_ComponentWillMountWarnings = [];
		  var pendingComponentWillReceivePropsWarnings = [];
		  var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
		  var pendingComponentWillUpdateWarnings = [];
		  var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.

		  var didWarnAboutUnsafeLifecycles = new Set();

		  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
		    // Dedup strategy: Warn once per component.
		    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
		      return;
		    }

		    if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
		    instance.componentWillMount.__suppressDeprecationWarning !== true) {
		      pendingComponentWillMountWarnings.push(fiber);
		    }

		    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
		      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
		    }

		    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
		      pendingComponentWillReceivePropsWarnings.push(fiber);
		    }

		    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
		      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
		    }

		    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
		      pendingComponentWillUpdateWarnings.push(fiber);
		    }

		    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
		      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
		    }
		  };

		  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
		    // We do an initial pass to gather component names
		    var componentWillMountUniqueNames = new Set();

		    if (pendingComponentWillMountWarnings.length > 0) {
		      pendingComponentWillMountWarnings.forEach(function (fiber) {
		        componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingComponentWillMountWarnings = [];
		    }

		    var UNSAFE_componentWillMountUniqueNames = new Set();

		    if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
		      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
		        UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingUNSAFE_ComponentWillMountWarnings = [];
		    }

		    var componentWillReceivePropsUniqueNames = new Set();

		    if (pendingComponentWillReceivePropsWarnings.length > 0) {
		      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
		        componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingComponentWillReceivePropsWarnings = [];
		    }

		    var UNSAFE_componentWillReceivePropsUniqueNames = new Set();

		    if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
		      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
		        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
		    }

		    var componentWillUpdateUniqueNames = new Set();

		    if (pendingComponentWillUpdateWarnings.length > 0) {
		      pendingComponentWillUpdateWarnings.forEach(function (fiber) {
		        componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingComponentWillUpdateWarnings = [];
		    }

		    var UNSAFE_componentWillUpdateUniqueNames = new Set();

		    if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
		      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
		        UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutUnsafeLifecycles.add(fiber.type);
		      });
		      pendingUNSAFE_ComponentWillUpdateWarnings = [];
		    } // Finally, we flush all the warnings
		    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'


		    if (UNSAFE_componentWillMountUniqueNames.size > 0) {
		      var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);

		      error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
		    }

		    if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
		      var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);

		      error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
		    }

		    if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
		      var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);

		      error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
		    }

		    if (componentWillMountUniqueNames.size > 0) {
		      var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);

		      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
		    }

		    if (componentWillReceivePropsUniqueNames.size > 0) {
		      var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);

		      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
		    }

		    if (componentWillUpdateUniqueNames.size > 0) {
		      var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);

		      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
		    }
		  };

		  var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.

		  var didWarnAboutLegacyContext = new Set();

		  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
		    var strictRoot = findStrictRoot(fiber);

		    if (strictRoot === null) {
		      error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');

		      return;
		    } // Dedup strategy: Warn once per component.


		    if (didWarnAboutLegacyContext.has(fiber.type)) {
		      return;
		    }

		    var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);

		    if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
		      if (warningsForRoot === undefined) {
		        warningsForRoot = [];
		        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
		      }

		      warningsForRoot.push(fiber);
		    }
		  };

		  ReactStrictModeWarnings.flushLegacyContextWarning = function () {
		    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
		      if (fiberArray.length === 0) {
		        return;
		      }

		      var firstFiber = fiberArray[0];
		      var uniqueNames = new Set();
		      fiberArray.forEach(function (fiber) {
		        uniqueNames.add(getComponentName(fiber.type) || 'Component');
		        didWarnAboutLegacyContext.add(fiber.type);
		      });
		      var sortedNames = setToSortedString(uniqueNames);

		      try {
		        setCurrentFiber(firstFiber);

		        error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);
		      } finally {
		        resetCurrentFiber();
		      }
		    });
		  };

		  ReactStrictModeWarnings.discardPendingWarnings = function () {
		    pendingComponentWillMountWarnings = [];
		    pendingUNSAFE_ComponentWillMountWarnings = [];
		    pendingComponentWillReceivePropsWarnings = [];
		    pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
		    pendingComponentWillUpdateWarnings = [];
		    pendingUNSAFE_ComponentWillUpdateWarnings = [];
		    pendingLegacyContextWarning = new Map();
		  };
		}

		function resolveDefaultProps(Component, baseProps) {
		  if (Component && Component.defaultProps) {
		    // Resolve default props. Taken from ReactElement
		    var props = _assign({}, baseProps);

		    var defaultProps = Component.defaultProps;

		    for (var propName in defaultProps) {
		      if (props[propName] === undefined) {
		        props[propName] = defaultProps[propName];
		      }
		    }

		    return props;
		  }

		  return baseProps;
		}

		// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
		// Math.pow(2, 30) - 1
		// 0b111111111111111111111111111111
		var MAX_SIGNED_31_BIT_INT = 1073741823;

		var valueCursor = createCursor(null);
		var rendererSigil;

		{
		  // Use this to detect multiple renderers using the same context
		  rendererSigil = {};
		}

		var currentlyRenderingFiber = null;
		var lastContextDependency = null;
		var lastContextWithAllBitsObserved = null;
		var isDisallowedContextReadInDEV = false;
		function resetContextDependencies() {
		  // This is called right before React yields execution, to ensure `readContext`
		  // cannot be called outside the render phase.
		  currentlyRenderingFiber = null;
		  lastContextDependency = null;
		  lastContextWithAllBitsObserved = null;

		  {
		    isDisallowedContextReadInDEV = false;
		  }
		}
		function enterDisallowedContextReadInDEV() {
		  {
		    isDisallowedContextReadInDEV = true;
		  }
		}
		function exitDisallowedContextReadInDEV() {
		  {
		    isDisallowedContextReadInDEV = false;
		  }
		}
		function pushProvider(providerFiber, nextValue) {
		  var context = providerFiber.type._context;

		  {
		    push(valueCursor, context._currentValue, providerFiber);
		    context._currentValue = nextValue;

		    {
		      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
		        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
		      }

		      context._currentRenderer = rendererSigil;
		    }
		  }
		}
		function popProvider(providerFiber) {
		  var currentValue = valueCursor.current;
		  pop(valueCursor, providerFiber);
		  var context = providerFiber.type._context;

		  {
		    context._currentValue = currentValue;
		  }
		}
		function calculateChangedBits(context, newValue, oldValue) {
		  if (objectIs(oldValue, newValue)) {
		    // No change
		    return 0;
		  } else {
		    var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;

		    {
		      if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
		        error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
		      }
		    }

		    return changedBits | 0;
		  }
		}
		function scheduleWorkOnParentPath(parent, renderLanes) {
		  // Update the child lanes of all the ancestors, including the alternates.
		  var node = parent;

		  while (node !== null) {
		    var alternate = node.alternate;

		    if (!isSubsetOfLanes(node.childLanes, renderLanes)) {
		      node.childLanes = mergeLanes(node.childLanes, renderLanes);

		      if (alternate !== null) {
		        alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
		      }
		    } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {
		      alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
		    } else {
		      // Neither alternate was updated, which means the rest of the
		      // ancestor path already has sufficient priority.
		      break;
		    }

		    node = node.return;
		  }
		}
		function propagateContextChange(workInProgress, context, changedBits, renderLanes) {
		  var fiber = workInProgress.child;

		  if (fiber !== null) {
		    // Set the return pointer of the child to the work-in-progress fiber.
		    fiber.return = workInProgress;
		  }

		  while (fiber !== null) {
		    var nextFiber = void 0; // Visit this fiber.

		    var list = fiber.dependencies;

		    if (list !== null) {
		      nextFiber = fiber.child;
		      var dependency = list.firstContext;

		      while (dependency !== null) {
		        // Check if the context matches.
		        if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
		          // Match! Schedule an update on this fiber.
		          if (fiber.tag === ClassComponent) {
		            // Schedule a force update on the work-in-progress.
		            var update = createUpdate(NoTimestamp, pickArbitraryLane(renderLanes));
		            update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
		            // update to the current fiber, too, which means it will persist even if
		            // this render is thrown away. Since it's a race condition, not sure it's
		            // worth fixing.

		            enqueueUpdate(fiber, update);
		          }

		          fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
		          var alternate = fiber.alternate;

		          if (alternate !== null) {
		            alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
		          }

		          scheduleWorkOnParentPath(fiber.return, renderLanes); // Mark the updated lanes on the list, too.

		          list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
		          // dependency list.

		          break;
		        }

		        dependency = dependency.next;
		      }
		    } else if (fiber.tag === ContextProvider) {
		      // Don't scan deeper if this is a matching provider
		      nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
		    } else {
		      // Traverse down.
		      nextFiber = fiber.child;
		    }

		    if (nextFiber !== null) {
		      // Set the return pointer of the child to the work-in-progress fiber.
		      nextFiber.return = fiber;
		    } else {
		      // No child. Traverse to next sibling.
		      nextFiber = fiber;

		      while (nextFiber !== null) {
		        if (nextFiber === workInProgress) {
		          // We're back to the root of this subtree. Exit.
		          nextFiber = null;
		          break;
		        }

		        var sibling = nextFiber.sibling;

		        if (sibling !== null) {
		          // Set the return pointer of the sibling to the work-in-progress fiber.
		          sibling.return = nextFiber.return;
		          nextFiber = sibling;
		          break;
		        } // No more siblings. Traverse up.


		        nextFiber = nextFiber.return;
		      }
		    }

		    fiber = nextFiber;
		  }
		}
		function prepareToReadContext(workInProgress, renderLanes) {
		  currentlyRenderingFiber = workInProgress;
		  lastContextDependency = null;
		  lastContextWithAllBitsObserved = null;
		  var dependencies = workInProgress.dependencies;

		  if (dependencies !== null) {
		    var firstContext = dependencies.firstContext;

		    if (firstContext !== null) {
		      if (includesSomeLane(dependencies.lanes, renderLanes)) {
		        // Context list has a pending update. Mark that this fiber performed work.
		        markWorkInProgressReceivedUpdate();
		      } // Reset the work-in-progress list


		      dependencies.firstContext = null;
		    }
		  }
		}
		function readContext(context, observedBits) {
		  {
		    // This warning would fire if you read context inside a Hook like useMemo.
		    // Unlike the class check below, it's not enforced in production for perf.
		    if (isDisallowedContextReadInDEV) {
		      error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
		    }
		  }

		  if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
		    var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.

		    if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
		      // Observe all updates.
		      lastContextWithAllBitsObserved = context;
		      resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
		    } else {
		      resolvedObservedBits = observedBits;
		    }

		    var contextItem = {
		      context: context,
		      observedBits: resolvedObservedBits,
		      next: null
		    };

		    if (lastContextDependency === null) {
		      if (!(currentlyRenderingFiber !== null)) {
		        {
		          throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." );
		        }
		      } // This is the first dependency for this component. Create a new list.


		      lastContextDependency = contextItem;
		      currentlyRenderingFiber.dependencies = {
		        lanes: NoLanes,
		        firstContext: contextItem,
		        responders: null
		      };
		    } else {
		      // Append a new context item.
		      lastContextDependency = lastContextDependency.next = contextItem;
		    }
		  }

		  return  context._currentValue ;
		}

		var UpdateState = 0;
		var ReplaceState = 1;
		var ForceUpdate = 2;
		var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
		// It should only be read right after calling `processUpdateQueue`, via
		// `checkHasForceUpdateAfterProcessing`.

		var hasForceUpdate = false;
		var didWarnUpdateInsideUpdate;
		var currentlyProcessingQueue;

		{
		  didWarnUpdateInsideUpdate = false;
		  currentlyProcessingQueue = null;
		}

		function initializeUpdateQueue(fiber) {
		  var queue = {
		    baseState: fiber.memoizedState,
		    firstBaseUpdate: null,
		    lastBaseUpdate: null,
		    shared: {
		      pending: null
		    },
		    effects: null
		  };
		  fiber.updateQueue = queue;
		}
		function cloneUpdateQueue(current, workInProgress) {
		  // Clone the update queue from current. Unless it's already a clone.
		  var queue = workInProgress.updateQueue;
		  var currentQueue = current.updateQueue;

		  if (queue === currentQueue) {
		    var clone = {
		      baseState: currentQueue.baseState,
		      firstBaseUpdate: currentQueue.firstBaseUpdate,
		      lastBaseUpdate: currentQueue.lastBaseUpdate,
		      shared: currentQueue.shared,
		      effects: currentQueue.effects
		    };
		    workInProgress.updateQueue = clone;
		  }
		}
		function createUpdate(eventTime, lane) {
		  var update = {
		    eventTime: eventTime,
		    lane: lane,
		    tag: UpdateState,
		    payload: null,
		    callback: null,
		    next: null
		  };
		  return update;
		}
		function enqueueUpdate(fiber, update) {
		  var updateQueue = fiber.updateQueue;

		  if (updateQueue === null) {
		    // Only occurs if the fiber has been unmounted.
		    return;
		  }

		  var sharedQueue = updateQueue.shared;
		  var pending = sharedQueue.pending;

		  if (pending === null) {
		    // This is the first update. Create a circular list.
		    update.next = update;
		  } else {
		    update.next = pending.next;
		    pending.next = update;
		  }

		  sharedQueue.pending = update;

		  {
		    if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
		      error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');

		      didWarnUpdateInsideUpdate = true;
		    }
		  }
		}
		function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
		  // Captured updates are updates that are thrown by a child during the render
		  // phase. They should be discarded if the render is aborted. Therefore,
		  // we should only put them on the work-in-progress queue, not the current one.
		  var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.

		  var current = workInProgress.alternate;

		  if (current !== null) {
		    var currentQueue = current.updateQueue;

		    if (queue === currentQueue) {
		      // The work-in-progress queue is the same as current. This happens when
		      // we bail out on a parent fiber that then captures an error thrown by
		      // a child. Since we want to append the update only to the work-in
		      // -progress queue, we need to clone the updates. We usually clone during
		      // processUpdateQueue, but that didn't happen in this case because we
		      // skipped over the parent when we bailed out.
		      var newFirst = null;
		      var newLast = null;
		      var firstBaseUpdate = queue.firstBaseUpdate;

		      if (firstBaseUpdate !== null) {
		        // Loop through the updates and clone them.
		        var update = firstBaseUpdate;

		        do {
		          var clone = {
		            eventTime: update.eventTime,
		            lane: update.lane,
		            tag: update.tag,
		            payload: update.payload,
		            callback: update.callback,
		            next: null
		          };

		          if (newLast === null) {
		            newFirst = newLast = clone;
		          } else {
		            newLast.next = clone;
		            newLast = clone;
		          }

		          update = update.next;
		        } while (update !== null); // Append the captured update the end of the cloned list.


		        if (newLast === null) {
		          newFirst = newLast = capturedUpdate;
		        } else {
		          newLast.next = capturedUpdate;
		          newLast = capturedUpdate;
		        }
		      } else {
		        // There are no base updates.
		        newFirst = newLast = capturedUpdate;
		      }

		      queue = {
		        baseState: currentQueue.baseState,
		        firstBaseUpdate: newFirst,
		        lastBaseUpdate: newLast,
		        shared: currentQueue.shared,
		        effects: currentQueue.effects
		      };
		      workInProgress.updateQueue = queue;
		      return;
		    }
		  } // Append the update to the end of the list.


		  var lastBaseUpdate = queue.lastBaseUpdate;

		  if (lastBaseUpdate === null) {
		    queue.firstBaseUpdate = capturedUpdate;
		  } else {
		    lastBaseUpdate.next = capturedUpdate;
		  }

		  queue.lastBaseUpdate = capturedUpdate;
		}

		function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
		  switch (update.tag) {
		    case ReplaceState:
		      {
		        var payload = update.payload;

		        if (typeof payload === 'function') {
		          // Updater function
		          {
		            enterDisallowedContextReadInDEV();
		          }

		          var nextState = payload.call(instance, prevState, nextProps);

		          {
		            if ( workInProgress.mode & StrictMode) {
		              disableLogs();

		              try {
		                payload.call(instance, prevState, nextProps);
		              } finally {
		                reenableLogs();
		              }
		            }

		            exitDisallowedContextReadInDEV();
		          }

		          return nextState;
		        } // State object


		        return payload;
		      }

		    case CaptureUpdate:
		      {
		        workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;
		      }
		    // Intentional fallthrough

		    case UpdateState:
		      {
		        var _payload = update.payload;
		        var partialState;

		        if (typeof _payload === 'function') {
		          // Updater function
		          {
		            enterDisallowedContextReadInDEV();
		          }

		          partialState = _payload.call(instance, prevState, nextProps);

		          {
		            if ( workInProgress.mode & StrictMode) {
		              disableLogs();

		              try {
		                _payload.call(instance, prevState, nextProps);
		              } finally {
		                reenableLogs();
		              }
		            }

		            exitDisallowedContextReadInDEV();
		          }
		        } else {
		          // Partial state object
		          partialState = _payload;
		        }

		        if (partialState === null || partialState === undefined) {
		          // Null and undefined are treated as no-ops.
		          return prevState;
		        } // Merge the partial state and the previous state.


		        return _assign({}, prevState, partialState);
		      }

		    case ForceUpdate:
		      {
		        hasForceUpdate = true;
		        return prevState;
		      }
		  }

		  return prevState;
		}

		function processUpdateQueue(workInProgress, props, instance, renderLanes) {
		  // This is always non-null on a ClassComponent or HostRoot
		  var queue = workInProgress.updateQueue;
		  hasForceUpdate = false;

		  {
		    currentlyProcessingQueue = queue.shared;
		  }

		  var firstBaseUpdate = queue.firstBaseUpdate;
		  var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.

		  var pendingQueue = queue.shared.pending;

		  if (pendingQueue !== null) {
		    queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first
		    // and last so that it's non-circular.

		    var lastPendingUpdate = pendingQueue;
		    var firstPendingUpdate = lastPendingUpdate.next;
		    lastPendingUpdate.next = null; // Append pending updates to base queue

		    if (lastBaseUpdate === null) {
		      firstBaseUpdate = firstPendingUpdate;
		    } else {
		      lastBaseUpdate.next = firstPendingUpdate;
		    }

		    lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then
		    // we need to transfer the updates to that queue, too. Because the base
		    // queue is a singly-linked list with no cycles, we can append to both
		    // lists and take advantage of structural sharing.
		    // TODO: Pass `current` as argument

		    var current = workInProgress.alternate;

		    if (current !== null) {
		      // This is always non-null on a ClassComponent or HostRoot
		      var currentQueue = current.updateQueue;
		      var currentLastBaseUpdate = currentQueue.lastBaseUpdate;

		      if (currentLastBaseUpdate !== lastBaseUpdate) {
		        if (currentLastBaseUpdate === null) {
		          currentQueue.firstBaseUpdate = firstPendingUpdate;
		        } else {
		          currentLastBaseUpdate.next = firstPendingUpdate;
		        }

		        currentQueue.lastBaseUpdate = lastPendingUpdate;
		      }
		    }
		  } // These values may change as we process the queue.


		  if (firstBaseUpdate !== null) {
		    // Iterate through the list of updates to compute the result.
		    var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes
		    // from the original lanes.

		    var newLanes = NoLanes;
		    var newBaseState = null;
		    var newFirstBaseUpdate = null;
		    var newLastBaseUpdate = null;
		    var update = firstBaseUpdate;

		    do {
		      var updateLane = update.lane;
		      var updateEventTime = update.eventTime;

		      if (!isSubsetOfLanes(renderLanes, updateLane)) {
		        // Priority is insufficient. Skip this update. If this is the first
		        // skipped update, the previous update/state is the new base
		        // update/state.
		        var clone = {
		          eventTime: updateEventTime,
		          lane: updateLane,
		          tag: update.tag,
		          payload: update.payload,
		          callback: update.callback,
		          next: null
		        };

		        if (newLastBaseUpdate === null) {
		          newFirstBaseUpdate = newLastBaseUpdate = clone;
		          newBaseState = newState;
		        } else {
		          newLastBaseUpdate = newLastBaseUpdate.next = clone;
		        } // Update the remaining priority in the queue.


		        newLanes = mergeLanes(newLanes, updateLane);
		      } else {
		        // This update does have sufficient priority.
		        if (newLastBaseUpdate !== null) {
		          var _clone = {
		            eventTime: updateEventTime,
		            // This update is going to be committed so we never want uncommit
		            // it. Using NoLane works because 0 is a subset of all bitmasks, so
		            // this will never be skipped by the check above.
		            lane: NoLane,
		            tag: update.tag,
		            payload: update.payload,
		            callback: update.callback,
		            next: null
		          };
		          newLastBaseUpdate = newLastBaseUpdate.next = _clone;
		        } // Process this update.


		        newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
		        var callback = update.callback;

		        if (callback !== null) {
		          workInProgress.flags |= Callback;
		          var effects = queue.effects;

		          if (effects === null) {
		            queue.effects = [update];
		          } else {
		            effects.push(update);
		          }
		        }
		      }

		      update = update.next;

		      if (update === null) {
		        pendingQueue = queue.shared.pending;

		        if (pendingQueue === null) {
		          break;
		        } else {
		          // An update was scheduled from inside a reducer. Add the new
		          // pending updates to the end of the list and keep processing.
		          var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we
		          // unravel them when transferring them to the base queue.

		          var _firstPendingUpdate = _lastPendingUpdate.next;
		          _lastPendingUpdate.next = null;
		          update = _firstPendingUpdate;
		          queue.lastBaseUpdate = _lastPendingUpdate;
		          queue.shared.pending = null;
		        }
		      }
		    } while (true);

		    if (newLastBaseUpdate === null) {
		      newBaseState = newState;
		    }

		    queue.baseState = newBaseState;
		    queue.firstBaseUpdate = newFirstBaseUpdate;
		    queue.lastBaseUpdate = newLastBaseUpdate; // Set the remaining expiration time to be whatever is remaining in the queue.
		    // This should be fine because the only two other things that contribute to
		    // expiration time are props and context. We're already in the middle of the
		    // begin phase by the time we start processing the queue, so we've already
		    // dealt with the props. Context in components that specify
		    // shouldComponentUpdate is tricky; but we'll have to account for
		    // that regardless.

		    markSkippedUpdateLanes(newLanes);
		    workInProgress.lanes = newLanes;
		    workInProgress.memoizedState = newState;
		  }

		  {
		    currentlyProcessingQueue = null;
		  }
		}

		function callCallback(callback, context) {
		  if (!(typeof callback === 'function')) {
		    {
		      throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
		    }
		  }

		  callback.call(context);
		}

		function resetHasForceUpdateBeforeProcessing() {
		  hasForceUpdate = false;
		}
		function checkHasForceUpdateAfterProcessing() {
		  return hasForceUpdate;
		}
		function commitUpdateQueue(finishedWork, finishedQueue, instance) {
		  // Commit the effects
		  var effects = finishedQueue.effects;
		  finishedQueue.effects = null;

		  if (effects !== null) {
		    for (var i = 0; i < effects.length; i++) {
		      var effect = effects[i];
		      var callback = effect.callback;

		      if (callback !== null) {
		        effect.callback = null;
		        callCallback(callback, instance);
		      }
		    }
		  }
		}

		var fakeInternalInstance = {};
		var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
		// We'll use it to determine whether we need to initialize legacy refs.

		var emptyRefsObject = new React.Component().refs;
		var didWarnAboutStateAssignmentForComponent;
		var didWarnAboutUninitializedState;
		var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
		var didWarnAboutLegacyLifecyclesAndDerivedState;
		var didWarnAboutUndefinedDerivedState;
		var warnOnUndefinedDerivedState;
		var warnOnInvalidCallback;
		var didWarnAboutDirectlyAssigningPropsToState;
		var didWarnAboutContextTypeAndContextTypes;
		var didWarnAboutInvalidateContextType;

		{
		  didWarnAboutStateAssignmentForComponent = new Set();
		  didWarnAboutUninitializedState = new Set();
		  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
		  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
		  didWarnAboutDirectlyAssigningPropsToState = new Set();
		  didWarnAboutUndefinedDerivedState = new Set();
		  didWarnAboutContextTypeAndContextTypes = new Set();
		  didWarnAboutInvalidateContextType = new Set();
		  var didWarnOnInvalidCallback = new Set();

		  warnOnInvalidCallback = function (callback, callerName) {
		    if (callback === null || typeof callback === 'function') {
		      return;
		    }

		    var key = callerName + '_' + callback;

		    if (!didWarnOnInvalidCallback.has(key)) {
		      didWarnOnInvalidCallback.add(key);

		      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
		    }
		  };

		  warnOnUndefinedDerivedState = function (type, partialState) {
		    if (partialState === undefined) {
		      var componentName = getComponentName(type) || 'Component';

		      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
		        didWarnAboutUndefinedDerivedState.add(componentName);

		        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
		      }
		    }
		  }; // This is so gross but it's at least non-critical and can be removed if
		  // it causes problems. This is meant to give a nicer error message for
		  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
		  // ...)) which otherwise throws a "_processChildContext is not a function"
		  // exception.


		  Object.defineProperty(fakeInternalInstance, '_processChildContext', {
		    enumerable: false,
		    value: function () {
		      {
		        {
		          throw Error( "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)." );
		        }
		      }
		    }
		  });
		  Object.freeze(fakeInternalInstance);
		}

		function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
		  var prevState = workInProgress.memoizedState;

		  {
		    if ( workInProgress.mode & StrictMode) {
		      disableLogs();

		      try {
		        // Invoke the function an extra time to help detect side-effects.
		        getDerivedStateFromProps(nextProps, prevState);
		      } finally {
		        reenableLogs();
		      }
		    }
		  }

		  var partialState = getDerivedStateFromProps(nextProps, prevState);

		  {
		    warnOnUndefinedDerivedState(ctor, partialState);
		  } // Merge the partial state and the previous state.


		  var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
		  workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
		  // base state.

		  if (workInProgress.lanes === NoLanes) {
		    // Queue is always non-null for classes
		    var updateQueue = workInProgress.updateQueue;
		    updateQueue.baseState = memoizedState;
		  }
		}
		var classComponentUpdater = {
		  isMounted: isMounted,
		  enqueueSetState: function (inst, payload, callback) {
		    var fiber = get(inst);
		    var eventTime = requestEventTime();
		    var lane = requestUpdateLane(fiber);
		    var update = createUpdate(eventTime, lane);
		    update.payload = payload;

		    if (callback !== undefined && callback !== null) {
		      {
		        warnOnInvalidCallback(callback, 'setState');
		      }

		      update.callback = callback;
		    }

		    enqueueUpdate(fiber, update);
		    scheduleUpdateOnFiber(fiber, lane, eventTime);
		  },
		  enqueueReplaceState: function (inst, payload, callback) {
		    var fiber = get(inst);
		    var eventTime = requestEventTime();
		    var lane = requestUpdateLane(fiber);
		    var update = createUpdate(eventTime, lane);
		    update.tag = ReplaceState;
		    update.payload = payload;

		    if (callback !== undefined && callback !== null) {
		      {
		        warnOnInvalidCallback(callback, 'replaceState');
		      }

		      update.callback = callback;
		    }

		    enqueueUpdate(fiber, update);
		    scheduleUpdateOnFiber(fiber, lane, eventTime);
		  },
		  enqueueForceUpdate: function (inst, callback) {
		    var fiber = get(inst);
		    var eventTime = requestEventTime();
		    var lane = requestUpdateLane(fiber);
		    var update = createUpdate(eventTime, lane);
		    update.tag = ForceUpdate;

		    if (callback !== undefined && callback !== null) {
		      {
		        warnOnInvalidCallback(callback, 'forceUpdate');
		      }

		      update.callback = callback;
		    }

		    enqueueUpdate(fiber, update);
		    scheduleUpdateOnFiber(fiber, lane, eventTime);
		  }
		};

		function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
		  var instance = workInProgress.stateNode;

		  if (typeof instance.shouldComponentUpdate === 'function') {
		    {
		      if ( workInProgress.mode & StrictMode) {
		        disableLogs();

		        try {
		          // Invoke the function an extra time to help detect side-effects.
		          instance.shouldComponentUpdate(newProps, newState, nextContext);
		        } finally {
		          reenableLogs();
		        }
		      }
		    }

		    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);

		    {
		      if (shouldUpdate === undefined) {
		        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
		      }
		    }

		    return shouldUpdate;
		  }

		  if (ctor.prototype && ctor.prototype.isPureReactComponent) {
		    return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
		  }

		  return true;
		}

		function checkClassInstance(workInProgress, ctor, newProps) {
		  var instance = workInProgress.stateNode;

		  {
		    var name = getComponentName(ctor) || 'Component';
		    var renderPresent = instance.render;

		    if (!renderPresent) {
		      if (ctor.prototype && typeof ctor.prototype.render === 'function') {
		        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
		      } else {
		        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
		      }
		    }

		    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
		      error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
		    }

		    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
		      error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
		    }

		    if (instance.propTypes) {
		      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
		    }

		    if (instance.contextType) {
		      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
		    }

		    {
		      if (instance.contextTypes) {
		        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
		      }

		      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
		        didWarnAboutContextTypeAndContextTypes.add(ctor);

		        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
		      }
		    }

		    if (typeof instance.componentShouldUpdate === 'function') {
		      error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
		    }

		    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
		      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
		    }

		    if (typeof instance.componentDidUnmount === 'function') {
		      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
		    }

		    if (typeof instance.componentDidReceiveProps === 'function') {
		      error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
		    }

		    if (typeof instance.componentWillRecieveProps === 'function') {
		      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
		    }

		    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
		      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
		    }

		    var hasMutatedProps = instance.props !== newProps;

		    if (instance.props !== undefined && hasMutatedProps) {
		      error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
		    }

		    if (instance.defaultProps) {
		      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
		    }

		    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
		      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);

		      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
		    }

		    if (typeof instance.getDerivedStateFromProps === 'function') {
		      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
		    }

		    if (typeof instance.getDerivedStateFromError === 'function') {
		      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
		    }

		    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
		      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
		    }

		    var _state = instance.state;

		    if (_state && (typeof _state !== 'object' || isArray(_state))) {
		      error('%s.state: must be set to an object or null', name);
		    }

		    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
		      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
		    }
		  }
		}

		function adoptClassInstance(workInProgress, instance) {
		  instance.updater = classComponentUpdater;
		  workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates

		  set(instance, workInProgress);

		  {
		    instance._reactInternalInstance = fakeInternalInstance;
		  }
		}

		function constructClassInstance(workInProgress, ctor, props) {
		  var isLegacyContextConsumer = false;
		  var unmaskedContext = emptyContextObject;
		  var context = emptyContextObject;
		  var contextType = ctor.contextType;

		  {
		    if ('contextType' in ctor) {
		      var isValid = // Allow null for conditional declaration
		      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>

		      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
		        didWarnAboutInvalidateContextType.add(ctor);
		        var addendum = '';

		        if (contextType === undefined) {
		          addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
		        } else if (typeof contextType !== 'object') {
		          addendum = ' However, it is set to a ' + typeof contextType + '.';
		        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
		          addendum = ' Did you accidentally pass the Context.Provider instead?';
		        } else if (contextType._context !== undefined) {
		          // <Context.Consumer>
		          addendum = ' Did you accidentally pass the Context.Consumer instead?';
		        } else {
		          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
		        }

		        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
		      }
		    }
		  }

		  if (typeof contextType === 'object' && contextType !== null) {
		    context = readContext(contextType);
		  } else {
		    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
		    var contextTypes = ctor.contextTypes;
		    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
		    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
		  } // Instantiate twice to help detect side-effects.


		  {
		    if ( workInProgress.mode & StrictMode) {
		      disableLogs();

		      try {
		        new ctor(props, context); // eslint-disable-line no-new
		      } finally {
		        reenableLogs();
		      }
		    }
		  }

		  var instance = new ctor(props, context);
		  var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
		  adoptClassInstance(workInProgress, instance);

		  {
		    if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
		      var componentName = getComponentName(ctor) || 'Component';

		      if (!didWarnAboutUninitializedState.has(componentName)) {
		        didWarnAboutUninitializedState.add(componentName);

		        error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
		      }
		    } // If new component APIs are defined, "unsafe" lifecycles won't be called.
		    // Warn about these lifecycles if they are present.
		    // Don't warn about react-lifecycles-compat polyfilled methods though.


		    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
		      var foundWillMountName = null;
		      var foundWillReceivePropsName = null;
		      var foundWillUpdateName = null;

		      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
		        foundWillMountName = 'componentWillMount';
		      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
		        foundWillMountName = 'UNSAFE_componentWillMount';
		      }

		      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
		        foundWillReceivePropsName = 'componentWillReceiveProps';
		      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
		        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
		      }

		      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
		        foundWillUpdateName = 'componentWillUpdate';
		      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
		        foundWillUpdateName = 'UNSAFE_componentWillUpdate';
		      }

		      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
		        var _componentName = getComponentName(ctor) || 'Component';

		        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';

		        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
		          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);

		          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n  " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n  " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n  " + foundWillUpdateName : '');
		        }
		      }
		    }
		  } // Cache unmasked context so we can avoid recreating masked context unless necessary.
		  // ReactFiberContext usually updates this cache but can't for newly-created instances.


		  if (isLegacyContextConsumer) {
		    cacheContext(workInProgress, unmaskedContext, context);
		  }

		  return instance;
		}

		function callComponentWillMount(workInProgress, instance) {
		  var oldState = instance.state;

		  if (typeof instance.componentWillMount === 'function') {
		    instance.componentWillMount();
		  }

		  if (typeof instance.UNSAFE_componentWillMount === 'function') {
		    instance.UNSAFE_componentWillMount();
		  }

		  if (oldState !== instance.state) {
		    {
		      error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
		    }

		    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
		  }
		}

		function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
		  var oldState = instance.state;

		  if (typeof instance.componentWillReceiveProps === 'function') {
		    instance.componentWillReceiveProps(newProps, nextContext);
		  }

		  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
		    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
		  }

		  if (instance.state !== oldState) {
		    {
		      var componentName = getComponentName(workInProgress.type) || 'Component';

		      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
		        didWarnAboutStateAssignmentForComponent.add(componentName);

		        error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
		      }
		    }

		    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
		  }
		} // Invokes the mount life-cycles on a previously never rendered instance.


		function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
		  {
		    checkClassInstance(workInProgress, ctor, newProps);
		  }

		  var instance = workInProgress.stateNode;
		  instance.props = newProps;
		  instance.state = workInProgress.memoizedState;
		  instance.refs = emptyRefsObject;
		  initializeUpdateQueue(workInProgress);
		  var contextType = ctor.contextType;

		  if (typeof contextType === 'object' && contextType !== null) {
		    instance.context = readContext(contextType);
		  } else {
		    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
		    instance.context = getMaskedContext(workInProgress, unmaskedContext);
		  }

		  {
		    if (instance.state === newProps) {
		      var componentName = getComponentName(ctor) || 'Component';

		      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
		        didWarnAboutDirectlyAssigningPropsToState.add(componentName);

		        error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
		      }
		    }

		    if (workInProgress.mode & StrictMode) {
		      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
		    }

		    {
		      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
		    }
		  }

		  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
		  instance.state = workInProgress.memoizedState;
		  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;

		  if (typeof getDerivedStateFromProps === 'function') {
		    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
		    instance.state = workInProgress.memoizedState;
		  } // In order to support react-lifecycles-compat polyfilled components,
		  // Unsafe lifecycles should not be invoked for components using the new APIs.


		  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
		    callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
		    // process them now.

		    processUpdateQueue(workInProgress, newProps, instance, renderLanes);
		    instance.state = workInProgress.memoizedState;
		  }

		  if (typeof instance.componentDidMount === 'function') {
		    workInProgress.flags |= Update;
		  }
		}

		function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {
		  var instance = workInProgress.stateNode;
		  var oldProps = workInProgress.memoizedProps;
		  instance.props = oldProps;
		  var oldContext = instance.context;
		  var contextType = ctor.contextType;
		  var nextContext = emptyContextObject;

		  if (typeof contextType === 'object' && contextType !== null) {
		    nextContext = readContext(contextType);
		  } else {
		    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
		    nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
		  }

		  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
		  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
		  // ever the previously attempted to render - not the "current". However,
		  // during componentDidUpdate we pass the "current" props.
		  // In order to support react-lifecycles-compat polyfilled components,
		  // Unsafe lifecycles should not be invoked for components using the new APIs.

		  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
		    if (oldProps !== newProps || oldContext !== nextContext) {
		      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
		    }
		  }

		  resetHasForceUpdateBeforeProcessing();
		  var oldState = workInProgress.memoizedState;
		  var newState = instance.state = oldState;
		  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
		  newState = workInProgress.memoizedState;

		  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
		    // If an update was already in progress, we should schedule an Update
		    // effect even though we're bailing out, so that cWU/cDU are called.
		    if (typeof instance.componentDidMount === 'function') {
		      workInProgress.flags |= Update;
		    }

		    return false;
		  }

		  if (typeof getDerivedStateFromProps === 'function') {
		    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
		    newState = workInProgress.memoizedState;
		  }

		  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

		  if (shouldUpdate) {
		    // In order to support react-lifecycles-compat polyfilled components,
		    // Unsafe lifecycles should not be invoked for components using the new APIs.
		    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
		      if (typeof instance.componentWillMount === 'function') {
		        instance.componentWillMount();
		      }

		      if (typeof instance.UNSAFE_componentWillMount === 'function') {
		        instance.UNSAFE_componentWillMount();
		      }
		    }

		    if (typeof instance.componentDidMount === 'function') {
		      workInProgress.flags |= Update;
		    }
		  } else {
		    // If an update was already in progress, we should schedule an Update
		    // effect even though we're bailing out, so that cWU/cDU are called.
		    if (typeof instance.componentDidMount === 'function') {
		      workInProgress.flags |= Update;
		    } // If shouldComponentUpdate returned false, we should still update the
		    // memoized state to indicate that this work can be reused.


		    workInProgress.memoizedProps = newProps;
		    workInProgress.memoizedState = newState;
		  } // Update the existing instance's state, props, and context pointers even
		  // if shouldComponentUpdate returns false.


		  instance.props = newProps;
		  instance.state = newState;
		  instance.context = nextContext;
		  return shouldUpdate;
		} // Invokes the update life-cycles and returns false if it shouldn't rerender.


		function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {
		  var instance = workInProgress.stateNode;
		  cloneUpdateQueue(current, workInProgress);
		  var unresolvedOldProps = workInProgress.memoizedProps;
		  var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
		  instance.props = oldProps;
		  var unresolvedNewProps = workInProgress.pendingProps;
		  var oldContext = instance.context;
		  var contextType = ctor.contextType;
		  var nextContext = emptyContextObject;

		  if (typeof contextType === 'object' && contextType !== null) {
		    nextContext = readContext(contextType);
		  } else {
		    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
		    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
		  }

		  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
		  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
		  // ever the previously attempted to render - not the "current". However,
		  // during componentDidUpdate we pass the "current" props.
		  // In order to support react-lifecycles-compat polyfilled components,
		  // Unsafe lifecycles should not be invoked for components using the new APIs.

		  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
		    if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {
		      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
		    }
		  }

		  resetHasForceUpdateBeforeProcessing();
		  var oldState = workInProgress.memoizedState;
		  var newState = instance.state = oldState;
		  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
		  newState = workInProgress.memoizedState;

		  if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
		    // If an update was already in progress, we should schedule an Update
		    // effect even though we're bailing out, so that cWU/cDU are called.
		    if (typeof instance.componentDidUpdate === 'function') {
		      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
		        workInProgress.flags |= Update;
		      }
		    }

		    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
		      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
		        workInProgress.flags |= Snapshot;
		      }
		    }

		    return false;
		  }

		  if (typeof getDerivedStateFromProps === 'function') {
		    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
		    newState = workInProgress.memoizedState;
		  }

		  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

		  if (shouldUpdate) {
		    // In order to support react-lifecycles-compat polyfilled components,
		    // Unsafe lifecycles should not be invoked for components using the new APIs.
		    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
		      if (typeof instance.componentWillUpdate === 'function') {
		        instance.componentWillUpdate(newProps, newState, nextContext);
		      }

		      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
		        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
		      }
		    }

		    if (typeof instance.componentDidUpdate === 'function') {
		      workInProgress.flags |= Update;
		    }

		    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
		      workInProgress.flags |= Snapshot;
		    }
		  } else {
		    // If an update was already in progress, we should schedule an Update
		    // effect even though we're bailing out, so that cWU/cDU are called.
		    if (typeof instance.componentDidUpdate === 'function') {
		      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
		        workInProgress.flags |= Update;
		      }
		    }

		    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
		      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
		        workInProgress.flags |= Snapshot;
		      }
		    } // If shouldComponentUpdate returned false, we should still update the
		    // memoized props/state to indicate that this work can be reused.


		    workInProgress.memoizedProps = newProps;
		    workInProgress.memoizedState = newState;
		  } // Update the existing instance's state, props, and context pointers even
		  // if shouldComponentUpdate returns false.


		  instance.props = newProps;
		  instance.state = newState;
		  instance.context = nextContext;
		  return shouldUpdate;
		}

		var didWarnAboutMaps;
		var didWarnAboutGenerators;
		var didWarnAboutStringRefs;
		var ownerHasKeyUseWarning;
		var ownerHasFunctionTypeWarning;

		var warnForMissingKey = function (child, returnFiber) {};

		{
		  didWarnAboutMaps = false;
		  didWarnAboutGenerators = false;
		  didWarnAboutStringRefs = {};
		  /**
		   * Warn if there's no key explicitly set on dynamic arrays of children or
		   * object keys are not valid. This allows us to keep track of children between
		   * updates.
		   */

		  ownerHasKeyUseWarning = {};
		  ownerHasFunctionTypeWarning = {};

		  warnForMissingKey = function (child, returnFiber) {
		    if (child === null || typeof child !== 'object') {
		      return;
		    }

		    if (!child._store || child._store.validated || child.key != null) {
		      return;
		    }

		    if (!(typeof child._store === 'object')) {
		      {
		        throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }

		    child._store.validated = true;
		    var componentName = getComponentName(returnFiber.type) || 'Component';

		    if (ownerHasKeyUseWarning[componentName]) {
		      return;
		    }

		    ownerHasKeyUseWarning[componentName] = true;

		    error('Each child in a list should have a unique ' + '"key" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');
		  };
		}

		var isArray$1 = Array.isArray;

		function coerceRef(returnFiber, current, element) {
		  var mixedRef = element.ref;

		  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
		    {
		      // TODO: Clean this up once we turn on the string ref warning for
		      // everyone, because the strict mode case will no longer be relevant
		      if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
		      // because these cannot be automatically converted to an arrow function
		      // using a codemod. Therefore, we don't have to warn about string refs again.
		      !(element._owner && element._self && element._owner.stateNode !== element._self)) {
		        var componentName = getComponentName(returnFiber.type) || 'Component';

		        if (!didWarnAboutStringRefs[componentName]) {
		          {
		            error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', mixedRef);
		          }

		          didWarnAboutStringRefs[componentName] = true;
		        }
		      }
		    }

		    if (element._owner) {
		      var owner = element._owner;
		      var inst;

		      if (owner) {
		        var ownerFiber = owner;

		        if (!(ownerFiber.tag === ClassComponent)) {
		          {
		            throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref" );
		          }
		        }

		        inst = ownerFiber.stateNode;
		      }

		      if (!inst) {
		        {
		          throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
		        }
		      }

		      var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref

		      if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
		        return current.ref;
		      }

		      var ref = function (value) {
		        var refs = inst.refs;

		        if (refs === emptyRefsObject) {
		          // This is a lazy pooled frozen object, so we need to initialize.
		          refs = inst.refs = {};
		        }

		        if (value === null) {
		          delete refs[stringRef];
		        } else {
		          refs[stringRef] = value;
		        }
		      };

		      ref._stringRef = stringRef;
		      return ref;
		    } else {
		      if (!(typeof mixedRef === 'string')) {
		        {
		          throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
		        }
		      }

		      if (!element._owner) {
		        {
		          throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information." );
		        }
		      }
		    }
		  }

		  return mixedRef;
		}

		function throwOnInvalidObjectType(returnFiber, newChild) {
		  if (returnFiber.type !== 'textarea') {
		    {
		      {
		        throw Error( "Objects are not valid as a React child (found: " + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + "). If you meant to render a collection of children, use an array instead." );
		      }
		    }
		  }
		}

		function warnOnFunctionType(returnFiber) {
		  {
		    var componentName = getComponentName(returnFiber.type) || 'Component';

		    if (ownerHasFunctionTypeWarning[componentName]) {
		      return;
		    }

		    ownerHasFunctionTypeWarning[componentName] = true;

		    error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
		  }
		} // We avoid inlining this to avoid potential deopts from using try/catch.
		// to be able to optimize each path individually by branching early. This needs
		// a compiler or we can do it manually. Helpers that don't need this branching
		// live outside of this function.


		function ChildReconciler(shouldTrackSideEffects) {
		  function deleteChild(returnFiber, childToDelete) {
		    if (!shouldTrackSideEffects) {
		      // Noop.
		      return;
		    } // Deletions are added in reversed order so we add it to the front.
		    // At this point, the return fiber's effect list is empty except for
		    // deletions, so we can just append the deletion to the list. The remaining
		    // effects aren't added until the complete phase. Once we implement
		    // resuming, this may not be true.


		    var last = returnFiber.lastEffect;

		    if (last !== null) {
		      last.nextEffect = childToDelete;
		      returnFiber.lastEffect = childToDelete;
		    } else {
		      returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
		    }

		    childToDelete.nextEffect = null;
		    childToDelete.flags = Deletion;
		  }

		  function deleteRemainingChildren(returnFiber, currentFirstChild) {
		    if (!shouldTrackSideEffects) {
		      // Noop.
		      return null;
		    } // TODO: For the shouldClone case, this could be micro-optimized a bit by
		    // assuming that after the first child we've already added everything.


		    var childToDelete = currentFirstChild;

		    while (childToDelete !== null) {
		      deleteChild(returnFiber, childToDelete);
		      childToDelete = childToDelete.sibling;
		    }

		    return null;
		  }

		  function mapRemainingChildren(returnFiber, currentFirstChild) {
		    // Add the remaining children to a temporary map so that we can find them by
		    // keys quickly. Implicit (null) keys get added to this set with their index
		    // instead.
		    var existingChildren = new Map();
		    var existingChild = currentFirstChild;

		    while (existingChild !== null) {
		      if (existingChild.key !== null) {
		        existingChildren.set(existingChild.key, existingChild);
		      } else {
		        existingChildren.set(existingChild.index, existingChild);
		      }

		      existingChild = existingChild.sibling;
		    }

		    return existingChildren;
		  }

		  function useFiber(fiber, pendingProps) {
		    // We currently set sibling to null and index to 0 here because it is easy
		    // to forget to do before returning it. E.g. for the single child case.
		    var clone = createWorkInProgress(fiber, pendingProps);
		    clone.index = 0;
		    clone.sibling = null;
		    return clone;
		  }

		  function placeChild(newFiber, lastPlacedIndex, newIndex) {
		    newFiber.index = newIndex;

		    if (!shouldTrackSideEffects) {
		      // Noop.
		      return lastPlacedIndex;
		    }

		    var current = newFiber.alternate;

		    if (current !== null) {
		      var oldIndex = current.index;

		      if (oldIndex < lastPlacedIndex) {
		        // This is a move.
		        newFiber.flags = Placement;
		        return lastPlacedIndex;
		      } else {
		        // This item can stay in place.
		        return oldIndex;
		      }
		    } else {
		      // This is an insertion.
		      newFiber.flags = Placement;
		      return lastPlacedIndex;
		    }
		  }

		  function placeSingleChild(newFiber) {
		    // This is simpler for the single child case. We only need to do a
		    // placement for inserting new children.
		    if (shouldTrackSideEffects && newFiber.alternate === null) {
		      newFiber.flags = Placement;
		    }

		    return newFiber;
		  }

		  function updateTextNode(returnFiber, current, textContent, lanes) {
		    if (current === null || current.tag !== HostText) {
		      // Insert
		      var created = createFiberFromText(textContent, returnFiber.mode, lanes);
		      created.return = returnFiber;
		      return created;
		    } else {
		      // Update
		      var existing = useFiber(current, textContent);
		      existing.return = returnFiber;
		      return existing;
		    }
		  }

		  function updateElement(returnFiber, current, element, lanes) {
		    if (current !== null) {
		      if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
		       isCompatibleFamilyForHotReloading(current, element) )) {
		        // Move based on index
		        var existing = useFiber(current, element.props);
		        existing.ref = coerceRef(returnFiber, current, element);
		        existing.return = returnFiber;

		        {
		          existing._debugSource = element._source;
		          existing._debugOwner = element._owner;
		        }

		        return existing;
		      }
		    } // Insert


		    var created = createFiberFromElement(element, returnFiber.mode, lanes);
		    created.ref = coerceRef(returnFiber, current, element);
		    created.return = returnFiber;
		    return created;
		  }

		  function updatePortal(returnFiber, current, portal, lanes) {
		    if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
		      // Insert
		      var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
		      created.return = returnFiber;
		      return created;
		    } else {
		      // Update
		      var existing = useFiber(current, portal.children || []);
		      existing.return = returnFiber;
		      return existing;
		    }
		  }

		  function updateFragment(returnFiber, current, fragment, lanes, key) {
		    if (current === null || current.tag !== Fragment) {
		      // Insert
		      var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
		      created.return = returnFiber;
		      return created;
		    } else {
		      // Update
		      var existing = useFiber(current, fragment);
		      existing.return = returnFiber;
		      return existing;
		    }
		  }

		  function createChild(returnFiber, newChild, lanes) {
		    if (typeof newChild === 'string' || typeof newChild === 'number') {
		      // Text nodes don't have keys. If the previous node is implicitly keyed
		      // we can continue to replace it without aborting even if it is not a text
		      // node.
		      var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);
		      created.return = returnFiber;
		      return created;
		    }

		    if (typeof newChild === 'object' && newChild !== null) {
		      switch (newChild.$$typeof) {
		        case REACT_ELEMENT_TYPE:
		          {
		            var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);

		            _created.ref = coerceRef(returnFiber, null, newChild);
		            _created.return = returnFiber;
		            return _created;
		          }

		        case REACT_PORTAL_TYPE:
		          {
		            var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);

		            _created2.return = returnFiber;
		            return _created2;
		          }
		      }

		      if (isArray$1(newChild) || getIteratorFn(newChild)) {
		        var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);

		        _created3.return = returnFiber;
		        return _created3;
		      }

		      throwOnInvalidObjectType(returnFiber, newChild);
		    }

		    {
		      if (typeof newChild === 'function') {
		        warnOnFunctionType(returnFiber);
		      }
		    }

		    return null;
		  }

		  function updateSlot(returnFiber, oldFiber, newChild, lanes) {
		    // Update the fiber if the keys match, otherwise return null.
		    var key = oldFiber !== null ? oldFiber.key : null;

		    if (typeof newChild === 'string' || typeof newChild === 'number') {
		      // Text nodes don't have keys. If the previous node is implicitly keyed
		      // we can continue to replace it without aborting even if it is not a text
		      // node.
		      if (key !== null) {
		        return null;
		      }

		      return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);
		    }

		    if (typeof newChild === 'object' && newChild !== null) {
		      switch (newChild.$$typeof) {
		        case REACT_ELEMENT_TYPE:
		          {
		            if (newChild.key === key) {
		              if (newChild.type === REACT_FRAGMENT_TYPE) {
		                return updateFragment(returnFiber, oldFiber, newChild.props.children, lanes, key);
		              }

		              return updateElement(returnFiber, oldFiber, newChild, lanes);
		            } else {
		              return null;
		            }
		          }

		        case REACT_PORTAL_TYPE:
		          {
		            if (newChild.key === key) {
		              return updatePortal(returnFiber, oldFiber, newChild, lanes);
		            } else {
		              return null;
		            }
		          }
		      }

		      if (isArray$1(newChild) || getIteratorFn(newChild)) {
		        if (key !== null) {
		          return null;
		        }

		        return updateFragment(returnFiber, oldFiber, newChild, lanes, null);
		      }

		      throwOnInvalidObjectType(returnFiber, newChild);
		    }

		    {
		      if (typeof newChild === 'function') {
		        warnOnFunctionType(returnFiber);
		      }
		    }

		    return null;
		  }

		  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
		    if (typeof newChild === 'string' || typeof newChild === 'number') {
		      // Text nodes don't have keys, so we neither have to check the old nor
		      // new node for the key. If both are text nodes, they match.
		      var matchedFiber = existingChildren.get(newIdx) || null;
		      return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);
		    }

		    if (typeof newChild === 'object' && newChild !== null) {
		      switch (newChild.$$typeof) {
		        case REACT_ELEMENT_TYPE:
		          {
		            var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

		            if (newChild.type === REACT_FRAGMENT_TYPE) {
		              return updateFragment(returnFiber, _matchedFiber, newChild.props.children, lanes, newChild.key);
		            }

		            return updateElement(returnFiber, _matchedFiber, newChild, lanes);
		          }

		        case REACT_PORTAL_TYPE:
		          {
		            var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

		            return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);
		          }

		      }

		      if (isArray$1(newChild) || getIteratorFn(newChild)) {
		        var _matchedFiber3 = existingChildren.get(newIdx) || null;

		        return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);
		      }

		      throwOnInvalidObjectType(returnFiber, newChild);
		    }

		    {
		      if (typeof newChild === 'function') {
		        warnOnFunctionType(returnFiber);
		      }
		    }

		    return null;
		  }
		  /**
		   * Warns if there is a duplicate or missing key
		   */


		  function warnOnInvalidKey(child, knownKeys, returnFiber) {
		    {
		      if (typeof child !== 'object' || child === null) {
		        return knownKeys;
		      }

		      switch (child.$$typeof) {
		        case REACT_ELEMENT_TYPE:
		        case REACT_PORTAL_TYPE:
		          warnForMissingKey(child, returnFiber);
		          var key = child.key;

		          if (typeof key !== 'string') {
		            break;
		          }

		          if (knownKeys === null) {
		            knownKeys = new Set();
		            knownKeys.add(key);
		            break;
		          }

		          if (!knownKeys.has(key)) {
		            knownKeys.add(key);
		            break;
		          }

		          error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);

		          break;
		      }
		    }

		    return knownKeys;
		  }

		  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
		    // This algorithm can't optimize by searching from both ends since we
		    // don't have backpointers on fibers. I'm trying to see how far we can get
		    // with that model. If it ends up not being worth the tradeoffs, we can
		    // add it later.
		    // Even with a two ended optimization, we'd want to optimize for the case
		    // where there are few changes and brute force the comparison instead of
		    // going for the Map. It'd like to explore hitting that path first in
		    // forward-only mode and only go for the Map once we notice that we need
		    // lots of look ahead. This doesn't handle reversal as well as two ended
		    // search but that's unusual. Besides, for the two ended optimization to
		    // work on Iterables, we'd need to copy the whole set.
		    // In this first iteration, we'll just live with hitting the bad case
		    // (adding everything to a Map) in for every insert/move.
		    // If you change this code, also update reconcileChildrenIterator() which
		    // uses the same algorithm.
		    {
		      // First, validate keys.
		      var knownKeys = null;

		      for (var i = 0; i < newChildren.length; i++) {
		        var child = newChildren[i];
		        knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
		      }
		    }

		    var resultingFirstChild = null;
		    var previousNewFiber = null;
		    var oldFiber = currentFirstChild;
		    var lastPlacedIndex = 0;
		    var newIdx = 0;
		    var nextOldFiber = null;

		    for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
		      if (oldFiber.index > newIdx) {
		        nextOldFiber = oldFiber;
		        oldFiber = null;
		      } else {
		        nextOldFiber = oldFiber.sibling;
		      }

		      var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);

		      if (newFiber === null) {
		        // TODO: This breaks on empty slots like null children. That's
		        // unfortunate because it triggers the slow path all the time. We need
		        // a better way to communicate whether this was a miss or null,
		        // boolean, undefined, etc.
		        if (oldFiber === null) {
		          oldFiber = nextOldFiber;
		        }

		        break;
		      }

		      if (shouldTrackSideEffects) {
		        if (oldFiber && newFiber.alternate === null) {
		          // We matched the slot, but we didn't reuse the existing fiber, so we
		          // need to delete the existing child.
		          deleteChild(returnFiber, oldFiber);
		        }
		      }

		      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

		      if (previousNewFiber === null) {
		        // TODO: Move out of the loop. This only happens for the first run.
		        resultingFirstChild = newFiber;
		      } else {
		        // TODO: Defer siblings if we're not at the right index for this slot.
		        // I.e. if we had null values before, then we want to defer this
		        // for each null value. However, we also don't want to call updateSlot
		        // with the previous one.
		        previousNewFiber.sibling = newFiber;
		      }

		      previousNewFiber = newFiber;
		      oldFiber = nextOldFiber;
		    }

		    if (newIdx === newChildren.length) {
		      // We've reached the end of the new children. We can delete the rest.
		      deleteRemainingChildren(returnFiber, oldFiber);
		      return resultingFirstChild;
		    }

		    if (oldFiber === null) {
		      // If we don't have any more existing children we can choose a fast path
		      // since the rest will all be insertions.
		      for (; newIdx < newChildren.length; newIdx++) {
		        var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);

		        if (_newFiber === null) {
		          continue;
		        }

		        lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);

		        if (previousNewFiber === null) {
		          // TODO: Move out of the loop. This only happens for the first run.
		          resultingFirstChild = _newFiber;
		        } else {
		          previousNewFiber.sibling = _newFiber;
		        }

		        previousNewFiber = _newFiber;
		      }

		      return resultingFirstChild;
		    } // Add all children to a key map for quick lookups.


		    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

		    for (; newIdx < newChildren.length; newIdx++) {
		      var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);

		      if (_newFiber2 !== null) {
		        if (shouldTrackSideEffects) {
		          if (_newFiber2.alternate !== null) {
		            // The new fiber is a work in progress, but if there exists a
		            // current, that means that we reused the fiber. We need to delete
		            // it from the child list so that we don't add it to the deletion
		            // list.
		            existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
		          }
		        }

		        lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);

		        if (previousNewFiber === null) {
		          resultingFirstChild = _newFiber2;
		        } else {
		          previousNewFiber.sibling = _newFiber2;
		        }

		        previousNewFiber = _newFiber2;
		      }
		    }

		    if (shouldTrackSideEffects) {
		      // Any existing children that weren't consumed above were deleted. We need
		      // to add them to the deletion list.
		      existingChildren.forEach(function (child) {
		        return deleteChild(returnFiber, child);
		      });
		    }

		    return resultingFirstChild;
		  }

		  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
		    // This is the same implementation as reconcileChildrenArray(),
		    // but using the iterator instead.
		    var iteratorFn = getIteratorFn(newChildrenIterable);

		    if (!(typeof iteratorFn === 'function')) {
		      {
		        throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }

		    {
		      // We don't support rendering Generators because it's a mutation.
		      // See https://github.com/facebook/react/issues/12995
		      if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
		      newChildrenIterable[Symbol.toStringTag] === 'Generator') {
		        if (!didWarnAboutGenerators) {
		          error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
		        }

		        didWarnAboutGenerators = true;
		      } // Warn about using Maps as children


		      if (newChildrenIterable.entries === iteratorFn) {
		        if (!didWarnAboutMaps) {
		          error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
		        }

		        didWarnAboutMaps = true;
		      } // First, validate keys.
		      // We'll get a different iterator later for the main pass.


		      var _newChildren = iteratorFn.call(newChildrenIterable);

		      if (_newChildren) {
		        var knownKeys = null;

		        var _step = _newChildren.next();

		        for (; !_step.done; _step = _newChildren.next()) {
		          var child = _step.value;
		          knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
		        }
		      }
		    }

		    var newChildren = iteratorFn.call(newChildrenIterable);

		    if (!(newChildren != null)) {
		      {
		        throw Error( "An iterable object provided no iterator." );
		      }
		    }

		    var resultingFirstChild = null;
		    var previousNewFiber = null;
		    var oldFiber = currentFirstChild;
		    var lastPlacedIndex = 0;
		    var newIdx = 0;
		    var nextOldFiber = null;
		    var step = newChildren.next();

		    for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
		      if (oldFiber.index > newIdx) {
		        nextOldFiber = oldFiber;
		        oldFiber = null;
		      } else {
		        nextOldFiber = oldFiber.sibling;
		      }

		      var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);

		      if (newFiber === null) {
		        // TODO: This breaks on empty slots like null children. That's
		        // unfortunate because it triggers the slow path all the time. We need
		        // a better way to communicate whether this was a miss or null,
		        // boolean, undefined, etc.
		        if (oldFiber === null) {
		          oldFiber = nextOldFiber;
		        }

		        break;
		      }

		      if (shouldTrackSideEffects) {
		        if (oldFiber && newFiber.alternate === null) {
		          // We matched the slot, but we didn't reuse the existing fiber, so we
		          // need to delete the existing child.
		          deleteChild(returnFiber, oldFiber);
		        }
		      }

		      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

		      if (previousNewFiber === null) {
		        // TODO: Move out of the loop. This only happens for the first run.
		        resultingFirstChild = newFiber;
		      } else {
		        // TODO: Defer siblings if we're not at the right index for this slot.
		        // I.e. if we had null values before, then we want to defer this
		        // for each null value. However, we also don't want to call updateSlot
		        // with the previous one.
		        previousNewFiber.sibling = newFiber;
		      }

		      previousNewFiber = newFiber;
		      oldFiber = nextOldFiber;
		    }

		    if (step.done) {
		      // We've reached the end of the new children. We can delete the rest.
		      deleteRemainingChildren(returnFiber, oldFiber);
		      return resultingFirstChild;
		    }

		    if (oldFiber === null) {
		      // If we don't have any more existing children we can choose a fast path
		      // since the rest will all be insertions.
		      for (; !step.done; newIdx++, step = newChildren.next()) {
		        var _newFiber3 = createChild(returnFiber, step.value, lanes);

		        if (_newFiber3 === null) {
		          continue;
		        }

		        lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);

		        if (previousNewFiber === null) {
		          // TODO: Move out of the loop. This only happens for the first run.
		          resultingFirstChild = _newFiber3;
		        } else {
		          previousNewFiber.sibling = _newFiber3;
		        }

		        previousNewFiber = _newFiber3;
		      }

		      return resultingFirstChild;
		    } // Add all children to a key map for quick lookups.


		    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

		    for (; !step.done; newIdx++, step = newChildren.next()) {
		      var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);

		      if (_newFiber4 !== null) {
		        if (shouldTrackSideEffects) {
		          if (_newFiber4.alternate !== null) {
		            // The new fiber is a work in progress, but if there exists a
		            // current, that means that we reused the fiber. We need to delete
		            // it from the child list so that we don't add it to the deletion
		            // list.
		            existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
		          }
		        }

		        lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);

		        if (previousNewFiber === null) {
		          resultingFirstChild = _newFiber4;
		        } else {
		          previousNewFiber.sibling = _newFiber4;
		        }

		        previousNewFiber = _newFiber4;
		      }
		    }

		    if (shouldTrackSideEffects) {
		      // Any existing children that weren't consumed above were deleted. We need
		      // to add them to the deletion list.
		      existingChildren.forEach(function (child) {
		        return deleteChild(returnFiber, child);
		      });
		    }

		    return resultingFirstChild;
		  }

		  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {
		    // There's no need to check for keys on text nodes since we don't have a
		    // way to define them.
		    if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
		      // We already have an existing node so let's just update it and delete
		      // the rest.
		      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
		      var existing = useFiber(currentFirstChild, textContent);
		      existing.return = returnFiber;
		      return existing;
		    } // The existing first child is not a text node so we need to create one
		    // and delete the existing ones.


		    deleteRemainingChildren(returnFiber, currentFirstChild);
		    var created = createFiberFromText(textContent, returnFiber.mode, lanes);
		    created.return = returnFiber;
		    return created;
		  }

		  function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {
		    var key = element.key;
		    var child = currentFirstChild;

		    while (child !== null) {
		      // TODO: If key === null and child.key === null, then this only applies to
		      // the first item in the list.
		      if (child.key === key) {
		        switch (child.tag) {
		          case Fragment:
		            {
		              if (element.type === REACT_FRAGMENT_TYPE) {
		                deleteRemainingChildren(returnFiber, child.sibling);
		                var existing = useFiber(child, element.props.children);
		                existing.return = returnFiber;

		                {
		                  existing._debugSource = element._source;
		                  existing._debugOwner = element._owner;
		                }

		                return existing;
		              }

		              break;
		            }

		          case Block:

		          // We intentionally fallthrough here if enableBlocksAPI is not on.
		          // eslint-disable-next-lined no-fallthrough

		          default:
		            {
		              if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
		               isCompatibleFamilyForHotReloading(child, element) )) {
		                deleteRemainingChildren(returnFiber, child.sibling);

		                var _existing3 = useFiber(child, element.props);

		                _existing3.ref = coerceRef(returnFiber, child, element);
		                _existing3.return = returnFiber;

		                {
		                  _existing3._debugSource = element._source;
		                  _existing3._debugOwner = element._owner;
		                }

		                return _existing3;
		              }

		              break;
		            }
		        } // Didn't match.


		        deleteRemainingChildren(returnFiber, child);
		        break;
		      } else {
		        deleteChild(returnFiber, child);
		      }

		      child = child.sibling;
		    }

		    if (element.type === REACT_FRAGMENT_TYPE) {
		      var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
		      created.return = returnFiber;
		      return created;
		    } else {
		      var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);

		      _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
		      _created4.return = returnFiber;
		      return _created4;
		    }
		  }

		  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {
		    var key = portal.key;
		    var child = currentFirstChild;

		    while (child !== null) {
		      // TODO: If key === null and child.key === null, then this only applies to
		      // the first item in the list.
		      if (child.key === key) {
		        if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
		          deleteRemainingChildren(returnFiber, child.sibling);
		          var existing = useFiber(child, portal.children || []);
		          existing.return = returnFiber;
		          return existing;
		        } else {
		          deleteRemainingChildren(returnFiber, child);
		          break;
		        }
		      } else {
		        deleteChild(returnFiber, child);
		      }

		      child = child.sibling;
		    }

		    var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
		    created.return = returnFiber;
		    return created;
		  } // This API will tag the children with the side-effect of the reconciliation
		  // itself. They will be added to the side-effect list as we pass through the
		  // children and the parent.


		  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {
		    // This function is not recursive.
		    // If the top level item is an array, we treat it as a set of children,
		    // not as a fragment. Nested arrays on the other hand will be treated as
		    // fragment nodes. Recursion happens at the normal flow.
		    // Handle top level unkeyed fragments as if they were arrays.
		    // This leads to an ambiguity between <>{[...]}</> and <>...</>.
		    // We treat the ambiguous cases above the same.
		    var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;

		    if (isUnkeyedTopLevelFragment) {
		      newChild = newChild.props.children;
		    } // Handle object types


		    var isObject = typeof newChild === 'object' && newChild !== null;

		    if (isObject) {
		      switch (newChild.$$typeof) {
		        case REACT_ELEMENT_TYPE:
		          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));

		        case REACT_PORTAL_TYPE:
		          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));

		      }
		    }

		    if (typeof newChild === 'string' || typeof newChild === 'number') {
		      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));
		    }

		    if (isArray$1(newChild)) {
		      return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
		    }

		    if (getIteratorFn(newChild)) {
		      return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);
		    }

		    if (isObject) {
		      throwOnInvalidObjectType(returnFiber, newChild);
		    }

		    {
		      if (typeof newChild === 'function') {
		        warnOnFunctionType(returnFiber);
		      }
		    }

		    if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
		      // If the new child is undefined, and the return fiber is a composite
		      // component, throw an error. If Fiber return types are disabled,
		      // we already threw above.
		      switch (returnFiber.tag) {
		        case ClassComponent:
		          {
		            {
		              var instance = returnFiber.stateNode;

		              if (instance.render._isMockFunction) {
		                // We allow auto-mocks to proceed as if they're returning null.
		                break;
		              }
		            }
		          }
		        // Intentionally fall through to the next case, which handles both
		        // functions and classes
		        // eslint-disable-next-lined no-fallthrough

		        case Block:
		        case FunctionComponent:
		        case ForwardRef:
		        case SimpleMemoComponent:
		          {
		            {
		              {
		                throw Error( (getComponentName(returnFiber.type) || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." );
		              }
		            }
		          }
		      }
		    } // Remaining cases are all treated as empty.


		    return deleteRemainingChildren(returnFiber, currentFirstChild);
		  }

		  return reconcileChildFibers;
		}

		var reconcileChildFibers = ChildReconciler(true);
		var mountChildFibers = ChildReconciler(false);
		function cloneChildFibers(current, workInProgress) {
		  if (!(current === null || workInProgress.child === current.child)) {
		    {
		      throw Error( "Resuming work not yet implemented." );
		    }
		  }

		  if (workInProgress.child === null) {
		    return;
		  }

		  var currentChild = workInProgress.child;
		  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
		  workInProgress.child = newChild;
		  newChild.return = workInProgress;

		  while (currentChild.sibling !== null) {
		    currentChild = currentChild.sibling;
		    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
		    newChild.return = workInProgress;
		  }

		  newChild.sibling = null;
		} // Reset a workInProgress child set to prepare it for a second pass.

		function resetChildFibers(workInProgress, lanes) {
		  var child = workInProgress.child;

		  while (child !== null) {
		    resetWorkInProgress(child, lanes);
		    child = child.sibling;
		  }
		}

		var NO_CONTEXT = {};
		var contextStackCursor$1 = createCursor(NO_CONTEXT);
		var contextFiberStackCursor = createCursor(NO_CONTEXT);
		var rootInstanceStackCursor = createCursor(NO_CONTEXT);

		function requiredContext(c) {
		  if (!(c !== NO_CONTEXT)) {
		    {
		      throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }

		  return c;
		}

		function getRootHostContainer() {
		  var rootInstance = requiredContext(rootInstanceStackCursor.current);
		  return rootInstance;
		}

		function pushHostContainer(fiber, nextRootInstance) {
		  // Push current root instance onto the stack;
		  // This allows us to reset root when portals are popped.
		  push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
		  // This enables us to pop only Fibers that provide unique contexts.

		  push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
		  // However, we can't just call getRootHostContext() and push it because
		  // we'd have a different number of entries on the stack depending on
		  // whether getRootHostContext() throws somewhere in renderer code or not.
		  // So we push an empty value first. This lets us safely unwind on errors.

		  push(contextStackCursor$1, NO_CONTEXT, fiber);
		  var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.

		  pop(contextStackCursor$1, fiber);
		  push(contextStackCursor$1, nextRootContext, fiber);
		}

		function popHostContainer(fiber) {
		  pop(contextStackCursor$1, fiber);
		  pop(contextFiberStackCursor, fiber);
		  pop(rootInstanceStackCursor, fiber);
		}

		function getHostContext() {
		  var context = requiredContext(contextStackCursor$1.current);
		  return context;
		}

		function pushHostContext(fiber) {
		  requiredContext(rootInstanceStackCursor.current);
		  var context = requiredContext(contextStackCursor$1.current);
		  var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.

		  if (context === nextContext) {
		    return;
		  } // Track the context and the Fiber that provided it.
		  // This enables us to pop only Fibers that provide unique contexts.


		  push(contextFiberStackCursor, fiber, fiber);
		  push(contextStackCursor$1, nextContext, fiber);
		}

		function popHostContext(fiber) {
		  // Do not pop unless this Fiber provided the current context.
		  // pushHostContext() only pushes Fibers that provide unique contexts.
		  if (contextFiberStackCursor.current !== fiber) {
		    return;
		  }

		  pop(contextStackCursor$1, fiber);
		  pop(contextFiberStackCursor, fiber);
		}

		var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
		// inherited deeply down the subtree. The upper bits only affect
		// this immediate suspense boundary and gets reset each new
		// boundary or suspense list.

		var SubtreeSuspenseContextMask = 1; // Subtree Flags:
		// InvisibleParentSuspenseContext indicates that one of our parent Suspense
		// boundaries is not currently showing visible main content.
		// Either because it is already showing a fallback or is not mounted at all.
		// We can use this to determine if it is desirable to trigger a fallback at
		// the parent. If not, then we might need to trigger undesirable boundaries
		// and/or suspend the commit to avoid hiding the parent content.

		var InvisibleParentSuspenseContext = 1; // Shallow Flags:
		// ForceSuspenseFallback can be used by SuspenseList to force newly added
		// items into their fallback state during one of the render passes.

		var ForceSuspenseFallback = 2;
		var suspenseStackCursor = createCursor(DefaultSuspenseContext);
		function hasSuspenseContext(parentContext, flag) {
		  return (parentContext & flag) !== 0;
		}
		function setDefaultShallowSuspenseContext(parentContext) {
		  return parentContext & SubtreeSuspenseContextMask;
		}
		function setShallowSuspenseContext(parentContext, shallowContext) {
		  return parentContext & SubtreeSuspenseContextMask | shallowContext;
		}
		function addSubtreeSuspenseContext(parentContext, subtreeContext) {
		  return parentContext | subtreeContext;
		}
		function pushSuspenseContext(fiber, newContext) {
		  push(suspenseStackCursor, newContext, fiber);
		}
		function popSuspenseContext(fiber) {
		  pop(suspenseStackCursor, fiber);
		}

		function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
		  // If it was the primary children that just suspended, capture and render the
		  // fallback. Otherwise, don't capture and bubble to the next boundary.
		  var nextState = workInProgress.memoizedState;

		  if (nextState !== null) {
		    if (nextState.dehydrated !== null) {
		      // A dehydrated boundary always captures.
		      return true;
		    }

		    return false;
		  }

		  var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.

		  if (props.fallback === undefined) {
		    return false;
		  } // Regular boundaries always capture.


		  if (props.unstable_avoidThisFallback !== true) {
		    return true;
		  } // If it's a boundary we should avoid, then we prefer to bubble up to the
		  // parent boundary if it is currently invisible.


		  if (hasInvisibleParent) {
		    return false;
		  } // If the parent is not able to handle it, we must handle it.


		  return true;
		}
		function findFirstSuspended(row) {
		  var node = row;

		  while (node !== null) {
		    if (node.tag === SuspenseComponent) {
		      var state = node.memoizedState;

		      if (state !== null) {
		        var dehydrated = state.dehydrated;

		        if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
		          return node;
		        }
		      }
		    } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
		    // keep track of whether it suspended or not.
		    node.memoizedProps.revealOrder !== undefined) {
		      var didSuspend = (node.flags & DidCapture) !== NoFlags;

		      if (didSuspend) {
		        return node;
		      }
		    } else if (node.child !== null) {
		      node.child.return = node;
		      node = node.child;
		      continue;
		    }

		    if (node === row) {
		      return null;
		    }

		    while (node.sibling === null) {
		      if (node.return === null || node.return === row) {
		        return null;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  }

		  return null;
		}

		var NoFlags$1 =
		/*  */
		0; // Represents whether effect should fire.

		var HasEffect =
		/* */
		1; // Represents the phase in which the effect (not the clean-up) fires.

		var Layout =
		/*    */
		2;
		var Passive$1 =
		/*   */
		4;

		// This may have been an insertion or a hydration.

		var hydrationParentFiber = null;
		var nextHydratableInstance = null;
		var isHydrating = false;

		function enterHydrationState(fiber) {

		  var parentInstance = fiber.stateNode.containerInfo;
		  nextHydratableInstance = getFirstHydratableChild(parentInstance);
		  hydrationParentFiber = fiber;
		  isHydrating = true;
		  return true;
		}

		function deleteHydratableInstance(returnFiber, instance) {
		  {
		    switch (returnFiber.tag) {
		      case HostRoot:
		        didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
		        break;

		      case HostComponent:
		        didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
		        break;
		    }
		  }

		  var childToDelete = createFiberFromHostInstanceForDeletion();
		  childToDelete.stateNode = instance;
		  childToDelete.return = returnFiber;
		  childToDelete.flags = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
		  // these children are not part of the reconciliation list of children.
		  // Even if we abort and rereconcile the children, that will try to hydrate
		  // again and the nodes are still in the host tree so these will be
		  // recreated.

		  if (returnFiber.lastEffect !== null) {
		    returnFiber.lastEffect.nextEffect = childToDelete;
		    returnFiber.lastEffect = childToDelete;
		  } else {
		    returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
		  }
		}

		function insertNonHydratedInstance(returnFiber, fiber) {
		  fiber.flags = fiber.flags & ~Hydrating | Placement;

		  {
		    switch (returnFiber.tag) {
		      case HostRoot:
		        {
		          var parentContainer = returnFiber.stateNode.containerInfo;

		          switch (fiber.tag) {
		            case HostComponent:
		              var type = fiber.type;
		              fiber.pendingProps;
		              didNotFindHydratableContainerInstance(parentContainer, type);
		              break;

		            case HostText:
		              var text = fiber.pendingProps;
		              didNotFindHydratableContainerTextInstance(parentContainer, text);
		              break;
		          }

		          break;
		        }

		      case HostComponent:
		        {
		          var parentType = returnFiber.type;
		          var parentProps = returnFiber.memoizedProps;
		          var parentInstance = returnFiber.stateNode;

		          switch (fiber.tag) {
		            case HostComponent:
		              var _type = fiber.type;
		              fiber.pendingProps;
		              didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
		              break;

		            case HostText:
		              var _text = fiber.pendingProps;
		              didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
		              break;

		            case SuspenseComponent:
		              didNotFindHydratableSuspenseInstance(parentType, parentProps);
		              break;
		          }

		          break;
		        }

		      default:
		        return;
		    }
		  }
		}

		function tryHydrate(fiber, nextInstance) {
		  switch (fiber.tag) {
		    case HostComponent:
		      {
		        var type = fiber.type;
		        fiber.pendingProps;
		        var instance = canHydrateInstance(nextInstance, type);

		        if (instance !== null) {
		          fiber.stateNode = instance;
		          return true;
		        }

		        return false;
		      }

		    case HostText:
		      {
		        var text = fiber.pendingProps;
		        var textInstance = canHydrateTextInstance(nextInstance, text);

		        if (textInstance !== null) {
		          fiber.stateNode = textInstance;
		          return true;
		        }

		        return false;
		      }

		    case SuspenseComponent:
		      {

		        return false;
		      }

		    default:
		      return false;
		  }
		}

		function tryToClaimNextHydratableInstance(fiber) {
		  if (!isHydrating) {
		    return;
		  }

		  var nextInstance = nextHydratableInstance;

		  if (!nextInstance) {
		    // Nothing to hydrate. Make it an insertion.
		    insertNonHydratedInstance(hydrationParentFiber, fiber);
		    isHydrating = false;
		    hydrationParentFiber = fiber;
		    return;
		  }

		  var firstAttemptedInstance = nextInstance;

		  if (!tryHydrate(fiber, nextInstance)) {
		    // If we can't hydrate this instance let's try the next one.
		    // We use this as a heuristic. It's based on intuition and not data so it
		    // might be flawed or unnecessary.
		    nextInstance = getNextHydratableSibling(firstAttemptedInstance);

		    if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
		      // Nothing to hydrate. Make it an insertion.
		      insertNonHydratedInstance(hydrationParentFiber, fiber);
		      isHydrating = false;
		      hydrationParentFiber = fiber;
		      return;
		    } // We matched the next one, we'll now assume that the first one was
		    // superfluous and we'll delete it. Since we can't eagerly delete it
		    // we'll have to schedule a deletion. To do that, this node needs a dummy
		    // fiber associated with it.


		    deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
		  }

		  hydrationParentFiber = fiber;
		  nextHydratableInstance = getFirstHydratableChild(nextInstance);
		}

		function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {

		  var instance = fiber.stateNode;
		  var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.

		  fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
		  // is a new ref we mark this as an update.

		  if (updatePayload !== null) {
		    return true;
		  }

		  return false;
		}

		function prepareToHydrateHostTextInstance(fiber) {

		  var textInstance = fiber.stateNode;
		  var textContent = fiber.memoizedProps;
		  var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);

		  {
		    if (shouldUpdate) {
		      // We assume that prepareToHydrateHostTextInstance is called in a context where the
		      // hydration parent is the parent host component of this host text.
		      var returnFiber = hydrationParentFiber;

		      if (returnFiber !== null) {
		        switch (returnFiber.tag) {
		          case HostRoot:
		            {
		              var parentContainer = returnFiber.stateNode.containerInfo;
		              didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
		              break;
		            }

		          case HostComponent:
		            {
		              var parentType = returnFiber.type;
		              var parentProps = returnFiber.memoizedProps;
		              var parentInstance = returnFiber.stateNode;
		              didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
		              break;
		            }
		        }
		      }
		    }
		  }

		  return shouldUpdate;
		}

		function skipPastDehydratedSuspenseInstance(fiber) {

		  var suspenseState = fiber.memoizedState;
		  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;

		  if (!suspenseInstance) {
		    {
		      throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }

		  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
		}

		function popToNextHostParent(fiber) {
		  var parent = fiber.return;

		  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
		    parent = parent.return;
		  }

		  hydrationParentFiber = parent;
		}

		function popHydrationState(fiber) {

		  if (fiber !== hydrationParentFiber) {
		    // We're deeper than the current hydration context, inside an inserted
		    // tree.
		    return false;
		  }

		  if (!isHydrating) {
		    // If we're not currently hydrating but we're in a hydration context, then
		    // we were an insertion and now need to pop up reenter hydration of our
		    // siblings.
		    popToNextHostParent(fiber);
		    isHydrating = true;
		    return false;
		  }

		  var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
		  // We only do this deeper than head and body since they tend to have random
		  // other nodes in them. We also ignore components with pure text content in
		  // side of them.
		  // TODO: Better heuristic.

		  if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
		    var nextInstance = nextHydratableInstance;

		    while (nextInstance) {
		      deleteHydratableInstance(fiber, nextInstance);
		      nextInstance = getNextHydratableSibling(nextInstance);
		    }
		  }

		  popToNextHostParent(fiber);

		  if (fiber.tag === SuspenseComponent) {
		    nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
		  } else {
		    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
		  }

		  return true;
		}

		function resetHydrationState() {

		  hydrationParentFiber = null;
		  nextHydratableInstance = null;
		  isHydrating = false;
		}

		function getIsHydrating() {
		  return isHydrating;
		}

		// and should be reset before starting a new render.
		// This tracks which mutable sources need to be reset after a render.

		var workInProgressSources = [];
		var rendererSigil$1;

		{
		  // Used to detect multiple renderers using the same mutable source.
		  rendererSigil$1 = {};
		}

		function markSourceAsDirty(mutableSource) {
		  workInProgressSources.push(mutableSource);
		}
		function resetWorkInProgressVersions() {
		  for (var i = 0; i < workInProgressSources.length; i++) {
		    var mutableSource = workInProgressSources[i];

		    {
		      mutableSource._workInProgressVersionPrimary = null;
		    }
		  }

		  workInProgressSources.length = 0;
		}
		function getWorkInProgressVersion(mutableSource) {
		  {
		    return mutableSource._workInProgressVersionPrimary;
		  }
		}
		function setWorkInProgressVersion(mutableSource, version) {
		  {
		    mutableSource._workInProgressVersionPrimary = version;
		  }

		  workInProgressSources.push(mutableSource);
		}
		function warnAboutMultipleRenderersDEV(mutableSource) {
		  {
		    {
		      if (mutableSource._currentPrimaryRenderer == null) {
		        mutableSource._currentPrimaryRenderer = rendererSigil$1;
		      } else if (mutableSource._currentPrimaryRenderer !== rendererSigil$1) {
		        error('Detected multiple renderers concurrently rendering the ' + 'same mutable source. This is currently unsupported.');
		      }
		    }
		  }
		} // Eager reads the version of a mutable source and stores it on the root.

		var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
		    ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
		var didWarnAboutMismatchedHooksForComponent;
		var didWarnAboutUseOpaqueIdentifier;

		{
		  didWarnAboutUseOpaqueIdentifier = {};
		  didWarnAboutMismatchedHooksForComponent = new Set();
		}

		// These are set right before calling the component.
		var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
		// the work-in-progress hook.

		var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
		// current hook list is the list that belongs to the current fiber. The
		// work-in-progress hook list is a new list that will be added to the
		// work-in-progress fiber.

		var currentHook = null;
		var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
		// does not get reset if we do another render pass; only when we're completely
		// finished evaluating this component. This is an optimization so we know
		// whether we need to clear render phase updates after a throw.

		var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This
		// gets reset after each attempt.
		// TODO: Maybe there's some way to consolidate this with
		// `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.

		var didScheduleRenderPhaseUpdateDuringThisPass = false;
		var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook

		var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
		// The list stores the order of hooks used during the initial render (mount).
		// Subsequent renders (updates) reference this list.

		var hookTypesDev = null;
		var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
		// the dependencies for Hooks that need them (e.g. useEffect or useMemo).
		// When true, such Hooks will always be "remounted". Only used during hot reload.

		var ignorePreviousDependencies = false;

		function mountHookTypesDev() {
		  {
		    var hookName = currentHookNameInDev;

		    if (hookTypesDev === null) {
		      hookTypesDev = [hookName];
		    } else {
		      hookTypesDev.push(hookName);
		    }
		  }
		}

		function updateHookTypesDev() {
		  {
		    var hookName = currentHookNameInDev;

		    if (hookTypesDev !== null) {
		      hookTypesUpdateIndexDev++;

		      if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
		        warnOnHookMismatchInDev(hookName);
		      }
		    }
		  }
		}

		function checkDepsAreArrayDev(deps) {
		  {
		    if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
		      // Verify deps, but only on mount to avoid extra checks.
		      // It's unlikely their type would change as usually you define them inline.
		      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
		    }
		  }
		}

		function warnOnHookMismatchInDev(currentHookName) {
		  {
		    var componentName = getComponentName(currentlyRenderingFiber$1.type);

		    if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
		      didWarnAboutMismatchedHooksForComponent.add(componentName);

		      if (hookTypesDev !== null) {
		        var table = '';
		        var secondColumnStart = 30;

		        for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
		          var oldHookName = hookTypesDev[i];
		          var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
		          var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
		          // lol @ IE not supporting String#repeat

		          while (row.length < secondColumnStart) {
		            row += ' ';
		          }

		          row += newHookName + '\n';
		          table += row;
		        }

		        error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n' + '   Previous render            Next render\n' + '   ------------------------------------------------------\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
		      }
		    }
		  }
		}

		function throwInvalidHookError() {
		  {
		    {
		      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
		    }
		  }
		}

		function areHookInputsEqual(nextDeps, prevDeps) {
		  {
		    if (ignorePreviousDependencies) {
		      // Only true when this component is being hot reloaded.
		      return false;
		    }
		  }

		  if (prevDeps === null) {
		    {
		      error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
		    }

		    return false;
		  }

		  {
		    // Don't bother comparing lengths in prod because these arrays should be
		    // passed inline.
		    if (nextDeps.length !== prevDeps.length) {
		      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
		    }
		  }

		  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
		    if (objectIs(nextDeps[i], prevDeps[i])) {
		      continue;
		    }

		    return false;
		  }

		  return true;
		}

		function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
		  renderLanes = nextRenderLanes;
		  currentlyRenderingFiber$1 = workInProgress;

		  {
		    hookTypesDev = current !== null ? current._debugHookTypes : null;
		    hookTypesUpdateIndexDev = -1; // Used for hot reloading:

		    ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
		  }

		  workInProgress.memoizedState = null;
		  workInProgress.updateQueue = null;
		  workInProgress.lanes = NoLanes; // The following should have already been reset
		  // currentHook = null;
		  // workInProgressHook = null;
		  // didScheduleRenderPhaseUpdate = false;
		  // TODO Warn if no hooks are used at all during mount, then some are used during update.
		  // Currently we will identify the update render as a mount because memoizedState === null.
		  // This is tricky because it's valid for certain types of components (e.g. React.lazy)
		  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
		  // Non-stateful hooks (e.g. context) don't get added to memoizedState,
		  // so memoizedState would be null during updates and mounts.

		  {
		    if (current !== null && current.memoizedState !== null) {
		      ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
		    } else if (hookTypesDev !== null) {
		      // This dispatcher handles an edge case where a component is updating,
		      // but no stateful hooks have been used.
		      // We want to match the production code behavior (which will use HooksDispatcherOnMount),
		      // but with the extra DEV validation to ensure hooks ordering hasn't changed.
		      // This dispatcher does that.
		      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
		    } else {
		      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
		    }
		  }

		  var children = Component(props, secondArg); // Check if there was a render phase update

		  if (didScheduleRenderPhaseUpdateDuringThisPass) {
		    // Keep rendering in a loop for as long as render phase updates continue to
		    // be scheduled. Use a counter to prevent infinite loops.
		    var numberOfReRenders = 0;

		    do {
		      didScheduleRenderPhaseUpdateDuringThisPass = false;

		      if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
		        {
		          throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
		        }
		      }

		      numberOfReRenders += 1;

		      {
		        // Even when hot reloading, allow dependencies to stabilize
		        // after first render to prevent infinite render phase updates.
		        ignorePreviousDependencies = false;
		      } // Start over from the beginning of the list


		      currentHook = null;
		      workInProgressHook = null;
		      workInProgress.updateQueue = null;

		      {
		        // Also validate hook order for cascading updates.
		        hookTypesUpdateIndexDev = -1;
		      }

		      ReactCurrentDispatcher$1.current =  HooksDispatcherOnRerenderInDEV ;
		      children = Component(props, secondArg);
		    } while (didScheduleRenderPhaseUpdateDuringThisPass);
		  } // We can assume the previous dispatcher is always this one, since we set it
		  // at the beginning of the render phase and there's no re-entrancy.


		  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

		  {
		    workInProgress._debugHookTypes = hookTypesDev;
		  } // This check uses currentHook so that it works the same in DEV and prod bundles.
		  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.


		  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
		  renderLanes = NoLanes;
		  currentlyRenderingFiber$1 = null;
		  currentHook = null;
		  workInProgressHook = null;

		  {
		    currentHookNameInDev = null;
		    hookTypesDev = null;
		    hookTypesUpdateIndexDev = -1;
		  }

		  didScheduleRenderPhaseUpdate = false;

		  if (!!didRenderTooFewHooks) {
		    {
		      throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
		    }
		  }

		  return children;
		}
		function bailoutHooks(current, workInProgress, lanes) {
		  workInProgress.updateQueue = current.updateQueue;
		  workInProgress.flags &= ~(Passive | Update);
		  current.lanes = removeLanes(current.lanes, lanes);
		}
		function resetHooksAfterThrow() {
		  // We can assume the previous dispatcher is always this one, since we set it
		  // at the beginning of the render phase and there's no re-entrancy.
		  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

		  if (didScheduleRenderPhaseUpdate) {
		    // There were render phase updates. These are only valid for this render
		    // phase, which we are now aborting. Remove the updates from the queues so
		    // they do not persist to the next render. Do not remove updates from hooks
		    // that weren't processed.
		    //
		    // Only reset the updates from the queue if it has a clone. If it does
		    // not have a clone, that means it wasn't processed, and the updates were
		    // scheduled before we entered the render phase.
		    var hook = currentlyRenderingFiber$1.memoizedState;

		    while (hook !== null) {
		      var queue = hook.queue;

		      if (queue !== null) {
		        queue.pending = null;
		      }

		      hook = hook.next;
		    }

		    didScheduleRenderPhaseUpdate = false;
		  }

		  renderLanes = NoLanes;
		  currentlyRenderingFiber$1 = null;
		  currentHook = null;
		  workInProgressHook = null;

		  {
		    hookTypesDev = null;
		    hookTypesUpdateIndexDev = -1;
		    currentHookNameInDev = null;
		    isUpdatingOpaqueValueInRenderPhase = false;
		  }

		  didScheduleRenderPhaseUpdateDuringThisPass = false;
		}

		function mountWorkInProgressHook() {
		  var hook = {
		    memoizedState: null,
		    baseState: null,
		    baseQueue: null,
		    queue: null,
		    next: null
		  };

		  if (workInProgressHook === null) {
		    // This is the first hook in the list
		    currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
		  } else {
		    // Append to the end of the list
		    workInProgressHook = workInProgressHook.next = hook;
		  }

		  return workInProgressHook;
		}

		function updateWorkInProgressHook() {
		  // This function is used both for updates and for re-renders triggered by a
		  // render phase update. It assumes there is either a current hook we can
		  // clone, or a work-in-progress hook from a previous render pass that we can
		  // use as a base. When we reach the end of the base list, we must switch to
		  // the dispatcher used for mounts.
		  var nextCurrentHook;

		  if (currentHook === null) {
		    var current = currentlyRenderingFiber$1.alternate;

		    if (current !== null) {
		      nextCurrentHook = current.memoizedState;
		    } else {
		      nextCurrentHook = null;
		    }
		  } else {
		    nextCurrentHook = currentHook.next;
		  }

		  var nextWorkInProgressHook;

		  if (workInProgressHook === null) {
		    nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
		  } else {
		    nextWorkInProgressHook = workInProgressHook.next;
		  }

		  if (nextWorkInProgressHook !== null) {
		    // There's already a work-in-progress. Reuse it.
		    workInProgressHook = nextWorkInProgressHook;
		    nextWorkInProgressHook = workInProgressHook.next;
		    currentHook = nextCurrentHook;
		  } else {
		    // Clone from the current hook.
		    if (!(nextCurrentHook !== null)) {
		      {
		        throw Error( "Rendered more hooks than during the previous render." );
		      }
		    }

		    currentHook = nextCurrentHook;
		    var newHook = {
		      memoizedState: currentHook.memoizedState,
		      baseState: currentHook.baseState,
		      baseQueue: currentHook.baseQueue,
		      queue: currentHook.queue,
		      next: null
		    };

		    if (workInProgressHook === null) {
		      // This is the first hook in the list.
		      currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
		    } else {
		      // Append to the end of the list.
		      workInProgressHook = workInProgressHook.next = newHook;
		    }
		  }

		  return workInProgressHook;
		}

		function createFunctionComponentUpdateQueue() {
		  return {
		    lastEffect: null
		  };
		}

		function basicStateReducer(state, action) {
		  // $FlowFixMe: Flow doesn't like mixed types
		  return typeof action === 'function' ? action(state) : action;
		}

		function mountReducer(reducer, initialArg, init) {
		  var hook = mountWorkInProgressHook();
		  var initialState;

		  if (init !== undefined) {
		    initialState = init(initialArg);
		  } else {
		    initialState = initialArg;
		  }

		  hook.memoizedState = hook.baseState = initialState;
		  var queue = hook.queue = {
		    pending: null,
		    dispatch: null,
		    lastRenderedReducer: reducer,
		    lastRenderedState: initialState
		  };
		  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
		  return [hook.memoizedState, dispatch];
		}

		function updateReducer(reducer, initialArg, init) {
		  var hook = updateWorkInProgressHook();
		  var queue = hook.queue;

		  if (!(queue !== null)) {
		    {
		      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
		    }
		  }

		  queue.lastRenderedReducer = reducer;
		  var current = currentHook; // The last rebase update that is NOT part of the base state.

		  var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.

		  var pendingQueue = queue.pending;

		  if (pendingQueue !== null) {
		    // We have new updates that haven't been processed yet.
		    // We'll add them to the base queue.
		    if (baseQueue !== null) {
		      // Merge the pending queue and the base queue.
		      var baseFirst = baseQueue.next;
		      var pendingFirst = pendingQueue.next;
		      baseQueue.next = pendingFirst;
		      pendingQueue.next = baseFirst;
		    }

		    {
		      if (current.baseQueue !== baseQueue) {
		        // Internal invariant that should never happen, but feasibly could in
		        // the future if we implement resuming, or some form of that.
		        error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');
		      }
		    }

		    current.baseQueue = baseQueue = pendingQueue;
		    queue.pending = null;
		  }

		  if (baseQueue !== null) {
		    // We have a queue to process.
		    var first = baseQueue.next;
		    var newState = current.baseState;
		    var newBaseState = null;
		    var newBaseQueueFirst = null;
		    var newBaseQueueLast = null;
		    var update = first;

		    do {
		      var updateLane = update.lane;

		      if (!isSubsetOfLanes(renderLanes, updateLane)) {
		        // Priority is insufficient. Skip this update. If this is the first
		        // skipped update, the previous update/state is the new base
		        // update/state.
		        var clone = {
		          lane: updateLane,
		          action: update.action,
		          eagerReducer: update.eagerReducer,
		          eagerState: update.eagerState,
		          next: null
		        };

		        if (newBaseQueueLast === null) {
		          newBaseQueueFirst = newBaseQueueLast = clone;
		          newBaseState = newState;
		        } else {
		          newBaseQueueLast = newBaseQueueLast.next = clone;
		        } // Update the remaining priority in the queue.
		        // TODO: Don't need to accumulate this. Instead, we can remove
		        // renderLanes from the original lanes.


		        currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
		        markSkippedUpdateLanes(updateLane);
		      } else {
		        // This update does have sufficient priority.
		        if (newBaseQueueLast !== null) {
		          var _clone = {
		            // This update is going to be committed so we never want uncommit
		            // it. Using NoLane works because 0 is a subset of all bitmasks, so
		            // this will never be skipped by the check above.
		            lane: NoLane,
		            action: update.action,
		            eagerReducer: update.eagerReducer,
		            eagerState: update.eagerState,
		            next: null
		          };
		          newBaseQueueLast = newBaseQueueLast.next = _clone;
		        } // Process this update.


		        if (update.eagerReducer === reducer) {
		          // If this update was processed eagerly, and its reducer matches the
		          // current reducer, we can use the eagerly computed state.
		          newState = update.eagerState;
		        } else {
		          var action = update.action;
		          newState = reducer(newState, action);
		        }
		      }

		      update = update.next;
		    } while (update !== null && update !== first);

		    if (newBaseQueueLast === null) {
		      newBaseState = newState;
		    } else {
		      newBaseQueueLast.next = newBaseQueueFirst;
		    } // Mark that the fiber performed work, but only if the new state is
		    // different from the current state.


		    if (!objectIs(newState, hook.memoizedState)) {
		      markWorkInProgressReceivedUpdate();
		    }

		    hook.memoizedState = newState;
		    hook.baseState = newBaseState;
		    hook.baseQueue = newBaseQueueLast;
		    queue.lastRenderedState = newState;
		  }

		  var dispatch = queue.dispatch;
		  return [hook.memoizedState, dispatch];
		}

		function rerenderReducer(reducer, initialArg, init) {
		  var hook = updateWorkInProgressHook();
		  var queue = hook.queue;

		  if (!(queue !== null)) {
		    {
		      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
		    }
		  }

		  queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
		  // work-in-progress hook.

		  var dispatch = queue.dispatch;
		  var lastRenderPhaseUpdate = queue.pending;
		  var newState = hook.memoizedState;

		  if (lastRenderPhaseUpdate !== null) {
		    // The queue doesn't persist past this render pass.
		    queue.pending = null;
		    var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
		    var update = firstRenderPhaseUpdate;

		    do {
		      // Process this render phase update. We don't have to check the
		      // priority because it will always be the same as the current
		      // render's.
		      var action = update.action;
		      newState = reducer(newState, action);
		      update = update.next;
		    } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
		    // different from the current state.


		    if (!objectIs(newState, hook.memoizedState)) {
		      markWorkInProgressReceivedUpdate();
		    }

		    hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
		    // the base state unless the queue is empty.
		    // TODO: Not sure if this is the desired semantics, but it's what we
		    // do for gDSFP. I can't remember why.

		    if (hook.baseQueue === null) {
		      hook.baseState = newState;
		    }

		    queue.lastRenderedState = newState;
		  }

		  return [newState, dispatch];
		}

		function readFromUnsubcribedMutableSource(root, source, getSnapshot) {
		  {
		    warnAboutMultipleRenderersDEV(source);
		  }

		  var getVersion = source._getVersion;
		  var version = getVersion(source._source); // Is it safe for this component to read from this source during the current render?

		  var isSafeToReadFromSource = false; // Check the version first.
		  // If this render has already been started with a specific version,
		  // we can use it alone to determine if we can safely read from the source.

		  var currentRenderVersion = getWorkInProgressVersion(source);

		  if (currentRenderVersion !== null) {
		    // It's safe to read if the store hasn't been mutated since the last time
		    // we read something.
		    isSafeToReadFromSource = currentRenderVersion === version;
		  } else {
		    // If there's no version, then this is the first time we've read from the
		    // source during the current render pass, so we need to do a bit more work.
		    // What we need to determine is if there are any hooks that already
		    // subscribed to the source, and if so, whether there are any pending
		    // mutations that haven't been synchronized yet.
		    //
		    // If there are no pending mutations, then `root.mutableReadLanes` will be
		    // empty, and we know we can safely read.
		    //
		    // If there *are* pending mutations, we may still be able to safely read
		    // if the currently rendering lanes are inclusive of the pending mutation
		    // lanes, since that guarantees that the value we're about to read from
		    // the source is consistent with the values that we read during the most
		    // recent mutation.
		    isSafeToReadFromSource = isSubsetOfLanes(renderLanes, root.mutableReadLanes);

		    if (isSafeToReadFromSource) {
		      // If it's safe to read from this source during the current render,
		      // store the version in case other components read from it.
		      // A changed version number will let those components know to throw and restart the render.
		      setWorkInProgressVersion(source, version);
		    }
		  }

		  if (isSafeToReadFromSource) {
		    var snapshot = getSnapshot(source._source);

		    {
		      if (typeof snapshot === 'function') {
		        error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
		      }
		    }

		    return snapshot;
		  } else {
		    // This handles the special case of a mutable source being shared between renderers.
		    // In that case, if the source is mutated between the first and second renderer,
		    // The second renderer don't know that it needs to reset the WIP version during unwind,
		    // (because the hook only marks sources as dirty if it's written to their WIP version).
		    // That would cause this tear check to throw again and eventually be visible to the user.
		    // We can avoid this infinite loop by explicitly marking the source as dirty.
		    //
		    // This can lead to tearing in the first renderer when it resumes,
		    // but there's nothing we can do about that (short of throwing here and refusing to continue the render).
		    markSourceAsDirty(source);

		    {
		      {
		        throw Error( "Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue." );
		      }
		    }
		  }
		}

		function useMutableSource(hook, source, getSnapshot, subscribe) {
		  var root = getWorkInProgressRoot();

		  if (!(root !== null)) {
		    {
		      throw Error( "Expected a work-in-progress root. This is a bug in React. Please file an issue." );
		    }
		  }

		  var getVersion = source._getVersion;
		  var version = getVersion(source._source);
		  var dispatcher = ReactCurrentDispatcher$1.current; // eslint-disable-next-line prefer-const

		  var _dispatcher$useState = dispatcher.useState(function () {
		    return readFromUnsubcribedMutableSource(root, source, getSnapshot);
		  }),
		      currentSnapshot = _dispatcher$useState[0],
		      setSnapshot = _dispatcher$useState[1];

		  var snapshot = currentSnapshot; // Grab a handle to the state hook as well.
		  // We use it to clear the pending update queue if we have a new source.

		  var stateHook = workInProgressHook;
		  var memoizedState = hook.memoizedState;
		  var refs = memoizedState.refs;
		  var prevGetSnapshot = refs.getSnapshot;
		  var prevSource = memoizedState.source;
		  var prevSubscribe = memoizedState.subscribe;
		  var fiber = currentlyRenderingFiber$1;
		  hook.memoizedState = {
		    refs: refs,
		    source: source,
		    subscribe: subscribe
		  }; // Sync the values needed by our subscription handler after each commit.

		  dispatcher.useEffect(function () {
		    refs.getSnapshot = getSnapshot; // Normally the dispatch function for a state hook never changes,
		    // but this hook recreates the queue in certain cases  to avoid updates from stale sources.
		    // handleChange() below needs to reference the dispatch function without re-subscribing,
		    // so we use a ref to ensure that it always has the latest version.

		    refs.setSnapshot = setSnapshot; // Check for a possible change between when we last rendered now.

		    var maybeNewVersion = getVersion(source._source);

		    if (!objectIs(version, maybeNewVersion)) {
		      var maybeNewSnapshot = getSnapshot(source._source);

		      {
		        if (typeof maybeNewSnapshot === 'function') {
		          error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
		        }
		      }

		      if (!objectIs(snapshot, maybeNewSnapshot)) {
		        setSnapshot(maybeNewSnapshot);
		        var lane = requestUpdateLane(fiber);
		        markRootMutableRead(root, lane);
		      } // If the source mutated between render and now,
		      // there may be state updates already scheduled from the old source.
		      // Entangle the updates so that they render in the same batch.


		      markRootEntangled(root, root.mutableReadLanes);
		    }
		  }, [getSnapshot, source, subscribe]); // If we got a new source or subscribe function, re-subscribe in a passive effect.

		  dispatcher.useEffect(function () {
		    var handleChange = function () {
		      var latestGetSnapshot = refs.getSnapshot;
		      var latestSetSnapshot = refs.setSnapshot;

		      try {
		        latestSetSnapshot(latestGetSnapshot(source._source)); // Record a pending mutable source update with the same expiration time.

		        var lane = requestUpdateLane(fiber);
		        markRootMutableRead(root, lane);
		      } catch (error) {
		        // A selector might throw after a source mutation.
		        // e.g. it might try to read from a part of the store that no longer exists.
		        // In this case we should still schedule an update with React.
		        // Worst case the selector will throw again and then an error boundary will handle it.
		        latestSetSnapshot(function () {
		          throw error;
		        });
		      }
		    };

		    var unsubscribe = subscribe(source._source, handleChange);

		    {
		      if (typeof unsubscribe !== 'function') {
		        error('Mutable source subscribe function must return an unsubscribe function.');
		      }
		    }

		    return unsubscribe;
		  }, [source, subscribe]); // If any of the inputs to useMutableSource change, reading is potentially unsafe.
		  //
		  // If either the source or the subscription have changed we can't can't trust the update queue.
		  // Maybe the source changed in a way that the old subscription ignored but the new one depends on.
		  //
		  // If the getSnapshot function changed, we also shouldn't rely on the update queue.
		  // It's possible that the underlying source was mutated between the when the last "change" event fired,
		  // and when the current render (with the new getSnapshot function) is processed.
		  //
		  // In both cases, we need to throw away pending updates (since they are no longer relevant)
		  // and treat reading from the source as we do in the mount case.

		  if (!objectIs(prevGetSnapshot, getSnapshot) || !objectIs(prevSource, source) || !objectIs(prevSubscribe, subscribe)) {
		    // Create a new queue and setState method,
		    // So if there are interleaved updates, they get pushed to the older queue.
		    // When this becomes current, the previous queue and dispatch method will be discarded,
		    // including any interleaving updates that occur.
		    var newQueue = {
		      pending: null,
		      dispatch: null,
		      lastRenderedReducer: basicStateReducer,
		      lastRenderedState: snapshot
		    };
		    newQueue.dispatch = setSnapshot = dispatchAction.bind(null, currentlyRenderingFiber$1, newQueue);
		    stateHook.queue = newQueue;
		    stateHook.baseQueue = null;
		    snapshot = readFromUnsubcribedMutableSource(root, source, getSnapshot);
		    stateHook.memoizedState = stateHook.baseState = snapshot;
		  }

		  return snapshot;
		}

		function mountMutableSource(source, getSnapshot, subscribe) {
		  var hook = mountWorkInProgressHook();
		  hook.memoizedState = {
		    refs: {
		      getSnapshot: getSnapshot,
		      setSnapshot: null
		    },
		    source: source,
		    subscribe: subscribe
		  };
		  return useMutableSource(hook, source, getSnapshot, subscribe);
		}

		function updateMutableSource(source, getSnapshot, subscribe) {
		  var hook = updateWorkInProgressHook();
		  return useMutableSource(hook, source, getSnapshot, subscribe);
		}

		function mountState(initialState) {
		  var hook = mountWorkInProgressHook();

		  if (typeof initialState === 'function') {
		    // $FlowFixMe: Flow doesn't like mixed types
		    initialState = initialState();
		  }

		  hook.memoizedState = hook.baseState = initialState;
		  var queue = hook.queue = {
		    pending: null,
		    dispatch: null,
		    lastRenderedReducer: basicStateReducer,
		    lastRenderedState: initialState
		  };
		  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
		  return [hook.memoizedState, dispatch];
		}

		function updateState(initialState) {
		  return updateReducer(basicStateReducer);
		}

		function rerenderState(initialState) {
		  return rerenderReducer(basicStateReducer);
		}

		function pushEffect(tag, create, destroy, deps) {
		  var effect = {
		    tag: tag,
		    create: create,
		    destroy: destroy,
		    deps: deps,
		    // Circular
		    next: null
		  };
		  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;

		  if (componentUpdateQueue === null) {
		    componentUpdateQueue = createFunctionComponentUpdateQueue();
		    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
		    componentUpdateQueue.lastEffect = effect.next = effect;
		  } else {
		    var lastEffect = componentUpdateQueue.lastEffect;

		    if (lastEffect === null) {
		      componentUpdateQueue.lastEffect = effect.next = effect;
		    } else {
		      var firstEffect = lastEffect.next;
		      lastEffect.next = effect;
		      effect.next = firstEffect;
		      componentUpdateQueue.lastEffect = effect;
		    }
		  }

		  return effect;
		}

		function mountRef(initialValue) {
		  var hook = mountWorkInProgressHook();
		  var ref = {
		    current: initialValue
		  };

		  {
		    Object.seal(ref);
		  }

		  hook.memoizedState = ref;
		  return ref;
		}

		function updateRef(initialValue) {
		  var hook = updateWorkInProgressHook();
		  return hook.memoizedState;
		}

		function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
		  var hook = mountWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  currentlyRenderingFiber$1.flags |= fiberFlags;
		  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);
		}

		function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
		  var hook = updateWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  var destroy = undefined;

		  if (currentHook !== null) {
		    var prevEffect = currentHook.memoizedState;
		    destroy = prevEffect.destroy;

		    if (nextDeps !== null) {
		      var prevDeps = prevEffect.deps;

		      if (areHookInputsEqual(nextDeps, prevDeps)) {
		        pushEffect(hookFlags, create, destroy, nextDeps);
		        return;
		      }
		    }
		  }

		  currentlyRenderingFiber$1.flags |= fiberFlags;
		  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);
		}

		function mountEffect(create, deps) {
		  {
		    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
		    if ('undefined' !== typeof jest) {
		      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
		    }
		  }

		  return mountEffectImpl(Update | Passive, Passive$1, create, deps);
		}

		function updateEffect(create, deps) {
		  {
		    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
		    if ('undefined' !== typeof jest) {
		      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
		    }
		  }

		  return updateEffectImpl(Update | Passive, Passive$1, create, deps);
		}

		function mountLayoutEffect(create, deps) {
		  return mountEffectImpl(Update, Layout, create, deps);
		}

		function updateLayoutEffect(create, deps) {
		  return updateEffectImpl(Update, Layout, create, deps);
		}

		function imperativeHandleEffect(create, ref) {
		  if (typeof ref === 'function') {
		    var refCallback = ref;

		    var _inst = create();

		    refCallback(_inst);
		    return function () {
		      refCallback(null);
		    };
		  } else if (ref !== null && ref !== undefined) {
		    var refObject = ref;

		    {
		      if (!refObject.hasOwnProperty('current')) {
		        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
		      }
		    }

		    var _inst2 = create();

		    refObject.current = _inst2;
		    return function () {
		      refObject.current = null;
		    };
		  }
		}

		function mountImperativeHandle(ref, create, deps) {
		  {
		    if (typeof create !== 'function') {
		      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
		    }
		  } // TODO: If deps are provided, should we skip comparing the ref itself?


		  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
		  return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
		}

		function updateImperativeHandle(ref, create, deps) {
		  {
		    if (typeof create !== 'function') {
		      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
		    }
		  } // TODO: If deps are provided, should we skip comparing the ref itself?


		  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
		  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
		}

		function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
		  // The react-debug-hooks package injects its own implementation
		  // so that e.g. DevTools can display custom hook values.
		}

		var updateDebugValue = mountDebugValue;

		function mountCallback(callback, deps) {
		  var hook = mountWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  hook.memoizedState = [callback, nextDeps];
		  return callback;
		}

		function updateCallback(callback, deps) {
		  var hook = updateWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  var prevState = hook.memoizedState;

		  if (prevState !== null) {
		    if (nextDeps !== null) {
		      var prevDeps = prevState[1];

		      if (areHookInputsEqual(nextDeps, prevDeps)) {
		        return prevState[0];
		      }
		    }
		  }

		  hook.memoizedState = [callback, nextDeps];
		  return callback;
		}

		function mountMemo(nextCreate, deps) {
		  var hook = mountWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  var nextValue = nextCreate();
		  hook.memoizedState = [nextValue, nextDeps];
		  return nextValue;
		}

		function updateMemo(nextCreate, deps) {
		  var hook = updateWorkInProgressHook();
		  var nextDeps = deps === undefined ? null : deps;
		  var prevState = hook.memoizedState;

		  if (prevState !== null) {
		    // Assume these are defined. If they're not, areHookInputsEqual will warn.
		    if (nextDeps !== null) {
		      var prevDeps = prevState[1];

		      if (areHookInputsEqual(nextDeps, prevDeps)) {
		        return prevState[0];
		      }
		    }
		  }

		  var nextValue = nextCreate();
		  hook.memoizedState = [nextValue, nextDeps];
		  return nextValue;
		}

		function mountDeferredValue(value) {
		  var _mountState = mountState(value),
		      prevValue = _mountState[0],
		      setValue = _mountState[1];

		  mountEffect(function () {
		    var prevTransition = ReactCurrentBatchConfig$1.transition;
		    ReactCurrentBatchConfig$1.transition = 1;

		    try {
		      setValue(value);
		    } finally {
		      ReactCurrentBatchConfig$1.transition = prevTransition;
		    }
		  }, [value]);
		  return prevValue;
		}

		function updateDeferredValue(value) {
		  var _updateState = updateState(),
		      prevValue = _updateState[0],
		      setValue = _updateState[1];

		  updateEffect(function () {
		    var prevTransition = ReactCurrentBatchConfig$1.transition;
		    ReactCurrentBatchConfig$1.transition = 1;

		    try {
		      setValue(value);
		    } finally {
		      ReactCurrentBatchConfig$1.transition = prevTransition;
		    }
		  }, [value]);
		  return prevValue;
		}

		function rerenderDeferredValue(value) {
		  var _rerenderState = rerenderState(),
		      prevValue = _rerenderState[0],
		      setValue = _rerenderState[1];

		  updateEffect(function () {
		    var prevTransition = ReactCurrentBatchConfig$1.transition;
		    ReactCurrentBatchConfig$1.transition = 1;

		    try {
		      setValue(value);
		    } finally {
		      ReactCurrentBatchConfig$1.transition = prevTransition;
		    }
		  }, [value]);
		  return prevValue;
		}

		function startTransition(setPending, callback) {
		  var priorityLevel = getCurrentPriorityLevel();

		  {
		    runWithPriority$1(priorityLevel < UserBlockingPriority$2 ? UserBlockingPriority$2 : priorityLevel, function () {
		      setPending(true);
		    });
		    runWithPriority$1(priorityLevel > NormalPriority$1 ? NormalPriority$1 : priorityLevel, function () {
		      var prevTransition = ReactCurrentBatchConfig$1.transition;
		      ReactCurrentBatchConfig$1.transition = 1;

		      try {
		        setPending(false);
		        callback();
		      } finally {
		        ReactCurrentBatchConfig$1.transition = prevTransition;
		      }
		    });
		  }
		}

		function mountTransition() {
		  var _mountState2 = mountState(false),
		      isPending = _mountState2[0],
		      setPending = _mountState2[1]; // The `start` method can be stored on a ref, since `setPending`
		  // never changes.


		  var start = startTransition.bind(null, setPending);
		  mountRef(start);
		  return [start, isPending];
		}

		function updateTransition() {
		  var _updateState2 = updateState(),
		      isPending = _updateState2[0];

		  var startRef = updateRef();
		  var start = startRef.current;
		  return [start, isPending];
		}

		function rerenderTransition() {
		  var _rerenderState2 = rerenderState(),
		      isPending = _rerenderState2[0];

		  var startRef = updateRef();
		  var start = startRef.current;
		  return [start, isPending];
		}

		var isUpdatingOpaqueValueInRenderPhase = false;
		function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
		  {
		    return isUpdatingOpaqueValueInRenderPhase;
		  }
		}

		function warnOnOpaqueIdentifierAccessInDEV(fiber) {
		  {
		    // TODO: Should warn in effects and callbacks, too
		    var name = getComponentName(fiber.type) || 'Unknown';

		    if (getIsRendering() && !didWarnAboutUseOpaqueIdentifier[name]) {
		      error('The object passed back from useOpaqueIdentifier is meant to be ' + 'passed through to attributes only. Do not read the ' + 'value directly.');

		      didWarnAboutUseOpaqueIdentifier[name] = true;
		    }
		  }
		}

		function mountOpaqueIdentifier() {
		  var makeId =  makeClientIdInDEV.bind(null, warnOnOpaqueIdentifierAccessInDEV.bind(null, currentlyRenderingFiber$1)) ;

		  if (getIsHydrating()) {
		    var didUpgrade = false;
		    var fiber = currentlyRenderingFiber$1;

		    var readValue = function () {
		      if (!didUpgrade) {
		        // Only upgrade once. This works even inside the render phase because
		        // the update is added to a shared queue, which outlasts the
		        // in-progress render.
		        didUpgrade = true;

		        {
		          isUpdatingOpaqueValueInRenderPhase = true;
		          setId(makeId());
		          isUpdatingOpaqueValueInRenderPhase = false;
		          warnOnOpaqueIdentifierAccessInDEV(fiber);
		        }
		      }

		      {
		        {
		          throw Error( "The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly." );
		        }
		      }
		    };

		    var id = makeOpaqueHydratingObject(readValue);
		    var setId = mountState(id)[1];

		    if ((currentlyRenderingFiber$1.mode & BlockingMode) === NoMode) {
		      currentlyRenderingFiber$1.flags |= Update | Passive;
		      pushEffect(HasEffect | Passive$1, function () {
		        setId(makeId());
		      }, undefined, null);
		    }

		    return id;
		  } else {
		    var _id = makeId();

		    mountState(_id);
		    return _id;
		  }
		}

		function updateOpaqueIdentifier() {
		  var id = updateState()[0];
		  return id;
		}

		function rerenderOpaqueIdentifier() {
		  var id = rerenderState()[0];
		  return id;
		}

		function dispatchAction(fiber, queue, action) {
		  {
		    if (typeof arguments[3] === 'function') {
		      error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
		    }
		  }

		  var eventTime = requestEventTime();
		  var lane = requestUpdateLane(fiber);
		  var update = {
		    lane: lane,
		    action: action,
		    eagerReducer: null,
		    eagerState: null,
		    next: null
		  }; // Append the update to the end of the list.

		  var pending = queue.pending;

		  if (pending === null) {
		    // This is the first update. Create a circular list.
		    update.next = update;
		  } else {
		    update.next = pending.next;
		    pending.next = update;
		  }

		  queue.pending = update;
		  var alternate = fiber.alternate;

		  if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
		    // This is a render phase update. Stash it in a lazily-created map of
		    // queue -> linked list of updates. After this render pass, we'll restart
		    // and apply the stashed updates on top of the work-in-progress hook.
		    didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
		  } else {
		    if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
		      // The queue is currently empty, which means we can eagerly compute the
		      // next state before entering the render phase. If the new state is the
		      // same as the current state, we may be able to bail out entirely.
		      var lastRenderedReducer = queue.lastRenderedReducer;

		      if (lastRenderedReducer !== null) {
		        var prevDispatcher;

		        {
		          prevDispatcher = ReactCurrentDispatcher$1.current;
		          ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
		        }

		        try {
		          var currentState = queue.lastRenderedState;
		          var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
		          // it, on the update object. If the reducer hasn't changed by the
		          // time we enter the render phase, then the eager state can be used
		          // without calling the reducer again.

		          update.eagerReducer = lastRenderedReducer;
		          update.eagerState = eagerState;

		          if (objectIs(eagerState, currentState)) {
		            // Fast path. We can bail out without scheduling React to re-render.
		            // It's still possible that we'll need to rebase this update later,
		            // if the component re-renders for a different reason and by that
		            // time the reducer has changed.
		            return;
		          }
		        } catch (error) {// Suppress the error. It will throw again in the render phase.
		        } finally {
		          {
		            ReactCurrentDispatcher$1.current = prevDispatcher;
		          }
		        }
		      }
		    }

		    {
		      // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
		      if ('undefined' !== typeof jest) {
		        warnIfNotScopedWithMatchingAct(fiber);
		        warnIfNotCurrentlyActingUpdatesInDev(fiber);
		      }
		    }

		    scheduleUpdateOnFiber(fiber, lane, eventTime);
		  }
		}

		var ContextOnlyDispatcher = {
		  readContext: readContext,
		  useCallback: throwInvalidHookError,
		  useContext: throwInvalidHookError,
		  useEffect: throwInvalidHookError,
		  useImperativeHandle: throwInvalidHookError,
		  useLayoutEffect: throwInvalidHookError,
		  useMemo: throwInvalidHookError,
		  useReducer: throwInvalidHookError,
		  useRef: throwInvalidHookError,
		  useState: throwInvalidHookError,
		  useDebugValue: throwInvalidHookError,
		  useDeferredValue: throwInvalidHookError,
		  useTransition: throwInvalidHookError,
		  useMutableSource: throwInvalidHookError,
		  useOpaqueIdentifier: throwInvalidHookError,
		  unstable_isNewReconciler: enableNewReconciler
		};
		var HooksDispatcherOnMountInDEV = null;
		var HooksDispatcherOnMountWithHookTypesInDEV = null;
		var HooksDispatcherOnUpdateInDEV = null;
		var HooksDispatcherOnRerenderInDEV = null;
		var InvalidNestedHooksDispatcherOnMountInDEV = null;
		var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
		var InvalidNestedHooksDispatcherOnRerenderInDEV = null;

		{
		  var warnInvalidContextAccess = function () {
		    error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
		  };

		  var warnInvalidHookAccess = function () {
		    error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
		  };

		  HooksDispatcherOnMountInDEV = {
		    readContext: function (context, observedBits) {
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      mountHookTypesDev();
		      checkDepsAreArrayDev(deps);
		      return mountCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      mountHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      mountHookTypesDev();
		      checkDepsAreArrayDev(deps);
		      return mountEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      mountHookTypesDev();
		      checkDepsAreArrayDev(deps);
		      return mountImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      mountHookTypesDev();
		      checkDepsAreArrayDev(deps);
		      return mountLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      mountHookTypesDev();
		      checkDepsAreArrayDev(deps);
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      mountHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      mountHookTypesDev();
		      return mountRef(initialValue);
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      mountHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      mountHookTypesDev();
		      return mountDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      mountHookTypesDev();
		      return mountDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      mountHookTypesDev();
		      return mountTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      mountHookTypesDev();
		      return mountMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      mountHookTypesDev();
		      return mountOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  HooksDispatcherOnMountWithHookTypesInDEV = {
		    readContext: function (context, observedBits) {
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      updateHookTypesDev();
		      return mountCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      updateHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      updateHookTypesDev();
		      return mountEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      updateHookTypesDev();
		      return mountImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      updateHookTypesDev();
		      return mountLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      updateHookTypesDev();
		      return mountRef(initialValue);
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      updateHookTypesDev();
		      return mountDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      updateHookTypesDev();
		      return mountDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      updateHookTypesDev();
		      return mountTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      updateHookTypesDev();
		      return mountMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      updateHookTypesDev();
		      return mountOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  HooksDispatcherOnUpdateInDEV = {
		    readContext: function (context, observedBits) {
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      updateHookTypesDev();
		      return updateCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      updateHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      updateHookTypesDev();
		      return updateEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      updateHookTypesDev();
		      return updateImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      updateHookTypesDev();
		      return updateLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      updateHookTypesDev();
		      return updateRef();
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      updateHookTypesDev();
		      return updateDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      updateHookTypesDev();
		      return updateDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      updateHookTypesDev();
		      return updateTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      updateHookTypesDev();
		      return updateMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      updateHookTypesDev();
		      return updateOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  HooksDispatcherOnRerenderInDEV = {
		    readContext: function (context, observedBits) {
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      updateHookTypesDev();
		      return updateCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      updateHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      updateHookTypesDev();
		      return updateEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      updateHookTypesDev();
		      return updateImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      updateHookTypesDev();
		      return updateLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

		      try {
		        return updateMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

		      try {
		        return rerenderReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      updateHookTypesDev();
		      return updateRef();
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

		      try {
		        return rerenderState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      updateHookTypesDev();
		      return updateDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      updateHookTypesDev();
		      return rerenderDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      updateHookTypesDev();
		      return rerenderTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      updateHookTypesDev();
		      return updateMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      updateHookTypesDev();
		      return rerenderOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  InvalidNestedHooksDispatcherOnMountInDEV = {
		    readContext: function (context, observedBits) {
		      warnInvalidContextAccess();
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountRef(initialValue);
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

		      try {
		        return mountState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      warnInvalidHookAccess();
		      mountHookTypesDev();
		      return mountOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  InvalidNestedHooksDispatcherOnUpdateInDEV = {
		    readContext: function (context, observedBits) {
		      warnInvalidContextAccess();
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateRef();
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		  InvalidNestedHooksDispatcherOnRerenderInDEV = {
		    readContext: function (context, observedBits) {
		      warnInvalidContextAccess();
		      return readContext(context, observedBits);
		    },
		    useCallback: function (callback, deps) {
		      currentHookNameInDev = 'useCallback';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateCallback(callback, deps);
		    },
		    useContext: function (context, observedBits) {
		      currentHookNameInDev = 'useContext';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return readContext(context, observedBits);
		    },
		    useEffect: function (create, deps) {
		      currentHookNameInDev = 'useEffect';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateEffect(create, deps);
		    },
		    useImperativeHandle: function (ref, create, deps) {
		      currentHookNameInDev = 'useImperativeHandle';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateImperativeHandle(ref, create, deps);
		    },
		    useLayoutEffect: function (create, deps) {
		      currentHookNameInDev = 'useLayoutEffect';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateLayoutEffect(create, deps);
		    },
		    useMemo: function (create, deps) {
		      currentHookNameInDev = 'useMemo';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return updateMemo(create, deps);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useReducer: function (reducer, initialArg, init) {
		      currentHookNameInDev = 'useReducer';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return rerenderReducer(reducer, initialArg, init);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useRef: function (initialValue) {
		      currentHookNameInDev = 'useRef';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateRef();
		    },
		    useState: function (initialState) {
		      currentHookNameInDev = 'useState';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      var prevDispatcher = ReactCurrentDispatcher$1.current;
		      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

		      try {
		        return rerenderState(initialState);
		      } finally {
		        ReactCurrentDispatcher$1.current = prevDispatcher;
		      }
		    },
		    useDebugValue: function (value, formatterFn) {
		      currentHookNameInDev = 'useDebugValue';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateDebugValue();
		    },
		    useDeferredValue: function (value) {
		      currentHookNameInDev = 'useDeferredValue';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return rerenderDeferredValue(value);
		    },
		    useTransition: function () {
		      currentHookNameInDev = 'useTransition';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return rerenderTransition();
		    },
		    useMutableSource: function (source, getSnapshot, subscribe) {
		      currentHookNameInDev = 'useMutableSource';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return updateMutableSource(source, getSnapshot, subscribe);
		    },
		    useOpaqueIdentifier: function () {
		      currentHookNameInDev = 'useOpaqueIdentifier';
		      warnInvalidHookAccess();
		      updateHookTypesDev();
		      return rerenderOpaqueIdentifier();
		    },
		    unstable_isNewReconciler: enableNewReconciler
		  };
		}

		var now$1 = Scheduler.unstable_now;
		var commitTime = 0;
		var profilerStartTime = -1;

		function getCommitTime() {
		  return commitTime;
		}

		function recordCommitTime() {

		  commitTime = now$1();
		}

		function startProfilerTimer(fiber) {

		  profilerStartTime = now$1();

		  if (fiber.actualStartTime < 0) {
		    fiber.actualStartTime = now$1();
		  }
		}

		function stopProfilerTimerIfRunning(fiber) {

		  profilerStartTime = -1;
		}

		function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {

		  if (profilerStartTime >= 0) {
		    var elapsedTime = now$1() - profilerStartTime;
		    fiber.actualDuration += elapsedTime;

		    if (overrideBaseTime) {
		      fiber.selfBaseDuration = elapsedTime;
		    }

		    profilerStartTime = -1;
		  }
		}

		function transferActualDuration(fiber) {
		  // Transfer time spent rendering these children so we don't lose it
		  // after we rerender. This is used as a helper in special cases
		  // where we should count the work of multiple passes.
		  var child = fiber.child;

		  while (child) {
		    fiber.actualDuration += child.actualDuration;
		    child = child.sibling;
		  }
		}

		var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
		var didReceiveUpdate = false;
		var didWarnAboutBadClass;
		var didWarnAboutModulePatternComponent;
		var didWarnAboutContextTypeOnFunctionComponent;
		var didWarnAboutGetDerivedStateOnFunctionComponent;
		var didWarnAboutFunctionRefs;
		var didWarnAboutReassigningProps;
		var didWarnAboutRevealOrder;
		var didWarnAboutTailOptions;

		{
		  didWarnAboutBadClass = {};
		  didWarnAboutModulePatternComponent = {};
		  didWarnAboutContextTypeOnFunctionComponent = {};
		  didWarnAboutGetDerivedStateOnFunctionComponent = {};
		  didWarnAboutFunctionRefs = {};
		  didWarnAboutReassigningProps = false;
		  didWarnAboutRevealOrder = {};
		  didWarnAboutTailOptions = {};
		}

		function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
		  if (current === null) {
		    // If this is a fresh new component that hasn't been rendered yet, we
		    // won't update its child set by applying minimal side-effects. Instead,
		    // we will add them all to the child before it gets rendered. That means
		    // we can optimize this reconciliation pass by not tracking side-effects.
		    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
		  } else {
		    // If the current child is the same as the work in progress, it means that
		    // we haven't yet started any work on these children. Therefore, we use
		    // the clone algorithm to create a copy of all the current children.
		    // If we had any progressed work already, that is invalid at this point so
		    // let's throw it out.
		    workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
		  }
		}

		function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {
		  // This function is fork of reconcileChildren. It's used in cases where we
		  // want to reconcile without matching against the existing set. This has the
		  // effect of all current children being unmounted; even if the type and key
		  // are the same, the old child is unmounted and a new child is created.
		  //
		  // To do this, we're going to go through the reconcile algorithm twice. In
		  // the first pass, we schedule a deletion for all the current children by
		  // passing null.
		  workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we
		  // pass null in place of where we usually pass the current child set. This has
		  // the effect of remounting all children regardless of whether their
		  // identities match.

		  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
		}

		function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
		  // TODO: current can be non-null here even if the component
		  // hasn't yet mounted. This happens after the first render suspends.
		  // We'll need to figure out if this is fine or can cause issues.
		  {
		    if (workInProgress.type !== workInProgress.elementType) {
		      // Lazy component props can't be validated in createElement
		      // because they're only guaranteed to be resolved here.
		      var innerPropTypes = Component.propTypes;

		      if (innerPropTypes) {
		        checkPropTypes(innerPropTypes, nextProps, // Resolved props
		        'prop', getComponentName(Component));
		      }
		    }
		  }

		  var render = Component.render;
		  var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent

		  var nextChildren;
		  prepareToReadContext(workInProgress, renderLanes);

		  {
		    ReactCurrentOwner$1.current = workInProgress;
		    setIsRendering(true);
		    nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);

		    if ( workInProgress.mode & StrictMode) {
		      disableLogs();

		      try {
		        nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
		      } finally {
		        reenableLogs();
		      }
		    }

		    setIsRendering(false);
		  }

		  if (current !== null && !didReceiveUpdate) {
		    bailoutHooks(current, workInProgress, renderLanes);
		    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function updateMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
		  if (current === null) {
		    var type = Component.type;

		    if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
		    Component.defaultProps === undefined) {
		      var resolvedType = type;

		      {
		        resolvedType = resolveFunctionForHotReloading(type);
		      } // If this is a plain function component without default props,
		      // and with only the default shallow comparison, we upgrade it
		      // to a SimpleMemoComponent to allow fast path updates.


		      workInProgress.tag = SimpleMemoComponent;
		      workInProgress.type = resolvedType;

		      {
		        validateFunctionComponentInDev(workInProgress, type);
		      }

		      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateLanes, renderLanes);
		    }

		    {
		      var innerPropTypes = type.propTypes;

		      if (innerPropTypes) {
		        // Inner memo component props aren't currently validated in createElement.
		        // We could move it there, but we'd still need this for lazy code path.
		        checkPropTypes(innerPropTypes, nextProps, // Resolved props
		        'prop', getComponentName(type));
		      }
		    }

		    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
		    child.ref = workInProgress.ref;
		    child.return = workInProgress;
		    workInProgress.child = child;
		    return child;
		  }

		  {
		    var _type = Component.type;
		    var _innerPropTypes = _type.propTypes;

		    if (_innerPropTypes) {
		      // Inner memo component props aren't currently validated in createElement.
		      // We could move it there, but we'd still need this for lazy code path.
		      checkPropTypes(_innerPropTypes, nextProps, // Resolved props
		      'prop', getComponentName(_type));
		    }
		  }

		  var currentChild = current.child; // This is always exactly one child

		  if (!includesSomeLane(updateLanes, renderLanes)) {
		    // This will be the props with resolved defaultProps,
		    // unlike current.memoizedProps which will be the unresolved ones.
		    var prevProps = currentChild.memoizedProps; // Default to shallow comparison

		    var compare = Component.compare;
		    compare = compare !== null ? compare : shallowEqual;

		    if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
		      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		    }
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;
		  var newChild = createWorkInProgress(currentChild, nextProps);
		  newChild.ref = workInProgress.ref;
		  newChild.return = workInProgress;
		  workInProgress.child = newChild;
		  return newChild;
		}

		function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
		  // TODO: current can be non-null here even if the component
		  // hasn't yet mounted. This happens when the inner render suspends.
		  // We'll need to figure out if this is fine or can cause issues.
		  {
		    if (workInProgress.type !== workInProgress.elementType) {
		      // Lazy component props can't be validated in createElement
		      // because they're only guaranteed to be resolved here.
		      var outerMemoType = workInProgress.elementType;

		      if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
		        // We warn when you define propTypes on lazy()
		        // so let's just skip over it to find memo() outer wrapper.
		        // Inner props for memo are validated later.
		        var lazyComponent = outerMemoType;
		        var payload = lazyComponent._payload;
		        var init = lazyComponent._init;

		        try {
		          outerMemoType = init(payload);
		        } catch (x) {
		          outerMemoType = null;
		        } // Inner propTypes will be validated in the function component path.


		        var outerPropTypes = outerMemoType && outerMemoType.propTypes;

		        if (outerPropTypes) {
		          checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
		          'prop', getComponentName(outerMemoType));
		        }
		      }
		    }
		  }

		  if (current !== null) {
		    var prevProps = current.memoizedProps;

		    if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
		     workInProgress.type === current.type )) {
		      didReceiveUpdate = false;

		      if (!includesSomeLane(renderLanes, updateLanes)) {
		        // The pending lanes were cleared at the beginning of beginWork. We're
		        // about to bail out, but there might be other lanes that weren't
		        // included in the current render. Usually, the priority level of the
		        // remaining updates is accumlated during the evaluation of the
		        // component (i.e. when processing the update queue). But since since
		        // we're bailing out early *without* evaluating the component, we need
		        // to account for it here, too. Reset to the value of the current fiber.
		        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
		        // because a MemoComponent fiber does not have hooks or an update queue;
		        // rather, it wraps around an inner component, which may or may not
		        // contains hooks.
		        // TODO: Move the reset at in beginWork out of the common path so that
		        // this is no longer necessary.
		        workInProgress.lanes = current.lanes;
		        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		      } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
		        // This is a special case that only exists for legacy mode.
		        // See https://github.com/facebook/react/pull/19216.
		        didReceiveUpdate = true;
		      }
		    }
		  }

		  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
		}

		function updateOffscreenComponent(current, workInProgress, renderLanes) {
		  var nextProps = workInProgress.pendingProps;
		  var nextChildren = nextProps.children;
		  var prevState = current !== null ? current.memoizedState : null;

		  if (nextProps.mode === 'hidden' || nextProps.mode === 'unstable-defer-without-hiding') {
		    if ((workInProgress.mode & ConcurrentMode) === NoMode) {
		      // In legacy sync mode, don't defer the subtree. Render it now.
		      // TODO: Figure out what we should do in Blocking mode.
		      var nextState = {
		        baseLanes: NoLanes
		      };
		      workInProgress.memoizedState = nextState;
		      pushRenderLanes(workInProgress, renderLanes);
		    } else if (!includesSomeLane(renderLanes, OffscreenLane)) {
		      var nextBaseLanes;

		      if (prevState !== null) {
		        var prevBaseLanes = prevState.baseLanes;
		        nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);
		      } else {
		        nextBaseLanes = renderLanes;
		      } // Schedule this fiber to re-render at offscreen priority. Then bailout.


		      {
		        markSpawnedWork(OffscreenLane);
		      }

		      workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);
		      var _nextState = {
		        baseLanes: nextBaseLanes
		      };
		      workInProgress.memoizedState = _nextState; // We're about to bail out, but we need to push this to the stack anyway
		      // to avoid a push/pop misalignment.

		      pushRenderLanes(workInProgress, nextBaseLanes);
		      return null;
		    } else {
		      // Rendering at offscreen, so we can clear the base lanes.
		      var _nextState2 = {
		        baseLanes: NoLanes
		      };
		      workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.

		      var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;
		      pushRenderLanes(workInProgress, subtreeRenderLanes);
		    }
		  } else {
		    var _subtreeRenderLanes;

		    if (prevState !== null) {
		      _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); // Since we're not hidden anymore, reset the state

		      workInProgress.memoizedState = null;
		    } else {
		      // We weren't previously hidden, and we still aren't, so there's nothing
		      // special to do. Need to push to the stack regardless, though, to avoid
		      // a push/pop misalignment.
		      _subtreeRenderLanes = renderLanes;
		    }

		    pushRenderLanes(workInProgress, _subtreeRenderLanes);
		  }

		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		} // Note: These happen to have identical begin phases, for now. We shouldn't hold
		// ourselves to this constraint, though. If the behavior diverges, we should
		// fork the function.


		var updateLegacyHiddenComponent = updateOffscreenComponent;

		function updateFragment(current, workInProgress, renderLanes) {
		  var nextChildren = workInProgress.pendingProps;
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function updateMode(current, workInProgress, renderLanes) {
		  var nextChildren = workInProgress.pendingProps.children;
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function updateProfiler(current, workInProgress, renderLanes) {
		  {
		    workInProgress.flags |= Update; // Reset effect durations for the next eventual effect phase.
		    // These are reset during render to allow the DevTools commit hook a chance to read them,

		    var stateNode = workInProgress.stateNode;
		    stateNode.effectDuration = 0;
		    stateNode.passiveEffectDuration = 0;
		  }

		  var nextProps = workInProgress.pendingProps;
		  var nextChildren = nextProps.children;
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function markRef(current, workInProgress) {
		  var ref = workInProgress.ref;

		  if (current === null && ref !== null || current !== null && current.ref !== ref) {
		    // Schedule a Ref effect
		    workInProgress.flags |= Ref;
		  }
		}

		function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
		  {
		    if (workInProgress.type !== workInProgress.elementType) {
		      // Lazy component props can't be validated in createElement
		      // because they're only guaranteed to be resolved here.
		      var innerPropTypes = Component.propTypes;

		      if (innerPropTypes) {
		        checkPropTypes(innerPropTypes, nextProps, // Resolved props
		        'prop', getComponentName(Component));
		      }
		    }
		  }

		  var context;

		  {
		    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
		    context = getMaskedContext(workInProgress, unmaskedContext);
		  }

		  var nextChildren;
		  prepareToReadContext(workInProgress, renderLanes);

		  {
		    ReactCurrentOwner$1.current = workInProgress;
		    setIsRendering(true);
		    nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);

		    if ( workInProgress.mode & StrictMode) {
		      disableLogs();

		      try {
		        nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
		      } finally {
		        reenableLogs();
		      }
		    }

		    setIsRendering(false);
		  }

		  if (current !== null && !didReceiveUpdate) {
		    bailoutHooks(current, workInProgress, renderLanes);
		    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
		  {
		    if (workInProgress.type !== workInProgress.elementType) {
		      // Lazy component props can't be validated in createElement
		      // because they're only guaranteed to be resolved here.
		      var innerPropTypes = Component.propTypes;

		      if (innerPropTypes) {
		        checkPropTypes(innerPropTypes, nextProps, // Resolved props
		        'prop', getComponentName(Component));
		      }
		    }
		  } // Push context providers early to prevent context stack mismatches.
		  // During mounting we don't know the child context yet as the instance doesn't exist.
		  // We will invalidate the child context in finishClassComponent() right after rendering.


		  var hasContext;

		  if (isContextProvider(Component)) {
		    hasContext = true;
		    pushContextProvider(workInProgress);
		  } else {
		    hasContext = false;
		  }

		  prepareToReadContext(workInProgress, renderLanes);
		  var instance = workInProgress.stateNode;
		  var shouldUpdate;

		  if (instance === null) {
		    if (current !== null) {
		      // A class component without an instance only mounts if it suspended
		      // inside a non-concurrent tree, in an inconsistent state. We want to
		      // treat it like a new mount, even though an empty version of it already
		      // committed. Disconnect the alternate pointers.
		      current.alternate = null;
		      workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

		      workInProgress.flags |= Placement;
		    } // In the initial pass we might need to construct the instance.


		    constructClassInstance(workInProgress, Component, nextProps);
		    mountClassInstance(workInProgress, Component, nextProps, renderLanes);
		    shouldUpdate = true;
		  } else if (current === null) {
		    // In a resume, we'll already have an instance we can reuse.
		    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);
		  } else {
		    shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);
		  }

		  var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);

		  {
		    var inst = workInProgress.stateNode;

		    if (shouldUpdate && inst.props !== nextProps) {
		      if (!didWarnAboutReassigningProps) {
		        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component');
		      }

		      didWarnAboutReassigningProps = true;
		    }
		  }

		  return nextUnitOfWork;
		}

		function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
		  // Refs should update even if shouldComponentUpdate returns false
		  markRef(current, workInProgress);
		  var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;

		  if (!shouldUpdate && !didCaptureError) {
		    // Context providers should defer to sCU for rendering
		    if (hasContext) {
		      invalidateContextProvider(workInProgress, Component, false);
		    }

		    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		  }

		  var instance = workInProgress.stateNode; // Rerender

		  ReactCurrentOwner$1.current = workInProgress;
		  var nextChildren;

		  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
		    // If we captured an error, but getDerivedStateFromError is not defined,
		    // unmount all the children. componentDidCatch will schedule an update to
		    // re-render a fallback. This is temporary until we migrate everyone to
		    // the new API.
		    // TODO: Warn in a future release.
		    nextChildren = null;

		    {
		      stopProfilerTimerIfRunning();
		    }
		  } else {
		    {
		      setIsRendering(true);
		      nextChildren = instance.render();

		      if ( workInProgress.mode & StrictMode) {
		        disableLogs();

		        try {
		          instance.render();
		        } finally {
		          reenableLogs();
		        }
		      }

		      setIsRendering(false);
		    }
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;

		  if (current !== null && didCaptureError) {
		    // If we're recovering from an error, reconcile without reusing any of
		    // the existing children. Conceptually, the normal children and the children
		    // that are shown on error are two different sets, so we shouldn't reuse
		    // normal children even if their identities match.
		    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);
		  } else {
		    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  } // Memoize state using the values we just used to render.
		  // TODO: Restructure so we never read values from the instance.


		  workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.

		  if (hasContext) {
		    invalidateContextProvider(workInProgress, Component, true);
		  }

		  return workInProgress.child;
		}

		function pushHostRootContext(workInProgress) {
		  var root = workInProgress.stateNode;

		  if (root.pendingContext) {
		    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
		  } else if (root.context) {
		    // Should always be set
		    pushTopLevelContextObject(workInProgress, root.context, false);
		  }

		  pushHostContainer(workInProgress, root.containerInfo);
		}

		function updateHostRoot(current, workInProgress, renderLanes) {
		  pushHostRootContext(workInProgress);
		  var updateQueue = workInProgress.updateQueue;

		  if (!(current !== null && updateQueue !== null)) {
		    {
		      throw Error( "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }

		  var nextProps = workInProgress.pendingProps;
		  var prevState = workInProgress.memoizedState;
		  var prevChildren = prevState !== null ? prevState.element : null;
		  cloneUpdateQueue(current, workInProgress);
		  processUpdateQueue(workInProgress, nextProps, null, renderLanes);
		  var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
		  // being called "element".

		  var nextChildren = nextState.element;

		  if (nextChildren === prevChildren) {
		    resetHydrationState();
		    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		  }

		  var root = workInProgress.stateNode;

		  if (root.hydrate && enterHydrationState(workInProgress)) {
		    // If we don't have any current children this might be the first pass.
		    // We always try to hydrate. If this isn't a hydration pass there won't
		    // be any children to hydrate which is effectively the same thing as
		    // not hydrating.
		    {
		      var mutableSourceEagerHydrationData = root.mutableSourceEagerHydrationData;

		      if (mutableSourceEagerHydrationData != null) {
		        for (var i = 0; i < mutableSourceEagerHydrationData.length; i += 2) {
		          var mutableSource = mutableSourceEagerHydrationData[i];
		          var version = mutableSourceEagerHydrationData[i + 1];
		          setWorkInProgressVersion(mutableSource, version);
		        }
		      }
		    }

		    var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
		    workInProgress.child = child;
		    var node = child;

		    while (node) {
		      // Mark each child as hydrating. This is a fast path to know whether this
		      // tree is part of a hydrating tree. This is used to determine if a child
		      // node has fully mounted yet, and for scheduling event replaying.
		      // Conceptually this is similar to Placement in that a new subtree is
		      // inserted into the React tree here. It just happens to not need DOM
		      // mutations because it already exists.
		      node.flags = node.flags & ~Placement | Hydrating;
		      node = node.sibling;
		    }
		  } else {
		    // Otherwise reset hydration state in case we aborted and resumed another
		    // root.
		    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		    resetHydrationState();
		  }

		  return workInProgress.child;
		}

		function updateHostComponent(current, workInProgress, renderLanes) {
		  pushHostContext(workInProgress);

		  if (current === null) {
		    tryToClaimNextHydratableInstance(workInProgress);
		  }

		  var type = workInProgress.type;
		  var nextProps = workInProgress.pendingProps;
		  var prevProps = current !== null ? current.memoizedProps : null;
		  var nextChildren = nextProps.children;
		  var isDirectTextChild = shouldSetTextContent(type, nextProps);

		  if (isDirectTextChild) {
		    // We special case a direct text child of a host node. This is a common
		    // case. We won't handle it as a reified child. We will instead handle
		    // this in the host environment that also has access to this prop. That
		    // avoids allocating another HostText fiber and traversing it.
		    nextChildren = null;
		  } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
		    // If we're switching from a direct text child to a normal child, or to
		    // empty, we need to schedule the text content to be reset.
		    workInProgress.flags |= ContentReset;
		  }

		  markRef(current, workInProgress);
		  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  return workInProgress.child;
		}

		function updateHostText(current, workInProgress) {
		  if (current === null) {
		    tryToClaimNextHydratableInstance(workInProgress);
		  } // Nothing to do here. This is terminal. We'll do the completion step
		  // immediately after.


		  return null;
		}

		function mountLazyComponent(_current, workInProgress, elementType, updateLanes, renderLanes) {
		  if (_current !== null) {
		    // A lazy component only mounts if it suspended inside a non-
		    // concurrent tree, in an inconsistent state. We want to treat it like
		    // a new mount, even though an empty version of it already committed.
		    // Disconnect the alternate pointers.
		    _current.alternate = null;
		    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

		    workInProgress.flags |= Placement;
		  }

		  var props = workInProgress.pendingProps;
		  var lazyComponent = elementType;
		  var payload = lazyComponent._payload;
		  var init = lazyComponent._init;
		  var Component = init(payload); // Store the unwrapped component in the type.

		  workInProgress.type = Component;
		  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
		  var resolvedProps = resolveDefaultProps(Component, props);
		  var child;

		  switch (resolvedTag) {
		    case FunctionComponent:
		      {
		        {
		          validateFunctionComponentInDev(workInProgress, Component);
		          workInProgress.type = Component = resolveFunctionForHotReloading(Component);
		        }

		        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
		        return child;
		      }

		    case ClassComponent:
		      {
		        {
		          workInProgress.type = Component = resolveClassForHotReloading(Component);
		        }

		        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
		        return child;
		      }

		    case ForwardRef:
		      {
		        {
		          workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
		        }

		        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
		        return child;
		      }

		    case MemoComponent:
		      {
		        {
		          if (workInProgress.type !== workInProgress.elementType) {
		            var outerPropTypes = Component.propTypes;

		            if (outerPropTypes) {
		              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
		              'prop', getComponentName(Component));
		            }
		          }
		        }

		        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
		        updateLanes, renderLanes);
		        return child;
		      }
		  }

		  var hint = '';

		  {
		    if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
		      hint = ' Did you wrap a component in React.lazy() more than once?';
		    }
		  } // This message intentionally doesn't mention ForwardRef or MemoComponent
		  // because the fact that it's a separate type of work is an
		  // implementation detail.


		  {
		    {
		      throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
		    }
		  }
		}

		function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {
		  if (_current !== null) {
		    // An incomplete component only mounts if it suspended inside a non-
		    // concurrent tree, in an inconsistent state. We want to treat it like
		    // a new mount, even though an empty version of it already committed.
		    // Disconnect the alternate pointers.
		    _current.alternate = null;
		    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

		    workInProgress.flags |= Placement;
		  } // Promote the fiber to a class and try rendering again.


		  workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
		  // Push context providers early to prevent context stack mismatches.
		  // During mounting we don't know the child context yet as the instance doesn't exist.
		  // We will invalidate the child context in finishClassComponent() right after rendering.

		  var hasContext;

		  if (isContextProvider(Component)) {
		    hasContext = true;
		    pushContextProvider(workInProgress);
		  } else {
		    hasContext = false;
		  }

		  prepareToReadContext(workInProgress, renderLanes);
		  constructClassInstance(workInProgress, Component, nextProps);
		  mountClassInstance(workInProgress, Component, nextProps, renderLanes);
		  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
		}

		function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {
		  if (_current !== null) {
		    // An indeterminate component only mounts if it suspended inside a non-
		    // concurrent tree, in an inconsistent state. We want to treat it like
		    // a new mount, even though an empty version of it already committed.
		    // Disconnect the alternate pointers.
		    _current.alternate = null;
		    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

		    workInProgress.flags |= Placement;
		  }

		  var props = workInProgress.pendingProps;
		  var context;

		  {
		    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
		    context = getMaskedContext(workInProgress, unmaskedContext);
		  }

		  prepareToReadContext(workInProgress, renderLanes);
		  var value;

		  {
		    if (Component.prototype && typeof Component.prototype.render === 'function') {
		      var componentName = getComponentName(Component) || 'Unknown';

		      if (!didWarnAboutBadClass[componentName]) {
		        error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);

		        didWarnAboutBadClass[componentName] = true;
		      }
		    }

		    if (workInProgress.mode & StrictMode) {
		      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
		    }

		    setIsRendering(true);
		    ReactCurrentOwner$1.current = workInProgress;
		    value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
		    setIsRendering(false);
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;

		  {
		    // Support for module components is deprecated and is removed behind a flag.
		    // Whether or not it would crash later, we want to show a good message in DEV first.
		    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
		      var _componentName = getComponentName(Component) || 'Unknown';

		      if (!didWarnAboutModulePatternComponent[_componentName]) {
		        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);

		        didWarnAboutModulePatternComponent[_componentName] = true;
		      }
		    }
		  }

		  if ( // Run these checks in production only if the flag is off.
		  // Eventually we'll delete this branch altogether.
		   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
		    {
		      var _componentName2 = getComponentName(Component) || 'Unknown';

		      if (!didWarnAboutModulePatternComponent[_componentName2]) {
		        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);

		        didWarnAboutModulePatternComponent[_componentName2] = true;
		      }
		    } // Proceed under the assumption that this is a class instance


		    workInProgress.tag = ClassComponent; // Throw out any hooks that were used.

		    workInProgress.memoizedState = null;
		    workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
		    // During mounting we don't know the child context yet as the instance doesn't exist.
		    // We will invalidate the child context in finishClassComponent() right after rendering.

		    var hasContext = false;

		    if (isContextProvider(Component)) {
		      hasContext = true;
		      pushContextProvider(workInProgress);
		    } else {
		      hasContext = false;
		    }

		    workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
		    initializeUpdateQueue(workInProgress);
		    var getDerivedStateFromProps = Component.getDerivedStateFromProps;

		    if (typeof getDerivedStateFromProps === 'function') {
		      applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
		    }

		    adoptClassInstance(workInProgress, value);
		    mountClassInstance(workInProgress, Component, props, renderLanes);
		    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
		  } else {
		    // Proceed under the assumption that this is a function component
		    workInProgress.tag = FunctionComponent;

		    {

		      if ( workInProgress.mode & StrictMode) {
		        disableLogs();

		        try {
		          value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
		        } finally {
		          reenableLogs();
		        }
		      }
		    }

		    reconcileChildren(null, workInProgress, value, renderLanes);

		    {
		      validateFunctionComponentInDev(workInProgress, Component);
		    }

		    return workInProgress.child;
		  }
		}

		function validateFunctionComponentInDev(workInProgress, Component) {
		  {
		    if (Component) {
		      if (Component.childContextTypes) {
		        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
		      }
		    }

		    if (workInProgress.ref !== null) {
		      var info = '';
		      var ownerName = getCurrentFiberOwnerNameInDevOrNull();

		      if (ownerName) {
		        info += '\n\nCheck the render method of `' + ownerName + '`.';
		      }

		      var warningKey = ownerName || workInProgress._debugID || '';
		      var debugSource = workInProgress._debugSource;

		      if (debugSource) {
		        warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
		      }

		      if (!didWarnAboutFunctionRefs[warningKey]) {
		        didWarnAboutFunctionRefs[warningKey] = true;

		        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
		      }
		    }

		    if (typeof Component.getDerivedStateFromProps === 'function') {
		      var _componentName3 = getComponentName(Component) || 'Unknown';

		      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
		        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);

		        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
		      }
		    }

		    if (typeof Component.contextType === 'object' && Component.contextType !== null) {
		      var _componentName4 = getComponentName(Component) || 'Unknown';

		      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
		        error('%s: Function components do not support contextType.', _componentName4);

		        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
		      }
		    }
		  }
		}

		var SUSPENDED_MARKER = {
		  dehydrated: null,
		  retryLane: NoLane
		};

		function mountSuspenseOffscreenState(renderLanes) {
		  return {
		    baseLanes: renderLanes
		  };
		}

		function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
		  return {
		    baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes)
		  };
		} // TODO: Probably should inline this back


		function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {
		  // If we're already showing a fallback, there are cases where we need to
		  // remain on that fallback regardless of whether the content has resolved.
		  // For example, SuspenseList coordinates when nested content appears.
		  if (current !== null) {
		    var suspenseState = current.memoizedState;

		    if (suspenseState === null) {
		      // Currently showing content. Don't hide it, even if ForceSuspenseFallack
		      // is true. More precise name might be "ForceRemainSuspenseFallback".
		      // Note: This is a factoring smell. Can't remain on a fallback if there's
		      // no fallback to remain on.
		      return false;
		    }
		  } // Not currently showing content. Consult the Suspense context.


		  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
		}

		function getRemainingWorkInPrimaryTree(current, renderLanes) {
		  // TODO: Should not remove render lanes that were pinged during this render
		  return removeLanes(current.childLanes, renderLanes);
		}

		function updateSuspenseComponent(current, workInProgress, renderLanes) {
		  var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.

		  {
		    if (shouldSuspend(workInProgress)) {
		      workInProgress.flags |= DidCapture;
		    }
		  }

		  var suspenseContext = suspenseStackCursor.current;
		  var showFallback = false;
		  var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;

		  if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
		    // Something in this boundary's subtree already suspended. Switch to
		    // rendering the fallback children.
		    showFallback = true;
		    workInProgress.flags &= ~DidCapture;
		  } else {
		    // Attempting the main content
		    if (current === null || current.memoizedState !== null) {
		      // This is a new mount or this boundary is already showing a fallback state.
		      // Mark this subtree context as having at least one invisible parent that could
		      // handle the fallback state.
		      // Boundaries without fallbacks or should be avoided are not considered since
		      // they cannot handle preferred fallback states.
		      if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
		        suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
		      }
		    }
		  }

		  suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
		  pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense
		  // boundary's children. This involves some custom reconcilation logic. Two
		  // main reasons this is so complicated.
		  //
		  // First, Legacy Mode has different semantics for backwards compatibility. The
		  // primary tree will commit in an inconsistent state, so when we do the
		  // second pass to render the fallback, we do some exceedingly, uh, clever
		  // hacks to make that not totally break. Like transferring effects and
		  // deletions from hidden tree. In Concurrent Mode, it's much simpler,
		  // because we bailout on the primary tree completely and leave it in its old
		  // state, no effects. Same as what we do for Offscreen (except that
		  // Offscreen doesn't have the first render pass).
		  //
		  // Second is hydration. During hydration, the Suspense fiber has a slightly
		  // different layout, where the child points to a dehydrated fragment, which
		  // contains the DOM rendered by the server.
		  //
		  // Third, even if you set all that aside, Suspense is like error boundaries in
		  // that we first we try to render one tree, and if that fails, we render again
		  // and switch to a different tree. Like a try/catch block. So we have to track
		  // which branch we're currently rendering. Ideally we would model this using
		  // a stack.

		  if (current === null) {
		    // Initial mount
		    // If we're currently hydrating, try to hydrate this boundary.
		    // But only if this has a fallback.
		    if (nextProps.fallback !== undefined) {
		      tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
		    }

		    var nextPrimaryChildren = nextProps.children;
		    var nextFallbackChildren = nextProps.fallback;

		    if (showFallback) {
		      var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
		      var primaryChildFragment = workInProgress.child;
		      primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
		      workInProgress.memoizedState = SUSPENDED_MARKER;
		      return fallbackFragment;
		    } else if (typeof nextProps.unstable_expectedLoadTime === 'number') {
		      // This is a CPU-bound tree. Skip this tree and show a placeholder to
		      // unblock the surrounding content. Then immediately retry after the
		      // initial commit.
		      var _fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);

		      var _primaryChildFragment = workInProgress.child;
		      _primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
		      workInProgress.memoizedState = SUSPENDED_MARKER; // Since nothing actually suspended, there will nothing to ping this to
		      // get it started back up to attempt the next item. While in terms of
		      // priority this work has the same priority as this current render, it's
		      // not part of the same transition once the transition has committed. If
		      // it's sync, we still want to yield so that it can be painted.
		      // Conceptually, this is really the same as pinging. We can use any
		      // RetryLane even if it's the one currently rendering since we're leaving
		      // it behind on this node.

		      workInProgress.lanes = SomeRetryLane;

		      {
		        markSpawnedWork(SomeRetryLane);
		      }

		      return _fallbackFragment;
		    } else {
		      return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren, renderLanes);
		    }
		  } else {
		    // This is an update.
		    // If the current fiber has a SuspenseState, that means it's already showing
		    // a fallback.
		    var prevState = current.memoizedState;

		    if (prevState !== null) {

		      if (showFallback) {
		        var _nextFallbackChildren2 = nextProps.fallback;
		        var _nextPrimaryChildren2 = nextProps.children;

		        var _fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren2, _nextFallbackChildren2, renderLanes);

		        var _primaryChildFragment3 = workInProgress.child;
		        var prevOffscreenState = current.child.memoizedState;
		        _primaryChildFragment3.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);
		        _primaryChildFragment3.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);
		        workInProgress.memoizedState = SUSPENDED_MARKER;
		        return _fallbackChildFragment;
		      } else {
		        var _nextPrimaryChildren3 = nextProps.children;

		        var _primaryChildFragment4 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren3, renderLanes);

		        workInProgress.memoizedState = null;
		        return _primaryChildFragment4;
		      }
		    } else {
		      // The current tree is not already showing a fallback.
		      if (showFallback) {
		        // Timed out.
		        var _nextFallbackChildren3 = nextProps.fallback;
		        var _nextPrimaryChildren4 = nextProps.children;

		        var _fallbackChildFragment2 = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren4, _nextFallbackChildren3, renderLanes);

		        var _primaryChildFragment5 = workInProgress.child;
		        var _prevOffscreenState = current.child.memoizedState;
		        _primaryChildFragment5.memoizedState = _prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(_prevOffscreenState, renderLanes);
		        _primaryChildFragment5.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); // Skip the primary children, and continue working on the
		        // fallback children.

		        workInProgress.memoizedState = SUSPENDED_MARKER;
		        return _fallbackChildFragment2;
		      } else {
		        // Still haven't timed out. Continue rendering the children, like we
		        // normally do.
		        var _nextPrimaryChildren5 = nextProps.children;

		        var _primaryChildFragment6 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren5, renderLanes);

		        workInProgress.memoizedState = null;
		        return _primaryChildFragment6;
		      }
		    }
		  }
		}

		function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
		  var mode = workInProgress.mode;
		  var primaryChildProps = {
		    mode: 'visible',
		    children: primaryChildren
		  };
		  var primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, renderLanes, null);
		  primaryChildFragment.return = workInProgress;
		  workInProgress.child = primaryChildFragment;
		  return primaryChildFragment;
		}

		function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
		  var mode = workInProgress.mode;
		  var progressedPrimaryFragment = workInProgress.child;
		  var primaryChildProps = {
		    mode: 'hidden',
		    children: primaryChildren
		  };
		  var primaryChildFragment;
		  var fallbackChildFragment;

		  if ((mode & BlockingMode) === NoMode && progressedPrimaryFragment !== null) {
		    // In legacy mode, we commit the primary tree as if it successfully
		    // completed, even though it's in an inconsistent state.
		    primaryChildFragment = progressedPrimaryFragment;
		    primaryChildFragment.childLanes = NoLanes;
		    primaryChildFragment.pendingProps = primaryChildProps;

		    if ( workInProgress.mode & ProfileMode) {
		      // Reset the durations from the first pass so they aren't included in the
		      // final amounts. This seems counterintuitive, since we're intentionally
		      // not measuring part of the render phase, but this makes it match what we
		      // do in Concurrent Mode.
		      primaryChildFragment.actualDuration = 0;
		      primaryChildFragment.actualStartTime = -1;
		      primaryChildFragment.selfBaseDuration = 0;
		      primaryChildFragment.treeBaseDuration = 0;
		    }

		    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
		  } else {
		    primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, NoLanes, null);
		    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
		  }

		  primaryChildFragment.return = workInProgress;
		  fallbackChildFragment.return = workInProgress;
		  primaryChildFragment.sibling = fallbackChildFragment;
		  workInProgress.child = primaryChildFragment;
		  return fallbackChildFragment;
		}

		function createWorkInProgressOffscreenFiber(current, offscreenProps) {
		  // The props argument to `createWorkInProgress` is `any` typed, so we use this
		  // wrapper function to constrain it.
		  return createWorkInProgress(current, offscreenProps);
		}

		function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
		  var currentPrimaryChildFragment = current.child;
		  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
		  var primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
		    mode: 'visible',
		    children: primaryChildren
		  });

		  if ((workInProgress.mode & BlockingMode) === NoMode) {
		    primaryChildFragment.lanes = renderLanes;
		  }

		  primaryChildFragment.return = workInProgress;
		  primaryChildFragment.sibling = null;

		  if (currentFallbackChildFragment !== null) {
		    // Delete the fallback child fragment
		    currentFallbackChildFragment.nextEffect = null;
		    currentFallbackChildFragment.flags = Deletion;
		    workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChildFragment;
		  }

		  workInProgress.child = primaryChildFragment;
		  return primaryChildFragment;
		}

		function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
		  var mode = workInProgress.mode;
		  var currentPrimaryChildFragment = current.child;
		  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
		  var primaryChildProps = {
		    mode: 'hidden',
		    children: primaryChildren
		  };
		  var primaryChildFragment;

		  if ( // In legacy mode, we commit the primary tree as if it successfully
		  // completed, even though it's in an inconsistent state.
		  (mode & BlockingMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was
		  // already cloned. In legacy mode, the only case where this isn't true is
		  // when DevTools forces us to display a fallback; we skip the first render
		  // pass entirely and go straight to rendering the fallback. (In Concurrent
		  // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
		  // only codepath.)
		  workInProgress.child !== currentPrimaryChildFragment) {
		    var progressedPrimaryFragment = workInProgress.child;
		    primaryChildFragment = progressedPrimaryFragment;
		    primaryChildFragment.childLanes = NoLanes;
		    primaryChildFragment.pendingProps = primaryChildProps;

		    if ( workInProgress.mode & ProfileMode) {
		      // Reset the durations from the first pass so they aren't included in the
		      // final amounts. This seems counterintuitive, since we're intentionally
		      // not measuring part of the render phase, but this makes it match what we
		      // do in Concurrent Mode.
		      primaryChildFragment.actualDuration = 0;
		      primaryChildFragment.actualStartTime = -1;
		      primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;
		      primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;
		    } // The fallback fiber was added as a deletion effect during the first pass.
		    // However, since we're going to remain on the fallback, we no longer want
		    // to delete it. So we need to remove it from the list. Deletions are stored
		    // on the same list as effects. We want to keep the effects from the primary
		    // tree. So we copy the primary child fragment's effect list, which does not
		    // include the fallback deletion effect.


		    var progressedLastEffect = primaryChildFragment.lastEffect;

		    if (progressedLastEffect !== null) {
		      workInProgress.firstEffect = primaryChildFragment.firstEffect;
		      workInProgress.lastEffect = progressedLastEffect;
		      progressedLastEffect.nextEffect = null;
		    } else {
		      // TODO: Reset this somewhere else? Lol legacy mode is so weird.
		      workInProgress.firstEffect = workInProgress.lastEffect = null;
		    }
		  } else {
		    primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps);
		  }

		  var fallbackChildFragment;

		  if (currentFallbackChildFragment !== null) {
		    fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);
		  } else {
		    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already
		    // mounted but this is a new fiber.

		    fallbackChildFragment.flags |= Placement;
		  }

		  fallbackChildFragment.return = workInProgress;
		  primaryChildFragment.return = workInProgress;
		  primaryChildFragment.sibling = fallbackChildFragment;
		  workInProgress.child = primaryChildFragment;
		  return fallbackChildFragment;
		}

		function scheduleWorkOnFiber(fiber, renderLanes) {
		  fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
		  var alternate = fiber.alternate;

		  if (alternate !== null) {
		    alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
		  }

		  scheduleWorkOnParentPath(fiber.return, renderLanes);
		}

		function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {
		  // Mark any Suspense boundaries with fallbacks as having work to do.
		  // If they were previously forced into fallbacks, they may now be able
		  // to unblock.
		  var node = firstChild;

		  while (node !== null) {
		    if (node.tag === SuspenseComponent) {
		      var state = node.memoizedState;

		      if (state !== null) {
		        scheduleWorkOnFiber(node, renderLanes);
		      }
		    } else if (node.tag === SuspenseListComponent) {
		      // If the tail is hidden there might not be an Suspense boundaries
		      // to schedule work on. In this case we have to schedule it on the
		      // list itself.
		      // We don't have to traverse to the children of the list since
		      // the list will propagate the change when it rerenders.
		      scheduleWorkOnFiber(node, renderLanes);
		    } else if (node.child !== null) {
		      node.child.return = node;
		      node = node.child;
		      continue;
		    }

		    if (node === workInProgress) {
		      return;
		    }

		    while (node.sibling === null) {
		      if (node.return === null || node.return === workInProgress) {
		        return;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  }
		}

		function findLastContentRow(firstChild) {
		  // This is going to find the last row among these children that is already
		  // showing content on the screen, as opposed to being in fallback state or
		  // new. If a row has multiple Suspense boundaries, any of them being in the
		  // fallback state, counts as the whole row being in a fallback state.
		  // Note that the "rows" will be workInProgress, but any nested children
		  // will still be current since we haven't rendered them yet. The mounted
		  // order may not be the same as the new order. We use the new order.
		  var row = firstChild;
		  var lastContentRow = null;

		  while (row !== null) {
		    var currentRow = row.alternate; // New rows can't be content rows.

		    if (currentRow !== null && findFirstSuspended(currentRow) === null) {
		      lastContentRow = row;
		    }

		    row = row.sibling;
		  }

		  return lastContentRow;
		}

		function validateRevealOrder(revealOrder) {
		  {
		    if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
		      didWarnAboutRevealOrder[revealOrder] = true;

		      if (typeof revealOrder === 'string') {
		        switch (revealOrder.toLowerCase()) {
		          case 'together':
		          case 'forwards':
		          case 'backwards':
		            {
		              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());

		              break;
		            }

		          case 'forward':
		          case 'backward':
		            {
		              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());

		              break;
		            }

		          default:
		            error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);

		            break;
		        }
		      } else {
		        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
		      }
		    }
		  }
		}

		function validateTailOptions(tailMode, revealOrder) {
		  {
		    if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
		      if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
		        didWarnAboutTailOptions[tailMode] = true;

		        error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
		      } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
		        didWarnAboutTailOptions[tailMode] = true;

		        error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
		      }
		    }
		  }
		}

		function validateSuspenseListNestedChild(childSlot, index) {
		  {
		    var isArray = Array.isArray(childSlot);
		    var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';

		    if (isArray || isIterable) {
		      var type = isArray ? 'array' : 'iterable';

		      error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);

		      return false;
		    }
		  }

		  return true;
		}

		function validateSuspenseListChildren(children, revealOrder) {
		  {
		    if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
		      if (Array.isArray(children)) {
		        for (var i = 0; i < children.length; i++) {
		          if (!validateSuspenseListNestedChild(children[i], i)) {
		            return;
		          }
		        }
		      } else {
		        var iteratorFn = getIteratorFn(children);

		        if (typeof iteratorFn === 'function') {
		          var childrenIterator = iteratorFn.call(children);

		          if (childrenIterator) {
		            var step = childrenIterator.next();
		            var _i = 0;

		            for (; !step.done; step = childrenIterator.next()) {
		              if (!validateSuspenseListNestedChild(step.value, _i)) {
		                return;
		              }

		              _i++;
		            }
		          }
		        } else {
		          error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
		        }
		      }
		    }
		  }
		}

		function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
		  var renderState = workInProgress.memoizedState;

		  if (renderState === null) {
		    workInProgress.memoizedState = {
		      isBackwards: isBackwards,
		      rendering: null,
		      renderingStartTime: 0,
		      last: lastContentRow,
		      tail: tail,
		      tailMode: tailMode,
		      lastEffect: lastEffectBeforeRendering
		    };
		  } else {
		    // We can reuse the existing object from previous renders.
		    renderState.isBackwards = isBackwards;
		    renderState.rendering = null;
		    renderState.renderingStartTime = 0;
		    renderState.last = lastContentRow;
		    renderState.tail = tail;
		    renderState.tailMode = tailMode;
		    renderState.lastEffect = lastEffectBeforeRendering;
		  }
		} // This can end up rendering this component multiple passes.
		// The first pass splits the children fibers into two sets. A head and tail.
		// We first render the head. If anything is in fallback state, we do another
		// pass through beginWork to rerender all children (including the tail) with
		// the force suspend context. If the first render didn't have anything in
		// in fallback state. Then we render each row in the tail one-by-one.
		// That happens in the completeWork phase without going back to beginWork.


		function updateSuspenseListComponent(current, workInProgress, renderLanes) {
		  var nextProps = workInProgress.pendingProps;
		  var revealOrder = nextProps.revealOrder;
		  var tailMode = nextProps.tail;
		  var newChildren = nextProps.children;
		  validateRevealOrder(revealOrder);
		  validateTailOptions(tailMode, revealOrder);
		  validateSuspenseListChildren(newChildren, revealOrder);
		  reconcileChildren(current, workInProgress, newChildren, renderLanes);
		  var suspenseContext = suspenseStackCursor.current;
		  var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);

		  if (shouldForceFallback) {
		    suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
		    workInProgress.flags |= DidCapture;
		  } else {
		    var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;

		    if (didSuspendBefore) {
		      // If we previously forced a fallback, we need to schedule work
		      // on any nested boundaries to let them know to try to render
		      // again. This is the same as context updating.
		      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);
		    }

		    suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
		  }

		  pushSuspenseContext(workInProgress, suspenseContext);

		  if ((workInProgress.mode & BlockingMode) === NoMode) {
		    // In legacy mode, SuspenseList doesn't work so we just
		    // use make it a noop by treating it as the default revealOrder.
		    workInProgress.memoizedState = null;
		  } else {
		    switch (revealOrder) {
		      case 'forwards':
		        {
		          var lastContentRow = findLastContentRow(workInProgress.child);
		          var tail;

		          if (lastContentRow === null) {
		            // The whole list is part of the tail.
		            // TODO: We could fast path by just rendering the tail now.
		            tail = workInProgress.child;
		            workInProgress.child = null;
		          } else {
		            // Disconnect the tail rows after the content row.
		            // We're going to render them separately later.
		            tail = lastContentRow.sibling;
		            lastContentRow.sibling = null;
		          }

		          initSuspenseListRenderState(workInProgress, false, // isBackwards
		          tail, lastContentRow, tailMode, workInProgress.lastEffect);
		          break;
		        }

		      case 'backwards':
		        {
		          // We're going to find the first row that has existing content.
		          // At the same time we're going to reverse the list of everything
		          // we pass in the meantime. That's going to be our tail in reverse
		          // order.
		          var _tail = null;
		          var row = workInProgress.child;
		          workInProgress.child = null;

		          while (row !== null) {
		            var currentRow = row.alternate; // New rows can't be content rows.

		            if (currentRow !== null && findFirstSuspended(currentRow) === null) {
		              // This is the beginning of the main content.
		              workInProgress.child = row;
		              break;
		            }

		            var nextRow = row.sibling;
		            row.sibling = _tail;
		            _tail = row;
		            row = nextRow;
		          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.


		          initSuspenseListRenderState(workInProgress, true, // isBackwards
		          _tail, null, // last
		          tailMode, workInProgress.lastEffect);
		          break;
		        }

		      case 'together':
		        {
		          initSuspenseListRenderState(workInProgress, false, // isBackwards
		          null, // tail
		          null, // last
		          undefined, workInProgress.lastEffect);
		          break;
		        }

		      default:
		        {
		          // The default reveal order is the same as not having
		          // a boundary.
		          workInProgress.memoizedState = null;
		        }
		    }
		  }

		  return workInProgress.child;
		}

		function updatePortalComponent(current, workInProgress, renderLanes) {
		  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
		  var nextChildren = workInProgress.pendingProps;

		  if (current === null) {
		    // Portals are special because we don't append the children during mount
		    // but at commit. Therefore we need to track insertions which the normal
		    // flow doesn't do during mount. This doesn't happen at the root because
		    // the root always starts with a "current" with a null child.
		    // TODO: Consider unifying this with how the root works.
		    workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
		  } else {
		    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
		  }

		  return workInProgress.child;
		}

		var hasWarnedAboutUsingNoValuePropOnContextProvider = false;

		function updateContextProvider(current, workInProgress, renderLanes) {
		  var providerType = workInProgress.type;
		  var context = providerType._context;
		  var newProps = workInProgress.pendingProps;
		  var oldProps = workInProgress.memoizedProps;
		  var newValue = newProps.value;

		  {
		    if (!('value' in newProps)) {
		      if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {
		        hasWarnedAboutUsingNoValuePropOnContextProvider = true;

		        error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');
		      }
		    }

		    var providerPropTypes = workInProgress.type.propTypes;

		    if (providerPropTypes) {
		      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');
		    }
		  }

		  pushProvider(workInProgress, newValue);

		  if (oldProps !== null) {
		    var oldValue = oldProps.value;
		    var changedBits = calculateChangedBits(context, newValue, oldValue);

		    if (changedBits === 0) {
		      // No change. Bailout early if children are the same.
		      if (oldProps.children === newProps.children && !hasContextChanged()) {
		        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		      }
		    } else {
		      // The context value changed. Search for matching consumers and schedule
		      // them to update.
		      propagateContextChange(workInProgress, context, changedBits, renderLanes);
		    }
		  }

		  var newChildren = newProps.children;
		  reconcileChildren(current, workInProgress, newChildren, renderLanes);
		  return workInProgress.child;
		}

		var hasWarnedAboutUsingContextAsConsumer = false;

		function updateContextConsumer(current, workInProgress, renderLanes) {
		  var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
		  // DEV mode, we create a separate object for Context.Consumer that acts
		  // like a proxy to Context. This proxy object adds unnecessary code in PROD
		  // so we use the old behaviour (Context.Consumer references Context) to
		  // reduce size and overhead. The separate object references context via
		  // a property called "_context", which also gives us the ability to check
		  // in DEV mode if this property exists or not and warn if it does not.

		  {
		    if (context._context === undefined) {
		      // This may be because it's a Context (rather than a Consumer).
		      // Or it may be because it's older React where they're the same thing.
		      // We only want to warn if we're sure it's a new React.
		      if (context !== context.Consumer) {
		        if (!hasWarnedAboutUsingContextAsConsumer) {
		          hasWarnedAboutUsingContextAsConsumer = true;

		          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
		        }
		      }
		    } else {
		      context = context._context;
		    }
		  }

		  var newProps = workInProgress.pendingProps;
		  var render = newProps.children;

		  {
		    if (typeof render !== 'function') {
		      error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
		    }
		  }

		  prepareToReadContext(workInProgress, renderLanes);
		  var newValue = readContext(context, newProps.unstable_observedBits);
		  var newChildren;

		  {
		    ReactCurrentOwner$1.current = workInProgress;
		    setIsRendering(true);
		    newChildren = render(newValue);
		    setIsRendering(false);
		  } // React DevTools reads this flag.


		  workInProgress.flags |= PerformedWork;
		  reconcileChildren(current, workInProgress, newChildren, renderLanes);
		  return workInProgress.child;
		}

		function markWorkInProgressReceivedUpdate() {
		  didReceiveUpdate = true;
		}

		function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
		  if (current !== null) {
		    // Reuse previous dependencies
		    workInProgress.dependencies = current.dependencies;
		  }

		  {
		    // Don't update "base" render times for bailouts.
		    stopProfilerTimerIfRunning();
		  }

		  markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.

		  if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {
		    // The children don't have any work either. We can skip them.
		    // TODO: Once we add back resuming, we should check if the children are
		    // a work-in-progress set. If so, we need to transfer their effects.
		    return null;
		  } else {
		    // This fiber doesn't have work, but its subtree does. Clone the child
		    // fibers and continue.
		    cloneChildFibers(current, workInProgress);
		    return workInProgress.child;
		  }
		}

		function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
		  {
		    var returnFiber = oldWorkInProgress.return;

		    if (returnFiber === null) {
		      throw new Error('Cannot swap the root fiber.');
		    } // Disconnect from the old current.
		    // It will get deleted.


		    current.alternate = null;
		    oldWorkInProgress.alternate = null; // Connect to the new tree.

		    newWorkInProgress.index = oldWorkInProgress.index;
		    newWorkInProgress.sibling = oldWorkInProgress.sibling;
		    newWorkInProgress.return = oldWorkInProgress.return;
		    newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.

		    if (oldWorkInProgress === returnFiber.child) {
		      returnFiber.child = newWorkInProgress;
		    } else {
		      var prevSibling = returnFiber.child;

		      if (prevSibling === null) {
		        throw new Error('Expected parent to have a child.');
		      }

		      while (prevSibling.sibling !== oldWorkInProgress) {
		        prevSibling = prevSibling.sibling;

		        if (prevSibling === null) {
		          throw new Error('Expected to find the previous sibling.');
		        }
		      }

		      prevSibling.sibling = newWorkInProgress;
		    } // Delete the old fiber and place the new one.
		    // Since the old fiber is disconnected, we have to schedule it manually.


		    var last = returnFiber.lastEffect;

		    if (last !== null) {
		      last.nextEffect = current;
		      returnFiber.lastEffect = current;
		    } else {
		      returnFiber.firstEffect = returnFiber.lastEffect = current;
		    }

		    current.nextEffect = null;
		    current.flags = Deletion;
		    newWorkInProgress.flags |= Placement; // Restart work from the new fiber.

		    return newWorkInProgress;
		  }
		}

		function beginWork(current, workInProgress, renderLanes) {
		  var updateLanes = workInProgress.lanes;

		  {
		    if (workInProgress._debugNeedsRemount && current !== null) {
		      // This will restart the begin phase with a new fiber.
		      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
		    }
		  }

		  if (current !== null) {
		    var oldProps = current.memoizedProps;
		    var newProps = workInProgress.pendingProps;

		    if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
		     workInProgress.type !== current.type )) {
		      // If props or context changed, mark the fiber as having performed work.
		      // This may be unset if the props are determined to be equal later (memo).
		      didReceiveUpdate = true;
		    } else if (!includesSomeLane(renderLanes, updateLanes)) {
		      didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
		      // the begin phase. There's still some bookkeeping we that needs to be done
		      // in this optimized path, mostly pushing stuff onto the stack.

		      switch (workInProgress.tag) {
		        case HostRoot:
		          pushHostRootContext(workInProgress);
		          resetHydrationState();
		          break;

		        case HostComponent:
		          pushHostContext(workInProgress);
		          break;

		        case ClassComponent:
		          {
		            var Component = workInProgress.type;

		            if (isContextProvider(Component)) {
		              pushContextProvider(workInProgress);
		            }

		            break;
		          }

		        case HostPortal:
		          pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
		          break;

		        case ContextProvider:
		          {
		            var newValue = workInProgress.memoizedProps.value;
		            pushProvider(workInProgress, newValue);
		            break;
		          }

		        case Profiler:
		          {
		            // Profiler should only call onRender when one of its descendants actually rendered.
		            var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

		            if (hasChildWork) {
		              workInProgress.flags |= Update;
		            } // Reset effect durations for the next eventual effect phase.
		            // These are reset during render to allow the DevTools commit hook a chance to read them,


		            var stateNode = workInProgress.stateNode;
		            stateNode.effectDuration = 0;
		            stateNode.passiveEffectDuration = 0;
		          }

		          break;

		        case SuspenseComponent:
		          {
		            var state = workInProgress.memoizedState;

		            if (state !== null) {
		              // whether to retry the primary children, or to skip over it and
		              // go straight to the fallback. Check the priority of the primary
		              // child fragment.


		              var primaryChildFragment = workInProgress.child;
		              var primaryChildLanes = primaryChildFragment.childLanes;

		              if (includesSomeLane(renderLanes, primaryChildLanes)) {
		                // The primary children have pending work. Use the normal path
		                // to attempt to render the primary children again.
		                return updateSuspenseComponent(current, workInProgress, renderLanes);
		              } else {
		                // The primary child fragment does not have pending work marked
		                // on it
		                pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
		                // priority. Bailout.

		                var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);

		                if (child !== null) {
		                  // The fallback children have pending work. Skip over the
		                  // primary children and work on the fallback.
		                  return child.sibling;
		                } else {
		                  return null;
		                }
		              }
		            } else {
		              pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
		            }

		            break;
		          }

		        case SuspenseListComponent:
		          {
		            var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;

		            var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

		            if (didSuspendBefore) {
		              if (_hasChildWork) {
		                // If something was in fallback state last time, and we have all the
		                // same children then we're still in progressive loading state.
		                // Something might get unblocked by state updates or retries in the
		                // tree which will affect the tail. So we need to use the normal
		                // path to compute the correct tail.
		                return updateSuspenseListComponent(current, workInProgress, renderLanes);
		              } // If none of the children had any work, that means that none of
		              // them got retried so they'll still be blocked in the same way
		              // as before. We can fast bail out.


		              workInProgress.flags |= DidCapture;
		            } // If nothing suspended before and we're rendering the same children,
		            // then the tail doesn't matter. Anything new that suspends will work
		            // in the "together" mode, so we can continue from the state we had.


		            var renderState = workInProgress.memoizedState;

		            if (renderState !== null) {
		              // Reset to the "together" mode in case we've started a different
		              // update in the past but didn't complete it.
		              renderState.rendering = null;
		              renderState.tail = null;
		              renderState.lastEffect = null;
		            }

		            pushSuspenseContext(workInProgress, suspenseStackCursor.current);

		            if (_hasChildWork) {
		              break;
		            } else {
		              // If none of the children had any work, that means that none of
		              // them got retried so they'll still be blocked in the same way
		              // as before. We can fast bail out.
		              return null;
		            }
		          }

		        case OffscreenComponent:
		        case LegacyHiddenComponent:
		          {
		            // Need to check if the tree still needs to be deferred. This is
		            // almost identical to the logic used in the normal update path,
		            // so we'll just enter that. The only difference is we'll bail out
		            // at the next level instead of this one, because the child props
		            // have not changed. Which is fine.
		            // TODO: Probably should refactor `beginWork` to split the bailout
		            // path from the normal path. I'm tempted to do a labeled break here
		            // but I won't :)
		            workInProgress.lanes = NoLanes;
		            return updateOffscreenComponent(current, workInProgress, renderLanes);
		          }
		      }

		      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
		    } else {
		      if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
		        // This is a special case that only exists for legacy mode.
		        // See https://github.com/facebook/react/pull/19216.
		        didReceiveUpdate = true;
		      } else {
		        // An update was scheduled on this fiber, but there are no new props
		        // nor legacy context. Set this to false. If an update queue or context
		        // consumer produces a changed value, it will set this to true. Otherwise,
		        // the component will assume the children have not changed and bail out.
		        didReceiveUpdate = false;
		      }
		    }
		  } else {
		    didReceiveUpdate = false;
		  } // Before entering the begin phase, clear pending update priority.
		  // TODO: This assumes that we're about to evaluate the component and process
		  // the update queue. However, there's an exception: SimpleMemoComponent
		  // sometimes bails out later in the begin phase. This indicates that we should
		  // move this assignment out of the common path and into each branch.


		  workInProgress.lanes = NoLanes;

		  switch (workInProgress.tag) {
		    case IndeterminateComponent:
		      {
		        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);
		      }

		    case LazyComponent:
		      {
		        var elementType = workInProgress.elementType;
		        return mountLazyComponent(current, workInProgress, elementType, updateLanes, renderLanes);
		      }

		    case FunctionComponent:
		      {
		        var _Component = workInProgress.type;
		        var unresolvedProps = workInProgress.pendingProps;
		        var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
		        return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderLanes);
		      }

		    case ClassComponent:
		      {
		        var _Component2 = workInProgress.type;
		        var _unresolvedProps = workInProgress.pendingProps;

		        var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);

		        return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderLanes);
		      }

		    case HostRoot:
		      return updateHostRoot(current, workInProgress, renderLanes);

		    case HostComponent:
		      return updateHostComponent(current, workInProgress, renderLanes);

		    case HostText:
		      return updateHostText(current, workInProgress);

		    case SuspenseComponent:
		      return updateSuspenseComponent(current, workInProgress, renderLanes);

		    case HostPortal:
		      return updatePortalComponent(current, workInProgress, renderLanes);

		    case ForwardRef:
		      {
		        var type = workInProgress.type;
		        var _unresolvedProps2 = workInProgress.pendingProps;

		        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);

		        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);
		      }

		    case Fragment:
		      return updateFragment(current, workInProgress, renderLanes);

		    case Mode:
		      return updateMode(current, workInProgress, renderLanes);

		    case Profiler:
		      return updateProfiler(current, workInProgress, renderLanes);

		    case ContextProvider:
		      return updateContextProvider(current, workInProgress, renderLanes);

		    case ContextConsumer:
		      return updateContextConsumer(current, workInProgress, renderLanes);

		    case MemoComponent:
		      {
		        var _type2 = workInProgress.type;
		        var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.

		        var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);

		        {
		          if (workInProgress.type !== workInProgress.elementType) {
		            var outerPropTypes = _type2.propTypes;

		            if (outerPropTypes) {
		              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
		              'prop', getComponentName(_type2));
		            }
		          }
		        }

		        _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
		        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateLanes, renderLanes);
		      }

		    case SimpleMemoComponent:
		      {
		        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateLanes, renderLanes);
		      }

		    case IncompleteClassComponent:
		      {
		        var _Component3 = workInProgress.type;
		        var _unresolvedProps4 = workInProgress.pendingProps;

		        var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);

		        return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderLanes);
		      }

		    case SuspenseListComponent:
		      {
		        return updateSuspenseListComponent(current, workInProgress, renderLanes);
		      }

		    case FundamentalComponent:
		      {

		        break;
		      }

		    case ScopeComponent:
		      {

		        break;
		      }

		    case Block:
		      {

		        break;
		      }

		    case OffscreenComponent:
		      {
		        return updateOffscreenComponent(current, workInProgress, renderLanes);
		      }

		    case LegacyHiddenComponent:
		      {
		        return updateLegacyHiddenComponent(current, workInProgress, renderLanes);
		      }
		  }

		  {
		    {
		      throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function markUpdate(workInProgress) {
		  // Tag the fiber with an update effect. This turns a Placement into
		  // a PlacementAndUpdate.
		  workInProgress.flags |= Update;
		}

		function markRef$1(workInProgress) {
		  workInProgress.flags |= Ref;
		}

		var appendAllChildren;
		var updateHostContainer;
		var updateHostComponent$1;
		var updateHostText$1;

		{
		  // Mutation mode
		  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
		    // We only have the top Fiber that was created but we need recurse down its
		    // children to find all the terminal nodes.
		    var node = workInProgress.child;

		    while (node !== null) {
		      if (node.tag === HostComponent || node.tag === HostText) {
		        appendInitialChild(parent, node.stateNode);
		      } else if (node.tag === HostPortal) ; else if (node.child !== null) {
		        node.child.return = node;
		        node = node.child;
		        continue;
		      }

		      if (node === workInProgress) {
		        return;
		      }

		      while (node.sibling === null) {
		        if (node.return === null || node.return === workInProgress) {
		          return;
		        }

		        node = node.return;
		      }

		      node.sibling.return = node.return;
		      node = node.sibling;
		    }
		  };

		  updateHostContainer = function (workInProgress) {// Noop
		  };

		  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
		    // If we have an alternate, that means this is an update and we need to
		    // schedule a side-effect to do the updates.
		    var oldProps = current.memoizedProps;

		    if (oldProps === newProps) {
		      // In mutation mode, this is sufficient for a bailout because
		      // we won't touch this node even if children changed.
		      return;
		    } // If we get updated because one of our children updated, we don't
		    // have newProps so we'll have to reuse them.
		    // TODO: Split the update API as separate for the props vs. children.
		    // Even better would be if children weren't special cased at all tho.


		    var instance = workInProgress.stateNode;
		    var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
		    // component is hitting the resume path. Figure out why. Possibly
		    // related to `hidden`.

		    var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.

		    workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
		    // is a new ref we mark this as an update. All the work is done in commitWork.

		    if (updatePayload) {
		      markUpdate(workInProgress);
		    }
		  };

		  updateHostText$1 = function (current, workInProgress, oldText, newText) {
		    // If the text differs, mark it as an update. All the work in done in commitWork.
		    if (oldText !== newText) {
		      markUpdate(workInProgress);
		    }
		  };
		}

		function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
		  if (getIsHydrating()) {
		    // If we're hydrating, we should consume as many items as we can
		    // so we don't leave any behind.
		    return;
		  }

		  switch (renderState.tailMode) {
		    case 'hidden':
		      {
		        // Any insertions at the end of the tail list after this point
		        // should be invisible. If there are already mounted boundaries
		        // anything before them are not considered for collapsing.
		        // Therefore we need to go through the whole tail to find if
		        // there are any.
		        var tailNode = renderState.tail;
		        var lastTailNode = null;

		        while (tailNode !== null) {
		          if (tailNode.alternate !== null) {
		            lastTailNode = tailNode;
		          }

		          tailNode = tailNode.sibling;
		        } // Next we're simply going to delete all insertions after the
		        // last rendered item.


		        if (lastTailNode === null) {
		          // All remaining items in the tail are insertions.
		          renderState.tail = null;
		        } else {
		          // Detach the insertion after the last node that was already
		          // inserted.
		          lastTailNode.sibling = null;
		        }

		        break;
		      }

		    case 'collapsed':
		      {
		        // Any insertions at the end of the tail list after this point
		        // should be invisible. If there are already mounted boundaries
		        // anything before them are not considered for collapsing.
		        // Therefore we need to go through the whole tail to find if
		        // there are any.
		        var _tailNode = renderState.tail;
		        var _lastTailNode = null;

		        while (_tailNode !== null) {
		          if (_tailNode.alternate !== null) {
		            _lastTailNode = _tailNode;
		          }

		          _tailNode = _tailNode.sibling;
		        } // Next we're simply going to delete all insertions after the
		        // last rendered item.


		        if (_lastTailNode === null) {
		          // All remaining items in the tail are insertions.
		          if (!hasRenderedATailFallback && renderState.tail !== null) {
		            // We suspended during the head. We want to show at least one
		            // row at the tail. So we'll keep on and cut off the rest.
		            renderState.tail.sibling = null;
		          } else {
		            renderState.tail = null;
		          }
		        } else {
		          // Detach the insertion after the last node that was already
		          // inserted.
		          _lastTailNode.sibling = null;
		        }

		        break;
		      }
		  }
		}

		function completeWork(current, workInProgress, renderLanes) {
		  var newProps = workInProgress.pendingProps;

		  switch (workInProgress.tag) {
		    case IndeterminateComponent:
		    case LazyComponent:
		    case SimpleMemoComponent:
		    case FunctionComponent:
		    case ForwardRef:
		    case Fragment:
		    case Mode:
		    case Profiler:
		    case ContextConsumer:
		    case MemoComponent:
		      return null;

		    case ClassComponent:
		      {
		        var Component = workInProgress.type;

		        if (isContextProvider(Component)) {
		          popContext(workInProgress);
		        }

		        return null;
		      }

		    case HostRoot:
		      {
		        popHostContainer(workInProgress);
		        popTopLevelContextObject(workInProgress);
		        resetWorkInProgressVersions();
		        var fiberRoot = workInProgress.stateNode;

		        if (fiberRoot.pendingContext) {
		          fiberRoot.context = fiberRoot.pendingContext;
		          fiberRoot.pendingContext = null;
		        }

		        if (current === null || current.child === null) {
		          // If we hydrated, pop so that we can delete any remaining children
		          // that weren't hydrated.
		          var wasHydrated = popHydrationState(workInProgress);

		          if (wasHydrated) {
		            // If we hydrated, then we'll need to schedule an update for
		            // the commit side-effects on the root.
		            markUpdate(workInProgress);
		          } else if (!fiberRoot.hydrate) {
		            // Schedule an effect to clear this container at the start of the next commit.
		            // This handles the case of React rendering into a container with previous children.
		            // It's also safe to do for updates too, because current.child would only be null
		            // if the previous render was null (so the the container would already be empty).
		            workInProgress.flags |= Snapshot;
		          }
		        }

		        updateHostContainer(workInProgress);
		        return null;
		      }

		    case HostComponent:
		      {
		        popHostContext(workInProgress);
		        var rootContainerInstance = getRootHostContainer();
		        var type = workInProgress.type;

		        if (current !== null && workInProgress.stateNode != null) {
		          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);

		          if (current.ref !== workInProgress.ref) {
		            markRef$1(workInProgress);
		          }
		        } else {
		          if (!newProps) {
		            if (!(workInProgress.stateNode !== null)) {
		              {
		                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
		              }
		            } // This can happen when we abort work.


		            return null;
		          }

		          var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
		          // "stack" as the parent. Then append children as we go in beginWork
		          // or completeWork depending on whether we want to add them top->down or
		          // bottom->up. Top->down is faster in IE11.

		          var _wasHydrated = popHydrationState(workInProgress);

		          if (_wasHydrated) {
		            // TODO: Move this and createInstance step into the beginPhase
		            // to consolidate.
		            if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
		              // If changes to the hydrated node need to be applied at the
		              // commit-phase we mark this as such.
		              markUpdate(workInProgress);
		            }
		          } else {
		            var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
		            appendAllChildren(instance, workInProgress, false, false);
		            workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.
		            // (eg DOM renderer supports auto-focus for certain elements).
		            // Make sure such renderers get scheduled for later work.

		            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
		              markUpdate(workInProgress);
		            }
		          }

		          if (workInProgress.ref !== null) {
		            // If there is a ref on a host node we need to schedule a callback
		            markRef$1(workInProgress);
		          }
		        }

		        return null;
		      }

		    case HostText:
		      {
		        var newText = newProps;

		        if (current && workInProgress.stateNode != null) {
		          var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
		          // to schedule a side-effect to do the updates.

		          updateHostText$1(current, workInProgress, oldText, newText);
		        } else {
		          if (typeof newText !== 'string') {
		            if (!(workInProgress.stateNode !== null)) {
		              {
		                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
		              }
		            } // This can happen when we abort work.

		          }

		          var _rootContainerInstance = getRootHostContainer();

		          var _currentHostContext = getHostContext();

		          var _wasHydrated2 = popHydrationState(workInProgress);

		          if (_wasHydrated2) {
		            if (prepareToHydrateHostTextInstance(workInProgress)) {
		              markUpdate(workInProgress);
		            }
		          } else {
		            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
		          }
		        }

		        return null;
		      }

		    case SuspenseComponent:
		      {
		        popSuspenseContext(workInProgress);
		        var nextState = workInProgress.memoizedState;

		        if ((workInProgress.flags & DidCapture) !== NoFlags) {
		          // Something suspended. Re-render with the fallback children.
		          workInProgress.lanes = renderLanes; // Do not reset the effect list.

		          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
		            transferActualDuration(workInProgress);
		          }

		          return workInProgress;
		        }

		        var nextDidTimeout = nextState !== null;
		        var prevDidTimeout = false;

		        if (current === null) {
		          if (workInProgress.memoizedProps.fallback !== undefined) {
		            popHydrationState(workInProgress);
		          }
		        } else {
		          var prevState = current.memoizedState;
		          prevDidTimeout = prevState !== null;
		        }

		        if (nextDidTimeout && !prevDidTimeout) {
		          // If this subtreee is running in blocking mode we can suspend,
		          // otherwise we won't suspend.
		          // TODO: This will still suspend a synchronous tree if anything
		          // in the concurrent tree already suspended during this render.
		          // This is a known bug.
		          if ((workInProgress.mode & BlockingMode) !== NoMode) {
		            // TODO: Move this back to throwException because this is too late
		            // if this is a large tree which is common for initial loads. We
		            // don't know if we should restart a render or not until we get
		            // this marker, and this is too late.
		            // If this render already had a ping or lower pri updates,
		            // and this is the first time we know we're going to suspend we
		            // should be able to immediately restart from within throwException.
		            var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;

		            if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
		              // If this was in an invisible tree or a new render, then showing
		              // this boundary is ok.
		              renderDidSuspend();
		            } else {
		              // Otherwise, we're going to have to hide content so we should
		              // suspend for longer if possible.
		              renderDidSuspendDelayIfPossible();
		            }
		          }
		        }

		        {
		          // TODO: Only schedule updates if these values are non equal, i.e. it changed.
		          if (nextDidTimeout || prevDidTimeout) {
		            // If this boundary just timed out, schedule an effect to attach a
		            // retry listener to the promise. This flag is also used to hide the
		            // primary children. In mutation mode, we also need the flag to
		            // *unhide* children that were previously hidden, so check if this
		            // is currently timed out, too.
		            workInProgress.flags |= Update;
		          }
		        }

		        return null;
		      }

		    case HostPortal:
		      popHostContainer(workInProgress);
		      updateHostContainer(workInProgress);

		      if (current === null) {
		        preparePortalMount(workInProgress.stateNode.containerInfo);
		      }

		      return null;

		    case ContextProvider:
		      // Pop provider fiber
		      popProvider(workInProgress);
		      return null;

		    case IncompleteClassComponent:
		      {
		        // Same as class component case. I put it down here so that the tags are
		        // sequential to ensure this switch is compiled to a jump table.
		        var _Component = workInProgress.type;

		        if (isContextProvider(_Component)) {
		          popContext(workInProgress);
		        }

		        return null;
		      }

		    case SuspenseListComponent:
		      {
		        popSuspenseContext(workInProgress);
		        var renderState = workInProgress.memoizedState;

		        if (renderState === null) {
		          // We're running in the default, "independent" mode.
		          // We don't do anything in this mode.
		          return null;
		        }

		        var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;
		        var renderedTail = renderState.rendering;

		        if (renderedTail === null) {
		          // We just rendered the head.
		          if (!didSuspendAlready) {
		            // This is the first pass. We need to figure out if anything is still
		            // suspended in the rendered set.
		            // If new content unsuspended, but there's still some content that
		            // didn't. Then we need to do a second pass that forces everything
		            // to keep showing their fallbacks.
		            // We might be suspended if something in this render pass suspended, or
		            // something in the previous committed pass suspended. Otherwise,
		            // there's no chance so we can skip the expensive call to
		            // findFirstSuspended.
		            var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);

		            if (!cannotBeSuspended) {
		              var row = workInProgress.child;

		              while (row !== null) {
		                var suspended = findFirstSuspended(row);

		                if (suspended !== null) {
		                  didSuspendAlready = true;
		                  workInProgress.flags |= DidCapture;
		                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
		                  // part of the second pass. In that case nothing will subscribe to
		                  // its thennables. Instead, we'll transfer its thennables to the
		                  // SuspenseList so that it can retry if they resolve.
		                  // There might be multiple of these in the list but since we're
		                  // going to wait for all of them anyway, it doesn't really matter
		                  // which ones gets to ping. In theory we could get clever and keep
		                  // track of how many dependencies remain but it gets tricky because
		                  // in the meantime, we can add/remove/change items and dependencies.
		                  // We might bail out of the loop before finding any but that
		                  // doesn't matter since that means that the other boundaries that
		                  // we did find already has their listeners attached.

		                  var newThennables = suspended.updateQueue;

		                  if (newThennables !== null) {
		                    workInProgress.updateQueue = newThennables;
		                    workInProgress.flags |= Update;
		                  } // Rerender the whole list, but this time, we'll force fallbacks
		                  // to stay in place.
		                  // Reset the effect list before doing the second pass since that's now invalid.


		                  if (renderState.lastEffect === null) {
		                    workInProgress.firstEffect = null;
		                  }

		                  workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.

		                  resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately
		                  // rerender the children.

		                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
		                  return workInProgress.child;
		                }

		                row = row.sibling;
		              }
		            }

		            if (renderState.tail !== null && now() > getRenderTargetTime()) {
		              // We have already passed our CPU deadline but we still have rows
		              // left in the tail. We'll just give up further attempts to render
		              // the main content and only render fallbacks.
		              workInProgress.flags |= DidCapture;
		              didSuspendAlready = true;
		              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
		              // to get it started back up to attempt the next item. While in terms
		              // of priority this work has the same priority as this current render,
		              // it's not part of the same transition once the transition has
		              // committed. If it's sync, we still want to yield so that it can be
		              // painted. Conceptually, this is really the same as pinging.
		              // We can use any RetryLane even if it's the one currently rendering
		              // since we're leaving it behind on this node.

		              workInProgress.lanes = SomeRetryLane;

		              {
		                markSpawnedWork(SomeRetryLane);
		              }
		            }
		          } else {
		            cutOffTailIfNeeded(renderState, false);
		          } // Next we're going to render the tail.

		        } else {
		          // Append the rendered row to the child list.
		          if (!didSuspendAlready) {
		            var _suspended = findFirstSuspended(renderedTail);

		            if (_suspended !== null) {
		              workInProgress.flags |= DidCapture;
		              didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
		              // get lost if this row ends up dropped during a second pass.

		              var _newThennables = _suspended.updateQueue;

		              if (_newThennables !== null) {
		                workInProgress.updateQueue = _newThennables;
		                workInProgress.flags |= Update;
		              }

		              cutOffTailIfNeeded(renderState, true); // This might have been modified.

		              if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.
		              ) {
		                  // We need to delete the row we just rendered.
		                  // Reset the effect list to what it was before we rendered this
		                  // child. The nested children have already appended themselves.
		                  var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.

		                  if (lastEffect !== null) {
		                    lastEffect.nextEffect = null;
		                  } // We're done.


		                  return null;
		                }
		            } else if ( // The time it took to render last row is greater than the remaining
		            // time we have to render. So rendering one more row would likely
		            // exceed it.
		            now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
		              // We have now passed our CPU deadline and we'll just give up further
		              // attempts to render the main content and only render fallbacks.
		              // The assumption is that this is usually faster.
		              workInProgress.flags |= DidCapture;
		              didSuspendAlready = true;
		              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
		              // to get it started back up to attempt the next item. While in terms
		              // of priority this work has the same priority as this current render,
		              // it's not part of the same transition once the transition has
		              // committed. If it's sync, we still want to yield so that it can be
		              // painted. Conceptually, this is really the same as pinging.
		              // We can use any RetryLane even if it's the one currently rendering
		              // since we're leaving it behind on this node.

		              workInProgress.lanes = SomeRetryLane;

		              {
		                markSpawnedWork(SomeRetryLane);
		              }
		            }
		          }

		          if (renderState.isBackwards) {
		            // The effect list of the backwards tail will have been added
		            // to the end. This breaks the guarantee that life-cycles fire in
		            // sibling order but that isn't a strong guarantee promised by React.
		            // Especially since these might also just pop in during future commits.
		            // Append to the beginning of the list.
		            renderedTail.sibling = workInProgress.child;
		            workInProgress.child = renderedTail;
		          } else {
		            var previousSibling = renderState.last;

		            if (previousSibling !== null) {
		              previousSibling.sibling = renderedTail;
		            } else {
		              workInProgress.child = renderedTail;
		            }

		            renderState.last = renderedTail;
		          }
		        }

		        if (renderState.tail !== null) {
		          // We still have tail rows to render.
		          // Pop a row.
		          var next = renderState.tail;
		          renderState.rendering = next;
		          renderState.tail = next.sibling;
		          renderState.lastEffect = workInProgress.lastEffect;
		          renderState.renderingStartTime = now();
		          next.sibling = null; // Restore the context.
		          // TODO: We can probably just avoid popping it instead and only
		          // setting it the first time we go from not suspended to suspended.

		          var suspenseContext = suspenseStackCursor.current;

		          if (didSuspendAlready) {
		            suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
		          } else {
		            suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
		          }

		          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.

		          return next;
		        }

		        return null;
		      }

		    case FundamentalComponent:
		      {

		        break;
		      }

		    case ScopeComponent:
		      {

		        break;
		      }

		    case Block:

		      break;

		    case OffscreenComponent:
		    case LegacyHiddenComponent:
		      {
		        popRenderLanes(workInProgress);

		        if (current !== null) {
		          var _nextState = workInProgress.memoizedState;
		          var _prevState = current.memoizedState;
		          var prevIsHidden = _prevState !== null;
		          var nextIsHidden = _nextState !== null;

		          if (prevIsHidden !== nextIsHidden && newProps.mode !== 'unstable-defer-without-hiding') {
		            workInProgress.flags |= Update;
		          }
		        }

		        return null;
		      }
		  }

		  {
		    {
		      throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function unwindWork(workInProgress, renderLanes) {
		  switch (workInProgress.tag) {
		    case ClassComponent:
		      {
		        var Component = workInProgress.type;

		        if (isContextProvider(Component)) {
		          popContext(workInProgress);
		        }

		        var flags = workInProgress.flags;

		        if (flags & ShouldCapture) {
		          workInProgress.flags = flags & ~ShouldCapture | DidCapture;

		          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
		            transferActualDuration(workInProgress);
		          }

		          return workInProgress;
		        }

		        return null;
		      }

		    case HostRoot:
		      {
		        popHostContainer(workInProgress);
		        popTopLevelContextObject(workInProgress);
		        resetWorkInProgressVersions();
		        var _flags = workInProgress.flags;

		        if (!((_flags & DidCapture) === NoFlags)) {
		          {
		            throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
		          }
		        }

		        workInProgress.flags = _flags & ~ShouldCapture | DidCapture;
		        return workInProgress;
		      }

		    case HostComponent:
		      {
		        // TODO: popHydrationState
		        popHostContext(workInProgress);
		        return null;
		      }

		    case SuspenseComponent:
		      {
		        popSuspenseContext(workInProgress);

		        var _flags2 = workInProgress.flags;

		        if (_flags2 & ShouldCapture) {
		          workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.

		          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
		            transferActualDuration(workInProgress);
		          }

		          return workInProgress;
		        }

		        return null;
		      }

		    case SuspenseListComponent:
		      {
		        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
		        // caught by a nested boundary. If not, it should bubble through.

		        return null;
		      }

		    case HostPortal:
		      popHostContainer(workInProgress);
		      return null;

		    case ContextProvider:
		      popProvider(workInProgress);
		      return null;

		    case OffscreenComponent:
		    case LegacyHiddenComponent:
		      popRenderLanes(workInProgress);
		      return null;

		    default:
		      return null;
		  }
		}

		function unwindInterruptedWork(interruptedWork) {
		  switch (interruptedWork.tag) {
		    case ClassComponent:
		      {
		        var childContextTypes = interruptedWork.type.childContextTypes;

		        if (childContextTypes !== null && childContextTypes !== undefined) {
		          popContext(interruptedWork);
		        }

		        break;
		      }

		    case HostRoot:
		      {
		        popHostContainer(interruptedWork);
		        popTopLevelContextObject(interruptedWork);
		        resetWorkInProgressVersions();
		        break;
		      }

		    case HostComponent:
		      {
		        popHostContext(interruptedWork);
		        break;
		      }

		    case HostPortal:
		      popHostContainer(interruptedWork);
		      break;

		    case SuspenseComponent:
		      popSuspenseContext(interruptedWork);
		      break;

		    case SuspenseListComponent:
		      popSuspenseContext(interruptedWork);
		      break;

		    case ContextProvider:
		      popProvider(interruptedWork);
		      break;

		    case OffscreenComponent:
		    case LegacyHiddenComponent:
		      popRenderLanes(interruptedWork);
		      break;
		  }
		}

		function createCapturedValue(value, source) {
		  // If the value is an error, call this function immediately after it is thrown
		  // so the stack is accurate.
		  return {
		    value: value,
		    source: source,
		    stack: getStackByFiberInDevAndProd(source)
		  };
		}

		// This module is forked in different environments.
		// By default, return `true` to log errors to the console.
		// Forks can return `false` if this isn't desirable.
		function showErrorDialog(boundary, errorInfo) {
		  return true;
		}

		function logCapturedError(boundary, errorInfo) {
		  try {
		    var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.
		    // This enables renderers like ReactNative to better manage redbox behavior.

		    if (logError === false) {
		      return;
		    }

		    var error = errorInfo.value;

		    if (true) {
		      var source = errorInfo.source;
		      var stack = errorInfo.stack;
		      var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling
		      // `preventDefault()` in window `error` handler.
		      // We record this information as an expando on the error.

		      if (error != null && error._suppressLogging) {
		        if (boundary.tag === ClassComponent) {
		          // The error is recoverable and was silenced.
		          // Ignore it and don't print the stack addendum.
		          // This is handy for testing error boundaries without noise.
		          return;
		        } // The error is fatal. Since the silencing might have
		        // been accidental, we'll surface it anyway.
		        // However, the browser would have silenced the original error
		        // so we'll print it first, and then print the stack addendum.


		        console['error'](error); // Don't transform to our wrapper
		        // For a more detailed description of this block, see:
		        // https://github.com/facebook/react/pull/13384
		      }

		      var componentName = source ? getComponentName(source.type) : null;
		      var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
		      var errorBoundaryMessage;
		      var errorBoundaryName = getComponentName(boundary.type);

		      if (errorBoundaryName) {
		        errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
		      } else {
		        errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';
		      }

		      var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
		      // We don't include the original error message and JS stack because the browser
		      // has already printed it. Even if the application swallows the error, it is still
		      // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.

		      console['error'](combinedMessage); // Don't transform to our wrapper
		    }
		  } catch (e) {
		    // This method must not throw, or React internal state will get messed up.
		    // If console.error is overridden, or logCapturedError() shows a dialog that throws,
		    // we want to report this error outside of the normal stack as a last resort.
		    // https://github.com/facebook/react/issues/13188
		    setTimeout(function () {
		      throw e;
		    });
		  }
		}

		var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;

		function createRootErrorUpdate(fiber, errorInfo, lane) {
		  var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.

		  update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
		  // being called "element".

		  update.payload = {
		    element: null
		  };
		  var error = errorInfo.value;

		  update.callback = function () {
		    onUncaughtError(error);
		    logCapturedError(fiber, errorInfo);
		  };

		  return update;
		}

		function createClassErrorUpdate(fiber, errorInfo, lane) {
		  var update = createUpdate(NoTimestamp, lane);
		  update.tag = CaptureUpdate;
		  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;

		  if (typeof getDerivedStateFromError === 'function') {
		    var error$1 = errorInfo.value;

		    update.payload = function () {
		      logCapturedError(fiber, errorInfo);
		      return getDerivedStateFromError(error$1);
		    };
		  }

		  var inst = fiber.stateNode;

		  if (inst !== null && typeof inst.componentDidCatch === 'function') {
		    update.callback = function callback() {
		      {
		        markFailedErrorBoundaryForHotReloading(fiber);
		      }

		      if (typeof getDerivedStateFromError !== 'function') {
		        // To preserve the preexisting retry behavior of error boundaries,
		        // we keep track of which ones already failed during this batch.
		        // This gets reset before we yield back to the browser.
		        // TODO: Warn in strict mode if getDerivedStateFromError is
		        // not defined.
		        markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined

		        logCapturedError(fiber, errorInfo);
		      }

		      var error$1 = errorInfo.value;
		      var stack = errorInfo.stack;
		      this.componentDidCatch(error$1, {
		        componentStack: stack !== null ? stack : ''
		      });

		      {
		        if (typeof getDerivedStateFromError !== 'function') {
		          // If componentDidCatch is the only error boundary method defined,
		          // then it needs to call setState to recover from errors.
		          // If no state update is scheduled then the boundary will swallow the error.
		          if (!includesSomeLane(fiber.lanes, SyncLane)) {
		            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown');
		          }
		        }
		      }
		    };
		  } else {
		    update.callback = function () {
		      markFailedErrorBoundaryForHotReloading(fiber);
		    };
		  }

		  return update;
		}

		function attachPingListener(root, wakeable, lanes) {
		  // Attach a listener to the promise to "ping" the root and retry. But only if
		  // one does not already exist for the lanes we're currently rendering (which
		  // acts like a "thread ID" here).
		  var pingCache = root.pingCache;
		  var threadIDs;

		  if (pingCache === null) {
		    pingCache = root.pingCache = new PossiblyWeakMap$1();
		    threadIDs = new Set();
		    pingCache.set(wakeable, threadIDs);
		  } else {
		    threadIDs = pingCache.get(wakeable);

		    if (threadIDs === undefined) {
		      threadIDs = new Set();
		      pingCache.set(wakeable, threadIDs);
		    }
		  }

		  if (!threadIDs.has(lanes)) {
		    // Memoize using the thread ID to prevent redundant listeners.
		    threadIDs.add(lanes);
		    var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);
		    wakeable.then(ping, ping);
		  }
		}

		function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
		  // The source fiber did not complete.
		  sourceFiber.flags |= Incomplete; // Its effect list is no longer valid.

		  sourceFiber.firstEffect = sourceFiber.lastEffect = null;

		  if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
		    // This is a wakeable.
		    var wakeable = value;

		    if ((sourceFiber.mode & BlockingMode) === NoMode) {
		      // Reset the memoizedState to what it was before we attempted
		      // to render it.
		      var currentSource = sourceFiber.alternate;

		      if (currentSource) {
		        sourceFiber.updateQueue = currentSource.updateQueue;
		        sourceFiber.memoizedState = currentSource.memoizedState;
		        sourceFiber.lanes = currentSource.lanes;
		      } else {
		        sourceFiber.updateQueue = null;
		        sourceFiber.memoizedState = null;
		      }
		    }

		    var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.

		    var _workInProgress = returnFiber;

		    do {
		      if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
		        // Found the nearest boundary.
		        // Stash the promise on the boundary fiber. If the boundary times out, we'll
		        // attach another listener to flip the boundary back to its normal state.
		        var wakeables = _workInProgress.updateQueue;

		        if (wakeables === null) {
		          var updateQueue = new Set();
		          updateQueue.add(wakeable);
		          _workInProgress.updateQueue = updateQueue;
		        } else {
		          wakeables.add(wakeable);
		        } // If the boundary is outside of blocking mode, we should *not*
		        // suspend the commit. Pretend as if the suspended component rendered
		        // null and keep rendering. In the commit phase, we'll schedule a
		        // subsequent synchronous update to re-render the Suspense.
		        //
		        // Note: It doesn't matter whether the component that suspended was
		        // inside a blocking mode tree. If the Suspense is outside of it, we
		        // should *not* suspend the commit.


		        if ((_workInProgress.mode & BlockingMode) === NoMode) {
		          _workInProgress.flags |= DidCapture;
		          sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.
		          // But we shouldn't call any lifecycle methods or callbacks. Remove
		          // all lifecycle effect tags.

		          sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);

		          if (sourceFiber.tag === ClassComponent) {
		            var currentSourceFiber = sourceFiber.alternate;

		            if (currentSourceFiber === null) {
		              // This is a new mount. Change the tag so it's not mistaken for a
		              // completed class component. For example, we should not call
		              // componentWillUnmount if it is deleted.
		              sourceFiber.tag = IncompleteClassComponent;
		            } else {
		              // When we try rendering again, we should not reuse the current fiber,
		              // since it's known to be in an inconsistent state. Use a force update to
		              // prevent a bail out.
		              var update = createUpdate(NoTimestamp, SyncLane);
		              update.tag = ForceUpdate;
		              enqueueUpdate(sourceFiber, update);
		            }
		          } // The source fiber did not complete. Mark it with Sync priority to
		          // indicate that it still has pending work.


		          sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); // Exit without suspending.

		          return;
		        } // Confirmed that the boundary is in a concurrent mode tree. Continue
		        // with the normal suspend path.
		        //
		        // After this we'll use a set of heuristics to determine whether this
		        // render pass will run to completion or restart or "suspend" the commit.
		        // The actual logic for this is spread out in different places.
		        //
		        // This first principle is that if we're going to suspend when we complete
		        // a root, then we should also restart if we get an update or ping that
		        // might unsuspend it, and vice versa. The only reason to suspend is
		        // because you think you might want to restart before committing. However,
		        // it doesn't make sense to restart only while in the period we're suspended.
		        //
		        // Restarting too aggressively is also not good because it starves out any
		        // intermediate loading state. So we use heuristics to determine when.
		        // Suspense Heuristics
		        //
		        // If nothing threw a Promise or all the same fallbacks are already showing,
		        // then don't suspend/restart.
		        //
		        // If this is an initial render of a new tree of Suspense boundaries and
		        // those trigger a fallback, then don't suspend/restart. We want to ensure
		        // that we can show the initial loading state as quickly as possible.
		        //
		        // If we hit a "Delayed" case, such as when we'd switch from content back into
		        // a fallback, then we should always suspend/restart. Transitions apply
		        // to this case. If none is defined, JND is used instead.
		        //
		        // If we're already showing a fallback and it gets "retried", allowing us to show
		        // another level, but there's still an inner boundary that would show a fallback,
		        // then we suspend/restart for 500ms since the last time we showed a fallback
		        // anywhere in the tree. This effectively throttles progressive loading into a
		        // consistent train of commits. This also gives us an opportunity to restart to
		        // get to the completed state slightly earlier.
		        //
		        // If there's ambiguity due to batching it's resolved in preference of:
		        // 1) "delayed", 2) "initial render", 3) "retry".
		        //
		        // We want to ensure that a "busy" state doesn't get force committed. We want to
		        // ensure that new initial loading states can commit as soon as possible.


		        attachPingListener(root, wakeable, rootRenderLanes);
		        _workInProgress.flags |= ShouldCapture;
		        _workInProgress.lanes = rootRenderLanes;
		        return;
		      } // This boundary already captured during this render. Continue to the next
		      // boundary.


		      _workInProgress = _workInProgress.return;
		    } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
		    // TODO: Use invariant so the message is stripped in prod?


		    value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.');
		  } // We didn't find a boundary that could handle this type of exception. Start
		  // over and traverse parent path again, this time treating the exception
		  // as an error.


		  renderDidError();
		  value = createCapturedValue(value, sourceFiber);
		  var workInProgress = returnFiber;

		  do {
		    switch (workInProgress.tag) {
		      case HostRoot:
		        {
		          var _errorInfo = value;
		          workInProgress.flags |= ShouldCapture;
		          var lane = pickArbitraryLane(rootRenderLanes);
		          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);

		          var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);

		          enqueueCapturedUpdate(workInProgress, _update);
		          return;
		        }

		      case ClassComponent:
		        // Capture and retry
		        var errorInfo = value;
		        var ctor = workInProgress.type;
		        var instance = workInProgress.stateNode;

		        if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
		          workInProgress.flags |= ShouldCapture;

		          var _lane = pickArbitraryLane(rootRenderLanes);

		          workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state

		          var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);

		          enqueueCapturedUpdate(workInProgress, _update2);
		          return;
		        }

		        break;
		    }

		    workInProgress = workInProgress.return;
		  } while (workInProgress !== null);
		}

		var didWarnAboutUndefinedSnapshotBeforeUpdate = null;

		{
		  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
		}

		var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;

		var callComponentWillUnmountWithTimer = function (current, instance) {
		  instance.props = current.memoizedProps;
		  instance.state = current.memoizedState;

		  {
		    instance.componentWillUnmount();
		  }
		}; // Capture errors so they don't interrupt unmounting.


		function safelyCallComponentWillUnmount(current, instance) {
		  {
		    invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);

		    if (hasCaughtError()) {
		      var unmountError = clearCaughtError();
		      captureCommitPhaseError(current, unmountError);
		    }
		  }
		}

		function safelyDetachRef(current) {
		  var ref = current.ref;

		  if (ref !== null) {
		    if (typeof ref === 'function') {
		      {
		        invokeGuardedCallback(null, ref, null, null);

		        if (hasCaughtError()) {
		          var refError = clearCaughtError();
		          captureCommitPhaseError(current, refError);
		        }
		      }
		    } else {
		      ref.current = null;
		    }
		  }
		}

		function safelyCallDestroy(current, destroy) {
		  {
		    invokeGuardedCallback(null, destroy, null);

		    if (hasCaughtError()) {
		      var error = clearCaughtError();
		      captureCommitPhaseError(current, error);
		    }
		  }
		}

		function commitBeforeMutationLifeCycles(current, finishedWork) {
		  switch (finishedWork.tag) {
		    case FunctionComponent:
		    case ForwardRef:
		    case SimpleMemoComponent:
		    case Block:
		      {
		        return;
		      }

		    case ClassComponent:
		      {
		        if (finishedWork.flags & Snapshot) {
		          if (current !== null) {
		            var prevProps = current.memoizedProps;
		            var prevState = current.memoizedState;
		            var instance = finishedWork.stateNode; // We could update instance props and state here,
		            // but instead we rely on them being set during last render.
		            // TODO: revisit this when we implement resuming.

		            {
		              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
		                if (instance.props !== finishedWork.memoizedProps) {
		                  error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }

		                if (instance.state !== finishedWork.memoizedState) {
		                  error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }
		              }
		            }

		            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);

		            {
		              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;

		              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
		                didWarnSet.add(finishedWork.type);

		                error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
		              }
		            }

		            instance.__reactInternalSnapshotBeforeUpdate = snapshot;
		          }
		        }

		        return;
		      }

		    case HostRoot:
		      {
		        {
		          if (finishedWork.flags & Snapshot) {
		            var root = finishedWork.stateNode;
		            clearContainer(root.containerInfo);
		          }
		        }

		        return;
		      }

		    case HostComponent:
		    case HostText:
		    case HostPortal:
		    case IncompleteClassComponent:
		      // Nothing to do for these component types
		      return;
		  }

		  {
		    {
		      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function commitHookEffectListUnmount(tag, finishedWork) {
		  var updateQueue = finishedWork.updateQueue;
		  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

		  if (lastEffect !== null) {
		    var firstEffect = lastEffect.next;
		    var effect = firstEffect;

		    do {
		      if ((effect.tag & tag) === tag) {
		        // Unmount
		        var destroy = effect.destroy;
		        effect.destroy = undefined;

		        if (destroy !== undefined) {
		          destroy();
		        }
		      }

		      effect = effect.next;
		    } while (effect !== firstEffect);
		  }
		}

		function commitHookEffectListMount(tag, finishedWork) {
		  var updateQueue = finishedWork.updateQueue;
		  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

		  if (lastEffect !== null) {
		    var firstEffect = lastEffect.next;
		    var effect = firstEffect;

		    do {
		      if ((effect.tag & tag) === tag) {
		        // Mount
		        var create = effect.create;
		        effect.destroy = create();

		        {
		          var destroy = effect.destroy;

		          if (destroy !== undefined && typeof destroy !== 'function') {
		            var addendum = void 0;

		            if (destroy === null) {
		              addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
		            } else if (typeof destroy.then === 'function') {
		              addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + '  async function fetchData() {\n' + '    // You can await here\n' + '    const response = await MyAPI.getData(someId);\n' + '    // ...\n' + '  }\n' + '  fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';
		            } else {
		              addendum = ' You returned: ' + destroy;
		            }

		            error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s', addendum);
		          }
		        }
		      }

		      effect = effect.next;
		    } while (effect !== firstEffect);
		  }
		}

		function schedulePassiveEffects(finishedWork) {
		  var updateQueue = finishedWork.updateQueue;
		  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

		  if (lastEffect !== null) {
		    var firstEffect = lastEffect.next;
		    var effect = firstEffect;

		    do {
		      var _effect = effect,
		          next = _effect.next,
		          tag = _effect.tag;

		      if ((tag & Passive$1) !== NoFlags$1 && (tag & HasEffect) !== NoFlags$1) {
		        enqueuePendingPassiveHookEffectUnmount(finishedWork, effect);
		        enqueuePendingPassiveHookEffectMount(finishedWork, effect);
		      }

		      effect = next;
		    } while (effect !== firstEffect);
		  }
		}

		function commitLifeCycles(finishedRoot, current, finishedWork, committedLanes) {
		  switch (finishedWork.tag) {
		    case FunctionComponent:
		    case ForwardRef:
		    case SimpleMemoComponent:
		    case Block:
		      {
		        // At this point layout effects have already been destroyed (during mutation phase).
		        // This is done to prevent sibling component effects from interfering with each other,
		        // e.g. a destroy function in one component should never override a ref set
		        // by a create function in another component during the same commit.
		        {
		          commitHookEffectListMount(Layout | HasEffect, finishedWork);
		        }

		        schedulePassiveEffects(finishedWork);
		        return;
		      }

		    case ClassComponent:
		      {
		        var instance = finishedWork.stateNode;

		        if (finishedWork.flags & Update) {
		          if (current === null) {
		            // We could update instance props and state here,
		            // but instead we rely on them being set during last render.
		            // TODO: revisit this when we implement resuming.
		            {
		              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
		                if (instance.props !== finishedWork.memoizedProps) {
		                  error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }

		                if (instance.state !== finishedWork.memoizedState) {
		                  error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }
		              }
		            }

		            {
		              instance.componentDidMount();
		            }
		          } else {
		            var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
		            var prevState = current.memoizedState; // We could update instance props and state here,
		            // but instead we rely on them being set during last render.
		            // TODO: revisit this when we implement resuming.

		            {
		              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
		                if (instance.props !== finishedWork.memoizedProps) {
		                  error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }

		                if (instance.state !== finishedWork.memoizedState) {
		                  error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		                }
		              }
		            }

		            {
		              instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
		            }
		          }
		        } // TODO: I think this is now always non-null by the time it reaches the
		        // commit phase. Consider removing the type check.


		        var updateQueue = finishedWork.updateQueue;

		        if (updateQueue !== null) {
		          {
		            if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
		              if (instance.props !== finishedWork.memoizedProps) {
		                error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		              }

		              if (instance.state !== finishedWork.memoizedState) {
		                error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
		              }
		            }
		          } // We could update instance props and state here,
		          // but instead we rely on them being set during last render.
		          // TODO: revisit this when we implement resuming.


		          commitUpdateQueue(finishedWork, updateQueue, instance);
		        }

		        return;
		      }

		    case HostRoot:
		      {
		        // TODO: I think this is now always non-null by the time it reaches the
		        // commit phase. Consider removing the type check.
		        var _updateQueue = finishedWork.updateQueue;

		        if (_updateQueue !== null) {
		          var _instance = null;

		          if (finishedWork.child !== null) {
		            switch (finishedWork.child.tag) {
		              case HostComponent:
		                _instance = getPublicInstance(finishedWork.child.stateNode);
		                break;

		              case ClassComponent:
		                _instance = finishedWork.child.stateNode;
		                break;
		            }
		          }

		          commitUpdateQueue(finishedWork, _updateQueue, _instance);
		        }

		        return;
		      }

		    case HostComponent:
		      {
		        var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
		        // (eg DOM renderer may schedule auto-focus for inputs and form controls).
		        // These effects should only be committed when components are first mounted,
		        // aka when there is no current/alternate.

		        if (current === null && finishedWork.flags & Update) {
		          var type = finishedWork.type;
		          var props = finishedWork.memoizedProps;
		          commitMount(_instance2, type, props);
		        }

		        return;
		      }

		    case HostText:
		      {
		        // We have no life-cycles associated with text.
		        return;
		      }

		    case HostPortal:
		      {
		        // We have no life-cycles associated with portals.
		        return;
		      }

		    case Profiler:
		      {
		        {
		          var _finishedWork$memoize2 = finishedWork.memoizedProps;
		              _finishedWork$memoize2.onCommit;
		              var onRender = _finishedWork$memoize2.onRender;
		          finishedWork.stateNode.effectDuration;
		          var commitTime = getCommitTime();

		          if (typeof onRender === 'function') {
		            {
		              onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime, finishedRoot.memoizedInteractions);
		            }
		          }
		        }

		        return;
		      }

		    case SuspenseComponent:
		      {
		        commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
		        return;
		      }

		    case SuspenseListComponent:
		    case IncompleteClassComponent:
		    case FundamentalComponent:
		    case ScopeComponent:
		    case OffscreenComponent:
		    case LegacyHiddenComponent:
		      return;
		  }

		  {
		    {
		      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function hideOrUnhideAllChildren(finishedWork, isHidden) {
		  {
		    // We only have the top Fiber that was inserted but we need to recurse down its
		    // children to find all the terminal nodes.
		    var node = finishedWork;

		    while (true) {
		      if (node.tag === HostComponent) {
		        var instance = node.stateNode;

		        if (isHidden) {
		          hideInstance(instance);
		        } else {
		          unhideInstance(node.stateNode, node.memoizedProps);
		        }
		      } else if (node.tag === HostText) {
		        var _instance3 = node.stateNode;

		        if (isHidden) {
		          hideTextInstance(_instance3);
		        } else {
		          unhideTextInstance(_instance3, node.memoizedProps);
		        }
		      } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {
		        node.child.return = node;
		        node = node.child;
		        continue;
		      }

		      if (node === finishedWork) {
		        return;
		      }

		      while (node.sibling === null) {
		        if (node.return === null || node.return === finishedWork) {
		          return;
		        }

		        node = node.return;
		      }

		      node.sibling.return = node.return;
		      node = node.sibling;
		    }
		  }
		}

		function commitAttachRef(finishedWork) {
		  var ref = finishedWork.ref;

		  if (ref !== null) {
		    var instance = finishedWork.stateNode;
		    var instanceToUse;

		    switch (finishedWork.tag) {
		      case HostComponent:
		        instanceToUse = getPublicInstance(instance);
		        break;

		      default:
		        instanceToUse = instance;
		    } // Moved outside to ensure DCE works with this flag

		    if (typeof ref === 'function') {
		      ref(instanceToUse);
		    } else {
		      {
		        if (!ref.hasOwnProperty('current')) {
		          error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentName(finishedWork.type));
		        }
		      }

		      ref.current = instanceToUse;
		    }
		  }
		}

		function commitDetachRef(current) {
		  var currentRef = current.ref;

		  if (currentRef !== null) {
		    if (typeof currentRef === 'function') {
		      currentRef(null);
		    } else {
		      currentRef.current = null;
		    }
		  }
		} // User-originating errors (lifecycles and refs) should not interrupt
		// deletion, so don't let them throw. Host-originating errors should
		// interrupt deletion, so it's okay


		function commitUnmount(finishedRoot, current, renderPriorityLevel) {
		  onCommitUnmount(current);

		  switch (current.tag) {
		    case FunctionComponent:
		    case ForwardRef:
		    case MemoComponent:
		    case SimpleMemoComponent:
		    case Block:
		      {
		        var updateQueue = current.updateQueue;

		        if (updateQueue !== null) {
		          var lastEffect = updateQueue.lastEffect;

		          if (lastEffect !== null) {
		            var firstEffect = lastEffect.next;
		            var effect = firstEffect;

		            do {
		              var _effect2 = effect,
		                  destroy = _effect2.destroy,
		                  tag = _effect2.tag;

		              if (destroy !== undefined) {
		                if ((tag & Passive$1) !== NoFlags$1) {
		                  enqueuePendingPassiveHookEffectUnmount(current, effect);
		                } else {
		                  {
		                    safelyCallDestroy(current, destroy);
		                  }
		                }
		              }

		              effect = effect.next;
		            } while (effect !== firstEffect);
		          }
		        }

		        return;
		      }

		    case ClassComponent:
		      {
		        safelyDetachRef(current);
		        var instance = current.stateNode;

		        if (typeof instance.componentWillUnmount === 'function') {
		          safelyCallComponentWillUnmount(current, instance);
		        }

		        return;
		      }

		    case HostComponent:
		      {
		        safelyDetachRef(current);
		        return;
		      }

		    case HostPortal:
		      {
		        // TODO: this is recursive.
		        // We are also not using this parent because
		        // the portal will get pushed immediately.
		        {
		          unmountHostComponents(finishedRoot, current);
		        }

		        return;
		      }

		    case FundamentalComponent:
		      {

		        return;
		      }

		    case DehydratedFragment:
		      {

		        return;
		      }

		    case ScopeComponent:
		      {

		        return;
		      }
		  }
		}

		function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
		  // While we're inside a removed host node we don't want to call
		  // removeChild on the inner nodes because they're removed by the top
		  // call anyway. We also want to call componentWillUnmount on all
		  // composites before this host node is removed from the tree. Therefore
		  // we do an inner loop while we're still inside the host node.
		  var node = root;

		  while (true) {
		    commitUnmount(finishedRoot, node); // Visit children because they may contain more composite or host nodes.
		    // Skip portals because commitUnmount() currently visits them recursively.

		    if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
		    // If we don't use mutation we drill down into portals here instead.
		     node.tag !== HostPortal)) {
		      node.child.return = node;
		      node = node.child;
		      continue;
		    }

		    if (node === root) {
		      return;
		    }

		    while (node.sibling === null) {
		      if (node.return === null || node.return === root) {
		        return;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  }
		}

		function detachFiberMutation(fiber) {
		  // Cut off the return pointers to disconnect it from the tree. Ideally, we
		  // should clear the child pointer of the parent alternate to let this
		  // get GC:ed but we don't know which for sure which parent is the current
		  // one so we'll settle for GC:ing the subtree of this child. This child
		  // itself will be GC:ed when the parent updates the next time.
		  // Note: we cannot null out sibling here, otherwise it can cause issues
		  // with findDOMNode and how it requires the sibling field to carry out
		  // traversal in a later effect. See PR #16820. We now clear the sibling
		  // field after effects, see: detachFiberAfterEffects.
		  //
		  // Don't disconnect stateNode now; it will be detached in detachFiberAfterEffects.
		  // It may be required if the current component is an error boundary,
		  // and one of its descendants throws while unmounting a passive effect.
		  fiber.alternate = null;
		  fiber.child = null;
		  fiber.dependencies = null;
		  fiber.firstEffect = null;
		  fiber.lastEffect = null;
		  fiber.memoizedProps = null;
		  fiber.memoizedState = null;
		  fiber.pendingProps = null;
		  fiber.return = null;
		  fiber.updateQueue = null;

		  {
		    fiber._debugOwner = null;
		  }
		}

		function getHostParentFiber(fiber) {
		  var parent = fiber.return;

		  while (parent !== null) {
		    if (isHostParent(parent)) {
		      return parent;
		    }

		    parent = parent.return;
		  }

		  {
		    {
		      throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function isHostParent(fiber) {
		  return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
		}

		function getHostSibling(fiber) {
		  // We're going to search forward into the tree until we find a sibling host
		  // node. Unfortunately, if multiple insertions are done in a row we have to
		  // search past them. This leads to exponential search for the next sibling.
		  // TODO: Find a more efficient way to do this.
		  var node = fiber;

		  siblings: while (true) {
		    // If we didn't find anything, let's try the next sibling.
		    while (node.sibling === null) {
		      if (node.return === null || isHostParent(node.return)) {
		        // If we pop out of the root or hit the parent the fiber we are the
		        // last sibling.
		        return null;
		      }

		      node = node.return;
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;

		    while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
		      // If it is not host node and, we might have a host node inside it.
		      // Try to search down until we find one.
		      if (node.flags & Placement) {
		        // If we don't have a child, try the siblings instead.
		        continue siblings;
		      } // If we don't have a child, try the siblings instead.
		      // We also skip portals because they are not part of this host tree.


		      if (node.child === null || node.tag === HostPortal) {
		        continue siblings;
		      } else {
		        node.child.return = node;
		        node = node.child;
		      }
		    } // Check if this host node is stable or about to be placed.


		    if (!(node.flags & Placement)) {
		      // Found it!
		      return node.stateNode;
		    }
		  }
		}

		function commitPlacement(finishedWork) {


		  var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.

		  var parent;
		  var isContainer;
		  var parentStateNode = parentFiber.stateNode;

		  switch (parentFiber.tag) {
		    case HostComponent:
		      parent = parentStateNode;
		      isContainer = false;
		      break;

		    case HostRoot:
		      parent = parentStateNode.containerInfo;
		      isContainer = true;
		      break;

		    case HostPortal:
		      parent = parentStateNode.containerInfo;
		      isContainer = true;
		      break;

		    case FundamentalComponent:

		    // eslint-disable-next-line-no-fallthrough

		    default:
		      {
		        {
		          throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
		        }
		      }

		  }

		  if (parentFiber.flags & ContentReset) {
		    // Reset the text content of the parent before doing any insertions
		    resetTextContent(parent); // Clear ContentReset from the effect tag

		    parentFiber.flags &= ~ContentReset;
		  }

		  var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
		  // children to find all the terminal nodes.

		  if (isContainer) {
		    insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
		  } else {
		    insertOrAppendPlacementNode(finishedWork, before, parent);
		  }
		}

		function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
		  var tag = node.tag;
		  var isHost = tag === HostComponent || tag === HostText;

		  if (isHost || enableFundamentalAPI ) {
		    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

		    if (before) {
		      insertInContainerBefore(parent, stateNode, before);
		    } else {
		      appendChildToContainer(parent, stateNode);
		    }
		  } else if (tag === HostPortal) ; else {
		    var child = node.child;

		    if (child !== null) {
		      insertOrAppendPlacementNodeIntoContainer(child, before, parent);
		      var sibling = child.sibling;

		      while (sibling !== null) {
		        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
		        sibling = sibling.sibling;
		      }
		    }
		  }
		}

		function insertOrAppendPlacementNode(node, before, parent) {
		  var tag = node.tag;
		  var isHost = tag === HostComponent || tag === HostText;

		  if (isHost || enableFundamentalAPI ) {
		    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

		    if (before) {
		      insertBefore(parent, stateNode, before);
		    } else {
		      appendChild(parent, stateNode);
		    }
		  } else if (tag === HostPortal) ; else {
		    var child = node.child;

		    if (child !== null) {
		      insertOrAppendPlacementNode(child, before, parent);
		      var sibling = child.sibling;

		      while (sibling !== null) {
		        insertOrAppendPlacementNode(sibling, before, parent);
		        sibling = sibling.sibling;
		      }
		    }
		  }
		}

		function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
		  // We only have the top Fiber that was deleted but we need to recurse down its
		  // children to find all the terminal nodes.
		  var node = current; // Each iteration, currentParent is populated with node's host parent if not
		  // currentParentIsValid.

		  var currentParentIsValid = false; // Note: these two variables *must* always be updated together.

		  var currentParent;
		  var currentParentIsContainer;

		  while (true) {
		    if (!currentParentIsValid) {
		      var parent = node.return;

		      findParent: while (true) {
		        if (!(parent !== null)) {
		          {
		            throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
		          }
		        }

		        var parentStateNode = parent.stateNode;

		        switch (parent.tag) {
		          case HostComponent:
		            currentParent = parentStateNode;
		            currentParentIsContainer = false;
		            break findParent;

		          case HostRoot:
		            currentParent = parentStateNode.containerInfo;
		            currentParentIsContainer = true;
		            break findParent;

		          case HostPortal:
		            currentParent = parentStateNode.containerInfo;
		            currentParentIsContainer = true;
		            break findParent;

		        }

		        parent = parent.return;
		      }

		      currentParentIsValid = true;
		    }

		    if (node.tag === HostComponent || node.tag === HostText) {
		      commitNestedUnmounts(finishedRoot, node); // After all the children have unmounted, it is now safe to remove the
		      // node from the tree.

		      if (currentParentIsContainer) {
		        removeChildFromContainer(currentParent, node.stateNode);
		      } else {
		        removeChild(currentParent, node.stateNode);
		      } // Don't visit children because we already visited them.

		    } else if (node.tag === HostPortal) {
		      if (node.child !== null) {
		        // When we go into a portal, it becomes the parent to remove from.
		        // We will reassign it back when we pop the portal on the way up.
		        currentParent = node.stateNode.containerInfo;
		        currentParentIsContainer = true; // Visit children because portals might contain host components.

		        node.child.return = node;
		        node = node.child;
		        continue;
		      }
		    } else {
		      commitUnmount(finishedRoot, node); // Visit children because we may find more host components below.

		      if (node.child !== null) {
		        node.child.return = node;
		        node = node.child;
		        continue;
		      }
		    }

		    if (node === current) {
		      return;
		    }

		    while (node.sibling === null) {
		      if (node.return === null || node.return === current) {
		        return;
		      }

		      node = node.return;

		      if (node.tag === HostPortal) {
		        // When we go out of the portal, we need to restore the parent.
		        // Since we don't keep a stack of them, we will search for it.
		        currentParentIsValid = false;
		      }
		    }

		    node.sibling.return = node.return;
		    node = node.sibling;
		  }
		}

		function commitDeletion(finishedRoot, current, renderPriorityLevel) {
		  {
		    // Recursively delete all host nodes from the parent.
		    // Detach refs and call componentWillUnmount() on the whole subtree.
		    unmountHostComponents(finishedRoot, current);
		  }

		  var alternate = current.alternate;
		  detachFiberMutation(current);

		  if (alternate !== null) {
		    detachFiberMutation(alternate);
		  }
		}

		function commitWork(current, finishedWork) {

		  switch (finishedWork.tag) {
		    case FunctionComponent:
		    case ForwardRef:
		    case MemoComponent:
		    case SimpleMemoComponent:
		    case Block:
		      {
		        // Layout effects are destroyed during the mutation phase so that all
		        // destroy functions for all fibers are called before any create functions.
		        // This prevents sibling component effects from interfering with each other,
		        // e.g. a destroy function in one component should never override a ref set
		        // by a create function in another component during the same commit.
		        {
		          commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
		        }

		        return;
		      }

		    case ClassComponent:
		      {
		        return;
		      }

		    case HostComponent:
		      {
		        var instance = finishedWork.stateNode;

		        if (instance != null) {
		          // Commit the work prepared earlier.
		          var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
		          // as the newProps. The updatePayload will contain the real change in
		          // this case.

		          var oldProps = current !== null ? current.memoizedProps : newProps;
		          var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.

		          var updatePayload = finishedWork.updateQueue;
		          finishedWork.updateQueue = null;

		          if (updatePayload !== null) {
		            commitUpdate(instance, updatePayload, type, oldProps, newProps);
		          }
		        }

		        return;
		      }

		    case HostText:
		      {
		        if (!(finishedWork.stateNode !== null)) {
		          {
		            throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
		          }
		        }

		        var textInstance = finishedWork.stateNode;
		        var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
		        // as the newProps. The updatePayload will contain the real change in
		        // this case.

		        var oldText = current !== null ? current.memoizedProps : newText;
		        commitTextUpdate(textInstance, oldText, newText);
		        return;
		      }

		    case HostRoot:
		      {
		        {
		          var _root = finishedWork.stateNode;

		          if (_root.hydrate) {
		            // We've just hydrated. No need to hydrate again.
		            _root.hydrate = false;
		            commitHydratedContainer(_root.containerInfo);
		          }
		        }

		        return;
		      }

		    case Profiler:
		      {
		        return;
		      }

		    case SuspenseComponent:
		      {
		        commitSuspenseComponent(finishedWork);
		        attachSuspenseRetryListeners(finishedWork);
		        return;
		      }

		    case SuspenseListComponent:
		      {
		        attachSuspenseRetryListeners(finishedWork);
		        return;
		      }

		    case IncompleteClassComponent:
		      {
		        return;
		      }

		    case FundamentalComponent:
		      {

		        break;
		      }

		    case ScopeComponent:
		      {

		        break;
		      }

		    case OffscreenComponent:
		    case LegacyHiddenComponent:
		      {
		        var newState = finishedWork.memoizedState;
		        var isHidden = newState !== null;
		        hideOrUnhideAllChildren(finishedWork, isHidden);
		        return;
		      }
		  }

		  {
		    {
		      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  }
		}

		function commitSuspenseComponent(finishedWork) {
		  var newState = finishedWork.memoizedState;

		  if (newState !== null) {
		    markCommitTimeOfFallback();

		    {
		      // Hide the Offscreen component that contains the primary children. TODO:
		      // Ideally, this effect would have been scheduled on the Offscreen fiber
		      // itself. That's how unhiding works: the Offscreen component schedules an
		      // effect on itself. However, in this case, the component didn't complete,
		      // so the fiber was never added to the effect list in the normal path. We
		      // could have appended it to the effect list in the Suspense component's
		      // second pass, but doing it this way is less complicated. This would be
		      // simpler if we got rid of the effect list and traversed the tree, like
		      // we're planning to do.
		      var primaryChildParent = finishedWork.child;
		      hideOrUnhideAllChildren(primaryChildParent, true);
		    }
		  }
		}

		function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {

		  var newState = finishedWork.memoizedState;

		  if (newState === null) {
		    var current = finishedWork.alternate;

		    if (current !== null) {
		      var prevState = current.memoizedState;

		      if (prevState !== null) {
		        var suspenseInstance = prevState.dehydrated;

		        if (suspenseInstance !== null) {
		          commitHydratedSuspenseInstance(suspenseInstance);
		        }
		      }
		    }
		  }
		}

		function attachSuspenseRetryListeners(finishedWork) {
		  // If this boundary just timed out, then it will have a set of wakeables.
		  // For each wakeable, attach a listener so that when it resolves, React
		  // attempts to re-render the boundary in the primary (pre-timeout) state.
		  var wakeables = finishedWork.updateQueue;

		  if (wakeables !== null) {
		    finishedWork.updateQueue = null;
		    var retryCache = finishedWork.stateNode;

		    if (retryCache === null) {
		      retryCache = finishedWork.stateNode = new PossiblyWeakSet();
		    }

		    wakeables.forEach(function (wakeable) {
		      // Memoize using the boundary fiber to prevent redundant listeners.
		      var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);

		      if (!retryCache.has(wakeable)) {
		        {
		          if (wakeable.__reactDoNotTraceInteractions !== true) {
		            retry = tracing.unstable_wrap(retry);
		          }
		        }

		        retryCache.add(wakeable);
		        wakeable.then(retry, retry);
		      }
		    });
		  }
		} // This function detects when a Suspense boundary goes from visible to hidden.
		// It returns false if the boundary is already hidden.
		// TODO: Use an effect tag.


		function isSuspenseBoundaryBeingHidden(current, finishedWork) {
		  if (current !== null) {
		    var oldState = current.memoizedState;

		    if (oldState === null || oldState.dehydrated !== null) {
		      var newState = finishedWork.memoizedState;
		      return newState !== null && newState.dehydrated === null;
		    }
		  }

		  return false;
		}

		function commitResetTextContent(current) {

		  resetTextContent(current.stateNode);
		}

		if (typeof Symbol === 'function' && Symbol.for) {
		  var symbolFor$1 = Symbol.for;
		  symbolFor$1('selector.component');
		  symbolFor$1('selector.has_pseudo_class');
		  symbolFor$1('selector.role');
		  symbolFor$1('selector.test_id');
		  symbolFor$1('selector.text');
		}
		var commitHooks = [];
		function onCommitRoot$1() {
		  {
		    commitHooks.forEach(function (commitHook) {
		      return commitHook();
		    });
		  }
		}

		var ceil = Math.ceil;
		var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
		    ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
		    IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
		var NoContext =
		/*             */
		0;
		var BatchedContext =
		/*               */
		1;
		var EventContext =
		/*                 */
		2;
		var DiscreteEventContext =
		/*         */
		4;
		var LegacyUnbatchedContext =
		/*       */
		8;
		var RenderContext =
		/*                */
		16;
		var CommitContext =
		/*                */
		32;
		var RetryAfterError =
		/*       */
		64;
		var RootIncomplete = 0;
		var RootFatalErrored = 1;
		var RootErrored = 2;
		var RootSuspended = 3;
		var RootSuspendedWithDelay = 4;
		var RootCompleted = 5; // Describes where we are in the React execution stack

		var executionContext = NoContext; // The root we're working on

		var workInProgressRoot = null; // The fiber we're working on

		var workInProgress = null; // The lanes we're rendering

		var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree
		// This is a superset of the lanes we started working on at the root. The only
		// case where it's different from `workInProgressRootRenderLanes` is when we
		// enter a subtree that is hidden and needs to be unhidden: Suspense and
		// Offscreen component.
		//
		// Most things in the work loop should deal with workInProgressRootRenderLanes.
		// Most things in begin/complete phases should deal with subtreeRenderLanes.

		var subtreeRenderLanes = NoLanes;
		var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.

		var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown

		var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's
		// slightly different than `renderLanes` because `renderLanes` can change as you
		// enter and exit an Offscreen tree. This value is the combination of all render
		// lanes for the entire render phase.

		var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only
		// includes unprocessed updates, not work in bailed out children.

		var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.

		var workInProgressRootUpdatedLanes = NoLanes; // Lanes that were pinged (in an interleaved event) during this render.

		var workInProgressRootPingedLanes = NoLanes;
		var mostRecentlyUpdatedRoot = null; // The most recent time we committed a fallback. This lets us ensure a train
		// model where we don't commit new loading states in too quick succession.

		var globalMostRecentFallbackTime = 0;
		var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering
		// more and prefer CPU suspense heuristics instead.

		var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU
		// suspense heuristics and opt out of rendering more content.

		var RENDER_TIMEOUT_MS = 500;

		function resetRenderTimer() {
		  workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;
		}

		function getRenderTargetTime() {
		  return workInProgressRootRenderTargetTime;
		}
		var nextEffect = null;
		var hasUncaughtError = false;
		var firstUncaughtError = null;
		var legacyErrorBoundariesThatAlreadyFailed = null;
		var rootDoesHavePassiveEffects = false;
		var rootWithPendingPassiveEffects = null;
		var pendingPassiveEffectsRenderPriority = NoPriority$1;
		var pendingPassiveEffectsLanes = NoLanes;
		var pendingPassiveHookEffectsMount = [];
		var pendingPassiveHookEffectsUnmount = [];
		var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates

		var NESTED_UPDATE_LIMIT = 50;
		var nestedUpdateCount = 0;
		var rootWithNestedUpdates = null;
		var NESTED_PASSIVE_UPDATE_LIMIT = 50;
		var nestedPassiveUpdateCount = 0; // Marks the need to reschedule pending interactions at these lanes
		// during the commit phase. This enables them to be traced across components
		// that spawn new work during render. E.g. hidden boundaries, suspended SSR
		// hydration or SuspenseList.
		// TODO: Can use a bitmask instead of an array

		var spawnedWorkDuringRender = null; // If two updates are scheduled within the same event, we should treat their
		// event times as simultaneous, even if the actual clock time has advanced
		// between the first and second call.

		var currentEventTime = NoTimestamp;
		var currentEventWipLanes = NoLanes;
		var currentEventPendingLanes = NoLanes; // Dev only flag that tracks if passive effects are currently being flushed.
		// We warn about state updates for unmounted components differently in this case.

		var isFlushingPassiveEffects = false;
		var focusedInstanceHandle = null;
		var shouldFireAfterActiveInstanceBlur = false;
		function getWorkInProgressRoot() {
		  return workInProgressRoot;
		}
		function requestEventTime() {
		  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
		    // We're inside React, so it's fine to read the actual time.
		    return now();
		  } // We're not inside React, so we may be in the middle of a browser event.


		  if (currentEventTime !== NoTimestamp) {
		    // Use the same start time for all updates until we enter React again.
		    return currentEventTime;
		  } // This is the first update since React yielded. Compute a new start time.


		  currentEventTime = now();
		  return currentEventTime;
		}
		function requestUpdateLane(fiber) {
		  // Special cases
		  var mode = fiber.mode;

		  if ((mode & BlockingMode) === NoMode) {
		    return SyncLane;
		  } else if ((mode & ConcurrentMode) === NoMode) {
		    return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
		  } // The algorithm for assigning an update to a lane should be stable for all
		  // updates at the same priority within the same event. To do this, the inputs
		  // to the algorithm must be the same. For example, we use the `renderLanes`
		  // to avoid choosing a lane that is already in the middle of rendering.
		  //
		  // However, the "included" lanes could be mutated in between updates in the
		  // same event, like if you perform an update inside `flushSync`. Or any other
		  // code path that might call `prepareFreshStack`.
		  //
		  // The trick we use is to cache the first of each of these inputs within an
		  // event. Then reset the cached values once we can be sure the event is over.
		  // Our heuristic for that is whenever we enter a concurrent work loop.
		  //
		  // We'll do the same for `currentEventPendingLanes` below.


		  if (currentEventWipLanes === NoLanes) {
		    currentEventWipLanes = workInProgressRootIncludedLanes;
		  }

		  var isTransition = requestCurrentTransition() !== NoTransition;

		  if (isTransition) {
		    if (currentEventPendingLanes !== NoLanes) {
		      currentEventPendingLanes = mostRecentlyUpdatedRoot !== null ? mostRecentlyUpdatedRoot.pendingLanes : NoLanes;
		    }

		    return findTransitionLane(currentEventWipLanes, currentEventPendingLanes);
		  } // TODO: Remove this dependency on the Scheduler priority.
		  // To do that, we're replacing it with an update lane priority.


		  var schedulerPriority = getCurrentPriorityLevel(); // The old behavior was using the priority level of the Scheduler.
		  // This couples React to the Scheduler internals, so we're replacing it
		  // with the currentUpdateLanePriority above. As an example of how this
		  // could be problematic, if we're not inside `Scheduler.runWithPriority`,
		  // then we'll get the priority of the current running Scheduler task,
		  // which is probably not what we want.

		  var lane;

		  if ( // TODO: Temporary. We're removing the concept of discrete updates.
		  (executionContext & DiscreteEventContext) !== NoContext && schedulerPriority === UserBlockingPriority$2) {
		    lane = findUpdateLane(InputDiscreteLanePriority, currentEventWipLanes);
		  } else {
		    var schedulerLanePriority = schedulerPriorityToLanePriority(schedulerPriority);

		    lane = findUpdateLane(schedulerLanePriority, currentEventWipLanes);
		  }

		  return lane;
		}

		function requestRetryLane(fiber) {
		  // This is a fork of `requestUpdateLane` designed specifically for Suspense
		  // "retries" — a special update that attempts to flip a Suspense boundary
		  // from its placeholder state to its primary/resolved state.
		  // Special cases
		  var mode = fiber.mode;

		  if ((mode & BlockingMode) === NoMode) {
		    return SyncLane;
		  } else if ((mode & ConcurrentMode) === NoMode) {
		    return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
		  } // See `requestUpdateLane` for explanation of `currentEventWipLanes`


		  if (currentEventWipLanes === NoLanes) {
		    currentEventWipLanes = workInProgressRootIncludedLanes;
		  }

		  return findRetryLane(currentEventWipLanes);
		}

		function scheduleUpdateOnFiber(fiber, lane, eventTime) {
		  checkForNestedUpdates();
		  warnAboutRenderPhaseUpdatesInDEV(fiber);
		  var root = markUpdateLaneFromFiberToRoot(fiber, lane);

		  if (root === null) {
		    warnAboutUpdateOnUnmountedFiberInDEV(fiber);
		    return null;
		  } // Mark that the root has a pending update.


		  markRootUpdated(root, lane, eventTime);

		  if (root === workInProgressRoot) {
		    // Received an update to a tree that's in the middle of rendering. Mark
		    // that there was an interleaved update work on this root. Unless the
		    // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
		    // phase update. In that case, we don't treat render phase updates as if
		    // they were interleaved, for backwards compat reasons.
		    {
		      workInProgressRootUpdatedLanes = mergeLanes(workInProgressRootUpdatedLanes, lane);
		    }

		    if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
		      // The root already suspended with a delay, which means this render
		      // definitely won't finish. Since we have a new update, let's mark it as
		      // suspended now, right before marking the incoming update. This has the
		      // effect of interrupting the current render and switching to the update.
		      // TODO: Make sure this doesn't override pings that happen while we've
		      // already started rendering.
		      markRootSuspended$1(root, workInProgressRootRenderLanes);
		    }
		  } // TODO: requestUpdateLanePriority also reads the priority. Pass the
		  // priority as an argument to that function and this one.


		  var priorityLevel = getCurrentPriorityLevel();

		  if (lane === SyncLane) {
		    if ( // Check if we're inside unbatchedUpdates
		    (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
		    (executionContext & (RenderContext | CommitContext)) === NoContext) {
		      // Register pending interactions on the root to avoid losing traced interaction data.
		      schedulePendingInteractions(root, lane); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
		      // root inside of batchedUpdates should be synchronous, but layout updates
		      // should be deferred until the end of the batch.

		      performSyncWorkOnRoot(root);
		    } else {
		      ensureRootIsScheduled(root, eventTime);
		      schedulePendingInteractions(root, lane);

		      if (executionContext === NoContext) {
		        // Flush the synchronous work now, unless we're already working or inside
		        // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
		        // scheduleCallbackForFiber to preserve the ability to schedule a callback
		        // without immediately flushing it. We only do this for user-initiated
		        // updates, to preserve historical behavior of legacy mode.
		        resetRenderTimer();
		        flushSyncCallbackQueue();
		      }
		    }
		  } else {
		    // Schedule a discrete update but only if it's not Sync.
		    if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
		    // discrete, even inside a discrete event.
		    priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority$1)) {
		      // This is the result of a discrete event. Track the lowest priority
		      // discrete update per root so we can flush them early, if needed.
		      if (rootsWithPendingDiscreteUpdates === null) {
		        rootsWithPendingDiscreteUpdates = new Set([root]);
		      } else {
		        rootsWithPendingDiscreteUpdates.add(root);
		      }
		    } // Schedule other updates after in case the callback is sync.


		    ensureRootIsScheduled(root, eventTime);
		    schedulePendingInteractions(root, lane);
		  } // We use this when assigning a lane for a transition inside
		  // `requestUpdateLane`. We assume it's the same as the root being updated,
		  // since in the common case of a single root app it probably is. If it's not
		  // the same root, then it's not a huge deal, we just might batch more stuff
		  // together more than necessary.


		  mostRecentlyUpdatedRoot = root;
		} // This is split into a separate function so we can mark a fiber with pending
		// work without treating it as a typical update that originates from an event;
		// e.g. retrying a Suspense boundary isn't an update, but it does schedule work
		// on a fiber.

		function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
		  // Update the source fiber's lanes
		  sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
		  var alternate = sourceFiber.alternate;

		  if (alternate !== null) {
		    alternate.lanes = mergeLanes(alternate.lanes, lane);
		  }

		  {
		    if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {
		      warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
		    }
		  } // Walk the parent path to the root and update the child expiration time.


		  var node = sourceFiber;
		  var parent = sourceFiber.return;

		  while (parent !== null) {
		    parent.childLanes = mergeLanes(parent.childLanes, lane);
		    alternate = parent.alternate;

		    if (alternate !== null) {
		      alternate.childLanes = mergeLanes(alternate.childLanes, lane);
		    } else {
		      {
		        if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {
		          warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
		        }
		      }
		    }

		    node = parent;
		    parent = parent.return;
		  }

		  if (node.tag === HostRoot) {
		    var root = node.stateNode;
		    return root;
		  } else {
		    return null;
		  }
		} // Use this function to schedule a task for a root. There's only one task per
		// root; if a task was already scheduled, we'll check to make sure the priority
		// of the existing task is the same as the priority of the next level that the
		// root has work on. This function is called on every update, and right before
		// exiting a task.


		function ensureRootIsScheduled(root, currentTime) {
		  var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as
		  // expired so we know to work on those next.

		  markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.

		  var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); // This returns the priority level computed during the `getNextLanes` call.

		  var newCallbackPriority = returnNextLanesPriority();

		  if (nextLanes === NoLanes) {
		    // Special case: There's nothing to work on.
		    if (existingCallbackNode !== null) {
		      cancelCallback(existingCallbackNode);
		      root.callbackNode = null;
		      root.callbackPriority = NoLanePriority;
		    }

		    return;
		  } // Check if there's an existing task. We may be able to reuse it.


		  if (existingCallbackNode !== null) {
		    var existingCallbackPriority = root.callbackPriority;

		    if (existingCallbackPriority === newCallbackPriority) {
		      // The priority hasn't changed. We can reuse the existing task. Exit.
		      return;
		    } // The priority changed. Cancel the existing callback. We'll schedule a new
		    // one below.


		    cancelCallback(existingCallbackNode);
		  } // Schedule a new callback.


		  var newCallbackNode;

		  if (newCallbackPriority === SyncLanePriority) {
		    // Special case: Sync React callbacks are scheduled on a special
		    // internal queue
		    newCallbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
		  } else if (newCallbackPriority === SyncBatchedLanePriority) {
		    newCallbackNode = scheduleCallback(ImmediatePriority$1, performSyncWorkOnRoot.bind(null, root));
		  } else {
		    var schedulerPriorityLevel = lanePriorityToSchedulerPriority(newCallbackPriority);
		    newCallbackNode = scheduleCallback(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));
		  }

		  root.callbackPriority = newCallbackPriority;
		  root.callbackNode = newCallbackNode;
		} // This is the entry point for every concurrent task, i.e. anything that
		// goes through Scheduler.


		function performConcurrentWorkOnRoot(root) {
		  // Since we know we're in a React event, we can clear the current
		  // event time. The next update will compute a new event time.
		  currentEventTime = NoTimestamp;
		  currentEventWipLanes = NoLanes;
		  currentEventPendingLanes = NoLanes;

		  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
		    {
		      throw Error( "Should not already be working." );
		    }
		  } // Flush any pending passive effects before deciding which lanes to work on,
		  // in case they schedule additional work.


		  var originalCallbackNode = root.callbackNode;
		  var didFlushPassiveEffects = flushPassiveEffects();

		  if (didFlushPassiveEffects) {
		    // Something in the passive effect phase may have canceled the current task.
		    // Check if the task node for this root was changed.
		    if (root.callbackNode !== originalCallbackNode) {
		      // The current task was canceled. Exit. We don't need to call
		      // `ensureRootIsScheduled` because the check above implies either that
		      // there's a new task, or that there's no remaining work on this root.
		      return null;
		    }
		  } // Determine the next expiration time to work on, using the fields stored
		  // on the root.


		  var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);

		  if (lanes === NoLanes) {
		    // Defensive coding. This is never expected to happen.
		    return null;
		  }

		  var exitStatus = renderRootConcurrent(root, lanes);

		  if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
		    // The render included lanes that were updated during the render phase.
		    // For example, when unhiding a hidden tree, we include all the lanes
		    // that were previously skipped when the tree was hidden. That set of
		    // lanes is a superset of the lanes we started rendering with.
		    //
		    // So we'll throw out the current work and restart.
		    prepareFreshStack(root, NoLanes);
		  } else if (exitStatus !== RootIncomplete) {
		    if (exitStatus === RootErrored) {
		      executionContext |= RetryAfterError; // If an error occurred during hydration,
		      // discard server response and fall back to client side render.

		      if (root.hydrate) {
		        root.hydrate = false;
		        clearContainer(root.containerInfo);
		      } // If something threw an error, try rendering one more time. We'll render
		      // synchronously to block concurrent data mutations, and we'll includes
		      // all pending updates are included. If it still fails after the second
		      // attempt, we'll give up and commit the resulting tree.


		      lanes = getLanesToRetrySynchronouslyOnError(root);

		      if (lanes !== NoLanes) {
		        exitStatus = renderRootSync(root, lanes);
		      }
		    }

		    if (exitStatus === RootFatalErrored) {
		      var fatalError = workInProgressRootFatalError;
		      prepareFreshStack(root, NoLanes);
		      markRootSuspended$1(root, lanes);
		      ensureRootIsScheduled(root, now());
		      throw fatalError;
		    } // We now have a consistent tree. The next step is either to commit it,
		    // or, if something suspended, wait to commit it after a timeout.


		    var finishedWork = root.current.alternate;
		    root.finishedWork = finishedWork;
		    root.finishedLanes = lanes;
		    finishConcurrentRender(root, exitStatus, lanes);
		  }

		  ensureRootIsScheduled(root, now());

		  if (root.callbackNode === originalCallbackNode) {
		    // The task node scheduled for this root is the same one that's
		    // currently executed. Need to return a continuation.
		    return performConcurrentWorkOnRoot.bind(null, root);
		  }

		  return null;
		}

		function finishConcurrentRender(root, exitStatus, lanes) {
		  switch (exitStatus) {
		    case RootIncomplete:
		    case RootFatalErrored:
		      {
		        {
		          {
		            throw Error( "Root did not complete. This is a bug in React." );
		          }
		        }
		      }
		    // Flow knows about invariant, so it complains if I add a break
		    // statement, but eslint doesn't know about invariant, so it complains
		    // if I do. eslint-disable-next-line no-fallthrough

		    case RootErrored:
		      {
		        // We should have already attempted to retry this tree. If we reached
		        // this point, it errored again. Commit it.
		        commitRoot(root);
		        break;
		      }

		    case RootSuspended:
		      {
		        markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we
		        // should immediately commit it or wait a bit.

		        if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
		        !shouldForceFlushFallbacksInDEV()) {
		          // This render only included retries, no updates. Throttle committing
		          // retries so that we don't show too many loading states too quickly.
		          var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.

		          if (msUntilTimeout > 10) {
		            var nextLanes = getNextLanes(root, NoLanes);

		            if (nextLanes !== NoLanes) {
		              // There's additional work on this root.
		              break;
		            }

		            var suspendedLanes = root.suspendedLanes;

		            if (!isSubsetOfLanes(suspendedLanes, lanes)) {
		              // We should prefer to render the fallback of at the last
		              // suspended level. Ping the last suspended level to try
		              // rendering it again.
		              // FIXME: What if the suspended lanes are Idle? Should not restart.
		              requestEventTime();
		              markRootPinged(root, suspendedLanes);
		              break;
		            } // The render is suspended, it hasn't timed out, and there's no
		            // lower priority work to do. Instead of committing the fallback
		            // immediately, wait for more data to arrive.


		            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
		            break;
		          }
		        } // The work expired. Commit immediately.


		        commitRoot(root);
		        break;
		      }

		    case RootSuspendedWithDelay:
		      {
		        markRootSuspended$1(root, lanes);

		        if (includesOnlyTransitions(lanes)) {
		          // This is a transition, so we should exit without committing a
		          // placeholder and without scheduling a timeout. Delay indefinitely
		          // until we receive more data.
		          break;
		        }

		        {
		          // This is not a transition, but we did trigger an avoided state.
		          // Schedule a placeholder to display after a short delay, using the Just
		          // Noticeable Difference.
		          // TODO: Is the JND optimization worth the added complexity? If this is
		          // the only reason we track the event time, then probably not.
		          // Consider removing.
		          var mostRecentEventTime = getMostRecentEventTime(root, lanes);
		          var eventTimeMs = mostRecentEventTime;
		          var timeElapsedMs = now() - eventTimeMs;

		          var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.


		          if (_msUntilTimeout > 10) {
		            // Instead of committing the fallback immediately, wait for more data
		            // to arrive.
		            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
		            break;
		          }
		        } // Commit the placeholder.


		        commitRoot(root);
		        break;
		      }

		    case RootCompleted:
		      {
		        // The work completed. Ready to commit.
		        commitRoot(root);
		        break;
		      }

		    default:
		      {
		        {
		          {
		            throw Error( "Unknown root exit status." );
		          }
		        }
		      }
		  }
		}

		function markRootSuspended$1(root, suspendedLanes) {
		  // When suspending, we should always exclude lanes that were pinged or (more
		  // rarely, since we try to avoid it) updated during the render phase.
		  // TODO: Lol maybe there's a better way to factor this besides this
		  // obnoxiously named function :)
		  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
		  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootUpdatedLanes);
		  markRootSuspended(root, suspendedLanes);
		} // This is the entry point for synchronous tasks that don't go
		// through Scheduler


		function performSyncWorkOnRoot(root) {
		  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
		    {
		      throw Error( "Should not already be working." );
		    }
		  }

		  flushPassiveEffects();
		  var lanes;
		  var exitStatus;

		  if (root === workInProgressRoot && includesSomeLane(root.expiredLanes, workInProgressRootRenderLanes)) {
		    // There's a partial tree, and at least one of its lanes has expired. Finish
		    // rendering it before rendering the rest of the expired work.
		    lanes = workInProgressRootRenderLanes;
		    exitStatus = renderRootSync(root, lanes);

		    if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
		      // The render included lanes that were updated during the render phase.
		      // For example, when unhiding a hidden tree, we include all the lanes
		      // that were previously skipped when the tree was hidden. That set of
		      // lanes is a superset of the lanes we started rendering with.
		      //
		      // Note that this only happens when part of the tree is rendered
		      // concurrently. If the whole tree is rendered synchronously, then there
		      // are no interleaved events.
		      lanes = getNextLanes(root, lanes);
		      exitStatus = renderRootSync(root, lanes);
		    }
		  } else {
		    lanes = getNextLanes(root, NoLanes);
		    exitStatus = renderRootSync(root, lanes);
		  }

		  if (root.tag !== LegacyRoot && exitStatus === RootErrored) {
		    executionContext |= RetryAfterError; // If an error occurred during hydration,
		    // discard server response and fall back to client side render.

		    if (root.hydrate) {
		      root.hydrate = false;
		      clearContainer(root.containerInfo);
		    } // If something threw an error, try rendering one more time. We'll render
		    // synchronously to block concurrent data mutations, and we'll includes
		    // all pending updates are included. If it still fails after the second
		    // attempt, we'll give up and commit the resulting tree.


		    lanes = getLanesToRetrySynchronouslyOnError(root);

		    if (lanes !== NoLanes) {
		      exitStatus = renderRootSync(root, lanes);
		    }
		  }

		  if (exitStatus === RootFatalErrored) {
		    var fatalError = workInProgressRootFatalError;
		    prepareFreshStack(root, NoLanes);
		    markRootSuspended$1(root, lanes);
		    ensureRootIsScheduled(root, now());
		    throw fatalError;
		  } // We now have a consistent tree. Because this is a sync render, we
		  // will commit it even if something suspended.


		  var finishedWork = root.current.alternate;
		  root.finishedWork = finishedWork;
		  root.finishedLanes = lanes;
		  commitRoot(root); // Before exiting, make sure there's a callback scheduled for the next
		  // pending level.

		  ensureRootIsScheduled(root, now());
		  return null;
		}
		function flushDiscreteUpdates() {
		  // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
		  // However, `act` uses `batchedUpdates`, so there's no way to distinguish
		  // those two cases. Need to fix this before exposing flushDiscreteUpdates
		  // as a public API.
		  if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
		    {
		      if ((executionContext & RenderContext) !== NoContext) {
		        error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
		      }
		    } // We're already rendering, so we can't synchronously flush pending work.
		    // This is probably a nested event dispatch triggered by a lifecycle/effect,
		    // like `el.focus()`. Exit.


		    return;
		  }

		  flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
		  // they fire before the next serial event.

		  flushPassiveEffects();
		}

		function flushPendingDiscreteUpdates() {
		  if (rootsWithPendingDiscreteUpdates !== null) {
		    // For each root with pending discrete updates, schedule a callback to
		    // immediately flush them.
		    var roots = rootsWithPendingDiscreteUpdates;
		    rootsWithPendingDiscreteUpdates = null;
		    roots.forEach(function (root) {
		      markDiscreteUpdatesExpired(root);
		      ensureRootIsScheduled(root, now());
		    });
		  } // Now flush the immediate queue.


		  flushSyncCallbackQueue();
		}

		function batchedUpdates$1(fn, a) {
		  var prevExecutionContext = executionContext;
		  executionContext |= BatchedContext;

		  try {
		    return fn(a);
		  } finally {
		    executionContext = prevExecutionContext;

		    if (executionContext === NoContext) {
		      // Flush the immediate callbacks that were scheduled during this batch
		      resetRenderTimer();
		      flushSyncCallbackQueue();
		    }
		  }
		}
		function batchedEventUpdates$1(fn, a) {
		  var prevExecutionContext = executionContext;
		  executionContext |= EventContext;

		  try {
		    return fn(a);
		  } finally {
		    executionContext = prevExecutionContext;

		    if (executionContext === NoContext) {
		      // Flush the immediate callbacks that were scheduled during this batch
		      resetRenderTimer();
		      flushSyncCallbackQueue();
		    }
		  }
		}
		function discreteUpdates$1(fn, a, b, c, d) {
		  var prevExecutionContext = executionContext;
		  executionContext |= DiscreteEventContext;

		  {
		    try {
		      return runWithPriority$1(UserBlockingPriority$2, fn.bind(null, a, b, c, d));
		    } finally {
		      executionContext = prevExecutionContext;

		      if (executionContext === NoContext) {
		        // Flush the immediate callbacks that were scheduled during this batch
		        resetRenderTimer();
		        flushSyncCallbackQueue();
		      }
		    }
		  }
		}
		function unbatchedUpdates(fn, a) {
		  var prevExecutionContext = executionContext;
		  executionContext &= ~BatchedContext;
		  executionContext |= LegacyUnbatchedContext;

		  try {
		    return fn(a);
		  } finally {
		    executionContext = prevExecutionContext;

		    if (executionContext === NoContext) {
		      // Flush the immediate callbacks that were scheduled during this batch
		      resetRenderTimer();
		      flushSyncCallbackQueue();
		    }
		  }
		}
		function flushSync(fn, a) {
		  var prevExecutionContext = executionContext;

		  if ((prevExecutionContext & (RenderContext | CommitContext)) !== NoContext) {
		    {
		      error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
		    }

		    return fn(a);
		  }

		  executionContext |= BatchedContext;

		  {
		    try {
		      if (fn) {
		        return runWithPriority$1(ImmediatePriority$1, fn.bind(null, a));
		      } else {
		        return undefined;
		      }
		    } finally {
		      executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
		      // Note that this will happen even if batchedUpdates is higher up
		      // the stack.

		      flushSyncCallbackQueue();
		    }
		  }
		}
		function pushRenderLanes(fiber, lanes) {
		  push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);
		  subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);
		  workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
		}
		function popRenderLanes(fiber) {
		  subtreeRenderLanes = subtreeRenderLanesCursor.current;
		  pop(subtreeRenderLanesCursor, fiber);
		}

		function prepareFreshStack(root, lanes) {
		  root.finishedWork = null;
		  root.finishedLanes = NoLanes;
		  var timeoutHandle = root.timeoutHandle;

		  if (timeoutHandle !== noTimeout) {
		    // The root previous suspended and scheduled a timeout to commit a fallback
		    // state. Now that we have additional work, cancel the timeout.
		    root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above

		    cancelTimeout(timeoutHandle);
		  }

		  if (workInProgress !== null) {
		    var interruptedWork = workInProgress.return;

		    while (interruptedWork !== null) {
		      unwindInterruptedWork(interruptedWork);
		      interruptedWork = interruptedWork.return;
		    }
		  }

		  workInProgressRoot = root;
		  workInProgress = createWorkInProgress(root.current, null);
		  workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;
		  workInProgressRootExitStatus = RootIncomplete;
		  workInProgressRootFatalError = null;
		  workInProgressRootSkippedLanes = NoLanes;
		  workInProgressRootUpdatedLanes = NoLanes;
		  workInProgressRootPingedLanes = NoLanes;

		  {
		    spawnedWorkDuringRender = null;
		  }

		  {
		    ReactStrictModeWarnings.discardPendingWarnings();
		  }
		}

		function handleError(root, thrownValue) {
		  do {
		    var erroredWork = workInProgress;

		    try {
		      // Reset module-level state that was set during the render phase.
		      resetContextDependencies();
		      resetHooksAfterThrow();
		      resetCurrentFiber(); // TODO: I found and added this missing line while investigating a
		      // separate issue. Write a regression test using string refs.

		      ReactCurrentOwner$2.current = null;

		      if (erroredWork === null || erroredWork.return === null) {
		        // Expected to be working on a non-root fiber. This is a fatal error
		        // because there's no ancestor that can handle it; the root is
		        // supposed to capture all errors that weren't caught by an error
		        // boundary.
		        workInProgressRootExitStatus = RootFatalErrored;
		        workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
		        // sibling, or the parent if there are no siblings. But since the root
		        // has no siblings nor a parent, we set it to null. Usually this is
		        // handled by `completeUnitOfWork` or `unwindWork`, but since we're
		        // intentionally not calling those, we need set it here.
		        // TODO: Consider calling `unwindWork` to pop the contexts.

		        workInProgress = null;
		        return;
		      }

		      if (enableProfilerTimer && erroredWork.mode & ProfileMode) {
		        // Record the time spent rendering before an error was thrown. This
		        // avoids inaccurate Profiler durations in the case of a
		        // suspended render.
		        stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);
		      }

		      throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
		      completeUnitOfWork(erroredWork);
		    } catch (yetAnotherThrownValue) {
		      // Something in the return path also threw.
		      thrownValue = yetAnotherThrownValue;

		      if (workInProgress === erroredWork && erroredWork !== null) {
		        // If this boundary has already errored, then we had trouble processing
		        // the error. Bubble it to the next boundary.
		        erroredWork = erroredWork.return;
		        workInProgress = erroredWork;
		      } else {
		        erroredWork = workInProgress;
		      }

		      continue;
		    } // Return to the normal work loop.


		    return;
		  } while (true);
		}

		function pushDispatcher() {
		  var prevDispatcher = ReactCurrentDispatcher$2.current;
		  ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;

		  if (prevDispatcher === null) {
		    // The React isomorphic package does not include a default dispatcher.
		    // Instead the first renderer will lazily attach one, in order to give
		    // nicer error messages.
		    return ContextOnlyDispatcher;
		  } else {
		    return prevDispatcher;
		  }
		}

		function popDispatcher(prevDispatcher) {
		  ReactCurrentDispatcher$2.current = prevDispatcher;
		}

		function pushInteractions(root) {
		  {
		    var prevInteractions = tracing.__interactionsRef.current;
		    tracing.__interactionsRef.current = root.memoizedInteractions;
		    return prevInteractions;
		  }
		}

		function popInteractions(prevInteractions) {
		  {
		    tracing.__interactionsRef.current = prevInteractions;
		  }
		}

		function markCommitTimeOfFallback() {
		  globalMostRecentFallbackTime = now();
		}
		function markSkippedUpdateLanes(lane) {
		  workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
		}
		function renderDidSuspend() {
		  if (workInProgressRootExitStatus === RootIncomplete) {
		    workInProgressRootExitStatus = RootSuspended;
		  }
		}
		function renderDidSuspendDelayIfPossible() {
		  if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
		    workInProgressRootExitStatus = RootSuspendedWithDelay;
		  } // Check if there are updates that we skipped tree that might have unblocked
		  // this render.


		  if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootUpdatedLanes))) {
		    // Mark the current render as suspended so that we switch to working on
		    // the updates that were skipped. Usually we only suspend at the end of
		    // the render phase.
		    // TODO: We should probably always mark the root as suspended immediately
		    // (inside this function), since by suspending at the end of the render
		    // phase introduces a potential mistake where we suspend lanes that were
		    // pinged or updated while we were rendering.
		    markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
		  }
		}
		function renderDidError() {
		  if (workInProgressRootExitStatus !== RootCompleted) {
		    workInProgressRootExitStatus = RootErrored;
		  }
		} // Called during render to determine if anything has suspended.
		// Returns false if we're not sure.

		function renderHasNotSuspendedYet() {
		  // If something errored or completed, we can't really be sure,
		  // so those are false.
		  return workInProgressRootExitStatus === RootIncomplete;
		}

		function renderRootSync(root, lanes) {
		  var prevExecutionContext = executionContext;
		  executionContext |= RenderContext;
		  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
		  // and prepare a fresh one. Otherwise we'll continue where we left off.

		  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
		    prepareFreshStack(root, lanes);
		    startWorkOnPendingInteractions(root, lanes);
		  }

		  var prevInteractions = pushInteractions(root);

		  do {
		    try {
		      workLoopSync();
		      break;
		    } catch (thrownValue) {
		      handleError(root, thrownValue);
		    }
		  } while (true);

		  resetContextDependencies();

		  {
		    popInteractions(prevInteractions);
		  }

		  executionContext = prevExecutionContext;
		  popDispatcher(prevDispatcher);

		  if (workInProgress !== null) {
		    // This is a sync render, so we should have finished the whole tree.
		    {
		      {
		        throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
		      }
		    }
		  }


		  workInProgressRoot = null;
		  workInProgressRootRenderLanes = NoLanes;
		  return workInProgressRootExitStatus;
		} // The work loop is an extremely hot path. Tell Closure not to inline it.

		/** @noinline */


		function workLoopSync() {
		  // Already timed out, so perform work without checking if we need to yield.
		  while (workInProgress !== null) {
		    performUnitOfWork(workInProgress);
		  }
		}

		function renderRootConcurrent(root, lanes) {
		  var prevExecutionContext = executionContext;
		  executionContext |= RenderContext;
		  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
		  // and prepare a fresh one. Otherwise we'll continue where we left off.

		  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
		    resetRenderTimer();
		    prepareFreshStack(root, lanes);
		    startWorkOnPendingInteractions(root, lanes);
		  }

		  var prevInteractions = pushInteractions(root);

		  do {
		    try {
		      workLoopConcurrent();
		      break;
		    } catch (thrownValue) {
		      handleError(root, thrownValue);
		    }
		  } while (true);

		  resetContextDependencies();

		  {
		    popInteractions(prevInteractions);
		  }

		  popDispatcher(prevDispatcher);
		  executionContext = prevExecutionContext;


		  if (workInProgress !== null) {

		    return RootIncomplete;
		  } else {


		    workInProgressRoot = null;
		    workInProgressRootRenderLanes = NoLanes; // Return the final exit status.

		    return workInProgressRootExitStatus;
		  }
		}
		/** @noinline */


		function workLoopConcurrent() {
		  // Perform work until Scheduler asks us to yield
		  while (workInProgress !== null && !shouldYield()) {
		    performUnitOfWork(workInProgress);
		  }
		}

		function performUnitOfWork(unitOfWork) {
		  // The current, flushed, state of this fiber is the alternate. Ideally
		  // nothing should rely on this, but relying on it here means that we don't
		  // need an additional field on the work in progress.
		  var current = unitOfWork.alternate;
		  setCurrentFiber(unitOfWork);
		  var next;

		  if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
		    startProfilerTimer(unitOfWork);
		    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
		    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
		  } else {
		    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
		  }

		  resetCurrentFiber();
		  unitOfWork.memoizedProps = unitOfWork.pendingProps;

		  if (next === null) {
		    // If this doesn't spawn new work, complete the current work.
		    completeUnitOfWork(unitOfWork);
		  } else {
		    workInProgress = next;
		  }

		  ReactCurrentOwner$2.current = null;
		}

		function completeUnitOfWork(unitOfWork) {
		  // Attempt to complete the current unit of work, then move to the next
		  // sibling. If there are no more siblings, return to the parent fiber.
		  var completedWork = unitOfWork;

		  do {
		    // The current, flushed, state of this fiber is the alternate. Ideally
		    // nothing should rely on this, but relying on it here means that we don't
		    // need an additional field on the work in progress.
		    var current = completedWork.alternate;
		    var returnFiber = completedWork.return; // Check if the work completed or if something threw.

		    if ((completedWork.flags & Incomplete) === NoFlags) {
		      setCurrentFiber(completedWork);
		      var next = void 0;

		      if ( (completedWork.mode & ProfileMode) === NoMode) {
		        next = completeWork(current, completedWork, subtreeRenderLanes);
		      } else {
		        startProfilerTimer(completedWork);
		        next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.

		        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);
		      }

		      resetCurrentFiber();

		      if (next !== null) {
		        // Completing this fiber spawned new work. Work on that next.
		        workInProgress = next;
		        return;
		      }

		      resetChildLanes(completedWork);

		      if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
		      (returnFiber.flags & Incomplete) === NoFlags) {
		        // Append all the effects of the subtree and this fiber onto the effect
		        // list of the parent. The completion order of the children affects the
		        // side-effect order.
		        if (returnFiber.firstEffect === null) {
		          returnFiber.firstEffect = completedWork.firstEffect;
		        }

		        if (completedWork.lastEffect !== null) {
		          if (returnFiber.lastEffect !== null) {
		            returnFiber.lastEffect.nextEffect = completedWork.firstEffect;
		          }

		          returnFiber.lastEffect = completedWork.lastEffect;
		        } // If this fiber had side-effects, we append it AFTER the children's
		        // side-effects. We can perform certain side-effects earlier if needed,
		        // by doing multiple passes over the effect list. We don't want to
		        // schedule our own side-effect on our own list because if end up
		        // reusing children we'll schedule this effect onto itself since we're
		        // at the end.


		        var flags = completedWork.flags; // Skip both NoWork and PerformedWork tags when creating the effect
		        // list. PerformedWork effect is read by React DevTools but shouldn't be
		        // committed.

		        if (flags > PerformedWork) {
		          if (returnFiber.lastEffect !== null) {
		            returnFiber.lastEffect.nextEffect = completedWork;
		          } else {
		            returnFiber.firstEffect = completedWork;
		          }

		          returnFiber.lastEffect = completedWork;
		        }
		      }
		    } else {
		      // This fiber did not complete because something threw. Pop values off
		      // the stack without entering the complete phase. If this is a boundary,
		      // capture values if possible.
		      var _next = unwindWork(completedWork); // Because this fiber did not complete, don't reset its expiration time.


		      if (_next !== null) {
		        // If completing this work spawned new work, do that next. We'll come
		        // back here again.
		        // Since we're restarting, remove anything that is not a host effect
		        // from the effect tag.
		        _next.flags &= HostEffectMask;
		        workInProgress = _next;
		        return;
		      }

		      if ( (completedWork.mode & ProfileMode) !== NoMode) {
		        // Record the render duration for the fiber that errored.
		        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.

		        var actualDuration = completedWork.actualDuration;
		        var child = completedWork.child;

		        while (child !== null) {
		          actualDuration += child.actualDuration;
		          child = child.sibling;
		        }

		        completedWork.actualDuration = actualDuration;
		      }

		      if (returnFiber !== null) {
		        // Mark the parent fiber as incomplete and clear its effect list.
		        returnFiber.firstEffect = returnFiber.lastEffect = null;
		        returnFiber.flags |= Incomplete;
		      }
		    }

		    var siblingFiber = completedWork.sibling;

		    if (siblingFiber !== null) {
		      // If there is more work to do in this returnFiber, do that next.
		      workInProgress = siblingFiber;
		      return;
		    } // Otherwise, return to the parent


		    completedWork = returnFiber; // Update the next thing we're working on in case something throws.

		    workInProgress = completedWork;
		  } while (completedWork !== null); // We've reached the root.


		  if (workInProgressRootExitStatus === RootIncomplete) {
		    workInProgressRootExitStatus = RootCompleted;
		  }
		}

		function resetChildLanes(completedWork) {
		  if ( // TODO: Move this check out of the hot path by moving `resetChildLanes`
		  // to switch statement in `completeWork`.
		  (completedWork.tag === LegacyHiddenComponent || completedWork.tag === OffscreenComponent) && completedWork.memoizedState !== null && !includesSomeLane(subtreeRenderLanes, OffscreenLane) && (completedWork.mode & ConcurrentMode) !== NoLanes) {
		    // The children of this component are hidden. Don't bubble their
		    // expiration times.
		    return;
		  }

		  var newChildLanes = NoLanes; // Bubble up the earliest expiration time.

		  if ( (completedWork.mode & ProfileMode) !== NoMode) {
		    // In profiling mode, resetChildExpirationTime is also used to reset
		    // profiler durations.
		    var actualDuration = completedWork.actualDuration;
		    var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
		    // only be updated if work is done on the fiber (i.e. it doesn't bailout).
		    // When work is done, it should bubble to the parent's actualDuration. If
		    // the fiber has not been cloned though, (meaning no work was done), then
		    // this value will reflect the amount of time spent working on a previous
		    // render. In that case it should not bubble. We determine whether it was
		    // cloned by comparing the child pointer.

		    var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
		    var child = completedWork.child;

		    while (child !== null) {
		      newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));

		      if (shouldBubbleActualDurations) {
		        actualDuration += child.actualDuration;
		      }

		      treeBaseDuration += child.treeBaseDuration;
		      child = child.sibling;
		    }

		    var isTimedOutSuspense = completedWork.tag === SuspenseComponent && completedWork.memoizedState !== null;

		    if (isTimedOutSuspense) {
		      // Don't count time spent in a timed out Suspense subtree as part of the base duration.
		      var primaryChildFragment = completedWork.child;

		      if (primaryChildFragment !== null) {
		        treeBaseDuration -= primaryChildFragment.treeBaseDuration;
		      }
		    }

		    completedWork.actualDuration = actualDuration;
		    completedWork.treeBaseDuration = treeBaseDuration;
		  } else {
		    var _child = completedWork.child;

		    while (_child !== null) {
		      newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));
		      _child = _child.sibling;
		    }
		  }

		  completedWork.childLanes = newChildLanes;
		}

		function commitRoot(root) {
		  var renderPriorityLevel = getCurrentPriorityLevel();
		  runWithPriority$1(ImmediatePriority$1, commitRootImpl.bind(null, root, renderPriorityLevel));
		  return null;
		}

		function commitRootImpl(root, renderPriorityLevel) {
		  do {
		    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
		    // means `flushPassiveEffects` will sometimes result in additional
		    // passive effects. So we need to keep flushing in a loop until there are
		    // no more pending effects.
		    // TODO: Might be better if `flushPassiveEffects` did not automatically
		    // flush synchronous work at the end, to avoid factoring hazards like this.
		    flushPassiveEffects();
		  } while (rootWithPendingPassiveEffects !== null);

		  flushRenderPhaseStrictModeWarningsInDEV();

		  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
		    {
		      throw Error( "Should not already be working." );
		    }
		  }

		  var finishedWork = root.finishedWork;
		  var lanes = root.finishedLanes;

		  if (finishedWork === null) {

		    return null;
		  }

		  root.finishedWork = null;
		  root.finishedLanes = NoLanes;

		  if (!(finishedWork !== root.current)) {
		    {
		      throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
		    }
		  } // commitRoot never returns a continuation; it always finishes synchronously.
		  // So we can clear these now to allow a new callback to be scheduled.


		  root.callbackNode = null; // Update the first and last pending times on this root. The new first
		  // pending time is whatever is left on the root fiber.

		  var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
		  markRootFinished(root, remainingLanes); // Clear already finished discrete updates in case that a later call of
		  // `flushDiscreteUpdates` starts a useless render pass which may cancels
		  // a scheduled timeout.

		  if (rootsWithPendingDiscreteUpdates !== null) {
		    if (!hasDiscreteLanes(remainingLanes) && rootsWithPendingDiscreteUpdates.has(root)) {
		      rootsWithPendingDiscreteUpdates.delete(root);
		    }
		  }

		  if (root === workInProgressRoot) {
		    // We can reset these now that they are finished.
		    workInProgressRoot = null;
		    workInProgress = null;
		    workInProgressRootRenderLanes = NoLanes;
		  } // Get the list of effects.


		  var firstEffect;

		  if (finishedWork.flags > PerformedWork) {
		    // A fiber's effect list consists only of its children, not itself. So if
		    // the root has an effect, we need to add it to the end of the list. The
		    // resulting list is the set that would belong to the root's parent, if it
		    // had one; that is, all the effects in the tree including the root.
		    if (finishedWork.lastEffect !== null) {
		      finishedWork.lastEffect.nextEffect = finishedWork;
		      firstEffect = finishedWork.firstEffect;
		    } else {
		      firstEffect = finishedWork;
		    }
		  } else {
		    // There is no effect on the root.
		    firstEffect = finishedWork.firstEffect;
		  }

		  if (firstEffect !== null) {

		    var prevExecutionContext = executionContext;
		    executionContext |= CommitContext;
		    var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles

		    ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
		    // of the effect list for each phase: all mutation effects come before all
		    // layout effects, and so on.
		    // The first phase a "before mutation" phase. We use this phase to read the
		    // state of the host tree right before we mutate it. This is where
		    // getSnapshotBeforeUpdate is called.

		    focusedInstanceHandle = prepareForCommit(root.containerInfo);
		    shouldFireAfterActiveInstanceBlur = false;
		    nextEffect = firstEffect;

		    do {
		      {
		        invokeGuardedCallback(null, commitBeforeMutationEffects, null);

		        if (hasCaughtError()) {
		          if (!(nextEffect !== null)) {
		            {
		              throw Error( "Should be working on an effect." );
		            }
		          }

		          var error = clearCaughtError();
		          captureCommitPhaseError(nextEffect, error);
		          nextEffect = nextEffect.nextEffect;
		        }
		      }
		    } while (nextEffect !== null); // We no longer need to track the active instance fiber


		    focusedInstanceHandle = null;

		    {
		      // Mark the current commit time to be shared by all Profilers in this
		      // batch. This enables them to be grouped later.
		      recordCommitTime();
		    } // The next phase is the mutation phase, where we mutate the host tree.


		    nextEffect = firstEffect;

		    do {
		      {
		        invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);

		        if (hasCaughtError()) {
		          if (!(nextEffect !== null)) {
		            {
		              throw Error( "Should be working on an effect." );
		            }
		          }

		          var _error = clearCaughtError();

		          captureCommitPhaseError(nextEffect, _error);
		          nextEffect = nextEffect.nextEffect;
		        }
		      }
		    } while (nextEffect !== null);

		    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
		    // the mutation phase, so that the previous tree is still current during
		    // componentWillUnmount, but before the layout phase, so that the finished
		    // work is current during componentDidMount/Update.

		    root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
		    // the host tree after it's been mutated. The idiomatic use case for this is
		    // layout, but class component lifecycles also fire here for legacy reasons.

		    nextEffect = firstEffect;

		    do {
		      {
		        invokeGuardedCallback(null, commitLayoutEffects, null, root, lanes);

		        if (hasCaughtError()) {
		          if (!(nextEffect !== null)) {
		            {
		              throw Error( "Should be working on an effect." );
		            }
		          }

		          var _error2 = clearCaughtError();

		          captureCommitPhaseError(nextEffect, _error2);
		          nextEffect = nextEffect.nextEffect;
		        }
		      }
		    } while (nextEffect !== null);

		    nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
		    // opportunity to paint.

		    requestPaint();

		    {
		      popInteractions(prevInteractions);
		    }

		    executionContext = prevExecutionContext;
		  } else {
		    // No effects.
		    root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
		    // no effects.
		    // TODO: Maybe there's a better way to report this.

		    {
		      recordCommitTime();
		    }
		  }

		  var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;

		  if (rootDoesHavePassiveEffects) {
		    // This commit has passive effects. Stash a reference to them. But don't
		    // schedule a callback until after flushing layout work.
		    rootDoesHavePassiveEffects = false;
		    rootWithPendingPassiveEffects = root;
		    pendingPassiveEffectsLanes = lanes;
		    pendingPassiveEffectsRenderPriority = renderPriorityLevel;
		  } else {
		    // We are done with the effect chain at this point so let's clear the
		    // nextEffect pointers to assist with GC. If we have passive effects, we'll
		    // clear this in flushPassiveEffects.
		    nextEffect = firstEffect;

		    while (nextEffect !== null) {
		      var nextNextEffect = nextEffect.nextEffect;
		      nextEffect.nextEffect = null;

		      if (nextEffect.flags & Deletion) {
		        detachFiberAfterEffects(nextEffect);
		      }

		      nextEffect = nextNextEffect;
		    }
		  } // Read this again, since an effect might have updated it


		  remainingLanes = root.pendingLanes; // Check if there's remaining work on this root

		  if (remainingLanes !== NoLanes) {
		    {
		      if (spawnedWorkDuringRender !== null) {
		        var expirationTimes = spawnedWorkDuringRender;
		        spawnedWorkDuringRender = null;

		        for (var i = 0; i < expirationTimes.length; i++) {
		          scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
		        }
		      }

		      schedulePendingInteractions(root, remainingLanes);
		    }
		  } else {
		    // If there's no remaining work, we can clear the set of already failed
		    // error boundaries.
		    legacyErrorBoundariesThatAlreadyFailed = null;
		  }

		  {
		    if (!rootDidHavePassiveEffects) {
		      // If there are no passive effects, then we can complete the pending interactions.
		      // Otherwise, we'll wait until after the passive effects are flushed.
		      // Wait to do this until after remaining work has been scheduled,
		      // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
		      finishPendingInteractions(root, lanes);
		    }
		  }

		  if (remainingLanes === SyncLane) {
		    // Count the number of times the root synchronously re-renders without
		    // finishing. If there are too many, it indicates an infinite update loop.
		    if (root === rootWithNestedUpdates) {
		      nestedUpdateCount++;
		    } else {
		      nestedUpdateCount = 0;
		      rootWithNestedUpdates = root;
		    }
		  } else {
		    nestedUpdateCount = 0;
		  }

		  onCommitRoot(finishedWork.stateNode, renderPriorityLevel);

		  {
		    onCommitRoot$1();
		  } // Always call this before exiting `commitRoot`, to ensure that any
		  // additional work on this root is scheduled.


		  ensureRootIsScheduled(root, now());

		  if (hasUncaughtError) {
		    hasUncaughtError = false;
		    var _error3 = firstUncaughtError;
		    firstUncaughtError = null;
		    throw _error3;
		  }

		  if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
		    // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
		    // synchronously, but layout updates should be deferred until the end
		    // of the batch.


		    return null;
		  } // If layout work was scheduled, flush it now.


		  flushSyncCallbackQueue();

		  return null;
		}

		function commitBeforeMutationEffects() {
		  while (nextEffect !== null) {
		    var current = nextEffect.alternate;

		    if (!shouldFireAfterActiveInstanceBlur && focusedInstanceHandle !== null) {
		      if ((nextEffect.flags & Deletion) !== NoFlags) {
		        if (doesFiberContain(nextEffect, focusedInstanceHandle)) {
		          shouldFireAfterActiveInstanceBlur = true;
		        }
		      } else {
		        // TODO: Move this out of the hot path using a dedicated effect tag.
		        if (nextEffect.tag === SuspenseComponent && isSuspenseBoundaryBeingHidden(current, nextEffect) && doesFiberContain(nextEffect, focusedInstanceHandle)) {
		          shouldFireAfterActiveInstanceBlur = true;
		        }
		      }
		    }

		    var flags = nextEffect.flags;

		    if ((flags & Snapshot) !== NoFlags) {
		      setCurrentFiber(nextEffect);
		      commitBeforeMutationLifeCycles(current, nextEffect);
		      resetCurrentFiber();
		    }

		    if ((flags & Passive) !== NoFlags) {
		      // If there are passive effects, schedule a callback to flush at
		      // the earliest opportunity.
		      if (!rootDoesHavePassiveEffects) {
		        rootDoesHavePassiveEffects = true;
		        scheduleCallback(NormalPriority$1, function () {
		          flushPassiveEffects();
		          return null;
		        });
		      }
		    }

		    nextEffect = nextEffect.nextEffect;
		  }
		}

		function commitMutationEffects(root, renderPriorityLevel) {
		  // TODO: Should probably move the bulk of this function to commitWork.
		  while (nextEffect !== null) {
		    setCurrentFiber(nextEffect);
		    var flags = nextEffect.flags;

		    if (flags & ContentReset) {
		      commitResetTextContent(nextEffect);
		    }

		    if (flags & Ref) {
		      var current = nextEffect.alternate;

		      if (current !== null) {
		        commitDetachRef(current);
		      }
		    } // The following switch statement is only concerned about placement,
		    // updates, and deletions. To avoid needing to add a case for every possible
		    // bitmap value, we remove the secondary effects from the effect tag and
		    // switch on that value.


		    var primaryFlags = flags & (Placement | Update | Deletion | Hydrating);

		    switch (primaryFlags) {
		      case Placement:
		        {
		          commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
		          // inserted, before any life-cycles like componentDidMount gets called.
		          // TODO: findDOMNode doesn't rely on this any more but isMounted does
		          // and isMounted is deprecated anyway so we should be able to kill this.

		          nextEffect.flags &= ~Placement;
		          break;
		        }

		      case PlacementAndUpdate:
		        {
		          // Placement
		          commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
		          // inserted, before any life-cycles like componentDidMount gets called.

		          nextEffect.flags &= ~Placement; // Update

		          var _current = nextEffect.alternate;
		          commitWork(_current, nextEffect);
		          break;
		        }

		      case Hydrating:
		        {
		          nextEffect.flags &= ~Hydrating;
		          break;
		        }

		      case HydratingAndUpdate:
		        {
		          nextEffect.flags &= ~Hydrating; // Update

		          var _current2 = nextEffect.alternate;
		          commitWork(_current2, nextEffect);
		          break;
		        }

		      case Update:
		        {
		          var _current3 = nextEffect.alternate;
		          commitWork(_current3, nextEffect);
		          break;
		        }

		      case Deletion:
		        {
		          commitDeletion(root, nextEffect);
		          break;
		        }
		    }

		    resetCurrentFiber();
		    nextEffect = nextEffect.nextEffect;
		  }
		}

		function commitLayoutEffects(root, committedLanes) {


		  while (nextEffect !== null) {
		    setCurrentFiber(nextEffect);
		    var flags = nextEffect.flags;

		    if (flags & (Update | Callback)) {
		      var current = nextEffect.alternate;
		      commitLifeCycles(root, current, nextEffect);
		    }

		    {
		      if (flags & Ref) {
		        commitAttachRef(nextEffect);
		      }
		    }

		    resetCurrentFiber();
		    nextEffect = nextEffect.nextEffect;
		  }
		}

		function flushPassiveEffects() {
		  // Returns whether passive effects were flushed.
		  if (pendingPassiveEffectsRenderPriority !== NoPriority$1) {
		    var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority$1 ? NormalPriority$1 : pendingPassiveEffectsRenderPriority;
		    pendingPassiveEffectsRenderPriority = NoPriority$1;

		    {
		      return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
		    }
		  }

		  return false;
		}
		function enqueuePendingPassiveHookEffectMount(fiber, effect) {
		  pendingPassiveHookEffectsMount.push(effect, fiber);

		  if (!rootDoesHavePassiveEffects) {
		    rootDoesHavePassiveEffects = true;
		    scheduleCallback(NormalPriority$1, function () {
		      flushPassiveEffects();
		      return null;
		    });
		  }
		}
		function enqueuePendingPassiveHookEffectUnmount(fiber, effect) {
		  pendingPassiveHookEffectsUnmount.push(effect, fiber);

		  {
		    fiber.flags |= PassiveUnmountPendingDev;
		    var alternate = fiber.alternate;

		    if (alternate !== null) {
		      alternate.flags |= PassiveUnmountPendingDev;
		    }
		  }

		  if (!rootDoesHavePassiveEffects) {
		    rootDoesHavePassiveEffects = true;
		    scheduleCallback(NormalPriority$1, function () {
		      flushPassiveEffects();
		      return null;
		    });
		  }
		}

		function invokePassiveEffectCreate(effect) {
		  var create = effect.create;
		  effect.destroy = create();
		}

		function flushPassiveEffectsImpl() {
		  if (rootWithPendingPassiveEffects === null) {
		    return false;
		  }

		  var root = rootWithPendingPassiveEffects;
		  var lanes = pendingPassiveEffectsLanes;
		  rootWithPendingPassiveEffects = null;
		  pendingPassiveEffectsLanes = NoLanes;

		  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
		    {
		      throw Error( "Cannot flush passive effects while already rendering." );
		    }
		  }

		  {
		    isFlushingPassiveEffects = true;
		  }

		  var prevExecutionContext = executionContext;
		  executionContext |= CommitContext;
		  var prevInteractions = pushInteractions(root); // It's important that ALL pending passive effect destroy functions are called
		  // before ANY passive effect create functions are called.
		  // Otherwise effects in sibling components might interfere with each other.
		  // e.g. a destroy function in one component may unintentionally override a ref
		  // value set by a create function in another component.
		  // Layout effects have the same constraint.
		  // First pass: Destroy stale passive effects.

		  var unmountEffects = pendingPassiveHookEffectsUnmount;
		  pendingPassiveHookEffectsUnmount = [];

		  for (var i = 0; i < unmountEffects.length; i += 2) {
		    var _effect = unmountEffects[i];
		    var fiber = unmountEffects[i + 1];
		    var destroy = _effect.destroy;
		    _effect.destroy = undefined;

		    {
		      fiber.flags &= ~PassiveUnmountPendingDev;
		      var alternate = fiber.alternate;

		      if (alternate !== null) {
		        alternate.flags &= ~PassiveUnmountPendingDev;
		      }
		    }

		    if (typeof destroy === 'function') {
		      {
		        setCurrentFiber(fiber);

		        {
		          invokeGuardedCallback(null, destroy, null);
		        }

		        if (hasCaughtError()) {
		          if (!(fiber !== null)) {
		            {
		              throw Error( "Should be working on an effect." );
		            }
		          }

		          var error = clearCaughtError();
		          captureCommitPhaseError(fiber, error);
		        }

		        resetCurrentFiber();
		      }
		    }
		  } // Second pass: Create new passive effects.


		  var mountEffects = pendingPassiveHookEffectsMount;
		  pendingPassiveHookEffectsMount = [];

		  for (var _i = 0; _i < mountEffects.length; _i += 2) {
		    var _effect2 = mountEffects[_i];
		    var _fiber = mountEffects[_i + 1];

		    {
		      setCurrentFiber(_fiber);

		      {
		        invokeGuardedCallback(null, invokePassiveEffectCreate, null, _effect2);
		      }

		      if (hasCaughtError()) {
		        if (!(_fiber !== null)) {
		          {
		            throw Error( "Should be working on an effect." );
		          }
		        }

		        var _error4 = clearCaughtError();

		        captureCommitPhaseError(_fiber, _error4);
		      }

		      resetCurrentFiber();
		    }
		  } // Note: This currently assumes there are no passive effects on the root fiber
		  // because the root is not part of its own effect list.
		  // This could change in the future.


		  var effect = root.current.firstEffect;

		  while (effect !== null) {
		    var nextNextEffect = effect.nextEffect; // Remove nextEffect pointer to assist GC

		    effect.nextEffect = null;

		    if (effect.flags & Deletion) {
		      detachFiberAfterEffects(effect);
		    }

		    effect = nextNextEffect;
		  }

		  {
		    popInteractions(prevInteractions);
		    finishPendingInteractions(root, lanes);
		  }

		  {
		    isFlushingPassiveEffects = false;
		  }

		  executionContext = prevExecutionContext;
		  flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
		  // exceeds the limit, we'll fire a warning.

		  nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
		  return true;
		}

		function isAlreadyFailedLegacyErrorBoundary(instance) {
		  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
		}
		function markLegacyErrorBoundaryAsFailed(instance) {
		  if (legacyErrorBoundariesThatAlreadyFailed === null) {
		    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
		  } else {
		    legacyErrorBoundariesThatAlreadyFailed.add(instance);
		  }
		}

		function prepareToThrowUncaughtError(error) {
		  if (!hasUncaughtError) {
		    hasUncaughtError = true;
		    firstUncaughtError = error;
		  }
		}

		var onUncaughtError = prepareToThrowUncaughtError;

		function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
		  var errorInfo = createCapturedValue(error, sourceFiber);
		  var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
		  enqueueUpdate(rootFiber, update);
		  var eventTime = requestEventTime();
		  var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane);

		  if (root !== null) {
		    markRootUpdated(root, SyncLane, eventTime);
		    ensureRootIsScheduled(root, eventTime);
		    schedulePendingInteractions(root, SyncLane);
		  }
		}

		function captureCommitPhaseError(sourceFiber, error) {
		  if (sourceFiber.tag === HostRoot) {
		    // Error was thrown at the root. There is no parent, so the root
		    // itself should capture it.
		    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
		    return;
		  }

		  var fiber = sourceFiber.return;

		  while (fiber !== null) {
		    if (fiber.tag === HostRoot) {
		      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
		      return;
		    } else if (fiber.tag === ClassComponent) {
		      var ctor = fiber.type;
		      var instance = fiber.stateNode;

		      if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
		        var errorInfo = createCapturedValue(error, sourceFiber);
		        var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
		        enqueueUpdate(fiber, update);
		        var eventTime = requestEventTime();
		        var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane);

		        if (root !== null) {
		          markRootUpdated(root, SyncLane, eventTime);
		          ensureRootIsScheduled(root, eventTime);
		          schedulePendingInteractions(root, SyncLane);
		        } else {
		          // This component has already been unmounted.
		          // We can't schedule any follow up work for the root because the fiber is already unmounted,
		          // but we can still call the log-only boundary so the error isn't swallowed.
		          //
		          // TODO This is only a temporary bandaid for the old reconciler fork.
		          // We can delete this special case once the new fork is merged.
		          if (typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
		            try {
		              instance.componentDidCatch(error, errorInfo);
		            } catch (errorToIgnore) {// TODO Ignore this error? Rethrow it?
		              // This is kind of an edge case.
		            }
		          }
		        }

		        return;
		      }
		    }

		    fiber = fiber.return;
		  }
		}
		function pingSuspendedRoot(root, wakeable, pingedLanes) {
		  var pingCache = root.pingCache;

		  if (pingCache !== null) {
		    // The wakeable resolved, so we no longer need to memoize, because it will
		    // never be thrown again.
		    pingCache.delete(wakeable);
		  }

		  var eventTime = requestEventTime();
		  markRootPinged(root, pingedLanes);

		  if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
		    // Received a ping at the same priority level at which we're currently
		    // rendering. We might want to restart this render. This should mirror
		    // the logic of whether or not a root suspends once it completes.
		    // TODO: If we're rendering sync either due to Sync, Batched or expired,
		    // we should probably never restart.
		    // If we're suspended with delay, or if it's a retry, we'll always suspend
		    // so we can always restart.
		    if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
		      // Restart from the root.
		      prepareFreshStack(root, NoLanes);
		    } else {
		      // Even though we can't restart right now, we might get an
		      // opportunity later. So we mark this render as having a ping.
		      workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
		    }
		  }

		  ensureRootIsScheduled(root, eventTime);
		  schedulePendingInteractions(root, pingedLanes);
		}

		function retryTimedOutBoundary(boundaryFiber, retryLane) {
		  // The boundary fiber (a Suspense component or SuspenseList component)
		  // previously was rendered in its fallback state. One of the promises that
		  // suspended it has resolved, which means at least part of the tree was
		  // likely unblocked. Try rendering again, at a new expiration time.
		  if (retryLane === NoLane) {
		    retryLane = requestRetryLane(boundaryFiber);
		  } // TODO: Special case idle priority?


		  var eventTime = requestEventTime();
		  var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane);

		  if (root !== null) {
		    markRootUpdated(root, retryLane, eventTime);
		    ensureRootIsScheduled(root, eventTime);
		    schedulePendingInteractions(root, retryLane);
		  }
		}
		function resolveRetryWakeable(boundaryFiber, wakeable) {
		  var retryLane = NoLane; // Default

		  var retryCache;

		  {
		    retryCache = boundaryFiber.stateNode;
		  }

		  if (retryCache !== null) {
		    // The wakeable resolved, so we no longer need to memoize, because it will
		    // never be thrown again.
		    retryCache.delete(wakeable);
		  }

		  retryTimedOutBoundary(boundaryFiber, retryLane);
		} // Computes the next Just Noticeable Difference (JND) boundary.
		// The theory is that a person can't tell the difference between small differences in time.
		// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
		// difference in the experience. However, waiting for longer might mean that we can avoid
		// showing an intermediate loading state. The longer we have already waited, the harder it
		// is to tell small differences in time. Therefore, the longer we've already waited,
		// the longer we can wait additionally. At some point we have to give up though.
		// We pick a train model where the next boundary commits at a consistent schedule.
		// These particular numbers are vague estimates. We expect to adjust them based on research.

		function jnd(timeElapsed) {
		  return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
		}

		function checkForNestedUpdates() {
		  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
		    nestedUpdateCount = 0;
		    rootWithNestedUpdates = null;

		    {
		      {
		        throw Error( "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." );
		      }
		    }
		  }

		  {
		    if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
		      nestedPassiveUpdateCount = 0;

		      error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
		    }
		  }
		}

		function flushRenderPhaseStrictModeWarningsInDEV() {
		  {
		    ReactStrictModeWarnings.flushLegacyContextWarning();

		    {
		      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
		    }
		  }
		}

		var didWarnStateUpdateForNotYetMountedComponent = null;

		function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
		  {
		    if ((executionContext & RenderContext) !== NoContext) {
		      // We let the other warning about render phase updates deal with this one.
		      return;
		    }

		    if (!(fiber.mode & (BlockingMode | ConcurrentMode))) {
		      return;
		    }

		    var tag = fiber.tag;

		    if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
		      // Only warn for user-defined components, not internal ones like Suspense.
		      return;
		    } // We show the whole stack but dedupe on the top component's name because
		    // the problematic code almost always lies inside that component.


		    var componentName = getComponentName(fiber.type) || 'ReactComponent';

		    if (didWarnStateUpdateForNotYetMountedComponent !== null) {
		      if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {
		        return;
		      }

		      didWarnStateUpdateForNotYetMountedComponent.add(componentName);
		    } else {
		      didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);
		    }

		    var previousFiber = current;

		    try {
		      setCurrentFiber(fiber);

		      error("Can't perform a React state update on a component that hasn't mounted yet. " + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');
		    } finally {
		      if (previousFiber) {
		        setCurrentFiber(fiber);
		      } else {
		        resetCurrentFiber();
		      }
		    }
		  }
		}

		var didWarnStateUpdateForUnmountedComponent = null;

		function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
		  {
		    var tag = fiber.tag;

		    if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
		      // Only warn for user-defined components, not internal ones like Suspense.
		      return;
		    } // If there are pending passive effects unmounts for this Fiber,
		    // we can assume that they would have prevented this update.


		    if ((fiber.flags & PassiveUnmountPendingDev) !== NoFlags) {
		      return;
		    } // We show the whole stack but dedupe on the top component's name because
		    // the problematic code almost always lies inside that component.


		    var componentName = getComponentName(fiber.type) || 'ReactComponent';

		    if (didWarnStateUpdateForUnmountedComponent !== null) {
		      if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
		        return;
		      }

		      didWarnStateUpdateForUnmountedComponent.add(componentName);
		    } else {
		      didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
		    }

		    if (isFlushingPassiveEffects) ; else {
		      var previousFiber = current;

		      try {
		        setCurrentFiber(fiber);

		        error("Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function');
		      } finally {
		        if (previousFiber) {
		          setCurrentFiber(fiber);
		        } else {
		          resetCurrentFiber();
		        }
		      }
		    }
		  }
		}

		var beginWork$1;

		{
		  var dummyFiber = null;

		  beginWork$1 = function (current, unitOfWork, lanes) {
		    // If a component throws an error, we replay it again in a synchronously
		    // dispatched event, so that the debugger will treat it as an uncaught
		    // error See ReactErrorUtils for more information.
		    // Before entering the begin phase, copy the work-in-progress onto a dummy
		    // fiber. If beginWork throws, we'll use this to reset the state.
		    var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);

		    try {
		      return beginWork(current, unitOfWork, lanes);
		    } catch (originalError) {
		      if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
		        // Don't replay promises. Treat everything else like an error.
		        throw originalError;
		      } // Keep this code in sync with handleError; any changes here must have
		      // corresponding changes there.


		      resetContextDependencies();
		      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
		      // same fiber again.
		      // Unwind the failed stack frame

		      unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.

		      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);

		      if ( unitOfWork.mode & ProfileMode) {
		        // Reset the profiler timer.
		        startProfilerTimer(unitOfWork);
		      } // Run beginWork again.


		      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);

		      if (hasCaughtError()) {
		        var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
		        // Rethrow this error instead of the original one.

		        throw replayError;
		      } else {
		        // This branch is reachable if the render phase is impure.
		        throw originalError;
		      }
		    }
		  };
		}

		var didWarnAboutUpdateInRender = false;
		var didWarnAboutUpdateInRenderForAnotherComponent;

		{
		  didWarnAboutUpdateInRenderForAnotherComponent = new Set();
		}

		function warnAboutRenderPhaseUpdatesInDEV(fiber) {
		  {
		    if (isRendering && (executionContext & RenderContext) !== NoContext && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {
		      switch (fiber.tag) {
		        case FunctionComponent:
		        case ForwardRef:
		        case SimpleMemoComponent:
		          {
		            var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.

		            var dedupeKey = renderingComponentName;

		            if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
		              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
		              var setStateComponentName = getComponentName(fiber.type) || 'Unknown';

		              error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
		            }

		            break;
		          }

		        case ClassComponent:
		          {
		            if (!didWarnAboutUpdateInRender) {
		              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');

		              didWarnAboutUpdateInRender = true;
		            }

		            break;
		          }
		      }
		    }
		  }
		} // a 'shared' variable that changes when act() opens/closes in tests.


		var IsThisRendererActing = {
		  current: false
		};
		function warnIfNotScopedWithMatchingAct(fiber) {
		  {
		    if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
		      var previousFiber = current;

		      try {
		        setCurrentFiber(fiber);

		        error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
		        'import {act} fr' + "om 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
		        'import TestRenderer fr' + "om react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);');
		      } finally {
		        if (previousFiber) {
		          setCurrentFiber(fiber);
		        } else {
		          resetCurrentFiber();
		        }
		      }
		    }
		  }
		}
		function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
		  {
		    if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
		      error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
		    }
		  }
		}

		function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
		  {
		    if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
		      var previousFiber = current;

		      try {
		        setCurrentFiber(fiber);

		        error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
		      } finally {
		        if (previousFiber) {
		          setCurrentFiber(fiber);
		        } else {
		          resetCurrentFiber();
		        }
		      }
		    }
		  }
		}

		var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.

		var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
		// scheduler is the actual recommendation. The alternative could be a testing build,
		// a new lib, or whatever; we dunno just yet. This message is for early adopters
		// to get their tests right.

		function warnIfUnmockedScheduler(fiber) {
		  {
		    if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
		      if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
		        didWarnAboutUnmockedScheduler = true;

		        error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + // Break up requires to avoid accidentally parsing them as dependencies.
		        "jest.mock('scheduler', () => require" + "('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://reactjs.org/link/mock-scheduler');
		      }
		    }
		  }
		}

		function computeThreadID(root, lane) {
		  // Interaction threads are unique per root and expiration time.
		  // NOTE: Intentionally unsound cast. All that matters is that it's a number
		  // and it represents a batch of work. Could make a helper function instead,
		  // but meh this is fine for now.
		  return lane * 1000 + root.interactionThreadID;
		}

		function markSpawnedWork(lane) {

		  if (spawnedWorkDuringRender === null) {
		    spawnedWorkDuringRender = [lane];
		  } else {
		    spawnedWorkDuringRender.push(lane);
		  }
		}

		function scheduleInteractions(root, lane, interactions) {

		  if (interactions.size > 0) {
		    var pendingInteractionMap = root.pendingInteractionMap;
		    var pendingInteractions = pendingInteractionMap.get(lane);

		    if (pendingInteractions != null) {
		      interactions.forEach(function (interaction) {
		        if (!pendingInteractions.has(interaction)) {
		          // Update the pending async work count for previously unscheduled interaction.
		          interaction.__count++;
		        }

		        pendingInteractions.add(interaction);
		      });
		    } else {
		      pendingInteractionMap.set(lane, new Set(interactions)); // Update the pending async work count for the current interactions.

		      interactions.forEach(function (interaction) {
		        interaction.__count++;
		      });
		    }

		    var subscriber = tracing.__subscriberRef.current;

		    if (subscriber !== null) {
		      var threadID = computeThreadID(root, lane);
		      subscriber.onWorkScheduled(interactions, threadID);
		    }
		  }
		}

		function schedulePendingInteractions(root, lane) {

		  scheduleInteractions(root, lane, tracing.__interactionsRef.current);
		}

		function startWorkOnPendingInteractions(root, lanes) {
		  // we can accurately attribute time spent working on it, And so that cascading
		  // work triggered during the render phase will be associated with it.


		  var interactions = new Set();
		  root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledLane) {
		    if (includesSomeLane(lanes, scheduledLane)) {
		      scheduledInteractions.forEach(function (interaction) {
		        return interactions.add(interaction);
		      });
		    }
		  }); // Store the current set of interactions on the FiberRoot for a few reasons:
		  // We can re-use it in hot functions like performConcurrentWorkOnRoot()
		  // without having to recalculate it. We will also use it in commitWork() to
		  // pass to any Profiler onRender() hooks. This also provides DevTools with a
		  // way to access it when the onCommitRoot() hook is called.

		  root.memoizedInteractions = interactions;

		  if (interactions.size > 0) {
		    var subscriber = tracing.__subscriberRef.current;

		    if (subscriber !== null) {
		      var threadID = computeThreadID(root, lanes);

		      try {
		        subscriber.onWorkStarted(interactions, threadID);
		      } catch (error) {
		        // If the subscriber throws, rethrow it in a separate task
		        scheduleCallback(ImmediatePriority$1, function () {
		          throw error;
		        });
		      }
		    }
		  }
		}

		function finishPendingInteractions(root, committedLanes) {

		  var remainingLanesAfterCommit = root.pendingLanes;
		  var subscriber;

		  try {
		    subscriber = tracing.__subscriberRef.current;

		    if (subscriber !== null && root.memoizedInteractions.size > 0) {
		      // FIXME: More than one lane can finish in a single commit.
		      var threadID = computeThreadID(root, committedLanes);
		      subscriber.onWorkStopped(root.memoizedInteractions, threadID);
		    }
		  } catch (error) {
		    // If the subscriber throws, rethrow it in a separate task
		    scheduleCallback(ImmediatePriority$1, function () {
		      throw error;
		    });
		  } finally {
		    // Clear completed interactions from the pending Map.
		    // Unless the render was suspended or cascading work was scheduled,
		    // In which case– leave pending interactions until the subsequent render.
		    var pendingInteractionMap = root.pendingInteractionMap;
		    pendingInteractionMap.forEach(function (scheduledInteractions, lane) {
		      // Only decrement the pending interaction count if we're done.
		      // If there's still work at the current priority,
		      // That indicates that we are waiting for suspense data.
		      if (!includesSomeLane(remainingLanesAfterCommit, lane)) {
		        pendingInteractionMap.delete(lane);
		        scheduledInteractions.forEach(function (interaction) {
		          interaction.__count--;

		          if (subscriber !== null && interaction.__count === 0) {
		            try {
		              subscriber.onInteractionScheduledWorkCompleted(interaction);
		            } catch (error) {
		              // If the subscriber throws, rethrow it in a separate task
		              scheduleCallback(ImmediatePriority$1, function () {
		                throw error;
		              });
		            }
		          }
		        });
		      }
		    });
		  }
		} // `act` testing API

		function shouldForceFlushFallbacksInDEV() {
		  // Never force flush in production. This function should get stripped out.
		  return  actingUpdatesScopeDepth > 0;
		}
		// so we can tell if any async act() calls try to run in parallel.


		var actingUpdatesScopeDepth = 0;

		function detachFiberAfterEffects(fiber) {
		  fiber.sibling = null;
		  fiber.stateNode = null;
		}

		var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.

		var failedBoundaries = null;
		var setRefreshHandler = function (handler) {
		  {
		    resolveFamily = handler;
		  }
		};
		function resolveFunctionForHotReloading(type) {
		  {
		    if (resolveFamily === null) {
		      // Hot reloading is disabled.
		      return type;
		    }

		    var family = resolveFamily(type);

		    if (family === undefined) {
		      return type;
		    } // Use the latest known implementation.


		    return family.current;
		  }
		}
		function resolveClassForHotReloading(type) {
		  // No implementation differences.
		  return resolveFunctionForHotReloading(type);
		}
		function resolveForwardRefForHotReloading(type) {
		  {
		    if (resolveFamily === null) {
		      // Hot reloading is disabled.
		      return type;
		    }

		    var family = resolveFamily(type);

		    if (family === undefined) {
		      // Check if we're dealing with a real forwardRef. Don't want to crash early.
		      if (type !== null && type !== undefined && typeof type.render === 'function') {
		        // ForwardRef is special because its resolved .type is an object,
		        // but it's possible that we only have its inner render function in the map.
		        // If that inner render function is different, we'll build a new forwardRef type.
		        var currentRender = resolveFunctionForHotReloading(type.render);

		        if (type.render !== currentRender) {
		          var syntheticType = {
		            $$typeof: REACT_FORWARD_REF_TYPE,
		            render: currentRender
		          };

		          if (type.displayName !== undefined) {
		            syntheticType.displayName = type.displayName;
		          }

		          return syntheticType;
		        }
		      }

		      return type;
		    } // Use the latest known implementation.


		    return family.current;
		  }
		}
		function isCompatibleFamilyForHotReloading(fiber, element) {
		  {
		    if (resolveFamily === null) {
		      // Hot reloading is disabled.
		      return false;
		    }

		    var prevType = fiber.elementType;
		    var nextType = element.type; // If we got here, we know types aren't === equal.

		    var needsCompareFamilies = false;
		    var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;

		    switch (fiber.tag) {
		      case ClassComponent:
		        {
		          if (typeof nextType === 'function') {
		            needsCompareFamilies = true;
		          }

		          break;
		        }

		      case FunctionComponent:
		        {
		          if (typeof nextType === 'function') {
		            needsCompareFamilies = true;
		          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
		            // We don't know the inner type yet.
		            // We're going to assume that the lazy inner type is stable,
		            // and so it is sufficient to avoid reconciling it away.
		            // We're not going to unwrap or actually use the new lazy type.
		            needsCompareFamilies = true;
		          }

		          break;
		        }

		      case ForwardRef:
		        {
		          if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
		            needsCompareFamilies = true;
		          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
		            needsCompareFamilies = true;
		          }

		          break;
		        }

		      case MemoComponent:
		      case SimpleMemoComponent:
		        {
		          if ($$typeofNextType === REACT_MEMO_TYPE) {
		            // TODO: if it was but can no longer be simple,
		            // we shouldn't set this.
		            needsCompareFamilies = true;
		          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
		            needsCompareFamilies = true;
		          }

		          break;
		        }

		      default:
		        return false;
		    } // Check if both types have a family and it's the same one.


		    if (needsCompareFamilies) {
		      // Note: memo() and forwardRef() we'll compare outer rather than inner type.
		      // This means both of them need to be registered to preserve state.
		      // If we unwrapped and compared the inner types for wrappers instead,
		      // then we would risk falsely saying two separate memo(Foo)
		      // calls are equivalent because they wrap the same Foo function.
		      var prevFamily = resolveFamily(prevType);

		      if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
		        return true;
		      }
		    }

		    return false;
		  }
		}
		function markFailedErrorBoundaryForHotReloading(fiber) {
		  {
		    if (resolveFamily === null) {
		      // Hot reloading is disabled.
		      return;
		    }

		    if (typeof WeakSet !== 'function') {
		      return;
		    }

		    if (failedBoundaries === null) {
		      failedBoundaries = new WeakSet();
		    }

		    failedBoundaries.add(fiber);
		  }
		}
		var scheduleRefresh = function (root, update) {
		  {
		    if (resolveFamily === null) {
		      // Hot reloading is disabled.
		      return;
		    }

		    var staleFamilies = update.staleFamilies,
		        updatedFamilies = update.updatedFamilies;
		    flushPassiveEffects();
		    flushSync(function () {
		      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
		    });
		  }
		};
		var scheduleRoot = function (root, element) {
		  {
		    if (root.context !== emptyContextObject) {
		      // Super edge case: root has a legacy _renderSubtree context
		      // but we don't know the parentComponent so we can't pass it.
		      // Just ignore. We'll delete this with _renderSubtree code path later.
		      return;
		    }

		    flushPassiveEffects();
		    flushSync(function () {
		      updateContainer(element, root, null, null);
		    });
		  }
		};

		function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
		  {
		    var alternate = fiber.alternate,
		        child = fiber.child,
		        sibling = fiber.sibling,
		        tag = fiber.tag,
		        type = fiber.type;
		    var candidateType = null;

		    switch (tag) {
		      case FunctionComponent:
		      case SimpleMemoComponent:
		      case ClassComponent:
		        candidateType = type;
		        break;

		      case ForwardRef:
		        candidateType = type.render;
		        break;
		    }

		    if (resolveFamily === null) {
		      throw new Error('Expected resolveFamily to be set during hot reload.');
		    }

		    var needsRender = false;
		    var needsRemount = false;

		    if (candidateType !== null) {
		      var family = resolveFamily(candidateType);

		      if (family !== undefined) {
		        if (staleFamilies.has(family)) {
		          needsRemount = true;
		        } else if (updatedFamilies.has(family)) {
		          if (tag === ClassComponent) {
		            needsRemount = true;
		          } else {
		            needsRender = true;
		          }
		        }
		      }
		    }

		    if (failedBoundaries !== null) {
		      if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
		        needsRemount = true;
		      }
		    }

		    if (needsRemount) {
		      fiber._debugNeedsRemount = true;
		    }

		    if (needsRemount || needsRender) {
		      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		    }

		    if (child !== null && !needsRemount) {
		      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
		    }

		    if (sibling !== null) {
		      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
		    }
		  }
		}

		var findHostInstancesForRefresh = function (root, families) {
		  {
		    var hostInstances = new Set();
		    var types = new Set(families.map(function (family) {
		      return family.current;
		    }));
		    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
		    return hostInstances;
		  }
		};

		function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
		  {
		    var child = fiber.child,
		        sibling = fiber.sibling,
		        tag = fiber.tag,
		        type = fiber.type;
		    var candidateType = null;

		    switch (tag) {
		      case FunctionComponent:
		      case SimpleMemoComponent:
		      case ClassComponent:
		        candidateType = type;
		        break;

		      case ForwardRef:
		        candidateType = type.render;
		        break;
		    }

		    var didMatch = false;

		    if (candidateType !== null) {
		      if (types.has(candidateType)) {
		        didMatch = true;
		      }
		    }

		    if (didMatch) {
		      // We have a match. This only drills down to the closest host components.
		      // There's no need to search deeper because for the purpose of giving
		      // visual feedback, "flashing" outermost parent rectangles is sufficient.
		      findHostInstancesForFiberShallowly(fiber, hostInstances);
		    } else {
		      // If there's no match, maybe there will be one further down in the child tree.
		      if (child !== null) {
		        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
		      }
		    }

		    if (sibling !== null) {
		      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
		    }
		  }
		}

		function findHostInstancesForFiberShallowly(fiber, hostInstances) {
		  {
		    var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);

		    if (foundHostInstances) {
		      return;
		    } // If we didn't find any host children, fallback to closest host parent.


		    var node = fiber;

		    while (true) {
		      switch (node.tag) {
		        case HostComponent:
		          hostInstances.add(node.stateNode);
		          return;

		        case HostPortal:
		          hostInstances.add(node.stateNode.containerInfo);
		          return;

		        case HostRoot:
		          hostInstances.add(node.stateNode.containerInfo);
		          return;
		      }

		      if (node.return === null) {
		        throw new Error('Expected to reach root first.');
		      }

		      node = node.return;
		    }
		  }
		}

		function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
		  {
		    var node = fiber;
		    var foundHostInstances = false;

		    while (true) {
		      if (node.tag === HostComponent) {
		        // We got a match.
		        foundHostInstances = true;
		        hostInstances.add(node.stateNode); // There may still be more, so keep searching.
		      } else if (node.child !== null) {
		        node.child.return = node;
		        node = node.child;
		        continue;
		      }

		      if (node === fiber) {
		        return foundHostInstances;
		      }

		      while (node.sibling === null) {
		        if (node.return === null || node.return === fiber) {
		          return foundHostInstances;
		        }

		        node = node.return;
		      }

		      node.sibling.return = node.return;
		      node = node.sibling;
		    }
		  }

		  return false;
		}

		var hasBadMapPolyfill;

		{
		  hasBadMapPolyfill = false;

		  try {
		    var nonExtensibleObject = Object.preventExtensions({});
		    /* eslint-disable no-new */

		    new Map([[nonExtensibleObject, null]]);
		    new Set([nonExtensibleObject]);
		    /* eslint-enable no-new */
		  } catch (e) {
		    // TODO: Consider warning about bad polyfills
		    hasBadMapPolyfill = true;
		  }
		}

		var debugCounter = 1;

		function FiberNode(tag, pendingProps, key, mode) {
		  // Instance
		  this.tag = tag;
		  this.key = key;
		  this.elementType = null;
		  this.type = null;
		  this.stateNode = null; // Fiber

		  this.return = null;
		  this.child = null;
		  this.sibling = null;
		  this.index = 0;
		  this.ref = null;
		  this.pendingProps = pendingProps;
		  this.memoizedProps = null;
		  this.updateQueue = null;
		  this.memoizedState = null;
		  this.dependencies = null;
		  this.mode = mode; // Effects

		  this.flags = NoFlags;
		  this.nextEffect = null;
		  this.firstEffect = null;
		  this.lastEffect = null;
		  this.lanes = NoLanes;
		  this.childLanes = NoLanes;
		  this.alternate = null;

		  {
		    // Note: The following is done to avoid a v8 performance cliff.
		    //
		    // Initializing the fields below to smis and later updating them with
		    // double values will cause Fibers to end up having separate shapes.
		    // This behavior/bug has something to do with Object.preventExtension().
		    // Fortunately this only impacts DEV builds.
		    // Unfortunately it makes React unusably slow for some applications.
		    // To work around this, initialize the fields below with doubles.
		    //
		    // Learn more about this here:
		    // https://github.com/facebook/react/issues/14365
		    // https://bugs.chromium.org/p/v8/issues/detail?id=8538
		    this.actualDuration = Number.NaN;
		    this.actualStartTime = Number.NaN;
		    this.selfBaseDuration = Number.NaN;
		    this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
		    // This won't trigger the performance cliff mentioned above,
		    // and it simplifies other profiler code (including DevTools).

		    this.actualDuration = 0;
		    this.actualStartTime = -1;
		    this.selfBaseDuration = 0;
		    this.treeBaseDuration = 0;
		  }

		  {
		    // This isn't directly used but is handy for debugging internals:
		    this._debugID = debugCounter++;
		    this._debugSource = null;
		    this._debugOwner = null;
		    this._debugNeedsRemount = false;
		    this._debugHookTypes = null;

		    if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
		      Object.preventExtensions(this);
		    }
		  }
		} // This is a constructor function, rather than a POJO constructor, still
		// please ensure we do the following:
		// 1) Nobody should add any instance methods on this. Instance methods can be
		//    more difficult to predict when they get optimized and they are almost
		//    never inlined properly in static compilers.
		// 2) Nobody should rely on `instanceof Fiber` for type testing. We should
		//    always know when it is a fiber.
		// 3) We might want to experiment with using numeric keys since they are easier
		//    to optimize in a non-JIT environment.
		// 4) We can easily go from a constructor to a createFiber object literal if that
		//    is faster.
		// 5) It should be easy to port this to a C struct and keep a C implementation
		//    compatible.


		var createFiber = function (tag, pendingProps, key, mode) {
		  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
		  return new FiberNode(tag, pendingProps, key, mode);
		};

		function shouldConstruct$1(Component) {
		  var prototype = Component.prototype;
		  return !!(prototype && prototype.isReactComponent);
		}

		function isSimpleFunctionComponent(type) {
		  return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
		}
		function resolveLazyComponentTag(Component) {
		  if (typeof Component === 'function') {
		    return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
		  } else if (Component !== undefined && Component !== null) {
		    var $$typeof = Component.$$typeof;

		    if ($$typeof === REACT_FORWARD_REF_TYPE) {
		      return ForwardRef;
		    }

		    if ($$typeof === REACT_MEMO_TYPE) {
		      return MemoComponent;
		    }
		  }

		  return IndeterminateComponent;
		} // This is used to create an alternate fiber to do work on.

		function createWorkInProgress(current, pendingProps) {
		  var workInProgress = current.alternate;

		  if (workInProgress === null) {
		    // We use a double buffering pooling technique because we know that we'll
		    // only ever need at most two versions of a tree. We pool the "other" unused
		    // node that we're free to reuse. This is lazily created to avoid allocating
		    // extra objects for things that are never updated. It also allow us to
		    // reclaim the extra memory if needed.
		    workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
		    workInProgress.elementType = current.elementType;
		    workInProgress.type = current.type;
		    workInProgress.stateNode = current.stateNode;

		    {
		      // DEV-only fields
		      workInProgress._debugID = current._debugID;
		      workInProgress._debugSource = current._debugSource;
		      workInProgress._debugOwner = current._debugOwner;
		      workInProgress._debugHookTypes = current._debugHookTypes;
		    }

		    workInProgress.alternate = current;
		    current.alternate = workInProgress;
		  } else {
		    workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.

		    workInProgress.type = current.type; // We already have an alternate.
		    // Reset the effect tag.

		    workInProgress.flags = NoFlags; // The effect list is no longer valid.

		    workInProgress.nextEffect = null;
		    workInProgress.firstEffect = null;
		    workInProgress.lastEffect = null;

		    {
		      // We intentionally reset, rather than copy, actualDuration & actualStartTime.
		      // This prevents time from endlessly accumulating in new commits.
		      // This has the downside of resetting values for different priority renders,
		      // But works for yielding (the common case) and should support resuming.
		      workInProgress.actualDuration = 0;
		      workInProgress.actualStartTime = -1;
		    }
		  }

		  workInProgress.childLanes = current.childLanes;
		  workInProgress.lanes = current.lanes;
		  workInProgress.child = current.child;
		  workInProgress.memoizedProps = current.memoizedProps;
		  workInProgress.memoizedState = current.memoizedState;
		  workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
		  // it cannot be shared with the current fiber.

		  var currentDependencies = current.dependencies;
		  workInProgress.dependencies = currentDependencies === null ? null : {
		    lanes: currentDependencies.lanes,
		    firstContext: currentDependencies.firstContext
		  }; // These will be overridden during the parent's reconciliation

		  workInProgress.sibling = current.sibling;
		  workInProgress.index = current.index;
		  workInProgress.ref = current.ref;

		  {
		    workInProgress.selfBaseDuration = current.selfBaseDuration;
		    workInProgress.treeBaseDuration = current.treeBaseDuration;
		  }

		  {
		    workInProgress._debugNeedsRemount = current._debugNeedsRemount;

		    switch (workInProgress.tag) {
		      case IndeterminateComponent:
		      case FunctionComponent:
		      case SimpleMemoComponent:
		        workInProgress.type = resolveFunctionForHotReloading(current.type);
		        break;

		      case ClassComponent:
		        workInProgress.type = resolveClassForHotReloading(current.type);
		        break;

		      case ForwardRef:
		        workInProgress.type = resolveForwardRefForHotReloading(current.type);
		        break;
		    }
		  }

		  return workInProgress;
		} // Used to reuse a Fiber for a second pass.

		function resetWorkInProgress(workInProgress, renderLanes) {
		  // This resets the Fiber to what createFiber or createWorkInProgress would
		  // have set the values to before during the first pass. Ideally this wouldn't
		  // be necessary but unfortunately many code paths reads from the workInProgress
		  // when they should be reading from current and writing to workInProgress.
		  // We assume pendingProps, index, key, ref, return are still untouched to
		  // avoid doing another reconciliation.
		  // Reset the effect tag but keep any Placement tags, since that's something
		  // that child fiber is setting, not the reconciliation.
		  workInProgress.flags &= Placement; // The effect list is no longer valid.

		  workInProgress.nextEffect = null;
		  workInProgress.firstEffect = null;
		  workInProgress.lastEffect = null;
		  var current = workInProgress.alternate;

		  if (current === null) {
		    // Reset to createFiber's initial values.
		    workInProgress.childLanes = NoLanes;
		    workInProgress.lanes = renderLanes;
		    workInProgress.child = null;
		    workInProgress.memoizedProps = null;
		    workInProgress.memoizedState = null;
		    workInProgress.updateQueue = null;
		    workInProgress.dependencies = null;
		    workInProgress.stateNode = null;

		    {
		      // Note: We don't reset the actualTime counts. It's useful to accumulate
		      // actual time across multiple render passes.
		      workInProgress.selfBaseDuration = 0;
		      workInProgress.treeBaseDuration = 0;
		    }
		  } else {
		    // Reset to the cloned values that createWorkInProgress would've.
		    workInProgress.childLanes = current.childLanes;
		    workInProgress.lanes = current.lanes;
		    workInProgress.child = current.child;
		    workInProgress.memoizedProps = current.memoizedProps;
		    workInProgress.memoizedState = current.memoizedState;
		    workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.

		    workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so
		    // it cannot be shared with the current fiber.

		    var currentDependencies = current.dependencies;
		    workInProgress.dependencies = currentDependencies === null ? null : {
		      lanes: currentDependencies.lanes,
		      firstContext: currentDependencies.firstContext
		    };

		    {
		      // Note: We don't reset the actualTime counts. It's useful to accumulate
		      // actual time across multiple render passes.
		      workInProgress.selfBaseDuration = current.selfBaseDuration;
		      workInProgress.treeBaseDuration = current.treeBaseDuration;
		    }
		  }

		  return workInProgress;
		}
		function createHostRootFiber(tag) {
		  var mode;

		  if (tag === ConcurrentRoot) {
		    mode = ConcurrentMode | BlockingMode | StrictMode;
		  } else if (tag === BlockingRoot) {
		    mode = BlockingMode | StrictMode;
		  } else {
		    mode = NoMode;
		  }

		  if ( isDevToolsPresent) {
		    // Always collect profile timings when DevTools are present.
		    // This enables DevTools to start capturing timing at any point–
		    // Without some nodes in the tree having empty base times.
		    mode |= ProfileMode;
		  }

		  return createFiber(HostRoot, null, null, mode);
		}
		function createFiberFromTypeAndProps(type, // React$ElementType
		key, pendingProps, owner, mode, lanes) {
		  var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.

		  var resolvedType = type;

		  if (typeof type === 'function') {
		    if (shouldConstruct$1(type)) {
		      fiberTag = ClassComponent;

		      {
		        resolvedType = resolveClassForHotReloading(resolvedType);
		      }
		    } else {
		      {
		        resolvedType = resolveFunctionForHotReloading(resolvedType);
		      }
		    }
		  } else if (typeof type === 'string') {
		    fiberTag = HostComponent;
		  } else {
		    getTag: switch (type) {
		      case REACT_FRAGMENT_TYPE:
		        return createFiberFromFragment(pendingProps.children, mode, lanes, key);

		      case REACT_DEBUG_TRACING_MODE_TYPE:
		        fiberTag = Mode;
		        mode |= DebugTracingMode;
		        break;

		      case REACT_STRICT_MODE_TYPE:
		        fiberTag = Mode;
		        mode |= StrictMode;
		        break;

		      case REACT_PROFILER_TYPE:
		        return createFiberFromProfiler(pendingProps, mode, lanes, key);

		      case REACT_SUSPENSE_TYPE:
		        return createFiberFromSuspense(pendingProps, mode, lanes, key);

		      case REACT_SUSPENSE_LIST_TYPE:
		        return createFiberFromSuspenseList(pendingProps, mode, lanes, key);

		      case REACT_OFFSCREEN_TYPE:
		        return createFiberFromOffscreen(pendingProps, mode, lanes, key);

		      case REACT_LEGACY_HIDDEN_TYPE:
		        return createFiberFromLegacyHidden(pendingProps, mode, lanes, key);

		      case REACT_SCOPE_TYPE:

		      // eslint-disable-next-line no-fallthrough

		      default:
		        {
		          if (typeof type === 'object' && type !== null) {
		            switch (type.$$typeof) {
		              case REACT_PROVIDER_TYPE:
		                fiberTag = ContextProvider;
		                break getTag;

		              case REACT_CONTEXT_TYPE:
		                // This is a consumer
		                fiberTag = ContextConsumer;
		                break getTag;

		              case REACT_FORWARD_REF_TYPE:
		                fiberTag = ForwardRef;

		                {
		                  resolvedType = resolveForwardRefForHotReloading(resolvedType);
		                }

		                break getTag;

		              case REACT_MEMO_TYPE:
		                fiberTag = MemoComponent;
		                break getTag;

		              case REACT_LAZY_TYPE:
		                fiberTag = LazyComponent;
		                resolvedType = null;
		                break getTag;

		              case REACT_BLOCK_TYPE:
		                fiberTag = Block;
		                break getTag;
		            }
		          }

		          var info = '';

		          {
		            if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
		              info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
		            }

		            var ownerName = owner ? getComponentName(owner.type) : null;

		            if (ownerName) {
		              info += '\n\nCheck the render method of `' + ownerName + '`.';
		            }
		          }

		          {
		            {
		              throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info );
		            }
		          }
		        }
		    }
		  }

		  var fiber = createFiber(fiberTag, pendingProps, key, mode);
		  fiber.elementType = type;
		  fiber.type = resolvedType;
		  fiber.lanes = lanes;

		  {
		    fiber._debugOwner = owner;
		  }

		  return fiber;
		}
		function createFiberFromElement(element, mode, lanes) {
		  var owner = null;

		  {
		    owner = element._owner;
		  }

		  var type = element.type;
		  var key = element.key;
		  var pendingProps = element.props;
		  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);

		  {
		    fiber._debugSource = element._source;
		    fiber._debugOwner = element._owner;
		  }

		  return fiber;
		}
		function createFiberFromFragment(elements, mode, lanes, key) {
		  var fiber = createFiber(Fragment, elements, key, mode);
		  fiber.lanes = lanes;
		  return fiber;
		}

		function createFiberFromProfiler(pendingProps, mode, lanes, key) {
		  {
		    if (typeof pendingProps.id !== 'string') {
		      error('Profiler must specify an "id" as a prop');
		    }
		  }

		  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.

		  fiber.elementType = REACT_PROFILER_TYPE;
		  fiber.type = REACT_PROFILER_TYPE;
		  fiber.lanes = lanes;

		  {
		    fiber.stateNode = {
		      effectDuration: 0,
		      passiveEffectDuration: 0
		    };
		  }

		  return fiber;
		}

		function createFiberFromSuspense(pendingProps, mode, lanes, key) {
		  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
		  // This needs to be fixed in getComponentName so that it relies on the tag
		  // instead.

		  fiber.type = REACT_SUSPENSE_TYPE;
		  fiber.elementType = REACT_SUSPENSE_TYPE;
		  fiber.lanes = lanes;
		  return fiber;
		}
		function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
		  var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);

		  {
		    // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
		    // This needs to be fixed in getComponentName so that it relies on the tag
		    // instead.
		    fiber.type = REACT_SUSPENSE_LIST_TYPE;
		  }

		  fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
		  fiber.lanes = lanes;
		  return fiber;
		}
		function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
		  var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); // TODO: The OffscreenComponent fiber shouldn't have a type. It has a tag.
		  // This needs to be fixed in getComponentName so that it relies on the tag
		  // instead.

		  {
		    fiber.type = REACT_OFFSCREEN_TYPE;
		  }

		  fiber.elementType = REACT_OFFSCREEN_TYPE;
		  fiber.lanes = lanes;
		  return fiber;
		}
		function createFiberFromLegacyHidden(pendingProps, mode, lanes, key) {
		  var fiber = createFiber(LegacyHiddenComponent, pendingProps, key, mode); // TODO: The LegacyHidden fiber shouldn't have a type. It has a tag.
		  // This needs to be fixed in getComponentName so that it relies on the tag
		  // instead.

		  {
		    fiber.type = REACT_LEGACY_HIDDEN_TYPE;
		  }

		  fiber.elementType = REACT_LEGACY_HIDDEN_TYPE;
		  fiber.lanes = lanes;
		  return fiber;
		}
		function createFiberFromText(content, mode, lanes) {
		  var fiber = createFiber(HostText, content, null, mode);
		  fiber.lanes = lanes;
		  return fiber;
		}
		function createFiberFromHostInstanceForDeletion() {
		  var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.

		  fiber.elementType = 'DELETED';
		  fiber.type = 'DELETED';
		  return fiber;
		}
		function createFiberFromPortal(portal, mode, lanes) {
		  var pendingProps = portal.children !== null ? portal.children : [];
		  var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
		  fiber.lanes = lanes;
		  fiber.stateNode = {
		    containerInfo: portal.containerInfo,
		    pendingChildren: null,
		    // Used by persistent updates
		    implementation: portal.implementation
		  };
		  return fiber;
		} // Used for stashing WIP properties to replay failed work in DEV.

		function assignFiberPropertiesInDEV(target, source) {
		  if (target === null) {
		    // This Fiber's initial properties will always be overwritten.
		    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
		    target = createFiber(IndeterminateComponent, null, null, NoMode);
		  } // This is intentionally written as a list of all properties.
		  // We tried to use Object.assign() instead but this is called in
		  // the hottest path, and Object.assign() was too slow:
		  // https://github.com/facebook/react/issues/12502
		  // This code is DEV-only so size is not a concern.


		  target.tag = source.tag;
		  target.key = source.key;
		  target.elementType = source.elementType;
		  target.type = source.type;
		  target.stateNode = source.stateNode;
		  target.return = source.return;
		  target.child = source.child;
		  target.sibling = source.sibling;
		  target.index = source.index;
		  target.ref = source.ref;
		  target.pendingProps = source.pendingProps;
		  target.memoizedProps = source.memoizedProps;
		  target.updateQueue = source.updateQueue;
		  target.memoizedState = source.memoizedState;
		  target.dependencies = source.dependencies;
		  target.mode = source.mode;
		  target.flags = source.flags;
		  target.nextEffect = source.nextEffect;
		  target.firstEffect = source.firstEffect;
		  target.lastEffect = source.lastEffect;
		  target.lanes = source.lanes;
		  target.childLanes = source.childLanes;
		  target.alternate = source.alternate;

		  {
		    target.actualDuration = source.actualDuration;
		    target.actualStartTime = source.actualStartTime;
		    target.selfBaseDuration = source.selfBaseDuration;
		    target.treeBaseDuration = source.treeBaseDuration;
		  }

		  target._debugID = source._debugID;
		  target._debugSource = source._debugSource;
		  target._debugOwner = source._debugOwner;
		  target._debugNeedsRemount = source._debugNeedsRemount;
		  target._debugHookTypes = source._debugHookTypes;
		  return target;
		}

		function FiberRootNode(containerInfo, tag, hydrate) {
		  this.tag = tag;
		  this.containerInfo = containerInfo;
		  this.pendingChildren = null;
		  this.current = null;
		  this.pingCache = null;
		  this.finishedWork = null;
		  this.timeoutHandle = noTimeout;
		  this.context = null;
		  this.pendingContext = null;
		  this.hydrate = hydrate;
		  this.callbackNode = null;
		  this.callbackPriority = NoLanePriority;
		  this.eventTimes = createLaneMap(NoLanes);
		  this.expirationTimes = createLaneMap(NoTimestamp);
		  this.pendingLanes = NoLanes;
		  this.suspendedLanes = NoLanes;
		  this.pingedLanes = NoLanes;
		  this.expiredLanes = NoLanes;
		  this.mutableReadLanes = NoLanes;
		  this.finishedLanes = NoLanes;
		  this.entangledLanes = NoLanes;
		  this.entanglements = createLaneMap(NoLanes);

		  {
		    this.mutableSourceEagerHydrationData = null;
		  }

		  {
		    this.interactionThreadID = tracing.unstable_getThreadID();
		    this.memoizedInteractions = new Set();
		    this.pendingInteractionMap = new Map();
		  }

		  {
		    switch (tag) {
		      case BlockingRoot:
		        this._debugRootType = 'createBlockingRoot()';
		        break;

		      case ConcurrentRoot:
		        this._debugRootType = 'createRoot()';
		        break;

		      case LegacyRoot:
		        this._debugRootType = 'createLegacyRoot()';
		        break;
		    }
		  }
		}

		function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
		  var root = new FiberRootNode(containerInfo, tag, hydrate);
		  // stateNode is any.


		  var uninitializedFiber = createHostRootFiber(tag);
		  root.current = uninitializedFiber;
		  uninitializedFiber.stateNode = root;
		  initializeUpdateQueue(uninitializedFiber);
		  return root;
		}

		// This ensures that the version used for server rendering matches the one
		// that is eventually read during hydration.
		// If they don't match there's a potential tear and a full deopt render is required.

		function registerMutableSourceForHydration(root, mutableSource) {
		  var getVersion = mutableSource._getVersion;
		  var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.
		  // Retaining it forever may interfere with GC.

		  if (root.mutableSourceEagerHydrationData == null) {
		    root.mutableSourceEagerHydrationData = [mutableSource, version];
		  } else {
		    root.mutableSourceEagerHydrationData.push(mutableSource, version);
		  }
		}

		function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
		implementation) {
		  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
		  return {
		    // This tag allow us to uniquely identify this as a React Portal
		    $$typeof: REACT_PORTAL_TYPE,
		    key: key == null ? null : '' + key,
		    children: children,
		    containerInfo: containerInfo,
		    implementation: implementation
		  };
		}

		var didWarnAboutNestedUpdates;
		var didWarnAboutFindNodeInStrictMode;

		{
		  didWarnAboutNestedUpdates = false;
		  didWarnAboutFindNodeInStrictMode = {};
		}

		function getContextForSubtree(parentComponent) {
		  if (!parentComponent) {
		    return emptyContextObject;
		  }

		  var fiber = get(parentComponent);
		  var parentContext = findCurrentUnmaskedContext(fiber);

		  if (fiber.tag === ClassComponent) {
		    var Component = fiber.type;

		    if (isContextProvider(Component)) {
		      return processChildContext(fiber, Component, parentContext);
		    }
		  }

		  return parentContext;
		}

		function findHostInstanceWithWarning(component, methodName) {
		  {
		    var fiber = get(component);

		    if (fiber === undefined) {
		      if (typeof component.render === 'function') {
		        {
		          {
		            throw Error( "Unable to find node on an unmounted component." );
		          }
		        }
		      } else {
		        {
		          {
		            throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
		          }
		        }
		      }
		    }

		    var hostFiber = findCurrentHostFiber(fiber);

		    if (hostFiber === null) {
		      return null;
		    }

		    if (hostFiber.mode & StrictMode) {
		      var componentName = getComponentName(fiber.type) || 'Component';

		      if (!didWarnAboutFindNodeInStrictMode[componentName]) {
		        didWarnAboutFindNodeInStrictMode[componentName] = true;
		        var previousFiber = current;

		        try {
		          setCurrentFiber(hostFiber);

		          if (fiber.mode & StrictMode) {
		            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
		          } else {
		            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
		          }
		        } finally {
		          // Ideally this should reset to previous but this shouldn't be called in
		          // render and there's another warning for that anyway.
		          if (previousFiber) {
		            setCurrentFiber(previousFiber);
		          } else {
		            resetCurrentFiber();
		          }
		        }
		      }
		    }

		    return hostFiber.stateNode;
		  }
		}

		function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
		  return createFiberRoot(containerInfo, tag, hydrate);
		}
		function updateContainer(element, container, parentComponent, callback) {
		  {
		    onScheduleRoot(container, element);
		  }

		  var current$1 = container.current;
		  var eventTime = requestEventTime();

		  {
		    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
		    if ('undefined' !== typeof jest) {
		      warnIfUnmockedScheduler(current$1);
		      warnIfNotScopedWithMatchingAct(current$1);
		    }
		  }

		  var lane = requestUpdateLane(current$1);

		  var context = getContextForSubtree(parentComponent);

		  if (container.context === null) {
		    container.context = context;
		  } else {
		    container.pendingContext = context;
		  }

		  {
		    if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
		      didWarnAboutNestedUpdates = true;

		      error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
		    }
		  }

		  var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property
		  // being called "element".

		  update.payload = {
		    element: element
		  };
		  callback = callback === undefined ? null : callback;

		  if (callback !== null) {
		    {
		      if (typeof callback !== 'function') {
		        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
		      }
		    }

		    update.callback = callback;
		  }

		  enqueueUpdate(current$1, update);
		  scheduleUpdateOnFiber(current$1, lane, eventTime);
		  return lane;
		}
		function getPublicRootInstance(container) {
		  var containerFiber = container.current;

		  if (!containerFiber.child) {
		    return null;
		  }

		  switch (containerFiber.child.tag) {
		    case HostComponent:
		      return getPublicInstance(containerFiber.child.stateNode);

		    default:
		      return containerFiber.child.stateNode;
		  }
		}

		function markRetryLaneImpl(fiber, retryLane) {
		  var suspenseState = fiber.memoizedState;

		  if (suspenseState !== null && suspenseState.dehydrated !== null) {
		    suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);
		  }
		} // Increases the priority of thennables when they resolve within this boundary.


		function markRetryLaneIfNotHydrated(fiber, retryLane) {
		  markRetryLaneImpl(fiber, retryLane);
		  var alternate = fiber.alternate;

		  if (alternate) {
		    markRetryLaneImpl(alternate, retryLane);
		  }
		}

		function attemptUserBlockingHydration$1(fiber) {
		  if (fiber.tag !== SuspenseComponent) {
		    // We ignore HostRoots here because we can't increase
		    // their priority and they should not suspend on I/O,
		    // since you have to wrap anything that might suspend in
		    // Suspense.
		    return;
		  }

		  var eventTime = requestEventTime();
		  var lane = InputDiscreteHydrationLane;
		  scheduleUpdateOnFiber(fiber, lane, eventTime);
		  markRetryLaneIfNotHydrated(fiber, lane);
		}
		function attemptContinuousHydration$1(fiber) {
		  if (fiber.tag !== SuspenseComponent) {
		    // We ignore HostRoots here because we can't increase
		    // their priority and they should not suspend on I/O,
		    // since you have to wrap anything that might suspend in
		    // Suspense.
		    return;
		  }

		  var eventTime = requestEventTime();
		  var lane = SelectiveHydrationLane;
		  scheduleUpdateOnFiber(fiber, lane, eventTime);
		  markRetryLaneIfNotHydrated(fiber, lane);
		}
		function attemptHydrationAtCurrentPriority$1(fiber) {
		  if (fiber.tag !== SuspenseComponent) {
		    // We ignore HostRoots here because we can't increase
		    // their priority other than synchronously flush it.
		    return;
		  }

		  var eventTime = requestEventTime();
		  var lane = requestUpdateLane(fiber);
		  scheduleUpdateOnFiber(fiber, lane, eventTime);
		  markRetryLaneIfNotHydrated(fiber, lane);
		}
		function runWithPriority$2(priority, fn) {

		  try {
		    setCurrentUpdateLanePriority(priority);
		    return fn();
		  } finally {
		  }
		}
		function findHostInstanceWithNoPortals(fiber) {
		  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);

		  if (hostFiber === null) {
		    return null;
		  }

		  if (hostFiber.tag === FundamentalComponent) {
		    return hostFiber.stateNode.instance;
		  }

		  return hostFiber.stateNode;
		}

		var shouldSuspendImpl = function (fiber) {
		  return false;
		};

		function shouldSuspend(fiber) {
		  return shouldSuspendImpl(fiber);
		}
		var overrideHookState = null;
		var overrideHookStateDeletePath = null;
		var overrideHookStateRenamePath = null;
		var overrideProps = null;
		var overridePropsDeletePath = null;
		var overridePropsRenamePath = null;
		var scheduleUpdate = null;
		var setSuspenseHandler = null;

		{
		  var copyWithDeleteImpl = function (obj, path, index) {
		    var key = path[index];
		    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);

		    if (index + 1 === path.length) {
		      if (Array.isArray(updated)) {
		        updated.splice(key, 1);
		      } else {
		        delete updated[key];
		      }

		      return updated;
		    } // $FlowFixMe number or string is fine here


		    updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);
		    return updated;
		  };

		  var copyWithDelete = function (obj, path) {
		    return copyWithDeleteImpl(obj, path, 0);
		  };

		  var copyWithRenameImpl = function (obj, oldPath, newPath, index) {
		    var oldKey = oldPath[index];
		    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);

		    if (index + 1 === oldPath.length) {
		      var newKey = newPath[index]; // $FlowFixMe number or string is fine here

		      updated[newKey] = updated[oldKey];

		      if (Array.isArray(updated)) {
		        updated.splice(oldKey, 1);
		      } else {
		        delete updated[oldKey];
		      }
		    } else {
		      // $FlowFixMe number or string is fine here
		      updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here
		      obj[oldKey], oldPath, newPath, index + 1);
		    }

		    return updated;
		  };

		  var copyWithRename = function (obj, oldPath, newPath) {
		    if (oldPath.length !== newPath.length) {
		      warn('copyWithRename() expects paths of the same length');

		      return;
		    } else {
		      for (var i = 0; i < newPath.length - 1; i++) {
		        if (oldPath[i] !== newPath[i]) {
		          warn('copyWithRename() expects paths to be the same except for the deepest key');

		          return;
		        }
		      }
		    }

		    return copyWithRenameImpl(obj, oldPath, newPath, 0);
		  };

		  var copyWithSetImpl = function (obj, path, index, value) {
		    if (index >= path.length) {
		      return value;
		    }

		    var key = path[index];
		    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here

		    updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);
		    return updated;
		  };

		  var copyWithSet = function (obj, path, value) {
		    return copyWithSetImpl(obj, path, 0, value);
		  };

		  var findHook = function (fiber, id) {
		    // For now, the "id" of stateful hooks is just the stateful hook index.
		    // This may change in the future with e.g. nested hooks.
		    var currentHook = fiber.memoizedState;

		    while (currentHook !== null && id > 0) {
		      currentHook = currentHook.next;
		      id--;
		    }

		    return currentHook;
		  }; // Support DevTools editable values for useState and useReducer.


		  overrideHookState = function (fiber, id, path, value) {
		    var hook = findHook(fiber, id);

		    if (hook !== null) {
		      var newState = copyWithSet(hook.memoizedState, path, value);
		      hook.memoizedState = newState;
		      hook.baseState = newState; // We aren't actually adding an update to the queue,
		      // because there is no update we can add for useReducer hooks that won't trigger an error.
		      // (There's no appropriate action type for DevTools overrides.)
		      // As a result though, React will see the scheduled update as a noop and bailout.
		      // Shallow cloning props works as a workaround for now to bypass the bailout check.

		      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
		      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		    }
		  };

		  overrideHookStateDeletePath = function (fiber, id, path) {
		    var hook = findHook(fiber, id);

		    if (hook !== null) {
		      var newState = copyWithDelete(hook.memoizedState, path);
		      hook.memoizedState = newState;
		      hook.baseState = newState; // We aren't actually adding an update to the queue,
		      // because there is no update we can add for useReducer hooks that won't trigger an error.
		      // (There's no appropriate action type for DevTools overrides.)
		      // As a result though, React will see the scheduled update as a noop and bailout.
		      // Shallow cloning props works as a workaround for now to bypass the bailout check.

		      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
		      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		    }
		  };

		  overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {
		    var hook = findHook(fiber, id);

		    if (hook !== null) {
		      var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
		      hook.memoizedState = newState;
		      hook.baseState = newState; // We aren't actually adding an update to the queue,
		      // because there is no update we can add for useReducer hooks that won't trigger an error.
		      // (There's no appropriate action type for DevTools overrides.)
		      // As a result though, React will see the scheduled update as a noop and bailout.
		      // Shallow cloning props works as a workaround for now to bypass the bailout check.

		      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
		      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		    }
		  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.


		  overrideProps = function (fiber, path, value) {
		    fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);

		    if (fiber.alternate) {
		      fiber.alternate.pendingProps = fiber.pendingProps;
		    }

		    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		  };

		  overridePropsDeletePath = function (fiber, path) {
		    fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);

		    if (fiber.alternate) {
		      fiber.alternate.pendingProps = fiber.pendingProps;
		    }

		    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		  };

		  overridePropsRenamePath = function (fiber, oldPath, newPath) {
		    fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);

		    if (fiber.alternate) {
		      fiber.alternate.pendingProps = fiber.pendingProps;
		    }

		    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		  };

		  scheduleUpdate = function (fiber) {
		    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
		  };

		  setSuspenseHandler = function (newShouldSuspendImpl) {
		    shouldSuspendImpl = newShouldSuspendImpl;
		  };
		}

		function findHostInstanceByFiber(fiber) {
		  var hostFiber = findCurrentHostFiber(fiber);

		  if (hostFiber === null) {
		    return null;
		  }

		  return hostFiber.stateNode;
		}

		function emptyFindFiberByHostInstance(instance) {
		  return null;
		}

		function getCurrentFiberForDevTools() {
		  return current;
		}

		function injectIntoDevTools(devToolsConfig) {
		  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
		  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
		  return injectInternals({
		    bundleType: devToolsConfig.bundleType,
		    version: devToolsConfig.version,
		    rendererPackageName: devToolsConfig.rendererPackageName,
		    rendererConfig: devToolsConfig.rendererConfig,
		    overrideHookState: overrideHookState,
		    overrideHookStateDeletePath: overrideHookStateDeletePath,
		    overrideHookStateRenamePath: overrideHookStateRenamePath,
		    overrideProps: overrideProps,
		    overridePropsDeletePath: overridePropsDeletePath,
		    overridePropsRenamePath: overridePropsRenamePath,
		    setSuspenseHandler: setSuspenseHandler,
		    scheduleUpdate: scheduleUpdate,
		    currentDispatcherRef: ReactCurrentDispatcher,
		    findHostInstanceByFiber: findHostInstanceByFiber,
		    findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,
		    // React Refresh
		    findHostInstancesForRefresh:  findHostInstancesForRefresh ,
		    scheduleRefresh:  scheduleRefresh ,
		    scheduleRoot:  scheduleRoot ,
		    setRefreshHandler:  setRefreshHandler ,
		    // Enables DevTools to append owner stacks to error messages in DEV mode.
		    getCurrentFiber:  getCurrentFiberForDevTools 
		  });
		}

		function ReactDOMBlockingRoot(container, tag, options) {
		  this._internalRoot = createRootImpl(container, tag, options);
		}

		ReactDOMBlockingRoot.prototype.render = function (children) {
		  var root = this._internalRoot;

		  {
		    if (typeof arguments[1] === 'function') {
		      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
		    }

		    var container = root.containerInfo;

		    if (container.nodeType !== COMMENT_NODE) {
		      var hostInstance = findHostInstanceWithNoPortals(root.current);

		      if (hostInstance) {
		        if (hostInstance.parentNode !== container) {
		          error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
		        }
		      }
		    }
		  }

		  updateContainer(children, root, null, null);
		};

		ReactDOMBlockingRoot.prototype.unmount = function () {
		  {
		    if (typeof arguments[0] === 'function') {
		      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
		    }
		  }

		  var root = this._internalRoot;
		  var container = root.containerInfo;
		  updateContainer(null, root, null, function () {
		    unmarkContainerAsRoot(container);
		  });
		};

		function createRootImpl(container, tag, options) {
		  // Tag is either LegacyRoot or Concurrent Root
		  var hydrate = options != null && options.hydrate === true;
		  options != null && options.hydrationOptions || null;
		  var mutableSources = options != null && options.hydrationOptions != null && options.hydrationOptions.mutableSources || null;
		  var root = createContainer(container, tag, hydrate);
		  markContainerAsRoot(root.current, container);
		  container.nodeType;

		  {
		    var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
		    listenToAllSupportedEvents(rootContainerElement);
		  }

		  if (mutableSources) {
		    for (var i = 0; i < mutableSources.length; i++) {
		      var mutableSource = mutableSources[i];
		      registerMutableSourceForHydration(root, mutableSource);
		    }
		  }

		  return root;
		}
		function createLegacyRoot(container, options) {
		  return new ReactDOMBlockingRoot(container, LegacyRoot, options);
		}
		function isValidContainer(node) {
		  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
		}

		var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
		var topLevelUpdateWarnings;
		var warnedAboutHydrateAPI = false;

		{
		  topLevelUpdateWarnings = function (container) {
		    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
		      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);

		      if (hostInstance) {
		        if (hostInstance.parentNode !== container) {
		          error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
		        }
		      }
		    }

		    var isRootRenderedBySomeReact = !!container._reactRootContainer;
		    var rootEl = getReactRootElementInContainer(container);
		    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));

		    if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
		      error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
		    }

		    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
		      error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
		    }
		  };
		}

		function getReactRootElementInContainer(container) {
		  if (!container) {
		    return null;
		  }

		  if (container.nodeType === DOCUMENT_NODE) {
		    return container.documentElement;
		  } else {
		    return container.firstChild;
		  }
		}

		function shouldHydrateDueToLegacyHeuristic(container) {
		  var rootElement = getReactRootElementInContainer(container);
		  return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
		}

		function legacyCreateRootFromDOMContainer(container, forceHydrate) {
		  var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.

		  if (!shouldHydrate) {
		    var warned = false;
		    var rootSibling;

		    while (rootSibling = container.lastChild) {
		      {
		        if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
		          warned = true;

		          error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
		        }
		      }

		      container.removeChild(rootSibling);
		    }
		  }

		  {
		    if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
		      warnedAboutHydrateAPI = true;

		      warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v18. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
		    }
		  }

		  return createLegacyRoot(container, shouldHydrate ? {
		    hydrate: true
		  } : undefined);
		}

		function warnOnInvalidCallback$1(callback, callerName) {
		  {
		    if (callback !== null && typeof callback !== 'function') {
		      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
		    }
		  }
		}

		function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
		  {
		    topLevelUpdateWarnings(container);
		    warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
		  } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
		  // member of intersection type." Whyyyyyy.


		  var root = container._reactRootContainer;
		  var fiberRoot;

		  if (!root) {
		    // Initial mount
		    root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
		    fiberRoot = root._internalRoot;

		    if (typeof callback === 'function') {
		      var originalCallback = callback;

		      callback = function () {
		        var instance = getPublicRootInstance(fiberRoot);
		        originalCallback.call(instance);
		      };
		    } // Initial mount should not be batched.


		    unbatchedUpdates(function () {
		      updateContainer(children, fiberRoot, parentComponent, callback);
		    });
		  } else {
		    fiberRoot = root._internalRoot;

		    if (typeof callback === 'function') {
		      var _originalCallback = callback;

		      callback = function () {
		        var instance = getPublicRootInstance(fiberRoot);

		        _originalCallback.call(instance);
		      };
		    } // Update


		    updateContainer(children, fiberRoot, parentComponent, callback);
		  }

		  return getPublicRootInstance(fiberRoot);
		}

		function findDOMNode(componentOrElement) {
		  {
		    var owner = ReactCurrentOwner$3.current;

		    if (owner !== null && owner.stateNode !== null) {
		      var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;

		      if (!warnedAboutRefsInRender) {
		        error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component');
		      }

		      owner.stateNode._warnedAboutRefsInRender = true;
		    }
		  }

		  if (componentOrElement == null) {
		    return null;
		  }

		  if (componentOrElement.nodeType === ELEMENT_NODE) {
		    return componentOrElement;
		  }

		  {
		    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
		  }
		}
		function hydrate(element, container, callback) {
		  if (!isValidContainer(container)) {
		    {
		      throw Error( "Target container is not a DOM element." );
		    }
		  }

		  {
		    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

		    if (isModernRoot) {
		      error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
		    }
		  } // TODO: throw or warn if we couldn't hydrate?


		  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
		}
		function render(element, container, callback) {
		  if (!isValidContainer(container)) {
		    {
		      throw Error( "Target container is not a DOM element." );
		    }
		  }

		  {
		    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

		    if (isModernRoot) {
		      error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
		    }
		  }

		  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
		}
		function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
		  if (!isValidContainer(containerNode)) {
		    {
		      throw Error( "Target container is not a DOM element." );
		    }
		  }

		  if (!(parentComponent != null && has(parentComponent))) {
		    {
		      throw Error( "parentComponent must be a valid React Component" );
		    }
		  }

		  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
		}
		function unmountComponentAtNode(container) {
		  if (!isValidContainer(container)) {
		    {
		      throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
		    }
		  }

		  {
		    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

		    if (isModernRoot) {
		      error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
		    }
		  }

		  if (container._reactRootContainer) {
		    {
		      var rootEl = getReactRootElementInContainer(container);
		      var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);

		      if (renderedByDifferentReact) {
		        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
		      }
		    } // Unmount should not be batched.


		    unbatchedUpdates(function () {
		      legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
		        // $FlowFixMe This should probably use `delete container._reactRootContainer`
		        container._reactRootContainer = null;
		        unmarkContainerAsRoot(container);
		      });
		    }); // If you call unmountComponentAtNode twice in quick succession, you'll
		    // get `true` twice. That's probably fine?

		    return true;
		  } else {
		    {
		      var _rootEl = getReactRootElementInContainer(container);

		      var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.

		      var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;

		      if (hasNonRootReactChild) {
		        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
		      }
		    }

		    return false;
		  }
		}

		setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
		setAttemptContinuousHydration(attemptContinuousHydration$1);
		setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
		setAttemptHydrationAtPriority(runWithPriority$2);
		var didWarnAboutUnstableCreatePortal = false;

		{
		  if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
		  Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
		  Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
		    error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
		  }
		}

		setRestoreImplementation(restoreControlledState$3);
		setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);

		function createPortal$1(children, container) {
		  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

		  if (!isValidContainer(container)) {
		    {
		      throw Error( "Target container is not a DOM element." );
		    }
		  } // TODO: pass ReactDOM portal implementation as third argument
		  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.


		  return createPortal(children, container, null, key);
		}

		function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {

		  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
		}

		function unstable_createPortal(children, container) {
		  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

		  {
		    if (!didWarnAboutUnstableCreatePortal) {
		      didWarnAboutUnstableCreatePortal = true;

		      warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 18+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
		    }
		  }

		  return createPortal$1(children, container, key);
		}

		var Internals = {
		  // Keep in sync with ReactTestUtils.js, and ReactTestUtilsAct.js.
		  // This is an array for better minification.
		  Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, flushPassiveEffects, // TODO: This is related to `act`, not events. Move to separate key?
		  IsThisRendererActing]
		};
		var foundDevTools = injectIntoDevTools({
		  findFiberByHostInstance: getClosestInstanceFromNode,
		  bundleType:  1 ,
		  version: ReactVersion,
		  rendererPackageName: 'react-dom'
		});

		{
		  if (!foundDevTools && canUseDOM && window.top === window.self) {
		    // If we're in Chrome or Firefox, provide a download link if not installed.
		    if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
		      var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.

		      if (/^(https?|file):$/.test(protocol)) {
		        // eslint-disable-next-line react-internal/no-production-logging
		        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
		      }
		    }
		  }
		}

		reactDom_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
		reactDom_development.createPortal = createPortal$1;
		reactDom_development.findDOMNode = findDOMNode;
		reactDom_development.flushSync = flushSync;
		reactDom_development.hydrate = hydrate;
		reactDom_development.render = render;
		reactDom_development.unmountComponentAtNode = unmountComponentAtNode;
		reactDom_development.unstable_batchedUpdates = batchedUpdates$1;
		reactDom_development.unstable_createPortal = unstable_createPortal;
		reactDom_development.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
		reactDom_development.version = ReactVersion;
		  })();
		}
		return reactDom_development;
	}

	function checkDCE() {
	  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
	  if (
	    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
	    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
	  ) {
	    return;
	  }
	  if (process.env.NODE_ENV !== 'production') {
	    // This branch is unreachable because this function is only called
	    // in production, but the condition is true only in development.
	    // Therefore if the branch is still here, dead code elimination wasn't
	    // properly applied.
	    // Don't change the message. React DevTools relies on it. Also make sure
	    // this message doesn't occur elsewhere in this function, or it will cause
	    // a false positive.
	    throw new Error('^_^');
	  }
	  try {
	    // Verify that the code above has been dead code eliminated (DCE'd).
	    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
	  } catch (err) {
	    // DevTools shouldn't crash React, no matter what.
	    // We should still report in case we break this code.
	    console.error(err);
	  }
	}

	if (process.env.NODE_ENV === 'production') {
	  // DCE check should happen before ReactDOM bundle executes so that
	  // DevTools can report bad minification during injection.
	  checkDCE();
	  reactDom.exports = requireReactDom_production_min();
	} else {
	  reactDom.exports = requireReactDom_development();
	}

	var reactDomExports = reactDom.exports;
	var ReactDOM = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);

	var shim = {exports: {}};

	var useSyncExternalStoreShim_production_min = {};

	/**
	 * @license React
	 * use-sync-external-store-shim.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.
	 */

	var hasRequiredUseSyncExternalStoreShim_production_min;

	function requireUseSyncExternalStoreShim_production_min () {
		if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
		hasRequiredUseSyncExternalStoreShim_production_min = 1;
	var e=reactExports;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
		function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
		return useSyncExternalStoreShim_production_min;
	}

	var useSyncExternalStoreShim_development = {};

	/**
	 * @license React
	 * use-sync-external-store-shim.development.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.
	 */

	var hasRequiredUseSyncExternalStoreShim_development;

	function requireUseSyncExternalStoreShim_development () {
		if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
		hasRequiredUseSyncExternalStoreShim_development = 1;

		if (process.env.NODE_ENV !== "production") {
		  (function() {

		/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
		if (
		  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
		  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
		    'function'
		) {
		  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
		}
		          var React = reactExports;

		var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

		function error(format) {
		  {
		    {
		      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
		        args[_key2 - 1] = arguments[_key2];
		      }

		      printWarning('error', format, args);
		    }
		  }
		}

		function printWarning(level, format, args) {
		  // When changing this logic, you might want to also
		  // update consoleWithStackDev.www.js as well.
		  {
		    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
		    var stack = ReactDebugCurrentFrame.getStackAddendum();

		    if (stack !== '') {
		      format += '%s';
		      args = args.concat([stack]);
		    } // eslint-disable-next-line react-internal/safe-string-coercion


		    var argsWithFormat = args.map(function (item) {
		      return String(item);
		    }); // Careful: RN currently depends on this prefix

		    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
		    // breaks IE9: https://github.com/facebook/react/issues/13610
		    // eslint-disable-next-line react-internal/no-production-logging

		    Function.prototype.apply.call(console[level], console, argsWithFormat);
		  }
		}

		/**
		 * inlined Object.is polyfill to avoid requiring consumers ship their own
		 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
		 */
		function is(x, y) {
		  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
		  ;
		}

		var objectIs = typeof Object.is === 'function' ? Object.is : is;

		// dispatch for CommonJS interop named imports.

		var useState = React.useState,
		    useEffect = React.useEffect,
		    useLayoutEffect = React.useLayoutEffect,
		    useDebugValue = React.useDebugValue;
		var didWarnOld18Alpha = false;
		var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
		// because of a very particular set of implementation details and assumptions
		// -- change any one of them and it will break. The most important assumption
		// is that updates are always synchronous, because concurrent rendering is
		// only available in versions of React that also have a built-in
		// useSyncExternalStore API. And we only use this shim when the built-in API
		// does not exist.
		//
		// Do not assume that the clever hacks used by this hook also work in general.
		// The point of this shim is to replace the need for hacks by other libraries.

		function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
		// React do not expose a way to check if we're hydrating. So users of the shim
		// will need to track that themselves and return the correct value
		// from `getSnapshot`.
		getServerSnapshot) {
		  {
		    if (!didWarnOld18Alpha) {
		      if (React.startTransition !== undefined) {
		        didWarnOld18Alpha = true;

		        error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
		      }
		    }
		  } // Read the current snapshot from the store on every render. Again, this
		  // breaks the rules of React, and only works here because of specific
		  // implementation details, most importantly that updates are
		  // always synchronous.


		  var value = getSnapshot();

		  {
		    if (!didWarnUncachedGetSnapshot) {
		      var cachedValue = getSnapshot();

		      if (!objectIs(value, cachedValue)) {
		        error('The result of getSnapshot should be cached to avoid an infinite loop');

		        didWarnUncachedGetSnapshot = true;
		      }
		    }
		  } // Because updates are synchronous, we don't queue them. Instead we force a
		  // re-render whenever the subscribed state changes by updating an some
		  // arbitrary useState hook. Then, during render, we call getSnapshot to read
		  // the current value.
		  //
		  // Because we don't actually use the state returned by the useState hook, we
		  // can save a bit of memory by storing other stuff in that slot.
		  //
		  // To implement the early bailout, we need to track some things on a mutable
		  // object. Usually, we would put that in a useRef hook, but we can stash it in
		  // our useState hook instead.
		  //
		  // To force a re-render, we call forceUpdate({inst}). That works because the
		  // new object always fails an equality check.


		  var _useState = useState({
		    inst: {
		      value: value,
		      getSnapshot: getSnapshot
		    }
		  }),
		      inst = _useState[0].inst,
		      forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
		  // in the layout phase so we can access it during the tearing check that
		  // happens on subscribe.


		  useLayoutEffect(function () {
		    inst.value = value;
		    inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
		    // commit phase if there was an interleaved mutation. In concurrent mode
		    // this can happen all the time, but even in synchronous mode, an earlier
		    // effect may have mutated the store.

		    if (checkIfSnapshotChanged(inst)) {
		      // Force a re-render.
		      forceUpdate({
		        inst: inst
		      });
		    }
		  }, [subscribe, value, getSnapshot]);
		  useEffect(function () {
		    // Check for changes right before subscribing. Subsequent changes will be
		    // detected in the subscription handler.
		    if (checkIfSnapshotChanged(inst)) {
		      // Force a re-render.
		      forceUpdate({
		        inst: inst
		      });
		    }

		    var handleStoreChange = function () {
		      // TODO: Because there is no cross-renderer API for batching updates, it's
		      // up to the consumer of this library to wrap their subscription event
		      // with unstable_batchedUpdates. Should we try to detect when this isn't
		      // the case and print a warning in development?
		      // The store changed. Check if the snapshot changed since the last time we
		      // read from the store.
		      if (checkIfSnapshotChanged(inst)) {
		        // Force a re-render.
		        forceUpdate({
		          inst: inst
		        });
		      }
		    }; // Subscribe to the store and return a clean-up function.


		    return subscribe(handleStoreChange);
		  }, [subscribe]);
		  useDebugValue(value);
		  return value;
		}

		function checkIfSnapshotChanged(inst) {
		  var latestGetSnapshot = inst.getSnapshot;
		  var prevValue = inst.value;

		  try {
		    var nextValue = latestGetSnapshot();
		    return !objectIs(prevValue, nextValue);
		  } catch (error) {
		    return true;
		  }
		}

		function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
		  // Note: The shim does not use getServerSnapshot, because pre-18 versions of
		  // React do not expose a way to check if we're hydrating. So users of the shim
		  // will need to track that themselves and return the correct value
		  // from `getSnapshot`.
		  return getSnapshot();
		}

		var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');

		var isServerEnvironment = !canUseDOM;

		var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
		var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;

		useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
		          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
		if (
		  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
		  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
		    'function'
		) {
		  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
		}
		        
		  })();
		}
		return useSyncExternalStoreShim_development;
	}

	if (process.env.NODE_ENV === 'production') {
	  shim.exports = requireUseSyncExternalStoreShim_production_min();
	} else {
	  shim.exports = requireUseSyncExternalStoreShim_development();
	}

	var shimExports = shim.exports;

	const useSyncExternalStore = shimExports.useSyncExternalStore;

	const defaultContext = /*#__PURE__*/reactExports.createContext(undefined);
	const QueryClientSharingContext = /*#__PURE__*/reactExports.createContext(false); // If we are given a context, we will use it.
	// Otherwise, if contextSharing is on, we share the first and at least one
	// instance of the context across the window
	// to ensure that if React Query is used across
	// different bundles or microfrontends they will
	// all use the same **instance** of context, regardless
	// of module scoping.

	function getQueryClientContext(context, contextSharing) {
	  if (context) {
	    return context;
	  }

	  if (contextSharing && typeof window !== 'undefined') {
	    if (!window.ReactQueryClientContext) {
	      window.ReactQueryClientContext = defaultContext;
	    }

	    return window.ReactQueryClientContext;
	  }

	  return defaultContext;
	}

	const useQueryClient = ({
	  context
	} = {}) => {
	  const queryClient = reactExports.useContext(getQueryClientContext(context, reactExports.useContext(QueryClientSharingContext)));

	  if (!queryClient) {
	    throw new Error('No QueryClient set, use QueryClientProvider to set one');
	  }

	  return queryClient;
	};
	const QueryClientProvider = ({
	  client,
	  children,
	  context,
	  contextSharing = false
	}) => {
	  reactExports.useEffect(() => {
	    client.mount();
	    return () => {
	      client.unmount();
	    };
	  }, [client]);

	  if (process.env.NODE_ENV !== 'production' && contextSharing) {
	    client.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");
	  }

	  const Context = getQueryClientContext(context, contextSharing);
	  return /*#__PURE__*/reactExports.createElement(QueryClientSharingContext.Provider, {
	    value: !context && contextSharing
	  }, /*#__PURE__*/reactExports.createElement(Context.Provider, {
	    value: client
	  }, children));
	};

	const IsRestoringContext = /*#__PURE__*/reactExports.createContext(false);
	const useIsRestoring = () => reactExports.useContext(IsRestoringContext);
	IsRestoringContext.Provider;

	function createValue() {
	  let isReset = false;
	  return {
	    clearReset: () => {
	      isReset = false;
	    },
	    reset: () => {
	      isReset = true;
	    },
	    isReset: () => {
	      return isReset;
	    }
	  };
	}

	const QueryErrorResetBoundaryContext = /*#__PURE__*/reactExports.createContext(createValue()); // HOOK

	const useQueryErrorResetBoundary = () => reactExports.useContext(QueryErrorResetBoundaryContext); // COMPONENT

	function shouldThrowError(_useErrorBoundary, params) {
	  // Allow useErrorBoundary function to override throwing behavior on a per-error basis
	  if (typeof _useErrorBoundary === 'function') {
	    return _useErrorBoundary(...params);
	  }

	  return !!_useErrorBoundary;
	}

	const ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
	  if (options.suspense || options.useErrorBoundary) {
	    // Prevent retrying failed query if the error boundary has not been reset yet
	    if (!errorResetBoundary.isReset()) {
	      options.retryOnMount = false;
	    }
	  }
	};
	const useClearResetErrorBoundary = errorResetBoundary => {
	  reactExports.useEffect(() => {
	    errorResetBoundary.clearReset();
	  }, [errorResetBoundary]);
	};
	const getHasError = ({
	  result,
	  errorResetBoundary,
	  useErrorBoundary,
	  query
	}) => {
	  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && shouldThrowError(useErrorBoundary, [result.error, query]);
	};

	const ensureStaleTime = defaultedOptions => {
	  if (defaultedOptions.suspense) {
	    // Always set stale time when using suspense to prevent
	    // fetching again when directly mounting after suspending
	    if (typeof defaultedOptions.staleTime !== 'number') {
	      defaultedOptions.staleTime = 1000;
	    }
	  }
	};
	const willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
	const shouldSuspend = (defaultedOptions, result, isRestoring) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && willFetch(result, isRestoring);
	const fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).then(({
	  data
	}) => {
	  defaultedOptions.onSuccess == null ? void 0 : defaultedOptions.onSuccess(data);
	  defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(data, null);
	}).catch(error => {
	  errorResetBoundary.clearReset();
	  defaultedOptions.onError == null ? void 0 : defaultedOptions.onError(error);
	  defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(undefined, error);
	});

	function useBaseQuery(options, Observer) {
	  const queryClient = useQueryClient({
	    context: options.context
	  });
	  const isRestoring = useIsRestoring();
	  const errorResetBoundary = useQueryErrorResetBoundary();
	  const defaultedOptions = queryClient.defaultQueryOptions(options); // Make sure results are optimistically set in fetching state before subscribing or updating options

	  defaultedOptions._optimisticResults = isRestoring ? 'isRestoring' : 'optimistic'; // Include callbacks in batch renders

	  if (defaultedOptions.onError) {
	    defaultedOptions.onError = notifyManager.batchCalls(defaultedOptions.onError);
	  }

	  if (defaultedOptions.onSuccess) {
	    defaultedOptions.onSuccess = notifyManager.batchCalls(defaultedOptions.onSuccess);
	  }

	  if (defaultedOptions.onSettled) {
	    defaultedOptions.onSettled = notifyManager.batchCalls(defaultedOptions.onSettled);
	  }

	  ensureStaleTime(defaultedOptions);
	  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
	  useClearResetErrorBoundary(errorResetBoundary);
	  const [observer] = reactExports.useState(() => new Observer(queryClient, defaultedOptions));
	  const result = observer.getOptimisticResult(defaultedOptions);
	  useSyncExternalStore(reactExports.useCallback(onStoreChange => {
	    const unsubscribe = isRestoring ? () => undefined : observer.subscribe(notifyManager.batchCalls(onStoreChange)); // Update result to make sure we did not miss any query updates
	    // between creating the observer and subscribing to it.

	    observer.updateResult();
	    return unsubscribe;
	  }, [observer, isRestoring]), () => observer.getCurrentResult(), () => observer.getCurrentResult());
	  reactExports.useEffect(() => {
	    // Do not notify on updates because of changes in the options because
	    // these changes should already be reflected in the optimistic result.
	    observer.setOptions(defaultedOptions, {
	      listeners: false
	    });
	  }, [defaultedOptions, observer]); // Handle suspense

	  if (shouldSuspend(defaultedOptions, result, isRestoring)) {
	    throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
	  } // Handle error boundary


	  if (getHasError({
	    result,
	    errorResetBoundary,
	    useErrorBoundary: defaultedOptions.useErrorBoundary,
	    query: observer.getCurrentQuery()
	  })) {
	    throw result.error;
	  } // Handle result property usage tracking


	  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
	}

	function useQuery(arg1, arg2, arg3) {
	  const parsedOptions = parseQueryArgs(arg1, arg2, arg3);
	  return useBaseQuery(parsedOptions, QueryObserver);
	}

	var jsxRuntime = {exports: {}};

	var reactJsxRuntime_production_min = {};

	/** @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.
	 */

	var hasRequiredReactJsxRuntime_production_min;

	function requireReactJsxRuntime_production_min () {
		if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
		hasRequiredReactJsxRuntime_production_min = 1;
	requireObjectAssign();var f=reactExports,g=60103;reactJsxRuntime_production_min.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");reactJsxRuntime_production_min.Fragment=h("react.fragment");}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
		function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
		return reactJsxRuntime_production_min;
	}

	var reactJsxRuntime_development = {};

	/** @license React v17.0.2
	 * react-jsx-runtime.development.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.
	 */

	var hasRequiredReactJsxRuntime_development;

	function requireReactJsxRuntime_development () {
		if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
		hasRequiredReactJsxRuntime_development = 1;
		(function (exports) {

			if (process.env.NODE_ENV !== "production") {
			  (function() {

			var React = reactExports;
			var _assign = requireObjectAssign();

			// ATTENTION
			// When adding new symbols to this file,
			// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
			// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
			// nor polyfill, then a plain number is used for performance.
			var REACT_ELEMENT_TYPE = 0xeac7;
			var REACT_PORTAL_TYPE = 0xeaca;
			exports.Fragment = 0xeacb;
			var REACT_STRICT_MODE_TYPE = 0xeacc;
			var REACT_PROFILER_TYPE = 0xead2;
			var REACT_PROVIDER_TYPE = 0xeacd;
			var REACT_CONTEXT_TYPE = 0xeace;
			var REACT_FORWARD_REF_TYPE = 0xead0;
			var REACT_SUSPENSE_TYPE = 0xead1;
			var REACT_SUSPENSE_LIST_TYPE = 0xead8;
			var REACT_MEMO_TYPE = 0xead3;
			var REACT_LAZY_TYPE = 0xead4;
			var REACT_BLOCK_TYPE = 0xead9;
			var REACT_SERVER_BLOCK_TYPE = 0xeada;
			var REACT_FUNDAMENTAL_TYPE = 0xead5;
			var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
			var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

			if (typeof Symbol === 'function' && Symbol.for) {
			  var symbolFor = Symbol.for;
			  REACT_ELEMENT_TYPE = symbolFor('react.element');
			  REACT_PORTAL_TYPE = symbolFor('react.portal');
			  exports.Fragment = symbolFor('react.fragment');
			  REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
			  REACT_PROFILER_TYPE = symbolFor('react.profiler');
			  REACT_PROVIDER_TYPE = symbolFor('react.provider');
			  REACT_CONTEXT_TYPE = symbolFor('react.context');
			  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
			  REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
			  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
			  REACT_MEMO_TYPE = symbolFor('react.memo');
			  REACT_LAZY_TYPE = symbolFor('react.lazy');
			  REACT_BLOCK_TYPE = symbolFor('react.block');
			  REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
			  REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
			  symbolFor('react.scope');
			  symbolFor('react.opaque.id');
			  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
			  symbolFor('react.offscreen');
			  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
			}

			var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
			var FAUX_ITERATOR_SYMBOL = '@@iterator';
			function getIteratorFn(maybeIterable) {
			  if (maybeIterable === null || typeof maybeIterable !== 'object') {
			    return null;
			  }

			  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

			  if (typeof maybeIterator === 'function') {
			    return maybeIterator;
			  }

			  return null;
			}

			var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

			function error(format) {
			  {
			    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
			      args[_key2 - 1] = arguments[_key2];
			    }

			    printWarning('error', format, args);
			  }
			}

			function printWarning(level, format, args) {
			  // When changing this logic, you might want to also
			  // update consoleWithStackDev.www.js as well.
			  {
			    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
			    var stack = ReactDebugCurrentFrame.getStackAddendum();

			    if (stack !== '') {
			      format += '%s';
			      args = args.concat([stack]);
			    }

			    var argsWithFormat = args.map(function (item) {
			      return '' + item;
			    }); // Careful: RN currently depends on this prefix

			    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
			    // breaks IE9: https://github.com/facebook/react/issues/13610
			    // eslint-disable-next-line react-internal/no-production-logging

			    Function.prototype.apply.call(console[level], console, argsWithFormat);
			  }
			}

			// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

			var enableScopeAPI = false; // Experimental Create Event Handle API.

			function isValidElementType(type) {
			  if (typeof type === 'string' || typeof type === 'function') {
			    return true;
			  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).


			  if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
			    return true;
			  }

			  if (typeof type === 'object' && type !== null) {
			    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
			      return true;
			    }
			  }

			  return false;
			}

			function getWrappedName(outerType, innerType, wrapperName) {
			  var functionName = innerType.displayName || innerType.name || '';
			  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
			}

			function getContextName(type) {
			  return type.displayName || 'Context';
			}

			function getComponentName(type) {
			  if (type == null) {
			    // Host root, text node or just invalid type.
			    return null;
			  }

			  {
			    if (typeof type.tag === 'number') {
			      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
			    }
			  }

			  if (typeof type === 'function') {
			    return type.displayName || type.name || null;
			  }

			  if (typeof type === 'string') {
			    return type;
			  }

			  switch (type) {
			    case exports.Fragment:
			      return 'Fragment';

			    case REACT_PORTAL_TYPE:
			      return 'Portal';

			    case REACT_PROFILER_TYPE:
			      return 'Profiler';

			    case REACT_STRICT_MODE_TYPE:
			      return 'StrictMode';

			    case REACT_SUSPENSE_TYPE:
			      return 'Suspense';

			    case REACT_SUSPENSE_LIST_TYPE:
			      return 'SuspenseList';
			  }

			  if (typeof type === 'object') {
			    switch (type.$$typeof) {
			      case REACT_CONTEXT_TYPE:
			        var context = type;
			        return getContextName(context) + '.Consumer';

			      case REACT_PROVIDER_TYPE:
			        var provider = type;
			        return getContextName(provider._context) + '.Provider';

			      case REACT_FORWARD_REF_TYPE:
			        return getWrappedName(type, type.render, 'ForwardRef');

			      case REACT_MEMO_TYPE:
			        return getComponentName(type.type);

			      case REACT_BLOCK_TYPE:
			        return getComponentName(type._render);

			      case REACT_LAZY_TYPE:
			        {
			          var lazyComponent = type;
			          var payload = lazyComponent._payload;
			          var init = lazyComponent._init;

			          try {
			            return getComponentName(init(payload));
			          } catch (x) {
			            return null;
			          }
			        }
			    }
			  }

			  return null;
			}

			// Helpers to patch console.logs to avoid logging during side-effect free
			// replaying on render function. This currently only patches the object
			// lazily which won't cover if the log function was extracted eagerly.
			// We could also eagerly patch the method.
			var disabledDepth = 0;
			var prevLog;
			var prevInfo;
			var prevWarn;
			var prevError;
			var prevGroup;
			var prevGroupCollapsed;
			var prevGroupEnd;

			function disabledLog() {}

			disabledLog.__reactDisabledLog = true;
			function disableLogs() {
			  {
			    if (disabledDepth === 0) {
			      /* eslint-disable react-internal/no-production-logging */
			      prevLog = console.log;
			      prevInfo = console.info;
			      prevWarn = console.warn;
			      prevError = console.error;
			      prevGroup = console.group;
			      prevGroupCollapsed = console.groupCollapsed;
			      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

			      var props = {
			        configurable: true,
			        enumerable: true,
			        value: disabledLog,
			        writable: true
			      }; // $FlowFixMe Flow thinks console is immutable.

			      Object.defineProperties(console, {
			        info: props,
			        log: props,
			        warn: props,
			        error: props,
			        group: props,
			        groupCollapsed: props,
			        groupEnd: props
			      });
			      /* eslint-enable react-internal/no-production-logging */
			    }

			    disabledDepth++;
			  }
			}
			function reenableLogs() {
			  {
			    disabledDepth--;

			    if (disabledDepth === 0) {
			      /* eslint-disable react-internal/no-production-logging */
			      var props = {
			        configurable: true,
			        enumerable: true,
			        writable: true
			      }; // $FlowFixMe Flow thinks console is immutable.

			      Object.defineProperties(console, {
			        log: _assign({}, props, {
			          value: prevLog
			        }),
			        info: _assign({}, props, {
			          value: prevInfo
			        }),
			        warn: _assign({}, props, {
			          value: prevWarn
			        }),
			        error: _assign({}, props, {
			          value: prevError
			        }),
			        group: _assign({}, props, {
			          value: prevGroup
			        }),
			        groupCollapsed: _assign({}, props, {
			          value: prevGroupCollapsed
			        }),
			        groupEnd: _assign({}, props, {
			          value: prevGroupEnd
			        })
			      });
			      /* eslint-enable react-internal/no-production-logging */
			    }

			    if (disabledDepth < 0) {
			      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
			    }
			  }
			}

			var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
			var prefix;
			function describeBuiltInComponentFrame(name, source, ownerFn) {
			  {
			    if (prefix === undefined) {
			      // Extract the VM specific prefix used by each line.
			      try {
			        throw Error();
			      } catch (x) {
			        var match = x.stack.trim().match(/\n( *(at )?)/);
			        prefix = match && match[1] || '';
			      }
			    } // We use the prefix to ensure our stacks line up with native stack frames.


			    return '\n' + prefix + name;
			  }
			}
			var reentry = false;
			var componentFrameCache;

			{
			  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
			  componentFrameCache = new PossiblyWeakMap();
			}

			function describeNativeComponentFrame(fn, construct) {
			  // If something asked for a stack inside a fake render, it should get ignored.
			  if (!fn || reentry) {
			    return '';
			  }

			  {
			    var frame = componentFrameCache.get(fn);

			    if (frame !== undefined) {
			      return frame;
			    }
			  }

			  var control;
			  reentry = true;
			  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

			  Error.prepareStackTrace = undefined;
			  var previousDispatcher;

			  {
			    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
			    // for warnings.

			    ReactCurrentDispatcher.current = null;
			    disableLogs();
			  }

			  try {
			    // This should throw.
			    if (construct) {
			      // Something should be setting the props in the constructor.
			      var Fake = function () {
			        throw Error();
			      }; // $FlowFixMe


			      Object.defineProperty(Fake.prototype, 'props', {
			        set: function () {
			          // We use a throwing setter instead of frozen or non-writable props
			          // because that won't throw in a non-strict mode function.
			          throw Error();
			        }
			      });

			      if (typeof Reflect === 'object' && Reflect.construct) {
			        // We construct a different control for this case to include any extra
			        // frames added by the construct call.
			        try {
			          Reflect.construct(Fake, []);
			        } catch (x) {
			          control = x;
			        }

			        Reflect.construct(fn, [], Fake);
			      } else {
			        try {
			          Fake.call();
			        } catch (x) {
			          control = x;
			        }

			        fn.call(Fake.prototype);
			      }
			    } else {
			      try {
			        throw Error();
			      } catch (x) {
			        control = x;
			      }

			      fn();
			    }
			  } catch (sample) {
			    // This is inlined manually because closure doesn't do it for us.
			    if (sample && control && typeof sample.stack === 'string') {
			      // This extracts the first frame from the sample that isn't also in the control.
			      // Skipping one frame that we assume is the frame that calls the two.
			      var sampleLines = sample.stack.split('\n');
			      var controlLines = control.stack.split('\n');
			      var s = sampleLines.length - 1;
			      var c = controlLines.length - 1;

			      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
			        // We expect at least one stack frame to be shared.
			        // Typically this will be the root most one. However, stack frames may be
			        // cut off due to maximum stack limits. In this case, one maybe cut off
			        // earlier than the other. We assume that the sample is longer or the same
			        // and there for cut off earlier. So we should find the root most frame in
			        // the sample somewhere in the control.
			        c--;
			      }

			      for (; s >= 1 && c >= 0; s--, c--) {
			        // Next we find the first one that isn't the same which should be the
			        // frame that called our sample function and the control.
			        if (sampleLines[s] !== controlLines[c]) {
			          // In V8, the first line is describing the message but other VMs don't.
			          // If we're about to return the first line, and the control is also on the same
			          // line, that's a pretty good indicator that our sample threw at same line as
			          // the control. I.e. before we entered the sample frame. So we ignore this result.
			          // This can happen if you passed a class to function component, or non-function.
			          if (s !== 1 || c !== 1) {
			            do {
			              s--;
			              c--; // We may still have similar intermediate frames from the construct call.
			              // The next one that isn't the same should be our match though.

			              if (c < 0 || sampleLines[s] !== controlLines[c]) {
			                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
			                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

			                {
			                  if (typeof fn === 'function') {
			                    componentFrameCache.set(fn, _frame);
			                  }
			                } // Return the line we found.


			                return _frame;
			              }
			            } while (s >= 1 && c >= 0);
			          }

			          break;
			        }
			      }
			    }
			  } finally {
			    reentry = false;

			    {
			      ReactCurrentDispatcher.current = previousDispatcher;
			      reenableLogs();
			    }

			    Error.prepareStackTrace = previousPrepareStackTrace;
			  } // Fallback to just using the name if we couldn't make it throw.


			  var name = fn ? fn.displayName || fn.name : '';
			  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

			  {
			    if (typeof fn === 'function') {
			      componentFrameCache.set(fn, syntheticFrame);
			    }
			  }

			  return syntheticFrame;
			}
			function describeFunctionComponentFrame(fn, source, ownerFn) {
			  {
			    return describeNativeComponentFrame(fn, false);
			  }
			}

			function shouldConstruct(Component) {
			  var prototype = Component.prototype;
			  return !!(prototype && prototype.isReactComponent);
			}

			function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

			  if (type == null) {
			    return '';
			  }

			  if (typeof type === 'function') {
			    {
			      return describeNativeComponentFrame(type, shouldConstruct(type));
			    }
			  }

			  if (typeof type === 'string') {
			    return describeBuiltInComponentFrame(type);
			  }

			  switch (type) {
			    case REACT_SUSPENSE_TYPE:
			      return describeBuiltInComponentFrame('Suspense');

			    case REACT_SUSPENSE_LIST_TYPE:
			      return describeBuiltInComponentFrame('SuspenseList');
			  }

			  if (typeof type === 'object') {
			    switch (type.$$typeof) {
			      case REACT_FORWARD_REF_TYPE:
			        return describeFunctionComponentFrame(type.render);

			      case REACT_MEMO_TYPE:
			        // Memo may contain any component type so we recursively resolve it.
			        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

			      case REACT_BLOCK_TYPE:
			        return describeFunctionComponentFrame(type._render);

			      case REACT_LAZY_TYPE:
			        {
			          var lazyComponent = type;
			          var payload = lazyComponent._payload;
			          var init = lazyComponent._init;

			          try {
			            // Lazy may contain any component type so we recursively resolve it.
			            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
			          } catch (x) {}
			        }
			    }
			  }

			  return '';
			}

			var loggedTypeFailures = {};
			var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;

			function setCurrentlyValidatingElement(element) {
			  {
			    if (element) {
			      var owner = element._owner;
			      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
			      ReactDebugCurrentFrame.setExtraStackFrame(stack);
			    } else {
			      ReactDebugCurrentFrame.setExtraStackFrame(null);
			    }
			  }
			}

			function checkPropTypes(typeSpecs, values, location, componentName, element) {
			  {
			    // $FlowFixMe This is okay but Flow doesn't know it.
			    var has = Function.call.bind(Object.prototype.hasOwnProperty);

			    for (var typeSpecName in typeSpecs) {
			      if (has(typeSpecs, typeSpecName)) {
			        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
			        // fail the render phase where it didn't fail before. So we log it.
			        // After these have been cleaned up, we'll let them throw.

			        try {
			          // This is intentionally an invariant that gets caught. It's the same
			          // behavior as without this statement except with a better message.
			          if (typeof typeSpecs[typeSpecName] !== 'function') {
			            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
			            err.name = 'Invariant Violation';
			            throw err;
			          }

			          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
			        } catch (ex) {
			          error$1 = ex;
			        }

			        if (error$1 && !(error$1 instanceof Error)) {
			          setCurrentlyValidatingElement(element);

			          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

			          setCurrentlyValidatingElement(null);
			        }

			        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
			          // Only monitor this failure once because there tends to be a lot of the
			          // same error.
			          loggedTypeFailures[error$1.message] = true;
			          setCurrentlyValidatingElement(element);

			          error('Failed %s type: %s', location, error$1.message);

			          setCurrentlyValidatingElement(null);
			        }
			      }
			    }
			  }
			}

			var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
			var hasOwnProperty = Object.prototype.hasOwnProperty;
			var RESERVED_PROPS = {
			  key: true,
			  ref: true,
			  __self: true,
			  __source: true
			};
			var specialPropKeyWarningShown;
			var specialPropRefWarningShown;
			var didWarnAboutStringRefs;

			{
			  didWarnAboutStringRefs = {};
			}

			function hasValidRef(config) {
			  {
			    if (hasOwnProperty.call(config, 'ref')) {
			      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;

			      if (getter && getter.isReactWarning) {
			        return false;
			      }
			    }
			  }

			  return config.ref !== undefined;
			}

			function hasValidKey(config) {
			  {
			    if (hasOwnProperty.call(config, 'key')) {
			      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;

			      if (getter && getter.isReactWarning) {
			        return false;
			      }
			    }
			  }

			  return config.key !== undefined;
			}

			function warnIfStringRefCannotBeAutoConverted(config, self) {
			  {
			    if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
			      var componentName = getComponentName(ReactCurrentOwner.current.type);

			      if (!didWarnAboutStringRefs[componentName]) {
			        error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);

			        didWarnAboutStringRefs[componentName] = true;
			      }
			    }
			  }
			}

			function defineKeyPropWarningGetter(props, displayName) {
			  {
			    var warnAboutAccessingKey = function () {
			      if (!specialPropKeyWarningShown) {
			        specialPropKeyWarningShown = true;

			        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
			      }
			    };

			    warnAboutAccessingKey.isReactWarning = true;
			    Object.defineProperty(props, 'key', {
			      get: warnAboutAccessingKey,
			      configurable: true
			    });
			  }
			}

			function defineRefPropWarningGetter(props, displayName) {
			  {
			    var warnAboutAccessingRef = function () {
			      if (!specialPropRefWarningShown) {
			        specialPropRefWarningShown = true;

			        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
			      }
			    };

			    warnAboutAccessingRef.isReactWarning = true;
			    Object.defineProperty(props, 'ref', {
			      get: warnAboutAccessingRef,
			      configurable: true
			    });
			  }
			}
			/**
			 * Factory method to create a new React element. This no longer adheres to
			 * the class pattern, so do not use new to call it. Also, instanceof check
			 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
			 * if something is a React Element.
			 *
			 * @param {*} type
			 * @param {*} props
			 * @param {*} key
			 * @param {string|object} ref
			 * @param {*} owner
			 * @param {*} self A *temporary* helper to detect places where `this` is
			 * different from the `owner` when React.createElement is called, so that we
			 * can warn. We want to get rid of owner and replace string `ref`s with arrow
			 * functions, and as long as `this` and owner are the same, there will be no
			 * change in behavior.
			 * @param {*} source An annotation object (added by a transpiler or otherwise)
			 * indicating filename, line number, and/or other information.
			 * @internal
			 */


			var ReactElement = function (type, key, ref, self, source, owner, props) {
			  var element = {
			    // This tag allows us to uniquely identify this as a React Element
			    $$typeof: REACT_ELEMENT_TYPE,
			    // Built-in properties that belong on the element
			    type: type,
			    key: key,
			    ref: ref,
			    props: props,
			    // Record the component responsible for creating this element.
			    _owner: owner
			  };

			  {
			    // The validation flag is currently mutative. We put it on
			    // an external backing store so that we can freeze the whole object.
			    // This can be replaced with a WeakMap once they are implemented in
			    // commonly used development environments.
			    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
			    // the validation flag non-enumerable (where possible, which should
			    // include every environment we run tests in), so the test framework
			    // ignores it.

			    Object.defineProperty(element._store, 'validated', {
			      configurable: false,
			      enumerable: false,
			      writable: true,
			      value: false
			    }); // self and source are DEV only properties.

			    Object.defineProperty(element, '_self', {
			      configurable: false,
			      enumerable: false,
			      writable: false,
			      value: self
			    }); // Two elements created in two different places should be considered
			    // equal for testing purposes and therefore we hide it from enumeration.

			    Object.defineProperty(element, '_source', {
			      configurable: false,
			      enumerable: false,
			      writable: false,
			      value: source
			    });

			    if (Object.freeze) {
			      Object.freeze(element.props);
			      Object.freeze(element);
			    }
			  }

			  return element;
			};
			/**
			 * https://github.com/reactjs/rfcs/pull/107
			 * @param {*} type
			 * @param {object} props
			 * @param {string} key
			 */

			function jsxDEV(type, config, maybeKey, source, self) {
			  {
			    var propName; // Reserved names are extracted

			    var props = {};
			    var key = null;
			    var ref = null; // Currently, key can be spread in as a prop. This causes a potential
			    // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
			    // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
			    // but as an intermediary step, we will use jsxDEV for everything except
			    // <div {...props} key="Hi" />, because we aren't currently able to tell if
			    // key is explicitly declared to be undefined or not.

			    if (maybeKey !== undefined) {
			      key = '' + maybeKey;
			    }

			    if (hasValidKey(config)) {
			      key = '' + config.key;
			    }

			    if (hasValidRef(config)) {
			      ref = config.ref;
			      warnIfStringRefCannotBeAutoConverted(config, self);
			    } // Remaining properties are added to a new props object


			    for (propName in config) {
			      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
			        props[propName] = config[propName];
			      }
			    } // Resolve default props


			    if (type && type.defaultProps) {
			      var defaultProps = type.defaultProps;

			      for (propName in defaultProps) {
			        if (props[propName] === undefined) {
			          props[propName] = defaultProps[propName];
			        }
			      }
			    }

			    if (key || ref) {
			      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;

			      if (key) {
			        defineKeyPropWarningGetter(props, displayName);
			      }

			      if (ref) {
			        defineRefPropWarningGetter(props, displayName);
			      }
			    }

			    return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
			  }
			}

			var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
			var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

			function setCurrentlyValidatingElement$1(element) {
			  {
			    if (element) {
			      var owner = element._owner;
			      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
			      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
			    } else {
			      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
			    }
			  }
			}

			var propTypesMisspellWarningShown;

			{
			  propTypesMisspellWarningShown = false;
			}
			/**
			 * Verifies the object is a ReactElement.
			 * See https://reactjs.org/docs/react-api.html#isvalidelement
			 * @param {?object} object
			 * @return {boolean} True if `object` is a ReactElement.
			 * @final
			 */

			function isValidElement(object) {
			  {
			    return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
			  }
			}

			function getDeclarationErrorAddendum() {
			  {
			    if (ReactCurrentOwner$1.current) {
			      var name = getComponentName(ReactCurrentOwner$1.current.type);

			      if (name) {
			        return '\n\nCheck the render method of `' + name + '`.';
			      }
			    }

			    return '';
			  }
			}

			function getSourceInfoErrorAddendum(source) {
			  {
			    if (source !== undefined) {
			      var fileName = source.fileName.replace(/^.*[\\\/]/, '');
			      var lineNumber = source.lineNumber;
			      return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
			    }

			    return '';
			  }
			}
			/**
			 * Warn if there's no key explicitly set on dynamic arrays of children or
			 * object keys are not valid. This allows us to keep track of children between
			 * updates.
			 */


			var ownerHasKeyUseWarning = {};

			function getCurrentComponentErrorInfo(parentType) {
			  {
			    var info = getDeclarationErrorAddendum();

			    if (!info) {
			      var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;

			      if (parentName) {
			        info = "\n\nCheck the top-level render call using <" + parentName + ">.";
			      }
			    }

			    return info;
			  }
			}
			/**
			 * Warn if the element doesn't have an explicit key assigned to it.
			 * This element is in an array. The array could grow and shrink or be
			 * reordered. All children that haven't already been validated are required to
			 * have a "key" property assigned to it. Error statuses are cached so a warning
			 * will only be shown once.
			 *
			 * @internal
			 * @param {ReactElement} element Element that requires a key.
			 * @param {*} parentType element's parent's type.
			 */


			function validateExplicitKey(element, parentType) {
			  {
			    if (!element._store || element._store.validated || element.key != null) {
			      return;
			    }

			    element._store.validated = true;
			    var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);

			    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
			      return;
			    }

			    ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
			    // property, it may be the creator of the child that's responsible for
			    // assigning it a key.

			    var childOwner = '';

			    if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
			      // Give the component that originally created this child.
			      childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
			    }

			    setCurrentlyValidatingElement$1(element);

			    error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);

			    setCurrentlyValidatingElement$1(null);
			  }
			}
			/**
			 * Ensure that every element either is passed in a static location, in an
			 * array with an explicit keys property defined, or in an object literal
			 * with valid key property.
			 *
			 * @internal
			 * @param {ReactNode} node Statically passed child of any type.
			 * @param {*} parentType node's parent's type.
			 */


			function validateChildKeys(node, parentType) {
			  {
			    if (typeof node !== 'object') {
			      return;
			    }

			    if (Array.isArray(node)) {
			      for (var i = 0; i < node.length; i++) {
			        var child = node[i];

			        if (isValidElement(child)) {
			          validateExplicitKey(child, parentType);
			        }
			      }
			    } else if (isValidElement(node)) {
			      // This element was passed in a valid location.
			      if (node._store) {
			        node._store.validated = true;
			      }
			    } else if (node) {
			      var iteratorFn = getIteratorFn(node);

			      if (typeof iteratorFn === 'function') {
			        // Entry iterators used to provide implicit keys,
			        // but now we print a separate warning for them later.
			        if (iteratorFn !== node.entries) {
			          var iterator = iteratorFn.call(node);
			          var step;

			          while (!(step = iterator.next()).done) {
			            if (isValidElement(step.value)) {
			              validateExplicitKey(step.value, parentType);
			            }
			          }
			        }
			      }
			    }
			  }
			}
			/**
			 * Given an element, validate that its props follow the propTypes definition,
			 * provided by the type.
			 *
			 * @param {ReactElement} element
			 */


			function validatePropTypes(element) {
			  {
			    var type = element.type;

			    if (type === null || type === undefined || typeof type === 'string') {
			      return;
			    }

			    var propTypes;

			    if (typeof type === 'function') {
			      propTypes = type.propTypes;
			    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
			    // Inner props are checked in the reconciler.
			    type.$$typeof === REACT_MEMO_TYPE)) {
			      propTypes = type.propTypes;
			    } else {
			      return;
			    }

			    if (propTypes) {
			      // Intentionally inside to avoid triggering lazy initializers:
			      var name = getComponentName(type);
			      checkPropTypes(propTypes, element.props, 'prop', name, element);
			    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
			      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:

			      var _name = getComponentName(type);

			      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
			    }

			    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
			      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
			    }
			  }
			}
			/**
			 * Given a fragment, validate that it can only be provided with fragment props
			 * @param {ReactElement} fragment
			 */


			function validateFragmentProps(fragment) {
			  {
			    var keys = Object.keys(fragment.props);

			    for (var i = 0; i < keys.length; i++) {
			      var key = keys[i];

			      if (key !== 'children' && key !== 'key') {
			        setCurrentlyValidatingElement$1(fragment);

			        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

			        setCurrentlyValidatingElement$1(null);
			        break;
			      }
			    }

			    if (fragment.ref !== null) {
			      setCurrentlyValidatingElement$1(fragment);

			      error('Invalid attribute `ref` supplied to `React.Fragment`.');

			      setCurrentlyValidatingElement$1(null);
			    }
			  }
			}

			function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
			  {
			    var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
			    // succeed and there will likely be errors in render.

			    if (!validType) {
			      var info = '';

			      if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
			        info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
			      }

			      var sourceInfo = getSourceInfoErrorAddendum(source);

			      if (sourceInfo) {
			        info += sourceInfo;
			      } else {
			        info += getDeclarationErrorAddendum();
			      }

			      var typeString;

			      if (type === null) {
			        typeString = 'null';
			      } else if (Array.isArray(type)) {
			        typeString = 'array';
			      } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
			        typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
			        info = ' Did you accidentally export a JSX literal instead of a component?';
			      } else {
			        typeString = typeof type;
			      }

			      error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
			    }

			    var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
			    // TODO: Drop this when these are no longer allowed as the type argument.

			    if (element == null) {
			      return element;
			    } // Skip key warning if the type isn't valid since our key validation logic
			    // doesn't expect a non-string/function type and can throw confusing errors.
			    // We don't want exception behavior to differ between dev and prod.
			    // (Rendering will throw with a helpful message and as soon as the type is
			    // fixed, the key warnings will appear.)


			    if (validType) {
			      var children = props.children;

			      if (children !== undefined) {
			        if (isStaticChildren) {
			          if (Array.isArray(children)) {
			            for (var i = 0; i < children.length; i++) {
			              validateChildKeys(children[i], type);
			            }

			            if (Object.freeze) {
			              Object.freeze(children);
			            }
			          } else {
			            error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
			          }
			        } else {
			          validateChildKeys(children, type);
			        }
			      }
			    }

			    if (type === exports.Fragment) {
			      validateFragmentProps(element);
			    } else {
			      validatePropTypes(element);
			    }

			    return element;
			  }
			} // These two functions exist to still get child warnings in dev
			// even with the prod transform. This means that jsxDEV is purely
			// opt-in behavior for better messages but that we won't stop
			// giving you warnings if you use production apis.

			function jsxWithValidationStatic(type, props, key) {
			  {
			    return jsxWithValidation(type, props, key, true);
			  }
			}
			function jsxWithValidationDynamic(type, props, key) {
			  {
			    return jsxWithValidation(type, props, key, false);
			  }
			}

			var jsx =  jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
			// for now we can ship identical prod functions

			var jsxs =  jsxWithValidationStatic ;

			exports.jsx = jsx;
			exports.jsxs = jsxs;
			  })();
			} 
		} (reactJsxRuntime_development));
		return reactJsxRuntime_development;
	}

	if (process.env.NODE_ENV === 'production') {
	  jsxRuntime.exports = requireReactJsxRuntime_production_min();
	} else {
	  jsxRuntime.exports = requireReactJsxRuntime_development();
	}

	var jsxRuntimeExports = jsxRuntime.exports;

	function Providers({ model, queryClient, children, }) {
	    return (jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: jsxRuntimeExports.jsx(WidgetViewProvider, { model: model, children: children }) }));
	}

	function styleInject(css, ref) {
	  if ( ref === void 0 ) ref = {};
	  var insertAt = ref.insertAt;

	  if (!css || typeof document === 'undefined') { return; }

	  var head = document.head || document.getElementsByTagName('head')[0];
	  var style = document.createElement('style');
	  style.type = 'text/css';

	  if (insertAt === 'top') {
	    if (head.firstChild) {
	      head.insertBefore(style, head.firstChild);
	    } else {
	      head.appendChild(style);
	    }
	  } else {
	    head.appendChild(style);
	  }

	  if (style.styleSheet) {
	    style.styleSheet.cssText = css;
	  } else {
	    style.appendChild(document.createTextNode(css));
	  }
	}

	var css_248z = "/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static}.flex{display:flex}.grid{display:grid}.h-8{height:2rem}.max-h-8{max-height:2rem}.min-h-8{min-height:2rem}.min-h-full{min-height:100%}.w-full{width:100%}.flex-grow{flex-grow:1}.grid-cols-\\[1fr_auto_1fr\\]{grid-template-columns:1fr auto 1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.border{border-width:var(--jp-border-width,1px)}.border-cellBorder{border-color:var(--jp-cell-editor-border-color,#616161)}.bg-cellBackground{background-color:var(--jp-cell-editor-background,#212121)}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-center{text-align:center}.font-bold{font-weight:700}.italic{font-style:italic}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:text-font3:disabled{color:var(--jp-content-font-color3,hsla(0,0%,100%,.5))}";
	styleInject(css_248z,{"insertAt":"top"});

	/**
	The data structure for documents. @nonabstract
	*/
	let Text$1 = class Text {
	    /**
	    Get the line description around the given position.
	    */
	    lineAt(pos) {
	        if (pos < 0 || pos > this.length)
	            throw new RangeError(`Invalid position ${pos} in document of length ${this.length}`);
	        return this.lineInner(pos, false, 1, 0);
	    }
	    /**
	    Get the description for the given (1-based) line number.
	    */
	    line(n) {
	        if (n < 1 || n > this.lines)
	            throw new RangeError(`Invalid line number ${n} in ${this.lines}-line document`);
	        return this.lineInner(n, true, 1, 0);
	    }
	    /**
	    Replace a range of the text with the given content.
	    */
	    replace(from, to, text) {
	        [from, to] = clip(this, from, to);
	        let parts = [];
	        this.decompose(0, from, parts, 2 /* Open.To */);
	        if (text.length)
	            text.decompose(0, text.length, parts, 1 /* Open.From */ | 2 /* Open.To */);
	        this.decompose(to, this.length, parts, 1 /* Open.From */);
	        return TextNode.from(parts, this.length - (to - from) + text.length);
	    }
	    /**
	    Append another document to this one.
	    */
	    append(other) {
	        return this.replace(this.length, this.length, other);
	    }
	    /**
	    Retrieve the text between the given points.
	    */
	    slice(from, to = this.length) {
	        [from, to] = clip(this, from, to);
	        let parts = [];
	        this.decompose(from, to, parts, 0);
	        return TextNode.from(parts, to - from);
	    }
	    /**
	    Test whether this text is equal to another instance.
	    */
	    eq(other) {
	        if (other == this)
	            return true;
	        if (other.length != this.length || other.lines != this.lines)
	            return false;
	        let start = this.scanIdentical(other, 1), end = this.length - this.scanIdentical(other, -1);
	        let a = new RawTextCursor(this), b = new RawTextCursor(other);
	        for (let skip = start, pos = start;;) {
	            a.next(skip);
	            b.next(skip);
	            skip = 0;
	            if (a.lineBreak != b.lineBreak || a.done != b.done || a.value != b.value)
	                return false;
	            pos += a.value.length;
	            if (a.done || pos >= end)
	                return true;
	        }
	    }
	    /**
	    Iterate over the text. When `dir` is `-1`, iteration happens
	    from end to start. This will return lines and the breaks between
	    them as separate strings.
	    */
	    iter(dir = 1) { return new RawTextCursor(this, dir); }
	    /**
	    Iterate over a range of the text. When `from` > `to`, the
	    iterator will run in reverse.
	    */
	    iterRange(from, to = this.length) { return new PartialTextCursor(this, from, to); }
	    /**
	    Return a cursor that iterates over the given range of lines,
	    _without_ returning the line breaks between, and yielding empty
	    strings for empty lines.
	    
	    When `from` and `to` are given, they should be 1-based line numbers.
	    */
	    iterLines(from, to) {
	        let inner;
	        if (from == null) {
	            inner = this.iter();
	        }
	        else {
	            if (to == null)
	                to = this.lines + 1;
	            let start = this.line(from).from;
	            inner = this.iterRange(start, Math.max(start, to == this.lines + 1 ? this.length : to <= 1 ? 0 : this.line(to - 1).to));
	        }
	        return new LineCursor(inner);
	    }
	    /**
	    Return the document as a string, using newline characters to
	    separate lines.
	    */
	    toString() { return this.sliceString(0); }
	    /**
	    Convert the document to an array of lines (which can be
	    deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).
	    */
	    toJSON() {
	        let lines = [];
	        this.flatten(lines);
	        return lines;
	    }
	    /**
	    @internal
	    */
	    constructor() { }
	    /**
	    Create a `Text` instance for the given array of lines.
	    */
	    static of(text) {
	        if (text.length == 0)
	            throw new RangeError("A document must have at least one line");
	        if (text.length == 1 && !text[0])
	            return Text.empty;
	        return text.length <= 32 /* Tree.Branch */ ? new TextLeaf(text) : TextNode.from(TextLeaf.split(text, []));
	    }
	};
	// Leaves store an array of line strings. There are always line breaks
	// between these strings. Leaves are limited in size and have to be
	// contained in TextNode instances for bigger documents.
	class TextLeaf extends Text$1 {
	    constructor(text, length = textLength(text)) {
	        super();
	        this.text = text;
	        this.length = length;
	    }
	    get lines() { return this.text.length; }
	    get children() { return null; }
	    lineInner(target, isLine, line, offset) {
	        for (let i = 0;; i++) {
	            let string = this.text[i], end = offset + string.length;
	            if ((isLine ? line : end) >= target)
	                return new Line$1(offset, end, line, string);
	            offset = end + 1;
	            line++;
	        }
	    }
	    decompose(from, to, target, open) {
	        let text = from <= 0 && to >= this.length ? this
	            : new TextLeaf(sliceText(this.text, from, to), Math.min(to, this.length) - Math.max(0, from));
	        if (open & 1 /* Open.From */) {
	            let prev = target.pop();
	            let joined = appendText(text.text, prev.text.slice(), 0, text.length);
	            if (joined.length <= 32 /* Tree.Branch */) {
	                target.push(new TextLeaf(joined, prev.length + text.length));
	            }
	            else {
	                let mid = joined.length >> 1;
	                target.push(new TextLeaf(joined.slice(0, mid)), new TextLeaf(joined.slice(mid)));
	            }
	        }
	        else {
	            target.push(text);
	        }
	    }
	    replace(from, to, text) {
	        if (!(text instanceof TextLeaf))
	            return super.replace(from, to, text);
	        [from, to] = clip(this, from, to);
	        let lines = appendText(this.text, appendText(text.text, sliceText(this.text, 0, from)), to);
	        let newLen = this.length + text.length - (to - from);
	        if (lines.length <= 32 /* Tree.Branch */)
	            return new TextLeaf(lines, newLen);
	        return TextNode.from(TextLeaf.split(lines, []), newLen);
	    }
	    sliceString(from, to = this.length, lineSep = "\n") {
	        [from, to] = clip(this, from, to);
	        let result = "";
	        for (let pos = 0, i = 0; pos <= to && i < this.text.length; i++) {
	            let line = this.text[i], end = pos + line.length;
	            if (pos > from && i)
	                result += lineSep;
	            if (from < end && to > pos)
	                result += line.slice(Math.max(0, from - pos), to - pos);
	            pos = end + 1;
	        }
	        return result;
	    }
	    flatten(target) {
	        for (let line of this.text)
	            target.push(line);
	    }
	    scanIdentical() { return 0; }
	    static split(text, target) {
	        let part = [], len = -1;
	        for (let line of text) {
	            part.push(line);
	            len += line.length + 1;
	            if (part.length == 32 /* Tree.Branch */) {
	                target.push(new TextLeaf(part, len));
	                part = [];
	                len = -1;
	            }
	        }
	        if (len > -1)
	            target.push(new TextLeaf(part, len));
	        return target;
	    }
	}
	// Nodes provide the tree structure of the `Text` type. They store a
	// number of other nodes or leaves, taking care to balance themselves
	// on changes. There are implied line breaks _between_ the children of
	// a node (but not before the first or after the last child).
	class TextNode extends Text$1 {
	    constructor(children, length) {
	        super();
	        this.children = children;
	        this.length = length;
	        this.lines = 0;
	        for (let child of children)
	            this.lines += child.lines;
	    }
	    lineInner(target, isLine, line, offset) {
	        for (let i = 0;; i++) {
	            let child = this.children[i], end = offset + child.length, endLine = line + child.lines - 1;
	            if ((isLine ? endLine : end) >= target)
	                return child.lineInner(target, isLine, line, offset);
	            offset = end + 1;
	            line = endLine + 1;
	        }
	    }
	    decompose(from, to, target, open) {
	        for (let i = 0, pos = 0; pos <= to && i < this.children.length; i++) {
	            let child = this.children[i], end = pos + child.length;
	            if (from <= end && to >= pos) {
	                let childOpen = open & ((pos <= from ? 1 /* Open.From */ : 0) | (end >= to ? 2 /* Open.To */ : 0));
	                if (pos >= from && end <= to && !childOpen)
	                    target.push(child);
	                else
	                    child.decompose(from - pos, to - pos, target, childOpen);
	            }
	            pos = end + 1;
	        }
	    }
	    replace(from, to, text) {
	        [from, to] = clip(this, from, to);
	        if (text.lines < this.lines)
	            for (let i = 0, pos = 0; i < this.children.length; i++) {
	                let child = this.children[i], end = pos + child.length;
	                // Fast path: if the change only affects one child and the
	                // child's size remains in the acceptable range, only update
	                // that child
	                if (from >= pos && to <= end) {
	                    let updated = child.replace(from - pos, to - pos, text);
	                    let totalLines = this.lines - child.lines + updated.lines;
	                    if (updated.lines < (totalLines >> (5 /* Tree.BranchShift */ - 1)) &&
	                        updated.lines > (totalLines >> (5 /* Tree.BranchShift */ + 1))) {
	                        let copy = this.children.slice();
	                        copy[i] = updated;
	                        return new TextNode(copy, this.length - (to - from) + text.length);
	                    }
	                    return super.replace(pos, end, updated);
	                }
	                pos = end + 1;
	            }
	        return super.replace(from, to, text);
	    }
	    sliceString(from, to = this.length, lineSep = "\n") {
	        [from, to] = clip(this, from, to);
	        let result = "";
	        for (let i = 0, pos = 0; i < this.children.length && pos <= to; i++) {
	            let child = this.children[i], end = pos + child.length;
	            if (pos > from && i)
	                result += lineSep;
	            if (from < end && to > pos)
	                result += child.sliceString(from - pos, to - pos, lineSep);
	            pos = end + 1;
	        }
	        return result;
	    }
	    flatten(target) {
	        for (let child of this.children)
	            child.flatten(target);
	    }
	    scanIdentical(other, dir) {
	        if (!(other instanceof TextNode))
	            return 0;
	        let length = 0;
	        let [iA, iB, eA, eB] = dir > 0 ? [0, 0, this.children.length, other.children.length]
	            : [this.children.length - 1, other.children.length - 1, -1, -1];
	        for (;; iA += dir, iB += dir) {
	            if (iA == eA || iB == eB)
	                return length;
	            let chA = this.children[iA], chB = other.children[iB];
	            if (chA != chB)
	                return length + chA.scanIdentical(chB, dir);
	            length += chA.length + 1;
	        }
	    }
	    static from(children, length = children.reduce((l, ch) => l + ch.length + 1, -1)) {
	        let lines = 0;
	        for (let ch of children)
	            lines += ch.lines;
	        if (lines < 32 /* Tree.Branch */) {
	            let flat = [];
	            for (let ch of children)
	                ch.flatten(flat);
	            return new TextLeaf(flat, length);
	        }
	        let chunk = Math.max(32 /* Tree.Branch */, lines >> 5 /* Tree.BranchShift */), maxChunk = chunk << 1, minChunk = chunk >> 1;
	        let chunked = [], currentLines = 0, currentLen = -1, currentChunk = [];
	        function add(child) {
	            let last;
	            if (child.lines > maxChunk && child instanceof TextNode) {
	                for (let node of child.children)
	                    add(node);
	            }
	            else if (child.lines > minChunk && (currentLines > minChunk || !currentLines)) {
	                flush();
	                chunked.push(child);
	            }
	            else if (child instanceof TextLeaf && currentLines &&
	                (last = currentChunk[currentChunk.length - 1]) instanceof TextLeaf &&
	                child.lines + last.lines <= 32 /* Tree.Branch */) {
	                currentLines += child.lines;
	                currentLen += child.length + 1;
	                currentChunk[currentChunk.length - 1] = new TextLeaf(last.text.concat(child.text), last.length + 1 + child.length);
	            }
	            else {
	                if (currentLines + child.lines > chunk)
	                    flush();
	                currentLines += child.lines;
	                currentLen += child.length + 1;
	                currentChunk.push(child);
	            }
	        }
	        function flush() {
	            if (currentLines == 0)
	                return;
	            chunked.push(currentChunk.length == 1 ? currentChunk[0] : TextNode.from(currentChunk, currentLen));
	            currentLen = -1;
	            currentLines = currentChunk.length = 0;
	        }
	        for (let child of children)
	            add(child);
	        flush();
	        return chunked.length == 1 ? chunked[0] : new TextNode(chunked, length);
	    }
	}
	Text$1.empty = /*@__PURE__*/new TextLeaf([""], 0);
	function textLength(text) {
	    let length = -1;
	    for (let line of text)
	        length += line.length + 1;
	    return length;
	}
	function appendText(text, target, from = 0, to = 1e9) {
	    for (let pos = 0, i = 0, first = true; i < text.length && pos <= to; i++) {
	        let line = text[i], end = pos + line.length;
	        if (end >= from) {
	            if (end > to)
	                line = line.slice(0, to - pos);
	            if (pos < from)
	                line = line.slice(from - pos);
	            if (first) {
	                target[target.length - 1] += line;
	                first = false;
	            }
	            else
	                target.push(line);
	        }
	        pos = end + 1;
	    }
	    return target;
	}
	function sliceText(text, from, to) {
	    return appendText(text, [""], from, to);
	}
	class RawTextCursor {
	    constructor(text, dir = 1) {
	        this.dir = dir;
	        this.done = false;
	        this.lineBreak = false;
	        this.value = "";
	        this.nodes = [text];
	        this.offsets = [dir > 0 ? 1 : (text instanceof TextLeaf ? text.text.length : text.children.length) << 1];
	    }
	    nextInner(skip, dir) {
	        this.done = this.lineBreak = false;
	        for (;;) {
	            let last = this.nodes.length - 1;
	            let top = this.nodes[last], offsetValue = this.offsets[last], offset = offsetValue >> 1;
	            let size = top instanceof TextLeaf ? top.text.length : top.children.length;
	            if (offset == (dir > 0 ? size : 0)) {
	                if (last == 0) {
	                    this.done = true;
	                    this.value = "";
	                    return this;
	                }
	                if (dir > 0)
	                    this.offsets[last - 1]++;
	                this.nodes.pop();
	                this.offsets.pop();
	            }
	            else if ((offsetValue & 1) == (dir > 0 ? 0 : 1)) {
	                this.offsets[last] += dir;
	                if (skip == 0) {
	                    this.lineBreak = true;
	                    this.value = "\n";
	                    return this;
	                }
	                skip--;
	            }
	            else if (top instanceof TextLeaf) {
	                // Move to the next string
	                let next = top.text[offset + (dir < 0 ? -1 : 0)];
	                this.offsets[last] += dir;
	                if (next.length > Math.max(0, skip)) {
	                    this.value = skip == 0 ? next : dir > 0 ? next.slice(skip) : next.slice(0, next.length - skip);
	                    return this;
	                }
	                skip -= next.length;
	            }
	            else {
	                let next = top.children[offset + (dir < 0 ? -1 : 0)];
	                if (skip > next.length) {
	                    skip -= next.length;
	                    this.offsets[last] += dir;
	                }
	                else {
	                    if (dir < 0)
	                        this.offsets[last]--;
	                    this.nodes.push(next);
	                    this.offsets.push(dir > 0 ? 1 : (next instanceof TextLeaf ? next.text.length : next.children.length) << 1);
	                }
	            }
	        }
	    }
	    next(skip = 0) {
	        if (skip < 0) {
	            this.nextInner(-skip, (-this.dir));
	            skip = this.value.length;
	        }
	        return this.nextInner(skip, this.dir);
	    }
	}
	class PartialTextCursor {
	    constructor(text, start, end) {
	        this.value = "";
	        this.done = false;
	        this.cursor = new RawTextCursor(text, start > end ? -1 : 1);
	        this.pos = start > end ? text.length : 0;
	        this.from = Math.min(start, end);
	        this.to = Math.max(start, end);
	    }
	    nextInner(skip, dir) {
	        if (dir < 0 ? this.pos <= this.from : this.pos >= this.to) {
	            this.value = "";
	            this.done = true;
	            return this;
	        }
	        skip += Math.max(0, dir < 0 ? this.pos - this.to : this.from - this.pos);
	        let limit = dir < 0 ? this.pos - this.from : this.to - this.pos;
	        if (skip > limit)
	            skip = limit;
	        limit -= skip;
	        let { value } = this.cursor.next(skip);
	        this.pos += (value.length + skip) * dir;
	        this.value = value.length <= limit ? value : dir < 0 ? value.slice(value.length - limit) : value.slice(0, limit);
	        this.done = !this.value;
	        return this;
	    }
	    next(skip = 0) {
	        if (skip < 0)
	            skip = Math.max(skip, this.from - this.pos);
	        else if (skip > 0)
	            skip = Math.min(skip, this.to - this.pos);
	        return this.nextInner(skip, this.cursor.dir);
	    }
	    get lineBreak() { return this.cursor.lineBreak && this.value != ""; }
	}
	class LineCursor {
	    constructor(inner) {
	        this.inner = inner;
	        this.afterBreak = true;
	        this.value = "";
	        this.done = false;
	    }
	    next(skip = 0) {
	        let { done, lineBreak, value } = this.inner.next(skip);
	        if (done && this.afterBreak) {
	            this.value = "";
	            this.afterBreak = false;
	        }
	        else if (done) {
	            this.done = true;
	            this.value = "";
	        }
	        else if (lineBreak) {
	            if (this.afterBreak) {
	                this.value = "";
	            }
	            else {
	                this.afterBreak = true;
	                this.next();
	            }
	        }
	        else {
	            this.value = value;
	            this.afterBreak = false;
	        }
	        return this;
	    }
	    get lineBreak() { return false; }
	}
	if (typeof Symbol != "undefined") {
	    Text$1.prototype[Symbol.iterator] = function () { return this.iter(); };
	    RawTextCursor.prototype[Symbol.iterator] = PartialTextCursor.prototype[Symbol.iterator] =
	        LineCursor.prototype[Symbol.iterator] = function () { return this; };
	}
	/**
	This type describes a line in the document. It is created
	on-demand when lines are [queried](https://codemirror.net/6/docs/ref/#state.Text.lineAt).
	*/
	let Line$1 = class Line {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The position of the start of the line.
	    */
	    from, 
	    /**
	    The position at the end of the line (_before_ the line break,
	    or at the end of document for the last line).
	    */
	    to, 
	    /**
	    This line's line number (1-based).
	    */
	    number, 
	    /**
	    The line's content.
	    */
	    text) {
	        this.from = from;
	        this.to = to;
	        this.number = number;
	        this.text = text;
	    }
	    /**
	    The length of the line (not including any line break after it).
	    */
	    get length() { return this.to - this.from; }
	};
	function clip(text, from, to) {
	    from = Math.max(0, Math.min(text.length, from));
	    return [from, Math.max(from, Math.min(text.length, to))];
	}

	// Compressed representation of the Grapheme_Cluster_Break=Extend
	// information from
	// http://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.txt.
	// Each pair of elements represents a range, as an offet from the
	// previous range and a length. Numbers are in base-36, with the empty
	// string being a shorthand for 1.
	let extend = /*@__PURE__*/"lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s => s ? parseInt(s, 36) : 1);
	// Convert offsets into absolute values
	for (let i = 1; i < extend.length; i++)
	    extend[i] += extend[i - 1];
	function isExtendingChar(code) {
	    for (let i = 1; i < extend.length; i += 2)
	        if (extend[i] > code)
	            return extend[i - 1] <= code;
	    return false;
	}
	function isRegionalIndicator(code) {
	    return code >= 0x1F1E6 && code <= 0x1F1FF;
	}
	const ZWJ = 0x200d;
	/**
	Returns a next grapheme cluster break _after_ (not equal to)
	`pos`, if `forward` is true, or before otherwise. Returns `pos`
	itself if no further cluster break is available in the string.
	Moves across surrogate pairs, extending characters (when
	`includeExtending` is true), characters joined with zero-width
	joiners, and flag emoji.
	*/
	function findClusterBreak(str, pos, forward = true, includeExtending = true) {
	    return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);
	}
	function nextClusterBreak(str, pos, includeExtending) {
	    if (pos == str.length)
	        return pos;
	    // If pos is in the middle of a surrogate pair, move to its start
	    if (pos && surrogateLow(str.charCodeAt(pos)) && surrogateHigh(str.charCodeAt(pos - 1)))
	        pos--;
	    let prev = codePointAt(str, pos);
	    pos += codePointSize(prev);
	    while (pos < str.length) {
	        let next = codePointAt(str, pos);
	        if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
	            pos += codePointSize(next);
	            prev = next;
	        }
	        else if (isRegionalIndicator(next)) {
	            let countBefore = 0, i = pos - 2;
	            while (i >= 0 && isRegionalIndicator(codePointAt(str, i))) {
	                countBefore++;
	                i -= 2;
	            }
	            if (countBefore % 2 == 0)
	                break;
	            else
	                pos += 2;
	        }
	        else {
	            break;
	        }
	    }
	    return pos;
	}
	function prevClusterBreak(str, pos, includeExtending) {
	    while (pos > 0) {
	        let found = nextClusterBreak(str, pos - 2, includeExtending);
	        if (found < pos)
	            return found;
	        pos--;
	    }
	    return 0;
	}
	function surrogateLow(ch) { return ch >= 0xDC00 && ch < 0xE000; }
	function surrogateHigh(ch) { return ch >= 0xD800 && ch < 0xDC00; }
	/**
	Find the code point at the given position in a string (like the
	[`codePointAt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt)
	string method).
	*/
	function codePointAt(str, pos) {
	    let code0 = str.charCodeAt(pos);
	    if (!surrogateHigh(code0) || pos + 1 == str.length)
	        return code0;
	    let code1 = str.charCodeAt(pos + 1);
	    if (!surrogateLow(code1))
	        return code0;
	    return ((code0 - 0xd800) << 10) + (code1 - 0xdc00) + 0x10000;
	}
	/**
	Given a Unicode codepoint, return the JavaScript string that
	respresents it (like
	[`String.fromCodePoint`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint)).
	*/
	function fromCodePoint(code) {
	    if (code <= 0xffff)
	        return String.fromCharCode(code);
	    code -= 0x10000;
	    return String.fromCharCode((code >> 10) + 0xd800, (code & 1023) + 0xdc00);
	}
	/**
	The amount of positions a character takes up a JavaScript string.
	*/
	function codePointSize(code) { return code < 0x10000 ? 1 : 2; }

	const DefaultSplit = /\r\n?|\n/;
	/**
	Distinguishes different ways in which positions can be mapped.
	*/
	var MapMode = /*@__PURE__*/(function (MapMode) {
	    /**
	    Map a position to a valid new position, even when its context
	    was deleted.
	    */
	    MapMode[MapMode["Simple"] = 0] = "Simple";
	    /**
	    Return null if deletion happens across the position.
	    */
	    MapMode[MapMode["TrackDel"] = 1] = "TrackDel";
	    /**
	    Return null if the character _before_ the position is deleted.
	    */
	    MapMode[MapMode["TrackBefore"] = 2] = "TrackBefore";
	    /**
	    Return null if the character _after_ the position is deleted.
	    */
	    MapMode[MapMode["TrackAfter"] = 3] = "TrackAfter";
	return MapMode})(MapMode || (MapMode = {}));
	/**
	A change description is a variant of [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet)
	that doesn't store the inserted text. As such, it can't be
	applied, but is cheaper to store and manipulate.
	*/
	class ChangeDesc {
	    // Sections are encoded as pairs of integers. The first is the
	    // length in the current document, and the second is -1 for
	    // unaffected sections, and the length of the replacement content
	    // otherwise. So an insertion would be (0, n>0), a deletion (n>0,
	    // 0), and a replacement two positive numbers.
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    @internal
	    */
	    sections) {
	        this.sections = sections;
	    }
	    /**
	    The length of the document before the change.
	    */
	    get length() {
	        let result = 0;
	        for (let i = 0; i < this.sections.length; i += 2)
	            result += this.sections[i];
	        return result;
	    }
	    /**
	    The length of the document after the change.
	    */
	    get newLength() {
	        let result = 0;
	        for (let i = 0; i < this.sections.length; i += 2) {
	            let ins = this.sections[i + 1];
	            result += ins < 0 ? this.sections[i] : ins;
	        }
	        return result;
	    }
	    /**
	    False when there are actual changes in this set.
	    */
	    get empty() { return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0; }
	    /**
	    Iterate over the unchanged parts left by these changes. `posA`
	    provides the position of the range in the old document, `posB`
	    the new position in the changed document.
	    */
	    iterGaps(f) {
	        for (let i = 0, posA = 0, posB = 0; i < this.sections.length;) {
	            let len = this.sections[i++], ins = this.sections[i++];
	            if (ins < 0) {
	                f(posA, posB, len);
	                posB += len;
	            }
	            else {
	                posB += ins;
	            }
	            posA += len;
	        }
	    }
	    /**
	    Iterate over the ranges changed by these changes. (See
	    [`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a
	    variant that also provides you with the inserted text.)
	    `fromA`/`toA` provides the extent of the change in the starting
	    document, `fromB`/`toB` the extent of the replacement in the
	    changed document.
	    
	    When `individual` is true, adjacent changes (which are kept
	    separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are
	    reported separately.
	    */
	    iterChangedRanges(f, individual = false) {
	        iterChanges(this, f, individual);
	    }
	    /**
	    Get a description of the inverted form of these changes.
	    */
	    get invertedDesc() {
	        let sections = [];
	        for (let i = 0; i < this.sections.length;) {
	            let len = this.sections[i++], ins = this.sections[i++];
	            if (ins < 0)
	                sections.push(len, ins);
	            else
	                sections.push(ins, len);
	        }
	        return new ChangeDesc(sections);
	    }
	    /**
	    Compute the combined effect of applying another set of changes
	    after this one. The length of the document after this set should
	    match the length before `other`.
	    */
	    composeDesc(other) { return this.empty ? other : other.empty ? this : composeSets(this, other); }
	    /**
	    Map this description, which should start with the same document
	    as `other`, over another set of changes, so that it can be
	    applied after it. When `before` is true, map as if the changes
	    in `other` happened before the ones in `this`.
	    */
	    mapDesc(other, before = false) { return other.empty ? this : mapSet(this, other, before); }
	    mapPos(pos, assoc = -1, mode = MapMode.Simple) {
	        let posA = 0, posB = 0;
	        for (let i = 0; i < this.sections.length;) {
	            let len = this.sections[i++], ins = this.sections[i++], endA = posA + len;
	            if (ins < 0) {
	                if (endA > pos)
	                    return posB + (pos - posA);
	                posB += len;
	            }
	            else {
	                if (mode != MapMode.Simple && endA >= pos &&
	                    (mode == MapMode.TrackDel && posA < pos && endA > pos ||
	                        mode == MapMode.TrackBefore && posA < pos ||
	                        mode == MapMode.TrackAfter && endA > pos))
	                    return null;
	                if (endA > pos || endA == pos && assoc < 0 && !len)
	                    return pos == posA || assoc < 0 ? posB : posB + ins;
	                posB += ins;
	            }
	            posA = endA;
	        }
	        if (pos > posA)
	            throw new RangeError(`Position ${pos} is out of range for changeset of length ${posA}`);
	        return posB;
	    }
	    /**
	    Check whether these changes touch a given range. When one of the
	    changes entirely covers the range, the string `"cover"` is
	    returned.
	    */
	    touchesRange(from, to = from) {
	        for (let i = 0, pos = 0; i < this.sections.length && pos <= to;) {
	            let len = this.sections[i++], ins = this.sections[i++], end = pos + len;
	            if (ins >= 0 && pos <= to && end >= from)
	                return pos < from && end > to ? "cover" : true;
	            pos = end;
	        }
	        return false;
	    }
	    /**
	    @internal
	    */
	    toString() {
	        let result = "";
	        for (let i = 0; i < this.sections.length;) {
	            let len = this.sections[i++], ins = this.sections[i++];
	            result += (result ? " " : "") + len + (ins >= 0 ? ":" + ins : "");
	        }
	        return result;
	    }
	    /**
	    Serialize this change desc to a JSON-representable value.
	    */
	    toJSON() { return this.sections; }
	    /**
	    Create a change desc from its JSON representation (as produced
	    by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).
	    */
	    static fromJSON(json) {
	        if (!Array.isArray(json) || json.length % 2 || json.some(a => typeof a != "number"))
	            throw new RangeError("Invalid JSON representation of ChangeDesc");
	        return new ChangeDesc(json);
	    }
	    /**
	    @internal
	    */
	    static create(sections) { return new ChangeDesc(sections); }
	}
	/**
	A change set represents a group of modifications to a document. It
	stores the document length, and can only be applied to documents
	with exactly that length.
	*/
	class ChangeSet extends ChangeDesc {
	    constructor(sections, 
	    /**
	    @internal
	    */
	    inserted) {
	        super(sections);
	        this.inserted = inserted;
	    }
	    /**
	    Apply the changes to a document, returning the modified
	    document.
	    */
	    apply(doc) {
	        if (this.length != doc.length)
	            throw new RangeError("Applying change set to a document with the wrong length");
	        iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);
	        return doc;
	    }
	    mapDesc(other, before = false) { return mapSet(this, other, before, true); }
	    /**
	    Given the document as it existed _before_ the changes, return a
	    change set that represents the inverse of this set, which could
	    be used to go from the document created by the changes back to
	    the document as it existed before the changes.
	    */
	    invert(doc) {
	        let sections = this.sections.slice(), inserted = [];
	        for (let i = 0, pos = 0; i < sections.length; i += 2) {
	            let len = sections[i], ins = sections[i + 1];
	            if (ins >= 0) {
	                sections[i] = ins;
	                sections[i + 1] = len;
	                let index = i >> 1;
	                while (inserted.length < index)
	                    inserted.push(Text$1.empty);
	                inserted.push(len ? doc.slice(pos, pos + len) : Text$1.empty);
	            }
	            pos += len;
	        }
	        return new ChangeSet(sections, inserted);
	    }
	    /**
	    Combine two subsequent change sets into a single set. `other`
	    must start in the document produced by `this`. If `this` goes
	    `docA` → `docB` and `other` represents `docB` → `docC`, the
	    returned value will represent the change `docA` → `docC`.
	    */
	    compose(other) { return this.empty ? other : other.empty ? this : composeSets(this, other, true); }
	    /**
	    Given another change set starting in the same document, maps this
	    change set over the other, producing a new change set that can be
	    applied to the document produced by applying `other`. When
	    `before` is `true`, order changes as if `this` comes before
	    `other`, otherwise (the default) treat `other` as coming first.
	    
	    Given two changes `A` and `B`, `A.compose(B.map(A))` and
	    `B.compose(A.map(B, true))` will produce the same document. This
	    provides a basic form of [operational
	    transformation](https://en.wikipedia.org/wiki/Operational_transformation),
	    and can be used for collaborative editing.
	    */
	    map(other, before = false) { return other.empty ? this : mapSet(this, other, before, true); }
	    /**
	    Iterate over the changed ranges in the document, calling `f` for
	    each, with the range in the original document (`fromA`-`toA`)
	    and the range that replaces it in the new document
	    (`fromB`-`toB`).
	    
	    When `individual` is true, adjacent changes are reported
	    separately.
	    */
	    iterChanges(f, individual = false) {
	        iterChanges(this, f, individual);
	    }
	    /**
	    Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
	    set.
	    */
	    get desc() { return ChangeDesc.create(this.sections); }
	    /**
	    @internal
	    */
	    filter(ranges) {
	        let resultSections = [], resultInserted = [], filteredSections = [];
	        let iter = new SectionIter(this);
	        done: for (let i = 0, pos = 0;;) {
	            let next = i == ranges.length ? 1e9 : ranges[i++];
	            while (pos < next || pos == next && iter.len == 0) {
	                if (iter.done)
	                    break done;
	                let len = Math.min(iter.len, next - pos);
	                addSection(filteredSections, len, -1);
	                let ins = iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0;
	                addSection(resultSections, len, ins);
	                if (ins > 0)
	                    addInsert(resultInserted, resultSections, iter.text);
	                iter.forward(len);
	                pos += len;
	            }
	            let end = ranges[i++];
	            while (pos < end) {
	                if (iter.done)
	                    break done;
	                let len = Math.min(iter.len, end - pos);
	                addSection(resultSections, len, -1);
	                addSection(filteredSections, len, iter.ins == -1 ? -1 : iter.off == 0 ? iter.ins : 0);
	                iter.forward(len);
	                pos += len;
	            }
	        }
	        return { changes: new ChangeSet(resultSections, resultInserted),
	            filtered: ChangeDesc.create(filteredSections) };
	    }
	    /**
	    Serialize this change set to a JSON-representable value.
	    */
	    toJSON() {
	        let parts = [];
	        for (let i = 0; i < this.sections.length; i += 2) {
	            let len = this.sections[i], ins = this.sections[i + 1];
	            if (ins < 0)
	                parts.push(len);
	            else if (ins == 0)
	                parts.push([len]);
	            else
	                parts.push([len].concat(this.inserted[i >> 1].toJSON()));
	        }
	        return parts;
	    }
	    /**
	    Create a change set for the given changes, for a document of the
	    given length, using `lineSep` as line separator.
	    */
	    static of(changes, length, lineSep) {
	        let sections = [], inserted = [], pos = 0;
	        let total = null;
	        function flush(force = false) {
	            if (!force && !sections.length)
	                return;
	            if (pos < length)
	                addSection(sections, length - pos, -1);
	            let set = new ChangeSet(sections, inserted);
	            total = total ? total.compose(set.map(total)) : set;
	            sections = [];
	            inserted = [];
	            pos = 0;
	        }
	        function process(spec) {
	            if (Array.isArray(spec)) {
	                for (let sub of spec)
	                    process(sub);
	            }
	            else if (spec instanceof ChangeSet) {
	                if (spec.length != length)
	                    throw new RangeError(`Mismatched change set length (got ${spec.length}, expected ${length})`);
	                flush();
	                total = total ? total.compose(spec.map(total)) : spec;
	            }
	            else {
	                let { from, to = from, insert } = spec;
	                if (from > to || from < 0 || to > length)
	                    throw new RangeError(`Invalid change range ${from} to ${to} (in doc of length ${length})`);
	                let insText = !insert ? Text$1.empty : typeof insert == "string" ? Text$1.of(insert.split(lineSep || DefaultSplit)) : insert;
	                let insLen = insText.length;
	                if (from == to && insLen == 0)
	                    return;
	                if (from < pos)
	                    flush();
	                if (from > pos)
	                    addSection(sections, from - pos, -1);
	                addSection(sections, to - from, insLen);
	                addInsert(inserted, sections, insText);
	                pos = to;
	            }
	        }
	        process(changes);
	        flush(!total);
	        return total;
	    }
	    /**
	    Create an empty changeset of the given length.
	    */
	    static empty(length) {
	        return new ChangeSet(length ? [length, -1] : [], []);
	    }
	    /**
	    Create a changeset from its JSON representation (as produced by
	    [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).
	    */
	    static fromJSON(json) {
	        if (!Array.isArray(json))
	            throw new RangeError("Invalid JSON representation of ChangeSet");
	        let sections = [], inserted = [];
	        for (let i = 0; i < json.length; i++) {
	            let part = json[i];
	            if (typeof part == "number") {
	                sections.push(part, -1);
	            }
	            else if (!Array.isArray(part) || typeof part[0] != "number" || part.some((e, i) => i && typeof e != "string")) {
	                throw new RangeError("Invalid JSON representation of ChangeSet");
	            }
	            else if (part.length == 1) {
	                sections.push(part[0], 0);
	            }
	            else {
	                while (inserted.length < i)
	                    inserted.push(Text$1.empty);
	                inserted[i] = Text$1.of(part.slice(1));
	                sections.push(part[0], inserted[i].length);
	            }
	        }
	        return new ChangeSet(sections, inserted);
	    }
	    /**
	    @internal
	    */
	    static createSet(sections, inserted) {
	        return new ChangeSet(sections, inserted);
	    }
	}
	function addSection(sections, len, ins, forceJoin = false) {
	    if (len == 0 && ins <= 0)
	        return;
	    let last = sections.length - 2;
	    if (last >= 0 && ins <= 0 && ins == sections[last + 1])
	        sections[last] += len;
	    else if (len == 0 && sections[last] == 0)
	        sections[last + 1] += ins;
	    else if (forceJoin) {
	        sections[last] += len;
	        sections[last + 1] += ins;
	    }
	    else
	        sections.push(len, ins);
	}
	function addInsert(values, sections, value) {
	    if (value.length == 0)
	        return;
	    let index = (sections.length - 2) >> 1;
	    if (index < values.length) {
	        values[values.length - 1] = values[values.length - 1].append(value);
	    }
	    else {
	        while (values.length < index)
	            values.push(Text$1.empty);
	        values.push(value);
	    }
	}
	function iterChanges(desc, f, individual) {
	    let inserted = desc.inserted;
	    for (let posA = 0, posB = 0, i = 0; i < desc.sections.length;) {
	        let len = desc.sections[i++], ins = desc.sections[i++];
	        if (ins < 0) {
	            posA += len;
	            posB += len;
	        }
	        else {
	            let endA = posA, endB = posB, text = Text$1.empty;
	            for (;;) {
	                endA += len;
	                endB += ins;
	                if (ins && inserted)
	                    text = text.append(inserted[(i - 2) >> 1]);
	                if (individual || i == desc.sections.length || desc.sections[i + 1] < 0)
	                    break;
	                len = desc.sections[i++];
	                ins = desc.sections[i++];
	            }
	            f(posA, endA, posB, endB, text);
	            posA = endA;
	            posB = endB;
	        }
	    }
	}
	function mapSet(setA, setB, before, mkSet = false) {
	    // Produce a copy of setA that applies to the document after setB
	    // has been applied (assuming both start at the same document).
	    let sections = [], insert = mkSet ? [] : null;
	    let a = new SectionIter(setA), b = new SectionIter(setB);
	    // Iterate over both sets in parallel. inserted tracks, for changes
	    // in A that have to be processed piece-by-piece, whether their
	    // content has been inserted already, and refers to the section
	    // index.
	    for (let inserted = -1;;) {
	        if (a.ins == -1 && b.ins == -1) {
	            // Move across ranges skipped by both sets.
	            let len = Math.min(a.len, b.len);
	            addSection(sections, len, -1);
	            a.forward(len);
	            b.forward(len);
	        }
	        else if (b.ins >= 0 && (a.ins < 0 || inserted == a.i || a.off == 0 && (b.len < a.len || b.len == a.len && !before))) {
	            // If there's a change in B that comes before the next change in
	            // A (ordered by start pos, then len, then before flag), skip
	            // that (and process any changes in A it covers).
	            let len = b.len;
	            addSection(sections, b.ins, -1);
	            while (len) {
	                let piece = Math.min(a.len, len);
	                if (a.ins >= 0 && inserted < a.i && a.len <= piece) {
	                    addSection(sections, 0, a.ins);
	                    if (insert)
	                        addInsert(insert, sections, a.text);
	                    inserted = a.i;
	                }
	                a.forward(piece);
	                len -= piece;
	            }
	            b.next();
	        }
	        else if (a.ins >= 0) {
	            // Process the part of a change in A up to the start of the next
	            // non-deletion change in B (if overlapping).
	            let len = 0, left = a.len;
	            while (left) {
	                if (b.ins == -1) {
	                    let piece = Math.min(left, b.len);
	                    len += piece;
	                    left -= piece;
	                    b.forward(piece);
	                }
	                else if (b.ins == 0 && b.len < left) {
	                    left -= b.len;
	                    b.next();
	                }
	                else {
	                    break;
	                }
	            }
	            addSection(sections, len, inserted < a.i ? a.ins : 0);
	            if (insert && inserted < a.i)
	                addInsert(insert, sections, a.text);
	            inserted = a.i;
	            a.forward(a.len - left);
	        }
	        else if (a.done && b.done) {
	            return insert ? ChangeSet.createSet(sections, insert) : ChangeDesc.create(sections);
	        }
	        else {
	            throw new Error("Mismatched change set lengths");
	        }
	    }
	}
	function composeSets(setA, setB, mkSet = false) {
	    let sections = [];
	    let insert = mkSet ? [] : null;
	    let a = new SectionIter(setA), b = new SectionIter(setB);
	    for (let open = false;;) {
	        if (a.done && b.done) {
	            return insert ? ChangeSet.createSet(sections, insert) : ChangeDesc.create(sections);
	        }
	        else if (a.ins == 0) { // Deletion in A
	            addSection(sections, a.len, 0, open);
	            a.next();
	        }
	        else if (b.len == 0 && !b.done) { // Insertion in B
	            addSection(sections, 0, b.ins, open);
	            if (insert)
	                addInsert(insert, sections, b.text);
	            b.next();
	        }
	        else if (a.done || b.done) {
	            throw new Error("Mismatched change set lengths");
	        }
	        else {
	            let len = Math.min(a.len2, b.len), sectionLen = sections.length;
	            if (a.ins == -1) {
	                let insB = b.ins == -1 ? -1 : b.off ? 0 : b.ins;
	                addSection(sections, len, insB, open);
	                if (insert && insB)
	                    addInsert(insert, sections, b.text);
	            }
	            else if (b.ins == -1) {
	                addSection(sections, a.off ? 0 : a.len, len, open);
	                if (insert)
	                    addInsert(insert, sections, a.textBit(len));
	            }
	            else {
	                addSection(sections, a.off ? 0 : a.len, b.off ? 0 : b.ins, open);
	                if (insert && !b.off)
	                    addInsert(insert, sections, b.text);
	            }
	            open = (a.ins > len || b.ins >= 0 && b.len > len) && (open || sections.length > sectionLen);
	            a.forward2(len);
	            b.forward(len);
	        }
	    }
	}
	class SectionIter {
	    constructor(set) {
	        this.set = set;
	        this.i = 0;
	        this.next();
	    }
	    next() {
	        let { sections } = this.set;
	        if (this.i < sections.length) {
	            this.len = sections[this.i++];
	            this.ins = sections[this.i++];
	        }
	        else {
	            this.len = 0;
	            this.ins = -2;
	        }
	        this.off = 0;
	    }
	    get done() { return this.ins == -2; }
	    get len2() { return this.ins < 0 ? this.len : this.ins; }
	    get text() {
	        let { inserted } = this.set, index = (this.i - 2) >> 1;
	        return index >= inserted.length ? Text$1.empty : inserted[index];
	    }
	    textBit(len) {
	        let { inserted } = this.set, index = (this.i - 2) >> 1;
	        return index >= inserted.length && !len ? Text$1.empty
	            : inserted[index].slice(this.off, len == null ? undefined : this.off + len);
	    }
	    forward(len) {
	        if (len == this.len)
	            this.next();
	        else {
	            this.len -= len;
	            this.off += len;
	        }
	    }
	    forward2(len) {
	        if (this.ins == -1)
	            this.forward(len);
	        else if (len == this.ins)
	            this.next();
	        else {
	            this.ins -= len;
	            this.off += len;
	        }
	    }
	}

	/**
	A single selection range. When
	[`allowMultipleSelections`](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
	is enabled, a [selection](https://codemirror.net/6/docs/ref/#state.EditorSelection) may hold
	multiple ranges. By default, selections hold exactly one range.
	*/
	class SelectionRange {
	    constructor(
	    /**
	    The lower boundary of the range.
	    */
	    from, 
	    /**
	    The upper boundary of the range.
	    */
	    to, flags) {
	        this.from = from;
	        this.to = to;
	        this.flags = flags;
	    }
	    /**
	    The anchor of the range—the side that doesn't move when you
	    extend it.
	    */
	    get anchor() { return this.flags & 32 /* RangeFlag.Inverted */ ? this.to : this.from; }
	    /**
	    The head of the range, which is moved when the range is
	    [extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).
	    */
	    get head() { return this.flags & 32 /* RangeFlag.Inverted */ ? this.from : this.to; }
	    /**
	    True when `anchor` and `head` are at the same position.
	    */
	    get empty() { return this.from == this.to; }
	    /**
	    If this is a cursor that is explicitly associated with the
	    character on one of its sides, this returns the side. -1 means
	    the character before its position, 1 the character after, and 0
	    means no association.
	    */
	    get assoc() { return this.flags & 8 /* RangeFlag.AssocBefore */ ? -1 : this.flags & 16 /* RangeFlag.AssocAfter */ ? 1 : 0; }
	    /**
	    The bidirectional text level associated with this cursor, if
	    any.
	    */
	    get bidiLevel() {
	        let level = this.flags & 7 /* RangeFlag.BidiLevelMask */;
	        return level == 7 ? null : level;
	    }
	    /**
	    The goal column (stored vertical offset) associated with a
	    cursor. This is used to preserve the vertical position when
	    [moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across
	    lines of different length.
	    */
	    get goalColumn() {
	        let value = this.flags >> 6 /* RangeFlag.GoalColumnOffset */;
	        return value == 16777215 /* RangeFlag.NoGoalColumn */ ? undefined : value;
	    }
	    /**
	    Map this range through a change, producing a valid range in the
	    updated document.
	    */
	    map(change, assoc = -1) {
	        let from, to;
	        if (this.empty) {
	            from = to = change.mapPos(this.from, assoc);
	        }
	        else {
	            from = change.mapPos(this.from, 1);
	            to = change.mapPos(this.to, -1);
	        }
	        return from == this.from && to == this.to ? this : new SelectionRange(from, to, this.flags);
	    }
	    /**
	    Extend this range to cover at least `from` to `to`.
	    */
	    extend(from, to = from) {
	        if (from <= this.anchor && to >= this.anchor)
	            return EditorSelection.range(from, to);
	        let head = Math.abs(from - this.anchor) > Math.abs(to - this.anchor) ? from : to;
	        return EditorSelection.range(this.anchor, head);
	    }
	    /**
	    Compare this range to another range.
	    */
	    eq(other, includeAssoc = false) {
	        return this.anchor == other.anchor && this.head == other.head &&
	            (!includeAssoc || !this.empty || this.assoc == other.assoc);
	    }
	    /**
	    Return a JSON-serializable object representing the range.
	    */
	    toJSON() { return { anchor: this.anchor, head: this.head }; }
	    /**
	    Convert a JSON representation of a range to a `SelectionRange`
	    instance.
	    */
	    static fromJSON(json) {
	        if (!json || typeof json.anchor != "number" || typeof json.head != "number")
	            throw new RangeError("Invalid JSON representation for SelectionRange");
	        return EditorSelection.range(json.anchor, json.head);
	    }
	    /**
	    @internal
	    */
	    static create(from, to, flags) {
	        return new SelectionRange(from, to, flags);
	    }
	}
	/**
	An editor selection holds one or more selection ranges.
	*/
	class EditorSelection {
	    constructor(
	    /**
	    The ranges in the selection, sorted by position. Ranges cannot
	    overlap (but they may touch, if they aren't empty).
	    */
	    ranges, 
	    /**
	    The index of the _main_ range in the selection (which is
	    usually the range that was added last).
	    */
	    mainIndex) {
	        this.ranges = ranges;
	        this.mainIndex = mainIndex;
	    }
	    /**
	    Map a selection through a change. Used to adjust the selection
	    position for changes.
	    */
	    map(change, assoc = -1) {
	        if (change.empty)
	            return this;
	        return EditorSelection.create(this.ranges.map(r => r.map(change, assoc)), this.mainIndex);
	    }
	    /**
	    Compare this selection to another selection. By default, ranges
	    are compared only by position. When `includeAssoc` is true,
	    cursor ranges must also have the same
	    [`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.
	    */
	    eq(other, includeAssoc = false) {
	        if (this.ranges.length != other.ranges.length ||
	            this.mainIndex != other.mainIndex)
	            return false;
	        for (let i = 0; i < this.ranges.length; i++)
	            if (!this.ranges[i].eq(other.ranges[i], includeAssoc))
	                return false;
	        return true;
	    }
	    /**
	    Get the primary selection range. Usually, you should make sure
	    your code applies to _all_ ranges, by using methods like
	    [`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).
	    */
	    get main() { return this.ranges[this.mainIndex]; }
	    /**
	    Make sure the selection only has one range. Returns a selection
	    holding only the main range from this selection.
	    */
	    asSingle() {
	        return this.ranges.length == 1 ? this : new EditorSelection([this.main], 0);
	    }
	    /**
	    Extend this selection with an extra range.
	    */
	    addRange(range, main = true) {
	        return EditorSelection.create([range].concat(this.ranges), main ? 0 : this.mainIndex + 1);
	    }
	    /**
	    Replace a given range with another range, and then normalize the
	    selection to merge and sort ranges if necessary.
	    */
	    replaceRange(range, which = this.mainIndex) {
	        let ranges = this.ranges.slice();
	        ranges[which] = range;
	        return EditorSelection.create(ranges, this.mainIndex);
	    }
	    /**
	    Convert this selection to an object that can be serialized to
	    JSON.
	    */
	    toJSON() {
	        return { ranges: this.ranges.map(r => r.toJSON()), main: this.mainIndex };
	    }
	    /**
	    Create a selection from a JSON representation.
	    */
	    static fromJSON(json) {
	        if (!json || !Array.isArray(json.ranges) || typeof json.main != "number" || json.main >= json.ranges.length)
	            throw new RangeError("Invalid JSON representation for EditorSelection");
	        return new EditorSelection(json.ranges.map((r) => SelectionRange.fromJSON(r)), json.main);
	    }
	    /**
	    Create a selection holding a single range.
	    */
	    static single(anchor, head = anchor) {
	        return new EditorSelection([EditorSelection.range(anchor, head)], 0);
	    }
	    /**
	    Sort and merge the given set of ranges, creating a valid
	    selection.
	    */
	    static create(ranges, mainIndex = 0) {
	        if (ranges.length == 0)
	            throw new RangeError("A selection needs at least one range");
	        for (let pos = 0, i = 0; i < ranges.length; i++) {
	            let range = ranges[i];
	            if (range.empty ? range.from <= pos : range.from < pos)
	                return EditorSelection.normalized(ranges.slice(), mainIndex);
	            pos = range.to;
	        }
	        return new EditorSelection(ranges, mainIndex);
	    }
	    /**
	    Create a cursor selection range at the given position. You can
	    safely ignore the optional arguments in most situations.
	    */
	    static cursor(pos, assoc = 0, bidiLevel, goalColumn) {
	        return SelectionRange.create(pos, pos, (assoc == 0 ? 0 : assoc < 0 ? 8 /* RangeFlag.AssocBefore */ : 16 /* RangeFlag.AssocAfter */) |
	            (bidiLevel == null ? 7 : Math.min(6, bidiLevel)) |
	            ((goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215 /* RangeFlag.NoGoalColumn */) << 6 /* RangeFlag.GoalColumnOffset */));
	    }
	    /**
	    Create a selection range.
	    */
	    static range(anchor, head, goalColumn, bidiLevel) {
	        let flags = ((goalColumn !== null && goalColumn !== void 0 ? goalColumn : 16777215 /* RangeFlag.NoGoalColumn */) << 6 /* RangeFlag.GoalColumnOffset */) |
	            (bidiLevel == null ? 7 : Math.min(6, bidiLevel));
	        return head < anchor ? SelectionRange.create(head, anchor, 32 /* RangeFlag.Inverted */ | 16 /* RangeFlag.AssocAfter */ | flags)
	            : SelectionRange.create(anchor, head, (head > anchor ? 8 /* RangeFlag.AssocBefore */ : 0) | flags);
	    }
	    /**
	    @internal
	    */
	    static normalized(ranges, mainIndex = 0) {
	        let main = ranges[mainIndex];
	        ranges.sort((a, b) => a.from - b.from);
	        mainIndex = ranges.indexOf(main);
	        for (let i = 1; i < ranges.length; i++) {
	            let range = ranges[i], prev = ranges[i - 1];
	            if (range.empty ? range.from <= prev.to : range.from < prev.to) {
	                let from = prev.from, to = Math.max(range.to, prev.to);
	                if (i <= mainIndex)
	                    mainIndex--;
	                ranges.splice(--i, 2, range.anchor > range.head ? EditorSelection.range(to, from) : EditorSelection.range(from, to));
	            }
	        }
	        return new EditorSelection(ranges, mainIndex);
	    }
	}
	function checkSelection(selection, docLength) {
	    for (let range of selection.ranges)
	        if (range.to > docLength)
	            throw new RangeError("Selection points outside of document");
	}

	let nextID = 0;
	/**
	A facet is a labeled value that is associated with an editor
	state. It takes inputs from any number of extensions, and combines
	those into a single output value.

	Examples of uses of facets are the [tab
	size](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize), [editor
	attributes](https://codemirror.net/6/docs/ref/#view.EditorView^editorAttributes), and [update
	listeners](https://codemirror.net/6/docs/ref/#view.EditorView^updateListener).

	Note that `Facet` instances can be used anywhere where
	[`FacetReader`](https://codemirror.net/6/docs/ref/#state.FacetReader) is expected.
	*/
	class Facet {
	    constructor(
	    /**
	    @internal
	    */
	    combine, 
	    /**
	    @internal
	    */
	    compareInput, 
	    /**
	    @internal
	    */
	    compare, isStatic, enables) {
	        this.combine = combine;
	        this.compareInput = compareInput;
	        this.compare = compare;
	        this.isStatic = isStatic;
	        /**
	        @internal
	        */
	        this.id = nextID++;
	        this.default = combine([]);
	        this.extensions = typeof enables == "function" ? enables(this) : enables;
	    }
	    /**
	    Returns a facet reader for this facet, which can be used to
	    [read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.
	    */
	    get reader() { return this; }
	    /**
	    Define a new facet.
	    */
	    static define(config = {}) {
	        return new Facet(config.combine || ((a) => a), config.compareInput || ((a, b) => a === b), config.compare || (!config.combine ? sameArray$1 : (a, b) => a === b), !!config.static, config.enables);
	    }
	    /**
	    Returns an extension that adds the given value to this facet.
	    */
	    of(value) {
	        return new FacetProvider([], this, 0 /* Provider.Static */, value);
	    }
	    /**
	    Create an extension that computes a value for the facet from a
	    state. You must take care to declare the parts of the state that
	    this value depends on, since your function is only called again
	    for a new state when one of those parts changed.
	    
	    In cases where your value depends only on a single field, you'll
	    want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.
	    */
	    compute(deps, get) {
	        if (this.isStatic)
	            throw new Error("Can't compute a static facet");
	        return new FacetProvider(deps, this, 1 /* Provider.Single */, get);
	    }
	    /**
	    Create an extension that computes zero or more values for this
	    facet from a state.
	    */
	    computeN(deps, get) {
	        if (this.isStatic)
	            throw new Error("Can't compute a static facet");
	        return new FacetProvider(deps, this, 2 /* Provider.Multi */, get);
	    }
	    from(field, get) {
	        if (!get)
	            get = x => x;
	        return this.compute([field], state => get(state.field(field)));
	    }
	}
	function sameArray$1(a, b) {
	    return a == b || a.length == b.length && a.every((e, i) => e === b[i]);
	}
	class FacetProvider {
	    constructor(dependencies, facet, type, value) {
	        this.dependencies = dependencies;
	        this.facet = facet;
	        this.type = type;
	        this.value = value;
	        this.id = nextID++;
	    }
	    dynamicSlot(addresses) {
	        var _a;
	        let getter = this.value;
	        let compare = this.facet.compareInput;
	        let id = this.id, idx = addresses[id] >> 1, multi = this.type == 2 /* Provider.Multi */;
	        let depDoc = false, depSel = false, depAddrs = [];
	        for (let dep of this.dependencies) {
	            if (dep == "doc")
	                depDoc = true;
	            else if (dep == "selection")
	                depSel = true;
	            else if ((((_a = addresses[dep.id]) !== null && _a !== void 0 ? _a : 1) & 1) == 0)
	                depAddrs.push(addresses[dep.id]);
	        }
	        return {
	            create(state) {
	                state.values[idx] = getter(state);
	                return 1 /* SlotStatus.Changed */;
	            },
	            update(state, tr) {
	                if ((depDoc && tr.docChanged) || (depSel && (tr.docChanged || tr.selection)) || ensureAll(state, depAddrs)) {
	                    let newVal = getter(state);
	                    if (multi ? !compareArray(newVal, state.values[idx], compare) : !compare(newVal, state.values[idx])) {
	                        state.values[idx] = newVal;
	                        return 1 /* SlotStatus.Changed */;
	                    }
	                }
	                return 0;
	            },
	            reconfigure: (state, oldState) => {
	                let newVal, oldAddr = oldState.config.address[id];
	                if (oldAddr != null) {
	                    let oldVal = getAddr(oldState, oldAddr);
	                    if (this.dependencies.every(dep => {
	                        return dep instanceof Facet ? oldState.facet(dep) === state.facet(dep) :
	                            dep instanceof StateField ? oldState.field(dep, false) == state.field(dep, false) : true;
	                    }) || (multi ? compareArray(newVal = getter(state), oldVal, compare) : compare(newVal = getter(state), oldVal))) {
	                        state.values[idx] = oldVal;
	                        return 0;
	                    }
	                }
	                else {
	                    newVal = getter(state);
	                }
	                state.values[idx] = newVal;
	                return 1 /* SlotStatus.Changed */;
	            }
	        };
	    }
	}
	function compareArray(a, b, compare) {
	    if (a.length != b.length)
	        return false;
	    for (let i = 0; i < a.length; i++)
	        if (!compare(a[i], b[i]))
	            return false;
	    return true;
	}
	function ensureAll(state, addrs) {
	    let changed = false;
	    for (let addr of addrs)
	        if (ensureAddr(state, addr) & 1 /* SlotStatus.Changed */)
	            changed = true;
	    return changed;
	}
	function dynamicFacetSlot(addresses, facet, providers) {
	    let providerAddrs = providers.map(p => addresses[p.id]);
	    let providerTypes = providers.map(p => p.type);
	    let dynamic = providerAddrs.filter(p => !(p & 1));
	    let idx = addresses[facet.id] >> 1;
	    function get(state) {
	        let values = [];
	        for (let i = 0; i < providerAddrs.length; i++) {
	            let value = getAddr(state, providerAddrs[i]);
	            if (providerTypes[i] == 2 /* Provider.Multi */)
	                for (let val of value)
	                    values.push(val);
	            else
	                values.push(value);
	        }
	        return facet.combine(values);
	    }
	    return {
	        create(state) {
	            for (let addr of providerAddrs)
	                ensureAddr(state, addr);
	            state.values[idx] = get(state);
	            return 1 /* SlotStatus.Changed */;
	        },
	        update(state, tr) {
	            if (!ensureAll(state, dynamic))
	                return 0;
	            let value = get(state);
	            if (facet.compare(value, state.values[idx]))
	                return 0;
	            state.values[idx] = value;
	            return 1 /* SlotStatus.Changed */;
	        },
	        reconfigure(state, oldState) {
	            let depChanged = ensureAll(state, providerAddrs);
	            let oldProviders = oldState.config.facets[facet.id], oldValue = oldState.facet(facet);
	            if (oldProviders && !depChanged && sameArray$1(providers, oldProviders)) {
	                state.values[idx] = oldValue;
	                return 0;
	            }
	            let value = get(state);
	            if (facet.compare(value, oldValue)) {
	                state.values[idx] = oldValue;
	                return 0;
	            }
	            state.values[idx] = value;
	            return 1 /* SlotStatus.Changed */;
	        }
	    };
	}
	const initField = /*@__PURE__*/Facet.define({ static: true });
	/**
	Fields can store additional information in an editor state, and
	keep it in sync with the rest of the state.
	*/
	class StateField {
	    constructor(
	    /**
	    @internal
	    */
	    id, createF, updateF, compareF, 
	    /**
	    @internal
	    */
	    spec) {
	        this.id = id;
	        this.createF = createF;
	        this.updateF = updateF;
	        this.compareF = compareF;
	        this.spec = spec;
	        /**
	        @internal
	        */
	        this.provides = undefined;
	    }
	    /**
	    Define a state field.
	    */
	    static define(config) {
	        let field = new StateField(nextID++, config.create, config.update, config.compare || ((a, b) => a === b), config);
	        if (config.provide)
	            field.provides = config.provide(field);
	        return field;
	    }
	    create(state) {
	        let init = state.facet(initField).find(i => i.field == this);
	        return ((init === null || init === void 0 ? void 0 : init.create) || this.createF)(state);
	    }
	    /**
	    @internal
	    */
	    slot(addresses) {
	        let idx = addresses[this.id] >> 1;
	        return {
	            create: (state) => {
	                state.values[idx] = this.create(state);
	                return 1 /* SlotStatus.Changed */;
	            },
	            update: (state, tr) => {
	                let oldVal = state.values[idx];
	                let value = this.updateF(oldVal, tr);
	                if (this.compareF(oldVal, value))
	                    return 0;
	                state.values[idx] = value;
	                return 1 /* SlotStatus.Changed */;
	            },
	            reconfigure: (state, oldState) => {
	                if (oldState.config.address[this.id] != null) {
	                    state.values[idx] = oldState.field(this);
	                    return 0;
	                }
	                state.values[idx] = this.create(state);
	                return 1 /* SlotStatus.Changed */;
	            }
	        };
	    }
	    /**
	    Returns an extension that enables this field and overrides the
	    way it is initialized. Can be useful when you need to provide a
	    non-default starting value for the field.
	    */
	    init(create) {
	        return [this, initField.of({ field: this, create })];
	    }
	    /**
	    State field instances can be used as
	    [`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a
	    given state.
	    */
	    get extension() { return this; }
	}
	const Prec_ = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
	function prec(value) {
	    return (ext) => new PrecExtension(ext, value);
	}
	/**
	By default extensions are registered in the order they are found
	in the flattened form of nested array that was provided.
	Individual extension values can be assigned a precedence to
	override this. Extensions that do not have a precedence set get
	the precedence of the nearest parent with a precedence, or
	[`default`](https://codemirror.net/6/docs/ref/#state.Prec.default) if there is no such parent. The
	final ordering of extensions is determined by first sorting by
	precedence and then by order within each precedence.
	*/
	const Prec = {
	    /**
	    The highest precedence level, for extensions that should end up
	    near the start of the precedence ordering.
	    */
	    highest: /*@__PURE__*/prec(Prec_.highest),
	    /**
	    A higher-than-default precedence, for extensions that should
	    come before those with default precedence.
	    */
	    high: /*@__PURE__*/prec(Prec_.high),
	    /**
	    The default precedence, which is also used for extensions
	    without an explicit precedence.
	    */
	    default: /*@__PURE__*/prec(Prec_.default),
	    /**
	    A lower-than-default precedence.
	    */
	    low: /*@__PURE__*/prec(Prec_.low),
	    /**
	    The lowest precedence level. Meant for things that should end up
	    near the end of the extension order.
	    */
	    lowest: /*@__PURE__*/prec(Prec_.lowest)
	};
	class PrecExtension {
	    constructor(inner, prec) {
	        this.inner = inner;
	        this.prec = prec;
	    }
	}
	/**
	Extension compartments can be used to make a configuration
	dynamic. By [wrapping](https://codemirror.net/6/docs/ref/#state.Compartment.of) part of your
	configuration in a compartment, you can later
	[replace](https://codemirror.net/6/docs/ref/#state.Compartment.reconfigure) that part through a
	transaction.
	*/
	class Compartment {
	    /**
	    Create an instance of this compartment to add to your [state
	    configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
	    */
	    of(ext) { return new CompartmentInstance(this, ext); }
	    /**
	    Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
	    reconfigures this compartment.
	    */
	    reconfigure(content) {
	        return Compartment.reconfigure.of({ compartment: this, extension: content });
	    }
	    /**
	    Get the current content of the compartment in the state, or
	    `undefined` if it isn't present.
	    */
	    get(state) {
	        return state.config.compartments.get(this);
	    }
	}
	class CompartmentInstance {
	    constructor(compartment, inner) {
	        this.compartment = compartment;
	        this.inner = inner;
	    }
	}
	class Configuration {
	    constructor(base, compartments, dynamicSlots, address, staticValues, facets) {
	        this.base = base;
	        this.compartments = compartments;
	        this.dynamicSlots = dynamicSlots;
	        this.address = address;
	        this.staticValues = staticValues;
	        this.facets = facets;
	        this.statusTemplate = [];
	        while (this.statusTemplate.length < dynamicSlots.length)
	            this.statusTemplate.push(0 /* SlotStatus.Unresolved */);
	    }
	    staticFacet(facet) {
	        let addr = this.address[facet.id];
	        return addr == null ? facet.default : this.staticValues[addr >> 1];
	    }
	    static resolve(base, compartments, oldState) {
	        let fields = [];
	        let facets = Object.create(null);
	        let newCompartments = new Map();
	        for (let ext of flatten(base, compartments, newCompartments)) {
	            if (ext instanceof StateField)
	                fields.push(ext);
	            else
	                (facets[ext.facet.id] || (facets[ext.facet.id] = [])).push(ext);
	        }
	        let address = Object.create(null);
	        let staticValues = [];
	        let dynamicSlots = [];
	        for (let field of fields) {
	            address[field.id] = dynamicSlots.length << 1;
	            dynamicSlots.push(a => field.slot(a));
	        }
	        let oldFacets = oldState === null || oldState === void 0 ? void 0 : oldState.config.facets;
	        for (let id in facets) {
	            let providers = facets[id], facet = providers[0].facet;
	            let oldProviders = oldFacets && oldFacets[id] || [];
	            if (providers.every(p => p.type == 0 /* Provider.Static */)) {
	                address[facet.id] = (staticValues.length << 1) | 1;
	                if (sameArray$1(oldProviders, providers)) {
	                    staticValues.push(oldState.facet(facet));
	                }
	                else {
	                    let value = facet.combine(providers.map(p => p.value));
	                    staticValues.push(oldState && facet.compare(value, oldState.facet(facet)) ? oldState.facet(facet) : value);
	                }
	            }
	            else {
	                for (let p of providers) {
	                    if (p.type == 0 /* Provider.Static */) {
	                        address[p.id] = (staticValues.length << 1) | 1;
	                        staticValues.push(p.value);
	                    }
	                    else {
	                        address[p.id] = dynamicSlots.length << 1;
	                        dynamicSlots.push(a => p.dynamicSlot(a));
	                    }
	                }
	                address[facet.id] = dynamicSlots.length << 1;
	                dynamicSlots.push(a => dynamicFacetSlot(a, facet, providers));
	            }
	        }
	        let dynamic = dynamicSlots.map(f => f(address));
	        return new Configuration(base, newCompartments, dynamic, address, staticValues, facets);
	    }
	}
	function flatten(extension, compartments, newCompartments) {
	    let result = [[], [], [], [], []];
	    let seen = new Map();
	    function inner(ext, prec) {
	        let known = seen.get(ext);
	        if (known != null) {
	            if (known <= prec)
	                return;
	            let found = result[known].indexOf(ext);
	            if (found > -1)
	                result[known].splice(found, 1);
	            if (ext instanceof CompartmentInstance)
	                newCompartments.delete(ext.compartment);
	        }
	        seen.set(ext, prec);
	        if (Array.isArray(ext)) {
	            for (let e of ext)
	                inner(e, prec);
	        }
	        else if (ext instanceof CompartmentInstance) {
	            if (newCompartments.has(ext.compartment))
	                throw new RangeError(`Duplicate use of compartment in extensions`);
	            let content = compartments.get(ext.compartment) || ext.inner;
	            newCompartments.set(ext.compartment, content);
	            inner(content, prec);
	        }
	        else if (ext instanceof PrecExtension) {
	            inner(ext.inner, ext.prec);
	        }
	        else if (ext instanceof StateField) {
	            result[prec].push(ext);
	            if (ext.provides)
	                inner(ext.provides, prec);
	        }
	        else if (ext instanceof FacetProvider) {
	            result[prec].push(ext);
	            if (ext.facet.extensions)
	                inner(ext.facet.extensions, Prec_.default);
	        }
	        else {
	            let content = ext.extension;
	            if (!content)
	                throw new Error(`Unrecognized extension value in extension set (${ext}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
	            inner(content, prec);
	        }
	    }
	    inner(extension, Prec_.default);
	    return result.reduce((a, b) => a.concat(b));
	}
	function ensureAddr(state, addr) {
	    if (addr & 1)
	        return 2 /* SlotStatus.Computed */;
	    let idx = addr >> 1;
	    let status = state.status[idx];
	    if (status == 4 /* SlotStatus.Computing */)
	        throw new Error("Cyclic dependency between fields and/or facets");
	    if (status & 2 /* SlotStatus.Computed */)
	        return status;
	    state.status[idx] = 4 /* SlotStatus.Computing */;
	    let changed = state.computeSlot(state, state.config.dynamicSlots[idx]);
	    return state.status[idx] = 2 /* SlotStatus.Computed */ | changed;
	}
	function getAddr(state, addr) {
	    return addr & 1 ? state.config.staticValues[addr >> 1] : state.values[addr >> 1];
	}

	const languageData = /*@__PURE__*/Facet.define();
	const allowMultipleSelections = /*@__PURE__*/Facet.define({
	    combine: values => values.some(v => v),
	    static: true
	});
	const lineSeparator = /*@__PURE__*/Facet.define({
	    combine: values => values.length ? values[0] : undefined,
	    static: true
	});
	const changeFilter = /*@__PURE__*/Facet.define();
	const transactionFilter = /*@__PURE__*/Facet.define();
	const transactionExtender = /*@__PURE__*/Facet.define();
	const readOnly = /*@__PURE__*/Facet.define({
	    combine: values => values.length ? values[0] : false
	});

	/**
	Annotations are tagged values that are used to add metadata to
	transactions in an extensible way. They should be used to model
	things that effect the entire transaction (such as its [time
	stamp](https://codemirror.net/6/docs/ref/#state.Transaction^time) or information about its
	[origin](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent)). For effects that happen
	_alongside_ the other changes made by the transaction, [state
	effects](https://codemirror.net/6/docs/ref/#state.StateEffect) are more appropriate.
	*/
	class Annotation {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The annotation type.
	    */
	    type, 
	    /**
	    The value of this annotation.
	    */
	    value) {
	        this.type = type;
	        this.value = value;
	    }
	    /**
	    Define a new type of annotation.
	    */
	    static define() { return new AnnotationType(); }
	}
	/**
	Marker that identifies a type of [annotation](https://codemirror.net/6/docs/ref/#state.Annotation).
	*/
	class AnnotationType {
	    /**
	    Create an instance of this annotation.
	    */
	    of(value) { return new Annotation(this, value); }
	}
	/**
	Representation of a type of state effect. Defined with
	[`StateEffect.define`](https://codemirror.net/6/docs/ref/#state.StateEffect^define).
	*/
	class StateEffectType {
	    /**
	    @internal
	    */
	    constructor(
	    // The `any` types in these function types are there to work
	    // around TypeScript issue #37631, where the type guard on
	    // `StateEffect.is` mysteriously stops working when these properly
	    // have type `Value`.
	    /**
	    @internal
	    */
	    map) {
	        this.map = map;
	    }
	    /**
	    Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this
	    type.
	    */
	    of(value) { return new StateEffect(this, value); }
	}
	/**
	State effects can be used to represent additional effects
	associated with a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction.effects). They
	are often useful to model changes to custom [state
	fields](https://codemirror.net/6/docs/ref/#state.StateField), when those changes aren't implicit in
	document or selection changes.
	*/
	class StateEffect {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    @internal
	    */
	    type, 
	    /**
	    The value of this effect.
	    */
	    value) {
	        this.type = type;
	        this.value = value;
	    }
	    /**
	    Map this effect through a position mapping. Will return
	    `undefined` when that ends up deleting the effect.
	    */
	    map(mapping) {
	        let mapped = this.type.map(this.value, mapping);
	        return mapped === undefined ? undefined : mapped == this.value ? this : new StateEffect(this.type, mapped);
	    }
	    /**
	    Tells you whether this effect object is of a given
	    [type](https://codemirror.net/6/docs/ref/#state.StateEffectType).
	    */
	    is(type) { return this.type == type; }
	    /**
	    Define a new effect type. The type parameter indicates the type
	    of values that his effect holds. It should be a type that
	    doesn't include `undefined`, since that is used in
	    [mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
	    removed.
	    */
	    static define(spec = {}) {
	        return new StateEffectType(spec.map || (v => v));
	    }
	    /**
	    Map an array of effects through a change set.
	    */
	    static mapEffects(effects, mapping) {
	        if (!effects.length)
	            return effects;
	        let result = [];
	        for (let effect of effects) {
	            let mapped = effect.map(mapping);
	            if (mapped)
	                result.push(mapped);
	        }
	        return result;
	    }
	}
	/**
	This effect can be used to reconfigure the root extensions of
	the editor. Doing this will discard any extensions
	[appended](https://codemirror.net/6/docs/ref/#state.StateEffect^appendConfig), but does not reset
	the content of [reconfigured](https://codemirror.net/6/docs/ref/#state.Compartment.reconfigure)
	compartments.
	*/
	StateEffect.reconfigure = /*@__PURE__*/StateEffect.define();
	/**
	Append extensions to the top-level configuration of the editor.
	*/
	StateEffect.appendConfig = /*@__PURE__*/StateEffect.define();
	/**
	Changes to the editor state are grouped into transactions.
	Typically, a user action creates a single transaction, which may
	contain any number of document changes, may change the selection,
	or have other effects. Create a transaction by calling
	[`EditorState.update`](https://codemirror.net/6/docs/ref/#state.EditorState.update), or immediately
	dispatch one by calling
	[`EditorView.dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch).
	*/
	class Transaction {
	    constructor(
	    /**
	    The state from which the transaction starts.
	    */
	    startState, 
	    /**
	    The document changes made by this transaction.
	    */
	    changes, 
	    /**
	    The selection set by this transaction, or undefined if it
	    doesn't explicitly set a selection.
	    */
	    selection, 
	    /**
	    The effects added to the transaction.
	    */
	    effects, 
	    /**
	    @internal
	    */
	    annotations, 
	    /**
	    Whether the selection should be scrolled into view after this
	    transaction is dispatched.
	    */
	    scrollIntoView) {
	        this.startState = startState;
	        this.changes = changes;
	        this.selection = selection;
	        this.effects = effects;
	        this.annotations = annotations;
	        this.scrollIntoView = scrollIntoView;
	        /**
	        @internal
	        */
	        this._doc = null;
	        /**
	        @internal
	        */
	        this._state = null;
	        if (selection)
	            checkSelection(selection, changes.newLength);
	        if (!annotations.some((a) => a.type == Transaction.time))
	            this.annotations = annotations.concat(Transaction.time.of(Date.now()));
	    }
	    /**
	    @internal
	    */
	    static create(startState, changes, selection, effects, annotations, scrollIntoView) {
	        return new Transaction(startState, changes, selection, effects, annotations, scrollIntoView);
	    }
	    /**
	    The new document produced by the transaction. Contrary to
	    [`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't
	    force the entire new state to be computed right away, so it is
	    recommended that [transaction
	    filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter
	    when they need to look at the new document.
	    */
	    get newDoc() {
	        return this._doc || (this._doc = this.changes.apply(this.startState.doc));
	    }
	    /**
	    The new selection produced by the transaction. If
	    [`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,
	    this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's
	    current selection through the changes made by the transaction.
	    */
	    get newSelection() {
	        return this.selection || this.startState.selection.map(this.changes);
	    }
	    /**
	    The new state created by the transaction. Computed on demand
	    (but retained for subsequent access), so it is recommended not to
	    access it in [transaction
	    filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.
	    */
	    get state() {
	        if (!this._state)
	            this.startState.applyTransaction(this);
	        return this._state;
	    }
	    /**
	    Get the value of the given annotation type, if any.
	    */
	    annotation(type) {
	        for (let ann of this.annotations)
	            if (ann.type == type)
	                return ann.value;
	        return undefined;
	    }
	    /**
	    Indicates whether the transaction changed the document.
	    */
	    get docChanged() { return !this.changes.empty; }
	    /**
	    Indicates whether this transaction reconfigures the state
	    (through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or
	    with a top-level configuration
	    [effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).
	    */
	    get reconfigured() { return this.startState.config != this.state.config; }
	    /**
	    Returns true if the transaction has a [user
	    event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to
	    or more specific than `event`. For example, if the transaction
	    has `"select.pointer"` as user event, `"select"` and
	    `"select.pointer"` will match it.
	    */
	    isUserEvent(event) {
	        let e = this.annotation(Transaction.userEvent);
	        return !!(e && (e == event || e.length > event.length && e.slice(0, event.length) == event && e[event.length] == "."));
	    }
	}
	/**
	Annotation used to store transaction timestamps. Automatically
	added to every transaction, holding `Date.now()`.
	*/
	Transaction.time = /*@__PURE__*/Annotation.define();
	/**
	Annotation used to associate a transaction with a user interface
	event. Holds a string identifying the event, using a
	dot-separated format to support attaching more specific
	information. The events used by the core libraries are:

	 - `"input"` when content is entered
	   - `"input.type"` for typed input
	     - `"input.type.compose"` for composition
	   - `"input.paste"` for pasted input
	   - `"input.drop"` when adding content with drag-and-drop
	   - `"input.complete"` when autocompleting
	 - `"delete"` when the user deletes content
	   - `"delete.selection"` when deleting the selection
	   - `"delete.forward"` when deleting forward from the selection
	   - `"delete.backward"` when deleting backward from the selection
	   - `"delete.cut"` when cutting to the clipboard
	 - `"move"` when content is moved
	   - `"move.drop"` when content is moved within the editor through drag-and-drop
	 - `"select"` when explicitly changing the selection
	   - `"select.pointer"` when selecting with a mouse or other pointing device
	 - `"undo"` and `"redo"` for history actions

	Use [`isUserEvent`](https://codemirror.net/6/docs/ref/#state.Transaction.isUserEvent) to check
	whether the annotation matches a given event.
	*/
	Transaction.userEvent = /*@__PURE__*/Annotation.define();
	/**
	Annotation indicating whether a transaction should be added to
	the undo history or not.
	*/
	Transaction.addToHistory = /*@__PURE__*/Annotation.define();
	/**
	Annotation indicating (when present and true) that a transaction
	represents a change made by some other actor, not the user. This
	is used, for example, to tag other people's changes in
	collaborative editing.
	*/
	Transaction.remote = /*@__PURE__*/Annotation.define();
	function joinRanges(a, b) {
	    let result = [];
	    for (let iA = 0, iB = 0;;) {
	        let from, to;
	        if (iA < a.length && (iB == b.length || b[iB] >= a[iA])) {
	            from = a[iA++];
	            to = a[iA++];
	        }
	        else if (iB < b.length) {
	            from = b[iB++];
	            to = b[iB++];
	        }
	        else
	            return result;
	        if (!result.length || result[result.length - 1] < from)
	            result.push(from, to);
	        else if (result[result.length - 1] < to)
	            result[result.length - 1] = to;
	    }
	}
	function mergeTransaction(a, b, sequential) {
	    var _a;
	    let mapForA, mapForB, changes;
	    if (sequential) {
	        mapForA = b.changes;
	        mapForB = ChangeSet.empty(b.changes.length);
	        changes = a.changes.compose(b.changes);
	    }
	    else {
	        mapForA = b.changes.map(a.changes);
	        mapForB = a.changes.mapDesc(b.changes, true);
	        changes = a.changes.compose(mapForA);
	    }
	    return {
	        changes,
	        selection: b.selection ? b.selection.map(mapForB) : (_a = a.selection) === null || _a === void 0 ? void 0 : _a.map(mapForA),
	        effects: StateEffect.mapEffects(a.effects, mapForA).concat(StateEffect.mapEffects(b.effects, mapForB)),
	        annotations: a.annotations.length ? a.annotations.concat(b.annotations) : b.annotations,
	        scrollIntoView: a.scrollIntoView || b.scrollIntoView
	    };
	}
	function resolveTransactionInner(state, spec, docSize) {
	    let sel = spec.selection, annotations = asArray$1(spec.annotations);
	    if (spec.userEvent)
	        annotations = annotations.concat(Transaction.userEvent.of(spec.userEvent));
	    return {
	        changes: spec.changes instanceof ChangeSet ? spec.changes
	            : ChangeSet.of(spec.changes || [], docSize, state.facet(lineSeparator)),
	        selection: sel && (sel instanceof EditorSelection ? sel : EditorSelection.single(sel.anchor, sel.head)),
	        effects: asArray$1(spec.effects),
	        annotations,
	        scrollIntoView: !!spec.scrollIntoView
	    };
	}
	function resolveTransaction(state, specs, filter) {
	    let s = resolveTransactionInner(state, specs.length ? specs[0] : {}, state.doc.length);
	    if (specs.length && specs[0].filter === false)
	        filter = false;
	    for (let i = 1; i < specs.length; i++) {
	        if (specs[i].filter === false)
	            filter = false;
	        let seq = !!specs[i].sequential;
	        s = mergeTransaction(s, resolveTransactionInner(state, specs[i], seq ? s.changes.newLength : state.doc.length), seq);
	    }
	    let tr = Transaction.create(state, s.changes, s.selection, s.effects, s.annotations, s.scrollIntoView);
	    return extendTransaction(filter ? filterTransaction(tr) : tr);
	}
	// Finish a transaction by applying filters if necessary.
	function filterTransaction(tr) {
	    let state = tr.startState;
	    // Change filters
	    let result = true;
	    for (let filter of state.facet(changeFilter)) {
	        let value = filter(tr);
	        if (value === false) {
	            result = false;
	            break;
	        }
	        if (Array.isArray(value))
	            result = result === true ? value : joinRanges(result, value);
	    }
	    if (result !== true) {
	        let changes, back;
	        if (result === false) {
	            back = tr.changes.invertedDesc;
	            changes = ChangeSet.empty(state.doc.length);
	        }
	        else {
	            let filtered = tr.changes.filter(result);
	            changes = filtered.changes;
	            back = filtered.filtered.mapDesc(filtered.changes).invertedDesc;
	        }
	        tr = Transaction.create(state, changes, tr.selection && tr.selection.map(back), StateEffect.mapEffects(tr.effects, back), tr.annotations, tr.scrollIntoView);
	    }
	    // Transaction filters
	    let filters = state.facet(transactionFilter);
	    for (let i = filters.length - 1; i >= 0; i--) {
	        let filtered = filters[i](tr);
	        if (filtered instanceof Transaction)
	            tr = filtered;
	        else if (Array.isArray(filtered) && filtered.length == 1 && filtered[0] instanceof Transaction)
	            tr = filtered[0];
	        else
	            tr = resolveTransaction(state, asArray$1(filtered), false);
	    }
	    return tr;
	}
	function extendTransaction(tr) {
	    let state = tr.startState, extenders = state.facet(transactionExtender), spec = tr;
	    for (let i = extenders.length - 1; i >= 0; i--) {
	        let extension = extenders[i](tr);
	        if (extension && Object.keys(extension).length)
	            spec = mergeTransaction(spec, resolveTransactionInner(state, extension, tr.changes.newLength), true);
	    }
	    return spec == tr ? tr : Transaction.create(state, tr.changes, tr.selection, spec.effects, spec.annotations, spec.scrollIntoView);
	}
	const none$3 = [];
	function asArray$1(value) {
	    return value == null ? none$3 : Array.isArray(value) ? value : [value];
	}

	/**
	The categories produced by a [character
	categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer). These are used
	do things like selecting by word.
	*/
	var CharCategory = /*@__PURE__*/(function (CharCategory) {
	    /**
	    Word characters.
	    */
	    CharCategory[CharCategory["Word"] = 0] = "Word";
	    /**
	    Whitespace.
	    */
	    CharCategory[CharCategory["Space"] = 1] = "Space";
	    /**
	    Anything else.
	    */
	    CharCategory[CharCategory["Other"] = 2] = "Other";
	return CharCategory})(CharCategory || (CharCategory = {}));
	const nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
	let wordChar$1;
	try {
	    wordChar$1 = /*@__PURE__*/new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
	}
	catch (_) { }
	function hasWordChar(str) {
	    if (wordChar$1)
	        return wordChar$1.test(str);
	    for (let i = 0; i < str.length; i++) {
	        let ch = str[i];
	        if (/\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch)))
	            return true;
	    }
	    return false;
	}
	function makeCategorizer(wordChars) {
	    return (char) => {
	        if (!/\S/.test(char))
	            return CharCategory.Space;
	        if (hasWordChar(char))
	            return CharCategory.Word;
	        for (let i = 0; i < wordChars.length; i++)
	            if (char.indexOf(wordChars[i]) > -1)
	                return CharCategory.Word;
	        return CharCategory.Other;
	    };
	}

	/**
	The editor state class is a persistent (immutable) data structure.
	To update a state, you [create](https://codemirror.net/6/docs/ref/#state.EditorState.update) a
	[transaction](https://codemirror.net/6/docs/ref/#state.Transaction), which produces a _new_ state
	instance, without modifying the original object.

	As such, _never_ mutate properties of a state directly. That'll
	just break things.
	*/
	class EditorState {
	    constructor(
	    /**
	    @internal
	    */
	    config, 
	    /**
	    The current document.
	    */
	    doc, 
	    /**
	    The current selection.
	    */
	    selection, 
	    /**
	    @internal
	    */
	    values, computeSlot, tr) {
	        this.config = config;
	        this.doc = doc;
	        this.selection = selection;
	        this.values = values;
	        this.status = config.statusTemplate.slice();
	        this.computeSlot = computeSlot;
	        // Fill in the computed state immediately, so that further queries
	        // for it made during the update return this state
	        if (tr)
	            tr._state = this;
	        for (let i = 0; i < this.config.dynamicSlots.length; i++)
	            ensureAddr(this, i << 1);
	        this.computeSlot = null;
	    }
	    field(field, require = true) {
	        let addr = this.config.address[field.id];
	        if (addr == null) {
	            if (require)
	                throw new RangeError("Field is not present in this state");
	            return undefined;
	        }
	        ensureAddr(this, addr);
	        return getAddr(this, addr);
	    }
	    /**
	    Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
	    state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)
	    can be passed. Unless
	    [`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the
	    [changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec
	    are assumed to start in the _current_ document (not the document
	    produced by previous specs), and its
	    [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and
	    [effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer
	    to the document created by its _own_ changes. The resulting
	    transaction contains the combined effect of all the different
	    specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later
	    specs take precedence over earlier ones.
	    */
	    update(...specs) {
	        return resolveTransaction(this, specs, true);
	    }
	    /**
	    @internal
	    */
	    applyTransaction(tr) {
	        let conf = this.config, { base, compartments } = conf;
	        for (let effect of tr.effects) {
	            if (effect.is(Compartment.reconfigure)) {
	                if (conf) {
	                    compartments = new Map;
	                    conf.compartments.forEach((val, key) => compartments.set(key, val));
	                    conf = null;
	                }
	                compartments.set(effect.value.compartment, effect.value.extension);
	            }
	            else if (effect.is(StateEffect.reconfigure)) {
	                conf = null;
	                base = effect.value;
	            }
	            else if (effect.is(StateEffect.appendConfig)) {
	                conf = null;
	                base = asArray$1(base).concat(effect.value);
	            }
	        }
	        let startValues;
	        if (!conf) {
	            conf = Configuration.resolve(base, compartments, this);
	            let intermediateState = new EditorState(conf, this.doc, this.selection, conf.dynamicSlots.map(() => null), (state, slot) => slot.reconfigure(state, this), null);
	            startValues = intermediateState.values;
	        }
	        else {
	            startValues = tr.startState.values.slice();
	        }
	        let selection = tr.startState.facet(allowMultipleSelections) ? tr.newSelection : tr.newSelection.asSingle();
	        new EditorState(conf, tr.newDoc, selection, startValues, (state, slot) => slot.update(state, tr), tr);
	    }
	    /**
	    Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
	    replaces every selection range with the given content.
	    */
	    replaceSelection(text) {
	        if (typeof text == "string")
	            text = this.toText(text);
	        return this.changeByRange(range => ({ changes: { from: range.from, to: range.to, insert: text },
	            range: EditorSelection.cursor(range.from + text.length) }));
	    }
	    /**
	    Create a set of changes and a new selection by running the given
	    function for each range in the active selection. The function
	    can return an optional set of changes (in the coordinate space
	    of the start document), plus an updated range (in the coordinate
	    space of the document produced by the call's own changes). This
	    method will merge all the changes and ranges into a single
	    changeset and selection, and return it as a [transaction
	    spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to
	    [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
	    */
	    changeByRange(f) {
	        let sel = this.selection;
	        let result1 = f(sel.ranges[0]);
	        let changes = this.changes(result1.changes), ranges = [result1.range];
	        let effects = asArray$1(result1.effects);
	        for (let i = 1; i < sel.ranges.length; i++) {
	            let result = f(sel.ranges[i]);
	            let newChanges = this.changes(result.changes), newMapped = newChanges.map(changes);
	            for (let j = 0; j < i; j++)
	                ranges[j] = ranges[j].map(newMapped);
	            let mapBy = changes.mapDesc(newChanges, true);
	            ranges.push(result.range.map(mapBy));
	            changes = changes.compose(newMapped);
	            effects = StateEffect.mapEffects(effects, newMapped).concat(StateEffect.mapEffects(asArray$1(result.effects), mapBy));
	        }
	        return {
	            changes,
	            selection: EditorSelection.create(ranges, sel.mainIndex),
	            effects
	        };
	    }
	    /**
	    Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change
	    description, taking the state's document length and line
	    separator into account.
	    */
	    changes(spec = []) {
	        if (spec instanceof ChangeSet)
	            return spec;
	        return ChangeSet.of(spec, this.doc.length, this.facet(EditorState.lineSeparator));
	    }
	    /**
	    Using the state's [line
	    separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a
	    [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
	    */
	    toText(string) {
	        return Text$1.of(string.split(this.facet(EditorState.lineSeparator) || DefaultSplit));
	    }
	    /**
	    Return the given range of the document as a string.
	    */
	    sliceDoc(from = 0, to = this.doc.length) {
	        return this.doc.sliceString(from, to, this.lineBreak);
	    }
	    /**
	    Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).
	    */
	    facet(facet) {
	        let addr = this.config.address[facet.id];
	        if (addr == null)
	            return facet.default;
	        ensureAddr(this, addr);
	        return getAddr(this, addr);
	    }
	    /**
	    Convert this state to a JSON-serializable object. When custom
	    fields should be serialized, you can pass them in as an object
	    mapping property names (in the resulting object, which should
	    not use `doc` or `selection`) to fields.
	    */
	    toJSON(fields) {
	        let result = {
	            doc: this.sliceDoc(),
	            selection: this.selection.toJSON()
	        };
	        if (fields)
	            for (let prop in fields) {
	                let value = fields[prop];
	                if (value instanceof StateField && this.config.address[value.id] != null)
	                    result[prop] = value.spec.toJSON(this.field(fields[prop]), this);
	            }
	        return result;
	    }
	    /**
	    Deserialize a state from its JSON representation. When custom
	    fields should be deserialized, pass the same object you passed
	    to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as
	    third argument.
	    */
	    static fromJSON(json, config = {}, fields) {
	        if (!json || typeof json.doc != "string")
	            throw new RangeError("Invalid JSON representation for EditorState");
	        let fieldInit = [];
	        if (fields)
	            for (let prop in fields) {
	                if (Object.prototype.hasOwnProperty.call(json, prop)) {
	                    let field = fields[prop], value = json[prop];
	                    fieldInit.push(field.init(state => field.spec.fromJSON(value, state)));
	                }
	            }
	        return EditorState.create({
	            doc: json.doc,
	            selection: EditorSelection.fromJSON(json.selection),
	            extensions: config.extensions ? fieldInit.concat([config.extensions]) : fieldInit
	        });
	    }
	    /**
	    Create a new state. You'll usually only need this when
	    initializing an editor—updated states are created by applying
	    transactions.
	    */
	    static create(config = {}) {
	        let configuration = Configuration.resolve(config.extensions || [], new Map);
	        let doc = config.doc instanceof Text$1 ? config.doc
	            : Text$1.of((config.doc || "").split(configuration.staticFacet(EditorState.lineSeparator) || DefaultSplit));
	        let selection = !config.selection ? EditorSelection.single(0)
	            : config.selection instanceof EditorSelection ? config.selection
	                : EditorSelection.single(config.selection.anchor, config.selection.head);
	        checkSelection(selection, doc.length);
	        if (!configuration.staticFacet(allowMultipleSelections))
	            selection = selection.asSingle();
	        return new EditorState(configuration, doc, selection, configuration.dynamicSlots.map(() => null), (state, slot) => slot.create(state), null);
	    }
	    /**
	    The size (in columns) of a tab in the document, determined by
	    the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
	    */
	    get tabSize() { return this.facet(EditorState.tabSize); }
	    /**
	    Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
	    string for this state.
	    */
	    get lineBreak() { return this.facet(EditorState.lineSeparator) || "\n"; }
	    /**
	    Returns true when the editor is
	    [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
	    */
	    get readOnly() { return this.facet(readOnly); }
	    /**
	    Look up a translation for the given phrase (via the
	    [`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the
	    original string if no translation is found.
	    
	    If additional arguments are passed, they will be inserted in
	    place of markers like `$1` (for the first value) and `$2`, etc.
	    A single `$` is equivalent to `$1`, and `$$` will produce a
	    literal dollar sign.
	    */
	    phrase(phrase, ...insert) {
	        for (let map of this.facet(EditorState.phrases))
	            if (Object.prototype.hasOwnProperty.call(map, phrase)) {
	                phrase = map[phrase];
	                break;
	            }
	        if (insert.length)
	            phrase = phrase.replace(/\$(\$|\d*)/g, (m, i) => {
	                if (i == "$")
	                    return "$";
	                let n = +(i || 1);
	                return !n || n > insert.length ? m : insert[n - 1];
	            });
	        return phrase;
	    }
	    /**
	    Find the values for a given language data field, provided by the
	    the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
	    
	    Examples of language data fields are...
	    
	    - [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
	      comment syntax.
	    - [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
	      for providing language-specific completion sources.
	    - [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
	      characters that should be considered part of words in this
	      language.
	    - [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
	      bracket closing behavior.
	    */
	    languageDataAt(name, pos, side = -1) {
	        let values = [];
	        for (let provider of this.facet(languageData)) {
	            for (let result of provider(this, pos, side)) {
	                if (Object.prototype.hasOwnProperty.call(result, name))
	                    values.push(result[name]);
	            }
	        }
	        return values;
	    }
	    /**
	    Return a function that can categorize strings (expected to
	    represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))
	    into one of:
	    
	     - Word (contains an alphanumeric character or a character
	       explicitly listed in the local language's `"wordChars"`
	       language data, which should be a string)
	     - Space (contains only whitespace)
	     - Other (anything else)
	    */
	    charCategorizer(at) {
	        return makeCategorizer(this.languageDataAt("wordChars", at).join(""));
	    }
	    /**
	    Find the word at the given position, meaning the range
	    containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters
	    around it. If no word characters are adjacent to the position,
	    this returns null.
	    */
	    wordAt(pos) {
	        let { text, from, length } = this.doc.lineAt(pos);
	        let cat = this.charCategorizer(pos);
	        let start = pos - from, end = pos - from;
	        while (start > 0) {
	            let prev = findClusterBreak(text, start, false);
	            if (cat(text.slice(prev, start)) != CharCategory.Word)
	                break;
	            start = prev;
	        }
	        while (end < length) {
	            let next = findClusterBreak(text, end);
	            if (cat(text.slice(end, next)) != CharCategory.Word)
	                break;
	            end = next;
	        }
	        return start == end ? null : EditorSelection.range(start + from, end + from);
	    }
	}
	/**
	A facet that, when enabled, causes the editor to allow multiple
	ranges to be selected. Be careful though, because by default the
	editor relies on the native DOM selection, which cannot handle
	multiple selections. An extension like
	[`drawSelection`](https://codemirror.net/6/docs/ref/#view.drawSelection) can be used to make
	secondary selections visible to the user.
	*/
	EditorState.allowMultipleSelections = allowMultipleSelections;
	/**
	Configures the tab size to use in this state. The first
	(highest-precedence) value of the facet is used. If no value is
	given, this defaults to 4.
	*/
	EditorState.tabSize = /*@__PURE__*/Facet.define({
	    combine: values => values.length ? values[0] : 4
	});
	/**
	The line separator to use. By default, any of `"\n"`, `"\r\n"`
	and `"\r"` is treated as a separator when splitting lines, and
	lines are joined with `"\n"`.

	When you configure a value here, only that precise separator
	will be used, allowing you to round-trip documents through the
	editor without normalizing line separators.
	*/
	EditorState.lineSeparator = lineSeparator;
	/**
	This facet controls the value of the
	[`readOnly`](https://codemirror.net/6/docs/ref/#state.EditorState.readOnly) getter, which is
	consulted by commands and extensions that implement editing
	functionality to determine whether they should apply. It
	defaults to false, but when its highest-precedence value is
	`true`, such functionality disables itself.

	Not to be confused with
	[`EditorView.editable`](https://codemirror.net/6/docs/ref/#view.EditorView^editable), which
	controls whether the editor's DOM is set to be editable (and
	thus focusable).
	*/
	EditorState.readOnly = readOnly;
	/**
	Registers translation phrases. The
	[`phrase`](https://codemirror.net/6/docs/ref/#state.EditorState.phrase) method will look through
	all objects registered with this facet to find translations for
	its argument.
	*/
	EditorState.phrases = /*@__PURE__*/Facet.define({
	    compare(a, b) {
	        let kA = Object.keys(a), kB = Object.keys(b);
	        return kA.length == kB.length && kA.every(k => a[k] == b[k]);
	    }
	});
	/**
	A facet used to register [language
	data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) providers.
	*/
	EditorState.languageData = languageData;
	/**
	Facet used to register change filters, which are called for each
	transaction (unless explicitly
	[disabled](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter)), and can suppress
	part of the transaction's changes.

	Such a function can return `true` to indicate that it doesn't
	want to do anything, `false` to completely stop the changes in
	the transaction, or a set of ranges in which changes should be
	suppressed. Such ranges are represented as an array of numbers,
	with each pair of two numbers indicating the start and end of a
	range. So for example `[10, 20, 100, 110]` suppresses changes
	between 10 and 20, and between 100 and 110.
	*/
	EditorState.changeFilter = changeFilter;
	/**
	Facet used to register a hook that gets a chance to update or
	replace transaction specs before they are applied. This will
	only be applied for transactions that don't have
	[`filter`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter) set to `false`. You
	can either return a single transaction spec (possibly the input
	transaction), or an array of specs (which will be combined in
	the same way as the arguments to
	[`EditorState.update`](https://codemirror.net/6/docs/ref/#state.EditorState.update)).

	When possible, it is recommended to avoid accessing
	[`Transaction.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state) in a filter,
	since it will force creation of a state that will then be
	discarded again, if the transaction is actually filtered.

	(This functionality should be used with care. Indiscriminately
	modifying transaction is likely to break something or degrade
	the user experience.)
	*/
	EditorState.transactionFilter = transactionFilter;
	/**
	This is a more limited form of
	[`transactionFilter`](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter),
	which can only add
	[annotations](https://codemirror.net/6/docs/ref/#state.TransactionSpec.annotations) and
	[effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects). _But_, this type
	of filter runs even if the transaction has disabled regular
	[filtering](https://codemirror.net/6/docs/ref/#state.TransactionSpec.filter), making it suitable
	for effects that don't need to touch the changes or selection,
	but do want to process every transaction.

	Extenders run _after_ filters, when both are present.
	*/
	EditorState.transactionExtender = transactionExtender;
	Compartment.reconfigure = /*@__PURE__*/StateEffect.define();

	/**
	Utility function for combining behaviors to fill in a config
	object from an array of provided configs. `defaults` should hold
	default values for all optional fields in `Config`.

	The function will, by default, error
	when a field gets two values that aren't `===`-equal, but you can
	provide combine functions per field to do something else.
	*/
	function combineConfig(configs, defaults, // Should hold only the optional properties of Config, but I haven't managed to express that
	combine = {}) {
	    let result = {};
	    for (let config of configs)
	        for (let key of Object.keys(config)) {
	            let value = config[key], current = result[key];
	            if (current === undefined)
	                result[key] = value;
	            else if (current === value || value === undefined) ; // No conflict
	            else if (Object.hasOwnProperty.call(combine, key))
	                result[key] = combine[key](current, value);
	            else
	                throw new Error("Config merge conflict for field " + key);
	        }
	    for (let key in defaults)
	        if (result[key] === undefined)
	            result[key] = defaults[key];
	    return result;
	}

	/**
	Each range is associated with a value, which must inherit from
	this class.
	*/
	class RangeValue {
	    /**
	    Compare this value with another value. Used when comparing
	    rangesets. The default implementation compares by identity.
	    Unless you are only creating a fixed number of unique instances
	    of your value type, it is a good idea to implement this
	    properly.
	    */
	    eq(other) { return this == other; }
	    /**
	    Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
	    */
	    range(from, to = from) { return Range$1.create(from, to, this); }
	}
	RangeValue.prototype.startSide = RangeValue.prototype.endSide = 0;
	RangeValue.prototype.point = false;
	RangeValue.prototype.mapMode = MapMode.TrackDel;
	/**
	A range associates a value with a range of positions.
	*/
	let Range$1 = class Range {
	    constructor(
	    /**
	    The range's start position.
	    */
	    from, 
	    /**
	    Its end position.
	    */
	    to, 
	    /**
	    The value associated with this range.
	    */
	    value) {
	        this.from = from;
	        this.to = to;
	        this.value = value;
	    }
	    /**
	    @internal
	    */
	    static create(from, to, value) {
	        return new Range(from, to, value);
	    }
	};
	function cmpRange(a, b) {
	    return a.from - b.from || a.value.startSide - b.value.startSide;
	}
	class Chunk {
	    constructor(from, to, value, 
	    // Chunks are marked with the largest point that occurs
	    // in them (or -1 for no points), so that scans that are
	    // only interested in points (such as the
	    // heightmap-related logic) can skip range-only chunks.
	    maxPoint) {
	        this.from = from;
	        this.to = to;
	        this.value = value;
	        this.maxPoint = maxPoint;
	    }
	    get length() { return this.to[this.to.length - 1]; }
	    // Find the index of the given position and side. Use the ranges'
	    // `from` pos when `end == false`, `to` when `end == true`.
	    findIndex(pos, side, end, startAt = 0) {
	        let arr = end ? this.to : this.from;
	        for (let lo = startAt, hi = arr.length;;) {
	            if (lo == hi)
	                return lo;
	            let mid = (lo + hi) >> 1;
	            let diff = arr[mid] - pos || (end ? this.value[mid].endSide : this.value[mid].startSide) - side;
	            if (mid == lo)
	                return diff >= 0 ? lo : hi;
	            if (diff >= 0)
	                hi = mid;
	            else
	                lo = mid + 1;
	        }
	    }
	    between(offset, from, to, f) {
	        for (let i = this.findIndex(from, -1000000000 /* C.Far */, true), e = this.findIndex(to, 1000000000 /* C.Far */, false, i); i < e; i++)
	            if (f(this.from[i] + offset, this.to[i] + offset, this.value[i]) === false)
	                return false;
	    }
	    map(offset, changes) {
	        let value = [], from = [], to = [], newPos = -1, maxPoint = -1;
	        for (let i = 0; i < this.value.length; i++) {
	            let val = this.value[i], curFrom = this.from[i] + offset, curTo = this.to[i] + offset, newFrom, newTo;
	            if (curFrom == curTo) {
	                let mapped = changes.mapPos(curFrom, val.startSide, val.mapMode);
	                if (mapped == null)
	                    continue;
	                newFrom = newTo = mapped;
	                if (val.startSide != val.endSide) {
	                    newTo = changes.mapPos(curFrom, val.endSide);
	                    if (newTo < newFrom)
	                        continue;
	                }
	            }
	            else {
	                newFrom = changes.mapPos(curFrom, val.startSide);
	                newTo = changes.mapPos(curTo, val.endSide);
	                if (newFrom > newTo || newFrom == newTo && val.startSide > 0 && val.endSide <= 0)
	                    continue;
	            }
	            if ((newTo - newFrom || val.endSide - val.startSide) < 0)
	                continue;
	            if (newPos < 0)
	                newPos = newFrom;
	            if (val.point)
	                maxPoint = Math.max(maxPoint, newTo - newFrom);
	            value.push(val);
	            from.push(newFrom - newPos);
	            to.push(newTo - newPos);
	        }
	        return { mapped: value.length ? new Chunk(from, to, value, maxPoint) : null, pos: newPos };
	    }
	}
	/**
	A range set stores a collection of [ranges](https://codemirror.net/6/docs/ref/#state.Range) in a
	way that makes them efficient to [map](https://codemirror.net/6/docs/ref/#state.RangeSet.map) and
	[update](https://codemirror.net/6/docs/ref/#state.RangeSet.update). This is an immutable data
	structure.
	*/
	class RangeSet {
	    constructor(
	    /**
	    @internal
	    */
	    chunkPos, 
	    /**
	    @internal
	    */
	    chunk, 
	    /**
	    @internal
	    */
	    nextLayer, 
	    /**
	    @internal
	    */
	    maxPoint) {
	        this.chunkPos = chunkPos;
	        this.chunk = chunk;
	        this.nextLayer = nextLayer;
	        this.maxPoint = maxPoint;
	    }
	    /**
	    @internal
	    */
	    static create(chunkPos, chunk, nextLayer, maxPoint) {
	        return new RangeSet(chunkPos, chunk, nextLayer, maxPoint);
	    }
	    /**
	    @internal
	    */
	    get length() {
	        let last = this.chunk.length - 1;
	        return last < 0 ? 0 : Math.max(this.chunkEnd(last), this.nextLayer.length);
	    }
	    /**
	    The number of ranges in the set.
	    */
	    get size() {
	        if (this.isEmpty)
	            return 0;
	        let size = this.nextLayer.size;
	        for (let chunk of this.chunk)
	            size += chunk.value.length;
	        return size;
	    }
	    /**
	    @internal
	    */
	    chunkEnd(index) {
	        return this.chunkPos[index] + this.chunk[index].length;
	    }
	    /**
	    Update the range set, optionally adding new ranges or filtering
	    out existing ones.
	    
	    (Note: The type parameter is just there as a kludge to work
	    around TypeScript variance issues that prevented `RangeSet<X>`
	    from being a subtype of `RangeSet<Y>` when `X` is a subtype of
	    `Y`.)
	    */
	    update(updateSpec) {
	        let { add = [], sort = false, filterFrom = 0, filterTo = this.length } = updateSpec;
	        let filter = updateSpec.filter;
	        if (add.length == 0 && !filter)
	            return this;
	        if (sort)
	            add = add.slice().sort(cmpRange);
	        if (this.isEmpty)
	            return add.length ? RangeSet.of(add) : this;
	        let cur = new LayerCursor(this, null, -1).goto(0), i = 0, spill = [];
	        let builder = new RangeSetBuilder();
	        while (cur.value || i < add.length) {
	            if (i < add.length && (cur.from - add[i].from || cur.startSide - add[i].value.startSide) >= 0) {
	                let range = add[i++];
	                if (!builder.addInner(range.from, range.to, range.value))
	                    spill.push(range);
	            }
	            else if (cur.rangeIndex == 1 && cur.chunkIndex < this.chunk.length &&
	                (i == add.length || this.chunkEnd(cur.chunkIndex) < add[i].from) &&
	                (!filter || filterFrom > this.chunkEnd(cur.chunkIndex) || filterTo < this.chunkPos[cur.chunkIndex]) &&
	                builder.addChunk(this.chunkPos[cur.chunkIndex], this.chunk[cur.chunkIndex])) {
	                cur.nextChunk();
	            }
	            else {
	                if (!filter || filterFrom > cur.to || filterTo < cur.from || filter(cur.from, cur.to, cur.value)) {
	                    if (!builder.addInner(cur.from, cur.to, cur.value))
	                        spill.push(Range$1.create(cur.from, cur.to, cur.value));
	                }
	                cur.next();
	            }
	        }
	        return builder.finishInner(this.nextLayer.isEmpty && !spill.length ? RangeSet.empty
	            : this.nextLayer.update({ add: spill, filter, filterFrom, filterTo }));
	    }
	    /**
	    Map this range set through a set of changes, return the new set.
	    */
	    map(changes) {
	        if (changes.empty || this.isEmpty)
	            return this;
	        let chunks = [], chunkPos = [], maxPoint = -1;
	        for (let i = 0; i < this.chunk.length; i++) {
	            let start = this.chunkPos[i], chunk = this.chunk[i];
	            let touch = changes.touchesRange(start, start + chunk.length);
	            if (touch === false) {
	                maxPoint = Math.max(maxPoint, chunk.maxPoint);
	                chunks.push(chunk);
	                chunkPos.push(changes.mapPos(start));
	            }
	            else if (touch === true) {
	                let { mapped, pos } = chunk.map(start, changes);
	                if (mapped) {
	                    maxPoint = Math.max(maxPoint, mapped.maxPoint);
	                    chunks.push(mapped);
	                    chunkPos.push(pos);
	                }
	            }
	        }
	        let next = this.nextLayer.map(changes);
	        return chunks.length == 0 ? next : new RangeSet(chunkPos, chunks, next || RangeSet.empty, maxPoint);
	    }
	    /**
	    Iterate over the ranges that touch the region `from` to `to`,
	    calling `f` for each. There is no guarantee that the ranges will
	    be reported in any specific order. When the callback returns
	    `false`, iteration stops.
	    */
	    between(from, to, f) {
	        if (this.isEmpty)
	            return;
	        for (let i = 0; i < this.chunk.length; i++) {
	            let start = this.chunkPos[i], chunk = this.chunk[i];
	            if (to >= start && from <= start + chunk.length &&
	                chunk.between(start, from - start, to - start, f) === false)
	                return;
	        }
	        this.nextLayer.between(from, to, f);
	    }
	    /**
	    Iterate over the ranges in this set, in order, including all
	    ranges that end at or after `from`.
	    */
	    iter(from = 0) {
	        return HeapCursor.from([this]).goto(from);
	    }
	    /**
	    @internal
	    */
	    get isEmpty() { return this.nextLayer == this; }
	    /**
	    Iterate over the ranges in a collection of sets, in order,
	    starting from `from`.
	    */
	    static iter(sets, from = 0) {
	        return HeapCursor.from(sets).goto(from);
	    }
	    /**
	    Iterate over two groups of sets, calling methods on `comparator`
	    to notify it of possible differences.
	    */
	    static compare(oldSets, newSets, 
	    /**
	    This indicates how the underlying data changed between these
	    ranges, and is needed to synchronize the iteration.
	    */
	    textDiff, comparator, 
	    /**
	    Can be used to ignore all non-point ranges, and points below
	    the given size. When -1, all ranges are compared.
	    */
	    minPointSize = -1) {
	        let a = oldSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
	        let b = newSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
	        let sharedChunks = findSharedChunks(a, b, textDiff);
	        let sideA = new SpanCursor(a, sharedChunks, minPointSize);
	        let sideB = new SpanCursor(b, sharedChunks, minPointSize);
	        textDiff.iterGaps((fromA, fromB, length) => compare(sideA, fromA, sideB, fromB, length, comparator));
	        if (textDiff.empty && textDiff.length == 0)
	            compare(sideA, 0, sideB, 0, 0, comparator);
	    }
	    /**
	    Compare the contents of two groups of range sets, returning true
	    if they are equivalent in the given range.
	    */
	    static eq(oldSets, newSets, from = 0, to) {
	        if (to == null)
	            to = 1000000000 /* C.Far */ - 1;
	        let a = oldSets.filter(set => !set.isEmpty && newSets.indexOf(set) < 0);
	        let b = newSets.filter(set => !set.isEmpty && oldSets.indexOf(set) < 0);
	        if (a.length != b.length)
	            return false;
	        if (!a.length)
	            return true;
	        let sharedChunks = findSharedChunks(a, b);
	        let sideA = new SpanCursor(a, sharedChunks, 0).goto(from), sideB = new SpanCursor(b, sharedChunks, 0).goto(from);
	        for (;;) {
	            if (sideA.to != sideB.to ||
	                !sameValues(sideA.active, sideB.active) ||
	                sideA.point && (!sideB.point || !sideA.point.eq(sideB.point)))
	                return false;
	            if (sideA.to > to)
	                return true;
	            sideA.next();
	            sideB.next();
	        }
	    }
	    /**
	    Iterate over a group of range sets at the same time, notifying
	    the iterator about the ranges covering every given piece of
	    content. Returns the open count (see
	    [`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end
	    of the iteration.
	    */
	    static spans(sets, from, to, iterator, 
	    /**
	    When given and greater than -1, only points of at least this
	    size are taken into account.
	    */
	    minPointSize = -1) {
	        let cursor = new SpanCursor(sets, null, minPointSize).goto(from), pos = from;
	        let openRanges = cursor.openStart;
	        for (;;) {
	            let curTo = Math.min(cursor.to, to);
	            if (cursor.point) {
	                let active = cursor.activeForPoint(cursor.to);
	                let openCount = cursor.pointFrom < from ? active.length + 1
	                    : cursor.point.startSide < 0 ? active.length
	                        : Math.min(active.length, openRanges);
	                iterator.point(pos, curTo, cursor.point, active, openCount, cursor.pointRank);
	                openRanges = Math.min(cursor.openEnd(curTo), active.length);
	            }
	            else if (curTo > pos) {
	                iterator.span(pos, curTo, cursor.active, openRanges);
	                openRanges = cursor.openEnd(curTo);
	            }
	            if (cursor.to > to)
	                return openRanges + (cursor.point && cursor.to > to ? 1 : 0);
	            pos = cursor.to;
	            cursor.next();
	        }
	    }
	    /**
	    Create a range set for the given range or array of ranges. By
	    default, this expects the ranges to be _sorted_ (by start
	    position and, if two start at the same position,
	    `value.startSide`). You can pass `true` as second argument to
	    cause the method to sort them.
	    */
	    static of(ranges, sort = false) {
	        let build = new RangeSetBuilder();
	        for (let range of ranges instanceof Range$1 ? [ranges] : sort ? lazySort(ranges) : ranges)
	            build.add(range.from, range.to, range.value);
	        return build.finish();
	    }
	    /**
	    Join an array of range sets into a single set.
	    */
	    static join(sets) {
	        if (!sets.length)
	            return RangeSet.empty;
	        let result = sets[sets.length - 1];
	        for (let i = sets.length - 2; i >= 0; i--) {
	            for (let layer = sets[i]; layer != RangeSet.empty; layer = layer.nextLayer)
	                result = new RangeSet(layer.chunkPos, layer.chunk, result, Math.max(layer.maxPoint, result.maxPoint));
	        }
	        return result;
	    }
	}
	/**
	The empty set of ranges.
	*/
	RangeSet.empty = /*@__PURE__*/new RangeSet([], [], null, -1);
	function lazySort(ranges) {
	    if (ranges.length > 1)
	        for (let prev = ranges[0], i = 1; i < ranges.length; i++) {
	            let cur = ranges[i];
	            if (cmpRange(prev, cur) > 0)
	                return ranges.slice().sort(cmpRange);
	            prev = cur;
	        }
	    return ranges;
	}
	RangeSet.empty.nextLayer = RangeSet.empty;
	/**
	A range set builder is a data structure that helps build up a
	[range set](https://codemirror.net/6/docs/ref/#state.RangeSet) directly, without first allocating
	an array of [`Range`](https://codemirror.net/6/docs/ref/#state.Range) objects.
	*/
	class RangeSetBuilder {
	    finishChunk(newArrays) {
	        this.chunks.push(new Chunk(this.from, this.to, this.value, this.maxPoint));
	        this.chunkPos.push(this.chunkStart);
	        this.chunkStart = -1;
	        this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint);
	        this.maxPoint = -1;
	        if (newArrays) {
	            this.from = [];
	            this.to = [];
	            this.value = [];
	        }
	    }
	    /**
	    Create an empty builder.
	    */
	    constructor() {
	        this.chunks = [];
	        this.chunkPos = [];
	        this.chunkStart = -1;
	        this.last = null;
	        this.lastFrom = -1000000000 /* C.Far */;
	        this.lastTo = -1000000000 /* C.Far */;
	        this.from = [];
	        this.to = [];
	        this.value = [];
	        this.maxPoint = -1;
	        this.setMaxPoint = -1;
	        this.nextLayer = null;
	    }
	    /**
	    Add a range. Ranges should be added in sorted (by `from` and
	    `value.startSide`) order.
	    */
	    add(from, to, value) {
	        if (!this.addInner(from, to, value))
	            (this.nextLayer || (this.nextLayer = new RangeSetBuilder)).add(from, to, value);
	    }
	    /**
	    @internal
	    */
	    addInner(from, to, value) {
	        let diff = from - this.lastTo || value.startSide - this.last.endSide;
	        if (diff <= 0 && (from - this.lastFrom || value.startSide - this.last.startSide) < 0)
	            throw new Error("Ranges must be added sorted by `from` position and `startSide`");
	        if (diff < 0)
	            return false;
	        if (this.from.length == 250 /* C.ChunkSize */)
	            this.finishChunk(true);
	        if (this.chunkStart < 0)
	            this.chunkStart = from;
	        this.from.push(from - this.chunkStart);
	        this.to.push(to - this.chunkStart);
	        this.last = value;
	        this.lastFrom = from;
	        this.lastTo = to;
	        this.value.push(value);
	        if (value.point)
	            this.maxPoint = Math.max(this.maxPoint, to - from);
	        return true;
	    }
	    /**
	    @internal
	    */
	    addChunk(from, chunk) {
	        if ((from - this.lastTo || chunk.value[0].startSide - this.last.endSide) < 0)
	            return false;
	        if (this.from.length)
	            this.finishChunk(true);
	        this.setMaxPoint = Math.max(this.setMaxPoint, chunk.maxPoint);
	        this.chunks.push(chunk);
	        this.chunkPos.push(from);
	        let last = chunk.value.length - 1;
	        this.last = chunk.value[last];
	        this.lastFrom = chunk.from[last] + from;
	        this.lastTo = chunk.to[last] + from;
	        return true;
	    }
	    /**
	    Finish the range set. Returns the new set. The builder can't be
	    used anymore after this has been called.
	    */
	    finish() { return this.finishInner(RangeSet.empty); }
	    /**
	    @internal
	    */
	    finishInner(next) {
	        if (this.from.length)
	            this.finishChunk(false);
	        if (this.chunks.length == 0)
	            return next;
	        let result = RangeSet.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(next) : next, this.setMaxPoint);
	        this.from = null; // Make sure further `add` calls produce errors
	        return result;
	    }
	}
	function findSharedChunks(a, b, textDiff) {
	    let inA = new Map();
	    for (let set of a)
	        for (let i = 0; i < set.chunk.length; i++)
	            if (set.chunk[i].maxPoint <= 0)
	                inA.set(set.chunk[i], set.chunkPos[i]);
	    let shared = new Set();
	    for (let set of b)
	        for (let i = 0; i < set.chunk.length; i++) {
	            let known = inA.get(set.chunk[i]);
	            if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i] &&
	                !(textDiff === null || textDiff === void 0 ? void 0 : textDiff.touchesRange(known, known + set.chunk[i].length)))
	                shared.add(set.chunk[i]);
	        }
	    return shared;
	}
	class LayerCursor {
	    constructor(layer, skip, minPoint, rank = 0) {
	        this.layer = layer;
	        this.skip = skip;
	        this.minPoint = minPoint;
	        this.rank = rank;
	    }
	    get startSide() { return this.value ? this.value.startSide : 0; }
	    get endSide() { return this.value ? this.value.endSide : 0; }
	    goto(pos, side = -1000000000 /* C.Far */) {
	        this.chunkIndex = this.rangeIndex = 0;
	        this.gotoInner(pos, side, false);
	        return this;
	    }
	    gotoInner(pos, side, forward) {
	        while (this.chunkIndex < this.layer.chunk.length) {
	            let next = this.layer.chunk[this.chunkIndex];
	            if (!(this.skip && this.skip.has(next) ||
	                this.layer.chunkEnd(this.chunkIndex) < pos ||
	                next.maxPoint < this.minPoint))
	                break;
	            this.chunkIndex++;
	            forward = false;
	        }
	        if (this.chunkIndex < this.layer.chunk.length) {
	            let rangeIndex = this.layer.chunk[this.chunkIndex].findIndex(pos - this.layer.chunkPos[this.chunkIndex], side, true);
	            if (!forward || this.rangeIndex < rangeIndex)
	                this.setRangeIndex(rangeIndex);
	        }
	        this.next();
	    }
	    forward(pos, side) {
	        if ((this.to - pos || this.endSide - side) < 0)
	            this.gotoInner(pos, side, true);
	    }
	    next() {
	        for (;;) {
	            if (this.chunkIndex == this.layer.chunk.length) {
	                this.from = this.to = 1000000000 /* C.Far */;
	                this.value = null;
	                break;
	            }
	            else {
	                let chunkPos = this.layer.chunkPos[this.chunkIndex], chunk = this.layer.chunk[this.chunkIndex];
	                let from = chunkPos + chunk.from[this.rangeIndex];
	                this.from = from;
	                this.to = chunkPos + chunk.to[this.rangeIndex];
	                this.value = chunk.value[this.rangeIndex];
	                this.setRangeIndex(this.rangeIndex + 1);
	                if (this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)
	                    break;
	            }
	        }
	    }
	    setRangeIndex(index) {
	        if (index == this.layer.chunk[this.chunkIndex].value.length) {
	            this.chunkIndex++;
	            if (this.skip) {
	                while (this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]))
	                    this.chunkIndex++;
	            }
	            this.rangeIndex = 0;
	        }
	        else {
	            this.rangeIndex = index;
	        }
	    }
	    nextChunk() {
	        this.chunkIndex++;
	        this.rangeIndex = 0;
	        this.next();
	    }
	    compare(other) {
	        return this.from - other.from || this.startSide - other.startSide || this.rank - other.rank ||
	            this.to - other.to || this.endSide - other.endSide;
	    }
	}
	class HeapCursor {
	    constructor(heap) {
	        this.heap = heap;
	    }
	    static from(sets, skip = null, minPoint = -1) {
	        let heap = [];
	        for (let i = 0; i < sets.length; i++) {
	            for (let cur = sets[i]; !cur.isEmpty; cur = cur.nextLayer) {
	                if (cur.maxPoint >= minPoint)
	                    heap.push(new LayerCursor(cur, skip, minPoint, i));
	            }
	        }
	        return heap.length == 1 ? heap[0] : new HeapCursor(heap);
	    }
	    get startSide() { return this.value ? this.value.startSide : 0; }
	    goto(pos, side = -1000000000 /* C.Far */) {
	        for (let cur of this.heap)
	            cur.goto(pos, side);
	        for (let i = this.heap.length >> 1; i >= 0; i--)
	            heapBubble(this.heap, i);
	        this.next();
	        return this;
	    }
	    forward(pos, side) {
	        for (let cur of this.heap)
	            cur.forward(pos, side);
	        for (let i = this.heap.length >> 1; i >= 0; i--)
	            heapBubble(this.heap, i);
	        if ((this.to - pos || this.value.endSide - side) < 0)
	            this.next();
	    }
	    next() {
	        if (this.heap.length == 0) {
	            this.from = this.to = 1000000000 /* C.Far */;
	            this.value = null;
	            this.rank = -1;
	        }
	        else {
	            let top = this.heap[0];
	            this.from = top.from;
	            this.to = top.to;
	            this.value = top.value;
	            this.rank = top.rank;
	            if (top.value)
	                top.next();
	            heapBubble(this.heap, 0);
	        }
	    }
	}
	function heapBubble(heap, index) {
	    for (let cur = heap[index];;) {
	        let childIndex = (index << 1) + 1;
	        if (childIndex >= heap.length)
	            break;
	        let child = heap[childIndex];
	        if (childIndex + 1 < heap.length && child.compare(heap[childIndex + 1]) >= 0) {
	            child = heap[childIndex + 1];
	            childIndex++;
	        }
	        if (cur.compare(child) < 0)
	            break;
	        heap[childIndex] = cur;
	        heap[index] = child;
	        index = childIndex;
	    }
	}
	class SpanCursor {
	    constructor(sets, skip, minPoint) {
	        this.minPoint = minPoint;
	        this.active = [];
	        this.activeTo = [];
	        this.activeRank = [];
	        this.minActive = -1;
	        // A currently active point range, if any
	        this.point = null;
	        this.pointFrom = 0;
	        this.pointRank = 0;
	        this.to = -1000000000 /* C.Far */;
	        this.endSide = 0;
	        // The amount of open active ranges at the start of the iterator.
	        // Not including points.
	        this.openStart = -1;
	        this.cursor = HeapCursor.from(sets, skip, minPoint);
	    }
	    goto(pos, side = -1000000000 /* C.Far */) {
	        this.cursor.goto(pos, side);
	        this.active.length = this.activeTo.length = this.activeRank.length = 0;
	        this.minActive = -1;
	        this.to = pos;
	        this.endSide = side;
	        this.openStart = -1;
	        this.next();
	        return this;
	    }
	    forward(pos, side) {
	        while (this.minActive > -1 && (this.activeTo[this.minActive] - pos || this.active[this.minActive].endSide - side) < 0)
	            this.removeActive(this.minActive);
	        this.cursor.forward(pos, side);
	    }
	    removeActive(index) {
	        remove(this.active, index);
	        remove(this.activeTo, index);
	        remove(this.activeRank, index);
	        this.minActive = findMinIndex(this.active, this.activeTo);
	    }
	    addActive(trackOpen) {
	        let i = 0, { value, to, rank } = this.cursor;
	        // Organize active marks by rank first, then by size
	        while (i < this.activeRank.length && (rank - this.activeRank[i] || to - this.activeTo[i]) > 0)
	            i++;
	        insert(this.active, i, value);
	        insert(this.activeTo, i, to);
	        insert(this.activeRank, i, rank);
	        if (trackOpen)
	            insert(trackOpen, i, this.cursor.from);
	        this.minActive = findMinIndex(this.active, this.activeTo);
	    }
	    // After calling this, if `this.point` != null, the next range is a
	    // point. Otherwise, it's a regular range, covered by `this.active`.
	    next() {
	        let from = this.to, wasPoint = this.point;
	        this.point = null;
	        let trackOpen = this.openStart < 0 ? [] : null;
	        for (;;) {
	            let a = this.minActive;
	            if (a > -1 && (this.activeTo[a] - this.cursor.from || this.active[a].endSide - this.cursor.startSide) < 0) {
	                if (this.activeTo[a] > from) {
	                    this.to = this.activeTo[a];
	                    this.endSide = this.active[a].endSide;
	                    break;
	                }
	                this.removeActive(a);
	                if (trackOpen)
	                    remove(trackOpen, a);
	            }
	            else if (!this.cursor.value) {
	                this.to = this.endSide = 1000000000 /* C.Far */;
	                break;
	            }
	            else if (this.cursor.from > from) {
	                this.to = this.cursor.from;
	                this.endSide = this.cursor.startSide;
	                break;
	            }
	            else {
	                let nextVal = this.cursor.value;
	                if (!nextVal.point) { // Opening a range
	                    this.addActive(trackOpen);
	                    this.cursor.next();
	                }
	                else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to) {
	                    // Ignore any non-empty points that end precisely at the end of the prev point
	                    this.cursor.next();
	                }
	                else { // New point
	                    this.point = nextVal;
	                    this.pointFrom = this.cursor.from;
	                    this.pointRank = this.cursor.rank;
	                    this.to = this.cursor.to;
	                    this.endSide = nextVal.endSide;
	                    this.cursor.next();
	                    this.forward(this.to, this.endSide);
	                    break;
	                }
	            }
	        }
	        if (trackOpen) {
	            this.openStart = 0;
	            for (let i = trackOpen.length - 1; i >= 0 && trackOpen[i] < from; i--)
	                this.openStart++;
	        }
	    }
	    activeForPoint(to) {
	        if (!this.active.length)
	            return this.active;
	        let active = [];
	        for (let i = this.active.length - 1; i >= 0; i--) {
	            if (this.activeRank[i] < this.pointRank)
	                break;
	            if (this.activeTo[i] > to || this.activeTo[i] == to && this.active[i].endSide >= this.point.endSide)
	                active.push(this.active[i]);
	        }
	        return active.reverse();
	    }
	    openEnd(to) {
	        let open = 0;
	        for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > to; i--)
	            open++;
	        return open;
	    }
	}
	function compare(a, startA, b, startB, length, comparator) {
	    a.goto(startA);
	    b.goto(startB);
	    let endB = startB + length;
	    let pos = startB, dPos = startB - startA;
	    for (;;) {
	        let diff = (a.to + dPos) - b.to || a.endSide - b.endSide;
	        let end = diff < 0 ? a.to + dPos : b.to, clipEnd = Math.min(end, endB);
	        if (a.point || b.point) {
	            if (!(a.point && b.point && (a.point == b.point || a.point.eq(b.point)) &&
	                sameValues(a.activeForPoint(a.to), b.activeForPoint(b.to))))
	                comparator.comparePoint(pos, clipEnd, a.point, b.point);
	        }
	        else {
	            if (clipEnd > pos && !sameValues(a.active, b.active))
	                comparator.compareRange(pos, clipEnd, a.active, b.active);
	        }
	        if (end > endB)
	            break;
	        pos = end;
	        if (diff <= 0)
	            a.next();
	        if (diff >= 0)
	            b.next();
	    }
	}
	function sameValues(a, b) {
	    if (a.length != b.length)
	        return false;
	    for (let i = 0; i < a.length; i++)
	        if (a[i] != b[i] && !a[i].eq(b[i]))
	            return false;
	    return true;
	}
	function remove(array, index) {
	    for (let i = index, e = array.length - 1; i < e; i++)
	        array[i] = array[i + 1];
	    array.pop();
	}
	function insert(array, index, value) {
	    for (let i = array.length - 1; i >= index; i--)
	        array[i + 1] = array[i];
	    array[index] = value;
	}
	function findMinIndex(value, array) {
	    let found = -1, foundPos = 1000000000 /* C.Far */;
	    for (let i = 0; i < array.length; i++)
	        if ((array[i] - foundPos || value[i].endSide - value[found].endSide) < 0) {
	            found = i;
	            foundPos = array[i];
	        }
	    return found;
	}

	/**
	Count the column position at the given offset into the string,
	taking extending characters and tab size into account.
	*/
	function countColumn(string, tabSize, to = string.length) {
	    let n = 0;
	    for (let i = 0; i < to;) {
	        if (string.charCodeAt(i) == 9) {
	            n += tabSize - (n % tabSize);
	            i++;
	        }
	        else {
	            n++;
	            i = findClusterBreak(string, i);
	        }
	    }
	    return n;
	}
	/**
	Find the offset that corresponds to the given column position in a
	string, taking extending characters and tab size into account. By
	default, the string length is returned when it is too short to
	reach the column. Pass `strict` true to make it return -1 in that
	situation.
	*/
	function findColumn$1(string, col, tabSize, strict) {
	    for (let i = 0, n = 0;;) {
	        if (n >= col)
	            return i;
	        if (i == string.length)
	            break;
	        n += string.charCodeAt(i) == 9 ? tabSize - (n % tabSize) : 1;
	        i = findClusterBreak(string, i);
	    }
	    return strict === true ? -1 : string.length;
	}

	const C$1 = "\u037c";
	const COUNT = typeof Symbol == "undefined" ? "__" + C$1 : Symbol.for(C$1);
	const SET = typeof Symbol == "undefined" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet");
	const top$1 = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : {};

	// :: - Style modules encapsulate a set of CSS rules defined from
	// JavaScript. Their definitions are only available in a given DOM
	// root after it has been _mounted_ there with `StyleModule.mount`.
	//
	// Style modules should be created once and stored somewhere, as
	// opposed to re-creating them every time you need them. The amount of
	// CSS rules generated for a given DOM root is bounded by the amount
	// of style modules that were used. So to avoid leaking rules, don't
	// create these dynamically, but treat them as one-time allocations.
	class StyleModule {
	  // :: (Object<Style>, ?{finish: ?(string) → string})
	  // Create a style module from the given spec.
	  //
	  // When `finish` is given, it is called on regular (non-`@`)
	  // selectors (after `&` expansion) to compute the final selector.
	  constructor(spec, options) {
	    this.rules = [];
	    let {finish} = options || {};

	    function splitSelector(selector) {
	      return /^@/.test(selector) ? [selector] : selector.split(/,\s*/)
	    }

	    function render(selectors, spec, target, isKeyframes) {
	      let local = [], isAt = /^@(\w+)\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == "keyframes";
	      if (isAt && spec == null) return target.push(selectors[0] + ";")
	      for (let prop in spec) {
	        let value = spec[prop];
	        if (/&/.test(prop)) {
	          render(prop.split(/,\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),
	                 value, target);
	        } else if (value && typeof value == "object") {
	          if (!isAt) throw new RangeError("The value of a property (" + prop + ") should be a primitive value.")
	          render(splitSelector(prop), value, local, keyframes);
	        } else if (value != null) {
	          local.push(prop.replace(/_.*/, "").replace(/[A-Z]/g, l => "-" + l.toLowerCase()) + ": " + value + ";");
	        }
	      }
	      if (local.length || keyframes) {
	        target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(", ") +
	                    " {" + local.join(" ") + "}");
	      }
	    }

	    for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules);
	  }

	  // :: () → string
	  // Returns a string containing the module's CSS rules.
	  getRules() { return this.rules.join("\n") }

	  // :: () → string
	  // Generate a new unique CSS class name.
	  static newName() {
	    let id = top$1[COUNT] || 1;
	    top$1[COUNT] = id + 1;
	    return C$1 + id.toString(36)
	  }

	  // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
	  //
	  // Mount the given set of modules in the given DOM root, which ensures
	  // that the CSS rules defined by the module are available in that
	  // context.
	  //
	  // Rules are only added to the document once per root.
	  //
	  // Rule order will follow the order of the modules, so that rules from
	  // modules later in the array take precedence of those from earlier
	  // modules. If you call this function multiple times for the same root
	  // in a way that changes the order of already mounted modules, the old
	  // order will be changed.
	  //
	  // If a Content Security Policy nonce is provided, it is added to
	  // the `<style>` tag generated by the library.
	  static mount(root, modules, options) {
	    let set = root[SET], nonce = options && options.nonce;
	    if (!set) set = new StyleSet(root, nonce);
	    else if (nonce) set.setNonce(nonce);
	    set.mount(Array.isArray(modules) ? modules : [modules], root);
	  }
	}

	let adoptedSet = new Map; //<Document, StyleSet>

	class StyleSet {
	  constructor(root, nonce) {
	    let doc = root.ownerDocument || root, win = doc.defaultView;
	    if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {
	      let adopted = adoptedSet.get(doc);
	      if (adopted) return root[SET] = adopted
	      this.sheet = new win.CSSStyleSheet;
	      adoptedSet.set(doc, this);
	    } else {
	      this.styleTag = doc.createElement("style");
	      if (nonce) this.styleTag.setAttribute("nonce", nonce);
	    }
	    this.modules = [];
	    root[SET] = this;
	  }

	  mount(modules, root) {
	    let sheet = this.sheet;
	    let pos = 0 /* Current rule offset */, j = 0; /* Index into this.modules */
	    for (let i = 0; i < modules.length; i++) {
	      let mod = modules[i], index = this.modules.indexOf(mod);
	      if (index < j && index > -1) { // Ordering conflict
	        this.modules.splice(index, 1);
	        j--;
	        index = -1;
	      }
	      if (index == -1) {
	        this.modules.splice(j++, 0, mod);
	        if (sheet) for (let k = 0; k < mod.rules.length; k++)
	          sheet.insertRule(mod.rules[k], pos++);
	      } else {
	        while (j < index) pos += this.modules[j++].rules.length;
	        pos += mod.rules.length;
	        j++;
	      }
	    }

	    if (sheet) {
	      if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)
	        root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets];
	    } else {
	      let text = "";
	      for (let i = 0; i < this.modules.length; i++)
	        text += this.modules[i].getRules() + "\n";
	      this.styleTag.textContent = text;
	      let target = root.head || root;
	      if (this.styleTag.parentNode != target)
	        target.insertBefore(this.styleTag, target.firstChild);
	    }
	  }

	  setNonce(nonce) {
	    if (this.styleTag && this.styleTag.getAttribute("nonce") != nonce)
	      this.styleTag.setAttribute("nonce", nonce);
	  }
	}

	// Style::Object<union<Style,string>>
	//
	// A style is an object that, in the simple case, maps CSS property
	// names to strings holding their values, as in `{color: "red",
	// fontWeight: "bold"}`. The property names can be given in
	// camel-case—the library will insert a dash before capital letters
	// when converting them to CSS.
	//
	// If you include an underscore in a property name, it and everything
	// after it will be removed from the output, which can be useful when
	// providing a property multiple times, for browser compatibility
	// reasons.
	//
	// A property in a style object can also be a sub-selector, which
	// extends the current context to add a pseudo-selector or a child
	// selector. Such a property should contain a `&` character, which
	// will be replaced by the current selector. For example `{"&:before":
	// {content: '"hi"'}}`. Sub-selectors and regular properties can
	// freely be mixed in a given object. Any property containing a `&` is
	// assumed to be a sub-selector.
	//
	// Finally, a property can specify an @-block to be wrapped around the
	// styles defined inside the object that's the property's value. For
	// example to create a media query you can do `{"@media screen and
	// (min-width: 400px)": {...}}`.

	var base$3 = {
	  8: "Backspace",
	  9: "Tab",
	  10: "Enter",
	  12: "NumLock",
	  13: "Enter",
	  16: "Shift",
	  17: "Control",
	  18: "Alt",
	  20: "CapsLock",
	  27: "Escape",
	  32: " ",
	  33: "PageUp",
	  34: "PageDown",
	  35: "End",
	  36: "Home",
	  37: "ArrowLeft",
	  38: "ArrowUp",
	  39: "ArrowRight",
	  40: "ArrowDown",
	  44: "PrintScreen",
	  45: "Insert",
	  46: "Delete",
	  59: ";",
	  61: "=",
	  91: "Meta",
	  92: "Meta",
	  106: "*",
	  107: "+",
	  108: ",",
	  109: "-",
	  110: ".",
	  111: "/",
	  144: "NumLock",
	  145: "ScrollLock",
	  160: "Shift",
	  161: "Shift",
	  162: "Control",
	  163: "Control",
	  164: "Alt",
	  165: "Alt",
	  173: "-",
	  186: ";",
	  187: "=",
	  188: ",",
	  189: "-",
	  190: ".",
	  191: "/",
	  192: "`",
	  219: "[",
	  220: "\\",
	  221: "]",
	  222: "'"
	};

	var shift = {
	  48: ")",
	  49: "!",
	  50: "@",
	  51: "#",
	  52: "$",
	  53: "%",
	  54: "^",
	  55: "&",
	  56: "*",
	  57: "(",
	  59: ":",
	  61: "+",
	  173: "_",
	  186: ":",
	  187: "+",
	  188: "<",
	  189: "_",
	  190: ">",
	  191: "?",
	  192: "~",
	  219: "{",
	  220: "|",
	  221: "}",
	  222: "\""
	};

	var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
	var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);

	// Fill in the digit keys
	for (var i$1 = 0; i$1 < 10; i$1++) base$3[48 + i$1] = base$3[96 + i$1] = String(i$1);

	// The function keys
	for (var i$1 = 1; i$1 <= 24; i$1++) base$3[i$1 + 111] = "F" + i$1;

	// And the alphabetic keys
	for (var i$1 = 65; i$1 <= 90; i$1++) {
	  base$3[i$1] = String.fromCharCode(i$1 + 32);
	  shift[i$1] = String.fromCharCode(i$1);
	}

	// For each code that doesn't have a shift-equivalent, copy the base name
	for (var code in base$3) if (!shift.hasOwnProperty(code)) shift[code] = base$3[code];

	function keyName(event) {
	  // On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.
	  // On IE, shift effect is never included in `.key`.
	  var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||
	      ie$1 && event.shiftKey && event.key && event.key.length == 1 ||
	      event.key == "Unidentified";
	  var name = (!ignoreKey && event.key) ||
	    (event.shiftKey ? shift : base$3)[event.keyCode] ||
	    event.key || "Unidentified";
	  // Edge sometimes produces wrong names (Issue #3)
	  if (name == "Esc") name = "Escape";
	  if (name == "Del") name = "Delete";
	  // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
	  if (name == "Left") name = "ArrowLeft";
	  if (name == "Up") name = "ArrowUp";
	  if (name == "Right") name = "ArrowRight";
	  if (name == "Down") name = "ArrowDown";
	  return name
	}

	function getSelection(root) {
	    let target;
	    // Browsers differ on whether shadow roots have a getSelection
	    // method. If it exists, use that, otherwise, call it on the
	    // document.
	    if (root.nodeType == 11) { // Shadow root
	        target = root.getSelection ? root : root.ownerDocument;
	    }
	    else {
	        target = root;
	    }
	    return target.getSelection();
	}
	function contains$1(dom, node) {
	    return node ? dom == node || dom.contains(node.nodeType != 1 ? node.parentNode : node) : false;
	}
	function deepActiveElement(doc) {
	    let elt = doc.activeElement;
	    while (elt && elt.shadowRoot)
	        elt = elt.shadowRoot.activeElement;
	    return elt;
	}
	function hasSelection(dom, selection) {
	    if (!selection.anchorNode)
	        return false;
	    try {
	        // Firefox will raise 'permission denied' errors when accessing
	        // properties of `sel.anchorNode` when it's in a generated CSS
	        // element.
	        return contains$1(dom, selection.anchorNode);
	    }
	    catch (_) {
	        return false;
	    }
	}
	function clientRectsFor(dom) {
	    if (dom.nodeType == 3)
	        return textRange(dom, 0, dom.nodeValue.length).getClientRects();
	    else if (dom.nodeType == 1)
	        return dom.getClientRects();
	    else
	        return [];
	}
	// Scans forward and backward through DOM positions equivalent to the
	// given one to see if the two are in the same place (i.e. after a
	// text node vs at the end of that text node)
	function isEquivalentPosition(node, off, targetNode, targetOff) {
	    return targetNode ? (scanFor(node, off, targetNode, targetOff, -1) ||
	        scanFor(node, off, targetNode, targetOff, 1)) : false;
	}
	function domIndex(node) {
	    for (var index = 0;; index++) {
	        node = node.previousSibling;
	        if (!node)
	            return index;
	    }
	}
	function scanFor(node, off, targetNode, targetOff, dir) {
	    for (;;) {
	        if (node == targetNode && off == targetOff)
	            return true;
	        if (off == (dir < 0 ? 0 : maxOffset(node))) {
	            if (node.nodeName == "DIV")
	                return false;
	            let parent = node.parentNode;
	            if (!parent || parent.nodeType != 1)
	                return false;
	            off = domIndex(node) + (dir < 0 ? 0 : 1);
	            node = parent;
	        }
	        else if (node.nodeType == 1) {
	            node = node.childNodes[off + (dir < 0 ? -1 : 0)];
	            if (node.nodeType == 1 && node.contentEditable == "false")
	                return false;
	            off = dir < 0 ? maxOffset(node) : 0;
	        }
	        else {
	            return false;
	        }
	    }
	}
	function maxOffset(node) {
	    return node.nodeType == 3 ? node.nodeValue.length : node.childNodes.length;
	}
	function flattenRect(rect, left) {
	    let x = left ? rect.left : rect.right;
	    return { left: x, right: x, top: rect.top, bottom: rect.bottom };
	}
	function windowRect(win) {
	    let vp = win.visualViewport;
	    if (vp)
	        return {
	            left: 0, right: vp.width,
	            top: 0, bottom: vp.height
	        };
	    return { left: 0, right: win.innerWidth,
	        top: 0, bottom: win.innerHeight };
	}
	function getScale(elt, rect) {
	    let scaleX = rect.width / elt.offsetWidth;
	    let scaleY = rect.height / elt.offsetHeight;
	    if (scaleX > 0.995 && scaleX < 1.005 || !isFinite(scaleX) || Math.abs(rect.width - elt.offsetWidth) < 1)
	        scaleX = 1;
	    if (scaleY > 0.995 && scaleY < 1.005 || !isFinite(scaleY) || Math.abs(rect.height - elt.offsetHeight) < 1)
	        scaleY = 1;
	    return { scaleX, scaleY };
	}
	function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
	    let doc = dom.ownerDocument, win = doc.defaultView || window;
	    for (let cur = dom, stop = false; cur && !stop;) {
	        if (cur.nodeType == 1) { // Element
	            let bounding, top = cur == doc.body;
	            let scaleX = 1, scaleY = 1;
	            if (top) {
	                bounding = windowRect(win);
	            }
	            else {
	                if (/^(fixed|sticky)$/.test(getComputedStyle(cur).position))
	                    stop = true;
	                if (cur.scrollHeight <= cur.clientHeight && cur.scrollWidth <= cur.clientWidth) {
	                    cur = cur.assignedSlot || cur.parentNode;
	                    continue;
	                }
	                let rect = cur.getBoundingClientRect();
	                ({ scaleX, scaleY } = getScale(cur, rect));
	                // Make sure scrollbar width isn't included in the rectangle
	                bounding = { left: rect.left, right: rect.left + cur.clientWidth * scaleX,
	                    top: rect.top, bottom: rect.top + cur.clientHeight * scaleY };
	            }
	            let moveX = 0, moveY = 0;
	            if (y == "nearest") {
	                if (rect.top < bounding.top) {
	                    moveY = -(bounding.top - rect.top + yMargin);
	                    if (side > 0 && rect.bottom > bounding.bottom + moveY)
	                        moveY = rect.bottom - bounding.bottom + moveY + yMargin;
	                }
	                else if (rect.bottom > bounding.bottom) {
	                    moveY = rect.bottom - bounding.bottom + yMargin;
	                    if (side < 0 && (rect.top - moveY) < bounding.top)
	                        moveY = -(bounding.top + moveY - rect.top + yMargin);
	                }
	            }
	            else {
	                let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;
	                let targetTop = y == "center" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 :
	                    y == "start" || y == "center" && side < 0 ? rect.top - yMargin :
	                        rect.bottom - boundingHeight + yMargin;
	                moveY = targetTop - bounding.top;
	            }
	            if (x == "nearest") {
	                if (rect.left < bounding.left) {
	                    moveX = -(bounding.left - rect.left + xMargin);
	                    if (side > 0 && rect.right > bounding.right + moveX)
	                        moveX = rect.right - bounding.right + moveX + xMargin;
	                }
	                else if (rect.right > bounding.right) {
	                    moveX = rect.right - bounding.right + xMargin;
	                    if (side < 0 && rect.left < bounding.left + moveX)
	                        moveX = -(bounding.left + moveX - rect.left + xMargin);
	                }
	            }
	            else {
	                let targetLeft = x == "center" ? rect.left + (rect.right - rect.left) / 2 - (bounding.right - bounding.left) / 2 :
	                    (x == "start") == ltr ? rect.left - xMargin :
	                        rect.right - (bounding.right - bounding.left) + xMargin;
	                moveX = targetLeft - bounding.left;
	            }
	            if (moveX || moveY) {
	                if (top) {
	                    win.scrollBy(moveX, moveY);
	                }
	                else {
	                    let movedX = 0, movedY = 0;
	                    if (moveY) {
	                        let start = cur.scrollTop;
	                        cur.scrollTop += moveY / scaleY;
	                        movedY = (cur.scrollTop - start) * scaleY;
	                    }
	                    if (moveX) {
	                        let start = cur.scrollLeft;
	                        cur.scrollLeft += moveX / scaleX;
	                        movedX = (cur.scrollLeft - start) * scaleX;
	                    }
	                    rect = { left: rect.left - movedX, top: rect.top - movedY,
	                        right: rect.right - movedX, bottom: rect.bottom - movedY };
	                    if (movedX && Math.abs(movedX - moveX) < 1)
	                        x = "nearest";
	                    if (movedY && Math.abs(movedY - moveY) < 1)
	                        y = "nearest";
	                }
	            }
	            if (top)
	                break;
	            cur = cur.assignedSlot || cur.parentNode;
	        }
	        else if (cur.nodeType == 11) { // A shadow root
	            cur = cur.host;
	        }
	        else {
	            break;
	        }
	    }
	}
	function scrollableParent(dom) {
	    let doc = dom.ownerDocument;
	    for (let cur = dom.parentNode; cur;) {
	        if (cur == doc.body) {
	            break;
	        }
	        else if (cur.nodeType == 1) {
	            if (cur.scrollHeight > cur.clientHeight || cur.scrollWidth > cur.clientWidth)
	                return cur;
	            cur = cur.assignedSlot || cur.parentNode;
	        }
	        else if (cur.nodeType == 11) {
	            cur = cur.host;
	        }
	        else {
	            break;
	        }
	    }
	    return null;
	}
	class DOMSelectionState {
	    constructor() {
	        this.anchorNode = null;
	        this.anchorOffset = 0;
	        this.focusNode = null;
	        this.focusOffset = 0;
	    }
	    eq(domSel) {
	        return this.anchorNode == domSel.anchorNode && this.anchorOffset == domSel.anchorOffset &&
	            this.focusNode == domSel.focusNode && this.focusOffset == domSel.focusOffset;
	    }
	    setRange(range) {
	        let { anchorNode, focusNode } = range;
	        // Clip offsets to node size to avoid crashes when Safari reports bogus offsets (#1152)
	        this.set(anchorNode, Math.min(range.anchorOffset, anchorNode ? maxOffset(anchorNode) : 0), focusNode, Math.min(range.focusOffset, focusNode ? maxOffset(focusNode) : 0));
	    }
	    set(anchorNode, anchorOffset, focusNode, focusOffset) {
	        this.anchorNode = anchorNode;
	        this.anchorOffset = anchorOffset;
	        this.focusNode = focusNode;
	        this.focusOffset = focusOffset;
	    }
	}
	let preventScrollSupported = null;
	// Feature-detects support for .focus({preventScroll: true}), and uses
	// a fallback kludge when not supported.
	function focusPreventScroll(dom) {
	    if (dom.setActive)
	        return dom.setActive(); // in IE
	    if (preventScrollSupported)
	        return dom.focus(preventScrollSupported);
	    let stack = [];
	    for (let cur = dom; cur; cur = cur.parentNode) {
	        stack.push(cur, cur.scrollTop, cur.scrollLeft);
	        if (cur == cur.ownerDocument)
	            break;
	    }
	    dom.focus(preventScrollSupported == null ? {
	        get preventScroll() {
	            preventScrollSupported = { preventScroll: true };
	            return true;
	        }
	    } : undefined);
	    if (!preventScrollSupported) {
	        preventScrollSupported = false;
	        for (let i = 0; i < stack.length;) {
	            let elt = stack[i++], top = stack[i++], left = stack[i++];
	            if (elt.scrollTop != top)
	                elt.scrollTop = top;
	            if (elt.scrollLeft != left)
	                elt.scrollLeft = left;
	        }
	    }
	}
	let scratchRange;
	function textRange(node, from, to = from) {
	    let range = scratchRange || (scratchRange = document.createRange());
	    range.setEnd(node, to);
	    range.setStart(node, from);
	    return range;
	}
	function dispatchKey(elt, name, code, mods) {
	    let options = { key: name, code: name, keyCode: code, which: code, cancelable: true };
	    if (mods)
	        ({ altKey: options.altKey, ctrlKey: options.ctrlKey, shiftKey: options.shiftKey, metaKey: options.metaKey } = mods);
	    let down = new KeyboardEvent("keydown", options);
	    down.synthetic = true;
	    elt.dispatchEvent(down);
	    let up = new KeyboardEvent("keyup", options);
	    up.synthetic = true;
	    elt.dispatchEvent(up);
	    return down.defaultPrevented || up.defaultPrevented;
	}
	function getRoot(node) {
	    while (node) {
	        if (node && (node.nodeType == 9 || node.nodeType == 11 && node.host))
	            return node;
	        node = node.assignedSlot || node.parentNode;
	    }
	    return null;
	}
	function clearAttributes(node) {
	    while (node.attributes.length)
	        node.removeAttributeNode(node.attributes[0]);
	}
	function atElementStart(doc, selection) {
	    let node = selection.focusNode, offset = selection.focusOffset;
	    if (!node || selection.anchorNode != node || selection.anchorOffset != offset)
	        return false;
	    // Safari can report bogus offsets (#1152)
	    offset = Math.min(offset, maxOffset(node));
	    for (;;) {
	        if (offset) {
	            if (node.nodeType != 1)
	                return false;
	            let prev = node.childNodes[offset - 1];
	            if (prev.contentEditable == "false")
	                offset--;
	            else {
	                node = prev;
	                offset = maxOffset(node);
	            }
	        }
	        else if (node == doc) {
	            return true;
	        }
	        else {
	            offset = domIndex(node);
	            node = node.parentNode;
	        }
	    }
	}
	function isScrolledToBottom(elt) {
	    return elt.scrollTop > Math.max(1, elt.scrollHeight - elt.clientHeight - 4);
	}

	class DOMPos {
	    constructor(node, offset, precise = true) {
	        this.node = node;
	        this.offset = offset;
	        this.precise = precise;
	    }
	    static before(dom, precise) { return new DOMPos(dom.parentNode, domIndex(dom), precise); }
	    static after(dom, precise) { return new DOMPos(dom.parentNode, domIndex(dom) + 1, precise); }
	}
	const noChildren = [];
	class ContentView {
	    constructor() {
	        this.parent = null;
	        this.dom = null;
	        this.flags = 2 /* ViewFlag.NodeDirty */;
	    }
	    get overrideDOMText() { return null; }
	    get posAtStart() {
	        return this.parent ? this.parent.posBefore(this) : 0;
	    }
	    get posAtEnd() {
	        return this.posAtStart + this.length;
	    }
	    posBefore(view) {
	        let pos = this.posAtStart;
	        for (let child of this.children) {
	            if (child == view)
	                return pos;
	            pos += child.length + child.breakAfter;
	        }
	        throw new RangeError("Invalid child in posBefore");
	    }
	    posAfter(view) {
	        return this.posBefore(view) + view.length;
	    }
	    sync(view, track) {
	        if (this.flags & 2 /* ViewFlag.NodeDirty */) {
	            let parent = this.dom;
	            let prev = null, next;
	            for (let child of this.children) {
	                if (child.flags & 7 /* ViewFlag.Dirty */) {
	                    if (!child.dom && (next = prev ? prev.nextSibling : parent.firstChild)) {
	                        let contentView = ContentView.get(next);
	                        if (!contentView || !contentView.parent && contentView.canReuseDOM(child))
	                            child.reuseDOM(next);
	                    }
	                    child.sync(view, track);
	                    child.flags &= ~7 /* ViewFlag.Dirty */;
	                }
	                next = prev ? prev.nextSibling : parent.firstChild;
	                if (track && !track.written && track.node == parent && next != child.dom)
	                    track.written = true;
	                if (child.dom.parentNode == parent) {
	                    while (next && next != child.dom)
	                        next = rm$1(next);
	                }
	                else {
	                    parent.insertBefore(child.dom, next);
	                }
	                prev = child.dom;
	            }
	            next = prev ? prev.nextSibling : parent.firstChild;
	            if (next && track && track.node == parent)
	                track.written = true;
	            while (next)
	                next = rm$1(next);
	        }
	        else if (this.flags & 1 /* ViewFlag.ChildDirty */) {
	            for (let child of this.children)
	                if (child.flags & 7 /* ViewFlag.Dirty */) {
	                    child.sync(view, track);
	                    child.flags &= ~7 /* ViewFlag.Dirty */;
	                }
	        }
	    }
	    reuseDOM(_dom) { }
	    localPosFromDOM(node, offset) {
	        let after;
	        if (node == this.dom) {
	            after = this.dom.childNodes[offset];
	        }
	        else {
	            let bias = maxOffset(node) == 0 ? 0 : offset == 0 ? -1 : 1;
	            for (;;) {
	                let parent = node.parentNode;
	                if (parent == this.dom)
	                    break;
	                if (bias == 0 && parent.firstChild != parent.lastChild) {
	                    if (node == parent.firstChild)
	                        bias = -1;
	                    else
	                        bias = 1;
	                }
	                node = parent;
	            }
	            if (bias < 0)
	                after = node;
	            else
	                after = node.nextSibling;
	        }
	        if (after == this.dom.firstChild)
	            return 0;
	        while (after && !ContentView.get(after))
	            after = after.nextSibling;
	        if (!after)
	            return this.length;
	        for (let i = 0, pos = 0;; i++) {
	            let child = this.children[i];
	            if (child.dom == after)
	                return pos;
	            pos += child.length + child.breakAfter;
	        }
	    }
	    domBoundsAround(from, to, offset = 0) {
	        let fromI = -1, fromStart = -1, toI = -1, toEnd = -1;
	        for (let i = 0, pos = offset, prevEnd = offset; i < this.children.length; i++) {
	            let child = this.children[i], end = pos + child.length;
	            if (pos < from && end > to)
	                return child.domBoundsAround(from, to, pos);
	            if (end >= from && fromI == -1) {
	                fromI = i;
	                fromStart = pos;
	            }
	            if (pos > to && child.dom.parentNode == this.dom) {
	                toI = i;
	                toEnd = prevEnd;
	                break;
	            }
	            prevEnd = end;
	            pos = end + child.breakAfter;
	        }
	        return { from: fromStart, to: toEnd < 0 ? offset + this.length : toEnd,
	            startDOM: (fromI ? this.children[fromI - 1].dom.nextSibling : null) || this.dom.firstChild,
	            endDOM: toI < this.children.length && toI >= 0 ? this.children[toI].dom : null };
	    }
	    markDirty(andParent = false) {
	        this.flags |= 2 /* ViewFlag.NodeDirty */;
	        this.markParentsDirty(andParent);
	    }
	    markParentsDirty(childList) {
	        for (let parent = this.parent; parent; parent = parent.parent) {
	            if (childList)
	                parent.flags |= 2 /* ViewFlag.NodeDirty */;
	            if (parent.flags & 1 /* ViewFlag.ChildDirty */)
	                return;
	            parent.flags |= 1 /* ViewFlag.ChildDirty */;
	            childList = false;
	        }
	    }
	    setParent(parent) {
	        if (this.parent != parent) {
	            this.parent = parent;
	            if (this.flags & 7 /* ViewFlag.Dirty */)
	                this.markParentsDirty(true);
	        }
	    }
	    setDOM(dom) {
	        if (this.dom == dom)
	            return;
	        if (this.dom)
	            this.dom.cmView = null;
	        this.dom = dom;
	        dom.cmView = this;
	    }
	    get rootView() {
	        for (let v = this;;) {
	            let parent = v.parent;
	            if (!parent)
	                return v;
	            v = parent;
	        }
	    }
	    replaceChildren(from, to, children = noChildren) {
	        this.markDirty();
	        for (let i = from; i < to; i++) {
	            let child = this.children[i];
	            if (child.parent == this && children.indexOf(child) < 0)
	                child.destroy();
	        }
	        this.children.splice(from, to - from, ...children);
	        for (let i = 0; i < children.length; i++)
	            children[i].setParent(this);
	    }
	    ignoreMutation(_rec) { return false; }
	    ignoreEvent(_event) { return false; }
	    childCursor(pos = this.length) {
	        return new ChildCursor(this.children, pos, this.children.length);
	    }
	    childPos(pos, bias = 1) {
	        return this.childCursor().findPos(pos, bias);
	    }
	    toString() {
	        let name = this.constructor.name.replace("View", "");
	        return name + (this.children.length ? "(" + this.children.join() + ")" :
	            this.length ? "[" + (name == "Text" ? this.text : this.length) + "]" : "") +
	            (this.breakAfter ? "#" : "");
	    }
	    static get(node) { return node.cmView; }
	    get isEditable() { return true; }
	    get isWidget() { return false; }
	    get isHidden() { return false; }
	    merge(from, to, source, hasStart, openStart, openEnd) {
	        return false;
	    }
	    become(other) { return false; }
	    canReuseDOM(other) {
	        return other.constructor == this.constructor && !((this.flags | other.flags) & 8 /* ViewFlag.Composition */);
	    }
	    // When this is a zero-length view with a side, this should return a
	    // number <= 0 to indicate it is before its position, or a
	    // number > 0 when after its position.
	    getSide() { return 0; }
	    destroy() {
	        for (let child of this.children)
	            if (child.parent == this)
	                child.destroy();
	        this.parent = null;
	    }
	}
	ContentView.prototype.breakAfter = 0;
	// Remove a DOM node and return its next sibling.
	function rm$1(dom) {
	    let next = dom.nextSibling;
	    dom.parentNode.removeChild(dom);
	    return next;
	}
	class ChildCursor {
	    constructor(children, pos, i) {
	        this.children = children;
	        this.pos = pos;
	        this.i = i;
	        this.off = 0;
	    }
	    findPos(pos, bias = 1) {
	        for (;;) {
	            if (pos > this.pos || pos == this.pos &&
	                (bias > 0 || this.i == 0 || this.children[this.i - 1].breakAfter)) {
	                this.off = pos - this.pos;
	                return this;
	            }
	            let next = this.children[--this.i];
	            this.pos -= next.length + next.breakAfter;
	        }
	    }
	}
	function replaceRange(parent, fromI, fromOff, toI, toOff, insert, breakAtStart, openStart, openEnd) {
	    let { children } = parent;
	    let before = children.length ? children[fromI] : null;
	    let last = insert.length ? insert[insert.length - 1] : null;
	    let breakAtEnd = last ? last.breakAfter : breakAtStart;
	    // Change within a single child
	    if (fromI == toI && before && !breakAtStart && !breakAtEnd && insert.length < 2 &&
	        before.merge(fromOff, toOff, insert.length ? last : null, fromOff == 0, openStart, openEnd))
	        return;
	    if (toI < children.length) {
	        let after = children[toI];
	        // Make sure the end of the child after the update is preserved in `after`
	        if (after && (toOff < after.length || after.breakAfter && (last === null || last === void 0 ? void 0 : last.breakAfter))) {
	            // If we're splitting a child, separate part of it to avoid that
	            // being mangled when updating the child before the update.
	            if (fromI == toI) {
	                after = after.split(toOff);
	                toOff = 0;
	            }
	            // If the element after the replacement should be merged with
	            // the last replacing element, update `content`
	            if (!breakAtEnd && last && after.merge(0, toOff, last, true, 0, openEnd)) {
	                insert[insert.length - 1] = after;
	            }
	            else {
	                // Remove the start of the after element, if necessary, and
	                // add it to `content`.
	                if (toOff || after.children.length && !after.children[0].length)
	                    after.merge(0, toOff, null, false, 0, openEnd);
	                insert.push(after);
	            }
	        }
	        else if (after === null || after === void 0 ? void 0 : after.breakAfter) {
	            // The element at `toI` is entirely covered by this range.
	            // Preserve its line break, if any.
	            if (last)
	                last.breakAfter = 1;
	            else
	                breakAtStart = 1;
	        }
	        // Since we've handled the next element from the current elements
	        // now, make sure `toI` points after that.
	        toI++;
	    }
	    if (before) {
	        before.breakAfter = breakAtStart;
	        if (fromOff > 0) {
	            if (!breakAtStart && insert.length && before.merge(fromOff, before.length, insert[0], false, openStart, 0)) {
	                before.breakAfter = insert.shift().breakAfter;
	            }
	            else if (fromOff < before.length || before.children.length && before.children[before.children.length - 1].length == 0) {
	                before.merge(fromOff, before.length, null, false, openStart, 0);
	            }
	            fromI++;
	        }
	    }
	    // Try to merge widgets on the boundaries of the replacement
	    while (fromI < toI && insert.length) {
	        if (children[toI - 1].become(insert[insert.length - 1])) {
	            toI--;
	            insert.pop();
	            openEnd = insert.length ? 0 : openStart;
	        }
	        else if (children[fromI].become(insert[0])) {
	            fromI++;
	            insert.shift();
	            openStart = insert.length ? 0 : openEnd;
	        }
	        else {
	            break;
	        }
	    }
	    if (!insert.length && fromI && toI < children.length && !children[fromI - 1].breakAfter &&
	        children[toI].merge(0, 0, children[fromI - 1], false, openStart, openEnd))
	        fromI--;
	    if (fromI < toI || insert.length)
	        parent.replaceChildren(fromI, toI, insert);
	}
	function mergeChildrenInto(parent, from, to, insert, openStart, openEnd) {
	    let cur = parent.childCursor();
	    let { i: toI, off: toOff } = cur.findPos(to, 1);
	    let { i: fromI, off: fromOff } = cur.findPos(from, -1);
	    let dLen = from - to;
	    for (let view of insert)
	        dLen += view.length;
	    parent.length += dLen;
	    replaceRange(parent, fromI, fromOff, toI, toOff, insert, 0, openStart, openEnd);
	}

	let nav = typeof navigator != "undefined" ? navigator : { userAgent: "", vendor: "", platform: "" };
	let doc = typeof document != "undefined" ? document : { documentElement: { style: {} } };
	const ie_edge = /*@__PURE__*//Edge\/(\d+)/.exec(nav.userAgent);
	const ie_upto10 = /*@__PURE__*//MSIE \d/.test(nav.userAgent);
	const ie_11up = /*@__PURE__*//Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nav.userAgent);
	const ie = !!(ie_upto10 || ie_11up || ie_edge);
	const gecko = !ie && /*@__PURE__*//gecko\/(\d+)/i.test(nav.userAgent);
	const chrome = !ie && /*@__PURE__*//Chrome\/(\d+)/.exec(nav.userAgent);
	const webkit = "webkitFontSmoothing" in doc.documentElement.style;
	const safari = !ie && /*@__PURE__*//Apple Computer/.test(nav.vendor);
	const ios = safari && (/*@__PURE__*//Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);
	var browser = {
	    mac: ios || /*@__PURE__*//Mac/.test(nav.platform),
	    windows: /*@__PURE__*//Win/.test(nav.platform),
	    linux: /*@__PURE__*//Linux|X11/.test(nav.platform),
	    ie,
	    ie_version: ie_upto10 ? doc.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0,
	    gecko,
	    gecko_version: gecko ? +(/*@__PURE__*//Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
	    chrome: !!chrome,
	    chrome_version: chrome ? +chrome[1] : 0,
	    ios,
	    android: /*@__PURE__*//Android\b/.test(nav.userAgent),
	    webkit,
	    safari,
	    webkit_version: webkit ? +(/*@__PURE__*//\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0,
	    tabSize: doc.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
	};

	const MaxJoinLen = 256;
	class TextView extends ContentView {
	    constructor(text) {
	        super();
	        this.text = text;
	    }
	    get length() { return this.text.length; }
	    createDOM(textDOM) {
	        this.setDOM(textDOM || document.createTextNode(this.text));
	    }
	    sync(view, track) {
	        if (!this.dom)
	            this.createDOM();
	        if (this.dom.nodeValue != this.text) {
	            if (track && track.node == this.dom)
	                track.written = true;
	            this.dom.nodeValue = this.text;
	        }
	    }
	    reuseDOM(dom) {
	        if (dom.nodeType == 3)
	            this.createDOM(dom);
	    }
	    merge(from, to, source) {
	        if ((this.flags & 8 /* ViewFlag.Composition */) ||
	            source && (!(source instanceof TextView) ||
	                this.length - (to - from) + source.length > MaxJoinLen ||
	                (source.flags & 8 /* ViewFlag.Composition */)))
	            return false;
	        this.text = this.text.slice(0, from) + (source ? source.text : "") + this.text.slice(to);
	        this.markDirty();
	        return true;
	    }
	    split(from) {
	        let result = new TextView(this.text.slice(from));
	        this.text = this.text.slice(0, from);
	        this.markDirty();
	        result.flags |= this.flags & 8 /* ViewFlag.Composition */;
	        return result;
	    }
	    localPosFromDOM(node, offset) {
	        return node == this.dom ? offset : offset ? this.text.length : 0;
	    }
	    domAtPos(pos) { return new DOMPos(this.dom, pos); }
	    domBoundsAround(_from, _to, offset) {
	        return { from: offset, to: offset + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };
	    }
	    coordsAt(pos, side) {
	        return textCoords(this.dom, pos, side);
	    }
	}
	class MarkView extends ContentView {
	    constructor(mark, children = [], length = 0) {
	        super();
	        this.mark = mark;
	        this.children = children;
	        this.length = length;
	        for (let ch of children)
	            ch.setParent(this);
	    }
	    setAttrs(dom) {
	        clearAttributes(dom);
	        if (this.mark.class)
	            dom.className = this.mark.class;
	        if (this.mark.attrs)
	            for (let name in this.mark.attrs)
	                dom.setAttribute(name, this.mark.attrs[name]);
	        return dom;
	    }
	    canReuseDOM(other) {
	        return super.canReuseDOM(other) && !((this.flags | other.flags) & 8 /* ViewFlag.Composition */);
	    }
	    reuseDOM(node) {
	        if (node.nodeName == this.mark.tagName.toUpperCase()) {
	            this.setDOM(node);
	            this.flags |= 4 /* ViewFlag.AttrsDirty */ | 2 /* ViewFlag.NodeDirty */;
	        }
	    }
	    sync(view, track) {
	        if (!this.dom)
	            this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));
	        else if (this.flags & 4 /* ViewFlag.AttrsDirty */)
	            this.setAttrs(this.dom);
	        super.sync(view, track);
	    }
	    merge(from, to, source, _hasStart, openStart, openEnd) {
	        if (source && (!(source instanceof MarkView && source.mark.eq(this.mark)) ||
	            (from && openStart <= 0) || (to < this.length && openEnd <= 0)))
	            return false;
	        mergeChildrenInto(this, from, to, source ? source.children.slice() : [], openStart - 1, openEnd - 1);
	        this.markDirty();
	        return true;
	    }
	    split(from) {
	        let result = [], off = 0, detachFrom = -1, i = 0;
	        for (let elt of this.children) {
	            let end = off + elt.length;
	            if (end > from)
	                result.push(off < from ? elt.split(from - off) : elt);
	            if (detachFrom < 0 && off >= from)
	                detachFrom = i;
	            off = end;
	            i++;
	        }
	        let length = this.length - from;
	        this.length = from;
	        if (detachFrom > -1) {
	            this.children.length = detachFrom;
	            this.markDirty();
	        }
	        return new MarkView(this.mark, result, length);
	    }
	    domAtPos(pos) {
	        return inlineDOMAtPos(this, pos);
	    }
	    coordsAt(pos, side) {
	        return coordsInChildren(this, pos, side);
	    }
	}
	function textCoords(text, pos, side) {
	    let length = text.nodeValue.length;
	    if (pos > length)
	        pos = length;
	    let from = pos, to = pos, flatten = 0;
	    if (pos == 0 && side < 0 || pos == length && side >= 0) {
	        if (!(browser.chrome || browser.gecko)) { // These browsers reliably return valid rectangles for empty ranges
	            if (pos) {
	                from--;
	                flatten = 1;
	            } // FIXME this is wrong in RTL text
	            else if (to < length) {
	                to++;
	                flatten = -1;
	            }
	        }
	    }
	    else {
	        if (side < 0)
	            from--;
	        else if (to < length)
	            to++;
	    }
	    let rects = textRange(text, from, to).getClientRects();
	    if (!rects.length)
	        return null;
	    let rect = rects[(flatten ? flatten < 0 : side >= 0) ? 0 : rects.length - 1];
	    if (browser.safari && !flatten && rect.width == 0)
	        rect = Array.prototype.find.call(rects, r => r.width) || rect;
	    return flatten ? flattenRect(rect, flatten < 0) : rect || null;
	}
	// Also used for collapsed ranges that don't have a placeholder widget!
	let WidgetView$1 = class WidgetView extends ContentView {
	    static create(widget, length, side) {
	        return new WidgetView(widget, length, side);
	    }
	    constructor(widget, length, side) {
	        super();
	        this.widget = widget;
	        this.length = length;
	        this.side = side;
	        this.prevWidget = null;
	    }
	    split(from) {
	        let result = WidgetView.create(this.widget, this.length - from, this.side);
	        this.length -= from;
	        return result;
	    }
	    sync(view) {
	        if (!this.dom || !this.widget.updateDOM(this.dom, view)) {
	            if (this.dom && this.prevWidget)
	                this.prevWidget.destroy(this.dom);
	            this.prevWidget = null;
	            this.setDOM(this.widget.toDOM(view));
	            if (!this.widget.editable)
	                this.dom.contentEditable = "false";
	        }
	    }
	    getSide() { return this.side; }
	    merge(from, to, source, hasStart, openStart, openEnd) {
	        if (source && (!(source instanceof WidgetView) || !this.widget.compare(source.widget) ||
	            from > 0 && openStart <= 0 || to < this.length && openEnd <= 0))
	            return false;
	        this.length = from + (source ? source.length : 0) + (this.length - to);
	        return true;
	    }
	    become(other) {
	        if (other instanceof WidgetView && other.side == this.side &&
	            this.widget.constructor == other.widget.constructor) {
	            if (!this.widget.compare(other.widget))
	                this.markDirty(true);
	            if (this.dom && !this.prevWidget)
	                this.prevWidget = this.widget;
	            this.widget = other.widget;
	            this.length = other.length;
	            return true;
	        }
	        return false;
	    }
	    ignoreMutation() { return true; }
	    ignoreEvent(event) { return this.widget.ignoreEvent(event); }
	    get overrideDOMText() {
	        if (this.length == 0)
	            return Text$1.empty;
	        let top = this;
	        while (top.parent)
	            top = top.parent;
	        let { view } = top, text = view && view.state.doc, start = this.posAtStart;
	        return text ? text.slice(start, start + this.length) : Text$1.empty;
	    }
	    domAtPos(pos) {
	        return (this.length ? pos == 0 : this.side > 0)
	            ? DOMPos.before(this.dom)
	            : DOMPos.after(this.dom, pos == this.length);
	    }
	    domBoundsAround() { return null; }
	    coordsAt(pos, side) {
	        let custom = this.widget.coordsAt(this.dom, pos, side);
	        if (custom)
	            return custom;
	        let rects = this.dom.getClientRects(), rect = null;
	        if (!rects.length)
	            return null;
	        let fromBack = this.side ? this.side < 0 : pos > 0;
	        for (let i = fromBack ? rects.length - 1 : 0;; i += (fromBack ? -1 : 1)) {
	            rect = rects[i];
	            if (pos > 0 ? i == 0 : i == rects.length - 1 || rect.top < rect.bottom)
	                break;
	        }
	        return flattenRect(rect, !fromBack);
	    }
	    get isEditable() { return false; }
	    get isWidget() { return true; }
	    get isHidden() { return this.widget.isHidden; }
	    destroy() {
	        super.destroy();
	        if (this.dom)
	            this.widget.destroy(this.dom);
	    }
	};
	// These are drawn around uneditable widgets to avoid a number of
	// browser bugs that show up when the cursor is directly next to
	// uneditable inline content.
	class WidgetBufferView extends ContentView {
	    constructor(side) {
	        super();
	        this.side = side;
	    }
	    get length() { return 0; }
	    merge() { return false; }
	    become(other) {
	        return other instanceof WidgetBufferView && other.side == this.side;
	    }
	    split() { return new WidgetBufferView(this.side); }
	    sync() {
	        if (!this.dom) {
	            let dom = document.createElement("img");
	            dom.className = "cm-widgetBuffer";
	            dom.setAttribute("aria-hidden", "true");
	            this.setDOM(dom);
	        }
	    }
	    getSide() { return this.side; }
	    domAtPos(pos) { return this.side > 0 ? DOMPos.before(this.dom) : DOMPos.after(this.dom); }
	    localPosFromDOM() { return 0; }
	    domBoundsAround() { return null; }
	    coordsAt(pos) {
	        return this.dom.getBoundingClientRect();
	    }
	    get overrideDOMText() {
	        return Text$1.empty;
	    }
	    get isHidden() { return true; }
	}
	TextView.prototype.children = WidgetView$1.prototype.children = WidgetBufferView.prototype.children = noChildren;
	function inlineDOMAtPos(parent, pos) {
	    let dom = parent.dom, { children } = parent, i = 0;
	    for (let off = 0; i < children.length; i++) {
	        let child = children[i], end = off + child.length;
	        if (end == off && child.getSide() <= 0)
	            continue;
	        if (pos > off && pos < end && child.dom.parentNode == dom)
	            return child.domAtPos(pos - off);
	        if (pos <= off)
	            break;
	        off = end;
	    }
	    for (let j = i; j > 0; j--) {
	        let prev = children[j - 1];
	        if (prev.dom.parentNode == dom)
	            return prev.domAtPos(prev.length);
	    }
	    for (let j = i; j < children.length; j++) {
	        let next = children[j];
	        if (next.dom.parentNode == dom)
	            return next.domAtPos(0);
	    }
	    return new DOMPos(dom, 0);
	}
	// Assumes `view`, if a mark view, has precisely 1 child.
	function joinInlineInto(parent, view, open) {
	    let last, { children } = parent;
	    if (open > 0 && view instanceof MarkView && children.length &&
	        (last = children[children.length - 1]) instanceof MarkView && last.mark.eq(view.mark)) {
	        joinInlineInto(last, view.children[0], open - 1);
	    }
	    else {
	        children.push(view);
	        view.setParent(parent);
	    }
	    parent.length += view.length;
	}
	function coordsInChildren(view, pos, side) {
	    let before = null, beforePos = -1, after = null, afterPos = -1;
	    function scan(view, pos) {
	        for (let i = 0, off = 0; i < view.children.length && off <= pos; i++) {
	            let child = view.children[i], end = off + child.length;
	            if (end >= pos) {
	                if (child.children.length) {
	                    scan(child, pos - off);
	                }
	                else if ((!after || after.isHidden && side > 0) &&
	                    (end > pos || off == end && child.getSide() > 0)) {
	                    after = child;
	                    afterPos = pos - off;
	                }
	                else if (off < pos || (off == end && child.getSide() < 0) && !child.isHidden) {
	                    before = child;
	                    beforePos = pos - off;
	                }
	            }
	            off = end;
	        }
	    }
	    scan(view, pos);
	    let target = (side < 0 ? before : after) || before || after;
	    if (target)
	        return target.coordsAt(Math.max(0, target == before ? beforePos : afterPos), side);
	    return fallbackRect(view);
	}
	function fallbackRect(view) {
	    let last = view.dom.lastChild;
	    if (!last)
	        return view.dom.getBoundingClientRect();
	    let rects = clientRectsFor(last);
	    return rects[rects.length - 1] || null;
	}

	function combineAttrs(source, target) {
	    for (let name in source) {
	        if (name == "class" && target.class)
	            target.class += " " + source.class;
	        else if (name == "style" && target.style)
	            target.style += ";" + source.style;
	        else
	            target[name] = source[name];
	    }
	    return target;
	}
	const noAttrs = /*@__PURE__*/Object.create(null);
	function attrsEq(a, b, ignore) {
	    if (a == b)
	        return true;
	    if (!a)
	        a = noAttrs;
	    if (!b)
	        b = noAttrs;
	    let keysA = Object.keys(a), keysB = Object.keys(b);
	    if (keysA.length - (ignore && keysA.indexOf(ignore) > -1 ? 1 : 0) !=
	        keysB.length - (ignore && keysB.indexOf(ignore) > -1 ? 1 : 0))
	        return false;
	    for (let key of keysA) {
	        if (key != ignore && (keysB.indexOf(key) == -1 || a[key] !== b[key]))
	            return false;
	    }
	    return true;
	}
	function updateAttrs(dom, prev, attrs) {
	    let changed = false;
	    if (prev)
	        for (let name in prev)
	            if (!(attrs && name in attrs)) {
	                changed = true;
	                if (name == "style")
	                    dom.style.cssText = "";
	                else
	                    dom.removeAttribute(name);
	            }
	    if (attrs)
	        for (let name in attrs)
	            if (!(prev && prev[name] == attrs[name])) {
	                changed = true;
	                if (name == "style")
	                    dom.style.cssText = attrs[name];
	                else
	                    dom.setAttribute(name, attrs[name]);
	            }
	    return changed;
	}
	function getAttrs$1(dom) {
	    let attrs = Object.create(null);
	    for (let i = 0; i < dom.attributes.length; i++) {
	        let attr = dom.attributes[i];
	        attrs[attr.name] = attr.value;
	    }
	    return attrs;
	}

	class LineView extends ContentView {
	    constructor() {
	        super(...arguments);
	        this.children = [];
	        this.length = 0;
	        this.prevAttrs = undefined;
	        this.attrs = null;
	        this.breakAfter = 0;
	    }
	    // Consumes source
	    merge(from, to, source, hasStart, openStart, openEnd) {
	        if (source) {
	            if (!(source instanceof LineView))
	                return false;
	            if (!this.dom)
	                source.transferDOM(this); // Reuse source.dom when appropriate
	        }
	        if (hasStart)
	            this.setDeco(source ? source.attrs : null);
	        mergeChildrenInto(this, from, to, source ? source.children.slice() : [], openStart, openEnd);
	        return true;
	    }
	    split(at) {
	        let end = new LineView;
	        end.breakAfter = this.breakAfter;
	        if (this.length == 0)
	            return end;
	        let { i, off } = this.childPos(at);
	        if (off) {
	            end.append(this.children[i].split(off), 0);
	            this.children[i].merge(off, this.children[i].length, null, false, 0, 0);
	            i++;
	        }
	        for (let j = i; j < this.children.length; j++)
	            end.append(this.children[j], 0);
	        while (i > 0 && this.children[i - 1].length == 0)
	            this.children[--i].destroy();
	        this.children.length = i;
	        this.markDirty();
	        this.length = at;
	        return end;
	    }
	    transferDOM(other) {
	        if (!this.dom)
	            return;
	        this.markDirty();
	        other.setDOM(this.dom);
	        other.prevAttrs = this.prevAttrs === undefined ? this.attrs : this.prevAttrs;
	        this.prevAttrs = undefined;
	        this.dom = null;
	    }
	    setDeco(attrs) {
	        if (!attrsEq(this.attrs, attrs)) {
	            if (this.dom) {
	                this.prevAttrs = this.attrs;
	                this.markDirty();
	            }
	            this.attrs = attrs;
	        }
	    }
	    append(child, openStart) {
	        joinInlineInto(this, child, openStart);
	    }
	    // Only called when building a line view in ContentBuilder
	    addLineDeco(deco) {
	        let attrs = deco.spec.attributes, cls = deco.spec.class;
	        if (attrs)
	            this.attrs = combineAttrs(attrs, this.attrs || {});
	        if (cls)
	            this.attrs = combineAttrs({ class: cls }, this.attrs || {});
	    }
	    domAtPos(pos) {
	        return inlineDOMAtPos(this, pos);
	    }
	    reuseDOM(node) {
	        if (node.nodeName == "DIV") {
	            this.setDOM(node);
	            this.flags |= 4 /* ViewFlag.AttrsDirty */ | 2 /* ViewFlag.NodeDirty */;
	        }
	    }
	    sync(view, track) {
	        var _a;
	        if (!this.dom) {
	            this.setDOM(document.createElement("div"));
	            this.dom.className = "cm-line";
	            this.prevAttrs = this.attrs ? null : undefined;
	        }
	        else if (this.flags & 4 /* ViewFlag.AttrsDirty */) {
	            clearAttributes(this.dom);
	            this.dom.className = "cm-line";
	            this.prevAttrs = this.attrs ? null : undefined;
	        }
	        if (this.prevAttrs !== undefined) {
	            updateAttrs(this.dom, this.prevAttrs, this.attrs);
	            this.dom.classList.add("cm-line");
	            this.prevAttrs = undefined;
	        }
	        super.sync(view, track);
	        let last = this.dom.lastChild;
	        while (last && ContentView.get(last) instanceof MarkView)
	            last = last.lastChild;
	        if (!last || !this.length ||
	            last.nodeName != "BR" && ((_a = ContentView.get(last)) === null || _a === void 0 ? void 0 : _a.isEditable) == false &&
	                (!browser.ios || !this.children.some(ch => ch instanceof TextView))) {
	            let hack = document.createElement("BR");
	            hack.cmIgnore = true;
	            this.dom.appendChild(hack);
	        }
	    }
	    measureTextSize() {
	        if (this.children.length == 0 || this.length > 20)
	            return null;
	        let totalWidth = 0, textHeight;
	        for (let child of this.children) {
	            if (!(child instanceof TextView) || /[^ -~]/.test(child.text))
	                return null;
	            let rects = clientRectsFor(child.dom);
	            if (rects.length != 1)
	                return null;
	            totalWidth += rects[0].width;
	            textHeight = rects[0].height;
	        }
	        return !totalWidth ? null : {
	            lineHeight: this.dom.getBoundingClientRect().height,
	            charWidth: totalWidth / this.length,
	            textHeight
	        };
	    }
	    coordsAt(pos, side) {
	        let rect = coordsInChildren(this, pos, side);
	        // Correct rectangle height for empty lines when the returned
	        // height is larger than the text height.
	        if (!this.children.length && rect && this.parent) {
	            let { heightOracle } = this.parent.view.viewState, height = rect.bottom - rect.top;
	            if (Math.abs(height - heightOracle.lineHeight) < 2 && heightOracle.textHeight < height) {
	                let dist = (height - heightOracle.textHeight) / 2;
	                return { top: rect.top + dist, bottom: rect.bottom - dist, left: rect.left, right: rect.left };
	            }
	        }
	        return rect;
	    }
	    become(_other) { return false; }
	    covers() { return true; }
	    static find(docView, pos) {
	        for (let i = 0, off = 0; i < docView.children.length; i++) {
	            let block = docView.children[i], end = off + block.length;
	            if (end >= pos) {
	                if (block instanceof LineView)
	                    return block;
	                if (end > pos)
	                    break;
	            }
	            off = end + block.breakAfter;
	        }
	        return null;
	    }
	}
	class BlockWidgetView extends ContentView {
	    constructor(widget, length, deco) {
	        super();
	        this.widget = widget;
	        this.length = length;
	        this.deco = deco;
	        this.breakAfter = 0;
	        this.prevWidget = null;
	    }
	    merge(from, to, source, _takeDeco, openStart, openEnd) {
	        if (source && (!(source instanceof BlockWidgetView) || !this.widget.compare(source.widget) ||
	            from > 0 && openStart <= 0 || to < this.length && openEnd <= 0))
	            return false;
	        this.length = from + (source ? source.length : 0) + (this.length - to);
	        return true;
	    }
	    domAtPos(pos) {
	        return pos == 0 ? DOMPos.before(this.dom) : DOMPos.after(this.dom, pos == this.length);
	    }
	    split(at) {
	        let len = this.length - at;
	        this.length = at;
	        let end = new BlockWidgetView(this.widget, len, this.deco);
	        end.breakAfter = this.breakAfter;
	        return end;
	    }
	    get children() { return noChildren; }
	    sync(view) {
	        if (!this.dom || !this.widget.updateDOM(this.dom, view)) {
	            if (this.dom && this.prevWidget)
	                this.prevWidget.destroy(this.dom);
	            this.prevWidget = null;
	            this.setDOM(this.widget.toDOM(view));
	            if (!this.widget.editable)
	                this.dom.contentEditable = "false";
	        }
	    }
	    get overrideDOMText() {
	        return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : Text$1.empty;
	    }
	    domBoundsAround() { return null; }
	    become(other) {
	        if (other instanceof BlockWidgetView &&
	            other.widget.constructor == this.widget.constructor) {
	            if (!other.widget.compare(this.widget))
	                this.markDirty(true);
	            if (this.dom && !this.prevWidget)
	                this.prevWidget = this.widget;
	            this.widget = other.widget;
	            this.length = other.length;
	            this.deco = other.deco;
	            this.breakAfter = other.breakAfter;
	            return true;
	        }
	        return false;
	    }
	    ignoreMutation() { return true; }
	    ignoreEvent(event) { return this.widget.ignoreEvent(event); }
	    get isEditable() { return false; }
	    get isWidget() { return true; }
	    coordsAt(pos, side) {
	        return this.widget.coordsAt(this.dom, pos, side);
	    }
	    destroy() {
	        super.destroy();
	        if (this.dom)
	            this.widget.destroy(this.dom);
	    }
	    covers(side) {
	        let { startSide, endSide } = this.deco;
	        return startSide == endSide ? false : side < 0 ? startSide < 0 : endSide > 0;
	    }
	}

	/**
	Widgets added to the content are described by subclasses of this
	class. Using a description object like that makes it possible to
	delay creating of the DOM structure for a widget until it is
	needed, and to avoid redrawing widgets even if the decorations
	that define them are recreated.
	*/
	class WidgetType {
	    /**
	    Compare this instance to another instance of the same type.
	    (TypeScript can't express this, but only instances of the same
	    specific class will be passed to this method.) This is used to
	    avoid redrawing widgets when they are replaced by a new
	    decoration of the same type. The default implementation just
	    returns `false`, which will cause new instances of the widget to
	    always be redrawn.
	    */
	    eq(widget) { return false; }
	    /**
	    Update a DOM element created by a widget of the same type (but
	    different, non-`eq` content) to reflect this widget. May return
	    true to indicate that it could update, false to indicate it
	    couldn't (in which case the widget will be redrawn). The default
	    implementation just returns false.
	    */
	    updateDOM(dom, view) { return false; }
	    /**
	    @internal
	    */
	    compare(other) {
	        return this == other || this.constructor == other.constructor && this.eq(other);
	    }
	    /**
	    The estimated height this widget will have, to be used when
	    estimating the height of content that hasn't been drawn. May
	    return -1 to indicate you don't know. The default implementation
	    returns -1.
	    */
	    get estimatedHeight() { return -1; }
	    /**
	    For inline widgets that are displayed inline (as opposed to
	    `inline-block`) and introduce line breaks (through `<br>` tags
	    or textual newlines), this must indicate the amount of line
	    breaks they introduce. Defaults to 0.
	    */
	    get lineBreaks() { return 0; }
	    /**
	    Can be used to configure which kinds of events inside the widget
	    should be ignored by the editor. The default is to ignore all
	    events.
	    */
	    ignoreEvent(event) { return true; }
	    /**
	    Override the way screen coordinates for positions at/in the
	    widget are found. `pos` will be the offset into the widget, and
	    `side` the side of the position that is being queried—less than
	    zero for before, greater than zero for after, and zero for
	    directly at that position.
	    */
	    coordsAt(dom, pos, side) { return null; }
	    /**
	    @internal
	    */
	    get isHidden() { return false; }
	    /**
	    @internal
	    */
	    get editable() { return false; }
	    /**
	    This is called when the an instance of the widget is removed
	    from the editor view.
	    */
	    destroy(dom) { }
	}
	/**
	The different types of blocks that can occur in an editor view.
	*/
	var BlockType = /*@__PURE__*/(function (BlockType) {
	    /**
	    A line of text.
	    */
	    BlockType[BlockType["Text"] = 0] = "Text";
	    /**
	    A block widget associated with the position after it.
	    */
	    BlockType[BlockType["WidgetBefore"] = 1] = "WidgetBefore";
	    /**
	    A block widget associated with the position before it.
	    */
	    BlockType[BlockType["WidgetAfter"] = 2] = "WidgetAfter";
	    /**
	    A block widget [replacing](https://codemirror.net/6/docs/ref/#view.Decoration^replace) a range of content.
	    */
	    BlockType[BlockType["WidgetRange"] = 3] = "WidgetRange";
	return BlockType})(BlockType || (BlockType = {}));
	/**
	A decoration provides information on how to draw or style a piece
	of content. You'll usually use it wrapped in a
	[`Range`](https://codemirror.net/6/docs/ref/#state.Range), which adds a start and end position.
	@nonabstract
	*/
	class Decoration extends RangeValue {
	    constructor(
	    /**
	    @internal
	    */
	    startSide, 
	    /**
	    @internal
	    */
	    endSide, 
	    /**
	    @internal
	    */
	    widget, 
	    /**
	    The config object used to create this decoration. You can
	    include additional properties in there to store metadata about
	    your decoration.
	    */
	    spec) {
	        super();
	        this.startSide = startSide;
	        this.endSide = endSide;
	        this.widget = widget;
	        this.spec = spec;
	    }
	    /**
	    @internal
	    */
	    get heightRelevant() { return false; }
	    /**
	    Create a mark decoration, which influences the styling of the
	    content in its range. Nested mark decorations will cause nested
	    DOM elements to be created. Nesting order is determined by
	    precedence of the [facet](https://codemirror.net/6/docs/ref/#view.EditorView^decorations), with
	    the higher-precedence decorations creating the inner DOM nodes.
	    Such elements are split on line boundaries and on the boundaries
	    of lower-precedence decorations.
	    */
	    static mark(spec) {
	        return new MarkDecoration(spec);
	    }
	    /**
	    Create a widget decoration, which displays a DOM element at the
	    given position.
	    */
	    static widget(spec) {
	        let side = Math.max(-10000, Math.min(10000, spec.side || 0)), block = !!spec.block;
	        side += (block && !spec.inlineOrder)
	            ? (side > 0 ? 300000000 /* Side.BlockAfter */ : -400000000 /* Side.BlockBefore */)
	            : (side > 0 ? 100000000 /* Side.InlineAfter */ : -100000000 /* Side.InlineBefore */);
	        return new PointDecoration(spec, side, side, block, spec.widget || null, false);
	    }
	    /**
	    Create a replace decoration which replaces the given range with
	    a widget, or simply hides it.
	    */
	    static replace(spec) {
	        let block = !!spec.block, startSide, endSide;
	        if (spec.isBlockGap) {
	            startSide = -500000000 /* Side.GapStart */;
	            endSide = 400000000 /* Side.GapEnd */;
	        }
	        else {
	            let { start, end } = getInclusive(spec, block);
	            startSide = (start ? (block ? -300000000 /* Side.BlockIncStart */ : -1 /* Side.InlineIncStart */) : 500000000 /* Side.NonIncStart */) - 1;
	            endSide = (end ? (block ? 200000000 /* Side.BlockIncEnd */ : 1 /* Side.InlineIncEnd */) : -600000000 /* Side.NonIncEnd */) + 1;
	        }
	        return new PointDecoration(spec, startSide, endSide, block, spec.widget || null, true);
	    }
	    /**
	    Create a line decoration, which can add DOM attributes to the
	    line starting at the given position.
	    */
	    static line(spec) {
	        return new LineDecoration(spec);
	    }
	    /**
	    Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given
	    decorated range or ranges. If the ranges aren't already sorted,
	    pass `true` for `sort` to make the library sort them for you.
	    */
	    static set(of, sort = false) {
	        return RangeSet.of(of, sort);
	    }
	    /**
	    @internal
	    */
	    hasHeight() { return this.widget ? this.widget.estimatedHeight > -1 : false; }
	}
	/**
	The empty set of decorations.
	*/
	Decoration.none = RangeSet.empty;
	class MarkDecoration extends Decoration {
	    constructor(spec) {
	        let { start, end } = getInclusive(spec);
	        super(start ? -1 /* Side.InlineIncStart */ : 500000000 /* Side.NonIncStart */, end ? 1 /* Side.InlineIncEnd */ : -600000000 /* Side.NonIncEnd */, null, spec);
	        this.tagName = spec.tagName || "span";
	        this.class = spec.class || "";
	        this.attrs = spec.attributes || null;
	    }
	    eq(other) {
	        var _a, _b;
	        return this == other ||
	            other instanceof MarkDecoration &&
	                this.tagName == other.tagName &&
	                (this.class || ((_a = this.attrs) === null || _a === void 0 ? void 0 : _a.class)) == (other.class || ((_b = other.attrs) === null || _b === void 0 ? void 0 : _b.class)) &&
	                attrsEq(this.attrs, other.attrs, "class");
	    }
	    range(from, to = from) {
	        if (from >= to)
	            throw new RangeError("Mark decorations may not be empty");
	        return super.range(from, to);
	    }
	}
	MarkDecoration.prototype.point = false;
	class LineDecoration extends Decoration {
	    constructor(spec) {
	        super(-200000000 /* Side.Line */, -200000000 /* Side.Line */, null, spec);
	    }
	    eq(other) {
	        return other instanceof LineDecoration &&
	            this.spec.class == other.spec.class &&
	            attrsEq(this.spec.attributes, other.spec.attributes);
	    }
	    range(from, to = from) {
	        if (to != from)
	            throw new RangeError("Line decoration ranges must be zero-length");
	        return super.range(from, to);
	    }
	}
	LineDecoration.prototype.mapMode = MapMode.TrackBefore;
	LineDecoration.prototype.point = true;
	class PointDecoration extends Decoration {
	    constructor(spec, startSide, endSide, block, widget, isReplace) {
	        super(startSide, endSide, widget, spec);
	        this.block = block;
	        this.isReplace = isReplace;
	        this.mapMode = !block ? MapMode.TrackDel : startSide <= 0 ? MapMode.TrackBefore : MapMode.TrackAfter;
	    }
	    // Only relevant when this.block == true
	    get type() {
	        return this.startSide != this.endSide ? BlockType.WidgetRange
	            : this.startSide <= 0 ? BlockType.WidgetBefore : BlockType.WidgetAfter;
	    }
	    get heightRelevant() {
	        return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
	    }
	    eq(other) {
	        return other instanceof PointDecoration &&
	            widgetsEq(this.widget, other.widget) &&
	            this.block == other.block &&
	            this.startSide == other.startSide && this.endSide == other.endSide;
	    }
	    range(from, to = from) {
	        if (this.isReplace && (from > to || (from == to && this.startSide > 0 && this.endSide <= 0)))
	            throw new RangeError("Invalid range for replacement decoration");
	        if (!this.isReplace && to != from)
	            throw new RangeError("Widget decorations can only have zero-length ranges");
	        return super.range(from, to);
	    }
	}
	PointDecoration.prototype.point = true;
	function getInclusive(spec, block = false) {
	    let { inclusiveStart: start, inclusiveEnd: end } = spec;
	    if (start == null)
	        start = spec.inclusive;
	    if (end == null)
	        end = spec.inclusive;
	    return { start: start !== null && start !== void 0 ? start : block, end: end !== null && end !== void 0 ? end : block };
	}
	function widgetsEq(a, b) {
	    return a == b || !!(a && b && a.compare(b));
	}
	function addRange(from, to, ranges, margin = 0) {
	    let last = ranges.length - 1;
	    if (last >= 0 && ranges[last] + margin >= from)
	        ranges[last] = Math.max(ranges[last], to);
	    else
	        ranges.push(from, to);
	}

	class ContentBuilder {
	    constructor(doc, pos, end, disallowBlockEffectsFor) {
	        this.doc = doc;
	        this.pos = pos;
	        this.end = end;
	        this.disallowBlockEffectsFor = disallowBlockEffectsFor;
	        this.content = [];
	        this.curLine = null;
	        this.breakAtStart = 0;
	        this.pendingBuffer = 0 /* Buf.No */;
	        this.bufferMarks = [];
	        // Set to false directly after a widget that covers the position after it
	        this.atCursorPos = true;
	        this.openStart = -1;
	        this.openEnd = -1;
	        this.text = "";
	        this.textOff = 0;
	        this.cursor = doc.iter();
	        this.skip = pos;
	    }
	    posCovered() {
	        if (this.content.length == 0)
	            return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;
	        let last = this.content[this.content.length - 1];
	        return !(last.breakAfter || last instanceof BlockWidgetView && last.deco.endSide < 0);
	    }
	    getLine() {
	        if (!this.curLine) {
	            this.content.push(this.curLine = new LineView);
	            this.atCursorPos = true;
	        }
	        return this.curLine;
	    }
	    flushBuffer(active = this.bufferMarks) {
	        if (this.pendingBuffer) {
	            this.curLine.append(wrapMarks(new WidgetBufferView(-1), active), active.length);
	            this.pendingBuffer = 0 /* Buf.No */;
	        }
	    }
	    addBlockWidget(view) {
	        this.flushBuffer();
	        this.curLine = null;
	        this.content.push(view);
	    }
	    finish(openEnd) {
	        if (this.pendingBuffer && openEnd <= this.bufferMarks.length)
	            this.flushBuffer();
	        else
	            this.pendingBuffer = 0 /* Buf.No */;
	        if (!this.posCovered() &&
	            !(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))
	            this.getLine();
	    }
	    buildText(length, active, openStart) {
	        while (length > 0) {
	            if (this.textOff == this.text.length) {
	                let { value, lineBreak, done } = this.cursor.next(this.skip);
	                this.skip = 0;
	                if (done)
	                    throw new Error("Ran out of text content when drawing inline views");
	                if (lineBreak) {
	                    if (!this.posCovered())
	                        this.getLine();
	                    if (this.content.length)
	                        this.content[this.content.length - 1].breakAfter = 1;
	                    else
	                        this.breakAtStart = 1;
	                    this.flushBuffer();
	                    this.curLine = null;
	                    this.atCursorPos = true;
	                    length--;
	                    continue;
	                }
	                else {
	                    this.text = value;
	                    this.textOff = 0;
	                }
	            }
	            let take = Math.min(this.text.length - this.textOff, length, 512 /* T.Chunk */);
	            this.flushBuffer(active.slice(active.length - openStart));
	            this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff, this.textOff + take)), active), openStart);
	            this.atCursorPos = true;
	            this.textOff += take;
	            length -= take;
	            openStart = 0;
	        }
	    }
	    span(from, to, active, openStart) {
	        this.buildText(to - from, active, openStart);
	        this.pos = to;
	        if (this.openStart < 0)
	            this.openStart = openStart;
	    }
	    point(from, to, deco, active, openStart, index) {
	        if (this.disallowBlockEffectsFor[index] && deco instanceof PointDecoration) {
	            if (deco.block)
	                throw new RangeError("Block decorations may not be specified via plugins");
	            if (to > this.doc.lineAt(this.pos).to)
	                throw new RangeError("Decorations that replace line breaks may not be specified via plugins");
	        }
	        let len = to - from;
	        if (deco instanceof PointDecoration) {
	            if (deco.block) {
	                if (deco.startSide > 0 && !this.posCovered())
	                    this.getLine();
	                this.addBlockWidget(new BlockWidgetView(deco.widget || NullWidget.block, len, deco));
	            }
	            else {
	                let view = WidgetView$1.create(deco.widget || NullWidget.inline, len, len ? 0 : deco.startSide);
	                let cursorBefore = this.atCursorPos && !view.isEditable && openStart <= active.length &&
	                    (from < to || deco.startSide > 0);
	                let cursorAfter = !view.isEditable && (from < to || openStart > active.length || deco.startSide <= 0);
	                let line = this.getLine();
	                if (this.pendingBuffer == 2 /* Buf.IfCursor */ && !cursorBefore && !view.isEditable)
	                    this.pendingBuffer = 0 /* Buf.No */;
	                this.flushBuffer(active);
	                if (cursorBefore) {
	                    line.append(wrapMarks(new WidgetBufferView(1), active), openStart);
	                    openStart = active.length + Math.max(0, openStart - active.length);
	                }
	                line.append(wrapMarks(view, active), openStart);
	                this.atCursorPos = cursorAfter;
	                this.pendingBuffer = !cursorAfter ? 0 /* Buf.No */ : from < to || openStart > active.length ? 1 /* Buf.Yes */ : 2 /* Buf.IfCursor */;
	                if (this.pendingBuffer)
	                    this.bufferMarks = active.slice();
	            }
	        }
	        else if (this.doc.lineAt(this.pos).from == this.pos) { // Line decoration
	            this.getLine().addLineDeco(deco);
	        }
	        if (len) {
	            // Advance the iterator past the replaced content
	            if (this.textOff + len <= this.text.length) {
	                this.textOff += len;
	            }
	            else {
	                this.skip += len - (this.text.length - this.textOff);
	                this.text = "";
	                this.textOff = 0;
	            }
	            this.pos = to;
	        }
	        if (this.openStart < 0)
	            this.openStart = openStart;
	    }
	    static build(text, from, to, decorations, dynamicDecorationMap) {
	        let builder = new ContentBuilder(text, from, to, dynamicDecorationMap);
	        builder.openEnd = RangeSet.spans(decorations, from, to, builder);
	        if (builder.openStart < 0)
	            builder.openStart = builder.openEnd;
	        builder.finish(builder.openEnd);
	        return builder;
	    }
	}
	function wrapMarks(view, active) {
	    for (let mark of active)
	        view = new MarkView(mark, [view], view.length);
	    return view;
	}
	class NullWidget extends WidgetType {
	    constructor(tag) {
	        super();
	        this.tag = tag;
	    }
	    eq(other) { return other.tag == this.tag; }
	    toDOM() { return document.createElement(this.tag); }
	    updateDOM(elt) { return elt.nodeName.toLowerCase() == this.tag; }
	    get isHidden() { return true; }
	}
	NullWidget.inline = /*@__PURE__*/new NullWidget("span");
	NullWidget.block = /*@__PURE__*/new NullWidget("div");

	/**
	Used to indicate [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).
	*/
	var Direction = /*@__PURE__*/(function (Direction) {
	    // (These are chosen to match the base levels, in bidi algorithm
	    // terms, of spans in that direction.)
	    /**
	    Left-to-right.
	    */
	    Direction[Direction["LTR"] = 0] = "LTR";
	    /**
	    Right-to-left.
	    */
	    Direction[Direction["RTL"] = 1] = "RTL";
	return Direction})(Direction || (Direction = {}));
	const LTR = Direction.LTR, RTL = Direction.RTL;
	// Decode a string with each type encoded as log2(type)
	function dec(str) {
	    let result = [];
	    for (let i = 0; i < str.length; i++)
	        result.push(1 << +str[i]);
	    return result;
	}
	// Character types for codepoints 0 to 0xf8
	const LowTypes = /*@__PURE__*/dec("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008");
	// Character types for codepoints 0x600 to 0x6f9
	const ArabicTypes = /*@__PURE__*/dec("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");
	const Brackets = /*@__PURE__*/Object.create(null), BracketStack = [];
	// There's a lot more in
	// https://www.unicode.org/Public/UCD/latest/ucd/BidiBrackets.txt,
	// which are left out to keep code size down.
	for (let p of ["()", "[]", "{}"]) {
	    let l = /*@__PURE__*/p.charCodeAt(0), r = /*@__PURE__*/p.charCodeAt(1);
	    Brackets[l] = r;
	    Brackets[r] = -l;
	}
	function charType(ch) {
	    return ch <= 0xf7 ? LowTypes[ch] :
	        0x590 <= ch && ch <= 0x5f4 ? 2 /* T.R */ :
	            0x600 <= ch && ch <= 0x6f9 ? ArabicTypes[ch - 0x600] :
	                0x6ee <= ch && ch <= 0x8ac ? 4 /* T.AL */ :
	                    0x2000 <= ch && ch <= 0x200c ? 256 /* T.NI */ :
	                        0xfb50 <= ch && ch <= 0xfdff ? 4 /* T.AL */ : 1 /* T.L */;
	}
	const BidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
	/**
	Represents a contiguous range of text that has a single direction
	(as in left-to-right or right-to-left).
	*/
	class BidiSpan {
	    /**
	    The direction of this span.
	    */
	    get dir() { return this.level % 2 ? RTL : LTR; }
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The start of the span (relative to the start of the line).
	    */
	    from, 
	    /**
	    The end of the span.
	    */
	    to, 
	    /**
	    The ["bidi
	    level"](https://unicode.org/reports/tr9/#Basic_Display_Algorithm)
	    of the span (in this context, 0 means
	    left-to-right, 1 means right-to-left, 2 means left-to-right
	    number inside right-to-left text).
	    */
	    level) {
	        this.from = from;
	        this.to = to;
	        this.level = level;
	    }
	    /**
	    @internal
	    */
	    side(end, dir) { return (this.dir == dir) == end ? this.to : this.from; }
	    /**
	    @internal
	    */
	    forward(forward, dir) { return forward == (this.dir == dir); }
	    /**
	    @internal
	    */
	    static find(order, index, level, assoc) {
	        let maybe = -1;
	        for (let i = 0; i < order.length; i++) {
	            let span = order[i];
	            if (span.from <= index && span.to >= index) {
	                if (span.level == level)
	                    return i;
	                // When multiple spans match, if assoc != 0, take the one that
	                // covers that side, otherwise take the one with the minimum
	                // level.
	                if (maybe < 0 || (assoc != 0 ? (assoc < 0 ? span.from < index : span.to > index) : order[maybe].level > span.level))
	                    maybe = i;
	            }
	        }
	        if (maybe < 0)
	            throw new RangeError("Index out of range");
	        return maybe;
	    }
	}
	function isolatesEq(a, b) {
	    if (a.length != b.length)
	        return false;
	    for (let i = 0; i < a.length; i++) {
	        let iA = a[i], iB = b[i];
	        if (iA.from != iB.from || iA.to != iB.to || iA.direction != iB.direction || !isolatesEq(iA.inner, iB.inner))
	            return false;
	    }
	    return true;
	}
	// Reused array of character types
	const types$6 = [];
	// Fill in the character types (in `types`) from `from` to `to` and
	// apply W normalization rules.
	function computeCharTypes(line, rFrom, rTo, isolates, outerType) {
	    for (let iI = 0; iI <= isolates.length; iI++) {
	        let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;
	        let prevType = iI ? 256 /* T.NI */ : outerType;
	        // W1. Examine each non-spacing mark (NSM) in the level run, and
	        // change the type of the NSM to the type of the previous
	        // character. If the NSM is at the start of the level run, it will
	        // get the type of sor.
	        // W2. Search backwards from each instance of a European number
	        // until the first strong type (R, L, AL, or sor) is found. If an
	        // AL is found, change the type of the European number to Arabic
	        // number.
	        // W3. Change all ALs to R.
	        // (Left after this: L, R, EN, AN, ET, CS, NI)
	        for (let i = from, prev = prevType, prevStrong = prevType; i < to; i++) {
	            let type = charType(line.charCodeAt(i));
	            if (type == 512 /* T.NSM */)
	                type = prev;
	            else if (type == 8 /* T.EN */ && prevStrong == 4 /* T.AL */)
	                type = 16 /* T.AN */;
	            types$6[i] = type == 4 /* T.AL */ ? 2 /* T.R */ : type;
	            if (type & 7 /* T.Strong */)
	                prevStrong = type;
	            prev = type;
	        }
	        // W5. A sequence of European terminators adjacent to European
	        // numbers changes to all European numbers.
	        // W6. Otherwise, separators and terminators change to Other
	        // Neutral.
	        // W7. Search backwards from each instance of a European number
	        // until the first strong type (R, L, or sor) is found. If an L is
	        // found, then change the type of the European number to L.
	        // (Left after this: L, R, EN+AN, NI)
	        for (let i = from, prev = prevType, prevStrong = prevType; i < to; i++) {
	            let type = types$6[i];
	            if (type == 128 /* T.CS */) {
	                if (i < to - 1 && prev == types$6[i + 1] && (prev & 24 /* T.Num */))
	                    type = types$6[i] = prev;
	                else
	                    types$6[i] = 256 /* T.NI */;
	            }
	            else if (type == 64 /* T.ET */) {
	                let end = i + 1;
	                while (end < to && types$6[end] == 64 /* T.ET */)
	                    end++;
	                let replace = (i && prev == 8 /* T.EN */) || (end < rTo && types$6[end] == 8 /* T.EN */) ? (prevStrong == 1 /* T.L */ ? 1 /* T.L */ : 8 /* T.EN */) : 256 /* T.NI */;
	                for (let j = i; j < end; j++)
	                    types$6[j] = replace;
	                i = end - 1;
	            }
	            else if (type == 8 /* T.EN */ && prevStrong == 1 /* T.L */) {
	                types$6[i] = 1 /* T.L */;
	            }
	            prev = type;
	            if (type & 7 /* T.Strong */)
	                prevStrong = type;
	        }
	    }
	}
	// Process brackets throughout a run sequence.
	function processBracketPairs(line, rFrom, rTo, isolates, outerType) {
	    let oppositeType = outerType == 1 /* T.L */ ? 2 /* T.R */ : 1 /* T.L */;
	    for (let iI = 0, sI = 0, context = 0; iI <= isolates.length; iI++) {
	        let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;
	        // N0. Process bracket pairs in an isolating run sequence
	        // sequentially in the logical order of the text positions of the
	        // opening paired brackets using the logic given below. Within this
	        // scope, bidirectional types EN and AN are treated as R.
	        for (let i = from, ch, br, type; i < to; i++) {
	            // Keeps [startIndex, type, strongSeen] triples for each open
	            // bracket on BracketStack.
	            if (br = Brackets[ch = line.charCodeAt(i)]) {
	                if (br < 0) { // Closing bracket
	                    for (let sJ = sI - 3; sJ >= 0; sJ -= 3) {
	                        if (BracketStack[sJ + 1] == -br) {
	                            let flags = BracketStack[sJ + 2];
	                            let type = (flags & 2 /* Bracketed.EmbedInside */) ? outerType :
	                                !(flags & 4 /* Bracketed.OppositeInside */) ? 0 :
	                                    (flags & 1 /* Bracketed.OppositeBefore */) ? oppositeType : outerType;
	                            if (type)
	                                types$6[i] = types$6[BracketStack[sJ]] = type;
	                            sI = sJ;
	                            break;
	                        }
	                    }
	                }
	                else if (BracketStack.length == 189 /* Bracketed.MaxDepth */) {
	                    break;
	                }
	                else {
	                    BracketStack[sI++] = i;
	                    BracketStack[sI++] = ch;
	                    BracketStack[sI++] = context;
	                }
	            }
	            else if ((type = types$6[i]) == 2 /* T.R */ || type == 1 /* T.L */) {
	                let embed = type == outerType;
	                context = embed ? 0 : 1 /* Bracketed.OppositeBefore */;
	                for (let sJ = sI - 3; sJ >= 0; sJ -= 3) {
	                    let cur = BracketStack[sJ + 2];
	                    if (cur & 2 /* Bracketed.EmbedInside */)
	                        break;
	                    if (embed) {
	                        BracketStack[sJ + 2] |= 2 /* Bracketed.EmbedInside */;
	                    }
	                    else {
	                        if (cur & 4 /* Bracketed.OppositeInside */)
	                            break;
	                        BracketStack[sJ + 2] |= 4 /* Bracketed.OppositeInside */;
	                    }
	                }
	            }
	        }
	    }
	}
	function processNeutrals(rFrom, rTo, isolates, outerType) {
	    for (let iI = 0, prev = outerType; iI <= isolates.length; iI++) {
	        let from = iI ? isolates[iI - 1].to : rFrom, to = iI < isolates.length ? isolates[iI].from : rTo;
	        // N1. A sequence of neutrals takes the direction of the
	        // surrounding strong text if the text on both sides has the same
	        // direction. European and Arabic numbers act as if they were R in
	        // terms of their influence on neutrals. Start-of-level-run (sor)
	        // and end-of-level-run (eor) are used at level run boundaries.
	        // N2. Any remaining neutrals take the embedding direction.
	        // (Left after this: L, R, EN+AN)
	        for (let i = from; i < to;) {
	            let type = types$6[i];
	            if (type == 256 /* T.NI */) {
	                let end = i + 1;
	                for (;;) {
	                    if (end == to) {
	                        if (iI == isolates.length)
	                            break;
	                        end = isolates[iI++].to;
	                        to = iI < isolates.length ? isolates[iI].from : rTo;
	                    }
	                    else if (types$6[end] == 256 /* T.NI */) {
	                        end++;
	                    }
	                    else {
	                        break;
	                    }
	                }
	                let beforeL = prev == 1 /* T.L */;
	                let afterL = (end < rTo ? types$6[end] : outerType) == 1 /* T.L */;
	                let replace = beforeL == afterL ? (beforeL ? 1 /* T.L */ : 2 /* T.R */) : outerType;
	                for (let j = end, jI = iI, fromJ = jI ? isolates[jI - 1].to : rFrom; j > i;) {
	                    if (j == fromJ) {
	                        j = isolates[--jI].from;
	                        fromJ = jI ? isolates[jI - 1].to : rFrom;
	                    }
	                    types$6[--j] = replace;
	                }
	                i = end;
	            }
	            else {
	                prev = type;
	                i++;
	            }
	        }
	    }
	}
	// Find the contiguous ranges of character types in a given range, and
	// emit spans for them. Flip the order of the spans as appropriate
	// based on the level, and call through to compute the spans for
	// isolates at the proper point.
	function emitSpans(line, from, to, level, baseLevel, isolates, order) {
	    let ourType = level % 2 ? 2 /* T.R */ : 1 /* T.L */;
	    if ((level % 2) == (baseLevel % 2)) { // Same dir as base direction, don't flip
	        for (let iCh = from, iI = 0; iCh < to;) {
	            // Scan a section of characters in direction ourType, unless
	            // there's another type of char right after iCh, in which case
	            // we scan a section of other characters (which, if ourType ==
	            // T.L, may contain both T.R and T.AN chars).
	            let sameDir = true, isNum = false;
	            if (iI == isolates.length || iCh < isolates[iI].from) {
	                let next = types$6[iCh];
	                if (next != ourType) {
	                    sameDir = false;
	                    isNum = next == 16 /* T.AN */;
	                }
	            }
	            // Holds an array of isolates to pass to a recursive call if we
	            // must recurse (to distinguish T.AN inside an RTL section in
	            // LTR text), null if we can emit directly
	            let recurse = !sameDir && ourType == 1 /* T.L */ ? [] : null;
	            let localLevel = sameDir ? level : level + 1;
	            let iScan = iCh;
	            run: for (;;) {
	                if (iI < isolates.length && iScan == isolates[iI].from) {
	                    if (isNum)
	                        break run;
	                    let iso = isolates[iI];
	                    // Scan ahead to verify that there is another char in this dir after the isolate(s)
	                    if (!sameDir)
	                        for (let upto = iso.to, jI = iI + 1;;) {
	                            if (upto == to)
	                                break run;
	                            if (jI < isolates.length && isolates[jI].from == upto)
	                                upto = isolates[jI++].to;
	                            else if (types$6[upto] == ourType)
	                                break run;
	                            else
	                                break;
	                        }
	                    iI++;
	                    if (recurse) {
	                        recurse.push(iso);
	                    }
	                    else {
	                        if (iso.from > iCh)
	                            order.push(new BidiSpan(iCh, iso.from, localLevel));
	                        let dirSwap = (iso.direction == LTR) != !(localLevel % 2);
	                        computeSectionOrder(line, dirSwap ? level + 1 : level, baseLevel, iso.inner, iso.from, iso.to, order);
	                        iCh = iso.to;
	                    }
	                    iScan = iso.to;
	                }
	                else if (iScan == to || (sameDir ? types$6[iScan] != ourType : types$6[iScan] == ourType)) {
	                    break;
	                }
	                else {
	                    iScan++;
	                }
	            }
	            if (recurse)
	                emitSpans(line, iCh, iScan, level + 1, baseLevel, recurse, order);
	            else if (iCh < iScan)
	                order.push(new BidiSpan(iCh, iScan, localLevel));
	            iCh = iScan;
	        }
	    }
	    else {
	        // Iterate in reverse to flip the span order. Same code again, but
	        // going from the back of the section to the front
	        for (let iCh = to, iI = isolates.length; iCh > from;) {
	            let sameDir = true, isNum = false;
	            if (!iI || iCh > isolates[iI - 1].to) {
	                let next = types$6[iCh - 1];
	                if (next != ourType) {
	                    sameDir = false;
	                    isNum = next == 16 /* T.AN */;
	                }
	            }
	            let recurse = !sameDir && ourType == 1 /* T.L */ ? [] : null;
	            let localLevel = sameDir ? level : level + 1;
	            let iScan = iCh;
	            run: for (;;) {
	                if (iI && iScan == isolates[iI - 1].to) {
	                    if (isNum)
	                        break run;
	                    let iso = isolates[--iI];
	                    // Scan ahead to verify that there is another char in this dir after the isolate(s)
	                    if (!sameDir)
	                        for (let upto = iso.from, jI = iI;;) {
	                            if (upto == from)
	                                break run;
	                            if (jI && isolates[jI - 1].to == upto)
	                                upto = isolates[--jI].from;
	                            else if (types$6[upto - 1] == ourType)
	                                break run;
	                            else
	                                break;
	                        }
	                    if (recurse) {
	                        recurse.push(iso);
	                    }
	                    else {
	                        if (iso.to < iCh)
	                            order.push(new BidiSpan(iso.to, iCh, localLevel));
	                        let dirSwap = (iso.direction == LTR) != !(localLevel % 2);
	                        computeSectionOrder(line, dirSwap ? level + 1 : level, baseLevel, iso.inner, iso.from, iso.to, order);
	                        iCh = iso.from;
	                    }
	                    iScan = iso.from;
	                }
	                else if (iScan == from || (sameDir ? types$6[iScan - 1] != ourType : types$6[iScan - 1] == ourType)) {
	                    break;
	                }
	                else {
	                    iScan--;
	                }
	            }
	            if (recurse)
	                emitSpans(line, iScan, iCh, level + 1, baseLevel, recurse, order);
	            else if (iScan < iCh)
	                order.push(new BidiSpan(iScan, iCh, localLevel));
	            iCh = iScan;
	        }
	    }
	}
	function computeSectionOrder(line, level, baseLevel, isolates, from, to, order) {
	    let outerType = (level % 2 ? 2 /* T.R */ : 1 /* T.L */);
	    computeCharTypes(line, from, to, isolates, outerType);
	    processBracketPairs(line, from, to, isolates, outerType);
	    processNeutrals(from, to, isolates, outerType);
	    emitSpans(line, from, to, level, baseLevel, isolates, order);
	}
	function computeOrder(line, direction, isolates) {
	    if (!line)
	        return [new BidiSpan(0, 0, direction == RTL ? 1 : 0)];
	    if (direction == LTR && !isolates.length && !BidiRE.test(line))
	        return trivialOrder(line.length);
	    if (isolates.length)
	        while (line.length > types$6.length)
	            types$6[types$6.length] = 256 /* T.NI */; // Make sure types array has no gaps
	    let order = [], level = direction == LTR ? 0 : 1;
	    computeSectionOrder(line, level, level, isolates, 0, line.length, order);
	    return order;
	}
	function trivialOrder(length) {
	    return [new BidiSpan(0, length, 0)];
	}
	let movedOver = "";
	// This implementation moves strictly visually, without concern for a
	// traversal visiting every logical position in the string. It will
	// still do so for simple input, but situations like multiple isolates
	// with the same level next to each other, or text going against the
	// main dir at the end of the line, will make some positions
	// unreachable with this motion. Each visible cursor position will
	// correspond to the lower-level bidi span that touches it.
	//
	// The alternative would be to solve an order globally for a given
	// line, making sure that it includes every position, but that would
	// require associating non-canonical (higher bidi span level)
	// positions with a given visual position, which is likely to confuse
	// people. (And would generally be a lot more complicated.)
	function moveVisually(line, order, dir, start, forward) {
	    var _a;
	    let startIndex = start.head - line.from;
	    let spanI = BidiSpan.find(order, startIndex, (_a = start.bidiLevel) !== null && _a !== void 0 ? _a : -1, start.assoc);
	    let span = order[spanI], spanEnd = span.side(forward, dir);
	    // End of span
	    if (startIndex == spanEnd) {
	        let nextI = spanI += forward ? 1 : -1;
	        if (nextI < 0 || nextI >= order.length)
	            return null;
	        span = order[spanI = nextI];
	        startIndex = span.side(!forward, dir);
	        spanEnd = span.side(forward, dir);
	    }
	    let nextIndex = findClusterBreak(line.text, startIndex, span.forward(forward, dir));
	    if (nextIndex < span.from || nextIndex > span.to)
	        nextIndex = spanEnd;
	    movedOver = line.text.slice(Math.min(startIndex, nextIndex), Math.max(startIndex, nextIndex));
	    let nextSpan = spanI == (forward ? order.length - 1 : 0) ? null : order[spanI + (forward ? 1 : -1)];
	    if (nextSpan && nextIndex == spanEnd && nextSpan.level + (forward ? 0 : 1) < span.level)
	        return EditorSelection.cursor(nextSpan.side(!forward, dir) + line.from, nextSpan.forward(forward, dir) ? 1 : -1, nextSpan.level);
	    return EditorSelection.cursor(nextIndex + line.from, span.forward(forward, dir) ? -1 : 1, span.level);
	}
	function autoDirection(text, from, to) {
	    for (let i = from; i < to; i++) {
	        let type = charType(text.charCodeAt(i));
	        if (type == 1 /* T.L */)
	            return LTR;
	        if (type == 2 /* T.R */ || type == 4 /* T.AL */)
	            return RTL;
	    }
	    return LTR;
	}

	const clickAddsSelectionRange = /*@__PURE__*/Facet.define();
	const dragMovesSelection$1 = /*@__PURE__*/Facet.define();
	const mouseSelectionStyle = /*@__PURE__*/Facet.define();
	const exceptionSink = /*@__PURE__*/Facet.define();
	const updateListener = /*@__PURE__*/Facet.define();
	const inputHandler$1 = /*@__PURE__*/Facet.define();
	const focusChangeEffect = /*@__PURE__*/Facet.define();
	const perLineTextDirection = /*@__PURE__*/Facet.define({
	    combine: values => values.some(x => x)
	});
	const nativeSelectionHidden = /*@__PURE__*/Facet.define({
	    combine: values => values.some(x => x)
	});
	const scrollHandler = /*@__PURE__*/Facet.define();
	class ScrollTarget {
	    constructor(range, y = "nearest", x = "nearest", yMargin = 5, xMargin = 5, 
	    // This data structure is abused to also store precise scroll
	    // snapshots, instead of a `scrollIntoView` request. When this
	    // flag is `true`, `range` points at a position in the reference
	    // line, `yMargin` holds the difference between the top of that
	    // line and the top of the editor, and `xMargin` holds the
	    // editor's `scrollLeft`.
	    isSnapshot = false) {
	        this.range = range;
	        this.y = y;
	        this.x = x;
	        this.yMargin = yMargin;
	        this.xMargin = xMargin;
	        this.isSnapshot = isSnapshot;
	    }
	    map(changes) {
	        return changes.empty ? this :
	            new ScrollTarget(this.range.map(changes), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
	    }
	    clip(state) {
	        return this.range.to <= state.doc.length ? this :
	            new ScrollTarget(EditorSelection.cursor(state.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
	    }
	}
	const scrollIntoView$1 = /*@__PURE__*/StateEffect.define({ map: (t, ch) => t.map(ch) });
	/**
	Log or report an unhandled exception in client code. Should
	probably only be used by extension code that allows client code to
	provide functions, and calls those functions in a context where an
	exception can't be propagated to calling code in a reasonable way
	(for example when in an event handler).

	Either calls a handler registered with
	[`EditorView.exceptionSink`](https://codemirror.net/6/docs/ref/#view.EditorView^exceptionSink),
	`window.onerror`, if defined, or `console.error` (in which case
	it'll pass `context`, when given, as first argument).
	*/
	function logException(state, exception, context) {
	    let handler = state.facet(exceptionSink);
	    if (handler.length)
	        handler[0](exception);
	    else if (window.onerror)
	        window.onerror(String(exception), context, undefined, undefined, exception);
	    else if (context)
	        console.error(context + ":", exception);
	    else
	        console.error(exception);
	}
	const editable = /*@__PURE__*/Facet.define({ combine: values => values.length ? values[0] : true });
	let nextPluginID = 0;
	const viewPlugin = /*@__PURE__*/Facet.define();
	/**
	View plugins associate stateful values with a view. They can
	influence the way the content is drawn, and are notified of things
	that happen in the view.
	*/
	class ViewPlugin {
	    constructor(
	    /**
	    @internal
	    */
	    id, 
	    /**
	    @internal
	    */
	    create, 
	    /**
	    @internal
	    */
	    domEventHandlers, 
	    /**
	    @internal
	    */
	    domEventObservers, buildExtensions) {
	        this.id = id;
	        this.create = create;
	        this.domEventHandlers = domEventHandlers;
	        this.domEventObservers = domEventObservers;
	        this.extension = buildExtensions(this);
	    }
	    /**
	    Define a plugin from a constructor function that creates the
	    plugin's value, given an editor view.
	    */
	    static define(create, spec) {
	        const { eventHandlers, eventObservers, provide, decorations: deco } = spec || {};
	        return new ViewPlugin(nextPluginID++, create, eventHandlers, eventObservers, plugin => {
	            let ext = [viewPlugin.of(plugin)];
	            if (deco)
	                ext.push(decorations.of(view => {
	                    let pluginInst = view.plugin(plugin);
	                    return pluginInst ? deco(pluginInst) : Decoration.none;
	                }));
	            if (provide)
	                ext.push(provide(plugin));
	            return ext;
	        });
	    }
	    /**
	    Create a plugin for a class whose constructor takes a single
	    editor view as argument.
	    */
	    static fromClass(cls, spec) {
	        return ViewPlugin.define(view => new cls(view), spec);
	    }
	}
	class PluginInstance {
	    constructor(spec) {
	        this.spec = spec;
	        // When starting an update, all plugins have this field set to the
	        // update object, indicating they need to be updated. When finished
	        // updating, it is set to `false`. Retrieving a plugin that needs to
	        // be updated with `view.plugin` forces an eager update.
	        this.mustUpdate = null;
	        // This is null when the plugin is initially created, but
	        // initialized on the first update.
	        this.value = null;
	    }
	    update(view) {
	        if (!this.value) {
	            if (this.spec) {
	                try {
	                    this.value = this.spec.create(view);
	                }
	                catch (e) {
	                    logException(view.state, e, "CodeMirror plugin crashed");
	                    this.deactivate();
	                }
	            }
	        }
	        else if (this.mustUpdate) {
	            let update = this.mustUpdate;
	            this.mustUpdate = null;
	            if (this.value.update) {
	                try {
	                    this.value.update(update);
	                }
	                catch (e) {
	                    logException(update.state, e, "CodeMirror plugin crashed");
	                    if (this.value.destroy)
	                        try {
	                            this.value.destroy();
	                        }
	                        catch (_) { }
	                    this.deactivate();
	                }
	            }
	        }
	        return this;
	    }
	    destroy(view) {
	        var _a;
	        if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.destroy) {
	            try {
	                this.value.destroy();
	            }
	            catch (e) {
	                logException(view.state, e, "CodeMirror plugin crashed");
	            }
	        }
	    }
	    deactivate() {
	        this.spec = this.value = null;
	    }
	}
	const editorAttributes = /*@__PURE__*/Facet.define();
	const contentAttributes = /*@__PURE__*/Facet.define();
	// Provide decorations
	const decorations = /*@__PURE__*/Facet.define();
	const outerDecorations = /*@__PURE__*/Facet.define();
	const atomicRanges = /*@__PURE__*/Facet.define();
	const bidiIsolatedRanges = /*@__PURE__*/Facet.define();
	function getIsolatedRanges(view, line) {
	    let isolates = view.state.facet(bidiIsolatedRanges);
	    if (!isolates.length)
	        return isolates;
	    let sets = isolates.map(i => i instanceof Function ? i(view) : i);
	    let result = [];
	    RangeSet.spans(sets, line.from, line.to, {
	        point() { },
	        span(fromDoc, toDoc, active, open) {
	            let from = fromDoc - line.from, to = toDoc - line.from;
	            let level = result;
	            for (let i = active.length - 1; i >= 0; i--, open--) {
	                let direction = active[i].spec.bidiIsolate, update;
	                if (direction == null)
	                    direction = autoDirection(line.text, from, to);
	                if (open > 0 && level.length &&
	                    (update = level[level.length - 1]).to == from && update.direction == direction) {
	                    update.to = to;
	                    level = update.inner;
	                }
	                else {
	                    let add = { from, to, direction, inner: [] };
	                    level.push(add);
	                    level = add.inner;
	                }
	            }
	        }
	    });
	    return result;
	}
	const scrollMargins = /*@__PURE__*/Facet.define();
	function getScrollMargins(view) {
	    let left = 0, right = 0, top = 0, bottom = 0;
	    for (let source of view.state.facet(scrollMargins)) {
	        let m = source(view);
	        if (m) {
	            if (m.left != null)
	                left = Math.max(left, m.left);
	            if (m.right != null)
	                right = Math.max(right, m.right);
	            if (m.top != null)
	                top = Math.max(top, m.top);
	            if (m.bottom != null)
	                bottom = Math.max(bottom, m.bottom);
	        }
	    }
	    return { left, right, top, bottom };
	}
	const styleModule = /*@__PURE__*/Facet.define();
	class ChangedRange {
	    constructor(fromA, toA, fromB, toB) {
	        this.fromA = fromA;
	        this.toA = toA;
	        this.fromB = fromB;
	        this.toB = toB;
	    }
	    join(other) {
	        return new ChangedRange(Math.min(this.fromA, other.fromA), Math.max(this.toA, other.toA), Math.min(this.fromB, other.fromB), Math.max(this.toB, other.toB));
	    }
	    addToSet(set) {
	        let i = set.length, me = this;
	        for (; i > 0; i--) {
	            let range = set[i - 1];
	            if (range.fromA > me.toA)
	                continue;
	            if (range.toA < me.fromA)
	                break;
	            me = me.join(range);
	            set.splice(i - 1, 1);
	        }
	        set.splice(i, 0, me);
	        return set;
	    }
	    static extendWithRanges(diff, ranges) {
	        if (ranges.length == 0)
	            return diff;
	        let result = [];
	        for (let dI = 0, rI = 0, posA = 0, posB = 0;; dI++) {
	            let next = dI == diff.length ? null : diff[dI], off = posA - posB;
	            let end = next ? next.fromB : 1e9;
	            while (rI < ranges.length && ranges[rI] < end) {
	                let from = ranges[rI], to = ranges[rI + 1];
	                let fromB = Math.max(posB, from), toB = Math.min(end, to);
	                if (fromB <= toB)
	                    new ChangedRange(fromB + off, toB + off, fromB, toB).addToSet(result);
	                if (to > end)
	                    break;
	                else
	                    rI += 2;
	            }
	            if (!next)
	                return result;
	            new ChangedRange(next.fromA, next.toA, next.fromB, next.toB).addToSet(result);
	            posA = next.toA;
	            posB = next.toB;
	        }
	    }
	}
	/**
	View [plugins](https://codemirror.net/6/docs/ref/#view.ViewPlugin) are given instances of this
	class, which describe what happened, whenever the view is updated.
	*/
	class ViewUpdate {
	    constructor(
	    /**
	    The editor view that the update is associated with.
	    */
	    view, 
	    /**
	    The new editor state.
	    */
	    state, 
	    /**
	    The transactions involved in the update. May be empty.
	    */
	    transactions) {
	        this.view = view;
	        this.state = state;
	        this.transactions = transactions;
	        /**
	        @internal
	        */
	        this.flags = 0;
	        this.startState = view.state;
	        this.changes = ChangeSet.empty(this.startState.doc.length);
	        for (let tr of transactions)
	            this.changes = this.changes.compose(tr.changes);
	        let changedRanges = [];
	        this.changes.iterChangedRanges((fromA, toA, fromB, toB) => changedRanges.push(new ChangedRange(fromA, toA, fromB, toB)));
	        this.changedRanges = changedRanges;
	    }
	    /**
	    @internal
	    */
	    static create(view, state, transactions) {
	        return new ViewUpdate(view, state, transactions);
	    }
	    /**
	    Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or
	    [visible ranges](https://codemirror.net/6/docs/ref/#view.EditorView.visibleRanges) changed in this
	    update.
	    */
	    get viewportChanged() {
	        return (this.flags & 4 /* UpdateFlag.Viewport */) > 0;
	    }
	    /**
	    Indicates whether the height of a block element in the editor
	    changed in this update.
	    */
	    get heightChanged() {
	        return (this.flags & 2 /* UpdateFlag.Height */) > 0;
	    }
	    /**
	    Returns true when the document was modified or the size of the
	    editor, or elements within the editor, changed.
	    */
	    get geometryChanged() {
	        return this.docChanged || (this.flags & (8 /* UpdateFlag.Geometry */ | 2 /* UpdateFlag.Height */)) > 0;
	    }
	    /**
	    True when this update indicates a focus change.
	    */
	    get focusChanged() {
	        return (this.flags & 1 /* UpdateFlag.Focus */) > 0;
	    }
	    /**
	    Whether the document changed in this update.
	    */
	    get docChanged() {
	        return !this.changes.empty;
	    }
	    /**
	    Whether the selection was explicitly set in this update.
	    */
	    get selectionSet() {
	        return this.transactions.some(tr => tr.selection);
	    }
	    /**
	    @internal
	    */
	    get empty() { return this.flags == 0 && this.transactions.length == 0; }
	}

	class DocView extends ContentView {
	    get length() { return this.view.state.doc.length; }
	    constructor(view) {
	        super();
	        this.view = view;
	        this.decorations = [];
	        this.dynamicDecorationMap = [false];
	        this.domChanged = null;
	        this.hasComposition = null;
	        this.markedForComposition = new Set;
	        this.compositionBarrier = Decoration.none;
	        // Track a minimum width for the editor. When measuring sizes in
	        // measureVisibleLineHeights, this is updated to point at the width
	        // of a given element and its extent in the document. When a change
	        // happens in that range, these are reset. That way, once we've seen
	        // a line/element of a given length, we keep the editor wide enough
	        // to fit at least that element, until it is changed, at which point
	        // we forget it again.
	        this.minWidth = 0;
	        this.minWidthFrom = 0;
	        this.minWidthTo = 0;
	        // Track whether the DOM selection was set in a lossy way, so that
	        // we don't mess it up when reading it back it
	        this.impreciseAnchor = null;
	        this.impreciseHead = null;
	        this.forceSelection = false;
	        // Used by the resize observer to ignore resizes that we caused
	        // ourselves
	        this.lastUpdate = Date.now();
	        this.setDOM(view.contentDOM);
	        this.children = [new LineView];
	        this.children[0].setParent(this);
	        this.updateDeco();
	        this.updateInner([new ChangedRange(0, 0, 0, view.state.doc.length)], 0, null);
	    }
	    // Update the document view to a given state.
	    update(update) {
	        var _a;
	        let changedRanges = update.changedRanges;
	        if (this.minWidth > 0 && changedRanges.length) {
	            if (!changedRanges.every(({ fromA, toA }) => toA < this.minWidthFrom || fromA > this.minWidthTo)) {
	                this.minWidth = this.minWidthFrom = this.minWidthTo = 0;
	            }
	            else {
	                this.minWidthFrom = update.changes.mapPos(this.minWidthFrom, 1);
	                this.minWidthTo = update.changes.mapPos(this.minWidthTo, 1);
	            }
	        }
	        let readCompositionAt = -1;
	        if (this.view.inputState.composing >= 0) {
	            if ((_a = this.domChanged) === null || _a === void 0 ? void 0 : _a.newSel)
	                readCompositionAt = this.domChanged.newSel.head;
	            else if (!touchesComposition(update.changes, this.hasComposition) && !update.selectionSet)
	                readCompositionAt = update.state.selection.main.head;
	        }
	        let composition = readCompositionAt > -1 ? findCompositionRange(this.view, update.changes, readCompositionAt) : null;
	        this.domChanged = null;
	        if (this.hasComposition) {
	            this.markedForComposition.clear();
	            let { from, to } = this.hasComposition;
	            changedRanges = new ChangedRange(from, to, update.changes.mapPos(from, -1), update.changes.mapPos(to, 1))
	                .addToSet(changedRanges.slice());
	        }
	        this.hasComposition = composition ? { from: composition.range.fromB, to: composition.range.toB } : null;
	        // When the DOM nodes around the selection are moved to another
	        // parent, Chrome sometimes reports a different selection through
	        // getSelection than the one that it actually shows to the user.
	        // This forces a selection update when lines are joined to work
	        // around that. Issue #54
	        if ((browser.ie || browser.chrome) && !composition && update &&
	            update.state.doc.lines != update.startState.doc.lines)
	            this.forceSelection = true;
	        let prevDeco = this.decorations, deco = this.updateDeco();
	        let decoDiff = findChangedDeco(prevDeco, deco, update.changes);
	        changedRanges = ChangedRange.extendWithRanges(changedRanges, decoDiff);
	        if (!(this.flags & 7 /* ViewFlag.Dirty */) && changedRanges.length == 0) {
	            return false;
	        }
	        else {
	            this.updateInner(changedRanges, update.startState.doc.length, composition);
	            if (update.transactions.length)
	                this.lastUpdate = Date.now();
	            return true;
	        }
	    }
	    // Used by update and the constructor do perform the actual DOM
	    // update
	    updateInner(changes, oldLength, composition) {
	        this.view.viewState.mustMeasureContent = true;
	        this.updateChildren(changes, oldLength, composition);
	        let { observer } = this.view;
	        observer.ignore(() => {
	            // Lock the height during redrawing, since Chrome sometimes
	            // messes with the scroll position during DOM mutation (though
	            // no relayout is triggered and I cannot imagine how it can
	            // recompute the scroll position without a layout)
	            this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px";
	            this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
	            // Chrome will sometimes, when DOM mutations occur directly
	            // around the selection, get confused and report a different
	            // selection from the one it displays (issue #218). This tries
	            // to detect that situation.
	            let track = browser.chrome || browser.ios ? { node: observer.selectionRange.focusNode, written: false } : undefined;
	            this.sync(this.view, track);
	            this.flags &= ~7 /* ViewFlag.Dirty */;
	            if (track && (track.written || observer.selectionRange.focusNode != track.node))
	                this.forceSelection = true;
	            this.dom.style.height = "";
	        });
	        this.markedForComposition.forEach(cView => cView.flags &= ~8 /* ViewFlag.Composition */);
	        let gaps = [];
	        if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
	            for (let child of this.children)
	                if (child instanceof BlockWidgetView && child.widget instanceof BlockGapWidget)
	                    gaps.push(child.dom);
	        observer.updateGaps(gaps);
	    }
	    updateChildren(changes, oldLength, composition) {
	        let ranges = composition ? composition.range.addToSet(changes.slice()) : changes;
	        let cursor = this.childCursor(oldLength);
	        for (let i = ranges.length - 1;; i--) {
	            let next = i >= 0 ? ranges[i] : null;
	            if (!next)
	                break;
	            let { fromA, toA, fromB, toB } = next, content, breakAtStart, openStart, openEnd;
	            if (composition && composition.range.fromB < toB && composition.range.toB > fromB) {
	                let before = ContentBuilder.build(this.view.state.doc, fromB, composition.range.fromB, this.decorations, this.dynamicDecorationMap);
	                let after = ContentBuilder.build(this.view.state.doc, composition.range.toB, toB, this.decorations, this.dynamicDecorationMap);
	                breakAtStart = before.breakAtStart;
	                openStart = before.openStart;
	                openEnd = after.openEnd;
	                let compLine = this.compositionView(composition);
	                if (after.breakAtStart) {
	                    compLine.breakAfter = 1;
	                }
	                else if (after.content.length &&
	                    compLine.merge(compLine.length, compLine.length, after.content[0], false, after.openStart, 0)) {
	                    compLine.breakAfter = after.content[0].breakAfter;
	                    after.content.shift();
	                }
	                if (before.content.length &&
	                    compLine.merge(0, 0, before.content[before.content.length - 1], true, 0, before.openEnd)) {
	                    before.content.pop();
	                }
	                content = before.content.concat(compLine).concat(after.content);
	            }
	            else {
	                ({ content, breakAtStart, openStart, openEnd } =
	                    ContentBuilder.build(this.view.state.doc, fromB, toB, this.decorations, this.dynamicDecorationMap));
	            }
	            let { i: toI, off: toOff } = cursor.findPos(toA, 1);
	            let { i: fromI, off: fromOff } = cursor.findPos(fromA, -1);
	            replaceRange(this, fromI, fromOff, toI, toOff, content, breakAtStart, openStart, openEnd);
	        }
	        if (composition)
	            this.fixCompositionDOM(composition);
	    }
	    compositionView(composition) {
	        let cur = new TextView(composition.text.nodeValue);
	        cur.flags |= 8 /* ViewFlag.Composition */;
	        for (let { deco } of composition.marks)
	            cur = new MarkView(deco, [cur], cur.length);
	        let line = new LineView;
	        line.append(cur, 0);
	        return line;
	    }
	    fixCompositionDOM(composition) {
	        let fix = (dom, cView) => {
	            cView.flags |= 8 /* ViewFlag.Composition */ | (cView.children.some(c => c.flags & 7 /* ViewFlag.Dirty */) ? 1 /* ViewFlag.ChildDirty */ : 0);
	            this.markedForComposition.add(cView);
	            let prev = ContentView.get(dom);
	            if (prev && prev != cView)
	                prev.dom = null;
	            cView.setDOM(dom);
	        };
	        let pos = this.childPos(composition.range.fromB, 1);
	        let cView = this.children[pos.i];
	        fix(composition.line, cView);
	        for (let i = composition.marks.length - 1; i >= -1; i--) {
	            pos = cView.childPos(pos.off, 1);
	            cView = cView.children[pos.i];
	            fix(i >= 0 ? composition.marks[i].node : composition.text, cView);
	        }
	    }
	    // Sync the DOM selection to this.state.selection
	    updateSelection(mustRead = false, fromPointer = false) {
	        if (mustRead || !this.view.observer.selectionRange.focusNode)
	            this.view.observer.readSelectionRange();
	        let activeElt = this.view.root.activeElement, focused = activeElt == this.dom;
	        let selectionNotFocus = !focused &&
	            hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
	        if (!(focused || fromPointer || selectionNotFocus))
	            return;
	        let force = this.forceSelection;
	        this.forceSelection = false;
	        let main = this.view.state.selection.main;
	        let anchor = this.moveToLine(this.domAtPos(main.anchor));
	        let head = main.empty ? anchor : this.moveToLine(this.domAtPos(main.head));
	        // Always reset on Firefox when next to an uneditable node to
	        // avoid invisible cursor bugs (#111)
	        if (browser.gecko && main.empty && !this.hasComposition && betweenUneditable(anchor)) {
	            let dummy = document.createTextNode("");
	            this.view.observer.ignore(() => anchor.node.insertBefore(dummy, anchor.node.childNodes[anchor.offset] || null));
	            anchor = head = new DOMPos(dummy, 0);
	            force = true;
	        }
	        let domSel = this.view.observer.selectionRange;
	        // If the selection is already here, or in an equivalent position, don't touch it
	        if (force || !domSel.focusNode || (!isEquivalentPosition(anchor.node, anchor.offset, domSel.anchorNode, domSel.anchorOffset) ||
	            !isEquivalentPosition(head.node, head.offset, domSel.focusNode, domSel.focusOffset)) && !this.suppressWidgetCursorChange(domSel, main)) {
	            this.view.observer.ignore(() => {
	                // Chrome Android will hide the virtual keyboard when tapping
	                // inside an uneditable node, and not bring it back when we
	                // move the cursor to its proper position. This tries to
	                // restore the keyboard by cycling focus.
	                if (browser.android && browser.chrome && this.dom.contains(domSel.focusNode) &&
	                    inUneditable(domSel.focusNode, this.dom)) {
	                    this.dom.blur();
	                    this.dom.focus({ preventScroll: true });
	                }
	                let rawSel = getSelection(this.view.root);
	                if (!rawSel) ;
	                else if (main.empty) {
	                    // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=1612076
	                    if (browser.gecko) {
	                        let nextTo = nextToUneditable(anchor.node, anchor.offset);
	                        if (nextTo && nextTo != (1 /* NextTo.Before */ | 2 /* NextTo.After */)) {
	                            let text = nearbyTextNode(anchor.node, anchor.offset, nextTo == 1 /* NextTo.Before */ ? 1 : -1);
	                            if (text)
	                                anchor = new DOMPos(text.node, text.offset);
	                        }
	                    }
	                    rawSel.collapse(anchor.node, anchor.offset);
	                    if (main.bidiLevel != null && rawSel.caretBidiLevel !== undefined)
	                        rawSel.caretBidiLevel = main.bidiLevel;
	                }
	                else if (rawSel.extend) {
	                    // Selection.extend can be used to create an 'inverted' selection
	                    // (one where the focus is before the anchor), but not all
	                    // browsers support it yet.
	                    rawSel.collapse(anchor.node, anchor.offset);
	                    // Safari will ignore the call above when the editor is
	                    // hidden, and then raise an error on the call to extend
	                    // (#940).
	                    try {
	                        rawSel.extend(head.node, head.offset);
	                    }
	                    catch (_) { }
	                }
	                else {
	                    // Primitive (IE) way
	                    let range = document.createRange();
	                    if (main.anchor > main.head)
	                        [anchor, head] = [head, anchor];
	                    range.setEnd(head.node, head.offset);
	                    range.setStart(anchor.node, anchor.offset);
	                    rawSel.removeAllRanges();
	                    rawSel.addRange(range);
	                }
	                if (selectionNotFocus && this.view.root.activeElement == this.dom) {
	                    this.dom.blur();
	                    if (activeElt)
	                        activeElt.focus();
	                }
	            });
	            this.view.observer.setSelectionRange(anchor, head);
	        }
	        this.impreciseAnchor = anchor.precise ? null : new DOMPos(domSel.anchorNode, domSel.anchorOffset);
	        this.impreciseHead = head.precise ? null : new DOMPos(domSel.focusNode, domSel.focusOffset);
	    }
	    // If a zero-length widget is inserted next to the cursor during
	    // composition, avoid moving it across it and disrupting the
	    // composition.
	    suppressWidgetCursorChange(sel, cursor) {
	        return this.hasComposition && cursor.empty && !this.compositionBarrier.size &&
	            isEquivalentPosition(sel.focusNode, sel.focusOffset, sel.anchorNode, sel.anchorOffset) &&
	            this.posFromDOM(sel.focusNode, sel.focusOffset) == cursor.head;
	    }
	    enforceCursorAssoc() {
	        if (this.hasComposition)
	            return;
	        let { view } = this, cursor = view.state.selection.main;
	        let sel = getSelection(view.root);
	        let { anchorNode, anchorOffset } = view.observer.selectionRange;
	        if (!sel || !cursor.empty || !cursor.assoc || !sel.modify)
	            return;
	        let line = LineView.find(this, cursor.head);
	        if (!line)
	            return;
	        let lineStart = line.posAtStart;
	        if (cursor.head == lineStart || cursor.head == lineStart + line.length)
	            return;
	        let before = this.coordsAt(cursor.head, -1), after = this.coordsAt(cursor.head, 1);
	        if (!before || !after || before.bottom > after.top)
	            return;
	        let dom = this.domAtPos(cursor.head + cursor.assoc);
	        sel.collapse(dom.node, dom.offset);
	        sel.modify("move", cursor.assoc < 0 ? "forward" : "backward", "lineboundary");
	        // This can go wrong in corner cases like single-character lines,
	        // so check and reset if necessary.
	        view.observer.readSelectionRange();
	        let newRange = view.observer.selectionRange;
	        if (view.docView.posFromDOM(newRange.anchorNode, newRange.anchorOffset) != cursor.from)
	            sel.collapse(anchorNode, anchorOffset);
	    }
	    // If a position is in/near a block widget, move it to a nearby text
	    // line, since we don't want the cursor inside a block widget.
	    moveToLine(pos) {
	        // Block widgets will return positions before/after them, which
	        // are thus directly in the document DOM element.
	        let dom = this.dom, newPos;
	        if (pos.node != dom)
	            return pos;
	        for (let i = pos.offset; !newPos && i < dom.childNodes.length; i++) {
	            let view = ContentView.get(dom.childNodes[i]);
	            if (view instanceof LineView)
	                newPos = view.domAtPos(0);
	        }
	        for (let i = pos.offset - 1; !newPos && i >= 0; i--) {
	            let view = ContentView.get(dom.childNodes[i]);
	            if (view instanceof LineView)
	                newPos = view.domAtPos(view.length);
	        }
	        return newPos ? new DOMPos(newPos.node, newPos.offset, true) : pos;
	    }
	    nearest(dom) {
	        for (let cur = dom; cur;) {
	            let domView = ContentView.get(cur);
	            if (domView && domView.rootView == this)
	                return domView;
	            cur = cur.parentNode;
	        }
	        return null;
	    }
	    posFromDOM(node, offset) {
	        let view = this.nearest(node);
	        if (!view)
	            throw new RangeError("Trying to find position for a DOM position outside of the document");
	        return view.localPosFromDOM(node, offset) + view.posAtStart;
	    }
	    domAtPos(pos) {
	        let { i, off } = this.childCursor().findPos(pos, -1);
	        for (; i < this.children.length - 1;) {
	            let child = this.children[i];
	            if (off < child.length || child instanceof LineView)
	                break;
	            i++;
	            off = 0;
	        }
	        return this.children[i].domAtPos(off);
	    }
	    coordsAt(pos, side) {
	        let best = null, bestPos = 0;
	        for (let off = this.length, i = this.children.length - 1; i >= 0; i--) {
	            let child = this.children[i], end = off - child.breakAfter, start = end - child.length;
	            if (end < pos)
	                break;
	            if (start <= pos && (start < pos || child.covers(-1)) && (end > pos || child.covers(1)) &&
	                (!best || child instanceof LineView && !(best instanceof LineView && side >= 0))) {
	                best = child;
	                bestPos = start;
	            }
	            off = start;
	        }
	        return best ? best.coordsAt(pos - bestPos, side) : null;
	    }
	    coordsForChar(pos) {
	        let { i, off } = this.childPos(pos, 1), child = this.children[i];
	        if (!(child instanceof LineView))
	            return null;
	        while (child.children.length) {
	            let { i, off: childOff } = child.childPos(off, 1);
	            for (;; i++) {
	                if (i == child.children.length)
	                    return null;
	                if ((child = child.children[i]).length)
	                    break;
	            }
	            off = childOff;
	        }
	        if (!(child instanceof TextView))
	            return null;
	        let end = findClusterBreak(child.text, off);
	        if (end == off)
	            return null;
	        let rects = textRange(child.dom, off, end).getClientRects();
	        for (let i = 0; i < rects.length; i++) {
	            let rect = rects[i];
	            if (i == rects.length - 1 || rect.top < rect.bottom && rect.left < rect.right)
	                return rect;
	        }
	        return null;
	    }
	    measureVisibleLineHeights(viewport) {
	        let result = [], { from, to } = viewport;
	        let contentWidth = this.view.contentDOM.clientWidth;
	        let isWider = contentWidth > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1;
	        let widest = -1, ltr = this.view.textDirection == Direction.LTR;
	        for (let pos = 0, i = 0; i < this.children.length; i++) {
	            let child = this.children[i], end = pos + child.length;
	            if (end > to)
	                break;
	            if (pos >= from) {
	                let childRect = child.dom.getBoundingClientRect();
	                result.push(childRect.height);
	                if (isWider) {
	                    let last = child.dom.lastChild;
	                    let rects = last ? clientRectsFor(last) : [];
	                    if (rects.length) {
	                        let rect = rects[rects.length - 1];
	                        let width = ltr ? rect.right - childRect.left : childRect.right - rect.left;
	                        if (width > widest) {
	                            widest = width;
	                            this.minWidth = contentWidth;
	                            this.minWidthFrom = pos;
	                            this.minWidthTo = end;
	                        }
	                    }
	                }
	            }
	            pos = end + child.breakAfter;
	        }
	        return result;
	    }
	    textDirectionAt(pos) {
	        let { i } = this.childPos(pos, 1);
	        return getComputedStyle(this.children[i].dom).direction == "rtl" ? Direction.RTL : Direction.LTR;
	    }
	    measureTextSize() {
	        for (let child of this.children) {
	            if (child instanceof LineView) {
	                let measure = child.measureTextSize();
	                if (measure)
	                    return measure;
	            }
	        }
	        // If no workable line exists, force a layout of a measurable element
	        let dummy = document.createElement("div"), lineHeight, charWidth, textHeight;
	        dummy.className = "cm-line";
	        dummy.style.width = "99999px";
	        dummy.style.position = "absolute";
	        dummy.textContent = "abc def ghi jkl mno pqr stu";
	        this.view.observer.ignore(() => {
	            this.dom.appendChild(dummy);
	            let rect = clientRectsFor(dummy.firstChild)[0];
	            lineHeight = dummy.getBoundingClientRect().height;
	            charWidth = rect ? rect.width / 27 : 7;
	            textHeight = rect ? rect.height : lineHeight;
	            dummy.remove();
	        });
	        return { lineHeight, charWidth, textHeight };
	    }
	    childCursor(pos = this.length) {
	        // Move back to start of last element when possible, so that
	        // `ChildCursor.findPos` doesn't have to deal with the edge case
	        // of being after the last element.
	        let i = this.children.length;
	        if (i)
	            pos -= this.children[--i].length;
	        return new ChildCursor(this.children, pos, i);
	    }
	    computeBlockGapDeco() {
	        let deco = [], vs = this.view.viewState;
	        for (let pos = 0, i = 0;; i++) {
	            let next = i == vs.viewports.length ? null : vs.viewports[i];
	            let end = next ? next.from - 1 : this.length;
	            if (end > pos) {
	                let height = (vs.lineBlockAt(end).bottom - vs.lineBlockAt(pos).top) / this.view.scaleY;
	                deco.push(Decoration.replace({
	                    widget: new BlockGapWidget(height),
	                    block: true,
	                    inclusive: true,
	                    isBlockGap: true,
	                }).range(pos, end));
	            }
	            if (!next)
	                break;
	            pos = next.to + 1;
	        }
	        return Decoration.set(deco);
	    }
	    updateDeco() {
	        let i = 1;
	        let allDeco = this.view.state.facet(decorations).map(d => {
	            let dynamic = this.dynamicDecorationMap[i++] = typeof d == "function";
	            return dynamic ? d(this.view) : d;
	        });
	        let dynamicOuter = false, outerDeco = this.view.state.facet(outerDecorations).map((d, i) => {
	            let dynamic = typeof d == "function";
	            if (dynamic)
	                dynamicOuter = true;
	            return dynamic ? d(this.view) : d;
	        });
	        if (outerDeco.length) {
	            this.dynamicDecorationMap[i++] = dynamicOuter;
	            allDeco.push(RangeSet.join(outerDeco));
	        }
	        this.decorations = [
	            this.compositionBarrier,
	            ...allDeco,
	            this.computeBlockGapDeco(),
	            this.view.viewState.lineGapDeco
	        ];
	        while (i < this.decorations.length)
	            this.dynamicDecorationMap[i++] = false;
	        return this.decorations;
	    }
	    // Starting a composition will style the inserted text with the
	    // style of the text before it, and this is only cleared when the
	    // composition ends, because touching it before that will abort it.
	    // This (called from compositionstart handler) tries to notice when
	    // the cursor is after a non-inclusive mark, where the styling could
	    // be jarring, and insert an ad-hoc widget before the cursor to
	    // isolate it from the style before it.
	    maybeCreateCompositionBarrier() {
	        let { main: { head, empty } } = this.view.state.selection;
	        if (!empty)
	            return false;
	        let found = null;
	        for (let set of this.decorations) {
	            set.between(head, head, (from, to, value) => {
	                if (value.point)
	                    found = false;
	                else if (value.endSide < 0 && from < head && to == head)
	                    found = true;
	            });
	            if (found === false)
	                break;
	        }
	        this.compositionBarrier = found ? Decoration.set(compositionBarrierWidget.range(head)) : Decoration.none;
	        return !!found;
	    }
	    clearCompositionBarrier() {
	        this.compositionBarrier = Decoration.none;
	    }
	    scrollIntoView(target) {
	        if (target.isSnapshot) {
	            let ref = this.view.viewState.lineBlockAt(target.range.head);
	            this.view.scrollDOM.scrollTop = ref.top - target.yMargin;
	            this.view.scrollDOM.scrollLeft = target.xMargin;
	            return;
	        }
	        for (let handler of this.view.state.facet(scrollHandler)) {
	            try {
	                if (handler(this.view, target.range, target))
	                    return true;
	            }
	            catch (e) {
	                logException(this.view.state, e, "scroll handler");
	            }
	        }
	        let { range } = target;
	        let rect = this.coordsAt(range.head, range.empty ? range.assoc : range.head > range.anchor ? -1 : 1), other;
	        if (!rect)
	            return;
	        if (!range.empty && (other = this.coordsAt(range.anchor, range.anchor > range.head ? -1 : 1)))
	            rect = { left: Math.min(rect.left, other.left), top: Math.min(rect.top, other.top),
	                right: Math.max(rect.right, other.right), bottom: Math.max(rect.bottom, other.bottom) };
	        let margins = getScrollMargins(this.view);
	        let targetRect = {
	            left: rect.left - margins.left, top: rect.top - margins.top,
	            right: rect.right + margins.right, bottom: rect.bottom + margins.bottom
	        };
	        let { offsetWidth, offsetHeight } = this.view.scrollDOM;
	        scrollRectIntoView(this.view.scrollDOM, targetRect, range.head < range.anchor ? -1 : 1, target.x, target.y, Math.max(Math.min(target.xMargin, offsetWidth), -offsetWidth), Math.max(Math.min(target.yMargin, offsetHeight), -offsetHeight), this.view.textDirection == Direction.LTR);
	    }
	}
	const compositionBarrierWidget = /*@__PURE__*/Decoration.widget({ side: -1, widget: NullWidget.inline });
	function betweenUneditable(pos) {
	    return pos.node.nodeType == 1 && pos.node.firstChild &&
	        (pos.offset == 0 || pos.node.childNodes[pos.offset - 1].contentEditable == "false") &&
	        (pos.offset == pos.node.childNodes.length || pos.node.childNodes[pos.offset].contentEditable == "false");
	}
	class BlockGapWidget extends WidgetType {
	    constructor(height) {
	        super();
	        this.height = height;
	    }
	    toDOM() {
	        let elt = document.createElement("div");
	        elt.className = "cm-gap";
	        this.updateDOM(elt);
	        return elt;
	    }
	    eq(other) { return other.height == this.height; }
	    updateDOM(elt) {
	        elt.style.height = this.height + "px";
	        return true;
	    }
	    get editable() { return true; }
	    get estimatedHeight() { return this.height; }
	    ignoreEvent() { return false; }
	}
	function findCompositionNode(view, headPos) {
	    let sel = view.observer.selectionRange;
	    let textNode = sel.focusNode && nearbyTextNode(sel.focusNode, sel.focusOffset, 0);
	    if (!textNode)
	        return null;
	    let from = headPos - textNode.offset;
	    return { from, to: from + textNode.node.nodeValue.length, node: textNode.node };
	}
	function findCompositionRange(view, changes, headPos) {
	    let found = findCompositionNode(view, headPos);
	    if (!found)
	        return null;
	    let { node: textNode, from, to } = found, text = textNode.nodeValue;
	    // Don't try to preserve multi-line compositions
	    if (/[\n\r]/.test(text))
	        return null;
	    if (view.state.doc.sliceString(found.from, found.to) != text)
	        return null;
	    let inv = changes.invertedDesc;
	    let range = new ChangedRange(inv.mapPos(from), inv.mapPos(to), from, to);
	    let marks = [];
	    for (let parent = textNode.parentNode;; parent = parent.parentNode) {
	        let parentView = ContentView.get(parent);
	        if (parentView instanceof MarkView)
	            marks.push({ node: parent, deco: parentView.mark });
	        else if (parentView instanceof LineView || parent.nodeName == "DIV" && parent.parentNode == view.contentDOM)
	            return { range, text: textNode, marks, line: parent };
	        else if (parent != view.contentDOM)
	            marks.push({ node: parent, deco: new MarkDecoration({
	                    inclusive: true,
	                    attributes: getAttrs$1(parent),
	                    tagName: parent.tagName.toLowerCase()
	                }) });
	        else
	            return null;
	    }
	}
	function nearbyTextNode(startNode, startOffset, side) {
	    if (side <= 0)
	        for (let node = startNode, offset = startOffset;;) {
	            if (node.nodeType == 3)
	                return { node: node, offset: offset };
	            if (node.nodeType == 1 && offset > 0) {
	                node = node.childNodes[offset - 1];
	                offset = maxOffset(node);
	            }
	            else {
	                break;
	            }
	        }
	    if (side >= 0)
	        for (let node = startNode, offset = startOffset;;) {
	            if (node.nodeType == 3)
	                return { node: node, offset: offset };
	            if (node.nodeType == 1 && offset < node.childNodes.length && side >= 0) {
	                node = node.childNodes[offset];
	                offset = 0;
	            }
	            else {
	                break;
	            }
	        }
	    return null;
	}
	function nextToUneditable(node, offset) {
	    if (node.nodeType != 1)
	        return 0;
	    return (offset && node.childNodes[offset - 1].contentEditable == "false" ? 1 /* NextTo.Before */ : 0) |
	        (offset < node.childNodes.length && node.childNodes[offset].contentEditable == "false" ? 2 /* NextTo.After */ : 0);
	}
	let DecorationComparator$1 = class DecorationComparator {
	    constructor() {
	        this.changes = [];
	    }
	    compareRange(from, to) { addRange(from, to, this.changes); }
	    comparePoint(from, to) { addRange(from, to, this.changes); }
	};
	function findChangedDeco(a, b, diff) {
	    let comp = new DecorationComparator$1;
	    RangeSet.compare(a, b, diff, comp);
	    return comp.changes;
	}
	function inUneditable(node, inside) {
	    for (let cur = node; cur && cur != inside; cur = cur.assignedSlot || cur.parentNode) {
	        if (cur.nodeType == 1 && cur.contentEditable == 'false') {
	            return true;
	        }
	    }
	    return false;
	}
	function touchesComposition(changes, composition) {
	    let touched = false;
	    if (composition)
	        changes.iterChangedRanges((from, to) => {
	            if (from < composition.to && to > composition.from)
	                touched = true;
	        });
	    return touched;
	}

	function groupAt(state, pos, bias = 1) {
	    let categorize = state.charCategorizer(pos);
	    let line = state.doc.lineAt(pos), linePos = pos - line.from;
	    if (line.length == 0)
	        return EditorSelection.cursor(pos);
	    if (linePos == 0)
	        bias = 1;
	    else if (linePos == line.length)
	        bias = -1;
	    let from = linePos, to = linePos;
	    if (bias < 0)
	        from = findClusterBreak(line.text, linePos, false);
	    else
	        to = findClusterBreak(line.text, linePos);
	    let cat = categorize(line.text.slice(from, to));
	    while (from > 0) {
	        let prev = findClusterBreak(line.text, from, false);
	        if (categorize(line.text.slice(prev, from)) != cat)
	            break;
	        from = prev;
	    }
	    while (to < line.length) {
	        let next = findClusterBreak(line.text, to);
	        if (categorize(line.text.slice(to, next)) != cat)
	            break;
	        to = next;
	    }
	    return EditorSelection.range(from + line.from, to + line.from);
	}
	// Search the DOM for the {node, offset} position closest to the given
	// coordinates. Very inefficient and crude, but can usually be avoided
	// by calling caret(Position|Range)FromPoint instead.
	function getdx(x, rect) {
	    return rect.left > x ? rect.left - x : Math.max(0, x - rect.right);
	}
	function getdy(y, rect) {
	    return rect.top > y ? rect.top - y : Math.max(0, y - rect.bottom);
	}
	function yOverlap(a, b) {
	    return a.top < b.bottom - 1 && a.bottom > b.top + 1;
	}
	function upTop(rect, top) {
	    return top < rect.top ? { top, left: rect.left, right: rect.right, bottom: rect.bottom } : rect;
	}
	function upBot(rect, bottom) {
	    return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;
	}
	function domPosAtCoords(parent, x, y) {
	    let closest, closestRect, closestX, closestY, closestOverlap = false;
	    let above, below, aboveRect, belowRect;
	    for (let child = parent.firstChild; child; child = child.nextSibling) {
	        let rects = clientRectsFor(child);
	        for (let i = 0; i < rects.length; i++) {
	            let rect = rects[i];
	            if (closestRect && yOverlap(closestRect, rect))
	                rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);
	            let dx = getdx(x, rect), dy = getdy(y, rect);
	            if (dx == 0 && dy == 0)
	                return child.nodeType == 3 ? domPosInText(child, x, y) : domPosAtCoords(child, x, y);
	            if (!closest || closestY > dy || closestY == dy && closestX > dx) {
	                closest = child;
	                closestRect = rect;
	                closestX = dx;
	                closestY = dy;
	                let side = dy ? (y < rect.top ? -1 : 1) : dx ? (x < rect.left ? -1 : 1) : 0;
	                closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);
	            }
	            if (dx == 0) {
	                if (y > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {
	                    above = child;
	                    aboveRect = rect;
	                }
	                else if (y < rect.top && (!belowRect || belowRect.top > rect.top)) {
	                    below = child;
	                    belowRect = rect;
	                }
	            }
	            else if (aboveRect && yOverlap(aboveRect, rect)) {
	                aboveRect = upBot(aboveRect, rect.bottom);
	            }
	            else if (belowRect && yOverlap(belowRect, rect)) {
	                belowRect = upTop(belowRect, rect.top);
	            }
	        }
	    }
	    if (aboveRect && aboveRect.bottom >= y) {
	        closest = above;
	        closestRect = aboveRect;
	    }
	    else if (belowRect && belowRect.top <= y) {
	        closest = below;
	        closestRect = belowRect;
	    }
	    if (!closest)
	        return { node: parent, offset: 0 };
	    let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x));
	    if (closest.nodeType == 3)
	        return domPosInText(closest, clipX, y);
	    if (closestOverlap && closest.contentEditable != "false")
	        return domPosAtCoords(closest, clipX, y);
	    let offset = Array.prototype.indexOf.call(parent.childNodes, closest) +
	        (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
	    return { node: parent, offset };
	}
	function domPosInText(node, x, y) {
	    let len = node.nodeValue.length;
	    let closestOffset = -1, closestDY = 1e9, generalSide = 0;
	    for (let i = 0; i < len; i++) {
	        let rects = textRange(node, i, i + 1).getClientRects();
	        for (let j = 0; j < rects.length; j++) {
	            let rect = rects[j];
	            if (rect.top == rect.bottom)
	                continue;
	            if (!generalSide)
	                generalSide = x - rect.left;
	            let dy = (rect.top > y ? rect.top - y : y - rect.bottom) - 1;
	            if (rect.left - 1 <= x && rect.right + 1 >= x && dy < closestDY) {
	                let right = x >= (rect.left + rect.right) / 2, after = right;
	                if (browser.chrome || browser.gecko) {
	                    // Check for RTL on browsers that support getting client
	                    // rects for empty ranges.
	                    let rectBefore = textRange(node, i).getBoundingClientRect();
	                    if (rectBefore.left == rect.right)
	                        after = !right;
	                }
	                if (dy <= 0)
	                    return { node, offset: i + (after ? 1 : 0) };
	                closestOffset = i + (after ? 1 : 0);
	                closestDY = dy;
	            }
	        }
	    }
	    return { node, offset: closestOffset > -1 ? closestOffset : generalSide > 0 ? node.nodeValue.length : 0 };
	}
	function posAtCoords(view, coords, precise, bias = -1) {
	    var _a, _b;
	    let content = view.contentDOM.getBoundingClientRect(), docTop = content.top + view.viewState.paddingTop;
	    let block, { docHeight } = view.viewState;
	    let { x, y } = coords, yOffset = y - docTop;
	    if (yOffset < 0)
	        return 0;
	    if (yOffset > docHeight)
	        return view.state.doc.length;
	    // Scan for a text block near the queried y position
	    for (let halfLine = view.viewState.heightOracle.textHeight / 2, bounced = false;;) {
	        block = view.elementAtHeight(yOffset);
	        if (block.type == BlockType.Text)
	            break;
	        for (;;) {
	            // Move the y position out of this block
	            yOffset = bias > 0 ? block.bottom + halfLine : block.top - halfLine;
	            if (yOffset >= 0 && yOffset <= docHeight)
	                break;
	            // If the document consists entirely of replaced widgets, we
	            // won't find a text block, so return 0
	            if (bounced)
	                return precise ? null : 0;
	            bounced = true;
	            bias = -bias;
	        }
	    }
	    y = docTop + yOffset;
	    let lineStart = block.from;
	    // If this is outside of the rendered viewport, we can't determine a position
	    if (lineStart < view.viewport.from)
	        return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content, block, x, y);
	    if (lineStart > view.viewport.to)
	        return view.viewport.to == view.state.doc.length ? view.state.doc.length :
	            precise ? null : posAtCoordsImprecise(view, content, block, x, y);
	    // Prefer ShadowRootOrDocument.elementFromPoint if present, fall back to document if not
	    let doc = view.dom.ownerDocument;
	    let root = view.root.elementFromPoint ? view.root : doc;
	    let element = root.elementFromPoint(x, y);
	    if (element && !view.contentDOM.contains(element))
	        element = null;
	    // If the element is unexpected, clip x at the sides of the content area and try again
	    if (!element) {
	        x = Math.max(content.left + 1, Math.min(content.right - 1, x));
	        element = root.elementFromPoint(x, y);
	        if (element && !view.contentDOM.contains(element))
	            element = null;
	    }
	    // There's visible editor content under the point, so we can try
	    // using caret(Position|Range)FromPoint as a shortcut
	    let node, offset = -1;
	    if (element && ((_a = view.docView.nearest(element)) === null || _a === void 0 ? void 0 : _a.isEditable) != false) {
	        if (doc.caretPositionFromPoint) {
	            let pos = doc.caretPositionFromPoint(x, y);
	            if (pos)
	                ({ offsetNode: node, offset } = pos);
	        }
	        else if (doc.caretRangeFromPoint) {
	            let range = doc.caretRangeFromPoint(x, y);
	            if (range) {
	                ({ startContainer: node, startOffset: offset } = range);
	                if (!view.contentDOM.contains(node) ||
	                    browser.safari && isSuspiciousSafariCaretResult(node, offset, x) ||
	                    browser.chrome && isSuspiciousChromeCaretResult(node, offset, x))
	                    node = undefined;
	            }
	        }
	    }
	    // No luck, do our own (potentially expensive) search
	    if (!node || !view.docView.dom.contains(node)) {
	        let line = LineView.find(view.docView, lineStart);
	        if (!line)
	            return yOffset > block.top + block.height / 2 ? block.to : block.from;
	        ({ node, offset } = domPosAtCoords(line.dom, x, y));
	    }
	    let nearest = view.docView.nearest(node);
	    if (!nearest)
	        return null;
	    if (nearest.isWidget && ((_b = nearest.dom) === null || _b === void 0 ? void 0 : _b.nodeType) == 1) {
	        let rect = nearest.dom.getBoundingClientRect();
	        return coords.y < rect.top || coords.y <= rect.bottom && coords.x <= (rect.left + rect.right) / 2
	            ? nearest.posAtStart : nearest.posAtEnd;
	    }
	    else {
	        return nearest.localPosFromDOM(node, offset) + nearest.posAtStart;
	    }
	}
	function posAtCoordsImprecise(view, contentRect, block, x, y) {
	    let into = Math.round((x - contentRect.left) * view.defaultCharacterWidth);
	    if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {
	        let textHeight = view.viewState.heightOracle.textHeight;
	        let line = Math.floor((y - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);
	        into += line * view.viewState.heightOracle.lineLength;
	    }
	    let content = view.state.sliceDoc(block.from, block.to);
	    return block.from + findColumn$1(content, into, view.state.tabSize);
	}
	// In case of a high line height, Safari's caretRangeFromPoint treats
	// the space between lines as belonging to the last character of the
	// line before. This is used to detect such a result so that it can be
	// ignored (issue #401).
	function isSuspiciousSafariCaretResult(node, offset, x) {
	    let len;
	    if (node.nodeType != 3 || offset != (len = node.nodeValue.length))
	        return false;
	    for (let next = node.nextSibling; next; next = next.nextSibling)
	        if (next.nodeType != 1 || next.nodeName != "BR")
	            return false;
	    return textRange(node, len - 1, len).getBoundingClientRect().left > x;
	}
	// Chrome will move positions between lines to the start of the next line
	function isSuspiciousChromeCaretResult(node, offset, x) {
	    if (offset != 0)
	        return false;
	    for (let cur = node;;) {
	        let parent = cur.parentNode;
	        if (!parent || parent.nodeType != 1 || parent.firstChild != cur)
	            return false;
	        if (parent.classList.contains("cm-line"))
	            break;
	        cur = parent;
	    }
	    let rect = node.nodeType == 1 ? node.getBoundingClientRect()
	        : textRange(node, 0, Math.max(node.nodeValue.length, 1)).getBoundingClientRect();
	    return x - rect.left > 5;
	}
	function blockAt(view, pos) {
	    let line = view.lineBlockAt(pos);
	    if (Array.isArray(line.type))
	        for (let l of line.type) {
	            if (l.to > pos || l.to == pos && (l.to == line.to || l.type == BlockType.Text))
	                return l;
	        }
	    return line;
	}
	function moveToLineBoundary(view, start, forward, includeWrap) {
	    let line = blockAt(view, start.head);
	    let coords = !includeWrap || line.type != BlockType.Text || !(view.lineWrapping || line.widgetLineBreaks) ? null
	        : view.coordsAtPos(start.assoc < 0 && start.head > line.from ? start.head - 1 : start.head);
	    if (coords) {
	        let editorRect = view.dom.getBoundingClientRect();
	        let direction = view.textDirectionAt(line.from);
	        let pos = view.posAtCoords({ x: forward == (direction == Direction.LTR) ? editorRect.right - 1 : editorRect.left + 1,
	            y: (coords.top + coords.bottom) / 2 });
	        if (pos != null)
	            return EditorSelection.cursor(pos, forward ? -1 : 1);
	    }
	    return EditorSelection.cursor(forward ? line.to : line.from, forward ? -1 : 1);
	}
	function moveByChar(view, start, forward, by) {
	    let line = view.state.doc.lineAt(start.head), spans = view.bidiSpans(line);
	    let direction = view.textDirectionAt(line.from);
	    for (let cur = start, check = null;;) {
	        let next = moveVisually(line, spans, direction, cur, forward), char = movedOver;
	        if (!next) {
	            if (line.number == (forward ? view.state.doc.lines : 1))
	                return cur;
	            char = "\n";
	            line = view.state.doc.line(line.number + (forward ? 1 : -1));
	            spans = view.bidiSpans(line);
	            next = view.visualLineSide(line, !forward);
	        }
	        if (!check) {
	            if (!by)
	                return next;
	            check = by(char);
	        }
	        else if (!check(char)) {
	            return cur;
	        }
	        cur = next;
	    }
	}
	function byGroup(view, pos, start) {
	    let categorize = view.state.charCategorizer(pos);
	    let cat = categorize(start);
	    return (next) => {
	        let nextCat = categorize(next);
	        if (cat == CharCategory.Space)
	            cat = nextCat;
	        return cat == nextCat;
	    };
	}
	function moveVertically(view, start, forward, distance) {
	    let startPos = start.head, dir = forward ? 1 : -1;
	    if (startPos == (forward ? view.state.doc.length : 0))
	        return EditorSelection.cursor(startPos, start.assoc);
	    let goal = start.goalColumn, startY;
	    let rect = view.contentDOM.getBoundingClientRect();
	    let startCoords = view.coordsAtPos(startPos, start.assoc || -1), docTop = view.documentTop;
	    if (startCoords) {
	        if (goal == null)
	            goal = startCoords.left - rect.left;
	        startY = dir < 0 ? startCoords.top : startCoords.bottom;
	    }
	    else {
	        let line = view.viewState.lineBlockAt(startPos);
	        if (goal == null)
	            goal = Math.min(rect.right - rect.left, view.defaultCharacterWidth * (startPos - line.from));
	        startY = (dir < 0 ? line.top : line.bottom) + docTop;
	    }
	    let resolvedGoal = rect.left + goal;
	    let dist = distance !== null && distance !== void 0 ? distance : (view.viewState.heightOracle.textHeight >> 1);
	    for (let extra = 0;; extra += 10) {
	        let curY = startY + (dist + extra) * dir;
	        let pos = posAtCoords(view, { x: resolvedGoal, y: curY }, false, dir);
	        if (curY < rect.top || curY > rect.bottom || (dir < 0 ? pos < startPos : pos > startPos)) {
	            let charRect = view.docView.coordsForChar(pos);
	            let assoc = !charRect || curY < charRect.top ? -1 : 1;
	            return EditorSelection.cursor(pos, assoc, undefined, goal);
	        }
	    }
	}
	function skipAtomicRanges(atoms, pos, bias) {
	    for (;;) {
	        let moved = 0;
	        for (let set of atoms) {
	            set.between(pos - 1, pos + 1, (from, to, value) => {
	                if (pos > from && pos < to) {
	                    let side = moved || bias || (pos - from < to - pos ? -1 : 1);
	                    pos = side < 0 ? from : to;
	                    moved = side;
	                }
	            });
	        }
	        if (!moved)
	            return pos;
	    }
	}
	function skipAtoms(view, oldPos, pos) {
	    let newPos = skipAtomicRanges(view.state.facet(atomicRanges).map(f => f(view)), pos.from, oldPos.head > pos.from ? -1 : 1);
	    return newPos == pos.from ? pos : EditorSelection.cursor(newPos, newPos < pos.from ? 1 : -1);
	}

	// This will also be where dragging info and such goes
	class InputState {
	    setSelectionOrigin(origin) {
	        this.lastSelectionOrigin = origin;
	        this.lastSelectionTime = Date.now();
	    }
	    constructor(view) {
	        this.view = view;
	        this.lastKeyCode = 0;
	        this.lastKeyTime = 0;
	        this.lastTouchTime = 0;
	        this.lastFocusTime = 0;
	        this.lastScrollTop = 0;
	        this.lastScrollLeft = 0;
	        // On iOS, some keys need to have their default behavior happen
	        // (after which we retroactively handle them and reset the DOM) to
	        // avoid messing up the virtual keyboard state.
	        this.pendingIOSKey = undefined;
	        this.lastSelectionOrigin = null;
	        this.lastSelectionTime = 0;
	        this.lastEscPress = 0;
	        this.lastContextMenu = 0;
	        this.scrollHandlers = [];
	        this.handlers = Object.create(null);
	        // -1 means not in a composition. Otherwise, this counts the number
	        // of changes made during the composition. The count is used to
	        // avoid treating the start state of the composition, before any
	        // changes have been made, as part of the composition.
	        this.composing = -1;
	        // Tracks whether the next change should be marked as starting the
	        // composition (null means no composition, true means next is the
	        // first, false means first has already been marked for this
	        // composition)
	        this.compositionFirstChange = null;
	        // End time of the previous composition
	        this.compositionEndedAt = 0;
	        // Used in a kludge to detect when an Enter keypress should be
	        // considered part of the composition on Safari, which fires events
	        // in the wrong order
	        this.compositionPendingKey = false;
	        // Used to categorize changes as part of a composition, even when
	        // the mutation events fire shortly after the compositionend event
	        this.compositionPendingChange = false;
	        this.mouseSelection = null;
	        // When a drag from the editor is active, this points at the range
	        // being dragged.
	        this.draggedContent = null;
	        this.handleEvent = this.handleEvent.bind(this);
	        this.notifiedFocused = view.hasFocus;
	        // On Safari adding an input event handler somehow prevents an
	        // issue where the composition vanishes when you press enter.
	        if (browser.safari)
	            view.contentDOM.addEventListener("input", () => null);
	        if (browser.gecko)
	            firefoxCopyCutHack(view.contentDOM.ownerDocument);
	    }
	    handleEvent(event) {
	        if (!eventBelongsToEditor(this.view, event) || this.ignoreDuringComposition(event))
	            return;
	        if (event.type == "keydown" && this.keydown(event))
	            return;
	        this.runHandlers(event.type, event);
	    }
	    runHandlers(type, event) {
	        let handlers = this.handlers[type];
	        if (handlers) {
	            for (let observer of handlers.observers)
	                observer(this.view, event);
	            for (let handler of handlers.handlers) {
	                if (event.defaultPrevented)
	                    break;
	                if (handler(this.view, event)) {
	                    event.preventDefault();
	                    break;
	                }
	            }
	        }
	    }
	    ensureHandlers(plugins) {
	        let handlers = computeHandlers(plugins), prev = this.handlers, dom = this.view.contentDOM;
	        for (let type in handlers)
	            if (type != "scroll") {
	                let passive = !handlers[type].handlers.length;
	                let exists = prev[type];
	                if (exists && passive != !exists.handlers.length) {
	                    dom.removeEventListener(type, this.handleEvent);
	                    exists = null;
	                }
	                if (!exists)
	                    dom.addEventListener(type, this.handleEvent, { passive });
	            }
	        for (let type in prev)
	            if (type != "scroll" && !handlers[type])
	                dom.removeEventListener(type, this.handleEvent);
	        this.handlers = handlers;
	    }
	    keydown(event) {
	        // Must always run, even if a custom handler handled the event
	        this.lastKeyCode = event.keyCode;
	        this.lastKeyTime = Date.now();
	        if (event.keyCode == 9 && Date.now() < this.lastEscPress + 2000)
	            return true;
	        if (event.keyCode != 27 && modifierCodes.indexOf(event.keyCode) < 0)
	            this.view.inputState.lastEscPress = 0;
	        // Chrome for Android usually doesn't fire proper key events, but
	        // occasionally does, usually surrounded by a bunch of complicated
	        // composition changes. When an enter or backspace key event is
	        // seen, hold off on handling DOM events for a bit, and then
	        // dispatch it.
	        if (browser.android && browser.chrome && !event.synthetic &&
	            (event.keyCode == 13 || event.keyCode == 8)) {
	            this.view.observer.delayAndroidKey(event.key, event.keyCode);
	            return true;
	        }
	        // Preventing the default behavior of Enter on iOS makes the
	        // virtual keyboard get stuck in the wrong (lowercase)
	        // state. So we let it go through, and then, in
	        // applyDOMChange, notify key handlers of it and reset to
	        // the state they produce.
	        let pending;
	        if (browser.ios && !event.synthetic && !event.altKey && !event.metaKey &&
	            ((pending = PendingKeys.find(key => key.keyCode == event.keyCode)) && !event.ctrlKey ||
	                EmacsyPendingKeys.indexOf(event.key) > -1 && event.ctrlKey && !event.shiftKey)) {
	            this.pendingIOSKey = pending || event;
	            setTimeout(() => this.flushIOSKey(), 250);
	            return true;
	        }
	        if (event.keyCode != 229)
	            this.view.observer.forceFlush();
	        return false;
	    }
	    flushIOSKey(change) {
	        let key = this.pendingIOSKey;
	        if (!key)
	            return false;
	        // This looks like an autocorrection before Enter
	        if (key.key == "Enter" && change && change.from < change.to && /^\S+$/.test(change.insert.toString()))
	            return false;
	        this.pendingIOSKey = undefined;
	        return dispatchKey(this.view.contentDOM, key.key, key.keyCode, key instanceof KeyboardEvent ? key : undefined);
	    }
	    ignoreDuringComposition(event) {
	        if (!/^key/.test(event.type))
	            return false;
	        if (this.composing > 0)
	            return true;
	        // See https://www.stum.de/2016/06/24/handling-ime-events-in-javascript/.
	        // On some input method editors (IMEs), the Enter key is used to
	        // confirm character selection. On Safari, when Enter is pressed,
	        // compositionend and keydown events are sometimes emitted in the
	        // wrong order. The key event should still be ignored, even when
	        // it happens after the compositionend event.
	        if (browser.safari && !browser.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100) {
	            this.compositionPendingKey = false;
	            return true;
	        }
	        return false;
	    }
	    startMouseSelection(mouseSelection) {
	        if (this.mouseSelection)
	            this.mouseSelection.destroy();
	        this.mouseSelection = mouseSelection;
	    }
	    update(update) {
	        if (this.mouseSelection)
	            this.mouseSelection.update(update);
	        if (this.draggedContent && update.docChanged)
	            this.draggedContent = this.draggedContent.map(update.changes);
	        if (update.transactions.length)
	            this.lastKeyCode = this.lastSelectionTime = 0;
	    }
	    destroy() {
	        if (this.mouseSelection)
	            this.mouseSelection.destroy();
	    }
	}
	function bindHandler(plugin, handler) {
	    return (view, event) => {
	        try {
	            return handler.call(plugin, event, view);
	        }
	        catch (e) {
	            logException(view.state, e);
	        }
	    };
	}
	function computeHandlers(plugins) {
	    let result = Object.create(null);
	    function record(type) {
	        return result[type] || (result[type] = { observers: [], handlers: [] });
	    }
	    for (let plugin of plugins) {
	        let spec = plugin.spec;
	        if (spec && spec.domEventHandlers)
	            for (let type in spec.domEventHandlers) {
	                let f = spec.domEventHandlers[type];
	                if (f)
	                    record(type).handlers.push(bindHandler(plugin.value, f));
	            }
	        if (spec && spec.domEventObservers)
	            for (let type in spec.domEventObservers) {
	                let f = spec.domEventObservers[type];
	                if (f)
	                    record(type).observers.push(bindHandler(plugin.value, f));
	            }
	    }
	    for (let type in handlers)
	        record(type).handlers.push(handlers[type]);
	    for (let type in observers)
	        record(type).observers.push(observers[type]);
	    return result;
	}
	const PendingKeys = [
	    { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" },
	    { key: "Enter", keyCode: 13, inputType: "insertParagraph" },
	    { key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
	    { key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
	];
	const EmacsyPendingKeys = "dthko";
	// Key codes for modifier keys
	const modifierCodes = [16, 17, 18, 20, 91, 92, 224, 225];
	const dragScrollMargin = 6;
	function dragScrollSpeed(dist) {
	    return Math.max(0, dist) * 0.7 + 8;
	}
	function dist(a, b) {
	    return Math.max(Math.abs(a.clientX - b.clientX), Math.abs(a.clientY - b.clientY));
	}
	class MouseSelection {
	    constructor(view, startEvent, style, mustSelect) {
	        this.view = view;
	        this.startEvent = startEvent;
	        this.style = style;
	        this.mustSelect = mustSelect;
	        this.scrollSpeed = { x: 0, y: 0 };
	        this.scrolling = -1;
	        this.lastEvent = startEvent;
	        this.scrollParent = scrollableParent(view.contentDOM);
	        this.atoms = view.state.facet(atomicRanges).map(f => f(view));
	        let doc = view.contentDOM.ownerDocument;
	        doc.addEventListener("mousemove", this.move = this.move.bind(this));
	        doc.addEventListener("mouseup", this.up = this.up.bind(this));
	        this.extend = startEvent.shiftKey;
	        this.multiple = view.state.facet(EditorState.allowMultipleSelections) && addsSelectionRange(view, startEvent);
	        this.dragging = isInPrimarySelection(view, startEvent) && getClickType(startEvent) == 1 ? null : false;
	    }
	    start(event) {
	        // When clicking outside of the selection, immediately apply the
	        // effect of starting the selection
	        if (this.dragging === false)
	            this.select(event);
	    }
	    move(event) {
	        var _a;
	        if (event.buttons == 0)
	            return this.destroy();
	        if (this.dragging || this.dragging == null && dist(this.startEvent, event) < 10)
	            return;
	        this.select(this.lastEvent = event);
	        let sx = 0, sy = 0;
	        let rect = ((_a = this.scrollParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect())
	            || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight };
	        let margins = getScrollMargins(this.view);
	        if (event.clientX - margins.left <= rect.left + dragScrollMargin)
	            sx = -dragScrollSpeed(rect.left - event.clientX);
	        else if (event.clientX + margins.right >= rect.right - dragScrollMargin)
	            sx = dragScrollSpeed(event.clientX - rect.right);
	        if (event.clientY - margins.top <= rect.top + dragScrollMargin)
	            sy = -dragScrollSpeed(rect.top - event.clientY);
	        else if (event.clientY + margins.bottom >= rect.bottom - dragScrollMargin)
	            sy = dragScrollSpeed(event.clientY - rect.bottom);
	        this.setScrollSpeed(sx, sy);
	    }
	    up(event) {
	        if (this.dragging == null)
	            this.select(this.lastEvent);
	        if (!this.dragging)
	            event.preventDefault();
	        this.destroy();
	    }
	    destroy() {
	        this.setScrollSpeed(0, 0);
	        let doc = this.view.contentDOM.ownerDocument;
	        doc.removeEventListener("mousemove", this.move);
	        doc.removeEventListener("mouseup", this.up);
	        this.view.inputState.mouseSelection = this.view.inputState.draggedContent = null;
	    }
	    setScrollSpeed(sx, sy) {
	        this.scrollSpeed = { x: sx, y: sy };
	        if (sx || sy) {
	            if (this.scrolling < 0)
	                this.scrolling = setInterval(() => this.scroll(), 50);
	        }
	        else if (this.scrolling > -1) {
	            clearInterval(this.scrolling);
	            this.scrolling = -1;
	        }
	    }
	    scroll() {
	        if (this.scrollParent) {
	            this.scrollParent.scrollLeft += this.scrollSpeed.x;
	            this.scrollParent.scrollTop += this.scrollSpeed.y;
	        }
	        else {
	            this.view.win.scrollBy(this.scrollSpeed.x, this.scrollSpeed.y);
	        }
	        if (this.dragging === false)
	            this.select(this.lastEvent);
	    }
	    skipAtoms(sel) {
	        let ranges = null;
	        for (let i = 0; i < sel.ranges.length; i++) {
	            let range = sel.ranges[i], updated = null;
	            if (range.empty) {
	                let pos = skipAtomicRanges(this.atoms, range.from, 0);
	                if (pos != range.from)
	                    updated = EditorSelection.cursor(pos, -1);
	            }
	            else {
	                let from = skipAtomicRanges(this.atoms, range.from, -1);
	                let to = skipAtomicRanges(this.atoms, range.to, 1);
	                if (from != range.from || to != range.to)
	                    updated = EditorSelection.range(range.from == range.anchor ? from : to, range.from == range.head ? from : to);
	            }
	            if (updated) {
	                if (!ranges)
	                    ranges = sel.ranges.slice();
	                ranges[i] = updated;
	            }
	        }
	        return ranges ? EditorSelection.create(ranges, sel.mainIndex) : sel;
	    }
	    select(event) {
	        let { view } = this, selection = this.skipAtoms(this.style.get(event, this.extend, this.multiple));
	        if (this.mustSelect || !selection.eq(view.state.selection, this.dragging === false))
	            this.view.dispatch({
	                selection,
	                userEvent: "select.pointer"
	            });
	        this.mustSelect = false;
	    }
	    update(update) {
	        if (this.style.update(update))
	            setTimeout(() => this.select(this.lastEvent), 20);
	    }
	}
	function addsSelectionRange(view, event) {
	    let facet = view.state.facet(clickAddsSelectionRange);
	    return facet.length ? facet[0](event) : browser.mac ? event.metaKey : event.ctrlKey;
	}
	function dragMovesSelection(view, event) {
	    let facet = view.state.facet(dragMovesSelection$1);
	    return facet.length ? facet[0](event) : browser.mac ? !event.altKey : !event.ctrlKey;
	}
	function isInPrimarySelection(view, event) {
	    let { main } = view.state.selection;
	    if (main.empty)
	        return false;
	    // On boundary clicks, check whether the coordinates are inside the
	    // selection's client rectangles
	    let sel = getSelection(view.root);
	    if (!sel || sel.rangeCount == 0)
	        return true;
	    let rects = sel.getRangeAt(0).getClientRects();
	    for (let i = 0; i < rects.length; i++) {
	        let rect = rects[i];
	        if (rect.left <= event.clientX && rect.right >= event.clientX &&
	            rect.top <= event.clientY && rect.bottom >= event.clientY)
	            return true;
	    }
	    return false;
	}
	function eventBelongsToEditor(view, event) {
	    if (!event.bubbles)
	        return true;
	    if (event.defaultPrevented)
	        return false;
	    for (let node = event.target, cView; node != view.contentDOM; node = node.parentNode)
	        if (!node || node.nodeType == 11 || ((cView = ContentView.get(node)) && cView.ignoreEvent(event)))
	            return false;
	    return true;
	}
	const handlers = /*@__PURE__*/Object.create(null);
	const observers = /*@__PURE__*/Object.create(null);
	// This is very crude, but unfortunately both these browsers _pretend_
	// that they have a clipboard API—all the objects and methods are
	// there, they just don't work, and they are hard to test.
	const brokenClipboardAPI = (browser.ie && browser.ie_version < 15) ||
	    (browser.ios && browser.webkit_version < 604);
	function capturePaste(view) {
	    let parent = view.dom.parentNode;
	    if (!parent)
	        return;
	    let target = parent.appendChild(document.createElement("textarea"));
	    target.style.cssText = "position: fixed; left: -10000px; top: 10px";
	    target.focus();
	    setTimeout(() => {
	        view.focus();
	        target.remove();
	        doPaste(view, target.value);
	    }, 50);
	}
	function doPaste(view, input) {
	    let { state } = view, changes, i = 1, text = state.toText(input);
	    let byLine = text.lines == state.selection.ranges.length;
	    let linewise = lastLinewiseCopy != null && state.selection.ranges.every(r => r.empty) && lastLinewiseCopy == text.toString();
	    if (linewise) {
	        let lastLine = -1;
	        changes = state.changeByRange(range => {
	            let line = state.doc.lineAt(range.from);
	            if (line.from == lastLine)
	                return { range };
	            lastLine = line.from;
	            let insert = state.toText((byLine ? text.line(i++).text : input) + state.lineBreak);
	            return { changes: { from: line.from, insert },
	                range: EditorSelection.cursor(range.from + insert.length) };
	        });
	    }
	    else if (byLine) {
	        changes = state.changeByRange(range => {
	            let line = text.line(i++);
	            return { changes: { from: range.from, to: range.to, insert: line.text },
	                range: EditorSelection.cursor(range.from + line.length) };
	        });
	    }
	    else {
	        changes = state.replaceSelection(text);
	    }
	    view.dispatch(changes, {
	        userEvent: "input.paste",
	        scrollIntoView: true
	    });
	}
	observers.scroll = view => {
	    view.inputState.lastScrollTop = view.scrollDOM.scrollTop;
	    view.inputState.lastScrollLeft = view.scrollDOM.scrollLeft;
	};
	handlers.keydown = (view, event) => {
	    view.inputState.setSelectionOrigin("select");
	    if (event.keyCode == 27)
	        view.inputState.lastEscPress = Date.now();
	    return false;
	};
	observers.touchstart = (view, e) => {
	    view.inputState.lastTouchTime = Date.now();
	    view.inputState.setSelectionOrigin("select.pointer");
	};
	observers.touchmove = view => {
	    view.inputState.setSelectionOrigin("select.pointer");
	};
	handlers.mousedown = (view, event) => {
	    view.observer.flush();
	    if (view.inputState.lastTouchTime > Date.now() - 2000)
	        return false; // Ignore touch interaction
	    let style = null;
	    for (let makeStyle of view.state.facet(mouseSelectionStyle)) {
	        style = makeStyle(view, event);
	        if (style)
	            break;
	    }
	    if (!style && event.button == 0)
	        style = basicMouseSelection(view, event);
	    if (style) {
	        let mustFocus = !view.hasFocus;
	        view.inputState.startMouseSelection(new MouseSelection(view, event, style, mustFocus));
	        if (mustFocus)
	            view.observer.ignore(() => focusPreventScroll(view.contentDOM));
	        let mouseSel = view.inputState.mouseSelection;
	        if (mouseSel) {
	            mouseSel.start(event);
	            return mouseSel.dragging === false;
	        }
	    }
	    return false;
	};
	function rangeForClick(view, pos, bias, type) {
	    if (type == 1) { // Single click
	        return EditorSelection.cursor(pos, bias);
	    }
	    else if (type == 2) { // Double click
	        return groupAt(view.state, pos, bias);
	    }
	    else { // Triple click
	        let visual = LineView.find(view.docView, pos), line = view.state.doc.lineAt(visual ? visual.posAtEnd : pos);
	        let from = visual ? visual.posAtStart : line.from, to = visual ? visual.posAtEnd : line.to;
	        if (to < view.state.doc.length && to == line.to)
	            to++;
	        return EditorSelection.range(from, to);
	    }
	}
	let insideY = (y, rect) => y >= rect.top && y <= rect.bottom;
	let inside = (x, y, rect) => insideY(y, rect) && x >= rect.left && x <= rect.right;
	// Try to determine, for the given coordinates, associated with the
	// given position, whether they are related to the element before or
	// the element after the position.
	function findPositionSide(view, pos, x, y) {
	    let line = LineView.find(view.docView, pos);
	    if (!line)
	        return 1;
	    let off = pos - line.posAtStart;
	    // Line boundaries point into the line
	    if (off == 0)
	        return 1;
	    if (off == line.length)
	        return -1;
	    // Positions on top of an element point at that element
	    let before = line.coordsAt(off, -1);
	    if (before && inside(x, y, before))
	        return -1;
	    let after = line.coordsAt(off, 1);
	    if (after && inside(x, y, after))
	        return 1;
	    // This is probably a line wrap point. Pick before if the point is
	    // beside it.
	    return before && insideY(y, before) ? -1 : 1;
	}
	function queryPos(view, event) {
	    let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
	    return { pos, bias: findPositionSide(view, pos, event.clientX, event.clientY) };
	}
	const BadMouseDetail = browser.ie && browser.ie_version <= 11;
	let lastMouseDown = null, lastMouseDownCount = 0, lastMouseDownTime = 0;
	function getClickType(event) {
	    if (!BadMouseDetail)
	        return event.detail;
	    let last = lastMouseDown, lastTime = lastMouseDownTime;
	    lastMouseDown = event;
	    lastMouseDownTime = Date.now();
	    return lastMouseDownCount = !last || (lastTime > Date.now() - 400 && Math.abs(last.clientX - event.clientX) < 2 &&
	        Math.abs(last.clientY - event.clientY) < 2) ? (lastMouseDownCount + 1) % 3 : 1;
	}
	function basicMouseSelection(view, event) {
	    let start = queryPos(view, event), type = getClickType(event);
	    let startSel = view.state.selection;
	    return {
	        update(update) {
	            if (update.docChanged) {
	                start.pos = update.changes.mapPos(start.pos);
	                startSel = startSel.map(update.changes);
	            }
	        },
	        get(event, extend, multiple) {
	            let cur = queryPos(view, event), removed;
	            let range = rangeForClick(view, cur.pos, cur.bias, type);
	            if (start.pos != cur.pos && !extend) {
	                let startRange = rangeForClick(view, start.pos, start.bias, type);
	                let from = Math.min(startRange.from, range.from), to = Math.max(startRange.to, range.to);
	                range = from < range.from ? EditorSelection.range(from, to) : EditorSelection.range(to, from);
	            }
	            if (extend)
	                return startSel.replaceRange(startSel.main.extend(range.from, range.to));
	            else if (multiple && type == 1 && startSel.ranges.length > 1 && (removed = removeRangeAround(startSel, cur.pos)))
	                return removed;
	            else if (multiple)
	                return startSel.addRange(range);
	            else
	                return EditorSelection.create([range]);
	        }
	    };
	}
	function removeRangeAround(sel, pos) {
	    for (let i = 0; i < sel.ranges.length; i++) {
	        let { from, to } = sel.ranges[i];
	        if (from <= pos && to >= pos)
	            return EditorSelection.create(sel.ranges.slice(0, i).concat(sel.ranges.slice(i + 1)), sel.mainIndex == i ? 0 : sel.mainIndex - (sel.mainIndex > i ? 1 : 0));
	    }
	    return null;
	}
	handlers.dragstart = (view, event) => {
	    let { selection: { main: range } } = view.state;
	    if (event.target.draggable) {
	        let cView = view.docView.nearest(event.target);
	        if (cView && cView.isWidget) {
	            let from = cView.posAtStart, to = from + cView.length;
	            if (from >= range.to || to <= range.from)
	                range = EditorSelection.range(from, to);
	        }
	    }
	    let { inputState } = view;
	    if (inputState.mouseSelection)
	        inputState.mouseSelection.dragging = true;
	    inputState.draggedContent = range;
	    if (event.dataTransfer) {
	        event.dataTransfer.setData("Text", view.state.sliceDoc(range.from, range.to));
	        event.dataTransfer.effectAllowed = "copyMove";
	    }
	    return false;
	};
	handlers.dragend = view => {
	    view.inputState.draggedContent = null;
	    return false;
	};
	function dropText(view, event, text, direct) {
	    if (!text)
	        return;
	    let dropPos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
	    let { draggedContent } = view.inputState;
	    let del = direct && draggedContent && dragMovesSelection(view, event)
	        ? { from: draggedContent.from, to: draggedContent.to } : null;
	    let ins = { from: dropPos, insert: text };
	    let changes = view.state.changes(del ? [del, ins] : ins);
	    view.focus();
	    view.dispatch({
	        changes,
	        selection: { anchor: changes.mapPos(dropPos, -1), head: changes.mapPos(dropPos, 1) },
	        userEvent: del ? "move.drop" : "input.drop"
	    });
	    view.inputState.draggedContent = null;
	}
	handlers.drop = (view, event) => {
	    if (!event.dataTransfer)
	        return false;
	    if (view.state.readOnly)
	        return true;
	    let files = event.dataTransfer.files;
	    if (files && files.length) { // For a file drop, read the file's text.
	        let text = Array(files.length), read = 0;
	        let finishFile = () => {
	            if (++read == files.length)
	                dropText(view, event, text.filter(s => s != null).join(view.state.lineBreak), false);
	        };
	        for (let i = 0; i < files.length; i++) {
	            let reader = new FileReader;
	            reader.onerror = finishFile;
	            reader.onload = () => {
	                if (!/[\x00-\x08\x0e-\x1f]{2}/.test(reader.result))
	                    text[i] = reader.result;
	                finishFile();
	            };
	            reader.readAsText(files[i]);
	        }
	        return true;
	    }
	    else {
	        let text = event.dataTransfer.getData("Text");
	        if (text) {
	            dropText(view, event, text, true);
	            return true;
	        }
	    }
	    return false;
	};
	handlers.paste = (view, event) => {
	    if (view.state.readOnly)
	        return true;
	    view.observer.flush();
	    let data = brokenClipboardAPI ? null : event.clipboardData;
	    if (data) {
	        doPaste(view, data.getData("text/plain") || data.getData("text/uri-list"));
	        return true;
	    }
	    else {
	        capturePaste(view);
	        return false;
	    }
	};
	function captureCopy(view, text) {
	    // The extra wrapper is somehow necessary on IE/Edge to prevent the
	    // content from being mangled when it is put onto the clipboard
	    let parent = view.dom.parentNode;
	    if (!parent)
	        return;
	    let target = parent.appendChild(document.createElement("textarea"));
	    target.style.cssText = "position: fixed; left: -10000px; top: 10px";
	    target.value = text;
	    target.focus();
	    target.selectionEnd = text.length;
	    target.selectionStart = 0;
	    setTimeout(() => {
	        target.remove();
	        view.focus();
	    }, 50);
	}
	function copiedRange(state) {
	    let content = [], ranges = [], linewise = false;
	    for (let range of state.selection.ranges)
	        if (!range.empty) {
	            content.push(state.sliceDoc(range.from, range.to));
	            ranges.push(range);
	        }
	    if (!content.length) {
	        // Nothing selected, do a line-wise copy
	        let upto = -1;
	        for (let { from } of state.selection.ranges) {
	            let line = state.doc.lineAt(from);
	            if (line.number > upto) {
	                content.push(line.text);
	                ranges.push({ from: line.from, to: Math.min(state.doc.length, line.to + 1) });
	            }
	            upto = line.number;
	        }
	        linewise = true;
	    }
	    return { text: content.join(state.lineBreak), ranges, linewise };
	}
	let lastLinewiseCopy = null;
	handlers.copy = handlers.cut = (view, event) => {
	    let { text, ranges, linewise } = copiedRange(view.state);
	    if (!text && !linewise)
	        return false;
	    lastLinewiseCopy = linewise ? text : null;
	    if (event.type == "cut" && !view.state.readOnly)
	        view.dispatch({
	            changes: ranges,
	            scrollIntoView: true,
	            userEvent: "delete.cut"
	        });
	    let data = brokenClipboardAPI ? null : event.clipboardData;
	    if (data) {
	        data.clearData();
	        data.setData("text/plain", text);
	        return true;
	    }
	    else {
	        captureCopy(view, text);
	        return false;
	    }
	};
	const isFocusChange = /*@__PURE__*/Annotation.define();
	function focusChangeTransaction(state, focus) {
	    let effects = [];
	    for (let getEffect of state.facet(focusChangeEffect)) {
	        let effect = getEffect(state, focus);
	        if (effect)
	            effects.push(effect);
	    }
	    return effects ? state.update({ effects, annotations: isFocusChange.of(true) }) : null;
	}
	function updateForFocusChange(view) {
	    setTimeout(() => {
	        let focus = view.hasFocus;
	        if (focus != view.inputState.notifiedFocused) {
	            let tr = focusChangeTransaction(view.state, focus);
	            if (tr)
	                view.dispatch(tr);
	            else
	                view.update([]);
	        }
	    }, 10);
	}
	observers.focus = view => {
	    view.inputState.lastFocusTime = Date.now();
	    // When focusing reset the scroll position, move it back to where it was
	    if (!view.scrollDOM.scrollTop && (view.inputState.lastScrollTop || view.inputState.lastScrollLeft)) {
	        view.scrollDOM.scrollTop = view.inputState.lastScrollTop;
	        view.scrollDOM.scrollLeft = view.inputState.lastScrollLeft;
	    }
	    updateForFocusChange(view);
	};
	observers.blur = view => {
	    view.observer.clearSelectionRange();
	    updateForFocusChange(view);
	};
	observers.compositionstart = observers.compositionupdate = view => {
	    if (view.inputState.compositionFirstChange == null)
	        view.inputState.compositionFirstChange = true;
	    if (view.inputState.composing < 0) {
	        // FIXME possibly set a timeout to clear it again on Android
	        view.inputState.composing = 0;
	        if (view.docView.maybeCreateCompositionBarrier()) {
	            view.update([]);
	            view.docView.clearCompositionBarrier();
	        }
	    }
	};
	observers.compositionend = view => {
	    view.inputState.composing = -1;
	    view.inputState.compositionEndedAt = Date.now();
	    view.inputState.compositionPendingKey = true;
	    view.inputState.compositionPendingChange = view.observer.pendingRecords().length > 0;
	    view.inputState.compositionFirstChange = null;
	    if (browser.chrome && browser.android) {
	        // Delay flushing for a bit on Android because it'll often fire a
	        // bunch of contradictory changes in a row at end of compositon
	        view.observer.flushSoon();
	    }
	    else if (view.inputState.compositionPendingChange) {
	        // If we found pending records, schedule a flush.
	        Promise.resolve().then(() => view.observer.flush());
	    }
	    else {
	        // Otherwise, make sure that, if no changes come in soon, the
	        // composition view is cleared.
	        setTimeout(() => {
	            if (view.inputState.composing < 0 && view.docView.hasComposition)
	                view.update([]);
	        }, 50);
	    }
	};
	observers.contextmenu = view => {
	    view.inputState.lastContextMenu = Date.now();
	};
	handlers.beforeinput = (view, event) => {
	    var _a;
	    // Because Chrome Android doesn't fire useful key events, use
	    // beforeinput to detect backspace (and possibly enter and delete,
	    // but those usually don't even seem to fire beforeinput events at
	    // the moment) and fake a key event for it.
	    //
	    // (preventDefault on beforeinput, though supported in the spec,
	    // seems to do nothing at all on Chrome).
	    let pending;
	    if (browser.chrome && browser.android && (pending = PendingKeys.find(key => key.inputType == event.inputType))) {
	        view.observer.delayAndroidKey(pending.key, pending.keyCode);
	        if (pending.key == "Backspace" || pending.key == "Delete") {
	            let startViewHeight = ((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) || 0;
	            setTimeout(() => {
	                var _a;
	                // Backspacing near uneditable nodes on Chrome Android sometimes
	                // closes the virtual keyboard. This tries to crudely detect
	                // that and refocus to get it back.
	                if ((((_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height) || 0) > startViewHeight + 10 && view.hasFocus) {
	                    view.contentDOM.blur();
	                    view.focus();
	                }
	            }, 100);
	        }
	    }
	    if (browser.ios && event.inputType == "deleteContentForward") {
	        // For some reason, DOM changes (and beforeinput) happen _before_
	        // the key event for ctrl-d on iOS when using an external
	        // keyboard.
	        view.observer.flushSoon();
	    }
	    return false;
	};
	const appliedFirefoxHack = /*@__PURE__*/new Set;
	// In Firefox, when cut/copy handlers are added to the document, that
	// somehow avoids a bug where those events aren't fired when the
	// selection is empty. See https://github.com/codemirror/dev/issues/1082
	// and https://bugzilla.mozilla.org/show_bug.cgi?id=995961
	function firefoxCopyCutHack(doc) {
	    if (!appliedFirefoxHack.has(doc)) {
	        appliedFirefoxHack.add(doc);
	        doc.addEventListener("copy", () => { });
	        doc.addEventListener("cut", () => { });
	    }
	}

	const wrappingWhiteSpace = ["pre-wrap", "normal", "pre-line", "break-spaces"];
	class HeightOracle {
	    constructor(lineWrapping) {
	        this.lineWrapping = lineWrapping;
	        this.doc = Text$1.empty;
	        this.heightSamples = {};
	        this.lineHeight = 14; // The height of an entire line (line-height)
	        this.charWidth = 7;
	        this.textHeight = 14; // The height of the actual font (font-size)
	        this.lineLength = 30;
	        // Used to track, during updateHeight, if any actual heights changed
	        this.heightChanged = false;
	    }
	    heightForGap(from, to) {
	        let lines = this.doc.lineAt(to).number - this.doc.lineAt(from).number + 1;
	        if (this.lineWrapping)
	            lines += Math.max(0, Math.ceil(((to - from) - (lines * this.lineLength * 0.5)) / this.lineLength));
	        return this.lineHeight * lines;
	    }
	    heightForLine(length) {
	        if (!this.lineWrapping)
	            return this.lineHeight;
	        let lines = 1 + Math.max(0, Math.ceil((length - this.lineLength) / (this.lineLength - 5)));
	        return lines * this.lineHeight;
	    }
	    setDoc(doc) { this.doc = doc; return this; }
	    mustRefreshForWrapping(whiteSpace) {
	        return (wrappingWhiteSpace.indexOf(whiteSpace) > -1) != this.lineWrapping;
	    }
	    mustRefreshForHeights(lineHeights) {
	        let newHeight = false;
	        for (let i = 0; i < lineHeights.length; i++) {
	            let h = lineHeights[i];
	            if (h < 0) {
	                i++;
	            }
	            else if (!this.heightSamples[Math.floor(h * 10)]) { // Round to .1 pixels
	                newHeight = true;
	                this.heightSamples[Math.floor(h * 10)] = true;
	            }
	        }
	        return newHeight;
	    }
	    refresh(whiteSpace, lineHeight, charWidth, textHeight, lineLength, knownHeights) {
	        let lineWrapping = wrappingWhiteSpace.indexOf(whiteSpace) > -1;
	        let changed = Math.round(lineHeight) != Math.round(this.lineHeight) || this.lineWrapping != lineWrapping;
	        this.lineWrapping = lineWrapping;
	        this.lineHeight = lineHeight;
	        this.charWidth = charWidth;
	        this.textHeight = textHeight;
	        this.lineLength = lineLength;
	        if (changed) {
	            this.heightSamples = {};
	            for (let i = 0; i < knownHeights.length; i++) {
	                let h = knownHeights[i];
	                if (h < 0)
	                    i++;
	                else
	                    this.heightSamples[Math.floor(h * 10)] = true;
	            }
	        }
	        return changed;
	    }
	}
	// This object is used by `updateHeight` to make DOM measurements
	// arrive at the right nides. The `heights` array is a sequence of
	// block heights, starting from position `from`.
	class MeasuredHeights {
	    constructor(from, heights) {
	        this.from = from;
	        this.heights = heights;
	        this.index = 0;
	    }
	    get more() { return this.index < this.heights.length; }
	}
	/**
	Record used to represent information about a block-level element
	in the editor view.
	*/
	class BlockInfo {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The start of the element in the document.
	    */
	    from, 
	    /**
	    The length of the element.
	    */
	    length, 
	    /**
	    The top position of the element (relative to the top of the
	    document).
	    */
	    top, 
	    /**
	    Its height.
	    */
	    height, 
	    /**
	    @internal Weird packed field that holds an array of children
	    for composite blocks, a decoration for block widgets, and a
	    number indicating the amount of widget-create line breaks for
	    text blocks.
	    */
	    _content) {
	        this.from = from;
	        this.length = length;
	        this.top = top;
	        this.height = height;
	        this._content = _content;
	    }
	    /**
	    The type of element this is. When querying lines, this may be
	    an array of all the blocks that make up the line.
	    */
	    get type() {
	        return typeof this._content == "number" ? BlockType.Text :
	            Array.isArray(this._content) ? this._content : this._content.type;
	    }
	    /**
	    The end of the element as a document position.
	    */
	    get to() { return this.from + this.length; }
	    /**
	    The bottom position of the element.
	    */
	    get bottom() { return this.top + this.height; }
	    /**
	    If this is a widget block, this will return the widget
	    associated with it.
	    */
	    get widget() {
	        return this._content instanceof PointDecoration ? this._content.widget : null;
	    }
	    /**
	    If this is a textblock, this holds the number of line breaks
	    that appear in widgets inside the block.
	    */
	    get widgetLineBreaks() {
	        return typeof this._content == "number" ? this._content : 0;
	    }
	    /**
	    @internal
	    */
	    join(other) {
	        let content = (Array.isArray(this._content) ? this._content : [this])
	            .concat(Array.isArray(other._content) ? other._content : [other]);
	        return new BlockInfo(this.from, this.length + other.length, this.top, this.height + other.height, content);
	    }
	}
	var QueryType$1 = /*@__PURE__*/(function (QueryType) {
	    QueryType[QueryType["ByPos"] = 0] = "ByPos";
	    QueryType[QueryType["ByHeight"] = 1] = "ByHeight";
	    QueryType[QueryType["ByPosNoHeight"] = 2] = "ByPosNoHeight";
	return QueryType})(QueryType$1 || (QueryType$1 = {}));
	const Epsilon = 1e-3;
	class HeightMap {
	    constructor(length, // The number of characters covered
	    height, // Height of this part of the document
	    flags = 2 /* Flag.Outdated */) {
	        this.length = length;
	        this.height = height;
	        this.flags = flags;
	    }
	    get outdated() { return (this.flags & 2 /* Flag.Outdated */) > 0; }
	    set outdated(value) { this.flags = (value ? 2 /* Flag.Outdated */ : 0) | (this.flags & ~2 /* Flag.Outdated */); }
	    setHeight(oracle, height) {
	        if (this.height != height) {
	            if (Math.abs(this.height - height) > Epsilon)
	                oracle.heightChanged = true;
	            this.height = height;
	        }
	    }
	    // Base case is to replace a leaf node, which simply builds a tree
	    // from the new nodes and returns that (HeightMapBranch and
	    // HeightMapGap override this to actually use from/to)
	    replace(_from, _to, nodes) {
	        return HeightMap.of(nodes);
	    }
	    // Again, these are base cases, and are overridden for branch and gap nodes.
	    decomposeLeft(_to, result) { result.push(this); }
	    decomposeRight(_from, result) { result.push(this); }
	    applyChanges(decorations, oldDoc, oracle, changes) {
	        let me = this, doc = oracle.doc;
	        for (let i = changes.length - 1; i >= 0; i--) {
	            let { fromA, toA, fromB, toB } = changes[i];
	            let start = me.lineAt(fromA, QueryType$1.ByPosNoHeight, oracle.setDoc(oldDoc), 0, 0);
	            let end = start.to >= toA ? start : me.lineAt(toA, QueryType$1.ByPosNoHeight, oracle, 0, 0);
	            toB += end.to - toA;
	            toA = end.to;
	            while (i > 0 && start.from <= changes[i - 1].toA) {
	                fromA = changes[i - 1].fromA;
	                fromB = changes[i - 1].fromB;
	                i--;
	                if (fromA < start.from)
	                    start = me.lineAt(fromA, QueryType$1.ByPosNoHeight, oracle, 0, 0);
	            }
	            fromB += start.from - fromA;
	            fromA = start.from;
	            let nodes = NodeBuilder.build(oracle.setDoc(doc), decorations, fromB, toB);
	            me = me.replace(fromA, toA, nodes);
	        }
	        return me.updateHeight(oracle, 0);
	    }
	    static empty() { return new HeightMapText(0, 0); }
	    // nodes uses null values to indicate the position of line breaks.
	    // There are never line breaks at the start or end of the array, or
	    // two line breaks next to each other, and the array isn't allowed
	    // to be empty (same restrictions as return value from the builder).
	    static of(nodes) {
	        if (nodes.length == 1)
	            return nodes[0];
	        let i = 0, j = nodes.length, before = 0, after = 0;
	        for (;;) {
	            if (i == j) {
	                if (before > after * 2) {
	                    let split = nodes[i - 1];
	                    if (split.break)
	                        nodes.splice(--i, 1, split.left, null, split.right);
	                    else
	                        nodes.splice(--i, 1, split.left, split.right);
	                    j += 1 + split.break;
	                    before -= split.size;
	                }
	                else if (after > before * 2) {
	                    let split = nodes[j];
	                    if (split.break)
	                        nodes.splice(j, 1, split.left, null, split.right);
	                    else
	                        nodes.splice(j, 1, split.left, split.right);
	                    j += 2 + split.break;
	                    after -= split.size;
	                }
	                else {
	                    break;
	                }
	            }
	            else if (before < after) {
	                let next = nodes[i++];
	                if (next)
	                    before += next.size;
	            }
	            else {
	                let next = nodes[--j];
	                if (next)
	                    after += next.size;
	            }
	        }
	        let brk = 0;
	        if (nodes[i - 1] == null) {
	            brk = 1;
	            i--;
	        }
	        else if (nodes[i] == null) {
	            brk = 1;
	            j++;
	        }
	        return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(j)));
	    }
	}
	HeightMap.prototype.size = 1;
	class HeightMapBlock extends HeightMap {
	    constructor(length, height, deco) {
	        super(length, height);
	        this.deco = deco;
	    }
	    blockAt(_height, _oracle, top, offset) {
	        return new BlockInfo(offset, this.length, top, this.height, this.deco || 0);
	    }
	    lineAt(_value, _type, oracle, top, offset) {
	        return this.blockAt(0, oracle, top, offset);
	    }
	    forEachLine(from, to, oracle, top, offset, f) {
	        if (from <= offset + this.length && to >= offset)
	            f(this.blockAt(0, oracle, top, offset));
	    }
	    updateHeight(oracle, offset = 0, _force = false, measured) {
	        if (measured && measured.from <= offset && measured.more)
	            this.setHeight(oracle, measured.heights[measured.index++]);
	        this.outdated = false;
	        return this;
	    }
	    toString() { return `block(${this.length})`; }
	}
	class HeightMapText extends HeightMapBlock {
	    constructor(length, height) {
	        super(length, height, null);
	        this.collapsed = 0; // Amount of collapsed content in the line
	        this.widgetHeight = 0; // Maximum inline widget height
	        this.breaks = 0; // Number of widget-introduced line breaks on the line
	    }
	    blockAt(_height, _oracle, top, offset) {
	        return new BlockInfo(offset, this.length, top, this.height, this.breaks);
	    }
	    replace(_from, _to, nodes) {
	        let node = nodes[0];
	        if (nodes.length == 1 && (node instanceof HeightMapText || node instanceof HeightMapGap && (node.flags & 4 /* Flag.SingleLine */)) &&
	            Math.abs(this.length - node.length) < 10) {
	            if (node instanceof HeightMapGap)
	                node = new HeightMapText(node.length, this.height);
	            else
	                node.height = this.height;
	            if (!this.outdated)
	                node.outdated = false;
	            return node;
	        }
	        else {
	            return HeightMap.of(nodes);
	        }
	    }
	    updateHeight(oracle, offset = 0, force = false, measured) {
	        if (measured && measured.from <= offset && measured.more)
	            this.setHeight(oracle, measured.heights[measured.index++]);
	        else if (force || this.outdated)
	            this.setHeight(oracle, Math.max(this.widgetHeight, oracle.heightForLine(this.length - this.collapsed)) +
	                this.breaks * oracle.lineHeight);
	        this.outdated = false;
	        return this;
	    }
	    toString() {
	        return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
	    }
	}
	class HeightMapGap extends HeightMap {
	    constructor(length) { super(length, 0); }
	    heightMetrics(oracle, offset) {
	        let firstLine = oracle.doc.lineAt(offset).number, lastLine = oracle.doc.lineAt(offset + this.length).number;
	        let lines = lastLine - firstLine + 1;
	        let perLine, perChar = 0;
	        if (oracle.lineWrapping) {
	            let totalPerLine = Math.min(this.height, oracle.lineHeight * lines);
	            perLine = totalPerLine / lines;
	            if (this.length > lines + 1)
	                perChar = (this.height - totalPerLine) / (this.length - lines - 1);
	        }
	        else {
	            perLine = this.height / lines;
	        }
	        return { firstLine, lastLine, perLine, perChar };
	    }
	    blockAt(height, oracle, top, offset) {
	        let { firstLine, lastLine, perLine, perChar } = this.heightMetrics(oracle, offset);
	        if (oracle.lineWrapping) {
	            let guess = offset + Math.round(Math.max(0, Math.min(1, (height - top) / this.height)) * this.length);
	            let line = oracle.doc.lineAt(guess), lineHeight = perLine + line.length * perChar;
	            let lineTop = Math.max(top, height - lineHeight / 2);
	            return new BlockInfo(line.from, line.length, lineTop, lineHeight, 0);
	        }
	        else {
	            let line = Math.max(0, Math.min(lastLine - firstLine, Math.floor((height - top) / perLine)));
	            let { from, length } = oracle.doc.line(firstLine + line);
	            return new BlockInfo(from, length, top + perLine * line, perLine, 0);
	        }
	    }
	    lineAt(value, type, oracle, top, offset) {
	        if (type == QueryType$1.ByHeight)
	            return this.blockAt(value, oracle, top, offset);
	        if (type == QueryType$1.ByPosNoHeight) {
	            let { from, to } = oracle.doc.lineAt(value);
	            return new BlockInfo(from, to - from, 0, 0, 0);
	        }
	        let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);
	        let line = oracle.doc.lineAt(value), lineHeight = perLine + line.length * perChar;
	        let linesAbove = line.number - firstLine;
	        let lineTop = top + perLine * linesAbove + perChar * (line.from - offset - linesAbove);
	        return new BlockInfo(line.from, line.length, Math.max(top, Math.min(lineTop, top + this.height - lineHeight)), lineHeight, 0);
	    }
	    forEachLine(from, to, oracle, top, offset, f) {
	        from = Math.max(from, offset);
	        to = Math.min(to, offset + this.length);
	        let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);
	        for (let pos = from, lineTop = top; pos <= to;) {
	            let line = oracle.doc.lineAt(pos);
	            if (pos == from) {
	                let linesAbove = line.number - firstLine;
	                lineTop += perLine * linesAbove + perChar * (from - offset - linesAbove);
	            }
	            let lineHeight = perLine + perChar * line.length;
	            f(new BlockInfo(line.from, line.length, lineTop, lineHeight, 0));
	            lineTop += lineHeight;
	            pos = line.to + 1;
	        }
	    }
	    replace(from, to, nodes) {
	        let after = this.length - to;
	        if (after > 0) {
	            let last = nodes[nodes.length - 1];
	            if (last instanceof HeightMapGap)
	                nodes[nodes.length - 1] = new HeightMapGap(last.length + after);
	            else
	                nodes.push(null, new HeightMapGap(after - 1));
	        }
	        if (from > 0) {
	            let first = nodes[0];
	            if (first instanceof HeightMapGap)
	                nodes[0] = new HeightMapGap(from + first.length);
	            else
	                nodes.unshift(new HeightMapGap(from - 1), null);
	        }
	        return HeightMap.of(nodes);
	    }
	    decomposeLeft(to, result) {
	        result.push(new HeightMapGap(to - 1), null);
	    }
	    decomposeRight(from, result) {
	        result.push(null, new HeightMapGap(this.length - from - 1));
	    }
	    updateHeight(oracle, offset = 0, force = false, measured) {
	        let end = offset + this.length;
	        if (measured && measured.from <= offset + this.length && measured.more) {
	            // Fill in part of this gap with measured lines. We know there
	            // can't be widgets or collapsed ranges in those lines, because
	            // they would already have been added to the heightmap (gaps
	            // only contain plain text).
	            let nodes = [], pos = Math.max(offset, measured.from), singleHeight = -1;
	            if (measured.from > offset)
	                nodes.push(new HeightMapGap(measured.from - offset - 1).updateHeight(oracle, offset));
	            while (pos <= end && measured.more) {
	                let len = oracle.doc.lineAt(pos).length;
	                if (nodes.length)
	                    nodes.push(null);
	                let height = measured.heights[measured.index++];
	                if (singleHeight == -1)
	                    singleHeight = height;
	                else if (Math.abs(height - singleHeight) >= Epsilon)
	                    singleHeight = -2;
	                let line = new HeightMapText(len, height);
	                line.outdated = false;
	                nodes.push(line);
	                pos += len + 1;
	            }
	            if (pos <= end)
	                nodes.push(null, new HeightMapGap(end - pos).updateHeight(oracle, pos));
	            let result = HeightMap.of(nodes);
	            if (singleHeight < 0 || Math.abs(result.height - this.height) >= Epsilon ||
	                Math.abs(singleHeight - this.heightMetrics(oracle, offset).perLine) >= Epsilon)
	                oracle.heightChanged = true;
	            return result;
	        }
	        else if (force || this.outdated) {
	            this.setHeight(oracle, oracle.heightForGap(offset, offset + this.length));
	            this.outdated = false;
	        }
	        return this;
	    }
	    toString() { return `gap(${this.length})`; }
	}
	class HeightMapBranch extends HeightMap {
	    constructor(left, brk, right) {
	        super(left.length + brk + right.length, left.height + right.height, brk | (left.outdated || right.outdated ? 2 /* Flag.Outdated */ : 0));
	        this.left = left;
	        this.right = right;
	        this.size = left.size + right.size;
	    }
	    get break() { return this.flags & 1 /* Flag.Break */; }
	    blockAt(height, oracle, top, offset) {
	        let mid = top + this.left.height;
	        return height < mid ? this.left.blockAt(height, oracle, top, offset)
	            : this.right.blockAt(height, oracle, mid, offset + this.left.length + this.break);
	    }
	    lineAt(value, type, oracle, top, offset) {
	        let rightTop = top + this.left.height, rightOffset = offset + this.left.length + this.break;
	        let left = type == QueryType$1.ByHeight ? value < rightTop : value < rightOffset;
	        let base = left ? this.left.lineAt(value, type, oracle, top, offset)
	            : this.right.lineAt(value, type, oracle, rightTop, rightOffset);
	        if (this.break || (left ? base.to < rightOffset : base.from > rightOffset))
	            return base;
	        let subQuery = type == QueryType$1.ByPosNoHeight ? QueryType$1.ByPosNoHeight : QueryType$1.ByPos;
	        if (left)
	            return base.join(this.right.lineAt(rightOffset, subQuery, oracle, rightTop, rightOffset));
	        else
	            return this.left.lineAt(rightOffset, subQuery, oracle, top, offset).join(base);
	    }
	    forEachLine(from, to, oracle, top, offset, f) {
	        let rightTop = top + this.left.height, rightOffset = offset + this.left.length + this.break;
	        if (this.break) {
	            if (from < rightOffset)
	                this.left.forEachLine(from, to, oracle, top, offset, f);
	            if (to >= rightOffset)
	                this.right.forEachLine(from, to, oracle, rightTop, rightOffset, f);
	        }
	        else {
	            let mid = this.lineAt(rightOffset, QueryType$1.ByPos, oracle, top, offset);
	            if (from < mid.from)
	                this.left.forEachLine(from, mid.from - 1, oracle, top, offset, f);
	            if (mid.to >= from && mid.from <= to)
	                f(mid);
	            if (to > mid.to)
	                this.right.forEachLine(mid.to + 1, to, oracle, rightTop, rightOffset, f);
	        }
	    }
	    replace(from, to, nodes) {
	        let rightStart = this.left.length + this.break;
	        if (to < rightStart)
	            return this.balanced(this.left.replace(from, to, nodes), this.right);
	        if (from > this.left.length)
	            return this.balanced(this.left, this.right.replace(from - rightStart, to - rightStart, nodes));
	        let result = [];
	        if (from > 0)
	            this.decomposeLeft(from, result);
	        let left = result.length;
	        for (let node of nodes)
	            result.push(node);
	        if (from > 0)
	            mergeGaps(result, left - 1);
	        if (to < this.length) {
	            let right = result.length;
	            this.decomposeRight(to, result);
	            mergeGaps(result, right);
	        }
	        return HeightMap.of(result);
	    }
	    decomposeLeft(to, result) {
	        let left = this.left.length;
	        if (to <= left)
	            return this.left.decomposeLeft(to, result);
	        result.push(this.left);
	        if (this.break) {
	            left++;
	            if (to >= left)
	                result.push(null);
	        }
	        if (to > left)
	            this.right.decomposeLeft(to - left, result);
	    }
	    decomposeRight(from, result) {
	        let left = this.left.length, right = left + this.break;
	        if (from >= right)
	            return this.right.decomposeRight(from - right, result);
	        if (from < left)
	            this.left.decomposeRight(from, result);
	        if (this.break && from < right)
	            result.push(null);
	        result.push(this.right);
	    }
	    balanced(left, right) {
	        if (left.size > 2 * right.size || right.size > 2 * left.size)
	            return HeightMap.of(this.break ? [left, null, right] : [left, right]);
	        this.left = left;
	        this.right = right;
	        this.height = left.height + right.height;
	        this.outdated = left.outdated || right.outdated;
	        this.size = left.size + right.size;
	        this.length = left.length + this.break + right.length;
	        return this;
	    }
	    updateHeight(oracle, offset = 0, force = false, measured) {
	        let { left, right } = this, rightStart = offset + left.length + this.break, rebalance = null;
	        if (measured && measured.from <= offset + left.length && measured.more)
	            rebalance = left = left.updateHeight(oracle, offset, force, measured);
	        else
	            left.updateHeight(oracle, offset, force);
	        if (measured && measured.from <= rightStart + right.length && measured.more)
	            rebalance = right = right.updateHeight(oracle, rightStart, force, measured);
	        else
	            right.updateHeight(oracle, rightStart, force);
	        if (rebalance)
	            return this.balanced(left, right);
	        this.height = this.left.height + this.right.height;
	        this.outdated = false;
	        return this;
	    }
	    toString() { return this.left + (this.break ? " " : "-") + this.right; }
	}
	function mergeGaps(nodes, around) {
	    let before, after;
	    if (nodes[around] == null &&
	        (before = nodes[around - 1]) instanceof HeightMapGap &&
	        (after = nodes[around + 1]) instanceof HeightMapGap)
	        nodes.splice(around - 1, 3, new HeightMapGap(before.length + 1 + after.length));
	}
	const relevantWidgetHeight = 5;
	class NodeBuilder {
	    constructor(pos, oracle) {
	        this.pos = pos;
	        this.oracle = oracle;
	        this.nodes = [];
	        this.lineStart = -1;
	        this.lineEnd = -1;
	        this.covering = null;
	        this.writtenTo = pos;
	    }
	    get isCovered() {
	        return this.covering && this.nodes[this.nodes.length - 1] == this.covering;
	    }
	    span(_from, to) {
	        if (this.lineStart > -1) {
	            let end = Math.min(to, this.lineEnd), last = this.nodes[this.nodes.length - 1];
	            if (last instanceof HeightMapText)
	                last.length += end - this.pos;
	            else if (end > this.pos || !this.isCovered)
	                this.nodes.push(new HeightMapText(end - this.pos, -1));
	            this.writtenTo = end;
	            if (to > end) {
	                this.nodes.push(null);
	                this.writtenTo++;
	                this.lineStart = -1;
	            }
	        }
	        this.pos = to;
	    }
	    point(from, to, deco) {
	        if (from < to || deco.heightRelevant) {
	            let height = deco.widget ? deco.widget.estimatedHeight : 0;
	            let breaks = deco.widget ? deco.widget.lineBreaks : 0;
	            if (height < 0)
	                height = this.oracle.lineHeight;
	            let len = to - from;
	            if (deco.block) {
	                this.addBlock(new HeightMapBlock(len, height, deco));
	            }
	            else if (len || breaks || height >= relevantWidgetHeight) {
	                this.addLineDeco(height, breaks, len);
	            }
	        }
	        else if (to > from) {
	            this.span(from, to);
	        }
	        if (this.lineEnd > -1 && this.lineEnd < this.pos)
	            this.lineEnd = this.oracle.doc.lineAt(this.pos).to;
	    }
	    enterLine() {
	        if (this.lineStart > -1)
	            return;
	        let { from, to } = this.oracle.doc.lineAt(this.pos);
	        this.lineStart = from;
	        this.lineEnd = to;
	        if (this.writtenTo < from) {
	            if (this.writtenTo < from - 1 || this.nodes[this.nodes.length - 1] == null)
	                this.nodes.push(this.blankContent(this.writtenTo, from - 1));
	            this.nodes.push(null);
	        }
	        if (this.pos > from)
	            this.nodes.push(new HeightMapText(this.pos - from, -1));
	        this.writtenTo = this.pos;
	    }
	    blankContent(from, to) {
	        let gap = new HeightMapGap(to - from);
	        if (this.oracle.doc.lineAt(from).to == to)
	            gap.flags |= 4 /* Flag.SingleLine */;
	        return gap;
	    }
	    ensureLine() {
	        this.enterLine();
	        let last = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
	        if (last instanceof HeightMapText)
	            return last;
	        let line = new HeightMapText(0, -1);
	        this.nodes.push(line);
	        return line;
	    }
	    addBlock(block) {
	        this.enterLine();
	        let deco = block.deco;
	        if (deco && deco.startSide > 0 && !this.isCovered)
	            this.ensureLine();
	        this.nodes.push(block);
	        this.writtenTo = this.pos = this.pos + block.length;
	        if (deco && deco.endSide > 0)
	            this.covering = block;
	    }
	    addLineDeco(height, breaks, length) {
	        let line = this.ensureLine();
	        line.length += length;
	        line.collapsed += length;
	        line.widgetHeight = Math.max(line.widgetHeight, height);
	        line.breaks += breaks;
	        this.writtenTo = this.pos = this.pos + length;
	    }
	    finish(from) {
	        let last = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
	        if (this.lineStart > -1 && !(last instanceof HeightMapText) && !this.isCovered)
	            this.nodes.push(new HeightMapText(0, -1));
	        else if (this.writtenTo < this.pos || last == null)
	            this.nodes.push(this.blankContent(this.writtenTo, this.pos));
	        let pos = from;
	        for (let node of this.nodes) {
	            if (node instanceof HeightMapText)
	                node.updateHeight(this.oracle, pos);
	            pos += node ? node.length : 1;
	        }
	        return this.nodes;
	    }
	    // Always called with a region that on both sides either stretches
	    // to a line break or the end of the document.
	    // The returned array uses null to indicate line breaks, but never
	    // starts or ends in a line break, or has multiple line breaks next
	    // to each other.
	    static build(oracle, decorations, from, to) {
	        let builder = new NodeBuilder(from, oracle);
	        RangeSet.spans(decorations, from, to, builder, 0);
	        return builder.finish(from);
	    }
	}
	function heightRelevantDecoChanges(a, b, diff) {
	    let comp = new DecorationComparator;
	    RangeSet.compare(a, b, diff, comp, 0);
	    return comp.changes;
	}
	class DecorationComparator {
	    constructor() {
	        this.changes = [];
	    }
	    compareRange() { }
	    comparePoint(from, to, a, b) {
	        if (from < to || a && a.heightRelevant || b && b.heightRelevant)
	            addRange(from, to, this.changes, 5);
	    }
	}

	function visiblePixelRange(dom, paddingTop) {
	    let rect = dom.getBoundingClientRect();
	    let doc = dom.ownerDocument, win = doc.defaultView || window;
	    let left = Math.max(0, rect.left), right = Math.min(win.innerWidth, rect.right);
	    let top = Math.max(0, rect.top), bottom = Math.min(win.innerHeight, rect.bottom);
	    for (let parent = dom.parentNode; parent && parent != doc.body;) {
	        if (parent.nodeType == 1) {
	            let elt = parent;
	            let style = window.getComputedStyle(elt);
	            if ((elt.scrollHeight > elt.clientHeight || elt.scrollWidth > elt.clientWidth) &&
	                style.overflow != "visible") {
	                let parentRect = elt.getBoundingClientRect();
	                left = Math.max(left, parentRect.left);
	                right = Math.min(right, parentRect.right);
	                top = Math.max(top, parentRect.top);
	                bottom = parent == dom.parentNode ? parentRect.bottom : Math.min(bottom, parentRect.bottom);
	            }
	            parent = style.position == "absolute" || style.position == "fixed" ? elt.offsetParent : elt.parentNode;
	        }
	        else if (parent.nodeType == 11) { // Shadow root
	            parent = parent.host;
	        }
	        else {
	            break;
	        }
	    }
	    return { left: left - rect.left, right: Math.max(left, right) - rect.left,
	        top: top - (rect.top + paddingTop), bottom: Math.max(top, bottom) - (rect.top + paddingTop) };
	}
	function fullPixelRange(dom, paddingTop) {
	    let rect = dom.getBoundingClientRect();
	    return { left: 0, right: rect.right - rect.left,
	        top: paddingTop, bottom: rect.bottom - (rect.top + paddingTop) };
	}
	// Line gaps are placeholder widgets used to hide pieces of overlong
	// lines within the viewport, as a kludge to keep the editor
	// responsive when a ridiculously long line is loaded into it.
	class LineGap {
	    constructor(from, to, size) {
	        this.from = from;
	        this.to = to;
	        this.size = size;
	    }
	    static same(a, b) {
	        if (a.length != b.length)
	            return false;
	        for (let i = 0; i < a.length; i++) {
	            let gA = a[i], gB = b[i];
	            if (gA.from != gB.from || gA.to != gB.to || gA.size != gB.size)
	                return false;
	        }
	        return true;
	    }
	    draw(viewState, wrapping) {
	        return Decoration.replace({
	            widget: new LineGapWidget(this.size * (wrapping ? viewState.scaleY : viewState.scaleX), wrapping)
	        }).range(this.from, this.to);
	    }
	}
	class LineGapWidget extends WidgetType {
	    constructor(size, vertical) {
	        super();
	        this.size = size;
	        this.vertical = vertical;
	    }
	    eq(other) { return other.size == this.size && other.vertical == this.vertical; }
	    toDOM() {
	        let elt = document.createElement("div");
	        if (this.vertical) {
	            elt.style.height = this.size + "px";
	        }
	        else {
	            elt.style.width = this.size + "px";
	            elt.style.height = "2px";
	            elt.style.display = "inline-block";
	        }
	        return elt;
	    }
	    get estimatedHeight() { return this.vertical ? this.size : -1; }
	}
	class ViewState {
	    constructor(state) {
	        this.state = state;
	        // These are contentDOM-local coordinates
	        this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 };
	        this.inView = true;
	        this.paddingTop = 0; // Padding above the document, scaled
	        this.paddingBottom = 0; // Padding below the document, scaled
	        this.contentDOMWidth = 0; // contentDOM.getBoundingClientRect().width
	        this.contentDOMHeight = 0; // contentDOM.getBoundingClientRect().height
	        this.editorHeight = 0; // scrollDOM.clientHeight, unscaled
	        this.editorWidth = 0; // scrollDOM.clientWidth, unscaled
	        this.scrollTop = 0; // Last seen scrollDOM.scrollTop, scaled
	        this.scrolledToBottom = true;
	        // The CSS-transformation scale of the editor (transformed size /
	        // concrete size)
	        this.scaleX = 1;
	        this.scaleY = 1;
	        // The vertical position (document-relative) to which to anchor the
	        // scroll position. -1 means anchor to the end of the document.
	        this.scrollAnchorPos = 0;
	        // The height at the anchor position. Set by the DOM update phase.
	        // -1 means no height available.
	        this.scrollAnchorHeight = -1;
	        // See VP.MaxDOMHeight
	        this.scaler = IdScaler;
	        this.scrollTarget = null;
	        // Briefly set to true when printing, to disable viewport limiting
	        this.printing = false;
	        // Flag set when editor content was redrawn, so that the next
	        // measure stage knows it must read DOM layout
	        this.mustMeasureContent = true;
	        this.defaultTextDirection = Direction.LTR;
	        this.visibleRanges = [];
	        // Cursor 'assoc' is only significant when the cursor is on a line
	        // wrap point, where it must stick to the character that it is
	        // associated with. Since browsers don't provide a reasonable
	        // interface to set or query this, when a selection is set that
	        // might cause this to be significant, this flag is set. The next
	        // measure phase will check whether the cursor is on a line-wrapping
	        // boundary and, if so, reset it to make sure it is positioned in
	        // the right place.
	        this.mustEnforceCursorAssoc = false;
	        let guessWrapping = state.facet(contentAttributes).some(v => typeof v != "function" && v.class == "cm-lineWrapping");
	        this.heightOracle = new HeightOracle(guessWrapping);
	        this.stateDeco = state.facet(decorations).filter(d => typeof d != "function");
	        this.heightMap = HeightMap.empty().applyChanges(this.stateDeco, Text$1.empty, this.heightOracle.setDoc(state.doc), [new ChangedRange(0, 0, 0, state.doc.length)]);
	        this.viewport = this.getViewport(0, null);
	        this.updateViewportLines();
	        this.updateForViewport();
	        this.lineGaps = this.ensureLineGaps([]);
	        this.lineGapDeco = Decoration.set(this.lineGaps.map(gap => gap.draw(this, false)));
	        this.computeVisibleRanges();
	    }
	    updateForViewport() {
	        let viewports = [this.viewport], { main } = this.state.selection;
	        for (let i = 0; i <= 1; i++) {
	            let pos = i ? main.head : main.anchor;
	            if (!viewports.some(({ from, to }) => pos >= from && pos <= to)) {
	                let { from, to } = this.lineBlockAt(pos);
	                viewports.push(new Viewport(from, to));
	            }
	        }
	        this.viewports = viewports.sort((a, b) => a.from - b.from);
	        this.scaler = this.heightMap.height <= 7000000 /* VP.MaxDOMHeight */ ? IdScaler :
	            new BigScaler(this.heightOracle, this.heightMap, this.viewports);
	    }
	    updateViewportLines() {
	        this.viewportLines = [];
	        this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, block => {
	            this.viewportLines.push(this.scaler.scale == 1 ? block : scaleBlock(block, this.scaler));
	        });
	    }
	    update(update, scrollTarget = null) {
	        this.state = update.state;
	        let prevDeco = this.stateDeco;
	        this.stateDeco = this.state.facet(decorations).filter(d => typeof d != "function");
	        let contentChanges = update.changedRanges;
	        let heightChanges = ChangedRange.extendWithRanges(contentChanges, heightRelevantDecoChanges(prevDeco, this.stateDeco, update ? update.changes : ChangeSet.empty(this.state.doc.length)));
	        let prevHeight = this.heightMap.height;
	        let scrollAnchor = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
	        this.heightMap = this.heightMap.applyChanges(this.stateDeco, update.startState.doc, this.heightOracle.setDoc(this.state.doc), heightChanges);
	        if (this.heightMap.height != prevHeight)
	            update.flags |= 2 /* UpdateFlag.Height */;
	        if (scrollAnchor) {
	            this.scrollAnchorPos = update.changes.mapPos(scrollAnchor.from, -1);
	            this.scrollAnchorHeight = scrollAnchor.top;
	        }
	        else {
	            this.scrollAnchorPos = -1;
	            this.scrollAnchorHeight = this.heightMap.height;
	        }
	        let viewport = heightChanges.length ? this.mapViewport(this.viewport, update.changes) : this.viewport;
	        if (scrollTarget && (scrollTarget.range.head < viewport.from || scrollTarget.range.head > viewport.to) ||
	            !this.viewportIsAppropriate(viewport))
	            viewport = this.getViewport(0, scrollTarget);
	        let updateLines = !update.changes.empty || (update.flags & 2 /* UpdateFlag.Height */) ||
	            viewport.from != this.viewport.from || viewport.to != this.viewport.to;
	        this.viewport = viewport;
	        this.updateForViewport();
	        if (updateLines)
	            this.updateViewportLines();
	        if (this.lineGaps.length || this.viewport.to - this.viewport.from > (2000 /* LG.Margin */ << 1))
	            this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, update.changes)));
	        update.flags |= this.computeVisibleRanges();
	        if (scrollTarget)
	            this.scrollTarget = scrollTarget;
	        if (!this.mustEnforceCursorAssoc && update.selectionSet && update.view.lineWrapping &&
	            update.state.selection.main.empty && update.state.selection.main.assoc &&
	            !update.state.facet(nativeSelectionHidden))
	            this.mustEnforceCursorAssoc = true;
	    }
	    measure(view) {
	        let dom = view.contentDOM, style = window.getComputedStyle(dom);
	        let oracle = this.heightOracle;
	        let whiteSpace = style.whiteSpace;
	        this.defaultTextDirection = style.direction == "rtl" ? Direction.RTL : Direction.LTR;
	        let refresh = this.heightOracle.mustRefreshForWrapping(whiteSpace);
	        let domRect = dom.getBoundingClientRect();
	        let measureContent = refresh || this.mustMeasureContent || this.contentDOMHeight != domRect.height;
	        this.contentDOMHeight = domRect.height;
	        this.mustMeasureContent = false;
	        let result = 0, bias = 0;
	        if (domRect.width && domRect.height) {
	            let { scaleX, scaleY } = getScale(dom, domRect);
	            if (scaleX > .005 && Math.abs(this.scaleX - scaleX) > .005 ||
	                scaleY > .005 && Math.abs(this.scaleY - scaleY) > .005) {
	                this.scaleX = scaleX;
	                this.scaleY = scaleY;
	                result |= 8 /* UpdateFlag.Geometry */;
	                refresh = measureContent = true;
	            }
	        }
	        // Vertical padding
	        let paddingTop = (parseInt(style.paddingTop) || 0) * this.scaleY;
	        let paddingBottom = (parseInt(style.paddingBottom) || 0) * this.scaleY;
	        if (this.paddingTop != paddingTop || this.paddingBottom != paddingBottom) {
	            this.paddingTop = paddingTop;
	            this.paddingBottom = paddingBottom;
	            result |= 8 /* UpdateFlag.Geometry */ | 2 /* UpdateFlag.Height */;
	        }
	        if (this.editorWidth != view.scrollDOM.clientWidth) {
	            if (oracle.lineWrapping)
	                measureContent = true;
	            this.editorWidth = view.scrollDOM.clientWidth;
	            result |= 8 /* UpdateFlag.Geometry */;
	        }
	        let scrollTop = view.scrollDOM.scrollTop * this.scaleY;
	        if (this.scrollTop != scrollTop) {
	            this.scrollAnchorHeight = -1;
	            this.scrollTop = scrollTop;
	        }
	        this.scrolledToBottom = isScrolledToBottom(view.scrollDOM);
	        // Pixel viewport
	        let pixelViewport = (this.printing ? fullPixelRange : visiblePixelRange)(dom, this.paddingTop);
	        let dTop = pixelViewport.top - this.pixelViewport.top, dBottom = pixelViewport.bottom - this.pixelViewport.bottom;
	        this.pixelViewport = pixelViewport;
	        let inView = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
	        if (inView != this.inView) {
	            this.inView = inView;
	            if (inView)
	                measureContent = true;
	        }
	        if (!this.inView && !this.scrollTarget)
	            return 0;
	        let contentWidth = domRect.width;
	        if (this.contentDOMWidth != contentWidth || this.editorHeight != view.scrollDOM.clientHeight) {
	            this.contentDOMWidth = domRect.width;
	            this.editorHeight = view.scrollDOM.clientHeight;
	            result |= 8 /* UpdateFlag.Geometry */;
	        }
	        if (measureContent) {
	            let lineHeights = view.docView.measureVisibleLineHeights(this.viewport);
	            if (oracle.mustRefreshForHeights(lineHeights))
	                refresh = true;
	            if (refresh || oracle.lineWrapping && Math.abs(contentWidth - this.contentDOMWidth) > oracle.charWidth) {
	                let { lineHeight, charWidth, textHeight } = view.docView.measureTextSize();
	                refresh = lineHeight > 0 && oracle.refresh(whiteSpace, lineHeight, charWidth, textHeight, contentWidth / charWidth, lineHeights);
	                if (refresh) {
	                    view.docView.minWidth = 0;
	                    result |= 8 /* UpdateFlag.Geometry */;
	                }
	            }
	            if (dTop > 0 && dBottom > 0)
	                bias = Math.max(dTop, dBottom);
	            else if (dTop < 0 && dBottom < 0)
	                bias = Math.min(dTop, dBottom);
	            oracle.heightChanged = false;
	            for (let vp of this.viewports) {
	                let heights = vp.from == this.viewport.from ? lineHeights : view.docView.measureVisibleLineHeights(vp);
	                this.heightMap = (refresh ? HeightMap.empty().applyChanges(this.stateDeco, Text$1.empty, this.heightOracle, [new ChangedRange(0, 0, 0, view.state.doc.length)]) : this.heightMap).updateHeight(oracle, 0, refresh, new MeasuredHeights(vp.from, heights));
	            }
	            if (oracle.heightChanged)
	                result |= 2 /* UpdateFlag.Height */;
	        }
	        let viewportChange = !this.viewportIsAppropriate(this.viewport, bias) ||
	            this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from ||
	                this.scrollTarget.range.head > this.viewport.to);
	        if (viewportChange)
	            this.viewport = this.getViewport(bias, this.scrollTarget);
	        this.updateForViewport();
	        if ((result & 2 /* UpdateFlag.Height */) || viewportChange)
	            this.updateViewportLines();
	        if (this.lineGaps.length || this.viewport.to - this.viewport.from > (2000 /* LG.Margin */ << 1))
	            this.updateLineGaps(this.ensureLineGaps(refresh ? [] : this.lineGaps, view));
	        result |= this.computeVisibleRanges();
	        if (this.mustEnforceCursorAssoc) {
	            this.mustEnforceCursorAssoc = false;
	            // This is done in the read stage, because moving the selection
	            // to a line end is going to trigger a layout anyway, so it
	            // can't be a pure write. It should be rare that it does any
	            // writing.
	            view.docView.enforceCursorAssoc();
	        }
	        return result;
	    }
	    get visibleTop() { return this.scaler.fromDOM(this.pixelViewport.top); }
	    get visibleBottom() { return this.scaler.fromDOM(this.pixelViewport.bottom); }
	    getViewport(bias, scrollTarget) {
	        // This will divide VP.Margin between the top and the
	        // bottom, depending on the bias (the change in viewport position
	        // since the last update). It'll hold a number between 0 and 1
	        let marginTop = 0.5 - Math.max(-0.5, Math.min(0.5, bias / 1000 /* VP.Margin */ / 2));
	        let map = this.heightMap, oracle = this.heightOracle;
	        let { visibleTop, visibleBottom } = this;
	        let viewport = new Viewport(map.lineAt(visibleTop - marginTop * 1000 /* VP.Margin */, QueryType$1.ByHeight, oracle, 0, 0).from, map.lineAt(visibleBottom + (1 - marginTop) * 1000 /* VP.Margin */, QueryType$1.ByHeight, oracle, 0, 0).to);
	        // If scrollTarget is given, make sure the viewport includes that position
	        if (scrollTarget) {
	            let { head } = scrollTarget.range;
	            if (head < viewport.from || head > viewport.to) {
	                let viewHeight = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top);
	                let block = map.lineAt(head, QueryType$1.ByPos, oracle, 0, 0), topPos;
	                if (scrollTarget.y == "center")
	                    topPos = (block.top + block.bottom) / 2 - viewHeight / 2;
	                else if (scrollTarget.y == "start" || scrollTarget.y == "nearest" && head < viewport.from)
	                    topPos = block.top;
	                else
	                    topPos = block.bottom - viewHeight;
	                viewport = new Viewport(map.lineAt(topPos - 1000 /* VP.Margin */ / 2, QueryType$1.ByHeight, oracle, 0, 0).from, map.lineAt(topPos + viewHeight + 1000 /* VP.Margin */ / 2, QueryType$1.ByHeight, oracle, 0, 0).to);
	            }
	        }
	        return viewport;
	    }
	    mapViewport(viewport, changes) {
	        let from = changes.mapPos(viewport.from, -1), to = changes.mapPos(viewport.to, 1);
	        return new Viewport(this.heightMap.lineAt(from, QueryType$1.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(to, QueryType$1.ByPos, this.heightOracle, 0, 0).to);
	    }
	    // Checks if a given viewport covers the visible part of the
	    // document and not too much beyond that.
	    viewportIsAppropriate({ from, to }, bias = 0) {
	        if (!this.inView)
	            return true;
	        let { top } = this.heightMap.lineAt(from, QueryType$1.ByPos, this.heightOracle, 0, 0);
	        let { bottom } = this.heightMap.lineAt(to, QueryType$1.ByPos, this.heightOracle, 0, 0);
	        let { visibleTop, visibleBottom } = this;
	        return (from == 0 || top <= visibleTop - Math.max(10 /* VP.MinCoverMargin */, Math.min(-bias, 250 /* VP.MaxCoverMargin */))) &&
	            (to == this.state.doc.length ||
	                bottom >= visibleBottom + Math.max(10 /* VP.MinCoverMargin */, Math.min(bias, 250 /* VP.MaxCoverMargin */))) &&
	            (top > visibleTop - 2 * 1000 /* VP.Margin */ && bottom < visibleBottom + 2 * 1000 /* VP.Margin */);
	    }
	    mapLineGaps(gaps, changes) {
	        if (!gaps.length || changes.empty)
	            return gaps;
	        let mapped = [];
	        for (let gap of gaps)
	            if (!changes.touchesRange(gap.from, gap.to))
	                mapped.push(new LineGap(changes.mapPos(gap.from), changes.mapPos(gap.to), gap.size));
	        return mapped;
	    }
	    // Computes positions in the viewport where the start or end of a
	    // line should be hidden, trying to reuse existing line gaps when
	    // appropriate to avoid unneccesary redraws.
	    // Uses crude character-counting for the positioning and sizing,
	    // since actual DOM coordinates aren't always available and
	    // predictable. Relies on generous margins (see LG.Margin) to hide
	    // the artifacts this might produce from the user.
	    ensureLineGaps(current, mayMeasure) {
	        let wrapping = this.heightOracle.lineWrapping;
	        let margin = wrapping ? 10000 /* LG.MarginWrap */ : 2000 /* LG.Margin */, halfMargin = margin >> 1, doubleMargin = margin << 1;
	        // The non-wrapping logic won't work at all in predominantly right-to-left text.
	        if (this.defaultTextDirection != Direction.LTR && !wrapping)
	            return [];
	        let gaps = [];
	        let addGap = (from, to, line, structure) => {
	            if (to - from < halfMargin)
	                return;
	            let sel = this.state.selection.main, avoid = [sel.from];
	            if (!sel.empty)
	                avoid.push(sel.to);
	            for (let pos of avoid) {
	                if (pos > from && pos < to) {
	                    addGap(from, pos - 10 /* LG.SelectionMargin */, line, structure);
	                    addGap(pos + 10 /* LG.SelectionMargin */, to, line, structure);
	                    return;
	                }
	            }
	            let gap = find(current, gap => gap.from >= line.from && gap.to <= line.to &&
	                Math.abs(gap.from - from) < halfMargin && Math.abs(gap.to - to) < halfMargin &&
	                !avoid.some(pos => gap.from < pos && gap.to > pos));
	            if (!gap) {
	                // When scrolling down, snap gap ends to line starts to avoid shifts in wrapping
	                if (to < line.to && mayMeasure && wrapping &&
	                    mayMeasure.visibleRanges.some(r => r.from <= to && r.to >= to)) {
	                    let lineStart = mayMeasure.moveToLineBoundary(EditorSelection.cursor(to), false, true).head;
	                    if (lineStart > from)
	                        to = lineStart;
	                }
	                gap = new LineGap(from, to, this.gapSize(line, from, to, structure));
	            }
	            gaps.push(gap);
	        };
	        for (let line of this.viewportLines) {
	            if (line.length < doubleMargin)
	                continue;
	            let structure = lineStructure(line.from, line.to, this.stateDeco);
	            if (structure.total < doubleMargin)
	                continue;
	            let target = this.scrollTarget ? this.scrollTarget.range.head : null;
	            let viewFrom, viewTo;
	            if (wrapping) {
	                let marginHeight = (margin / this.heightOracle.lineLength) * this.heightOracle.lineHeight;
	                let top, bot;
	                if (target != null) {
	                    let targetFrac = findFraction(structure, target);
	                    let spaceFrac = ((this.visibleBottom - this.visibleTop) / 2 + marginHeight) / line.height;
	                    top = targetFrac - spaceFrac;
	                    bot = targetFrac + spaceFrac;
	                }
	                else {
	                    top = (this.visibleTop - line.top - marginHeight) / line.height;
	                    bot = (this.visibleBottom - line.top + marginHeight) / line.height;
	                }
	                viewFrom = findPosition(structure, top);
	                viewTo = findPosition(structure, bot);
	            }
	            else {
	                let totalWidth = structure.total * this.heightOracle.charWidth;
	                let marginWidth = margin * this.heightOracle.charWidth;
	                let left, right;
	                if (target != null) {
	                    let targetFrac = findFraction(structure, target);
	                    let spaceFrac = ((this.pixelViewport.right - this.pixelViewport.left) / 2 + marginWidth) / totalWidth;
	                    left = targetFrac - spaceFrac;
	                    right = targetFrac + spaceFrac;
	                }
	                else {
	                    left = (this.pixelViewport.left - marginWidth) / totalWidth;
	                    right = (this.pixelViewport.right + marginWidth) / totalWidth;
	                }
	                viewFrom = findPosition(structure, left);
	                viewTo = findPosition(structure, right);
	            }
	            if (viewFrom > line.from)
	                addGap(line.from, viewFrom, line, structure);
	            if (viewTo < line.to)
	                addGap(viewTo, line.to, line, structure);
	        }
	        return gaps;
	    }
	    gapSize(line, from, to, structure) {
	        let fraction = findFraction(structure, to) - findFraction(structure, from);
	        if (this.heightOracle.lineWrapping) {
	            return line.height * fraction;
	        }
	        else {
	            return structure.total * this.heightOracle.charWidth * fraction;
	        }
	    }
	    updateLineGaps(gaps) {
	        if (!LineGap.same(gaps, this.lineGaps)) {
	            this.lineGaps = gaps;
	            this.lineGapDeco = Decoration.set(gaps.map(gap => gap.draw(this, this.heightOracle.lineWrapping)));
	        }
	    }
	    computeVisibleRanges() {
	        let deco = this.stateDeco;
	        if (this.lineGaps.length)
	            deco = deco.concat(this.lineGapDeco);
	        let ranges = [];
	        RangeSet.spans(deco, this.viewport.from, this.viewport.to, {
	            span(from, to) { ranges.push({ from, to }); },
	            point() { }
	        }, 20);
	        let changed = ranges.length != this.visibleRanges.length ||
	            this.visibleRanges.some((r, i) => r.from != ranges[i].from || r.to != ranges[i].to);
	        this.visibleRanges = ranges;
	        return changed ? 4 /* UpdateFlag.Viewport */ : 0;
	    }
	    lineBlockAt(pos) {
	        return (pos >= this.viewport.from && pos <= this.viewport.to && this.viewportLines.find(b => b.from <= pos && b.to >= pos)) ||
	            scaleBlock(this.heightMap.lineAt(pos, QueryType$1.ByPos, this.heightOracle, 0, 0), this.scaler);
	    }
	    lineBlockAtHeight(height) {
	        return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(height), QueryType$1.ByHeight, this.heightOracle, 0, 0), this.scaler);
	    }
	    scrollAnchorAt(scrollTop) {
	        let block = this.lineBlockAtHeight(scrollTop + 8);
	        return block.from >= this.viewport.from || this.viewportLines[0].top - scrollTop > 200 ? block : this.viewportLines[0];
	    }
	    elementAtHeight(height) {
	        return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(height), this.heightOracle, 0, 0), this.scaler);
	    }
	    get docHeight() {
	        return this.scaler.toDOM(this.heightMap.height);
	    }
	    get contentHeight() {
	        return this.docHeight + this.paddingTop + this.paddingBottom;
	    }
	}
	class Viewport {
	    constructor(from, to) {
	        this.from = from;
	        this.to = to;
	    }
	}
	function lineStructure(from, to, stateDeco) {
	    let ranges = [], pos = from, total = 0;
	    RangeSet.spans(stateDeco, from, to, {
	        span() { },
	        point(from, to) {
	            if (from > pos) {
	                ranges.push({ from: pos, to: from });
	                total += from - pos;
	            }
	            pos = to;
	        }
	    }, 20); // We're only interested in collapsed ranges of a significant size
	    if (pos < to) {
	        ranges.push({ from: pos, to });
	        total += to - pos;
	    }
	    return { total, ranges };
	}
	function findPosition({ total, ranges }, ratio) {
	    if (ratio <= 0)
	        return ranges[0].from;
	    if (ratio >= 1)
	        return ranges[ranges.length - 1].to;
	    let dist = Math.floor(total * ratio);
	    for (let i = 0;; i++) {
	        let { from, to } = ranges[i], size = to - from;
	        if (dist <= size)
	            return from + dist;
	        dist -= size;
	    }
	}
	function findFraction(structure, pos) {
	    let counted = 0;
	    for (let { from, to } of structure.ranges) {
	        if (pos <= to) {
	            counted += pos - from;
	            break;
	        }
	        counted += to - from;
	    }
	    return counted / structure.total;
	}
	function find(array, f) {
	    for (let val of array)
	        if (f(val))
	            return val;
	    return undefined;
	}
	// Don't scale when the document height is within the range of what
	// the DOM can handle.
	const IdScaler = {
	    toDOM(n) { return n; },
	    fromDOM(n) { return n; },
	    scale: 1
	};
	// When the height is too big (> VP.MaxDOMHeight), scale down the
	// regions outside the viewports so that the total height is
	// VP.MaxDOMHeight.
	class BigScaler {
	    constructor(oracle, heightMap, viewports) {
	        let vpHeight = 0, base = 0, domBase = 0;
	        this.viewports = viewports.map(({ from, to }) => {
	            let top = heightMap.lineAt(from, QueryType$1.ByPos, oracle, 0, 0).top;
	            let bottom = heightMap.lineAt(to, QueryType$1.ByPos, oracle, 0, 0).bottom;
	            vpHeight += bottom - top;
	            return { from, to, top, bottom, domTop: 0, domBottom: 0 };
	        });
	        this.scale = (7000000 /* VP.MaxDOMHeight */ - vpHeight) / (heightMap.height - vpHeight);
	        for (let obj of this.viewports) {
	            obj.domTop = domBase + (obj.top - base) * this.scale;
	            domBase = obj.domBottom = obj.domTop + (obj.bottom - obj.top);
	            base = obj.bottom;
	        }
	    }
	    toDOM(n) {
	        for (let i = 0, base = 0, domBase = 0;; i++) {
	            let vp = i < this.viewports.length ? this.viewports[i] : null;
	            if (!vp || n < vp.top)
	                return domBase + (n - base) * this.scale;
	            if (n <= vp.bottom)
	                return vp.domTop + (n - vp.top);
	            base = vp.bottom;
	            domBase = vp.domBottom;
	        }
	    }
	    fromDOM(n) {
	        for (let i = 0, base = 0, domBase = 0;; i++) {
	            let vp = i < this.viewports.length ? this.viewports[i] : null;
	            if (!vp || n < vp.domTop)
	                return base + (n - domBase) / this.scale;
	            if (n <= vp.domBottom)
	                return vp.top + (n - vp.domTop);
	            base = vp.bottom;
	            domBase = vp.domBottom;
	        }
	    }
	}
	function scaleBlock(block, scaler) {
	    if (scaler.scale == 1)
	        return block;
	    let bTop = scaler.toDOM(block.top), bBottom = scaler.toDOM(block.bottom);
	    return new BlockInfo(block.from, block.length, bTop, bBottom - bTop, Array.isArray(block._content) ? block._content.map(b => scaleBlock(b, scaler)) : block._content);
	}

	const theme = /*@__PURE__*/Facet.define({ combine: strs => strs.join(" ") });
	const darkTheme = /*@__PURE__*/Facet.define({ combine: values => values.indexOf(true) > -1 });
	const baseThemeID = /*@__PURE__*/StyleModule.newName(), baseLightID = /*@__PURE__*/StyleModule.newName(), baseDarkID = /*@__PURE__*/StyleModule.newName();
	const lightDarkIDs = { "&light": "." + baseLightID, "&dark": "." + baseDarkID };
	function buildTheme(main, spec, scopes) {
	    return new StyleModule(spec, {
	        finish(sel) {
	            return /&/.test(sel) ? sel.replace(/&\w*/, m => {
	                if (m == "&")
	                    return main;
	                if (!scopes || !scopes[m])
	                    throw new RangeError(`Unsupported selector: ${m}`);
	                return scopes[m];
	            }) : main + " " + sel;
	        }
	    });
	}
	const baseTheme$1$2 = /*@__PURE__*/buildTheme("." + baseThemeID, {
	    "&": {
	        position: "relative !important",
	        boxSizing: "border-box",
	        "&.cm-focused": {
	            // Provide a simple default outline to make sure a focused
	            // editor is visually distinct. Can't leave the default behavior
	            // because that will apply to the content element, which is
	            // inside the scrollable container and doesn't include the
	            // gutters. We also can't use an 'auto' outline, since those
	            // are, for some reason, drawn behind the element content, which
	            // will cause things like the active line background to cover
	            // the outline (#297).
	            outline: "1px dotted #212121"
	        },
	        display: "flex !important",
	        flexDirection: "column"
	    },
	    ".cm-scroller": {
	        display: "flex !important",
	        alignItems: "flex-start !important",
	        fontFamily: "monospace",
	        lineHeight: 1.4,
	        height: "100%",
	        overflowX: "auto",
	        position: "relative",
	        zIndex: 0
	    },
	    ".cm-content": {
	        margin: 0,
	        flexGrow: 2,
	        flexShrink: 0,
	        display: "block",
	        whiteSpace: "pre",
	        wordWrap: "normal", // https://github.com/codemirror/dev/issues/456
	        boxSizing: "border-box",
	        minHeight: "100%",
	        padding: "4px 0",
	        outline: "none",
	        "&[contenteditable=true]": {
	            WebkitUserModify: "read-write-plaintext-only",
	        }
	    },
	    ".cm-lineWrapping": {
	        whiteSpace_fallback: "pre-wrap", // For IE
	        whiteSpace: "break-spaces",
	        wordBreak: "break-word", // For Safari, which doesn't support overflow-wrap: anywhere
	        overflowWrap: "anywhere",
	        flexShrink: 1
	    },
	    "&light .cm-content": { caretColor: "black" },
	    "&dark .cm-content": { caretColor: "white" },
	    ".cm-line": {
	        display: "block",
	        padding: "0 2px 0 6px"
	    },
	    ".cm-layer": {
	        position: "absolute",
	        left: 0,
	        top: 0,
	        contain: "size style",
	        "& > *": {
	            position: "absolute"
	        }
	    },
	    "&light .cm-selectionBackground": {
	        background: "#d9d9d9"
	    },
	    "&dark .cm-selectionBackground": {
	        background: "#222"
	    },
	    "&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground": {
	        background: "#d7d4f0"
	    },
	    "&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground": {
	        background: "#233"
	    },
	    ".cm-cursorLayer": {
	        pointerEvents: "none"
	    },
	    "&.cm-focused > .cm-scroller > .cm-cursorLayer": {
	        animation: "steps(1) cm-blink 1.2s infinite"
	    },
	    // Two animations defined so that we can switch between them to
	    // restart the animation without forcing another style
	    // recomputation.
	    "@keyframes cm-blink": { "0%": {}, "50%": { opacity: 0 }, "100%": {} },
	    "@keyframes cm-blink2": { "0%": {}, "50%": { opacity: 0 }, "100%": {} },
	    ".cm-cursor, .cm-dropCursor": {
	        borderLeft: "1.2px solid black",
	        marginLeft: "-0.6px",
	        pointerEvents: "none",
	    },
	    ".cm-cursor": {
	        display: "none"
	    },
	    "&dark .cm-cursor": {
	        borderLeftColor: "#444"
	    },
	    ".cm-dropCursor": {
	        position: "absolute"
	    },
	    "&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor": {
	        display: "block"
	    },
	    ".cm-iso": {
	        unicodeBidi: "isolate"
	    },
	    ".cm-announced": {
	        position: "fixed",
	        top: "-10000px"
	    },
	    "@media print": {
	        ".cm-announced": { display: "none" }
	    },
	    "&light .cm-activeLine": { backgroundColor: "#cceeff44" },
	    "&dark .cm-activeLine": { backgroundColor: "#99eeff33" },
	    "&light .cm-specialChar": { color: "red" },
	    "&dark .cm-specialChar": { color: "#f78" },
	    ".cm-gutters": {
	        flexShrink: 0,
	        display: "flex",
	        height: "100%",
	        boxSizing: "border-box",
	        insetInlineStart: 0,
	        zIndex: 200
	    },
	    "&light .cm-gutters": {
	        backgroundColor: "#f5f5f5",
	        color: "#6c6c6c",
	        borderRight: "1px solid #ddd"
	    },
	    "&dark .cm-gutters": {
	        backgroundColor: "#333338",
	        color: "#ccc"
	    },
	    ".cm-gutter": {
	        display: "flex !important", // Necessary -- prevents margin collapsing
	        flexDirection: "column",
	        flexShrink: 0,
	        boxSizing: "border-box",
	        minHeight: "100%",
	        overflow: "hidden"
	    },
	    ".cm-gutterElement": {
	        boxSizing: "border-box"
	    },
	    ".cm-lineNumbers .cm-gutterElement": {
	        padding: "0 3px 0 5px",
	        minWidth: "20px",
	        textAlign: "right",
	        whiteSpace: "nowrap"
	    },
	    "&light .cm-activeLineGutter": {
	        backgroundColor: "#e2f2ff"
	    },
	    "&dark .cm-activeLineGutter": {
	        backgroundColor: "#222227"
	    },
	    ".cm-panels": {
	        boxSizing: "border-box",
	        position: "sticky",
	        left: 0,
	        right: 0
	    },
	    "&light .cm-panels": {
	        backgroundColor: "#f5f5f5",
	        color: "black"
	    },
	    "&light .cm-panels-top": {
	        borderBottom: "1px solid #ddd"
	    },
	    "&light .cm-panels-bottom": {
	        borderTop: "1px solid #ddd"
	    },
	    "&dark .cm-panels": {
	        backgroundColor: "#333338",
	        color: "white"
	    },
	    ".cm-tab": {
	        display: "inline-block",
	        overflow: "hidden",
	        verticalAlign: "bottom"
	    },
	    ".cm-widgetBuffer": {
	        verticalAlign: "text-top",
	        height: "1em",
	        width: 0,
	        display: "inline"
	    },
	    ".cm-placeholder": {
	        color: "#888",
	        display: "inline-block",
	        verticalAlign: "top",
	    },
	    ".cm-highlightSpace:before": {
	        content: "attr(data-display)",
	        position: "absolute",
	        pointerEvents: "none",
	        color: "#888"
	    },
	    ".cm-highlightTab": {
	        backgroundImage: `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,
	        backgroundSize: "auto 100%",
	        backgroundPosition: "right 90%",
	        backgroundRepeat: "no-repeat"
	    },
	    ".cm-trailingSpace": {
	        backgroundColor: "#ff332255"
	    },
	    ".cm-button": {
	        verticalAlign: "middle",
	        color: "inherit",
	        fontSize: "70%",
	        padding: ".2em 1em",
	        borderRadius: "1px"
	    },
	    "&light .cm-button": {
	        backgroundImage: "linear-gradient(#eff1f5, #d9d9df)",
	        border: "1px solid #888",
	        "&:active": {
	            backgroundImage: "linear-gradient(#b4b4b4, #d0d3d6)"
	        }
	    },
	    "&dark .cm-button": {
	        backgroundImage: "linear-gradient(#393939, #111)",
	        border: "1px solid #888",
	        "&:active": {
	            backgroundImage: "linear-gradient(#111, #333)"
	        }
	    },
	    ".cm-textfield": {
	        verticalAlign: "middle",
	        color: "inherit",
	        fontSize: "70%",
	        border: "1px solid silver",
	        padding: ".2em .5em"
	    },
	    "&light .cm-textfield": {
	        backgroundColor: "white"
	    },
	    "&dark .cm-textfield": {
	        border: "1px solid #555",
	        backgroundColor: "inherit"
	    }
	}, lightDarkIDs);

	const LineBreakPlaceholder = "\uffff";
	class DOMReader {
	    constructor(points, state) {
	        this.points = points;
	        this.text = "";
	        this.lineSeparator = state.facet(EditorState.lineSeparator);
	    }
	    append(text) {
	        this.text += text;
	    }
	    lineBreak() {
	        this.text += LineBreakPlaceholder;
	    }
	    readRange(start, end) {
	        if (!start)
	            return this;
	        let parent = start.parentNode;
	        for (let cur = start;;) {
	            this.findPointBefore(parent, cur);
	            let oldLen = this.text.length;
	            this.readNode(cur);
	            let next = cur.nextSibling;
	            if (next == end)
	                break;
	            let view = ContentView.get(cur), nextView = ContentView.get(next);
	            if (view && nextView ? view.breakAfter :
	                (view ? view.breakAfter : isBlockElement(cur)) ||
	                    (isBlockElement(next) && (cur.nodeName != "BR" || cur.cmIgnore) && this.text.length > oldLen))
	                this.lineBreak();
	            cur = next;
	        }
	        this.findPointBefore(parent, end);
	        return this;
	    }
	    readTextNode(node) {
	        let text = node.nodeValue;
	        for (let point of this.points)
	            if (point.node == node)
	                point.pos = this.text.length + Math.min(point.offset, text.length);
	        for (let off = 0, re = this.lineSeparator ? null : /\r\n?|\n/g;;) {
	            let nextBreak = -1, breakSize = 1, m;
	            if (this.lineSeparator) {
	                nextBreak = text.indexOf(this.lineSeparator, off);
	                breakSize = this.lineSeparator.length;
	            }
	            else if (m = re.exec(text)) {
	                nextBreak = m.index;
	                breakSize = m[0].length;
	            }
	            this.append(text.slice(off, nextBreak < 0 ? text.length : nextBreak));
	            if (nextBreak < 0)
	                break;
	            this.lineBreak();
	            if (breakSize > 1)
	                for (let point of this.points)
	                    if (point.node == node && point.pos > this.text.length)
	                        point.pos -= breakSize - 1;
	            off = nextBreak + breakSize;
	        }
	    }
	    readNode(node) {
	        if (node.cmIgnore)
	            return;
	        let view = ContentView.get(node);
	        let fromView = view && view.overrideDOMText;
	        if (fromView != null) {
	            this.findPointInside(node, fromView.length);
	            for (let i = fromView.iter(); !i.next().done;) {
	                if (i.lineBreak)
	                    this.lineBreak();
	                else
	                    this.append(i.value);
	            }
	        }
	        else if (node.nodeType == 3) {
	            this.readTextNode(node);
	        }
	        else if (node.nodeName == "BR") {
	            if (node.nextSibling)
	                this.lineBreak();
	        }
	        else if (node.nodeType == 1) {
	            this.readRange(node.firstChild, null);
	        }
	    }
	    findPointBefore(node, next) {
	        for (let point of this.points)
	            if (point.node == node && node.childNodes[point.offset] == next)
	                point.pos = this.text.length;
	    }
	    findPointInside(node, length) {
	        for (let point of this.points)
	            if (node.nodeType == 3 ? point.node == node : node.contains(point.node))
	                point.pos = this.text.length + (isAtEnd(node, point.node, point.offset) ? length : 0);
	    }
	}
	function isAtEnd(parent, node, offset) {
	    for (;;) {
	        if (!node || offset < maxOffset(node))
	            return false;
	        if (node == parent)
	            return true;
	        offset = domIndex(node) + 1;
	        node = node.parentNode;
	    }
	}
	function isBlockElement(node) {
	    return node.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(node.nodeName);
	}
	class DOMPoint {
	    constructor(node, offset) {
	        this.node = node;
	        this.offset = offset;
	        this.pos = -1;
	    }
	}

	class DOMChange {
	    constructor(view, start, end, typeOver) {
	        this.typeOver = typeOver;
	        this.bounds = null;
	        this.text = "";
	        let { impreciseHead: iHead, impreciseAnchor: iAnchor } = view.docView;
	        if (view.state.readOnly && start > -1) {
	            // Ignore changes when the editor is read-only
	            this.newSel = null;
	        }
	        else if (start > -1 && (this.bounds = view.docView.domBoundsAround(start, end, 0))) {
	            let selPoints = iHead || iAnchor ? [] : selectionPoints(view);
	            let reader = new DOMReader(selPoints, view.state);
	            reader.readRange(this.bounds.startDOM, this.bounds.endDOM);
	            this.text = reader.text;
	            this.newSel = selectionFromPoints(selPoints, this.bounds.from);
	        }
	        else {
	            let domSel = view.observer.selectionRange;
	            let head = iHead && iHead.node == domSel.focusNode && iHead.offset == domSel.focusOffset ||
	                !contains$1(view.contentDOM, domSel.focusNode)
	                ? view.state.selection.main.head
	                : view.docView.posFromDOM(domSel.focusNode, domSel.focusOffset);
	            let anchor = iAnchor && iAnchor.node == domSel.anchorNode && iAnchor.offset == domSel.anchorOffset ||
	                !contains$1(view.contentDOM, domSel.anchorNode)
	                ? view.state.selection.main.anchor
	                : view.docView.posFromDOM(domSel.anchorNode, domSel.anchorOffset);
	            // iOS will refuse to select the block gaps when doing
	            // select-all.
	            // Chrome will put the selection *inside* them, confusing
	            // posFromDOM
	            let vp = view.viewport;
	            if ((browser.ios || browser.chrome) && view.state.selection.main.empty && head != anchor &&
	                (vp.from > 0 || vp.to < view.state.doc.length)) {
	                let from = Math.min(head, anchor), to = Math.max(head, anchor);
	                let offFrom = vp.from - from, offTo = vp.to - to;
	                if ((offFrom == 0 || offFrom == 1 || from == 0) && (offTo == 0 || offTo == -1 || to == view.state.doc.length)) {
	                    head = 0;
	                    anchor = view.state.doc.length;
	                }
	            }
	            this.newSel = EditorSelection.single(anchor, head);
	        }
	    }
	}
	function applyDOMChange(view, domChange) {
	    let change;
	    let { newSel } = domChange, sel = view.state.selection.main;
	    let lastKey = view.inputState.lastKeyTime > Date.now() - 100 ? view.inputState.lastKeyCode : -1;
	    if (domChange.bounds) {
	        let { from, to } = domChange.bounds;
	        let preferredPos = sel.from, preferredSide = null;
	        // Prefer anchoring to end when Backspace is pressed (or, on
	        // Android, when something was deleted)
	        if (lastKey === 8 || browser.android && domChange.text.length < to - from) {
	            preferredPos = sel.to;
	            preferredSide = "end";
	        }
	        let diff = findDiff(view.state.doc.sliceString(from, to, LineBreakPlaceholder), domChange.text, preferredPos - from, preferredSide);
	        if (diff) {
	            // Chrome inserts two newlines when pressing shift-enter at the
	            // end of a line. DomChange drops one of those.
	            if (browser.chrome && lastKey == 13 &&
	                diff.toB == diff.from + 2 && domChange.text.slice(diff.from, diff.toB) == LineBreakPlaceholder + LineBreakPlaceholder)
	                diff.toB--;
	            change = { from: from + diff.from, to: from + diff.toA,
	                insert: Text$1.of(domChange.text.slice(diff.from, diff.toB).split(LineBreakPlaceholder)) };
	        }
	    }
	    else if (newSel && (!view.hasFocus && view.state.facet(editable) || newSel.main.eq(sel))) {
	        newSel = null;
	    }
	    if (!change && !newSel)
	        return false;
	    if (!change && domChange.typeOver && !sel.empty && newSel && newSel.main.empty) {
	        // Heuristic to notice typing over a selected character
	        change = { from: sel.from, to: sel.to, insert: view.state.doc.slice(sel.from, sel.to) };
	    }
	    else if (change && change.from >= sel.from && change.to <= sel.to &&
	        (change.from != sel.from || change.to != sel.to) &&
	        (sel.to - sel.from) - (change.to - change.from) <= 4) {
	        // If the change is inside the selection and covers most of it,
	        // assume it is a selection replace (with identical characters at
	        // the start/end not included in the diff)
	        change = {
	            from: sel.from, to: sel.to,
	            insert: view.state.doc.slice(sel.from, change.from).append(change.insert).append(view.state.doc.slice(change.to, sel.to))
	        };
	    }
	    else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 &&
	        /^\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute("autocorrect") == "off") {
	        // Detect insert-period-on-double-space Mac and Android behavior,
	        // and transform it into a regular space insert.
	        if (newSel && change.insert.length == 2)
	            newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
	        change = { from: sel.from, to: sel.to, insert: Text$1.of([" "]) };
	    }
	    else if (browser.chrome && change && change.from == change.to && change.from == sel.head &&
	        change.insert.toString() == "\n " && view.lineWrapping) {
	        // In Chrome, if you insert a space at the start of a wrapped
	        // line, it will actually insert a newline and a space, causing a
	        // bogus new line to be created in CodeMirror (#968)
	        if (newSel)
	            newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
	        change = { from: sel.from, to: sel.to, insert: Text$1.of([" "]) };
	    }
	    if (change) {
	        if (browser.ios && view.inputState.flushIOSKey(change))
	            return true;
	        // Android browsers don't fire reasonable key events for enter,
	        // backspace, or delete. So this detects changes that look like
	        // they're caused by those keys, and reinterprets them as key
	        // events. (Some of these keys are also handled by beforeinput
	        // events and the pendingAndroidKey mechanism, but that's not
	        // reliable in all situations.)
	        if (browser.android &&
	            ((change.to == sel.to &&
	                // GBoard will sometimes remove a space it just inserted
	                // after a completion when you press enter
	                (change.from == sel.from || change.from == sel.from - 1 && view.state.sliceDoc(change.from, sel.from) == " ") &&
	                change.insert.length == 1 && change.insert.lines == 2 &&
	                dispatchKey(view.contentDOM, "Enter", 13)) ||
	                ((change.from == sel.from - 1 && change.to == sel.to && change.insert.length == 0 ||
	                    lastKey == 8 && change.insert.length < change.to - change.from && change.to > sel.head) &&
	                    dispatchKey(view.contentDOM, "Backspace", 8)) ||
	                (change.from == sel.from && change.to == sel.to + 1 && change.insert.length == 0 &&
	                    dispatchKey(view.contentDOM, "Delete", 46))))
	            return true;
	        let text = change.insert.toString();
	        if (view.inputState.composing >= 0)
	            view.inputState.composing++;
	        let defaultTr;
	        let defaultInsert = () => defaultTr || (defaultTr = applyDefaultInsert(view, change, newSel));
	        if (!view.state.facet(inputHandler$1).some(h => h(view, change.from, change.to, text, defaultInsert)))
	            view.dispatch(defaultInsert());
	        return true;
	    }
	    else if (newSel && !newSel.main.eq(sel)) {
	        let scrollIntoView = false, userEvent = "select";
	        if (view.inputState.lastSelectionTime > Date.now() - 50) {
	            if (view.inputState.lastSelectionOrigin == "select")
	                scrollIntoView = true;
	            userEvent = view.inputState.lastSelectionOrigin;
	        }
	        view.dispatch({ selection: newSel, scrollIntoView, userEvent });
	        return true;
	    }
	    else {
	        return false;
	    }
	}
	function applyDefaultInsert(view, change, newSel) {
	    let tr, startState = view.state, sel = startState.selection.main;
	    if (change.from >= sel.from && change.to <= sel.to && change.to - change.from >= (sel.to - sel.from) / 3 &&
	        (!newSel || newSel.main.empty && newSel.main.from == change.from + change.insert.length) &&
	        view.inputState.composing < 0) {
	        let before = sel.from < change.from ? startState.sliceDoc(sel.from, change.from) : "";
	        let after = sel.to > change.to ? startState.sliceDoc(change.to, sel.to) : "";
	        tr = startState.replaceSelection(view.state.toText(before + change.insert.sliceString(0, undefined, view.state.lineBreak) + after));
	    }
	    else {
	        let changes = startState.changes(change);
	        let mainSel = newSel && newSel.main.to <= changes.newLength ? newSel.main : undefined;
	        // Try to apply a composition change to all cursors
	        if (startState.selection.ranges.length > 1 && view.inputState.composing >= 0 &&
	            change.to <= sel.to && change.to >= sel.to - 10) {
	            let replaced = view.state.sliceDoc(change.from, change.to);
	            let compositionRange, composition = newSel && findCompositionNode(view, newSel.main.head);
	            if (composition) {
	                let dLen = change.insert.length - (change.to - change.from);
	                compositionRange = { from: composition.from, to: composition.to - dLen };
	            }
	            else {
	                compositionRange = view.state.doc.lineAt(sel.head);
	            }
	            let offset = sel.to - change.to, size = sel.to - sel.from;
	            tr = startState.changeByRange(range => {
	                if (range.from == sel.from && range.to == sel.to)
	                    return { changes, range: mainSel || range.map(changes) };
	                let to = range.to - offset, from = to - replaced.length;
	                if (range.to - range.from != size || view.state.sliceDoc(from, to) != replaced ||
	                    // Unfortunately, there's no way to make multiple
	                    // changes in the same node work without aborting
	                    // composition, so cursors in the composition range are
	                    // ignored.
	                    range.to >= compositionRange.from && range.from <= compositionRange.to)
	                    return { range };
	                let rangeChanges = startState.changes({ from, to, insert: change.insert }), selOff = range.to - sel.to;
	                return {
	                    changes: rangeChanges,
	                    range: !mainSel ? range.map(rangeChanges) :
	                        EditorSelection.range(Math.max(0, mainSel.anchor + selOff), Math.max(0, mainSel.head + selOff))
	                };
	            });
	        }
	        else {
	            tr = {
	                changes,
	                selection: mainSel && startState.selection.replaceRange(mainSel)
	            };
	        }
	    }
	    let userEvent = "input.type";
	    if (view.composing ||
	        view.inputState.compositionPendingChange && view.inputState.compositionEndedAt > Date.now() - 50) {
	        view.inputState.compositionPendingChange = false;
	        userEvent += ".compose";
	        if (view.inputState.compositionFirstChange) {
	            userEvent += ".start";
	            view.inputState.compositionFirstChange = false;
	        }
	    }
	    return startState.update(tr, { userEvent, scrollIntoView: true });
	}
	function findDiff(a, b, preferredPos, preferredSide) {
	    let minLen = Math.min(a.length, b.length);
	    let from = 0;
	    while (from < minLen && a.charCodeAt(from) == b.charCodeAt(from))
	        from++;
	    if (from == minLen && a.length == b.length)
	        return null;
	    let toA = a.length, toB = b.length;
	    while (toA > 0 && toB > 0 && a.charCodeAt(toA - 1) == b.charCodeAt(toB - 1)) {
	        toA--;
	        toB--;
	    }
	    if (preferredSide == "end") {
	        let adjust = Math.max(0, from - Math.min(toA, toB));
	        preferredPos -= toA + adjust - from;
	    }
	    if (toA < from && a.length < b.length) {
	        let move = preferredPos <= from && preferredPos >= toA ? from - preferredPos : 0;
	        from -= move;
	        toB = from + (toB - toA);
	        toA = from;
	    }
	    else if (toB < from) {
	        let move = preferredPos <= from && preferredPos >= toB ? from - preferredPos : 0;
	        from -= move;
	        toA = from + (toA - toB);
	        toB = from;
	    }
	    return { from, toA, toB };
	}
	function selectionPoints(view) {
	    let result = [];
	    if (view.root.activeElement != view.contentDOM)
	        return result;
	    let { anchorNode, anchorOffset, focusNode, focusOffset } = view.observer.selectionRange;
	    if (anchorNode) {
	        result.push(new DOMPoint(anchorNode, anchorOffset));
	        if (focusNode != anchorNode || focusOffset != anchorOffset)
	            result.push(new DOMPoint(focusNode, focusOffset));
	    }
	    return result;
	}
	function selectionFromPoints(points, base) {
	    if (points.length == 0)
	        return null;
	    let anchor = points[0].pos, head = points.length == 2 ? points[1].pos : anchor;
	    return anchor > -1 && head > -1 ? EditorSelection.single(anchor + base, head + base) : null;
	}

	const observeOptions = {
	    childList: true,
	    characterData: true,
	    subtree: true,
	    attributes: true,
	    characterDataOldValue: true
	};
	// IE11 has very broken mutation observers, so we also listen to
	// DOMCharacterDataModified there
	const useCharData = browser.ie && browser.ie_version <= 11;
	class DOMObserver {
	    constructor(view) {
	        this.view = view;
	        this.active = false;
	        // The known selection. Kept in our own object, as opposed to just
	        // directly accessing the selection because:
	        //  - Safari doesn't report the right selection in shadow DOM
	        //  - Reading from the selection forces a DOM layout
	        //  - This way, we can ignore selectionchange events if we have
	        //    already seen the 'new' selection
	        this.selectionRange = new DOMSelectionState;
	        // Set when a selection change is detected, cleared on flush
	        this.selectionChanged = false;
	        this.delayedFlush = -1;
	        this.resizeTimeout = -1;
	        this.queue = [];
	        this.delayedAndroidKey = null;
	        this.flushingAndroidKey = -1;
	        this.lastChange = 0;
	        this.scrollTargets = [];
	        this.intersection = null;
	        this.resizeScroll = null;
	        this.intersecting = false;
	        this.gapIntersection = null;
	        this.gaps = [];
	        this.printQuery = null;
	        // Timeout for scheduling check of the parents that need scroll handlers
	        this.parentCheck = -1;
	        this.dom = view.contentDOM;
	        this.observer = new MutationObserver(mutations => {
	            for (let mut of mutations)
	                this.queue.push(mut);
	            // IE11 will sometimes (on typing over a selection or
	            // backspacing out a single character text node) call the
	            // observer callback before actually updating the DOM.
	            //
	            // Unrelatedly, iOS Safari will, when ending a composition,
	            // sometimes first clear it, deliver the mutations, and then
	            // reinsert the finished text. CodeMirror's handling of the
	            // deletion will prevent the reinsertion from happening,
	            // breaking composition.
	            if ((browser.ie && browser.ie_version <= 11 || browser.ios && view.composing) &&
	                mutations.some(m => m.type == "childList" && m.removedNodes.length ||
	                    m.type == "characterData" && m.oldValue.length > m.target.nodeValue.length))
	                this.flushSoon();
	            else
	                this.flush();
	        });
	        if (useCharData)
	            this.onCharData = (event) => {
	                this.queue.push({ target: event.target,
	                    type: "characterData",
	                    oldValue: event.prevValue });
	                this.flushSoon();
	            };
	        this.onSelectionChange = this.onSelectionChange.bind(this);
	        this.onResize = this.onResize.bind(this);
	        this.onPrint = this.onPrint.bind(this);
	        this.onScroll = this.onScroll.bind(this);
	        if (window.matchMedia)
	            this.printQuery = window.matchMedia("print");
	        if (typeof ResizeObserver == "function") {
	            this.resizeScroll = new ResizeObserver(() => {
	                var _a;
	                if (((_a = this.view.docView) === null || _a === void 0 ? void 0 : _a.lastUpdate) < Date.now() - 75)
	                    this.onResize();
	            });
	            this.resizeScroll.observe(view.scrollDOM);
	        }
	        this.addWindowListeners(this.win = view.win);
	        this.start();
	        if (typeof IntersectionObserver == "function") {
	            this.intersection = new IntersectionObserver(entries => {
	                if (this.parentCheck < 0)
	                    this.parentCheck = setTimeout(this.listenForScroll.bind(this), 1000);
	                if (entries.length > 0 && (entries[entries.length - 1].intersectionRatio > 0) != this.intersecting) {
	                    this.intersecting = !this.intersecting;
	                    if (this.intersecting != this.view.inView)
	                        this.onScrollChanged(document.createEvent("Event"));
	                }
	            }, { threshold: [0, .001] });
	            this.intersection.observe(this.dom);
	            this.gapIntersection = new IntersectionObserver(entries => {
	                if (entries.length > 0 && entries[entries.length - 1].intersectionRatio > 0)
	                    this.onScrollChanged(document.createEvent("Event"));
	            }, {});
	        }
	        this.listenForScroll();
	        this.readSelectionRange();
	    }
	    onScrollChanged(e) {
	        this.view.inputState.runHandlers("scroll", e);
	        if (this.intersecting)
	            this.view.measure();
	    }
	    onScroll(e) {
	        if (this.intersecting)
	            this.flush(false);
	        this.onScrollChanged(e);
	    }
	    onResize() {
	        if (this.resizeTimeout < 0)
	            this.resizeTimeout = setTimeout(() => {
	                this.resizeTimeout = -1;
	                this.view.requestMeasure();
	            }, 50);
	    }
	    onPrint(event) {
	        if (event.type == "change" && !event.matches)
	            return;
	        this.view.viewState.printing = true;
	        this.view.measure();
	        setTimeout(() => {
	            this.view.viewState.printing = false;
	            this.view.requestMeasure();
	        }, 500);
	    }
	    updateGaps(gaps) {
	        if (this.gapIntersection && (gaps.length != this.gaps.length || this.gaps.some((g, i) => g != gaps[i]))) {
	            this.gapIntersection.disconnect();
	            for (let gap of gaps)
	                this.gapIntersection.observe(gap);
	            this.gaps = gaps;
	        }
	    }
	    onSelectionChange(event) {
	        let wasChanged = this.selectionChanged;
	        if (!this.readSelectionRange() || this.delayedAndroidKey)
	            return;
	        let { view } = this, sel = this.selectionRange;
	        if (view.state.facet(editable) ? view.root.activeElement != this.dom : !hasSelection(view.dom, sel))
	            return;
	        let context = sel.anchorNode && view.docView.nearest(sel.anchorNode);
	        if (context && context.ignoreEvent(event)) {
	            if (!wasChanged)
	                this.selectionChanged = false;
	            return;
	        }
	        // Deletions on IE11 fire their events in the wrong order, giving
	        // us a selection change event before the DOM changes are
	        // reported.
	        // Chrome Android has a similar issue when backspacing out a
	        // selection (#645).
	        if ((browser.ie && browser.ie_version <= 11 || browser.android && browser.chrome) && !view.state.selection.main.empty &&
	            // (Selection.isCollapsed isn't reliable on IE)
	            sel.focusNode && isEquivalentPosition(sel.focusNode, sel.focusOffset, sel.anchorNode, sel.anchorOffset))
	            this.flushSoon();
	        else
	            this.flush(false);
	    }
	    readSelectionRange() {
	        let { view } = this;
	        // The Selection object is broken in shadow roots in Safari. See
	        // https://github.com/codemirror/dev/issues/414
	        let range = browser.safari && view.root.nodeType == 11 &&
	            deepActiveElement(this.dom.ownerDocument) == this.dom &&
	            safariSelectionRangeHack(this.view) || getSelection(view.root);
	        if (!range || this.selectionRange.eq(range))
	            return false;
	        let local = hasSelection(this.dom, range);
	        // Detect the situation where the browser has, on focus, moved the
	        // selection to the start of the content element. Reset it to the
	        // position from the editor state.
	        if (local && !this.selectionChanged &&
	            view.inputState.lastFocusTime > Date.now() - 200 &&
	            view.inputState.lastTouchTime < Date.now() - 300 &&
	            atElementStart(this.dom, range)) {
	            this.view.inputState.lastFocusTime = 0;
	            view.docView.updateSelection();
	            return false;
	        }
	        this.selectionRange.setRange(range);
	        if (local)
	            this.selectionChanged = true;
	        return true;
	    }
	    setSelectionRange(anchor, head) {
	        this.selectionRange.set(anchor.node, anchor.offset, head.node, head.offset);
	        this.selectionChanged = false;
	    }
	    clearSelectionRange() {
	        this.selectionRange.set(null, 0, null, 0);
	    }
	    listenForScroll() {
	        this.parentCheck = -1;
	        let i = 0, changed = null;
	        for (let dom = this.dom; dom;) {
	            if (dom.nodeType == 1) {
	                if (!changed && i < this.scrollTargets.length && this.scrollTargets[i] == dom)
	                    i++;
	                else if (!changed)
	                    changed = this.scrollTargets.slice(0, i);
	                if (changed)
	                    changed.push(dom);
	                dom = dom.assignedSlot || dom.parentNode;
	            }
	            else if (dom.nodeType == 11) { // Shadow root
	                dom = dom.host;
	            }
	            else {
	                break;
	            }
	        }
	        if (i < this.scrollTargets.length && !changed)
	            changed = this.scrollTargets.slice(0, i);
	        if (changed) {
	            for (let dom of this.scrollTargets)
	                dom.removeEventListener("scroll", this.onScroll);
	            for (let dom of this.scrollTargets = changed)
	                dom.addEventListener("scroll", this.onScroll);
	        }
	    }
	    ignore(f) {
	        if (!this.active)
	            return f();
	        try {
	            this.stop();
	            return f();
	        }
	        finally {
	            this.start();
	            this.clear();
	        }
	    }
	    start() {
	        if (this.active)
	            return;
	        this.observer.observe(this.dom, observeOptions);
	        if (useCharData)
	            this.dom.addEventListener("DOMCharacterDataModified", this.onCharData);
	        this.active = true;
	    }
	    stop() {
	        if (!this.active)
	            return;
	        this.active = false;
	        this.observer.disconnect();
	        if (useCharData)
	            this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData);
	    }
	    // Throw away any pending changes
	    clear() {
	        this.processRecords();
	        this.queue.length = 0;
	        this.selectionChanged = false;
	    }
	    // Chrome Android, especially in combination with GBoard, not only
	    // doesn't reliably fire regular key events, but also often
	    // surrounds the effect of enter or backspace with a bunch of
	    // composition events that, when interrupted, cause text duplication
	    // or other kinds of corruption. This hack makes the editor back off
	    // from handling DOM changes for a moment when such a key is
	    // detected (via beforeinput or keydown), and then tries to flush
	    // them or, if that has no effect, dispatches the given key.
	    delayAndroidKey(key, keyCode) {
	        var _a;
	        if (!this.delayedAndroidKey) {
	            let flush = () => {
	                let key = this.delayedAndroidKey;
	                if (key) {
	                    this.clearDelayedAndroidKey();
	                    this.view.inputState.lastKeyCode = key.keyCode;
	                    this.view.inputState.lastKeyTime = Date.now();
	                    let flushed = this.flush();
	                    if (!flushed && key.force)
	                        dispatchKey(this.dom, key.key, key.keyCode);
	                }
	            };
	            this.flushingAndroidKey = this.view.win.requestAnimationFrame(flush);
	        }
	        // Since backspace beforeinput is sometimes signalled spuriously,
	        // Enter always takes precedence.
	        if (!this.delayedAndroidKey || key == "Enter")
	            this.delayedAndroidKey = {
	                key, keyCode,
	                // Only run the key handler when no changes are detected if
	                // this isn't coming right after another change, in which case
	                // it is probably part of a weird chain of updates, and should
	                // be ignored if it returns the DOM to its previous state.
	                force: this.lastChange < Date.now() - 50 || !!((_a = this.delayedAndroidKey) === null || _a === void 0 ? void 0 : _a.force)
	            };
	    }
	    clearDelayedAndroidKey() {
	        this.win.cancelAnimationFrame(this.flushingAndroidKey);
	        this.delayedAndroidKey = null;
	        this.flushingAndroidKey = -1;
	    }
	    flushSoon() {
	        if (this.delayedFlush < 0)
	            this.delayedFlush = this.view.win.requestAnimationFrame(() => { this.delayedFlush = -1; this.flush(); });
	    }
	    forceFlush() {
	        if (this.delayedFlush >= 0) {
	            this.view.win.cancelAnimationFrame(this.delayedFlush);
	            this.delayedFlush = -1;
	        }
	        this.flush();
	    }
	    pendingRecords() {
	        for (let mut of this.observer.takeRecords())
	            this.queue.push(mut);
	        return this.queue;
	    }
	    processRecords() {
	        let records = this.pendingRecords();
	        if (records.length)
	            this.queue = [];
	        let from = -1, to = -1, typeOver = false;
	        for (let record of records) {
	            let range = this.readMutation(record);
	            if (!range)
	                continue;
	            if (range.typeOver)
	                typeOver = true;
	            if (from == -1) {
	                ({ from, to } = range);
	            }
	            else {
	                from = Math.min(range.from, from);
	                to = Math.max(range.to, to);
	            }
	        }
	        return { from, to, typeOver };
	    }
	    readChange() {
	        let { from, to, typeOver } = this.processRecords();
	        let newSel = this.selectionChanged && hasSelection(this.dom, this.selectionRange);
	        if (from < 0 && !newSel)
	            return null;
	        if (from > -1)
	            this.lastChange = Date.now();
	        this.view.inputState.lastFocusTime = 0;
	        this.selectionChanged = false;
	        let change = new DOMChange(this.view, from, to, typeOver);
	        this.view.docView.domChanged = { newSel: change.newSel ? change.newSel.main : null };
	        return change;
	    }
	    // Apply pending changes, if any
	    flush(readSelection = true) {
	        // Completely hold off flushing when pending keys are set—the code
	        // managing those will make sure processRecords is called and the
	        // view is resynchronized after
	        if (this.delayedFlush >= 0 || this.delayedAndroidKey)
	            return false;
	        if (readSelection)
	            this.readSelectionRange();
	        let domChange = this.readChange();
	        if (!domChange) {
	            this.view.requestMeasure();
	            return false;
	        }
	        let startState = this.view.state;
	        let handled = applyDOMChange(this.view, domChange);
	        // The view wasn't updated
	        if (this.view.state == startState)
	            this.view.update([]);
	        return handled;
	    }
	    readMutation(rec) {
	        let cView = this.view.docView.nearest(rec.target);
	        if (!cView || cView.ignoreMutation(rec))
	            return null;
	        cView.markDirty(rec.type == "attributes");
	        if (rec.type == "attributes")
	            cView.flags |= 4 /* ViewFlag.AttrsDirty */;
	        if (rec.type == "childList") {
	            let childBefore = findChild(cView, rec.previousSibling || rec.target.previousSibling, -1);
	            let childAfter = findChild(cView, rec.nextSibling || rec.target.nextSibling, 1);
	            return { from: childBefore ? cView.posAfter(childBefore) : cView.posAtStart,
	                to: childAfter ? cView.posBefore(childAfter) : cView.posAtEnd, typeOver: false };
	        }
	        else if (rec.type == "characterData") {
	            return { from: cView.posAtStart, to: cView.posAtEnd, typeOver: rec.target.nodeValue == rec.oldValue };
	        }
	        else {
	            return null;
	        }
	    }
	    setWindow(win) {
	        if (win != this.win) {
	            this.removeWindowListeners(this.win);
	            this.win = win;
	            this.addWindowListeners(this.win);
	        }
	    }
	    addWindowListeners(win) {
	        win.addEventListener("resize", this.onResize);
	        if (this.printQuery)
	            this.printQuery.addEventListener("change", this.onPrint);
	        else
	            win.addEventListener("beforeprint", this.onPrint);
	        win.addEventListener("scroll", this.onScroll);
	        win.document.addEventListener("selectionchange", this.onSelectionChange);
	    }
	    removeWindowListeners(win) {
	        win.removeEventListener("scroll", this.onScroll);
	        win.removeEventListener("resize", this.onResize);
	        if (this.printQuery)
	            this.printQuery.removeEventListener("change", this.onPrint);
	        else
	            win.removeEventListener("beforeprint", this.onPrint);
	        win.document.removeEventListener("selectionchange", this.onSelectionChange);
	    }
	    destroy() {
	        var _a, _b, _c;
	        this.stop();
	        (_a = this.intersection) === null || _a === void 0 ? void 0 : _a.disconnect();
	        (_b = this.gapIntersection) === null || _b === void 0 ? void 0 : _b.disconnect();
	        (_c = this.resizeScroll) === null || _c === void 0 ? void 0 : _c.disconnect();
	        for (let dom of this.scrollTargets)
	            dom.removeEventListener("scroll", this.onScroll);
	        this.removeWindowListeners(this.win);
	        clearTimeout(this.parentCheck);
	        clearTimeout(this.resizeTimeout);
	        this.win.cancelAnimationFrame(this.delayedFlush);
	        this.win.cancelAnimationFrame(this.flushingAndroidKey);
	    }
	}
	function findChild(cView, dom, dir) {
	    while (dom) {
	        let curView = ContentView.get(dom);
	        if (curView && curView.parent == cView)
	            return curView;
	        let parent = dom.parentNode;
	        dom = parent != cView.dom ? parent : dir > 0 ? dom.nextSibling : dom.previousSibling;
	    }
	    return null;
	}
	// Used to work around a Safari Selection/shadow DOM bug (#414)
	function safariSelectionRangeHack(view) {
	    let found = null;
	    // Because Safari (at least in 2018-2021) doesn't provide regular
	    // access to the selection inside a shadowroot, we have to perform a
	    // ridiculous hack to get at it—using `execCommand` to trigger a
	    // `beforeInput` event so that we can read the target range from the
	    // event.
	    function read(event) {
	        event.preventDefault();
	        event.stopImmediatePropagation();
	        found = event.getTargetRanges()[0];
	    }
	    view.contentDOM.addEventListener("beforeinput", read, true);
	    view.dom.ownerDocument.execCommand("indent");
	    view.contentDOM.removeEventListener("beforeinput", read, true);
	    if (!found)
	        return null;
	    let anchorNode = found.startContainer, anchorOffset = found.startOffset;
	    let focusNode = found.endContainer, focusOffset = found.endOffset;
	    let curAnchor = view.docView.domAtPos(view.state.selection.main.anchor);
	    // Since such a range doesn't distinguish between anchor and head,
	    // use a heuristic that flips it around if its end matches the
	    // current anchor.
	    if (isEquivalentPosition(curAnchor.node, curAnchor.offset, focusNode, focusOffset))
	        [anchorNode, anchorOffset, focusNode, focusOffset] = [focusNode, focusOffset, anchorNode, anchorOffset];
	    return { anchorNode, anchorOffset, focusNode, focusOffset };
	}

	// The editor's update state machine looks something like this:
	//
	//     Idle → Updating ⇆ Idle (unchecked) → Measuring → Idle
	//                                         ↑      ↓
	//                                         Updating (measure)
	//
	// The difference between 'Idle' and 'Idle (unchecked)' lies in
	// whether a layout check has been scheduled. A regular update through
	// the `update` method updates the DOM in a write-only fashion, and
	// relies on a check (scheduled with `requestAnimationFrame`) to make
	// sure everything is where it should be and the viewport covers the
	// visible code. That check continues to measure and then optionally
	// update until it reaches a coherent state.
	/**
	An editor view represents the editor's user interface. It holds
	the editable DOM surface, and possibly other elements such as the
	line number gutter. It handles events and dispatches state
	transactions for editing actions.
	*/
	class EditorView {
	    /**
	    The current editor state.
	    */
	    get state() { return this.viewState.state; }
	    /**
	    To be able to display large documents without consuming too much
	    memory or overloading the browser, CodeMirror only draws the
	    code that is visible (plus a margin around it) to the DOM. This
	    property tells you the extent of the current drawn viewport, in
	    document positions.
	    */
	    get viewport() { return this.viewState.viewport; }
	    /**
	    When there are, for example, large collapsed ranges in the
	    viewport, its size can be a lot bigger than the actual visible
	    content. Thus, if you are doing something like styling the
	    content in the viewport, it is preferable to only do so for
	    these ranges, which are the subset of the viewport that is
	    actually drawn.
	    */
	    get visibleRanges() { return this.viewState.visibleRanges; }
	    /**
	    Returns false when the editor is entirely scrolled out of view
	    or otherwise hidden.
	    */
	    get inView() { return this.viewState.inView; }
	    /**
	    Indicates whether the user is currently composing text via
	    [IME](https://en.wikipedia.org/wiki/Input_method), and at least
	    one change has been made in the current composition.
	    */
	    get composing() { return this.inputState.composing > 0; }
	    /**
	    Indicates whether the user is currently in composing state. Note
	    that on some platforms, like Android, this will be the case a
	    lot, since just putting the cursor on a word starts a
	    composition there.
	    */
	    get compositionStarted() { return this.inputState.composing >= 0; }
	    /**
	    The document or shadow root that the view lives in.
	    */
	    get root() { return this._root; }
	    /**
	    @internal
	    */
	    get win() { return this.dom.ownerDocument.defaultView || window; }
	    /**
	    Construct a new view. You'll want to either provide a `parent`
	    option, or put `view.dom` into your document after creating a
	    view, so that the user can see the editor.
	    */
	    constructor(config = {}) {
	        this.plugins = [];
	        this.pluginMap = new Map;
	        this.editorAttrs = {};
	        this.contentAttrs = {};
	        this.bidiCache = [];
	        this.destroyed = false;
	        /**
	        @internal
	        */
	        this.updateState = 2 /* UpdateState.Updating */;
	        /**
	        @internal
	        */
	        this.measureScheduled = -1;
	        /**
	        @internal
	        */
	        this.measureRequests = [];
	        this.contentDOM = document.createElement("div");
	        this.scrollDOM = document.createElement("div");
	        this.scrollDOM.tabIndex = -1;
	        this.scrollDOM.className = "cm-scroller";
	        this.scrollDOM.appendChild(this.contentDOM);
	        this.announceDOM = document.createElement("div");
	        this.announceDOM.className = "cm-announced";
	        this.announceDOM.setAttribute("aria-live", "polite");
	        this.dom = document.createElement("div");
	        this.dom.appendChild(this.announceDOM);
	        this.dom.appendChild(this.scrollDOM);
	        if (config.parent)
	            config.parent.appendChild(this.dom);
	        let { dispatch } = config;
	        this.dispatchTransactions = config.dispatchTransactions ||
	            (dispatch && ((trs) => trs.forEach(tr => dispatch(tr, this)))) ||
	            ((trs) => this.update(trs));
	        this.dispatch = this.dispatch.bind(this);
	        this._root = (config.root || getRoot(config.parent) || document);
	        this.viewState = new ViewState(config.state || EditorState.create(config));
	        if (config.scrollTo && config.scrollTo.is(scrollIntoView$1))
	            this.viewState.scrollTarget = config.scrollTo.value.clip(this.viewState.state);
	        this.plugins = this.state.facet(viewPlugin).map(spec => new PluginInstance(spec));
	        for (let plugin of this.plugins)
	            plugin.update(this);
	        this.observer = new DOMObserver(this);
	        this.inputState = new InputState(this);
	        this.inputState.ensureHandlers(this.plugins);
	        this.docView = new DocView(this);
	        this.mountStyles();
	        this.updateAttrs();
	        this.updateState = 0 /* UpdateState.Idle */;
	        this.requestMeasure();
	    }
	    dispatch(...input) {
	        let trs = input.length == 1 && input[0] instanceof Transaction ? input
	            : input.length == 1 && Array.isArray(input[0]) ? input[0]
	                : [this.state.update(...input)];
	        this.dispatchTransactions(trs, this);
	    }
	    /**
	    Update the view for the given array of transactions. This will
	    update the visible document and selection to match the state
	    produced by the transactions, and notify view plugins of the
	    change. You should usually call
	    [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead, which uses this
	    as a primitive.
	    */
	    update(transactions) {
	        if (this.updateState != 0 /* UpdateState.Idle */)
	            throw new Error("Calls to EditorView.update are not allowed while an update is in progress");
	        let redrawn = false, attrsChanged = false, update;
	        let state = this.state;
	        for (let tr of transactions) {
	            if (tr.startState != state)
	                throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");
	            state = tr.state;
	        }
	        if (this.destroyed) {
	            this.viewState.state = state;
	            return;
	        }
	        let focus = this.hasFocus, focusFlag = 0, dispatchFocus = null;
	        if (transactions.some(tr => tr.annotation(isFocusChange))) {
	            this.inputState.notifiedFocused = focus;
	            // If a focus-change transaction is being dispatched, set this update flag.
	            focusFlag = 1 /* UpdateFlag.Focus */;
	        }
	        else if (focus != this.inputState.notifiedFocused) {
	            this.inputState.notifiedFocused = focus;
	            // Schedule a separate focus transaction if necessary, otherwise
	            // add a flag to this update
	            dispatchFocus = focusChangeTransaction(state, focus);
	            if (!dispatchFocus)
	                focusFlag = 1 /* UpdateFlag.Focus */;
	        }
	        // If there was a pending DOM change, eagerly read it and try to
	        // apply it after the given transactions.
	        let pendingKey = this.observer.delayedAndroidKey, domChange = null;
	        if (pendingKey) {
	            this.observer.clearDelayedAndroidKey();
	            domChange = this.observer.readChange();
	            // Only try to apply DOM changes if the transactions didn't
	            // change the doc or selection.
	            if (domChange && !this.state.doc.eq(state.doc) || !this.state.selection.eq(state.selection))
	                domChange = null;
	        }
	        else {
	            this.observer.clear();
	        }
	        // When the phrases change, redraw the editor
	        if (state.facet(EditorState.phrases) != this.state.facet(EditorState.phrases))
	            return this.setState(state);
	        update = ViewUpdate.create(this, state, transactions);
	        update.flags |= focusFlag;
	        let scrollTarget = this.viewState.scrollTarget;
	        try {
	            this.updateState = 2 /* UpdateState.Updating */;
	            for (let tr of transactions) {
	                if (scrollTarget)
	                    scrollTarget = scrollTarget.map(tr.changes);
	                if (tr.scrollIntoView) {
	                    let { main } = tr.state.selection;
	                    scrollTarget = new ScrollTarget(main.empty ? main : EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1));
	                }
	                for (let e of tr.effects)
	                    if (e.is(scrollIntoView$1))
	                        scrollTarget = e.value.clip(this.state);
	            }
	            this.viewState.update(update, scrollTarget);
	            this.bidiCache = CachedOrder.update(this.bidiCache, update.changes);
	            if (!update.empty) {
	                this.updatePlugins(update);
	                this.inputState.update(update);
	            }
	            redrawn = this.docView.update(update);
	            if (this.state.facet(styleModule) != this.styleModules)
	                this.mountStyles();
	            attrsChanged = this.updateAttrs();
	            this.showAnnouncements(transactions);
	            this.docView.updateSelection(redrawn, transactions.some(tr => tr.isUserEvent("select.pointer")));
	        }
	        finally {
	            this.updateState = 0 /* UpdateState.Idle */;
	        }
	        if (update.startState.facet(theme) != update.state.facet(theme))
	            this.viewState.mustMeasureContent = true;
	        if (redrawn || attrsChanged || scrollTarget || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent)
	            this.requestMeasure();
	        if (redrawn)
	            this.docViewUpdate();
	        if (!update.empty)
	            for (let listener of this.state.facet(updateListener)) {
	                try {
	                    listener(update);
	                }
	                catch (e) {
	                    logException(this.state, e, "update listener");
	                }
	            }
	        if (dispatchFocus || domChange)
	            Promise.resolve().then(() => {
	                if (dispatchFocus && this.state == dispatchFocus.startState)
	                    this.dispatch(dispatchFocus);
	                if (domChange) {
	                    if (!applyDOMChange(this, domChange) && pendingKey.force)
	                        dispatchKey(this.contentDOM, pendingKey.key, pendingKey.keyCode);
	                }
	            });
	    }
	    /**
	    Reset the view to the given state. (This will cause the entire
	    document to be redrawn and all view plugins to be reinitialized,
	    so you should probably only use it when the new state isn't
	    derived from the old state. Otherwise, use
	    [`dispatch`](https://codemirror.net/6/docs/ref/#view.EditorView.dispatch) instead.)
	    */
	    setState(newState) {
	        if (this.updateState != 0 /* UpdateState.Idle */)
	            throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");
	        if (this.destroyed) {
	            this.viewState.state = newState;
	            return;
	        }
	        this.updateState = 2 /* UpdateState.Updating */;
	        let hadFocus = this.hasFocus;
	        try {
	            for (let plugin of this.plugins)
	                plugin.destroy(this);
	            this.viewState = new ViewState(newState);
	            this.plugins = newState.facet(viewPlugin).map(spec => new PluginInstance(spec));
	            this.pluginMap.clear();
	            for (let plugin of this.plugins)
	                plugin.update(this);
	            this.docView.destroy();
	            this.docView = new DocView(this);
	            this.inputState.ensureHandlers(this.plugins);
	            this.mountStyles();
	            this.updateAttrs();
	            this.bidiCache = [];
	        }
	        finally {
	            this.updateState = 0 /* UpdateState.Idle */;
	        }
	        if (hadFocus)
	            this.focus();
	        this.requestMeasure();
	    }
	    updatePlugins(update) {
	        let prevSpecs = update.startState.facet(viewPlugin), specs = update.state.facet(viewPlugin);
	        if (prevSpecs != specs) {
	            let newPlugins = [];
	            for (let spec of specs) {
	                let found = prevSpecs.indexOf(spec);
	                if (found < 0) {
	                    newPlugins.push(new PluginInstance(spec));
	                }
	                else {
	                    let plugin = this.plugins[found];
	                    plugin.mustUpdate = update;
	                    newPlugins.push(plugin);
	                }
	            }
	            for (let plugin of this.plugins)
	                if (plugin.mustUpdate != update)
	                    plugin.destroy(this);
	            this.plugins = newPlugins;
	            this.pluginMap.clear();
	        }
	        else {
	            for (let p of this.plugins)
	                p.mustUpdate = update;
	        }
	        for (let i = 0; i < this.plugins.length; i++)
	            this.plugins[i].update(this);
	        if (prevSpecs != specs)
	            this.inputState.ensureHandlers(this.plugins);
	    }
	    docViewUpdate() {
	        for (let plugin of this.plugins) {
	            let val = plugin.value;
	            if (val && val.docViewUpdate) {
	                try {
	                    val.docViewUpdate(this);
	                }
	                catch (e) {
	                    logException(this.state, e, "doc view update listener");
	                }
	            }
	        }
	    }
	    /**
	    @internal
	    */
	    measure(flush = true) {
	        if (this.destroyed)
	            return;
	        if (this.measureScheduled > -1)
	            this.win.cancelAnimationFrame(this.measureScheduled);
	        if (this.observer.delayedAndroidKey) {
	            this.measureScheduled = -1;
	            this.requestMeasure();
	            return;
	        }
	        this.measureScheduled = 0; // Prevent requestMeasure calls from scheduling another animation frame
	        if (flush)
	            this.observer.forceFlush();
	        let updated = null;
	        let sDOM = this.scrollDOM, scrollTop = sDOM.scrollTop * this.scaleY;
	        let { scrollAnchorPos, scrollAnchorHeight } = this.viewState;
	        if (Math.abs(scrollTop - this.viewState.scrollTop) > 1)
	            scrollAnchorHeight = -1;
	        this.viewState.scrollAnchorHeight = -1;
	        try {
	            for (let i = 0;; i++) {
	                if (scrollAnchorHeight < 0) {
	                    if (isScrolledToBottom(sDOM)) {
	                        scrollAnchorPos = -1;
	                        scrollAnchorHeight = this.viewState.heightMap.height;
	                    }
	                    else {
	                        let block = this.viewState.scrollAnchorAt(scrollTop);
	                        scrollAnchorPos = block.from;
	                        scrollAnchorHeight = block.top;
	                    }
	                }
	                this.updateState = 1 /* UpdateState.Measuring */;
	                let changed = this.viewState.measure(this);
	                if (!changed && !this.measureRequests.length && this.viewState.scrollTarget == null)
	                    break;
	                if (i > 5) {
	                    console.warn(this.measureRequests.length
	                        ? "Measure loop restarted more than 5 times"
	                        : "Viewport failed to stabilize");
	                    break;
	                }
	                let measuring = [];
	                // Only run measure requests in this cycle when the viewport didn't change
	                if (!(changed & 4 /* UpdateFlag.Viewport */))
	                    [this.measureRequests, measuring] = [measuring, this.measureRequests];
	                let measured = measuring.map(m => {
	                    try {
	                        return m.read(this);
	                    }
	                    catch (e) {
	                        logException(this.state, e);
	                        return BadMeasure;
	                    }
	                });
	                let update = ViewUpdate.create(this, this.state, []), redrawn = false;
	                update.flags |= changed;
	                if (!updated)
	                    updated = update;
	                else
	                    updated.flags |= changed;
	                this.updateState = 2 /* UpdateState.Updating */;
	                if (!update.empty) {
	                    this.updatePlugins(update);
	                    this.inputState.update(update);
	                    this.updateAttrs();
	                    redrawn = this.docView.update(update);
	                    if (redrawn)
	                        this.docViewUpdate();
	                }
	                for (let i = 0; i < measuring.length; i++)
	                    if (measured[i] != BadMeasure) {
	                        try {
	                            let m = measuring[i];
	                            if (m.write)
	                                m.write(measured[i], this);
	                        }
	                        catch (e) {
	                            logException(this.state, e);
	                        }
	                    }
	                if (redrawn)
	                    this.docView.updateSelection(true);
	                if (!update.viewportChanged && this.measureRequests.length == 0) {
	                    if (this.viewState.editorHeight) {
	                        if (this.viewState.scrollTarget) {
	                            this.docView.scrollIntoView(this.viewState.scrollTarget);
	                            this.viewState.scrollTarget = null;
	                            scrollAnchorHeight = -1;
	                            continue;
	                        }
	                        else {
	                            let newAnchorHeight = scrollAnchorPos < 0 ? this.viewState.heightMap.height :
	                                this.viewState.lineBlockAt(scrollAnchorPos).top;
	                            let diff = newAnchorHeight - scrollAnchorHeight;
	                            if (diff > 1 || diff < -1) {
	                                scrollTop = scrollTop + diff;
	                                sDOM.scrollTop = scrollTop / this.scaleY;
	                                scrollAnchorHeight = -1;
	                                continue;
	                            }
	                        }
	                    }
	                    break;
	                }
	            }
	        }
	        finally {
	            this.updateState = 0 /* UpdateState.Idle */;
	            this.measureScheduled = -1;
	        }
	        if (updated && !updated.empty)
	            for (let listener of this.state.facet(updateListener))
	                listener(updated);
	    }
	    /**
	    Get the CSS classes for the currently active editor themes.
	    */
	    get themeClasses() {
	        return baseThemeID + " " +
	            (this.state.facet(darkTheme) ? baseDarkID : baseLightID) + " " +
	            this.state.facet(theme);
	    }
	    updateAttrs() {
	        let editorAttrs = attrsFromFacet(this, editorAttributes, {
	            class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses
	        });
	        let contentAttrs = {
	            spellcheck: "false",
	            autocorrect: "off",
	            autocapitalize: "off",
	            translate: "no",
	            contenteditable: !this.state.facet(editable) ? "false" : "true",
	            class: "cm-content",
	            style: `${browser.tabSize}: ${this.state.tabSize}`,
	            role: "textbox",
	            "aria-multiline": "true"
	        };
	        if (this.state.readOnly)
	            contentAttrs["aria-readonly"] = "true";
	        attrsFromFacet(this, contentAttributes, contentAttrs);
	        let changed = this.observer.ignore(() => {
	            let changedContent = updateAttrs(this.contentDOM, this.contentAttrs, contentAttrs);
	            let changedEditor = updateAttrs(this.dom, this.editorAttrs, editorAttrs);
	            return changedContent || changedEditor;
	        });
	        this.editorAttrs = editorAttrs;
	        this.contentAttrs = contentAttrs;
	        return changed;
	    }
	    showAnnouncements(trs) {
	        let first = true;
	        for (let tr of trs)
	            for (let effect of tr.effects)
	                if (effect.is(EditorView.announce)) {
	                    if (first)
	                        this.announceDOM.textContent = "";
	                    first = false;
	                    let div = this.announceDOM.appendChild(document.createElement("div"));
	                    div.textContent = effect.value;
	                }
	    }
	    mountStyles() {
	        this.styleModules = this.state.facet(styleModule);
	        let nonce = this.state.facet(EditorView.cspNonce);
	        StyleModule.mount(this.root, this.styleModules.concat(baseTheme$1$2).reverse(), nonce ? { nonce } : undefined);
	    }
	    readMeasured() {
	        if (this.updateState == 2 /* UpdateState.Updating */)
	            throw new Error("Reading the editor layout isn't allowed during an update");
	        if (this.updateState == 0 /* UpdateState.Idle */ && this.measureScheduled > -1)
	            this.measure(false);
	    }
	    /**
	    Schedule a layout measurement, optionally providing callbacks to
	    do custom DOM measuring followed by a DOM write phase. Using
	    this is preferable reading DOM layout directly from, for
	    example, an event handler, because it'll make sure measuring and
	    drawing done by other components is synchronized, avoiding
	    unnecessary DOM layout computations.
	    */
	    requestMeasure(request) {
	        if (this.measureScheduled < 0)
	            this.measureScheduled = this.win.requestAnimationFrame(() => this.measure());
	        if (request) {
	            if (this.measureRequests.indexOf(request) > -1)
	                return;
	            if (request.key != null)
	                for (let i = 0; i < this.measureRequests.length; i++) {
	                    if (this.measureRequests[i].key === request.key) {
	                        this.measureRequests[i] = request;
	                        return;
	                    }
	                }
	            this.measureRequests.push(request);
	        }
	    }
	    /**
	    Get the value of a specific plugin, if present. Note that
	    plugins that crash can be dropped from a view, so even when you
	    know you registered a given plugin, it is recommended to check
	    the return value of this method.
	    */
	    plugin(plugin) {
	        let known = this.pluginMap.get(plugin);
	        if (known === undefined || known && known.spec != plugin)
	            this.pluginMap.set(plugin, known = this.plugins.find(p => p.spec == plugin) || null);
	        return known && known.update(this).value;
	    }
	    /**
	    The top position of the document, in screen coordinates. This
	    may be negative when the editor is scrolled down. Points
	    directly to the top of the first line, not above the padding.
	    */
	    get documentTop() {
	        return this.contentDOM.getBoundingClientRect().top + this.viewState.paddingTop;
	    }
	    /**
	    Reports the padding above and below the document.
	    */
	    get documentPadding() {
	        return { top: this.viewState.paddingTop, bottom: this.viewState.paddingBottom };
	    }
	    /**
	    If the editor is transformed with CSS, this provides the scale
	    along the X axis. Otherwise, it will just be 1. Note that
	    transforms other than translation and scaling are not supported.
	    */
	    get scaleX() { return this.viewState.scaleX; }
	    /**
	    Provide the CSS transformed scale along the Y axis.
	    */
	    get scaleY() { return this.viewState.scaleY; }
	    /**
	    Find the text line or block widget at the given vertical
	    position (which is interpreted as relative to the [top of the
	    document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop)).
	    */
	    elementAtHeight(height) {
	        this.readMeasured();
	        return this.viewState.elementAtHeight(height);
	    }
	    /**
	    Find the line block (see
	    [`lineBlockAt`](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) at the given
	    height, again interpreted relative to the [top of the
	    document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop).
	    */
	    lineBlockAtHeight(height) {
	        this.readMeasured();
	        return this.viewState.lineBlockAtHeight(height);
	    }
	    /**
	    Get the extent and vertical position of all [line
	    blocks](https://codemirror.net/6/docs/ref/#view.EditorView.lineBlockAt) in the viewport. Positions
	    are relative to the [top of the
	    document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop);
	    */
	    get viewportLineBlocks() {
	        return this.viewState.viewportLines;
	    }
	    /**
	    Find the line block around the given document position. A line
	    block is a range delimited on both sides by either a
	    non-[hidden](https://codemirror.net/6/docs/ref/#view.Decoration^replace) line breaks, or the
	    start/end of the document. It will usually just hold a line of
	    text, but may be broken into multiple textblocks by block
	    widgets.
	    */
	    lineBlockAt(pos) {
	        return this.viewState.lineBlockAt(pos);
	    }
	    /**
	    The editor's total content height.
	    */
	    get contentHeight() {
	        return this.viewState.contentHeight;
	    }
	    /**
	    Move a cursor position by [grapheme
	    cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak). `forward` determines whether
	    the motion is away from the line start, or towards it. In
	    bidirectional text, the line is traversed in visual order, using
	    the editor's [text direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection).
	    When the start position was the last one on the line, the
	    returned position will be across the line break. If there is no
	    further line, the original position is returned.
	    
	    By default, this method moves over a single cluster. The
	    optional `by` argument can be used to move across more. It will
	    be called with the first cluster as argument, and should return
	    a predicate that determines, for each subsequent cluster,
	    whether it should also be moved over.
	    */
	    moveByChar(start, forward, by) {
	        return skipAtoms(this, start, moveByChar(this, start, forward, by));
	    }
	    /**
	    Move a cursor position across the next group of either
	    [letters](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) or non-letter
	    non-whitespace characters.
	    */
	    moveByGroup(start, forward) {
	        return skipAtoms(this, start, moveByChar(this, start, forward, initial => byGroup(this, start.head, initial)));
	    }
	    /**
	    Get the cursor position visually at the start or end of a line.
	    Note that this may differ from the _logical_ position at its
	    start or end (which is simply at `line.from`/`line.to`) if text
	    at the start or end goes against the line's base text direction.
	    */
	    visualLineSide(line, end) {
	        let order = this.bidiSpans(line), dir = this.textDirectionAt(line.from);
	        let span = order[end ? order.length - 1 : 0];
	        return EditorSelection.cursor(span.side(end, dir) + line.from, span.forward(!end, dir) ? 1 : -1);
	    }
	    /**
	    Move to the next line boundary in the given direction. If
	    `includeWrap` is true, line wrapping is on, and there is a
	    further wrap point on the current line, the wrap point will be
	    returned. Otherwise this function will return the start or end
	    of the line.
	    */
	    moveToLineBoundary(start, forward, includeWrap = true) {
	        return moveToLineBoundary(this, start, forward, includeWrap);
	    }
	    /**
	    Move a cursor position vertically. When `distance` isn't given,
	    it defaults to moving to the next line (including wrapped
	    lines). Otherwise, `distance` should provide a positive distance
	    in pixels.
	    
	    When `start` has a
	    [`goalColumn`](https://codemirror.net/6/docs/ref/#state.SelectionRange.goalColumn), the vertical
	    motion will use that as a target horizontal position. Otherwise,
	    the cursor's own horizontal position is used. The returned
	    cursor will have its goal column set to whichever column was
	    used.
	    */
	    moveVertically(start, forward, distance) {
	        return skipAtoms(this, start, moveVertically(this, start, forward, distance));
	    }
	    /**
	    Find the DOM parent node and offset (child offset if `node` is
	    an element, character offset when it is a text node) at the
	    given document position.
	    
	    Note that for positions that aren't currently in
	    `visibleRanges`, the resulting DOM position isn't necessarily
	    meaningful (it may just point before or after a placeholder
	    element).
	    */
	    domAtPos(pos) {
	        return this.docView.domAtPos(pos);
	    }
	    /**
	    Find the document position at the given DOM node. Can be useful
	    for associating positions with DOM events. Will raise an error
	    when `node` isn't part of the editor content.
	    */
	    posAtDOM(node, offset = 0) {
	        return this.docView.posFromDOM(node, offset);
	    }
	    posAtCoords(coords, precise = true) {
	        this.readMeasured();
	        return posAtCoords(this, coords, precise);
	    }
	    /**
	    Get the screen coordinates at the given document position.
	    `side` determines whether the coordinates are based on the
	    element before (-1) or after (1) the position (if no element is
	    available on the given side, the method will transparently use
	    another strategy to get reasonable coordinates).
	    */
	    coordsAtPos(pos, side = 1) {
	        this.readMeasured();
	        let rect = this.docView.coordsAt(pos, side);
	        if (!rect || rect.left == rect.right)
	            return rect;
	        let line = this.state.doc.lineAt(pos), order = this.bidiSpans(line);
	        let span = order[BidiSpan.find(order, pos - line.from, -1, side)];
	        return flattenRect(rect, (span.dir == Direction.LTR) == (side > 0));
	    }
	    /**
	    Return the rectangle around a given character. If `pos` does not
	    point in front of a character that is in the viewport and
	    rendered (i.e. not replaced, not a line break), this will return
	    null. For space characters that are a line wrap point, this will
	    return the position before the line break.
	    */
	    coordsForChar(pos) {
	        this.readMeasured();
	        return this.docView.coordsForChar(pos);
	    }
	    /**
	    The default width of a character in the editor. May not
	    accurately reflect the width of all characters (given variable
	    width fonts or styling of invididual ranges).
	    */
	    get defaultCharacterWidth() { return this.viewState.heightOracle.charWidth; }
	    /**
	    The default height of a line in the editor. May not be accurate
	    for all lines.
	    */
	    get defaultLineHeight() { return this.viewState.heightOracle.lineHeight; }
	    /**
	    The text direction
	    ([`direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/direction)
	    CSS property) of the editor's content element.
	    */
	    get textDirection() { return this.viewState.defaultTextDirection; }
	    /**
	    Find the text direction of the block at the given position, as
	    assigned by CSS. If
	    [`perLineTextDirection`](https://codemirror.net/6/docs/ref/#view.EditorView^perLineTextDirection)
	    isn't enabled, or the given position is outside of the viewport,
	    this will always return the same as
	    [`textDirection`](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection). Note that
	    this may trigger a DOM layout.
	    */
	    textDirectionAt(pos) {
	        let perLine = this.state.facet(perLineTextDirection);
	        if (!perLine || pos < this.viewport.from || pos > this.viewport.to)
	            return this.textDirection;
	        this.readMeasured();
	        return this.docView.textDirectionAt(pos);
	    }
	    /**
	    Whether this editor [wraps lines](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping)
	    (as determined by the
	    [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
	    CSS property of its content element).
	    */
	    get lineWrapping() { return this.viewState.heightOracle.lineWrapping; }
	    /**
	    Returns the bidirectional text structure of the given line
	    (which should be in the current document) as an array of span
	    objects. The order of these spans matches the [text
	    direction](https://codemirror.net/6/docs/ref/#view.EditorView.textDirection)—if that is
	    left-to-right, the leftmost spans come first, otherwise the
	    rightmost spans come first.
	    */
	    bidiSpans(line) {
	        if (line.length > MaxBidiLine)
	            return trivialOrder(line.length);
	        let dir = this.textDirectionAt(line.from), isolates;
	        for (let entry of this.bidiCache) {
	            if (entry.from == line.from && entry.dir == dir &&
	                (entry.fresh || isolatesEq(entry.isolates, isolates = getIsolatedRanges(this, line))))
	                return entry.order;
	        }
	        if (!isolates)
	            isolates = getIsolatedRanges(this, line);
	        let order = computeOrder(line.text, dir, isolates);
	        this.bidiCache.push(new CachedOrder(line.from, line.to, dir, isolates, true, order));
	        return order;
	    }
	    /**
	    Check whether the editor has focus.
	    */
	    get hasFocus() {
	        var _a;
	        // Safari return false for hasFocus when the context menu is open
	        // or closing, which leads us to ignore selection changes from the
	        // context menu because it looks like the editor isn't focused.
	        // This kludges around that.
	        return (this.dom.ownerDocument.hasFocus() || browser.safari && ((_a = this.inputState) === null || _a === void 0 ? void 0 : _a.lastContextMenu) > Date.now() - 3e4) &&
	            this.root.activeElement == this.contentDOM;
	    }
	    /**
	    Put focus on the editor.
	    */
	    focus() {
	        this.observer.ignore(() => {
	            focusPreventScroll(this.contentDOM);
	            this.docView.updateSelection();
	        });
	    }
	    /**
	    Update the [root](https://codemirror.net/6/docs/ref/##view.EditorViewConfig.root) in which the editor lives. This is only
	    necessary when moving the editor's existing DOM to a new window or shadow root.
	    */
	    setRoot(root) {
	        if (this._root != root) {
	            this._root = root;
	            this.observer.setWindow((root.nodeType == 9 ? root : root.ownerDocument).defaultView || window);
	            this.mountStyles();
	        }
	    }
	    /**
	    Clean up this editor view, removing its element from the
	    document, unregistering event handlers, and notifying
	    plugins. The view instance can no longer be used after
	    calling this.
	    */
	    destroy() {
	        for (let plugin of this.plugins)
	            plugin.destroy(this);
	        this.plugins = [];
	        this.inputState.destroy();
	        this.docView.destroy();
	        this.dom.remove();
	        this.observer.destroy();
	        if (this.measureScheduled > -1)
	            this.win.cancelAnimationFrame(this.measureScheduled);
	        this.destroyed = true;
	    }
	    /**
	    Returns an effect that can be
	    [added](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) to a transaction to
	    cause it to scroll the given position or range into view.
	    */
	    static scrollIntoView(pos, options = {}) {
	        return scrollIntoView$1.of(new ScrollTarget(typeof pos == "number" ? EditorSelection.cursor(pos) : pos, options.y, options.x, options.yMargin, options.xMargin));
	    }
	    /**
	    Return an effect that resets the editor to its current (at the
	    time this method was called) scroll position. Note that this
	    only affects the editor's own scrollable element, not parents.
	    See also
	    [`EditorViewConfig.scrollTo`](https://codemirror.net/6/docs/ref/#view.EditorViewConfig.scrollTo).
	    
	    The effect should be used with a document identical to the one
	    it was created for. Failing to do so is not an error, but may
	    not scroll to the expected position. You can
	    [map](https://codemirror.net/6/docs/ref/#state.StateEffect.map) the effect to account for changes.
	    */
	    scrollSnapshot() {
	        let { scrollTop, scrollLeft } = this.scrollDOM;
	        let ref = this.viewState.scrollAnchorAt(scrollTop);
	        return scrollIntoView$1.of(new ScrollTarget(EditorSelection.cursor(ref.from), "start", "start", ref.top - scrollTop, scrollLeft, true));
	    }
	    /**
	    Returns an extension that can be used to add DOM event handlers.
	    The value should be an object mapping event names to handler
	    functions. For any given event, such functions are ordered by
	    extension precedence, and the first handler to return true will
	    be assumed to have handled that event, and no other handlers or
	    built-in behavior will be activated for it. These are registered
	    on the [content element](https://codemirror.net/6/docs/ref/#view.EditorView.contentDOM), except
	    for `scroll` handlers, which will be called any time the
	    editor's [scroll element](https://codemirror.net/6/docs/ref/#view.EditorView.scrollDOM) or one of
	    its parent nodes is scrolled.
	    */
	    static domEventHandlers(handlers) {
	        return ViewPlugin.define(() => ({}), { eventHandlers: handlers });
	    }
	    /**
	    Create an extension that registers DOM event observers. Contrary
	    to event [handlers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventHandlers),
	    observers can't be prevented from running by a higher-precedence
	    handler returning true. They also don't prevent other handlers
	    and observers from running when they return true, and should not
	    call `preventDefault`.
	    */
	    static domEventObservers(observers) {
	        return ViewPlugin.define(() => ({}), { eventObservers: observers });
	    }
	    /**
	    Create a theme extension. The first argument can be a
	    [`style-mod`](https://github.com/marijnh/style-mod#documentation)
	    style spec providing the styles for the theme. These will be
	    prefixed with a generated class for the style.
	    
	    Because the selectors will be prefixed with a scope class, rule
	    that directly match the editor's [wrapper
	    element](https://codemirror.net/6/docs/ref/#view.EditorView.dom)—to which the scope class will be
	    added—need to be explicitly differentiated by adding an `&` to
	    the selector for that element—for example
	    `&.cm-focused`.
	    
	    When `dark` is set to true, the theme will be marked as dark,
	    which will cause the `&dark` rules from [base
	    themes](https://codemirror.net/6/docs/ref/#view.EditorView^baseTheme) to be used (as opposed to
	    `&light` when a light theme is active).
	    */
	    static theme(spec, options) {
	        let prefix = StyleModule.newName();
	        let result = [theme.of(prefix), styleModule.of(buildTheme(`.${prefix}`, spec))];
	        if (options && options.dark)
	            result.push(darkTheme.of(true));
	        return result;
	    }
	    /**
	    Create an extension that adds styles to the base theme. Like
	    with [`theme`](https://codemirror.net/6/docs/ref/#view.EditorView^theme), use `&` to indicate the
	    place of the editor wrapper element when directly targeting
	    that. You can also use `&dark` or `&light` instead to only
	    target editors with a dark or light theme.
	    */
	    static baseTheme(spec) {
	        return Prec.lowest(styleModule.of(buildTheme("." + baseThemeID, spec, lightDarkIDs)));
	    }
	    /**
	    Retrieve an editor view instance from the view's DOM
	    representation.
	    */
	    static findFromDOM(dom) {
	        var _a;
	        let content = dom.querySelector(".cm-content");
	        let cView = content && ContentView.get(content) || ContentView.get(dom);
	        return ((_a = cView === null || cView === void 0 ? void 0 : cView.rootView) === null || _a === void 0 ? void 0 : _a.view) || null;
	    }
	}
	/**
	Facet to add a [style
	module](https://github.com/marijnh/style-mod#documentation) to
	an editor view. The view will ensure that the module is
	mounted in its [document
	root](https://codemirror.net/6/docs/ref/#view.EditorView.constructor^config.root).
	*/
	EditorView.styleModule = styleModule;
	/**
	An input handler can override the way changes to the editable
	DOM content are handled. Handlers are passed the document
	positions between which the change was found, and the new
	content. When one returns true, no further input handlers are
	called and the default behavior is prevented.

	The `insert` argument can be used to get the default transaction
	that would be applied for this input. This can be useful when
	dispatching the custom behavior as a separate transaction.
	*/
	EditorView.inputHandler = inputHandler$1;
	/**
	Scroll handlers can override how things are scrolled into view.
	If they return `true`, no further handling happens for the
	scrolling. If they return false, the default scroll behavior is
	applied. Scroll handlers should never initiate editor updates.
	*/
	EditorView.scrollHandler = scrollHandler;
	/**
	This facet can be used to provide functions that create effects
	to be dispatched when the editor's focus state changes.
	*/
	EditorView.focusChangeEffect = focusChangeEffect;
	/**
	By default, the editor assumes all its content has the same
	[text direction](https://codemirror.net/6/docs/ref/#view.Direction). Configure this with a `true`
	value to make it read the text direction of every (rendered)
	line separately.
	*/
	EditorView.perLineTextDirection = perLineTextDirection;
	/**
	Allows you to provide a function that should be called when the
	library catches an exception from an extension (mostly from view
	plugins, but may be used by other extensions to route exceptions
	from user-code-provided callbacks). This is mostly useful for
	debugging and logging. See [`logException`](https://codemirror.net/6/docs/ref/#view.logException).
	*/
	EditorView.exceptionSink = exceptionSink;
	/**
	A facet that can be used to register a function to be called
	every time the view updates.
	*/
	EditorView.updateListener = updateListener;
	/**
	Facet that controls whether the editor content DOM is editable.
	When its highest-precedence value is `false`, the element will
	not have its `contenteditable` attribute set. (Note that this
	doesn't affect API calls that change the editor content, even
	when those are bound to keys or buttons. See the
	[`readOnly`](https://codemirror.net/6/docs/ref/#state.EditorState.readOnly) facet for that.)
	*/
	EditorView.editable = editable;
	/**
	Allows you to influence the way mouse selection happens. The
	functions in this facet will be called for a `mousedown` event
	on the editor, and can return an object that overrides the way a
	selection is computed from that mouse click or drag.
	*/
	EditorView.mouseSelectionStyle = mouseSelectionStyle;
	/**
	Facet used to configure whether a given selection drag event
	should move or copy the selection. The given predicate will be
	called with the `mousedown` event, and can return `true` when
	the drag should move the content.
	*/
	EditorView.dragMovesSelection = dragMovesSelection$1;
	/**
	Facet used to configure whether a given selecting click adds a
	new range to the existing selection or replaces it entirely. The
	default behavior is to check `event.metaKey` on macOS, and
	`event.ctrlKey` elsewhere.
	*/
	EditorView.clickAddsSelectionRange = clickAddsSelectionRange;
	/**
	A facet that determines which [decorations](https://codemirror.net/6/docs/ref/#view.Decoration)
	are shown in the view. Decorations can be provided in two
	ways—directly, or via a function that takes an editor view.

	Only decoration sets provided directly are allowed to influence
	the editor's vertical layout structure. The ones provided as
	functions are called _after_ the new viewport has been computed,
	and thus **must not** introduce block widgets or replacing
	decorations that cover line breaks.

	If you want decorated ranges to behave like atomic units for
	cursor motion and deletion purposes, also provide the range set
	containing the decorations to
	[`EditorView.atomicRanges`](https://codemirror.net/6/docs/ref/#view.EditorView^atomicRanges).
	*/
	EditorView.decorations = decorations;
	/**
	Facet that works much like
	[`decorations`](https://codemirror.net/6/docs/ref/#view.EditorView^decorations), but puts its
	inputs at the very bottom of the precedence stack, meaning mark
	decorations provided here will only be split by other, partially
	overlapping \`outerDecorations\` ranges, and wrap around all
	regular decorations. Use this for mark elements that should, as
	much as possible, remain in one piece.
	*/
	EditorView.outerDecorations = outerDecorations;
	/**
	Used to provide ranges that should be treated as atoms as far as
	cursor motion is concerned. This causes methods like
	[`moveByChar`](https://codemirror.net/6/docs/ref/#view.EditorView.moveByChar) and
	[`moveVertically`](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) (and the
	commands built on top of them) to skip across such regions when
	a selection endpoint would enter them. This does _not_ prevent
	direct programmatic [selection
	updates](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) from moving into such
	regions.
	*/
	EditorView.atomicRanges = atomicRanges;
	/**
	When range decorations add a `unicode-bidi: isolate` style, they
	should also include a
	[`bidiIsolate`](https://codemirror.net/6/docs/ref/#view.MarkDecorationSpec.bidiIsolate) property
	in their decoration spec, and be exposed through this facet, so
	that the editor can compute the proper text order. (Other values
	for `unicode-bidi`, except of course `normal`, are not
	supported.)
	*/
	EditorView.bidiIsolatedRanges = bidiIsolatedRanges;
	/**
	Facet that allows extensions to provide additional scroll
	margins (space around the sides of the scrolling element that
	should be considered invisible). This can be useful when the
	plugin introduces elements that cover part of that element (for
	example a horizontally fixed gutter).
	*/
	EditorView.scrollMargins = scrollMargins;
	/**
	This facet records whether a dark theme is active. The extension
	returned by [`theme`](https://codemirror.net/6/docs/ref/#view.EditorView^theme) automatically
	includes an instance of this when the `dark` option is set to
	true.
	*/
	EditorView.darkTheme = darkTheme;
	/**
	Provides a Content Security Policy nonce to use when creating
	the style sheets for the editor. Holds the empty string when no
	nonce has been provided.
	*/
	EditorView.cspNonce = /*@__PURE__*/Facet.define({ combine: values => values.length ? values[0] : "" });
	/**
	Facet that provides additional DOM attributes for the editor's
	editable DOM element.
	*/
	EditorView.contentAttributes = contentAttributes;
	/**
	Facet that provides DOM attributes for the editor's outer
	element.
	*/
	EditorView.editorAttributes = editorAttributes;
	/**
	An extension that enables line wrapping in the editor (by
	setting CSS `white-space` to `pre-wrap` in the content).
	*/
	EditorView.lineWrapping = /*@__PURE__*/EditorView.contentAttributes.of({ "class": "cm-lineWrapping" });
	/**
	State effect used to include screen reader announcements in a
	transaction. These will be added to the DOM in a visually hidden
	element with `aria-live="polite"` set, and should be used to
	describe effects that are visually obvious but may not be
	noticed by screen reader users (such as moving to the next
	search match).
	*/
	EditorView.announce = /*@__PURE__*/StateEffect.define();
	// Maximum line length for which we compute accurate bidi info
	const MaxBidiLine = 4096;
	const BadMeasure = {};
	class CachedOrder {
	    constructor(from, to, dir, isolates, fresh, order) {
	        this.from = from;
	        this.to = to;
	        this.dir = dir;
	        this.isolates = isolates;
	        this.fresh = fresh;
	        this.order = order;
	    }
	    static update(cache, changes) {
	        if (changes.empty && !cache.some(c => c.fresh))
	            return cache;
	        let result = [], lastDir = cache.length ? cache[cache.length - 1].dir : Direction.LTR;
	        for (let i = Math.max(0, cache.length - 10); i < cache.length; i++) {
	            let entry = cache[i];
	            if (entry.dir == lastDir && !changes.touchesRange(entry.from, entry.to))
	                result.push(new CachedOrder(changes.mapPos(entry.from, 1), changes.mapPos(entry.to, -1), entry.dir, entry.isolates, false, entry.order));
	        }
	        return result;
	    }
	}
	function attrsFromFacet(view, facet, base) {
	    for (let sources = view.state.facet(facet), i = sources.length - 1; i >= 0; i--) {
	        let source = sources[i], value = typeof source == "function" ? source(view) : source;
	        if (value)
	            combineAttrs(value, base);
	    }
	    return base;
	}

	const currentPlatform = browser.mac ? "mac" : browser.windows ? "win" : browser.linux ? "linux" : "key";
	function normalizeKeyName(name, platform) {
	    const parts = name.split(/-(?!$)/);
	    let result = parts[parts.length - 1];
	    if (result == "Space")
	        result = " ";
	    let alt, ctrl, shift, meta;
	    for (let i = 0; i < parts.length - 1; ++i) {
	        const mod = parts[i];
	        if (/^(cmd|meta|m)$/i.test(mod))
	            meta = true;
	        else if (/^a(lt)?$/i.test(mod))
	            alt = true;
	        else if (/^(c|ctrl|control)$/i.test(mod))
	            ctrl = true;
	        else if (/^s(hift)?$/i.test(mod))
	            shift = true;
	        else if (/^mod$/i.test(mod)) {
	            if (platform == "mac")
	                meta = true;
	            else
	                ctrl = true;
	        }
	        else
	            throw new Error("Unrecognized modifier name: " + mod);
	    }
	    if (alt)
	        result = "Alt-" + result;
	    if (ctrl)
	        result = "Ctrl-" + result;
	    if (meta)
	        result = "Meta-" + result;
	    if (shift)
	        result = "Shift-" + result;
	    return result;
	}
	function modifiers(name, event, shift) {
	    if (event.altKey)
	        name = "Alt-" + name;
	    if (event.ctrlKey)
	        name = "Ctrl-" + name;
	    if (event.metaKey)
	        name = "Meta-" + name;
	    if (shift !== false && event.shiftKey)
	        name = "Shift-" + name;
	    return name;
	}
	const handleKeyEvents = /*@__PURE__*/Prec.default(/*@__PURE__*/EditorView.domEventHandlers({
	    keydown(event, view) {
	        return runHandlers(getKeymap(view.state), event, view, "editor");
	    }
	}));
	/**
	Facet used for registering keymaps.

	You can add multiple keymaps to an editor. Their priorities
	determine their precedence (the ones specified early or with high
	priority get checked first). When a handler has returned `true`
	for a given key, no further handlers are called.
	*/
	const keymap = /*@__PURE__*/Facet.define({ enables: handleKeyEvents });
	const Keymaps = /*@__PURE__*/new WeakMap();
	// This is hidden behind an indirection, rather than directly computed
	// by the facet, to keep internal types out of the facet's type.
	function getKeymap(state) {
	    let bindings = state.facet(keymap);
	    let map = Keymaps.get(bindings);
	    if (!map)
	        Keymaps.set(bindings, map = buildKeymap(bindings.reduce((a, b) => a.concat(b), [])));
	    return map;
	}
	/**
	Run the key handlers registered for a given scope. The event
	object should be a `"keydown"` event. Returns true if any of the
	handlers handled it.
	*/
	function runScopeHandlers(view, event, scope) {
	    return runHandlers(getKeymap(view.state), event, view, scope);
	}
	let storedPrefix = null;
	const PrefixTimeout = 4000;
	function buildKeymap(bindings, platform = currentPlatform) {
	    let bound = Object.create(null);
	    let isPrefix = Object.create(null);
	    let checkPrefix = (name, is) => {
	        let current = isPrefix[name];
	        if (current == null)
	            isPrefix[name] = is;
	        else if (current != is)
	            throw new Error("Key binding " + name + " is used both as a regular binding and as a multi-stroke prefix");
	    };
	    let add = (scope, key, command, preventDefault, stopPropagation) => {
	        var _a, _b;
	        let scopeObj = bound[scope] || (bound[scope] = Object.create(null));
	        let parts = key.split(/ (?!$)/).map(k => normalizeKeyName(k, platform));
	        for (let i = 1; i < parts.length; i++) {
	            let prefix = parts.slice(0, i).join(" ");
	            checkPrefix(prefix, true);
	            if (!scopeObj[prefix])
	                scopeObj[prefix] = {
	                    preventDefault: true,
	                    stopPropagation: false,
	                    run: [(view) => {
	                            let ourObj = storedPrefix = { view, prefix, scope };
	                            setTimeout(() => { if (storedPrefix == ourObj)
	                                storedPrefix = null; }, PrefixTimeout);
	                            return true;
	                        }]
	                };
	        }
	        let full = parts.join(" ");
	        checkPrefix(full, false);
	        let binding = scopeObj[full] || (scopeObj[full] = {
	            preventDefault: false,
	            stopPropagation: false,
	            run: ((_b = (_a = scopeObj._any) === null || _a === void 0 ? void 0 : _a.run) === null || _b === void 0 ? void 0 : _b.slice()) || []
	        });
	        if (command)
	            binding.run.push(command);
	        if (preventDefault)
	            binding.preventDefault = true;
	        if (stopPropagation)
	            binding.stopPropagation = true;
	    };
	    for (let b of bindings) {
	        let scopes = b.scope ? b.scope.split(" ") : ["editor"];
	        if (b.any)
	            for (let scope of scopes) {
	                let scopeObj = bound[scope] || (bound[scope] = Object.create(null));
	                if (!scopeObj._any)
	                    scopeObj._any = { preventDefault: false, stopPropagation: false, run: [] };
	                for (let key in scopeObj)
	                    scopeObj[key].run.push(b.any);
	            }
	        let name = b[platform] || b.key;
	        if (!name)
	            continue;
	        for (let scope of scopes) {
	            add(scope, name, b.run, b.preventDefault, b.stopPropagation);
	            if (b.shift)
	                add(scope, "Shift-" + name, b.shift, b.preventDefault, b.stopPropagation);
	        }
	    }
	    return bound;
	}
	function runHandlers(map, event, view, scope) {
	    let name = keyName(event);
	    let charCode = codePointAt(name, 0), isChar = codePointSize(charCode) == name.length && name != " ";
	    let prefix = "", handled = false, prevented = false, stopPropagation = false;
	    if (storedPrefix && storedPrefix.view == view && storedPrefix.scope == scope) {
	        prefix = storedPrefix.prefix + " ";
	        if (modifierCodes.indexOf(event.keyCode) < 0) {
	            prevented = true;
	            storedPrefix = null;
	        }
	    }
	    let ran = new Set;
	    let runFor = (binding) => {
	        if (binding) {
	            for (let cmd of binding.run)
	                if (!ran.has(cmd)) {
	                    ran.add(cmd);
	                    if (cmd(view, event)) {
	                        if (binding.stopPropagation)
	                            stopPropagation = true;
	                        return true;
	                    }
	                }
	            if (binding.preventDefault) {
	                if (binding.stopPropagation)
	                    stopPropagation = true;
	                prevented = true;
	            }
	        }
	        return false;
	    };
	    let scopeObj = map[scope], baseName, shiftName;
	    if (scopeObj) {
	        if (runFor(scopeObj[prefix + modifiers(name, event, !isChar)])) {
	            handled = true;
	        }
	        else if (isChar && (event.altKey || event.metaKey || event.ctrlKey) &&
	            // Ctrl-Alt may be used for AltGr on Windows
	            !(browser.windows && event.ctrlKey && event.altKey) &&
	            (baseName = base$3[event.keyCode]) && baseName != name) {
	            if (runFor(scopeObj[prefix + modifiers(baseName, event, true)])) {
	                handled = true;
	            }
	            else if (event.shiftKey && (shiftName = shift[event.keyCode]) != name && shiftName != baseName &&
	                runFor(scopeObj[prefix + modifiers(shiftName, event, false)])) {
	                handled = true;
	            }
	        }
	        else if (isChar && event.shiftKey &&
	            runFor(scopeObj[prefix + modifiers(name, event, true)])) {
	            handled = true;
	        }
	        if (!handled && runFor(scopeObj._any))
	            handled = true;
	    }
	    if (prevented)
	        handled = true;
	    if (handled && stopPropagation)
	        event.stopPropagation();
	    return handled;
	}

	/**
	Implementation of [`LayerMarker`](https://codemirror.net/6/docs/ref/#view.LayerMarker) that creates
	a rectangle at a given set of coordinates.
	*/
	class RectangleMarker {
	    /**
	    Create a marker with the given class and dimensions. If `width`
	    is null, the DOM element will get no width style.
	    */
	    constructor(className, 
	    /**
	    The left position of the marker (in pixels, document-relative).
	    */
	    left, 
	    /**
	    The top position of the marker.
	    */
	    top, 
	    /**
	    The width of the marker, or null if it shouldn't get a width assigned.
	    */
	    width, 
	    /**
	    The height of the marker.
	    */
	    height) {
	        this.className = className;
	        this.left = left;
	        this.top = top;
	        this.width = width;
	        this.height = height;
	    }
	    draw() {
	        let elt = document.createElement("div");
	        elt.className = this.className;
	        this.adjust(elt);
	        return elt;
	    }
	    update(elt, prev) {
	        if (prev.className != this.className)
	            return false;
	        this.adjust(elt);
	        return true;
	    }
	    adjust(elt) {
	        elt.style.left = this.left + "px";
	        elt.style.top = this.top + "px";
	        if (this.width != null)
	            elt.style.width = this.width + "px";
	        elt.style.height = this.height + "px";
	    }
	    eq(p) {
	        return this.left == p.left && this.top == p.top && this.width == p.width && this.height == p.height &&
	            this.className == p.className;
	    }
	    /**
	    Create a set of rectangles for the given selection range,
	    assigning them theclass`className`. Will create a single
	    rectangle for empty ranges, and a set of selection-style
	    rectangles covering the range's content (in a bidi-aware
	    way) for non-empty ones.
	    */
	    static forRange(view, className, range) {
	        if (range.empty) {
	            let pos = view.coordsAtPos(range.head, range.assoc || 1);
	            if (!pos)
	                return [];
	            let base = getBase(view);
	            return [new RectangleMarker(className, pos.left - base.left, pos.top - base.top, null, pos.bottom - pos.top)];
	        }
	        else {
	            return rectanglesForRange(view, className, range);
	        }
	    }
	}
	function getBase(view) {
	    let rect = view.scrollDOM.getBoundingClientRect();
	    let left = view.textDirection == Direction.LTR ? rect.left : rect.right - view.scrollDOM.clientWidth * view.scaleX;
	    return { left: left - view.scrollDOM.scrollLeft * view.scaleX, top: rect.top - view.scrollDOM.scrollTop * view.scaleY };
	}
	function wrappedLine(view, pos, inside) {
	    let range = EditorSelection.cursor(pos);
	    return { from: Math.max(inside.from, view.moveToLineBoundary(range, false, true).from),
	        to: Math.min(inside.to, view.moveToLineBoundary(range, true, true).from),
	        type: BlockType.Text };
	}
	function rectanglesForRange(view, className, range) {
	    if (range.to <= view.viewport.from || range.from >= view.viewport.to)
	        return [];
	    let from = Math.max(range.from, view.viewport.from), to = Math.min(range.to, view.viewport.to);
	    let ltr = view.textDirection == Direction.LTR;
	    let content = view.contentDOM, contentRect = content.getBoundingClientRect(), base = getBase(view);
	    let lineElt = content.querySelector(".cm-line"), lineStyle = lineElt && window.getComputedStyle(lineElt);
	    let leftSide = contentRect.left +
	        (lineStyle ? parseInt(lineStyle.paddingLeft) + Math.min(0, parseInt(lineStyle.textIndent)) : 0);
	    let rightSide = contentRect.right - (lineStyle ? parseInt(lineStyle.paddingRight) : 0);
	    let startBlock = blockAt(view, from), endBlock = blockAt(view, to);
	    let visualStart = startBlock.type == BlockType.Text ? startBlock : null;
	    let visualEnd = endBlock.type == BlockType.Text ? endBlock : null;
	    if (visualStart && (view.lineWrapping || startBlock.widgetLineBreaks))
	        visualStart = wrappedLine(view, from, visualStart);
	    if (visualEnd && (view.lineWrapping || endBlock.widgetLineBreaks))
	        visualEnd = wrappedLine(view, to, visualEnd);
	    if (visualStart && visualEnd && visualStart.from == visualEnd.from) {
	        return pieces(drawForLine(range.from, range.to, visualStart));
	    }
	    else {
	        let top = visualStart ? drawForLine(range.from, null, visualStart) : drawForWidget(startBlock, false);
	        let bottom = visualEnd ? drawForLine(null, range.to, visualEnd) : drawForWidget(endBlock, true);
	        let between = [];
	        if ((visualStart || startBlock).to < (visualEnd || endBlock).from - (visualStart && visualEnd ? 1 : 0) ||
	            startBlock.widgetLineBreaks > 1 && top.bottom + view.defaultLineHeight / 2 < bottom.top)
	            between.push(piece(leftSide, top.bottom, rightSide, bottom.top));
	        else if (top.bottom < bottom.top && view.elementAtHeight((top.bottom + bottom.top) / 2).type == BlockType.Text)
	            top.bottom = bottom.top = (top.bottom + bottom.top) / 2;
	        return pieces(top).concat(between).concat(pieces(bottom));
	    }
	    function piece(left, top, right, bottom) {
	        return new RectangleMarker(className, left - base.left, top - base.top - 0.01 /* C.Epsilon */, right - left, bottom - top + 0.01 /* C.Epsilon */);
	    }
	    function pieces({ top, bottom, horizontal }) {
	        let pieces = [];
	        for (let i = 0; i < horizontal.length; i += 2)
	            pieces.push(piece(horizontal[i], top, horizontal[i + 1], bottom));
	        return pieces;
	    }
	    // Gets passed from/to in line-local positions
	    function drawForLine(from, to, line) {
	        let top = 1e9, bottom = -1e9, horizontal = [];
	        function addSpan(from, fromOpen, to, toOpen, dir) {
	            // Passing 2/-2 is a kludge to force the view to return
	            // coordinates on the proper side of block widgets, since
	            // normalizing the side there, though appropriate for most
	            // coordsAtPos queries, would break selection drawing.
	            let fromCoords = view.coordsAtPos(from, (from == line.to ? -2 : 2));
	            let toCoords = view.coordsAtPos(to, (to == line.from ? 2 : -2));
	            if (!fromCoords || !toCoords)
	                return;
	            top = Math.min(fromCoords.top, toCoords.top, top);
	            bottom = Math.max(fromCoords.bottom, toCoords.bottom, bottom);
	            if (dir == Direction.LTR)
	                horizontal.push(ltr && fromOpen ? leftSide : fromCoords.left, ltr && toOpen ? rightSide : toCoords.right);
	            else
	                horizontal.push(!ltr && toOpen ? leftSide : toCoords.left, !ltr && fromOpen ? rightSide : fromCoords.right);
	        }
	        let start = from !== null && from !== void 0 ? from : line.from, end = to !== null && to !== void 0 ? to : line.to;
	        // Split the range by visible range and document line
	        for (let r of view.visibleRanges)
	            if (r.to > start && r.from < end) {
	                for (let pos = Math.max(r.from, start), endPos = Math.min(r.to, end);;) {
	                    let docLine = view.state.doc.lineAt(pos);
	                    for (let span of view.bidiSpans(docLine)) {
	                        let spanFrom = span.from + docLine.from, spanTo = span.to + docLine.from;
	                        if (spanFrom >= endPos)
	                            break;
	                        if (spanTo > pos)
	                            addSpan(Math.max(spanFrom, pos), from == null && spanFrom <= start, Math.min(spanTo, endPos), to == null && spanTo >= end, span.dir);
	                    }
	                    pos = docLine.to + 1;
	                    if (pos >= endPos)
	                        break;
	                }
	            }
	        if (horizontal.length == 0)
	            addSpan(start, from == null, end, to == null, view.textDirection);
	        return { top, bottom, horizontal };
	    }
	    function drawForWidget(block, top) {
	        let y = contentRect.top + (top ? block.top : block.bottom);
	        return { top: y, bottom: y, horizontal: [] };
	    }
	}
	function sameMarker(a, b) {
	    return a.constructor == b.constructor && a.eq(b);
	}
	class LayerView {
	    constructor(view, layer) {
	        this.view = view;
	        this.layer = layer;
	        this.drawn = [];
	        this.scaleX = 1;
	        this.scaleY = 1;
	        this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) };
	        this.dom = view.scrollDOM.appendChild(document.createElement("div"));
	        this.dom.classList.add("cm-layer");
	        if (layer.above)
	            this.dom.classList.add("cm-layer-above");
	        if (layer.class)
	            this.dom.classList.add(layer.class);
	        this.scale();
	        this.dom.setAttribute("aria-hidden", "true");
	        this.setOrder(view.state);
	        view.requestMeasure(this.measureReq);
	        if (layer.mount)
	            layer.mount(this.dom, view);
	    }
	    update(update) {
	        if (update.startState.facet(layerOrder) != update.state.facet(layerOrder))
	            this.setOrder(update.state);
	        if (this.layer.update(update, this.dom) || update.geometryChanged) {
	            this.scale();
	            update.view.requestMeasure(this.measureReq);
	        }
	    }
	    docViewUpdate(view) {
	        if (this.layer.updateOnDocViewUpdate !== false)
	            view.requestMeasure(this.measureReq);
	    }
	    setOrder(state) {
	        let pos = 0, order = state.facet(layerOrder);
	        while (pos < order.length && order[pos] != this.layer)
	            pos++;
	        this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - pos);
	    }
	    measure() {
	        return this.layer.markers(this.view);
	    }
	    scale() {
	        let { scaleX, scaleY } = this.view;
	        if (scaleX != this.scaleX || scaleY != this.scaleY) {
	            this.scaleX = scaleX;
	            this.scaleY = scaleY;
	            this.dom.style.transform = `scale(${1 / scaleX}, ${1 / scaleY})`;
	        }
	    }
	    draw(markers) {
	        if (markers.length != this.drawn.length || markers.some((p, i) => !sameMarker(p, this.drawn[i]))) {
	            let old = this.dom.firstChild, oldI = 0;
	            for (let marker of markers) {
	                if (marker.update && old && marker.constructor && this.drawn[oldI].constructor &&
	                    marker.update(old, this.drawn[oldI])) {
	                    old = old.nextSibling;
	                    oldI++;
	                }
	                else {
	                    this.dom.insertBefore(marker.draw(), old);
	                }
	            }
	            while (old) {
	                let next = old.nextSibling;
	                old.remove();
	                old = next;
	            }
	            this.drawn = markers;
	        }
	    }
	    destroy() {
	        if (this.layer.destroy)
	            this.layer.destroy(this.dom, this.view);
	        this.dom.remove();
	    }
	}
	const layerOrder = /*@__PURE__*/Facet.define();
	/**
	Define a layer.
	*/
	function layer(config) {
	    return [
	        ViewPlugin.define(v => new LayerView(v, config)),
	        layerOrder.of(config)
	    ];
	}

	const CanHidePrimary = !browser.ios; // FIXME test IE
	const selectionConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        return combineConfig(configs, {
	            cursorBlinkRate: 1200,
	            drawRangeCursor: true
	        }, {
	            cursorBlinkRate: (a, b) => Math.min(a, b),
	            drawRangeCursor: (a, b) => a || b
	        });
	    }
	});
	/**
	Returns an extension that hides the browser's native selection and
	cursor, replacing the selection with a background behind the text
	(with the `cm-selectionBackground` class), and the
	cursors with elements overlaid over the code (using
	`cm-cursor-primary` and `cm-cursor-secondary`).

	This allows the editor to display secondary selection ranges, and
	tends to produce a type of selection more in line with that users
	expect in a text editor (the native selection styling will often
	leave gaps between lines and won't fill the horizontal space after
	a line when the selection continues past it).

	It does have a performance cost, in that it requires an extra DOM
	layout cycle for many updates (the selection is drawn based on DOM
	layout information that's only available after laying out the
	content).
	*/
	function drawSelection(config = {}) {
	    return [
	        selectionConfig.of(config),
	        cursorLayer,
	        selectionLayer,
	        hideNativeSelection,
	        nativeSelectionHidden.of(true)
	    ];
	}
	function configChanged(update) {
	    return update.startState.facet(selectionConfig) != update.state.facet(selectionConfig);
	}
	const cursorLayer = /*@__PURE__*/layer({
	    above: true,
	    markers(view) {
	        let { state } = view, conf = state.facet(selectionConfig);
	        let cursors = [];
	        for (let r of state.selection.ranges) {
	            let prim = r == state.selection.main;
	            if (r.empty ? !prim || CanHidePrimary : conf.drawRangeCursor) {
	                let className = prim ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary";
	                let cursor = r.empty ? r : EditorSelection.cursor(r.head, r.head > r.anchor ? -1 : 1);
	                for (let piece of RectangleMarker.forRange(view, className, cursor))
	                    cursors.push(piece);
	            }
	        }
	        return cursors;
	    },
	    update(update, dom) {
	        if (update.transactions.some(tr => tr.selection))
	            dom.style.animationName = dom.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink";
	        let confChange = configChanged(update);
	        if (confChange)
	            setBlinkRate(update.state, dom);
	        return update.docChanged || update.selectionSet || confChange;
	    },
	    mount(dom, view) {
	        setBlinkRate(view.state, dom);
	    },
	    class: "cm-cursorLayer"
	});
	function setBlinkRate(state, dom) {
	    dom.style.animationDuration = state.facet(selectionConfig).cursorBlinkRate + "ms";
	}
	const selectionLayer = /*@__PURE__*/layer({
	    above: false,
	    markers(view) {
	        return view.state.selection.ranges.map(r => r.empty ? [] : RectangleMarker.forRange(view, "cm-selectionBackground", r))
	            .reduce((a, b) => a.concat(b));
	    },
	    update(update, dom) {
	        return update.docChanged || update.selectionSet || update.viewportChanged || configChanged(update);
	    },
	    class: "cm-selectionLayer"
	});
	const themeSpec = {
	    ".cm-line": {
	        "& ::selection": { backgroundColor: "transparent !important" },
	        "&::selection": { backgroundColor: "transparent !important" }
	    }
	};
	if (CanHidePrimary) {
	    themeSpec[".cm-line"].caretColor = "transparent !important";
	    themeSpec[".cm-content"] = { caretColor: "transparent !important" };
	}
	const hideNativeSelection = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.theme(themeSpec));

	const setDropCursorPos = /*@__PURE__*/StateEffect.define({
	    map(pos, mapping) { return pos == null ? null : mapping.mapPos(pos); }
	});
	const dropCursorPos = /*@__PURE__*/StateField.define({
	    create() { return null; },
	    update(pos, tr) {
	        if (pos != null)
	            pos = tr.changes.mapPos(pos);
	        return tr.effects.reduce((pos, e) => e.is(setDropCursorPos) ? e.value : pos, pos);
	    }
	});
	const drawDropCursor = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.view = view;
	        this.cursor = null;
	        this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };
	    }
	    update(update) {
	        var _a;
	        let cursorPos = update.state.field(dropCursorPos);
	        if (cursorPos == null) {
	            if (this.cursor != null) {
	                (_a = this.cursor) === null || _a === void 0 ? void 0 : _a.remove();
	                this.cursor = null;
	            }
	        }
	        else {
	            if (!this.cursor) {
	                this.cursor = this.view.scrollDOM.appendChild(document.createElement("div"));
	                this.cursor.className = "cm-dropCursor";
	            }
	            if (update.startState.field(dropCursorPos) != cursorPos || update.docChanged || update.geometryChanged)
	                this.view.requestMeasure(this.measureReq);
	        }
	    }
	    readPos() {
	        let { view } = this;
	        let pos = view.state.field(dropCursorPos);
	        let rect = pos != null && view.coordsAtPos(pos);
	        if (!rect)
	            return null;
	        let outer = view.scrollDOM.getBoundingClientRect();
	        return {
	            left: rect.left - outer.left + view.scrollDOM.scrollLeft * view.scaleX,
	            top: rect.top - outer.top + view.scrollDOM.scrollTop * view.scaleY,
	            height: rect.bottom - rect.top
	        };
	    }
	    drawCursor(pos) {
	        if (this.cursor) {
	            let { scaleX, scaleY } = this.view;
	            if (pos) {
	                this.cursor.style.left = pos.left / scaleX + "px";
	                this.cursor.style.top = pos.top / scaleY + "px";
	                this.cursor.style.height = pos.height / scaleY + "px";
	            }
	            else {
	                this.cursor.style.left = "-100000px";
	            }
	        }
	    }
	    destroy() {
	        if (this.cursor)
	            this.cursor.remove();
	    }
	    setDropPos(pos) {
	        if (this.view.state.field(dropCursorPos) != pos)
	            this.view.dispatch({ effects: setDropCursorPos.of(pos) });
	    }
	}, {
	    eventObservers: {
	        dragover(event) {
	            this.setDropPos(this.view.posAtCoords({ x: event.clientX, y: event.clientY }));
	        },
	        dragleave(event) {
	            if (event.target == this.view.contentDOM || !this.view.contentDOM.contains(event.relatedTarget))
	                this.setDropPos(null);
	        },
	        dragend() {
	            this.setDropPos(null);
	        },
	        drop() {
	            this.setDropPos(null);
	        }
	    }
	});
	/**
	Draws a cursor at the current drop position when something is
	dragged over the editor.
	*/
	function dropCursor() {
	    return [dropCursorPos, drawDropCursor];
	}

	function iterMatches(doc, re, from, to, f) {
	    re.lastIndex = 0;
	    for (let cursor = doc.iterRange(from, to), pos = from, m; !cursor.next().done; pos += cursor.value.length) {
	        if (!cursor.lineBreak)
	            while (m = re.exec(cursor.value))
	                f(pos + m.index, m);
	    }
	}
	function matchRanges(view, maxLength) {
	    let visible = view.visibleRanges;
	    if (visible.length == 1 && visible[0].from == view.viewport.from &&
	        visible[0].to == view.viewport.to)
	        return visible;
	    let result = [];
	    for (let { from, to } of visible) {
	        from = Math.max(view.state.doc.lineAt(from).from, from - maxLength);
	        to = Math.min(view.state.doc.lineAt(to).to, to + maxLength);
	        if (result.length && result[result.length - 1].to >= from)
	            result[result.length - 1].to = to;
	        else
	            result.push({ from, to });
	    }
	    return result;
	}
	/**
	Helper class used to make it easier to maintain decorations on
	visible code that matches a given regular expression. To be used
	in a [view plugin](https://codemirror.net/6/docs/ref/#view.ViewPlugin). Instances of this object
	represent a matching configuration.
	*/
	class MatchDecorator {
	    /**
	    Create a decorator.
	    */
	    constructor(config) {
	        const { regexp, decoration, decorate, boundary, maxLength = 1000 } = config;
	        if (!regexp.global)
	            throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");
	        this.regexp = regexp;
	        if (decorate) {
	            this.addMatch = (match, view, from, add) => decorate(add, from, from + match[0].length, match, view);
	        }
	        else if (typeof decoration == "function") {
	            this.addMatch = (match, view, from, add) => {
	                let deco = decoration(match, view, from);
	                if (deco)
	                    add(from, from + match[0].length, deco);
	            };
	        }
	        else if (decoration) {
	            this.addMatch = (match, _view, from, add) => add(from, from + match[0].length, decoration);
	        }
	        else {
	            throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");
	        }
	        this.boundary = boundary;
	        this.maxLength = maxLength;
	    }
	    /**
	    Compute the full set of decorations for matches in the given
	    view's viewport. You'll want to call this when initializing your
	    plugin.
	    */
	    createDeco(view) {
	        let build = new RangeSetBuilder(), add = build.add.bind(build);
	        for (let { from, to } of matchRanges(view, this.maxLength))
	            iterMatches(view.state.doc, this.regexp, from, to, (from, m) => this.addMatch(m, view, from, add));
	        return build.finish();
	    }
	    /**
	    Update a set of decorations for a view update. `deco` _must_ be
	    the set of decorations produced by _this_ `MatchDecorator` for
	    the view state before the update.
	    */
	    updateDeco(update, deco) {
	        let changeFrom = 1e9, changeTo = -1;
	        if (update.docChanged)
	            update.changes.iterChanges((_f, _t, from, to) => {
	                if (to > update.view.viewport.from && from < update.view.viewport.to) {
	                    changeFrom = Math.min(from, changeFrom);
	                    changeTo = Math.max(to, changeTo);
	                }
	            });
	        if (update.viewportChanged || changeTo - changeFrom > 1000)
	            return this.createDeco(update.view);
	        if (changeTo > -1)
	            return this.updateRange(update.view, deco.map(update.changes), changeFrom, changeTo);
	        return deco;
	    }
	    updateRange(view, deco, updateFrom, updateTo) {
	        for (let r of view.visibleRanges) {
	            let from = Math.max(r.from, updateFrom), to = Math.min(r.to, updateTo);
	            if (to > from) {
	                let fromLine = view.state.doc.lineAt(from), toLine = fromLine.to < to ? view.state.doc.lineAt(to) : fromLine;
	                let start = Math.max(r.from, fromLine.from), end = Math.min(r.to, toLine.to);
	                if (this.boundary) {
	                    for (; from > fromLine.from; from--)
	                        if (this.boundary.test(fromLine.text[from - 1 - fromLine.from])) {
	                            start = from;
	                            break;
	                        }
	                    for (; to < toLine.to; to++)
	                        if (this.boundary.test(toLine.text[to - toLine.from])) {
	                            end = to;
	                            break;
	                        }
	                }
	                let ranges = [], m;
	                let add = (from, to, deco) => ranges.push(deco.range(from, to));
	                if (fromLine == toLine) {
	                    this.regexp.lastIndex = start - fromLine.from;
	                    while ((m = this.regexp.exec(fromLine.text)) && m.index < end - fromLine.from)
	                        this.addMatch(m, view, m.index + fromLine.from, add);
	                }
	                else {
	                    iterMatches(view.state.doc, this.regexp, start, end, (from, m) => this.addMatch(m, view, from, add));
	                }
	                deco = deco.update({ filterFrom: start, filterTo: end, filter: (from, to) => from < start || to > end, add: ranges });
	            }
	        }
	        return deco;
	    }
	}

	const UnicodeRegexpSupport = /x/.unicode != null ? "gu" : "g";
	const Specials = /*@__PURE__*/new RegExp("[\u0000-\u0008\u000a-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]", UnicodeRegexpSupport);
	const Names = {
	    0: "null",
	    7: "bell",
	    8: "backspace",
	    10: "newline",
	    11: "vertical tab",
	    13: "carriage return",
	    27: "escape",
	    8203: "zero width space",
	    8204: "zero width non-joiner",
	    8205: "zero width joiner",
	    8206: "left-to-right mark",
	    8207: "right-to-left mark",
	    8232: "line separator",
	    8237: "left-to-right override",
	    8238: "right-to-left override",
	    8294: "left-to-right isolate",
	    8295: "right-to-left isolate",
	    8297: "pop directional isolate",
	    8233: "paragraph separator",
	    65279: "zero width no-break space",
	    65532: "object replacement"
	};
	let _supportsTabSize = null;
	function supportsTabSize() {
	    var _a;
	    if (_supportsTabSize == null && typeof document != "undefined" && document.body) {
	        let styles = document.body.style;
	        _supportsTabSize = ((_a = styles.tabSize) !== null && _a !== void 0 ? _a : styles.MozTabSize) != null;
	    }
	    return _supportsTabSize || false;
	}
	const specialCharConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        let config = combineConfig(configs, {
	            render: null,
	            specialChars: Specials,
	            addSpecialChars: null
	        });
	        if (config.replaceTabs = !supportsTabSize())
	            config.specialChars = new RegExp("\t|" + config.specialChars.source, UnicodeRegexpSupport);
	        if (config.addSpecialChars)
	            config.specialChars = new RegExp(config.specialChars.source + "|" + config.addSpecialChars.source, UnicodeRegexpSupport);
	        return config;
	    }
	});
	/**
	Returns an extension that installs highlighting of special
	characters.
	*/
	function highlightSpecialChars(
	/**
	Configuration options.
	*/
	config = {}) {
	    return [specialCharConfig.of(config), specialCharPlugin()];
	}
	let _plugin = null;
	function specialCharPlugin() {
	    return _plugin || (_plugin = ViewPlugin.fromClass(class {
	        constructor(view) {
	            this.view = view;
	            this.decorations = Decoration.none;
	            this.decorationCache = Object.create(null);
	            this.decorator = this.makeDecorator(view.state.facet(specialCharConfig));
	            this.decorations = this.decorator.createDeco(view);
	        }
	        makeDecorator(conf) {
	            return new MatchDecorator({
	                regexp: conf.specialChars,
	                decoration: (m, view, pos) => {
	                    let { doc } = view.state;
	                    let code = codePointAt(m[0], 0);
	                    if (code == 9) {
	                        let line = doc.lineAt(pos);
	                        let size = view.state.tabSize, col = countColumn(line.text, size, pos - line.from);
	                        return Decoration.replace({
	                            widget: new TabWidget((size - (col % size)) * this.view.defaultCharacterWidth / this.view.scaleX)
	                        });
	                    }
	                    return this.decorationCache[code] ||
	                        (this.decorationCache[code] = Decoration.replace({ widget: new SpecialCharWidget(conf, code) }));
	                },
	                boundary: conf.replaceTabs ? undefined : /[^]/
	            });
	        }
	        update(update) {
	            let conf = update.state.facet(specialCharConfig);
	            if (update.startState.facet(specialCharConfig) != conf) {
	                this.decorator = this.makeDecorator(conf);
	                this.decorations = this.decorator.createDeco(update.view);
	            }
	            else {
	                this.decorations = this.decorator.updateDeco(update, this.decorations);
	            }
	        }
	    }, {
	        decorations: v => v.decorations
	    }));
	}
	const DefaultPlaceholder = "\u2022";
	// Assigns placeholder characters from the Control Pictures block to
	// ASCII control characters
	function placeholder$1(code) {
	    if (code >= 32)
	        return DefaultPlaceholder;
	    if (code == 10)
	        return "\u2424";
	    return String.fromCharCode(9216 + code);
	}
	class SpecialCharWidget extends WidgetType {
	    constructor(options, code) {
	        super();
	        this.options = options;
	        this.code = code;
	    }
	    eq(other) { return other.code == this.code; }
	    toDOM(view) {
	        let ph = placeholder$1(this.code);
	        let desc = view.state.phrase("Control character") + " " + (Names[this.code] || "0x" + this.code.toString(16));
	        let custom = this.options.render && this.options.render(this.code, desc, ph);
	        if (custom)
	            return custom;
	        let span = document.createElement("span");
	        span.textContent = ph;
	        span.title = desc;
	        span.setAttribute("aria-label", desc);
	        span.className = "cm-specialChar";
	        return span;
	    }
	    ignoreEvent() { return false; }
	}
	class TabWidget extends WidgetType {
	    constructor(width) {
	        super();
	        this.width = width;
	    }
	    eq(other) { return other.width == this.width; }
	    toDOM() {
	        let span = document.createElement("span");
	        span.textContent = "\t";
	        span.className = "cm-tab";
	        span.style.width = this.width + "px";
	        return span;
	    }
	    ignoreEvent() { return false; }
	}

	/**
	Mark lines that have a cursor on them with the `"cm-activeLine"`
	DOM class.
	*/
	function highlightActiveLine() {
	    return activeLineHighlighter;
	}
	const lineDeco = /*@__PURE__*/Decoration.line({ class: "cm-activeLine" });
	const activeLineHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.decorations = this.getDeco(view);
	    }
	    update(update) {
	        if (update.docChanged || update.selectionSet)
	            this.decorations = this.getDeco(update.view);
	    }
	    getDeco(view) {
	        let lastLineStart = -1, deco = [];
	        for (let r of view.state.selection.ranges) {
	            let line = view.lineBlockAt(r.head);
	            if (line.from > lastLineStart) {
	                deco.push(lineDeco.range(line.from));
	                lastLineStart = line.from;
	            }
	        }
	        return Decoration.set(deco);
	    }
	}, {
	    decorations: v => v.decorations
	});

	class Placeholder extends WidgetType {
	    constructor(content) {
	        super();
	        this.content = content;
	    }
	    toDOM() {
	        let wrap = document.createElement("span");
	        wrap.className = "cm-placeholder";
	        wrap.style.pointerEvents = "none";
	        wrap.appendChild(typeof this.content == "string" ? document.createTextNode(this.content) : this.content);
	        if (typeof this.content == "string")
	            wrap.setAttribute("aria-label", "placeholder " + this.content);
	        else
	            wrap.setAttribute("aria-hidden", "true");
	        return wrap;
	    }
	    coordsAt(dom) {
	        let rects = dom.firstChild ? clientRectsFor(dom.firstChild) : [];
	        if (!rects.length)
	            return null;
	        let style = window.getComputedStyle(dom.parentNode);
	        let rect = flattenRect(rects[0], style.direction != "rtl");
	        let lineHeight = parseInt(style.lineHeight);
	        if (rect.bottom - rect.top > lineHeight * 1.5)
	            return { left: rect.left, right: rect.right, top: rect.top, bottom: rect.top + lineHeight };
	        return rect;
	    }
	    ignoreEvent() { return false; }
	}
	/**
	Extension that enables a placeholder—a piece of example content
	to show when the editor is empty.
	*/
	function placeholder(content) {
	    return ViewPlugin.fromClass(class {
	        constructor(view) {
	            this.view = view;
	            this.placeholder = content
	                ? Decoration.set([Decoration.widget({ widget: new Placeholder(content), side: 1 }).range(0)])
	                : Decoration.none;
	        }
	        get decorations() { return this.view.state.doc.length ? Decoration.none : this.placeholder; }
	    }, { decorations: v => v.decorations });
	}

	// Don't compute precise column positions for line offsets above this
	// (since it could get expensive). Assume offset==column for them.
	const MaxOff = 2000;
	function rectangleFor(state, a, b) {
	    let startLine = Math.min(a.line, b.line), endLine = Math.max(a.line, b.line);
	    let ranges = [];
	    if (a.off > MaxOff || b.off > MaxOff || a.col < 0 || b.col < 0) {
	        let startOff = Math.min(a.off, b.off), endOff = Math.max(a.off, b.off);
	        for (let i = startLine; i <= endLine; i++) {
	            let line = state.doc.line(i);
	            if (line.length <= endOff)
	                ranges.push(EditorSelection.range(line.from + startOff, line.to + endOff));
	        }
	    }
	    else {
	        let startCol = Math.min(a.col, b.col), endCol = Math.max(a.col, b.col);
	        for (let i = startLine; i <= endLine; i++) {
	            let line = state.doc.line(i);
	            let start = findColumn$1(line.text, startCol, state.tabSize, true);
	            if (start < 0) {
	                ranges.push(EditorSelection.cursor(line.to));
	            }
	            else {
	                let end = findColumn$1(line.text, endCol, state.tabSize);
	                ranges.push(EditorSelection.range(line.from + start, line.from + end));
	            }
	        }
	    }
	    return ranges;
	}
	function absoluteColumn(view, x) {
	    let ref = view.coordsAtPos(view.viewport.from);
	    return ref ? Math.round(Math.abs((ref.left - x) / view.defaultCharacterWidth)) : -1;
	}
	function getPos(view, event) {
	    let offset = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
	    let line = view.state.doc.lineAt(offset), off = offset - line.from;
	    let col = off > MaxOff ? -1
	        : off == line.length ? absoluteColumn(view, event.clientX)
	            : countColumn(line.text, view.state.tabSize, offset - line.from);
	    return { line: line.number, col, off };
	}
	function rectangleSelectionStyle(view, event) {
	    let start = getPos(view, event), startSel = view.state.selection;
	    if (!start)
	        return null;
	    return {
	        update(update) {
	            if (update.docChanged) {
	                let newStart = update.changes.mapPos(update.startState.doc.line(start.line).from);
	                let newLine = update.state.doc.lineAt(newStart);
	                start = { line: newLine.number, col: start.col, off: Math.min(start.off, newLine.length) };
	                startSel = startSel.map(update.changes);
	            }
	        },
	        get(event, _extend, multiple) {
	            let cur = getPos(view, event);
	            if (!cur)
	                return startSel;
	            let ranges = rectangleFor(view.state, start, cur);
	            if (!ranges.length)
	                return startSel;
	            if (multiple)
	                return EditorSelection.create(ranges.concat(startSel.ranges));
	            else
	                return EditorSelection.create(ranges);
	        }
	    };
	}
	/**
	Create an extension that enables rectangular selections. By
	default, it will react to left mouse drag with the Alt key held
	down. When such a selection occurs, the text within the rectangle
	that was dragged over will be selected, as one selection
	[range](https://codemirror.net/6/docs/ref/#state.SelectionRange) per line.
	*/
	function rectangularSelection(options) {
	    let filter = (options === null || options === void 0 ? void 0 : options.eventFilter) || (e => e.altKey && e.button == 0);
	    return EditorView.mouseSelectionStyle.of((view, event) => filter(event) ? rectangleSelectionStyle(view, event) : null);
	}
	const keys = {
	    Alt: [18, e => !!e.altKey],
	    Control: [17, e => !!e.ctrlKey],
	    Shift: [16, e => !!e.shiftKey],
	    Meta: [91, e => !!e.metaKey]
	};
	const showCrosshair = { style: "cursor: crosshair" };
	/**
	Returns an extension that turns the pointer cursor into a
	crosshair when a given modifier key, defaulting to Alt, is held
	down. Can serve as a visual hint that rectangular selection is
	going to happen when paired with
	[`rectangularSelection`](https://codemirror.net/6/docs/ref/#view.rectangularSelection).
	*/
	function crosshairCursor(options = {}) {
	    let [code, getter] = keys[options.key || "Alt"];
	    let plugin = ViewPlugin.fromClass(class {
	        constructor(view) {
	            this.view = view;
	            this.isDown = false;
	        }
	        set(isDown) {
	            if (this.isDown != isDown) {
	                this.isDown = isDown;
	                this.view.update([]);
	            }
	        }
	    }, {
	        eventObservers: {
	            keydown(e) {
	                this.set(e.keyCode == code || getter(e));
	            },
	            keyup(e) {
	                if (e.keyCode == code || !getter(e))
	                    this.set(false);
	            },
	            mousemove(e) {
	                this.set(getter(e));
	            }
	        }
	    });
	    return [
	        plugin,
	        EditorView.contentAttributes.of(view => { var _a; return ((_a = view.plugin(plugin)) === null || _a === void 0 ? void 0 : _a.isDown) ? showCrosshair : null; })
	    ];
	}

	const Outside = "-10000px";
	class TooltipViewManager {
	    constructor(view, facet, createTooltipView, removeTooltipView) {
	        this.facet = facet;
	        this.createTooltipView = createTooltipView;
	        this.removeTooltipView = removeTooltipView;
	        this.input = view.state.facet(facet);
	        this.tooltips = this.input.filter(t => t);
	        let prev = null;
	        this.tooltipViews = this.tooltips.map(t => prev = createTooltipView(t, prev));
	    }
	    update(update, above) {
	        var _a;
	        let input = update.state.facet(this.facet);
	        let tooltips = input.filter(x => x);
	        if (input === this.input) {
	            for (let t of this.tooltipViews)
	                if (t.update)
	                    t.update(update);
	            return false;
	        }
	        let tooltipViews = [], newAbove = above ? [] : null;
	        for (let i = 0; i < tooltips.length; i++) {
	            let tip = tooltips[i], known = -1;
	            if (!tip)
	                continue;
	            for (let i = 0; i < this.tooltips.length; i++) {
	                let other = this.tooltips[i];
	                if (other && other.create == tip.create)
	                    known = i;
	            }
	            if (known < 0) {
	                tooltipViews[i] = this.createTooltipView(tip, i ? tooltipViews[i - 1] : null);
	                if (newAbove)
	                    newAbove[i] = !!tip.above;
	            }
	            else {
	                let tooltipView = tooltipViews[i] = this.tooltipViews[known];
	                if (newAbove)
	                    newAbove[i] = above[known];
	                if (tooltipView.update)
	                    tooltipView.update(update);
	            }
	        }
	        for (let t of this.tooltipViews)
	            if (tooltipViews.indexOf(t) < 0) {
	                this.removeTooltipView(t);
	                (_a = t.destroy) === null || _a === void 0 ? void 0 : _a.call(t);
	            }
	        if (above) {
	            newAbove.forEach((val, i) => above[i] = val);
	            above.length = newAbove.length;
	        }
	        this.input = input;
	        this.tooltips = tooltips;
	        this.tooltipViews = tooltipViews;
	        return true;
	    }
	}
	function windowSpace(view) {
	    let { win } = view;
	    return { top: 0, left: 0, bottom: win.innerHeight, right: win.innerWidth };
	}
	const tooltipConfig = /*@__PURE__*/Facet.define({
	    combine: values => {
	        var _a, _b, _c;
	        return ({
	            position: browser.ios ? "absolute" : ((_a = values.find(conf => conf.position)) === null || _a === void 0 ? void 0 : _a.position) || "fixed",
	            parent: ((_b = values.find(conf => conf.parent)) === null || _b === void 0 ? void 0 : _b.parent) || null,
	            tooltipSpace: ((_c = values.find(conf => conf.tooltipSpace)) === null || _c === void 0 ? void 0 : _c.tooltipSpace) || windowSpace,
	        });
	    }
	});
	const knownHeight = /*@__PURE__*/new WeakMap();
	const tooltipPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.view = view;
	        this.above = [];
	        this.inView = true;
	        this.madeAbsolute = false;
	        this.lastTransaction = 0;
	        this.measureTimeout = -1;
	        let config = view.state.facet(tooltipConfig);
	        this.position = config.position;
	        this.parent = config.parent;
	        this.classes = view.themeClasses;
	        this.createContainer();
	        this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this };
	        this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null;
	        this.manager = new TooltipViewManager(view, showTooltip, (t, p) => this.createTooltip(t, p), t => {
	            if (this.resizeObserver)
	                this.resizeObserver.unobserve(t.dom);
	            t.dom.remove();
	        });
	        this.above = this.manager.tooltips.map(t => !!t.above);
	        this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver(entries => {
	            if (Date.now() > this.lastTransaction - 50 &&
	                entries.length > 0 && entries[entries.length - 1].intersectionRatio < 1)
	                this.measureSoon();
	        }, { threshold: [1] }) : null;
	        this.observeIntersection();
	        view.win.addEventListener("resize", this.measureSoon = this.measureSoon.bind(this));
	        this.maybeMeasure();
	    }
	    createContainer() {
	        if (this.parent) {
	            this.container = document.createElement("div");
	            this.container.style.position = "relative";
	            this.container.className = this.view.themeClasses;
	            this.parent.appendChild(this.container);
	        }
	        else {
	            this.container = this.view.dom;
	        }
	    }
	    observeIntersection() {
	        if (this.intersectionObserver) {
	            this.intersectionObserver.disconnect();
	            for (let tooltip of this.manager.tooltipViews)
	                this.intersectionObserver.observe(tooltip.dom);
	        }
	    }
	    measureSoon() {
	        if (this.measureTimeout < 0)
	            this.measureTimeout = setTimeout(() => {
	                this.measureTimeout = -1;
	                this.maybeMeasure();
	            }, 50);
	    }
	    update(update) {
	        if (update.transactions.length)
	            this.lastTransaction = Date.now();
	        let updated = this.manager.update(update, this.above);
	        if (updated)
	            this.observeIntersection();
	        let shouldMeasure = updated || update.geometryChanged;
	        let newConfig = update.state.facet(tooltipConfig);
	        if (newConfig.position != this.position && !this.madeAbsolute) {
	            this.position = newConfig.position;
	            for (let t of this.manager.tooltipViews)
	                t.dom.style.position = this.position;
	            shouldMeasure = true;
	        }
	        if (newConfig.parent != this.parent) {
	            if (this.parent)
	                this.container.remove();
	            this.parent = newConfig.parent;
	            this.createContainer();
	            for (let t of this.manager.tooltipViews)
	                this.container.appendChild(t.dom);
	            shouldMeasure = true;
	        }
	        else if (this.parent && this.view.themeClasses != this.classes) {
	            this.classes = this.container.className = this.view.themeClasses;
	        }
	        if (shouldMeasure)
	            this.maybeMeasure();
	    }
	    createTooltip(tooltip, prev) {
	        let tooltipView = tooltip.create(this.view);
	        let before = prev ? prev.dom : null;
	        tooltipView.dom.classList.add("cm-tooltip");
	        if (tooltip.arrow && !tooltipView.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")) {
	            let arrow = document.createElement("div");
	            arrow.className = "cm-tooltip-arrow";
	            tooltipView.dom.insertBefore(arrow, before);
	        }
	        tooltipView.dom.style.position = this.position;
	        tooltipView.dom.style.top = Outside;
	        tooltipView.dom.style.left = "0px";
	        this.container.insertBefore(tooltipView.dom, before);
	        if (tooltipView.mount)
	            tooltipView.mount(this.view);
	        if (this.resizeObserver)
	            this.resizeObserver.observe(tooltipView.dom);
	        return tooltipView;
	    }
	    destroy() {
	        var _a, _b, _c;
	        this.view.win.removeEventListener("resize", this.measureSoon);
	        for (let tooltipView of this.manager.tooltipViews) {
	            tooltipView.dom.remove();
	            (_a = tooltipView.destroy) === null || _a === void 0 ? void 0 : _a.call(tooltipView);
	        }
	        if (this.parent)
	            this.container.remove();
	        (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
	        (_c = this.intersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
	        clearTimeout(this.measureTimeout);
	    }
	    readMeasure() {
	        let editor = this.view.dom.getBoundingClientRect();
	        let scaleX = 1, scaleY = 1, makeAbsolute = false;
	        if (this.position == "fixed" && this.manager.tooltipViews.length) {
	            let { dom } = this.manager.tooltipViews[0];
	            if (browser.gecko) {
	                // Firefox sets the element's `offsetParent` to the
	                // transformed element when a transform interferes with fixed
	                // positioning.
	                makeAbsolute = dom.offsetParent != this.container.ownerDocument.body;
	            }
	            else if (dom.style.top == Outside && dom.style.left == "0px") {
	                // On other browsers, we have to awkwardly try and use other
	                // information to detect a transform.
	                let rect = dom.getBoundingClientRect();
	                makeAbsolute = Math.abs(rect.top + 10000) > 1 || Math.abs(rect.left) > 1;
	            }
	        }
	        if (makeAbsolute || this.position == "absolute") {
	            if (this.parent) {
	                let rect = this.parent.getBoundingClientRect();
	                if (rect.width && rect.height) {
	                    scaleX = rect.width / this.parent.offsetWidth;
	                    scaleY = rect.height / this.parent.offsetHeight;
	                }
	            }
	            else {
	                ({ scaleX, scaleY } = this.view.viewState);
	            }
	        }
	        return {
	            editor,
	            parent: this.parent ? this.container.getBoundingClientRect() : editor,
	            pos: this.manager.tooltips.map((t, i) => {
	                let tv = this.manager.tooltipViews[i];
	                return tv.getCoords ? tv.getCoords(t.pos) : this.view.coordsAtPos(t.pos);
	            }),
	            size: this.manager.tooltipViews.map(({ dom }) => dom.getBoundingClientRect()),
	            space: this.view.state.facet(tooltipConfig).tooltipSpace(this.view),
	            scaleX, scaleY, makeAbsolute
	        };
	    }
	    writeMeasure(measured) {
	        var _a;
	        if (measured.makeAbsolute) {
	            this.madeAbsolute = true;
	            this.position = "absolute";
	            for (let t of this.manager.tooltipViews)
	                t.dom.style.position = "absolute";
	        }
	        let { editor, space, scaleX, scaleY } = measured;
	        let others = [];
	        for (let i = 0; i < this.manager.tooltips.length; i++) {
	            let tooltip = this.manager.tooltips[i], tView = this.manager.tooltipViews[i], { dom } = tView;
	            let pos = measured.pos[i], size = measured.size[i];
	            // Hide tooltips that are outside of the editor.
	            if (!pos || pos.bottom <= Math.max(editor.top, space.top) ||
	                pos.top >= Math.min(editor.bottom, space.bottom) ||
	                pos.right < Math.max(editor.left, space.left) - .1 ||
	                pos.left > Math.min(editor.right, space.right) + .1) {
	                dom.style.top = Outside;
	                continue;
	            }
	            let arrow = tooltip.arrow ? tView.dom.querySelector(".cm-tooltip-arrow") : null;
	            let arrowHeight = arrow ? 7 /* Arrow.Size */ : 0;
	            let width = size.right - size.left, height = (_a = knownHeight.get(tView)) !== null && _a !== void 0 ? _a : size.bottom - size.top;
	            let offset = tView.offset || noOffset, ltr = this.view.textDirection == Direction.LTR;
	            let left = size.width > space.right - space.left ? (ltr ? space.left : space.right - size.width)
	                : ltr ? Math.min(pos.left - (arrow ? 14 /* Arrow.Offset */ : 0) + offset.x, space.right - width)
	                    : Math.max(space.left, pos.left - width + (arrow ? 14 /* Arrow.Offset */ : 0) - offset.x);
	            let above = this.above[i];
	            if (!tooltip.strictSide && (above
	                ? pos.top - (size.bottom - size.top) - offset.y < space.top
	                : pos.bottom + (size.bottom - size.top) + offset.y > space.bottom) &&
	                above == (space.bottom - pos.bottom > pos.top - space.top))
	                above = this.above[i] = !above;
	            let spaceVert = (above ? pos.top - space.top : space.bottom - pos.bottom) - arrowHeight;
	            if (spaceVert < height && tView.resize !== false) {
	                if (spaceVert < this.view.defaultLineHeight) {
	                    dom.style.top = Outside;
	                    continue;
	                }
	                knownHeight.set(tView, height);
	                dom.style.height = (height = spaceVert) / scaleY + "px";
	            }
	            else if (dom.style.height) {
	                dom.style.height = "";
	            }
	            let top = above ? pos.top - height - arrowHeight - offset.y : pos.bottom + arrowHeight + offset.y;
	            let right = left + width;
	            if (tView.overlap !== true)
	                for (let r of others)
	                    if (r.left < right && r.right > left && r.top < top + height && r.bottom > top)
	                        top = above ? r.top - height - 2 - arrowHeight : r.bottom + arrowHeight + 2;
	            if (this.position == "absolute") {
	                dom.style.top = (top - measured.parent.top) / scaleY + "px";
	                dom.style.left = (left - measured.parent.left) / scaleX + "px";
	            }
	            else {
	                dom.style.top = top / scaleY + "px";
	                dom.style.left = left / scaleX + "px";
	            }
	            if (arrow) {
	                let arrowLeft = pos.left + (ltr ? offset.x : -offset.x) - (left + 14 /* Arrow.Offset */ - 7 /* Arrow.Size */);
	                arrow.style.left = arrowLeft / scaleX + "px";
	            }
	            if (tView.overlap !== true)
	                others.push({ left, top, right, bottom: top + height });
	            dom.classList.toggle("cm-tooltip-above", above);
	            dom.classList.toggle("cm-tooltip-below", !above);
	            if (tView.positioned)
	                tView.positioned(measured.space);
	        }
	    }
	    maybeMeasure() {
	        if (this.manager.tooltips.length) {
	            if (this.view.inView)
	                this.view.requestMeasure(this.measureReq);
	            if (this.inView != this.view.inView) {
	                this.inView = this.view.inView;
	                if (!this.inView)
	                    for (let tv of this.manager.tooltipViews)
	                        tv.dom.style.top = Outside;
	            }
	        }
	    }
	}, {
	    eventObservers: {
	        scroll() { this.maybeMeasure(); }
	    }
	});
	const baseTheme$5 = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-tooltip": {
	        zIndex: 100,
	        boxSizing: "border-box"
	    },
	    "&light .cm-tooltip": {
	        border: "1px solid #bbb",
	        backgroundColor: "#f5f5f5"
	    },
	    "&light .cm-tooltip-section:not(:first-child)": {
	        borderTop: "1px solid #bbb",
	    },
	    "&dark .cm-tooltip": {
	        backgroundColor: "#333338",
	        color: "white"
	    },
	    ".cm-tooltip-arrow": {
	        height: `${7 /* Arrow.Size */}px`,
	        width: `${7 /* Arrow.Size */ * 2}px`,
	        position: "absolute",
	        zIndex: -1,
	        overflow: "hidden",
	        "&:before, &:after": {
	            content: "''",
	            position: "absolute",
	            width: 0,
	            height: 0,
	            borderLeft: `${7 /* Arrow.Size */}px solid transparent`,
	            borderRight: `${7 /* Arrow.Size */}px solid transparent`,
	        },
	        ".cm-tooltip-above &": {
	            bottom: `-${7 /* Arrow.Size */}px`,
	            "&:before": {
	                borderTop: `${7 /* Arrow.Size */}px solid #bbb`,
	            },
	            "&:after": {
	                borderTop: `${7 /* Arrow.Size */}px solid #f5f5f5`,
	                bottom: "1px"
	            }
	        },
	        ".cm-tooltip-below &": {
	            top: `-${7 /* Arrow.Size */}px`,
	            "&:before": {
	                borderBottom: `${7 /* Arrow.Size */}px solid #bbb`,
	            },
	            "&:after": {
	                borderBottom: `${7 /* Arrow.Size */}px solid #f5f5f5`,
	                top: "1px"
	            }
	        },
	    },
	    "&dark .cm-tooltip .cm-tooltip-arrow": {
	        "&:before": {
	            borderTopColor: "#333338",
	            borderBottomColor: "#333338"
	        },
	        "&:after": {
	            borderTopColor: "transparent",
	            borderBottomColor: "transparent"
	        }
	    }
	});
	const noOffset = { x: 0, y: 0 };
	/**
	Facet to which an extension can add a value to show a tooltip.
	*/
	const showTooltip = /*@__PURE__*/Facet.define({
	    enables: [tooltipPlugin, baseTheme$5]
	});
	const showHoverTooltip = /*@__PURE__*/Facet.define({
	    combine: inputs => inputs.reduce((a, i) => a.concat(i), [])
	});
	class HoverTooltipHost {
	    // Needs to be static so that host tooltip instances always match
	    static create(view) {
	        return new HoverTooltipHost(view);
	    }
	    constructor(view) {
	        this.view = view;
	        this.mounted = false;
	        this.dom = document.createElement("div");
	        this.dom.classList.add("cm-tooltip-hover");
	        this.manager = new TooltipViewManager(view, showHoverTooltip, (t, p) => this.createHostedView(t, p), t => t.dom.remove());
	    }
	    createHostedView(tooltip, prev) {
	        let hostedView = tooltip.create(this.view);
	        hostedView.dom.classList.add("cm-tooltip-section");
	        this.dom.insertBefore(hostedView.dom, prev ? prev.dom.nextSibling : this.dom.firstChild);
	        if (this.mounted && hostedView.mount)
	            hostedView.mount(this.view);
	        return hostedView;
	    }
	    mount(view) {
	        for (let hostedView of this.manager.tooltipViews) {
	            if (hostedView.mount)
	                hostedView.mount(view);
	        }
	        this.mounted = true;
	    }
	    positioned(space) {
	        for (let hostedView of this.manager.tooltipViews) {
	            if (hostedView.positioned)
	                hostedView.positioned(space);
	        }
	    }
	    update(update) {
	        this.manager.update(update);
	    }
	    destroy() {
	        var _a;
	        for (let t of this.manager.tooltipViews)
	            (_a = t.destroy) === null || _a === void 0 ? void 0 : _a.call(t);
	    }
	    passProp(name) {
	        let value = undefined;
	        for (let view of this.manager.tooltipViews) {
	            let given = view[name];
	            if (given !== undefined) {
	                if (value === undefined)
	                    value = given;
	                else if (value !== given)
	                    return undefined;
	            }
	        }
	        return value;
	    }
	    get offset() { return this.passProp("offset"); }
	    get getCoords() { return this.passProp("getCoords"); }
	    get overlap() { return this.passProp("overlap"); }
	    get resize() { return this.passProp("resize"); }
	}
	const showHoverTooltipHost = /*@__PURE__*/showTooltip.compute([showHoverTooltip], state => {
	    let tooltips = state.facet(showHoverTooltip);
	    if (tooltips.length === 0)
	        return null;
	    return {
	        pos: Math.min(...tooltips.map(t => t.pos)),
	        end: Math.max(...tooltips.map(t => { var _a; return (_a = t.end) !== null && _a !== void 0 ? _a : t.pos; })),
	        create: HoverTooltipHost.create,
	        above: tooltips[0].above,
	        arrow: tooltips.some(t => t.arrow),
	    };
	});
	class HoverPlugin {
	    constructor(view, source, field, setHover, hoverTime) {
	        this.view = view;
	        this.source = source;
	        this.field = field;
	        this.setHover = setHover;
	        this.hoverTime = hoverTime;
	        this.hoverTimeout = -1;
	        this.restartTimeout = -1;
	        this.pending = null;
	        this.lastMove = { x: 0, y: 0, target: view.dom, time: 0 };
	        this.checkHover = this.checkHover.bind(this);
	        view.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this));
	        view.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this));
	    }
	    update() {
	        if (this.pending) {
	            this.pending = null;
	            clearTimeout(this.restartTimeout);
	            this.restartTimeout = setTimeout(() => this.startHover(), 20);
	        }
	    }
	    get active() {
	        return this.view.state.field(this.field);
	    }
	    checkHover() {
	        this.hoverTimeout = -1;
	        if (this.active.length)
	            return;
	        let hovered = Date.now() - this.lastMove.time;
	        if (hovered < this.hoverTime)
	            this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime - hovered);
	        else
	            this.startHover();
	    }
	    startHover() {
	        clearTimeout(this.restartTimeout);
	        let { view, lastMove } = this;
	        let desc = view.docView.nearest(lastMove.target);
	        if (!desc)
	            return;
	        let pos, side = 1;
	        if (desc instanceof WidgetView$1) {
	            pos = desc.posAtStart;
	        }
	        else {
	            pos = view.posAtCoords(lastMove);
	            if (pos == null)
	                return;
	            let posCoords = view.coordsAtPos(pos);
	            if (!posCoords ||
	                lastMove.y < posCoords.top || lastMove.y > posCoords.bottom ||
	                lastMove.x < posCoords.left - view.defaultCharacterWidth ||
	                lastMove.x > posCoords.right + view.defaultCharacterWidth)
	                return;
	            let bidi = view.bidiSpans(view.state.doc.lineAt(pos)).find(s => s.from <= pos && s.to >= pos);
	            let rtl = bidi && bidi.dir == Direction.RTL ? -1 : 1;
	            side = (lastMove.x < posCoords.left ? -rtl : rtl);
	        }
	        let open = this.source(view, pos, side);
	        if (open === null || open === void 0 ? void 0 : open.then) {
	            let pending = this.pending = { pos };
	            open.then(result => {
	                if (this.pending == pending) {
	                    this.pending = null;
	                    if (result && !(Array.isArray(result) && !result.length))
	                        view.dispatch({ effects: this.setHover.of(Array.isArray(result) ? result : [result]) });
	                }
	            }, e => logException(view.state, e, "hover tooltip"));
	        }
	        else if (open && !(Array.isArray(open) && !open.length)) {
	            view.dispatch({ effects: this.setHover.of(Array.isArray(open) ? open : [open]) });
	        }
	    }
	    get tooltip() {
	        let plugin = this.view.plugin(tooltipPlugin);
	        let index = plugin ? plugin.manager.tooltips.findIndex(t => t.create == HoverTooltipHost.create) : -1;
	        return index > -1 ? plugin.manager.tooltipViews[index] : null;
	    }
	    mousemove(event) {
	        var _a, _b;
	        this.lastMove = { x: event.clientX, y: event.clientY, target: event.target, time: Date.now() };
	        if (this.hoverTimeout < 0)
	            this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime);
	        let { active, tooltip } = this;
	        if (active.length && tooltip && !isInTooltip(tooltip.dom, event) || this.pending) {
	            let { pos } = active[0] || this.pending, end = (_b = (_a = active[0]) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : pos;
	            if ((pos == end ? this.view.posAtCoords(this.lastMove) != pos
	                : !isOverRange(this.view, pos, end, event.clientX, event.clientY))) {
	                this.view.dispatch({ effects: this.setHover.of([]) });
	                this.pending = null;
	            }
	        }
	    }
	    mouseleave(event) {
	        clearTimeout(this.hoverTimeout);
	        this.hoverTimeout = -1;
	        let { active } = this;
	        if (active.length) {
	            let { tooltip } = this;
	            let inTooltip = tooltip && tooltip.dom.contains(event.relatedTarget);
	            if (!inTooltip)
	                this.view.dispatch({ effects: this.setHover.of([]) });
	            else
	                this.watchTooltipLeave(tooltip.dom);
	        }
	    }
	    watchTooltipLeave(tooltip) {
	        let watch = (event) => {
	            tooltip.removeEventListener("mouseleave", watch);
	            if (this.active.length && !this.view.dom.contains(event.relatedTarget))
	                this.view.dispatch({ effects: this.setHover.of([]) });
	        };
	        tooltip.addEventListener("mouseleave", watch);
	    }
	    destroy() {
	        clearTimeout(this.hoverTimeout);
	        this.view.dom.removeEventListener("mouseleave", this.mouseleave);
	        this.view.dom.removeEventListener("mousemove", this.mousemove);
	    }
	}
	const tooltipMargin = 4;
	function isInTooltip(tooltip, event) {
	    let rect = tooltip.getBoundingClientRect();
	    return event.clientX >= rect.left - tooltipMargin && event.clientX <= rect.right + tooltipMargin &&
	        event.clientY >= rect.top - tooltipMargin && event.clientY <= rect.bottom + tooltipMargin;
	}
	function isOverRange(view, from, to, x, y, margin) {
	    let rect = view.scrollDOM.getBoundingClientRect();
	    let docBottom = view.documentTop + view.documentPadding.top + view.contentHeight;
	    if (rect.left > x || rect.right < x || rect.top > y || Math.min(rect.bottom, docBottom) < y)
	        return false;
	    let pos = view.posAtCoords({ x, y }, false);
	    return pos >= from && pos <= to;
	}
	/**
	Set up a hover tooltip, which shows up when the pointer hovers
	over ranges of text. The callback is called when the mouse hovers
	over the document text. It should, if there is a tooltip
	associated with position `pos`, return the tooltip description
	(either directly or in a promise). The `side` argument indicates
	on which side of the position the pointer is—it will be -1 if the
	pointer is before the position, 1 if after the position.

	Note that all hover tooltips are hosted within a single tooltip
	container element. This allows multiple tooltips over the same
	range to be "merged" together without overlapping.
	*/
	function hoverTooltip(source, options = {}) {
	    let setHover = StateEffect.define();
	    let hoverState = StateField.define({
	        create() { return []; },
	        update(value, tr) {
	            if (value.length) {
	                if (options.hideOnChange && (tr.docChanged || tr.selection))
	                    value = [];
	                else if (options.hideOn)
	                    value = value.filter(v => !options.hideOn(tr, v));
	                if (tr.docChanged) {
	                    let mapped = [];
	                    for (let tooltip of value) {
	                        let newPos = tr.changes.mapPos(tooltip.pos, -1, MapMode.TrackDel);
	                        if (newPos != null) {
	                            let copy = Object.assign(Object.create(null), tooltip);
	                            copy.pos = newPos;
	                            if (copy.end != null)
	                                copy.end = tr.changes.mapPos(copy.end);
	                            mapped.push(copy);
	                        }
	                    }
	                    value = mapped;
	                }
	            }
	            for (let effect of tr.effects) {
	                if (effect.is(setHover))
	                    value = effect.value;
	                if (effect.is(closeHoverTooltipEffect))
	                    value = [];
	            }
	            return value;
	        },
	        provide: f => showHoverTooltip.from(f)
	    });
	    return [
	        hoverState,
	        ViewPlugin.define(view => new HoverPlugin(view, source, hoverState, setHover, options.hoverTime || 300 /* Hover.Time */)),
	        showHoverTooltipHost
	    ];
	}
	/**
	Get the active tooltip view for a given tooltip, if available.
	*/
	function getTooltip(view, tooltip) {
	    let plugin = view.plugin(tooltipPlugin);
	    if (!plugin)
	        return null;
	    let found = plugin.manager.tooltips.indexOf(tooltip);
	    return found < 0 ? null : plugin.manager.tooltipViews[found];
	}
	const closeHoverTooltipEffect = /*@__PURE__*/StateEffect.define();

	const panelConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        let topContainer, bottomContainer;
	        for (let c of configs) {
	            topContainer = topContainer || c.topContainer;
	            bottomContainer = bottomContainer || c.bottomContainer;
	        }
	        return { topContainer, bottomContainer };
	    }
	});
	/**
	Get the active panel created by the given constructor, if any.
	This can be useful when you need access to your panels' DOM
	structure.
	*/
	function getPanel(view, panel) {
	    let plugin = view.plugin(panelPlugin);
	    let index = plugin ? plugin.specs.indexOf(panel) : -1;
	    return index > -1 ? plugin.panels[index] : null;
	}
	const panelPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.input = view.state.facet(showPanel);
	        this.specs = this.input.filter(s => s);
	        this.panels = this.specs.map(spec => spec(view));
	        let conf = view.state.facet(panelConfig);
	        this.top = new PanelGroup(view, true, conf.topContainer);
	        this.bottom = new PanelGroup(view, false, conf.bottomContainer);
	        this.top.sync(this.panels.filter(p => p.top));
	        this.bottom.sync(this.panels.filter(p => !p.top));
	        for (let p of this.panels) {
	            p.dom.classList.add("cm-panel");
	            if (p.mount)
	                p.mount();
	        }
	    }
	    update(update) {
	        let conf = update.state.facet(panelConfig);
	        if (this.top.container != conf.topContainer) {
	            this.top.sync([]);
	            this.top = new PanelGroup(update.view, true, conf.topContainer);
	        }
	        if (this.bottom.container != conf.bottomContainer) {
	            this.bottom.sync([]);
	            this.bottom = new PanelGroup(update.view, false, conf.bottomContainer);
	        }
	        this.top.syncClasses();
	        this.bottom.syncClasses();
	        let input = update.state.facet(showPanel);
	        if (input != this.input) {
	            let specs = input.filter(x => x);
	            let panels = [], top = [], bottom = [], mount = [];
	            for (let spec of specs) {
	                let known = this.specs.indexOf(spec), panel;
	                if (known < 0) {
	                    panel = spec(update.view);
	                    mount.push(panel);
	                }
	                else {
	                    panel = this.panels[known];
	                    if (panel.update)
	                        panel.update(update);
	                }
	                panels.push(panel);
	                (panel.top ? top : bottom).push(panel);
	            }
	            this.specs = specs;
	            this.panels = panels;
	            this.top.sync(top);
	            this.bottom.sync(bottom);
	            for (let p of mount) {
	                p.dom.classList.add("cm-panel");
	                if (p.mount)
	                    p.mount();
	            }
	        }
	        else {
	            for (let p of this.panels)
	                if (p.update)
	                    p.update(update);
	        }
	    }
	    destroy() {
	        this.top.sync([]);
	        this.bottom.sync([]);
	    }
	}, {
	    provide: plugin => EditorView.scrollMargins.of(view => {
	        let value = view.plugin(plugin);
	        return value && { top: value.top.scrollMargin(), bottom: value.bottom.scrollMargin() };
	    })
	});
	class PanelGroup {
	    constructor(view, top, container) {
	        this.view = view;
	        this.top = top;
	        this.container = container;
	        this.dom = undefined;
	        this.classes = "";
	        this.panels = [];
	        this.syncClasses();
	    }
	    sync(panels) {
	        for (let p of this.panels)
	            if (p.destroy && panels.indexOf(p) < 0)
	                p.destroy();
	        this.panels = panels;
	        this.syncDOM();
	    }
	    syncDOM() {
	        if (this.panels.length == 0) {
	            if (this.dom) {
	                this.dom.remove();
	                this.dom = undefined;
	            }
	            return;
	        }
	        if (!this.dom) {
	            this.dom = document.createElement("div");
	            this.dom.className = this.top ? "cm-panels cm-panels-top" : "cm-panels cm-panels-bottom";
	            this.dom.style[this.top ? "top" : "bottom"] = "0";
	            let parent = this.container || this.view.dom;
	            parent.insertBefore(this.dom, this.top ? parent.firstChild : null);
	        }
	        let curDOM = this.dom.firstChild;
	        for (let panel of this.panels) {
	            if (panel.dom.parentNode == this.dom) {
	                while (curDOM != panel.dom)
	                    curDOM = rm(curDOM);
	                curDOM = curDOM.nextSibling;
	            }
	            else {
	                this.dom.insertBefore(panel.dom, curDOM);
	            }
	        }
	        while (curDOM)
	            curDOM = rm(curDOM);
	    }
	    scrollMargin() {
	        return !this.dom || this.container ? 0
	            : Math.max(0, this.top ?
	                this.dom.getBoundingClientRect().bottom - Math.max(0, this.view.scrollDOM.getBoundingClientRect().top) :
	                Math.min(innerHeight, this.view.scrollDOM.getBoundingClientRect().bottom) - this.dom.getBoundingClientRect().top);
	    }
	    syncClasses() {
	        if (!this.container || this.classes == this.view.themeClasses)
	            return;
	        for (let cls of this.classes.split(" "))
	            if (cls)
	                this.container.classList.remove(cls);
	        for (let cls of (this.classes = this.view.themeClasses).split(" "))
	            if (cls)
	                this.container.classList.add(cls);
	    }
	}
	function rm(node) {
	    let next = node.nextSibling;
	    node.remove();
	    return next;
	}
	/**
	Opening a panel is done by providing a constructor function for
	the panel through this facet. (The panel is closed again when its
	constructor is no longer provided.) Values of `null` are ignored.
	*/
	const showPanel = /*@__PURE__*/Facet.define({
	    enables: panelPlugin
	});

	/**
	A gutter marker represents a bit of information attached to a line
	in a specific gutter. Your own custom markers have to extend this
	class.
	*/
	class GutterMarker extends RangeValue {
	    /**
	    @internal
	    */
	    compare(other) {
	        return this == other || this.constructor == other.constructor && this.eq(other);
	    }
	    /**
	    Compare this marker to another marker of the same type.
	    */
	    eq(other) { return false; }
	    /**
	    Called if the marker has a `toDOM` method and its representation
	    was removed from a gutter.
	    */
	    destroy(dom) { }
	}
	GutterMarker.prototype.elementClass = "";
	GutterMarker.prototype.toDOM = undefined;
	GutterMarker.prototype.mapMode = MapMode.TrackBefore;
	GutterMarker.prototype.startSide = GutterMarker.prototype.endSide = -1;
	GutterMarker.prototype.point = true;
	/**
	Facet used to add a class to all gutter elements for a given line.
	Markers given to this facet should _only_ define an
	[`elementclass`](https://codemirror.net/6/docs/ref/#view.GutterMarker.elementClass), not a
	[`toDOM`](https://codemirror.net/6/docs/ref/#view.GutterMarker.toDOM) (or the marker will appear
	in all gutters for the line).
	*/
	const gutterLineClass = /*@__PURE__*/Facet.define();
	const defaults$4 = {
	    class: "",
	    renderEmptyElements: false,
	    elementStyle: "",
	    markers: () => RangeSet.empty,
	    lineMarker: () => null,
	    widgetMarker: () => null,
	    lineMarkerChange: null,
	    initialSpacer: null,
	    updateSpacer: null,
	    domEventHandlers: {}
	};
	const activeGutters = /*@__PURE__*/Facet.define();
	/**
	Define an editor gutter. The order in which the gutters appear is
	determined by their extension priority.
	*/
	function gutter(config) {
	    return [gutters(), activeGutters.of(Object.assign(Object.assign({}, defaults$4), config))];
	}
	const unfixGutters = /*@__PURE__*/Facet.define({
	    combine: values => values.some(x => x)
	});
	/**
	The gutter-drawing plugin is automatically enabled when you add a
	gutter, but you can use this function to explicitly configure it.

	Unless `fixed` is explicitly set to `false`, the gutters are
	fixed, meaning they don't scroll along with the content
	horizontally (except on Internet Explorer, which doesn't support
	CSS [`position:
	sticky`](https://developer.mozilla.org/en-US/docs/Web/CSS/position#sticky)).
	*/
	function gutters(config) {
	    let result = [
	        gutterView,
	    ];
	    if (config && config.fixed === false)
	        result.push(unfixGutters.of(true));
	    return result;
	}
	const gutterView = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.view = view;
	        this.prevViewport = view.viewport;
	        this.dom = document.createElement("div");
	        this.dom.className = "cm-gutters";
	        this.dom.setAttribute("aria-hidden", "true");
	        this.dom.style.minHeight = (this.view.contentHeight / this.view.scaleY) + "px";
	        this.gutters = view.state.facet(activeGutters).map(conf => new SingleGutterView(view, conf));
	        for (let gutter of this.gutters)
	            this.dom.appendChild(gutter.dom);
	        this.fixed = !view.state.facet(unfixGutters);
	        if (this.fixed) {
	            // FIXME IE11 fallback, which doesn't support position: sticky,
	            // by using position: relative + event handlers that realign the
	            // gutter (or just force fixed=false on IE11?)
	            this.dom.style.position = "sticky";
	        }
	        this.syncGutters(false);
	        view.scrollDOM.insertBefore(this.dom, view.contentDOM);
	    }
	    update(update) {
	        if (this.updateGutters(update)) {
	            // Detach during sync when the viewport changed significantly
	            // (such as during scrolling), since for large updates that is
	            // faster.
	            let vpA = this.prevViewport, vpB = update.view.viewport;
	            let vpOverlap = Math.min(vpA.to, vpB.to) - Math.max(vpA.from, vpB.from);
	            this.syncGutters(vpOverlap < (vpB.to - vpB.from) * 0.8);
	        }
	        if (update.geometryChanged) {
	            this.dom.style.minHeight = (this.view.contentHeight / this.view.scaleY) + "px";
	        }
	        if (this.view.state.facet(unfixGutters) != !this.fixed) {
	            this.fixed = !this.fixed;
	            this.dom.style.position = this.fixed ? "sticky" : "";
	        }
	        this.prevViewport = update.view.viewport;
	    }
	    syncGutters(detach) {
	        let after = this.dom.nextSibling;
	        if (detach)
	            this.dom.remove();
	        let lineClasses = RangeSet.iter(this.view.state.facet(gutterLineClass), this.view.viewport.from);
	        let classSet = [];
	        let contexts = this.gutters.map(gutter => new UpdateContext(gutter, this.view.viewport, -this.view.documentPadding.top));
	        for (let line of this.view.viewportLineBlocks) {
	            if (classSet.length)
	                classSet = [];
	            if (Array.isArray(line.type)) {
	                let first = true;
	                for (let b of line.type) {
	                    if (b.type == BlockType.Text && first) {
	                        advanceCursor(lineClasses, classSet, b.from);
	                        for (let cx of contexts)
	                            cx.line(this.view, b, classSet);
	                        first = false;
	                    }
	                    else if (b.widget) {
	                        for (let cx of contexts)
	                            cx.widget(this.view, b);
	                    }
	                }
	            }
	            else if (line.type == BlockType.Text) {
	                advanceCursor(lineClasses, classSet, line.from);
	                for (let cx of contexts)
	                    cx.line(this.view, line, classSet);
	            }
	            else if (line.widget) {
	                for (let cx of contexts)
	                    cx.widget(this.view, line);
	            }
	        }
	        for (let cx of contexts)
	            cx.finish();
	        if (detach)
	            this.view.scrollDOM.insertBefore(this.dom, after);
	    }
	    updateGutters(update) {
	        let prev = update.startState.facet(activeGutters), cur = update.state.facet(activeGutters);
	        let change = update.docChanged || update.heightChanged || update.viewportChanged ||
	            !RangeSet.eq(update.startState.facet(gutterLineClass), update.state.facet(gutterLineClass), update.view.viewport.from, update.view.viewport.to);
	        if (prev == cur) {
	            for (let gutter of this.gutters)
	                if (gutter.update(update))
	                    change = true;
	        }
	        else {
	            change = true;
	            let gutters = [];
	            for (let conf of cur) {
	                let known = prev.indexOf(conf);
	                if (known < 0) {
	                    gutters.push(new SingleGutterView(this.view, conf));
	                }
	                else {
	                    this.gutters[known].update(update);
	                    gutters.push(this.gutters[known]);
	                }
	            }
	            for (let g of this.gutters) {
	                g.dom.remove();
	                if (gutters.indexOf(g) < 0)
	                    g.destroy();
	            }
	            for (let g of gutters)
	                this.dom.appendChild(g.dom);
	            this.gutters = gutters;
	        }
	        return change;
	    }
	    destroy() {
	        for (let view of this.gutters)
	            view.destroy();
	        this.dom.remove();
	    }
	}, {
	    provide: plugin => EditorView.scrollMargins.of(view => {
	        let value = view.plugin(plugin);
	        if (!value || value.gutters.length == 0 || !value.fixed)
	            return null;
	        return view.textDirection == Direction.LTR
	            ? { left: value.dom.offsetWidth * view.scaleX }
	            : { right: value.dom.offsetWidth * view.scaleX };
	    })
	});
	function asArray(val) { return (Array.isArray(val) ? val : [val]); }
	function advanceCursor(cursor, collect, pos) {
	    while (cursor.value && cursor.from <= pos) {
	        if (cursor.from == pos)
	            collect.push(cursor.value);
	        cursor.next();
	    }
	}
	class UpdateContext {
	    constructor(gutter, viewport, height) {
	        this.gutter = gutter;
	        this.height = height;
	        this.i = 0;
	        this.cursor = RangeSet.iter(gutter.markers, viewport.from);
	    }
	    addElement(view, block, markers) {
	        let { gutter } = this, above = (block.top - this.height) / view.scaleY, height = block.height / view.scaleY;
	        if (this.i == gutter.elements.length) {
	            let newElt = new GutterElement(view, height, above, markers);
	            gutter.elements.push(newElt);
	            gutter.dom.appendChild(newElt.dom);
	        }
	        else {
	            gutter.elements[this.i].update(view, height, above, markers);
	        }
	        this.height = block.bottom;
	        this.i++;
	    }
	    line(view, line, extraMarkers) {
	        let localMarkers = [];
	        advanceCursor(this.cursor, localMarkers, line.from);
	        if (extraMarkers.length)
	            localMarkers = localMarkers.concat(extraMarkers);
	        let forLine = this.gutter.config.lineMarker(view, line, localMarkers);
	        if (forLine)
	            localMarkers.unshift(forLine);
	        let gutter = this.gutter;
	        if (localMarkers.length == 0 && !gutter.config.renderEmptyElements)
	            return;
	        this.addElement(view, line, localMarkers);
	    }
	    widget(view, block) {
	        let marker = this.gutter.config.widgetMarker(view, block.widget, block);
	        if (marker)
	            this.addElement(view, block, [marker]);
	    }
	    finish() {
	        let gutter = this.gutter;
	        while (gutter.elements.length > this.i) {
	            let last = gutter.elements.pop();
	            gutter.dom.removeChild(last.dom);
	            last.destroy();
	        }
	    }
	}
	class SingleGutterView {
	    constructor(view, config) {
	        this.view = view;
	        this.config = config;
	        this.elements = [];
	        this.spacer = null;
	        this.dom = document.createElement("div");
	        this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
	        for (let prop in config.domEventHandlers) {
	            this.dom.addEventListener(prop, (event) => {
	                let target = event.target, y;
	                if (target != this.dom && this.dom.contains(target)) {
	                    while (target.parentNode != this.dom)
	                        target = target.parentNode;
	                    let rect = target.getBoundingClientRect();
	                    y = (rect.top + rect.bottom) / 2;
	                }
	                else {
	                    y = event.clientY;
	                }
	                let line = view.lineBlockAtHeight(y - view.documentTop);
	                if (config.domEventHandlers[prop](view, line, event))
	                    event.preventDefault();
	            });
	        }
	        this.markers = asArray(config.markers(view));
	        if (config.initialSpacer) {
	            this.spacer = new GutterElement(view, 0, 0, [config.initialSpacer(view)]);
	            this.dom.appendChild(this.spacer.dom);
	            this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none";
	        }
	    }
	    update(update) {
	        let prevMarkers = this.markers;
	        this.markers = asArray(this.config.markers(update.view));
	        if (this.spacer && this.config.updateSpacer) {
	            let updated = this.config.updateSpacer(this.spacer.markers[0], update);
	            if (updated != this.spacer.markers[0])
	                this.spacer.update(update.view, 0, 0, [updated]);
	        }
	        let vp = update.view.viewport;
	        return !RangeSet.eq(this.markers, prevMarkers, vp.from, vp.to) ||
	            (this.config.lineMarkerChange ? this.config.lineMarkerChange(update) : false);
	    }
	    destroy() {
	        for (let elt of this.elements)
	            elt.destroy();
	    }
	}
	class GutterElement {
	    constructor(view, height, above, markers) {
	        this.height = -1;
	        this.above = 0;
	        this.markers = [];
	        this.dom = document.createElement("div");
	        this.dom.className = "cm-gutterElement";
	        this.update(view, height, above, markers);
	    }
	    update(view, height, above, markers) {
	        if (this.height != height) {
	            this.height = height;
	            this.dom.style.height = height + "px";
	        }
	        if (this.above != above)
	            this.dom.style.marginTop = (this.above = above) ? above + "px" : "";
	        if (!sameMarkers(this.markers, markers))
	            this.setMarkers(view, markers);
	    }
	    setMarkers(view, markers) {
	        let cls = "cm-gutterElement", domPos = this.dom.firstChild;
	        for (let iNew = 0, iOld = 0;;) {
	            let skipTo = iOld, marker = iNew < markers.length ? markers[iNew++] : null, matched = false;
	            if (marker) {
	                let c = marker.elementClass;
	                if (c)
	                    cls += " " + c;
	                for (let i = iOld; i < this.markers.length; i++)
	                    if (this.markers[i].compare(marker)) {
	                        skipTo = i;
	                        matched = true;
	                        break;
	                    }
	            }
	            else {
	                skipTo = this.markers.length;
	            }
	            while (iOld < skipTo) {
	                let next = this.markers[iOld++];
	                if (next.toDOM) {
	                    next.destroy(domPos);
	                    let after = domPos.nextSibling;
	                    domPos.remove();
	                    domPos = after;
	                }
	            }
	            if (!marker)
	                break;
	            if (marker.toDOM) {
	                if (matched)
	                    domPos = domPos.nextSibling;
	                else
	                    this.dom.insertBefore(marker.toDOM(view), domPos);
	            }
	            if (matched)
	                iOld++;
	        }
	        this.dom.className = cls;
	        this.markers = markers;
	    }
	    destroy() {
	        this.setMarkers(null, []); // First argument not used unless creating markers
	    }
	}
	function sameMarkers(a, b) {
	    if (a.length != b.length)
	        return false;
	    for (let i = 0; i < a.length; i++)
	        if (!a[i].compare(b[i]))
	            return false;
	    return true;
	}
	/**
	Facet used to provide markers to the line number gutter.
	*/
	const lineNumberMarkers = /*@__PURE__*/Facet.define();
	const lineNumberConfig = /*@__PURE__*/Facet.define({
	    combine(values) {
	        return combineConfig(values, { formatNumber: String, domEventHandlers: {} }, {
	            domEventHandlers(a, b) {
	                let result = Object.assign({}, a);
	                for (let event in b) {
	                    let exists = result[event], add = b[event];
	                    result[event] = exists ? (view, line, event) => exists(view, line, event) || add(view, line, event) : add;
	                }
	                return result;
	            }
	        });
	    }
	});
	class NumberMarker extends GutterMarker {
	    constructor(number) {
	        super();
	        this.number = number;
	    }
	    eq(other) { return this.number == other.number; }
	    toDOM() { return document.createTextNode(this.number); }
	}
	function formatNumber(view, number) {
	    return view.state.facet(lineNumberConfig).formatNumber(number, view.state);
	}
	const lineNumberGutter = /*@__PURE__*/activeGutters.compute([lineNumberConfig], state => ({
	    class: "cm-lineNumbers",
	    renderEmptyElements: false,
	    markers(view) { return view.state.facet(lineNumberMarkers); },
	    lineMarker(view, line, others) {
	        if (others.some(m => m.toDOM))
	            return null;
	        return new NumberMarker(formatNumber(view, view.state.doc.lineAt(line.from).number));
	    },
	    widgetMarker: () => null,
	    lineMarkerChange: update => update.startState.facet(lineNumberConfig) != update.state.facet(lineNumberConfig),
	    initialSpacer(view) {
	        return new NumberMarker(formatNumber(view, maxLineNumber(view.state.doc.lines)));
	    },
	    updateSpacer(spacer, update) {
	        let max = formatNumber(update.view, maxLineNumber(update.view.state.doc.lines));
	        return max == spacer.number ? spacer : new NumberMarker(max);
	    },
	    domEventHandlers: state.facet(lineNumberConfig).domEventHandlers
	}));
	/**
	Create a line number gutter extension.
	*/
	function lineNumbers(config = {}) {
	    return [
	        lineNumberConfig.of(config),
	        gutters(),
	        lineNumberGutter
	    ];
	}
	function maxLineNumber(lines) {
	    let last = 9;
	    while (last < lines)
	        last = last * 10 + 9;
	    return last;
	}
	const activeLineGutterMarker = /*@__PURE__*/new class extends GutterMarker {
	    constructor() {
	        super(...arguments);
	        this.elementClass = "cm-activeLineGutter";
	    }
	};
	const activeLineGutterHighlighter = /*@__PURE__*/gutterLineClass.compute(["selection"], state => {
	    let marks = [], last = -1;
	    for (let range of state.selection.ranges) {
	        let linePos = state.doc.lineAt(range.head).from;
	        if (linePos > last) {
	            last = linePos;
	            marks.push(activeLineGutterMarker.range(linePos));
	        }
	    }
	    return RangeSet.of(marks);
	});
	/**
	Returns an extension that adds a `cm-activeLineGutter` class to
	all gutter elements on the [active
	line](https://codemirror.net/6/docs/ref/#view.highlightActiveLine).
	*/
	function highlightActiveLineGutter() {
	    return activeLineGutterHighlighter;
	}

	/**
	The default maximum length of a `TreeBuffer` node.
	*/
	const DefaultBufferLength = 1024;
	let nextPropID = 0;
	class Range {
	    constructor(from, to) {
	        this.from = from;
	        this.to = to;
	    }
	}
	/**
	Each [node type](#common.NodeType) or [individual tree](#common.Tree)
	can have metadata associated with it in props. Instances of this
	class represent prop names.
	*/
	class NodeProp {
	    /**
	    Create a new node prop type.
	    */
	    constructor(config = {}) {
	        this.id = nextPropID++;
	        this.perNode = !!config.perNode;
	        this.deserialize = config.deserialize || (() => {
	            throw new Error("This node type doesn't define a deserialize function");
	        });
	    }
	    /**
	    This is meant to be used with
	    [`NodeSet.extend`](#common.NodeSet.extend) or
	    [`LRParser.configure`](#lr.ParserConfig.props) to compute
	    prop values for each node type in the set. Takes a [match
	    object](#common.NodeType^match) or function that returns undefined
	    if the node type doesn't get this prop, and the prop's value if
	    it does.
	    */
	    add(match) {
	        if (this.perNode)
	            throw new RangeError("Can't add per-node props to node types");
	        if (typeof match != "function")
	            match = NodeType.match(match);
	        return (type) => {
	            let result = match(type);
	            return result === undefined ? null : [this, result];
	        };
	    }
	}
	/**
	Prop that is used to describe matching delimiters. For opening
	delimiters, this holds an array of node names (written as a
	space-separated string when declaring this prop in a grammar)
	for the node types of closing delimiters that match it.
	*/
	NodeProp.closedBy = new NodeProp({ deserialize: str => str.split(" ") });
	/**
	The inverse of [`closedBy`](#common.NodeProp^closedBy). This is
	attached to closing delimiters, holding an array of node names
	of types of matching opening delimiters.
	*/
	NodeProp.openedBy = new NodeProp({ deserialize: str => str.split(" ") });
	/**
	Used to assign node types to groups (for example, all node
	types that represent an expression could be tagged with an
	`"Expression"` group).
	*/
	NodeProp.group = new NodeProp({ deserialize: str => str.split(" ") });
	/**
	Attached to nodes to indicate these should be
	[displayed](https://codemirror.net/docs/ref/#language.syntaxTree)
	in a bidirectional text isolate, so that direction-neutral
	characters on their sides don't incorrectly get associated with
	surrounding text. You'll generally want to set this for nodes
	that contain arbitrary text, like strings and comments, and for
	nodes that appear _inside_ arbitrary text, like HTML tags. When
	not given a value, in a grammar declaration, defaults to
	`"auto"`.
	*/
	NodeProp.isolate = new NodeProp({ deserialize: value => {
	        if (value && value != "rtl" && value != "ltr" && value != "auto")
	            throw new RangeError("Invalid value for isolate: " + value);
	        return value || "auto";
	    } });
	/**
	The hash of the [context](#lr.ContextTracker.constructor)
	that the node was parsed in, if any. Used to limit reuse of
	contextual nodes.
	*/
	NodeProp.contextHash = new NodeProp({ perNode: true });
	/**
	The distance beyond the end of the node that the tokenizer
	looked ahead for any of the tokens inside the node. (The LR
	parser only stores this when it is larger than 25, for
	efficiency reasons.)
	*/
	NodeProp.lookAhead = new NodeProp({ perNode: true });
	/**
	This per-node prop is used to replace a given node, or part of a
	node, with another tree. This is useful to include trees from
	different languages in mixed-language parsers.
	*/
	NodeProp.mounted = new NodeProp({ perNode: true });
	/**
	A mounted tree, which can be [stored](#common.NodeProp^mounted) on
	a tree node to indicate that parts of its content are
	represented by another tree.
	*/
	class MountedTree {
	    constructor(
	    /**
	    The inner tree.
	    */
	    tree, 
	    /**
	    If this is null, this tree replaces the entire node (it will
	    be included in the regular iteration instead of its host
	    node). If not, only the given ranges are considered to be
	    covered by this tree. This is used for trees that are mixed in
	    a way that isn't strictly hierarchical. Such mounted trees are
	    only entered by [`resolveInner`](#common.Tree.resolveInner)
	    and [`enter`](#common.SyntaxNode.enter).
	    */
	    overlay, 
	    /**
	    The parser used to create this subtree.
	    */
	    parser) {
	        this.tree = tree;
	        this.overlay = overlay;
	        this.parser = parser;
	    }
	    /**
	    @internal
	    */
	    static get(tree) {
	        return tree && tree.props && tree.props[NodeProp.mounted.id];
	    }
	}
	const noProps = Object.create(null);
	/**
	Each node in a syntax tree has a node type associated with it.
	*/
	class NodeType {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The name of the node type. Not necessarily unique, but if the
	    grammar was written properly, different node types with the
	    same name within a node set should play the same semantic
	    role.
	    */
	    name, 
	    /**
	    @internal
	    */
	    props, 
	    /**
	    The id of this node in its set. Corresponds to the term ids
	    used in the parser.
	    */
	    id, 
	    /**
	    @internal
	    */
	    flags = 0) {
	        this.name = name;
	        this.props = props;
	        this.id = id;
	        this.flags = flags;
	    }
	    /**
	    Define a node type.
	    */
	    static define(spec) {
	        let props = spec.props && spec.props.length ? Object.create(null) : noProps;
	        let flags = (spec.top ? 1 /* NodeFlag.Top */ : 0) | (spec.skipped ? 2 /* NodeFlag.Skipped */ : 0) |
	            (spec.error ? 4 /* NodeFlag.Error */ : 0) | (spec.name == null ? 8 /* NodeFlag.Anonymous */ : 0);
	        let type = new NodeType(spec.name || "", props, spec.id, flags);
	        if (spec.props)
	            for (let src of spec.props) {
	                if (!Array.isArray(src))
	                    src = src(type);
	                if (src) {
	                    if (src[0].perNode)
	                        throw new RangeError("Can't store a per-node prop on a node type");
	                    props[src[0].id] = src[1];
	                }
	            }
	        return type;
	    }
	    /**
	    Retrieves a node prop for this type. Will return `undefined` if
	    the prop isn't present on this node.
	    */
	    prop(prop) { return this.props[prop.id]; }
	    /**
	    True when this is the top node of a grammar.
	    */
	    get isTop() { return (this.flags & 1 /* NodeFlag.Top */) > 0; }
	    /**
	    True when this node is produced by a skip rule.
	    */
	    get isSkipped() { return (this.flags & 2 /* NodeFlag.Skipped */) > 0; }
	    /**
	    Indicates whether this is an error node.
	    */
	    get isError() { return (this.flags & 4 /* NodeFlag.Error */) > 0; }
	    /**
	    When true, this node type doesn't correspond to a user-declared
	    named node, for example because it is used to cache repetition.
	    */
	    get isAnonymous() { return (this.flags & 8 /* NodeFlag.Anonymous */) > 0; }
	    /**
	    Returns true when this node's name or one of its
	    [groups](#common.NodeProp^group) matches the given string.
	    */
	    is(name) {
	        if (typeof name == 'string') {
	            if (this.name == name)
	                return true;
	            let group = this.prop(NodeProp.group);
	            return group ? group.indexOf(name) > -1 : false;
	        }
	        return this.id == name;
	    }
	    /**
	    Create a function from node types to arbitrary values by
	    specifying an object whose property names are node or
	    [group](#common.NodeProp^group) names. Often useful with
	    [`NodeProp.add`](#common.NodeProp.add). You can put multiple
	    names, separated by spaces, in a single property name to map
	    multiple node names to a single value.
	    */
	    static match(map) {
	        let direct = Object.create(null);
	        for (let prop in map)
	            for (let name of prop.split(" "))
	                direct[name] = map[prop];
	        return (node) => {
	            for (let groups = node.prop(NodeProp.group), i = -1; i < (groups ? groups.length : 0); i++) {
	                let found = direct[i < 0 ? node.name : groups[i]];
	                if (found)
	                    return found;
	            }
	        };
	    }
	}
	/**
	An empty dummy node type to use when no actual type is available.
	*/
	NodeType.none = new NodeType("", Object.create(null), 0, 8 /* NodeFlag.Anonymous */);
	/**
	A node set holds a collection of node types. It is used to
	compactly represent trees by storing their type ids, rather than a
	full pointer to the type object, in a numeric array. Each parser
	[has](#lr.LRParser.nodeSet) a node set, and [tree
	buffers](#common.TreeBuffer) can only store collections of nodes
	from the same set. A set can have a maximum of 2**16 (65536) node
	types in it, so that the ids fit into 16-bit typed array slots.
	*/
	class NodeSet {
	    /**
	    Create a set with the given types. The `id` property of each
	    type should correspond to its position within the array.
	    */
	    constructor(
	    /**
	    The node types in this set, by id.
	    */
	    types) {
	        this.types = types;
	        for (let i = 0; i < types.length; i++)
	            if (types[i].id != i)
	                throw new RangeError("Node type ids should correspond to array positions when creating a node set");
	    }
	    /**
	    Create a copy of this set with some node properties added. The
	    arguments to this method can be created with
	    [`NodeProp.add`](#common.NodeProp.add).
	    */
	    extend(...props) {
	        let newTypes = [];
	        for (let type of this.types) {
	            let newProps = null;
	            for (let source of props) {
	                let add = source(type);
	                if (add) {
	                    if (!newProps)
	                        newProps = Object.assign({}, type.props);
	                    newProps[add[0].id] = add[1];
	                }
	            }
	            newTypes.push(newProps ? new NodeType(type.name, newProps, type.id, type.flags) : type);
	        }
	        return new NodeSet(newTypes);
	    }
	}
	const CachedNode = new WeakMap(), CachedInnerNode = new WeakMap();
	/**
	Options that control iteration. Can be combined with the `|`
	operator to enable multiple ones.
	*/
	var IterMode;
	(function (IterMode) {
	    /**
	    When enabled, iteration will only visit [`Tree`](#common.Tree)
	    objects, not nodes packed into
	    [`TreeBuffer`](#common.TreeBuffer)s.
	    */
	    IterMode[IterMode["ExcludeBuffers"] = 1] = "ExcludeBuffers";
	    /**
	    Enable this to make iteration include anonymous nodes (such as
	    the nodes that wrap repeated grammar constructs into a balanced
	    tree).
	    */
	    IterMode[IterMode["IncludeAnonymous"] = 2] = "IncludeAnonymous";
	    /**
	    By default, regular [mounted](#common.NodeProp^mounted) nodes
	    replace their base node in iteration. Enable this to ignore them
	    instead.
	    */
	    IterMode[IterMode["IgnoreMounts"] = 4] = "IgnoreMounts";
	    /**
	    This option only applies in
	    [`enter`](#common.SyntaxNode.enter)-style methods. It tells the
	    library to not enter mounted overlays if one covers the given
	    position.
	    */
	    IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
	})(IterMode || (IterMode = {}));
	/**
	A piece of syntax tree. There are two ways to approach these
	trees: the way they are actually stored in memory, and the
	convenient way.

	Syntax trees are stored as a tree of `Tree` and `TreeBuffer`
	objects. By packing detail information into `TreeBuffer` leaf
	nodes, the representation is made a lot more memory-efficient.

	However, when you want to actually work with tree nodes, this
	representation is very awkward, so most client code will want to
	use the [`TreeCursor`](#common.TreeCursor) or
	[`SyntaxNode`](#common.SyntaxNode) interface instead, which provides
	a view on some part of this data structure, and can be used to
	move around to adjacent nodes.
	*/
	class Tree {
	    /**
	    Construct a new tree. See also [`Tree.build`](#common.Tree^build).
	    */
	    constructor(
	    /**
	    The type of the top node.
	    */
	    type, 
	    /**
	    This node's child nodes.
	    */
	    children, 
	    /**
	    The positions (offsets relative to the start of this tree) of
	    the children.
	    */
	    positions, 
	    /**
	    The total length of this tree
	    */
	    length, 
	    /**
	    Per-node [node props](#common.NodeProp) to associate with this node.
	    */
	    props) {
	        this.type = type;
	        this.children = children;
	        this.positions = positions;
	        this.length = length;
	        /**
	        @internal
	        */
	        this.props = null;
	        if (props && props.length) {
	            this.props = Object.create(null);
	            for (let [prop, value] of props)
	                this.props[typeof prop == "number" ? prop : prop.id] = value;
	        }
	    }
	    /**
	    @internal
	    */
	    toString() {
	        let mounted = MountedTree.get(this);
	        if (mounted && !mounted.overlay)
	            return mounted.tree.toString();
	        let children = "";
	        for (let ch of this.children) {
	            let str = ch.toString();
	            if (str) {
	                if (children)
	                    children += ",";
	                children += str;
	            }
	        }
	        return !this.type.name ? children :
	            (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) +
	                (children.length ? "(" + children + ")" : "");
	    }
	    /**
	    Get a [tree cursor](#common.TreeCursor) positioned at the top of
	    the tree. Mode can be used to [control](#common.IterMode) which
	    nodes the cursor visits.
	    */
	    cursor(mode = 0) {
	        return new TreeCursor(this.topNode, mode);
	    }
	    /**
	    Get a [tree cursor](#common.TreeCursor) pointing into this tree
	    at the given position and side (see
	    [`moveTo`](#common.TreeCursor.moveTo).
	    */
	    cursorAt(pos, side = 0, mode = 0) {
	        let scope = CachedNode.get(this) || this.topNode;
	        let cursor = new TreeCursor(scope);
	        cursor.moveTo(pos, side);
	        CachedNode.set(this, cursor._tree);
	        return cursor;
	    }
	    /**
	    Get a [syntax node](#common.SyntaxNode) object for the top of the
	    tree.
	    */
	    get topNode() {
	        return new TreeNode(this, 0, 0, null);
	    }
	    /**
	    Get the [syntax node](#common.SyntaxNode) at the given position.
	    If `side` is -1, this will move into nodes that end at the
	    position. If 1, it'll move into nodes that start at the
	    position. With 0, it'll only enter nodes that cover the position
	    from both sides.
	    
	    Note that this will not enter
	    [overlays](#common.MountedTree.overlay), and you often want
	    [`resolveInner`](#common.Tree.resolveInner) instead.
	    */
	    resolve(pos, side = 0) {
	        let node = resolveNode(CachedNode.get(this) || this.topNode, pos, side, false);
	        CachedNode.set(this, node);
	        return node;
	    }
	    /**
	    Like [`resolve`](#common.Tree.resolve), but will enter
	    [overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
	    pointing into the innermost overlaid tree at the given position
	    (with parent links going through all parent structure, including
	    the host trees).
	    */
	    resolveInner(pos, side = 0) {
	        let node = resolveNode(CachedInnerNode.get(this) || this.topNode, pos, side, true);
	        CachedInnerNode.set(this, node);
	        return node;
	    }
	    /**
	    In some situations, it can be useful to iterate through all
	    nodes around a position, including those in overlays that don't
	    directly cover the position. This method gives you an iterator
	    that will produce all nodes, from small to big, around the given
	    position.
	    */
	    resolveStack(pos, side = 0) {
	        return stackIterator(this, pos, side);
	    }
	    /**
	    Iterate over the tree and its children, calling `enter` for any
	    node that touches the `from`/`to` region (if given) before
	    running over such a node's children, and `leave` (if given) when
	    leaving the node. When `enter` returns `false`, that node will
	    not have its children iterated over (or `leave` called).
	    */
	    iterate(spec) {
	        let { enter, leave, from = 0, to = this.length } = spec;
	        let mode = spec.mode || 0, anon = (mode & IterMode.IncludeAnonymous) > 0;
	        for (let c = this.cursor(mode | IterMode.IncludeAnonymous);;) {
	            let entered = false;
	            if (c.from <= to && c.to >= from && (!anon && c.type.isAnonymous || enter(c) !== false)) {
	                if (c.firstChild())
	                    continue;
	                entered = true;
	            }
	            for (;;) {
	                if (entered && leave && (anon || !c.type.isAnonymous))
	                    leave(c);
	                if (c.nextSibling())
	                    break;
	                if (!c.parent())
	                    return;
	                entered = true;
	            }
	        }
	    }
	    /**
	    Get the value of the given [node prop](#common.NodeProp) for this
	    node. Works with both per-node and per-type props.
	    */
	    prop(prop) {
	        return !prop.perNode ? this.type.prop(prop) : this.props ? this.props[prop.id] : undefined;
	    }
	    /**
	    Returns the node's [per-node props](#common.NodeProp.perNode) in a
	    format that can be passed to the [`Tree`](#common.Tree)
	    constructor.
	    */
	    get propValues() {
	        let result = [];
	        if (this.props)
	            for (let id in this.props)
	                result.push([+id, this.props[id]]);
	        return result;
	    }
	    /**
	    Balance the direct children of this tree, producing a copy of
	    which may have children grouped into subtrees with type
	    [`NodeType.none`](#common.NodeType^none).
	    */
	    balance(config = {}) {
	        return this.children.length <= 8 /* Balance.BranchFactor */ ? this :
	            balanceRange(NodeType.none, this.children, this.positions, 0, this.children.length, 0, this.length, (children, positions, length) => new Tree(this.type, children, positions, length, this.propValues), config.makeTree || ((children, positions, length) => new Tree(NodeType.none, children, positions, length)));
	    }
	    /**
	    Build a tree from a postfix-ordered buffer of node information,
	    or a cursor over such a buffer.
	    */
	    static build(data) { return buildTree(data); }
	}
	/**
	The empty tree
	*/
	Tree.empty = new Tree(NodeType.none, [], [], 0);
	class FlatBufferCursor {
	    constructor(buffer, index) {
	        this.buffer = buffer;
	        this.index = index;
	    }
	    get id() { return this.buffer[this.index - 4]; }
	    get start() { return this.buffer[this.index - 3]; }
	    get end() { return this.buffer[this.index - 2]; }
	    get size() { return this.buffer[this.index - 1]; }
	    get pos() { return this.index; }
	    next() { this.index -= 4; }
	    fork() { return new FlatBufferCursor(this.buffer, this.index); }
	}
	/**
	Tree buffers contain (type, start, end, endIndex) quads for each
	node. In such a buffer, nodes are stored in prefix order (parents
	before children, with the endIndex of the parent indicating which
	children belong to it).
	*/
	class TreeBuffer {
	    /**
	    Create a tree buffer.
	    */
	    constructor(
	    /**
	    The buffer's content.
	    */
	    buffer, 
	    /**
	    The total length of the group of nodes in the buffer.
	    */
	    length, 
	    /**
	    The node set used in this buffer.
	    */
	    set) {
	        this.buffer = buffer;
	        this.length = length;
	        this.set = set;
	    }
	    /**
	    @internal
	    */
	    get type() { return NodeType.none; }
	    /**
	    @internal
	    */
	    toString() {
	        let result = [];
	        for (let index = 0; index < this.buffer.length;) {
	            result.push(this.childString(index));
	            index = this.buffer[index + 3];
	        }
	        return result.join(",");
	    }
	    /**
	    @internal
	    */
	    childString(index) {
	        let id = this.buffer[index], endIndex = this.buffer[index + 3];
	        let type = this.set.types[id], result = type.name;
	        if (/\W/.test(result) && !type.isError)
	            result = JSON.stringify(result);
	        index += 4;
	        if (endIndex == index)
	            return result;
	        let children = [];
	        while (index < endIndex) {
	            children.push(this.childString(index));
	            index = this.buffer[index + 3];
	        }
	        return result + "(" + children.join(",") + ")";
	    }
	    /**
	    @internal
	    */
	    findChild(startIndex, endIndex, dir, pos, side) {
	        let { buffer } = this, pick = -1;
	        for (let i = startIndex; i != endIndex; i = buffer[i + 3]) {
	            if (checkSide(side, pos, buffer[i + 1], buffer[i + 2])) {
	                pick = i;
	                if (dir > 0)
	                    break;
	            }
	        }
	        return pick;
	    }
	    /**
	    @internal
	    */
	    slice(startI, endI, from) {
	        let b = this.buffer;
	        let copy = new Uint16Array(endI - startI), len = 0;
	        for (let i = startI, j = 0; i < endI;) {
	            copy[j++] = b[i++];
	            copy[j++] = b[i++] - from;
	            let to = copy[j++] = b[i++] - from;
	            copy[j++] = b[i++] - startI;
	            len = Math.max(len, to);
	        }
	        return new TreeBuffer(copy, len, this.set);
	    }
	}
	function checkSide(side, pos, from, to) {
	    switch (side) {
	        case -2 /* Side.Before */: return from < pos;
	        case -1 /* Side.AtOrBefore */: return to >= pos && from < pos;
	        case 0 /* Side.Around */: return from < pos && to > pos;
	        case 1 /* Side.AtOrAfter */: return from <= pos && to > pos;
	        case 2 /* Side.After */: return to > pos;
	        case 4 /* Side.DontCare */: return true;
	    }
	}
	function resolveNode(node, pos, side, overlays) {
	    var _a;
	    // Move up to a node that actually holds the position, if possible
	    while (node.from == node.to ||
	        (side < 1 ? node.from >= pos : node.from > pos) ||
	        (side > -1 ? node.to <= pos : node.to < pos)) {
	        let parent = !overlays && node instanceof TreeNode && node.index < 0 ? null : node.parent;
	        if (!parent)
	            return node;
	        node = parent;
	    }
	    let mode = overlays ? 0 : IterMode.IgnoreOverlays;
	    // Must go up out of overlays when those do not overlap with pos
	    if (overlays)
	        for (let scan = node, parent = scan.parent; parent; scan = parent, parent = scan.parent) {
	            if (scan instanceof TreeNode && scan.index < 0 && ((_a = parent.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from)
	                node = parent;
	        }
	    for (;;) {
	        let inner = node.enter(pos, side, mode);
	        if (!inner)
	            return node;
	        node = inner;
	    }
	}
	class BaseNode {
	    cursor(mode = 0) { return new TreeCursor(this, mode); }
	    getChild(type, before = null, after = null) {
	        let r = getChildren(this, type, before, after);
	        return r.length ? r[0] : null;
	    }
	    getChildren(type, before = null, after = null) {
	        return getChildren(this, type, before, after);
	    }
	    resolve(pos, side = 0) {
	        return resolveNode(this, pos, side, false);
	    }
	    resolveInner(pos, side = 0) {
	        return resolveNode(this, pos, side, true);
	    }
	    matchContext(context) {
	        return matchNodeContext(this, context);
	    }
	    enterUnfinishedNodesBefore(pos) {
	        let scan = this.childBefore(pos), node = this;
	        while (scan) {
	            let last = scan.lastChild;
	            if (!last || last.to != scan.to)
	                break;
	            if (last.type.isError && last.from == last.to) {
	                node = scan;
	                scan = last.prevSibling;
	            }
	            else {
	                scan = last;
	            }
	        }
	        return node;
	    }
	    get node() { return this; }
	    get next() { return this.parent; }
	}
	class TreeNode extends BaseNode {
	    constructor(_tree, from, 
	    // Index in parent node, set to -1 if the node is not a direct child of _parent.node (overlay)
	    index, _parent) {
	        super();
	        this._tree = _tree;
	        this.from = from;
	        this.index = index;
	        this._parent = _parent;
	    }
	    get type() { return this._tree.type; }
	    get name() { return this._tree.type.name; }
	    get to() { return this.from + this._tree.length; }
	    nextChild(i, dir, pos, side, mode = 0) {
	        for (let parent = this;;) {
	            for (let { children, positions } = parent._tree, e = dir > 0 ? children.length : -1; i != e; i += dir) {
	                let next = children[i], start = positions[i] + parent.from;
	                if (!checkSide(side, pos, start, start + next.length))
	                    continue;
	                if (next instanceof TreeBuffer) {
	                    if (mode & IterMode.ExcludeBuffers)
	                        continue;
	                    let index = next.findChild(0, next.buffer.length, dir, pos - start, side);
	                    if (index > -1)
	                        return new BufferNode(new BufferContext(parent, next, i, start), null, index);
	                }
	                else if ((mode & IterMode.IncludeAnonymous) || (!next.type.isAnonymous || hasChild(next))) {
	                    let mounted;
	                    if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay)
	                        return new TreeNode(mounted.tree, start, i, parent);
	                    let inner = new TreeNode(next, start, i, parent);
	                    return (mode & IterMode.IncludeAnonymous) || !inner.type.isAnonymous ? inner
	                        : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
	                }
	            }
	            if ((mode & IterMode.IncludeAnonymous) || !parent.type.isAnonymous)
	                return null;
	            if (parent.index >= 0)
	                i = parent.index + dir;
	            else
	                i = dir < 0 ? -1 : parent._parent._tree.children.length;
	            parent = parent._parent;
	            if (!parent)
	                return null;
	        }
	    }
	    get firstChild() { return this.nextChild(0, 1, 0, 4 /* Side.DontCare */); }
	    get lastChild() { return this.nextChild(this._tree.children.length - 1, -1, 0, 4 /* Side.DontCare */); }
	    childAfter(pos) { return this.nextChild(0, 1, pos, 2 /* Side.After */); }
	    childBefore(pos) { return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */); }
	    enter(pos, side, mode = 0) {
	        let mounted;
	        if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
	            let rPos = pos - this.from;
	            for (let { from, to } of mounted.overlay) {
	                if ((side > 0 ? from <= rPos : from < rPos) &&
	                    (side < 0 ? to >= rPos : to > rPos))
	                    return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
	            }
	        }
	        return this.nextChild(0, 1, pos, side, mode);
	    }
	    nextSignificantParent() {
	        let val = this;
	        while (val.type.isAnonymous && val._parent)
	            val = val._parent;
	        return val;
	    }
	    get parent() {
	        return this._parent ? this._parent.nextSignificantParent() : null;
	    }
	    get nextSibling() {
	        return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4 /* Side.DontCare */) : null;
	    }
	    get prevSibling() {
	        return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4 /* Side.DontCare */) : null;
	    }
	    get tree() { return this._tree; }
	    toTree() { return this._tree; }
	    /**
	    @internal
	    */
	    toString() { return this._tree.toString(); }
	}
	function getChildren(node, type, before, after) {
	    let cur = node.cursor(), result = [];
	    if (!cur.firstChild())
	        return result;
	    if (before != null)
	        for (let found = false; !found;) {
	            found = cur.type.is(before);
	            if (!cur.nextSibling())
	                return result;
	        }
	    for (;;) {
	        if (after != null && cur.type.is(after))
	            return result;
	        if (cur.type.is(type))
	            result.push(cur.node);
	        if (!cur.nextSibling())
	            return after == null ? result : [];
	    }
	}
	function matchNodeContext(node, context, i = context.length - 1) {
	    for (let p = node.parent; i >= 0; p = p.parent) {
	        if (!p)
	            return false;
	        if (!p.type.isAnonymous) {
	            if (context[i] && context[i] != p.name)
	                return false;
	            i--;
	        }
	    }
	    return true;
	}
	class BufferContext {
	    constructor(parent, buffer, index, start) {
	        this.parent = parent;
	        this.buffer = buffer;
	        this.index = index;
	        this.start = start;
	    }
	}
	class BufferNode extends BaseNode {
	    get name() { return this.type.name; }
	    get from() { return this.context.start + this.context.buffer.buffer[this.index + 1]; }
	    get to() { return this.context.start + this.context.buffer.buffer[this.index + 2]; }
	    constructor(context, _parent, index) {
	        super();
	        this.context = context;
	        this._parent = _parent;
	        this.index = index;
	        this.type = context.buffer.set.types[context.buffer.buffer[index]];
	    }
	    child(dir, pos, side) {
	        let { buffer } = this.context;
	        let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.context.start, side);
	        return index < 0 ? null : new BufferNode(this.context, this, index);
	    }
	    get firstChild() { return this.child(1, 0, 4 /* Side.DontCare */); }
	    get lastChild() { return this.child(-1, 0, 4 /* Side.DontCare */); }
	    childAfter(pos) { return this.child(1, pos, 2 /* Side.After */); }
	    childBefore(pos) { return this.child(-1, pos, -2 /* Side.Before */); }
	    enter(pos, side, mode = 0) {
	        if (mode & IterMode.ExcludeBuffers)
	            return null;
	        let { buffer } = this.context;
	        let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], side > 0 ? 1 : -1, pos - this.context.start, side);
	        return index < 0 ? null : new BufferNode(this.context, this, index);
	    }
	    get parent() {
	        return this._parent || this.context.parent.nextSignificantParent();
	    }
	    externalSibling(dir) {
	        return this._parent ? null : this.context.parent.nextChild(this.context.index + dir, dir, 0, 4 /* Side.DontCare */);
	    }
	    get nextSibling() {
	        let { buffer } = this.context;
	        let after = buffer.buffer[this.index + 3];
	        if (after < (this._parent ? buffer.buffer[this._parent.index + 3] : buffer.buffer.length))
	            return new BufferNode(this.context, this._parent, after);
	        return this.externalSibling(1);
	    }
	    get prevSibling() {
	        let { buffer } = this.context;
	        let parentStart = this._parent ? this._parent.index + 4 : 0;
	        if (this.index == parentStart)
	            return this.externalSibling(-1);
	        return new BufferNode(this.context, this._parent, buffer.findChild(parentStart, this.index, -1, 0, 4 /* Side.DontCare */));
	    }
	    get tree() { return null; }
	    toTree() {
	        let children = [], positions = [];
	        let { buffer } = this.context;
	        let startI = this.index + 4, endI = buffer.buffer[this.index + 3];
	        if (endI > startI) {
	            let from = buffer.buffer[this.index + 1];
	            children.push(buffer.slice(startI, endI, from));
	            positions.push(0);
	        }
	        return new Tree(this.type, children, positions, this.to - this.from);
	    }
	    /**
	    @internal
	    */
	    toString() { return this.context.buffer.childString(this.index); }
	}
	function iterStack(heads) {
	    if (!heads.length)
	        return null;
	    let pick = 0, picked = heads[0];
	    for (let i = 1; i < heads.length; i++) {
	        let node = heads[i];
	        if (node.from > picked.from || node.to < picked.to) {
	            picked = node;
	            pick = i;
	        }
	    }
	    let next = picked instanceof TreeNode && picked.index < 0 ? null : picked.parent;
	    let newHeads = heads.slice();
	    if (next)
	        newHeads[pick] = next;
	    else
	        newHeads.splice(pick, 1);
	    return new StackIterator(newHeads, picked);
	}
	class StackIterator {
	    constructor(heads, node) {
	        this.heads = heads;
	        this.node = node;
	    }
	    get next() { return iterStack(this.heads); }
	}
	function stackIterator(tree, pos, side) {
	    let inner = tree.resolveInner(pos, side), layers = null;
	    for (let scan = inner instanceof TreeNode ? inner : inner.context.parent; scan; scan = scan.parent) {
	        if (scan.index < 0) { // This is an overlay root
	            let parent = scan.parent;
	            (layers || (layers = [inner])).push(parent.resolve(pos, side));
	            scan = parent;
	        }
	        else {
	            let mount = MountedTree.get(scan.tree);
	            // Relevant overlay branching off
	            if (mount && mount.overlay && mount.overlay[0].from <= pos && mount.overlay[mount.overlay.length - 1].to >= pos) {
	                let root = new TreeNode(mount.tree, mount.overlay[0].from + scan.from, -1, scan);
	                (layers || (layers = [inner])).push(resolveNode(root, pos, side, false));
	            }
	        }
	    }
	    return layers ? iterStack(layers) : inner;
	}
	/**
	A tree cursor object focuses on a given node in a syntax tree, and
	allows you to move to adjacent nodes.
	*/
	class TreeCursor {
	    /**
	    Shorthand for `.type.name`.
	    */
	    get name() { return this.type.name; }
	    /**
	    @internal
	    */
	    constructor(node, 
	    /**
	    @internal
	    */
	    mode = 0) {
	        this.mode = mode;
	        /**
	        @internal
	        */
	        this.buffer = null;
	        this.stack = [];
	        /**
	        @internal
	        */
	        this.index = 0;
	        this.bufferNode = null;
	        if (node instanceof TreeNode) {
	            this.yieldNode(node);
	        }
	        else {
	            this._tree = node.context.parent;
	            this.buffer = node.context;
	            for (let n = node._parent; n; n = n._parent)
	                this.stack.unshift(n.index);
	            this.bufferNode = node;
	            this.yieldBuf(node.index);
	        }
	    }
	    yieldNode(node) {
	        if (!node)
	            return false;
	        this._tree = node;
	        this.type = node.type;
	        this.from = node.from;
	        this.to = node.to;
	        return true;
	    }
	    yieldBuf(index, type) {
	        this.index = index;
	        let { start, buffer } = this.buffer;
	        this.type = type || buffer.set.types[buffer.buffer[index]];
	        this.from = start + buffer.buffer[index + 1];
	        this.to = start + buffer.buffer[index + 2];
	        return true;
	    }
	    /**
	    @internal
	    */
	    yield(node) {
	        if (!node)
	            return false;
	        if (node instanceof TreeNode) {
	            this.buffer = null;
	            return this.yieldNode(node);
	        }
	        this.buffer = node.context;
	        return this.yieldBuf(node.index, node.type);
	    }
	    /**
	    @internal
	    */
	    toString() {
	        return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
	    }
	    /**
	    @internal
	    */
	    enterChild(dir, pos, side) {
	        if (!this.buffer)
	            return this.yield(this._tree.nextChild(dir < 0 ? this._tree._tree.children.length - 1 : 0, dir, pos, side, this.mode));
	        let { buffer } = this.buffer;
	        let index = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.buffer.start, side);
	        if (index < 0)
	            return false;
	        this.stack.push(this.index);
	        return this.yieldBuf(index);
	    }
	    /**
	    Move the cursor to this node's first child. When this returns
	    false, the node has no child, and the cursor has not been moved.
	    */
	    firstChild() { return this.enterChild(1, 0, 4 /* Side.DontCare */); }
	    /**
	    Move the cursor to this node's last child.
	    */
	    lastChild() { return this.enterChild(-1, 0, 4 /* Side.DontCare */); }
	    /**
	    Move the cursor to the first child that ends after `pos`.
	    */
	    childAfter(pos) { return this.enterChild(1, pos, 2 /* Side.After */); }
	    /**
	    Move to the last child that starts before `pos`.
	    */
	    childBefore(pos) { return this.enterChild(-1, pos, -2 /* Side.Before */); }
	    /**
	    Move the cursor to the child around `pos`. If side is -1 the
	    child may end at that position, when 1 it may start there. This
	    will also enter [overlaid](#common.MountedTree.overlay)
	    [mounted](#common.NodeProp^mounted) trees unless `overlays` is
	    set to false.
	    */
	    enter(pos, side, mode = this.mode) {
	        if (!this.buffer)
	            return this.yield(this._tree.enter(pos, side, mode));
	        return mode & IterMode.ExcludeBuffers ? false : this.enterChild(1, pos, side);
	    }
	    /**
	    Move to the node's parent node, if this isn't the top node.
	    */
	    parent() {
	        if (!this.buffer)
	            return this.yieldNode((this.mode & IterMode.IncludeAnonymous) ? this._tree._parent : this._tree.parent);
	        if (this.stack.length)
	            return this.yieldBuf(this.stack.pop());
	        let parent = (this.mode & IterMode.IncludeAnonymous) ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
	        this.buffer = null;
	        return this.yieldNode(parent);
	    }
	    /**
	    @internal
	    */
	    sibling(dir) {
	        if (!this.buffer)
	            return !this._tree._parent ? false
	                : this.yield(this._tree.index < 0 ? null
	                    : this._tree._parent.nextChild(this._tree.index + dir, dir, 0, 4 /* Side.DontCare */, this.mode));
	        let { buffer } = this.buffer, d = this.stack.length - 1;
	        if (dir < 0) {
	            let parentStart = d < 0 ? 0 : this.stack[d] + 4;
	            if (this.index != parentStart)
	                return this.yieldBuf(buffer.findChild(parentStart, this.index, -1, 0, 4 /* Side.DontCare */));
	        }
	        else {
	            let after = buffer.buffer[this.index + 3];
	            if (after < (d < 0 ? buffer.buffer.length : buffer.buffer[this.stack[d] + 3]))
	                return this.yieldBuf(after);
	        }
	        return d < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + dir, dir, 0, 4 /* Side.DontCare */, this.mode)) : false;
	    }
	    /**
	    Move to this node's next sibling, if any.
	    */
	    nextSibling() { return this.sibling(1); }
	    /**
	    Move to this node's previous sibling, if any.
	    */
	    prevSibling() { return this.sibling(-1); }
	    atLastNode(dir) {
	        let index, parent, { buffer } = this;
	        if (buffer) {
	            if (dir > 0) {
	                if (this.index < buffer.buffer.buffer.length)
	                    return false;
	            }
	            else {
	                for (let i = 0; i < this.index; i++)
	                    if (buffer.buffer.buffer[i + 3] < this.index)
	                        return false;
	            }
	            ({ index, parent } = buffer);
	        }
	        else {
	            ({ index, _parent: parent } = this._tree);
	        }
	        for (; parent; { index, _parent: parent } = parent) {
	            if (index > -1)
	                for (let i = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i != e; i += dir) {
	                    let child = parent._tree.children[i];
	                    if ((this.mode & IterMode.IncludeAnonymous) ||
	                        child instanceof TreeBuffer ||
	                        !child.type.isAnonymous ||
	                        hasChild(child))
	                        return false;
	                }
	        }
	        return true;
	    }
	    move(dir, enter) {
	        if (enter && this.enterChild(dir, 0, 4 /* Side.DontCare */))
	            return true;
	        for (;;) {
	            if (this.sibling(dir))
	                return true;
	            if (this.atLastNode(dir) || !this.parent())
	                return false;
	        }
	    }
	    /**
	    Move to the next node in a
	    [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
	    traversal, going from a node to its first child or, if the
	    current node is empty or `enter` is false, its next sibling or
	    the next sibling of the first parent node that has one.
	    */
	    next(enter = true) { return this.move(1, enter); }
	    /**
	    Move to the next node in a last-to-first pre-order traveral. A
	    node is followed by its last child or, if it has none, its
	    previous sibling or the previous sibling of the first parent
	    node that has one.
	    */
	    prev(enter = true) { return this.move(-1, enter); }
	    /**
	    Move the cursor to the innermost node that covers `pos`. If
	    `side` is -1, it will enter nodes that end at `pos`. If it is 1,
	    it will enter nodes that start at `pos`.
	    */
	    moveTo(pos, side = 0) {
	        // Move up to a node that actually holds the position, if possible
	        while (this.from == this.to ||
	            (side < 1 ? this.from >= pos : this.from > pos) ||
	            (side > -1 ? this.to <= pos : this.to < pos))
	            if (!this.parent())
	                break;
	        // Then scan down into child nodes as far as possible
	        while (this.enterChild(1, pos, side)) { }
	        return this;
	    }
	    /**
	    Get a [syntax node](#common.SyntaxNode) at the cursor's current
	    position.
	    */
	    get node() {
	        if (!this.buffer)
	            return this._tree;
	        let cache = this.bufferNode, result = null, depth = 0;
	        if (cache && cache.context == this.buffer) {
	            scan: for (let index = this.index, d = this.stack.length; d >= 0;) {
	                for (let c = cache; c; c = c._parent)
	                    if (c.index == index) {
	                        if (index == this.index)
	                            return c;
	                        result = c;
	                        depth = d + 1;
	                        break scan;
	                    }
	                index = this.stack[--d];
	            }
	        }
	        for (let i = depth; i < this.stack.length; i++)
	            result = new BufferNode(this.buffer, result, this.stack[i]);
	        return this.bufferNode = new BufferNode(this.buffer, result, this.index);
	    }
	    /**
	    Get the [tree](#common.Tree) that represents the current node, if
	    any. Will return null when the node is in a [tree
	    buffer](#common.TreeBuffer).
	    */
	    get tree() {
	        return this.buffer ? null : this._tree._tree;
	    }
	    /**
	    Iterate over the current node and all its descendants, calling
	    `enter` when entering a node and `leave`, if given, when leaving
	    one. When `enter` returns `false`, any children of that node are
	    skipped, and `leave` isn't called for it.
	    */
	    iterate(enter, leave) {
	        for (let depth = 0;;) {
	            let mustLeave = false;
	            if (this.type.isAnonymous || enter(this) !== false) {
	                if (this.firstChild()) {
	                    depth++;
	                    continue;
	                }
	                if (!this.type.isAnonymous)
	                    mustLeave = true;
	            }
	            for (;;) {
	                if (mustLeave && leave)
	                    leave(this);
	                mustLeave = this.type.isAnonymous;
	                if (this.nextSibling())
	                    break;
	                if (!depth)
	                    return;
	                this.parent();
	                depth--;
	                mustLeave = true;
	            }
	        }
	    }
	    /**
	    Test whether the current node matches a given context—a sequence
	    of direct parent node names. Empty strings in the context array
	    are treated as wildcards.
	    */
	    matchContext(context) {
	        if (!this.buffer)
	            return matchNodeContext(this.node, context);
	        let { buffer } = this.buffer, { types } = buffer.set;
	        for (let i = context.length - 1, d = this.stack.length - 1; i >= 0; d--) {
	            if (d < 0)
	                return matchNodeContext(this.node, context, i);
	            let type = types[buffer.buffer[this.stack[d]]];
	            if (!type.isAnonymous) {
	                if (context[i] && context[i] != type.name)
	                    return false;
	                i--;
	            }
	        }
	        return true;
	    }
	}
	function hasChild(tree) {
	    return tree.children.some(ch => ch instanceof TreeBuffer || !ch.type.isAnonymous || hasChild(ch));
	}
	function buildTree(data) {
	    var _a;
	    let { buffer, nodeSet, maxBufferLength = DefaultBufferLength, reused = [], minRepeatType = nodeSet.types.length } = data;
	    let cursor = Array.isArray(buffer) ? new FlatBufferCursor(buffer, buffer.length) : buffer;
	    let types = nodeSet.types;
	    let contextHash = 0, lookAhead = 0;
	    function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
	        let { id, start, end, size } = cursor;
	        let lookAheadAtStart = lookAhead;
	        while (size < 0) {
	            cursor.next();
	            if (size == -1 /* SpecialRecord.Reuse */) {
	                let node = reused[id];
	                children.push(node);
	                positions.push(start - parentStart);
	                return;
	            }
	            else if (size == -3 /* SpecialRecord.ContextChange */) { // Context change
	                contextHash = id;
	                return;
	            }
	            else if (size == -4 /* SpecialRecord.LookAhead */) {
	                lookAhead = id;
	                return;
	            }
	            else {
	                throw new RangeError(`Unrecognized record size: ${size}`);
	            }
	        }
	        let type = types[id], node, buffer;
	        let startPos = start - parentStart;
	        if (end - start <= maxBufferLength && (buffer = findBufferSize(cursor.pos - minPos, inRepeat))) {
	            // Small enough for a buffer, and no reused nodes inside
	            let data = new Uint16Array(buffer.size - buffer.skip);
	            let endPos = cursor.pos - buffer.size, index = data.length;
	            while (cursor.pos > endPos)
	                index = copyToBuffer(buffer.start, data, index);
	            node = new TreeBuffer(data, end - buffer.start, nodeSet);
	            startPos = buffer.start - parentStart;
	        }
	        else { // Make it a node
	            let endPos = cursor.pos - size;
	            cursor.next();
	            let localChildren = [], localPositions = [];
	            let localInRepeat = id >= minRepeatType ? id : -1;
	            let lastGroup = 0, lastEnd = end;
	            while (cursor.pos > endPos) {
	                if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {
	                    if (cursor.end <= lastEnd - maxBufferLength) {
	                        makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart);
	                        lastGroup = localChildren.length;
	                        lastEnd = cursor.end;
	                    }
	                    cursor.next();
	                }
	                else if (depth > 2500 /* CutOff.Depth */) {
	                    takeFlatNode(start, endPos, localChildren, localPositions);
	                }
	                else {
	                    takeNode(start, endPos, localChildren, localPositions, localInRepeat, depth + 1);
	                }
	            }
	            if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)
	                makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart);
	            localChildren.reverse();
	            localPositions.reverse();
	            if (localInRepeat > -1 && lastGroup > 0) {
	                let make = makeBalanced(type);
	                node = balanceRange(type, localChildren, localPositions, 0, localChildren.length, 0, end - start, make, make);
	            }
	            else {
	                node = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end);
	            }
	        }
	        children.push(node);
	        positions.push(startPos);
	    }
	    function takeFlatNode(parentStart, minPos, children, positions) {
	        let nodes = []; // Temporary, inverted array of leaf nodes found, with absolute positions
	        let nodeCount = 0, stopAt = -1;
	        while (cursor.pos > minPos) {
	            let { id, start, end, size } = cursor;
	            if (size > 4) { // Not a leaf
	                cursor.next();
	            }
	            else if (stopAt > -1 && start < stopAt) {
	                break;
	            }
	            else {
	                if (stopAt < 0)
	                    stopAt = end - maxBufferLength;
	                nodes.push(id, start, end);
	                nodeCount++;
	                cursor.next();
	            }
	        }
	        if (nodeCount) {
	            let buffer = new Uint16Array(nodeCount * 4);
	            let start = nodes[nodes.length - 2];
	            for (let i = nodes.length - 3, j = 0; i >= 0; i -= 3) {
	                buffer[j++] = nodes[i];
	                buffer[j++] = nodes[i + 1] - start;
	                buffer[j++] = nodes[i + 2] - start;
	                buffer[j++] = j;
	            }
	            children.push(new TreeBuffer(buffer, nodes[2] - start, nodeSet));
	            positions.push(start - parentStart);
	        }
	    }
	    function makeBalanced(type) {
	        return (children, positions, length) => {
	            let lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;
	            if (lastI >= 0 && (last = children[lastI]) instanceof Tree) {
	                if (!lastI && last.type == type && last.length == length)
	                    return last;
	                if (lookAheadProp = last.prop(NodeProp.lookAhead))
	                    lookAhead = positions[lastI] + last.length + lookAheadProp;
	            }
	            return makeTree(type, children, positions, length, lookAhead);
	        };
	    }
	    function makeRepeatLeaf(children, positions, base, i, from, to, type, lookAhead) {
	        let localChildren = [], localPositions = [];
	        while (children.length > i) {
	            localChildren.push(children.pop());
	            localPositions.push(positions.pop() + base - from);
	        }
	        children.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead - to));
	        positions.push(from - base);
	    }
	    function makeTree(type, children, positions, length, lookAhead = 0, props) {
	        if (contextHash) {
	            let pair = [NodeProp.contextHash, contextHash];
	            props = props ? [pair].concat(props) : [pair];
	        }
	        if (lookAhead > 25) {
	            let pair = [NodeProp.lookAhead, lookAhead];
	            props = props ? [pair].concat(props) : [pair];
	        }
	        return new Tree(type, children, positions, length, props);
	    }
	    function findBufferSize(maxSize, inRepeat) {
	        // Scan through the buffer to find previous siblings that fit
	        // together in a TreeBuffer, and don't contain any reused nodes
	        // (which can't be stored in a buffer).
	        // If `inRepeat` is > -1, ignore node boundaries of that type for
	        // nesting, but make sure the end falls either at the start
	        // (`maxSize`) or before such a node.
	        let fork = cursor.fork();
	        let size = 0, start = 0, skip = 0, minStart = fork.end - maxBufferLength;
	        let result = { size: 0, start: 0, skip: 0 };
	        scan: for (let minPos = fork.pos - maxSize; fork.pos > minPos;) {
	            let nodeSize = fork.size;
	            // Pretend nested repeat nodes of the same type don't exist
	            if (fork.id == inRepeat && nodeSize >= 0) {
	                // Except that we store the current state as a valid return
	                // value.
	                result.size = size;
	                result.start = start;
	                result.skip = skip;
	                skip += 4;
	                size += 4;
	                fork.next();
	                continue;
	            }
	            let startPos = fork.pos - nodeSize;
	            if (nodeSize < 0 || startPos < minPos || fork.start < minStart)
	                break;
	            let localSkipped = fork.id >= minRepeatType ? 4 : 0;
	            let nodeStart = fork.start;
	            fork.next();
	            while (fork.pos > startPos) {
	                if (fork.size < 0) {
	                    if (fork.size == -3 /* SpecialRecord.ContextChange */)
	                        localSkipped += 4;
	                    else
	                        break scan;
	                }
	                else if (fork.id >= minRepeatType) {
	                    localSkipped += 4;
	                }
	                fork.next();
	            }
	            start = nodeStart;
	            size += nodeSize;
	            skip += localSkipped;
	        }
	        if (inRepeat < 0 || size == maxSize) {
	            result.size = size;
	            result.start = start;
	            result.skip = skip;
	        }
	        return result.size > 4 ? result : undefined;
	    }
	    function copyToBuffer(bufferStart, buffer, index) {
	        let { id, start, end, size } = cursor;
	        cursor.next();
	        if (size >= 0 && id < minRepeatType) {
	            let startIndex = index;
	            if (size > 4) {
	                let endPos = cursor.pos - (size - 4);
	                while (cursor.pos > endPos)
	                    index = copyToBuffer(bufferStart, buffer, index);
	            }
	            buffer[--index] = startIndex;
	            buffer[--index] = end - bufferStart;
	            buffer[--index] = start - bufferStart;
	            buffer[--index] = id;
	        }
	        else if (size == -3 /* SpecialRecord.ContextChange */) {
	            contextHash = id;
	        }
	        else if (size == -4 /* SpecialRecord.LookAhead */) {
	            lookAhead = id;
	        }
	        return index;
	    }
	    let children = [], positions = [];
	    while (cursor.pos > 0)
	        takeNode(data.start || 0, data.bufferStart || 0, children, positions, -1, 0);
	    let length = (_a = data.length) !== null && _a !== void 0 ? _a : (children.length ? positions[0] + children[0].length : 0);
	    return new Tree(types[data.topID], children.reverse(), positions.reverse(), length);
	}
	const nodeSizeCache = new WeakMap;
	function nodeSize(balanceType, node) {
	    if (!balanceType.isAnonymous || node instanceof TreeBuffer || node.type != balanceType)
	        return 1;
	    let size = nodeSizeCache.get(node);
	    if (size == null) {
	        size = 1;
	        for (let child of node.children) {
	            if (child.type != balanceType || !(child instanceof Tree)) {
	                size = 1;
	                break;
	            }
	            size += nodeSize(balanceType, child);
	        }
	        nodeSizeCache.set(node, size);
	    }
	    return size;
	}
	function balanceRange(
	// The type the balanced tree's inner nodes.
	balanceType, 
	// The direct children and their positions
	children, positions, 
	// The index range in children/positions to use
	from, to, 
	// The start position of the nodes, relative to their parent.
	start, 
	// Length of the outer node
	length, 
	// Function to build the top node of the balanced tree
	mkTop, 
	// Function to build internal nodes for the balanced tree
	mkTree) {
	    let total = 0;
	    for (let i = from; i < to; i++)
	        total += nodeSize(balanceType, children[i]);
	    let maxChild = Math.ceil((total * 1.5) / 8 /* Balance.BranchFactor */);
	    let localChildren = [], localPositions = [];
	    function divide(children, positions, from, to, offset) {
	        for (let i = from; i < to;) {
	            let groupFrom = i, groupStart = positions[i], groupSize = nodeSize(balanceType, children[i]);
	            i++;
	            for (; i < to; i++) {
	                let nextSize = nodeSize(balanceType, children[i]);
	                if (groupSize + nextSize >= maxChild)
	                    break;
	                groupSize += nextSize;
	            }
	            if (i == groupFrom + 1) {
	                if (groupSize > maxChild) {
	                    let only = children[groupFrom]; // Only trees can have a size > 1
	                    divide(only.children, only.positions, 0, only.children.length, positions[groupFrom] + offset);
	                    continue;
	                }
	                localChildren.push(children[groupFrom]);
	            }
	            else {
	                let length = positions[i - 1] + children[i - 1].length - groupStart;
	                localChildren.push(balanceRange(balanceType, children, positions, groupFrom, i, groupStart, length, null, mkTree));
	            }
	            localPositions.push(groupStart + offset - start);
	        }
	    }
	    divide(children, positions, from, to, 0);
	    return (mkTop || mkTree)(localChildren, localPositions, length);
	}
	/**
	Provides a way to associate values with pieces of trees. As long
	as that part of the tree is reused, the associated values can be
	retrieved from an updated tree.
	*/
	class NodeWeakMap {
	    constructor() {
	        this.map = new WeakMap();
	    }
	    setBuffer(buffer, index, value) {
	        let inner = this.map.get(buffer);
	        if (!inner)
	            this.map.set(buffer, inner = new Map);
	        inner.set(index, value);
	    }
	    getBuffer(buffer, index) {
	        let inner = this.map.get(buffer);
	        return inner && inner.get(index);
	    }
	    /**
	    Set the value for this syntax node.
	    */
	    set(node, value) {
	        if (node instanceof BufferNode)
	            this.setBuffer(node.context.buffer, node.index, value);
	        else if (node instanceof TreeNode)
	            this.map.set(node.tree, value);
	    }
	    /**
	    Retrieve value for this syntax node, if it exists in the map.
	    */
	    get(node) {
	        return node instanceof BufferNode ? this.getBuffer(node.context.buffer, node.index)
	            : node instanceof TreeNode ? this.map.get(node.tree) : undefined;
	    }
	    /**
	    Set the value for the node that a cursor currently points to.
	    */
	    cursorSet(cursor, value) {
	        if (cursor.buffer)
	            this.setBuffer(cursor.buffer.buffer, cursor.index, value);
	        else
	            this.map.set(cursor.tree, value);
	    }
	    /**
	    Retrieve the value for the node that a cursor currently points
	    to.
	    */
	    cursorGet(cursor) {
	        return cursor.buffer ? this.getBuffer(cursor.buffer.buffer, cursor.index) : this.map.get(cursor.tree);
	    }
	}

	/**
	Tree fragments are used during [incremental
	parsing](#common.Parser.startParse) to track parts of old trees
	that can be reused in a new parse. An array of fragments is used
	to track regions of an old tree whose nodes might be reused in new
	parses. Use the static
	[`applyChanges`](#common.TreeFragment^applyChanges) method to
	update fragments for document changes.
	*/
	class TreeFragment {
	    /**
	    Construct a tree fragment. You'll usually want to use
	    [`addTree`](#common.TreeFragment^addTree) and
	    [`applyChanges`](#common.TreeFragment^applyChanges) instead of
	    calling this directly.
	    */
	    constructor(
	    /**
	    The start of the unchanged range pointed to by this fragment.
	    This refers to an offset in the _updated_ document (as opposed
	    to the original tree).
	    */
	    from, 
	    /**
	    The end of the unchanged range.
	    */
	    to, 
	    /**
	    The tree that this fragment is based on.
	    */
	    tree, 
	    /**
	    The offset between the fragment's tree and the document that
	    this fragment can be used against. Add this when going from
	    document to tree positions, subtract it to go from tree to
	    document positions.
	    */
	    offset, openStart = false, openEnd = false) {
	        this.from = from;
	        this.to = to;
	        this.tree = tree;
	        this.offset = offset;
	        this.open = (openStart ? 1 /* Open.Start */ : 0) | (openEnd ? 2 /* Open.End */ : 0);
	    }
	    /**
	    Whether the start of the fragment represents the start of a
	    parse, or the end of a change. (In the second case, it may not
	    be safe to reuse some nodes at the start, depending on the
	    parsing algorithm.)
	    */
	    get openStart() { return (this.open & 1 /* Open.Start */) > 0; }
	    /**
	    Whether the end of the fragment represents the end of a
	    full-document parse, or the start of a change.
	    */
	    get openEnd() { return (this.open & 2 /* Open.End */) > 0; }
	    /**
	    Create a set of fragments from a freshly parsed tree, or update
	    an existing set of fragments by replacing the ones that overlap
	    with a tree with content from the new tree. When `partial` is
	    true, the parse is treated as incomplete, and the resulting
	    fragment has [`openEnd`](#common.TreeFragment.openEnd) set to
	    true.
	    */
	    static addTree(tree, fragments = [], partial = false) {
	        let result = [new TreeFragment(0, tree.length, tree, 0, false, partial)];
	        for (let f of fragments)
	            if (f.to > tree.length)
	                result.push(f);
	        return result;
	    }
	    /**
	    Apply a set of edits to an array of fragments, removing or
	    splitting fragments as necessary to remove edited ranges, and
	    adjusting offsets for fragments that moved.
	    */
	    static applyChanges(fragments, changes, minGap = 128) {
	        if (!changes.length)
	            return fragments;
	        let result = [];
	        let fI = 1, nextF = fragments.length ? fragments[0] : null;
	        for (let cI = 0, pos = 0, off = 0;; cI++) {
	            let nextC = cI < changes.length ? changes[cI] : null;
	            let nextPos = nextC ? nextC.fromA : 1e9;
	            if (nextPos - pos >= minGap)
	                while (nextF && nextF.from < nextPos) {
	                    let cut = nextF;
	                    if (pos >= cut.from || nextPos <= cut.to || off) {
	                        let fFrom = Math.max(cut.from, pos) - off, fTo = Math.min(cut.to, nextPos) - off;
	                        cut = fFrom >= fTo ? null : new TreeFragment(fFrom, fTo, cut.tree, cut.offset + off, cI > 0, !!nextC);
	                    }
	                    if (cut)
	                        result.push(cut);
	                    if (nextF.to > nextPos)
	                        break;
	                    nextF = fI < fragments.length ? fragments[fI++] : null;
	                }
	            if (!nextC)
	                break;
	            pos = nextC.toA;
	            off = nextC.toA - nextC.toB;
	        }
	        return result;
	    }
	}
	/**
	A superclass that parsers should extend.
	*/
	class Parser {
	    /**
	    Start a parse, returning a [partial parse](#common.PartialParse)
	    object. [`fragments`](#common.TreeFragment) can be passed in to
	    make the parse incremental.
	    
	    By default, the entire input is parsed. You can pass `ranges`,
	    which should be a sorted array of non-empty, non-overlapping
	    ranges, to parse only those ranges. The tree returned in that
	    case will start at `ranges[0].from`.
	    */
	    startParse(input, fragments, ranges) {
	        if (typeof input == "string")
	            input = new StringInput(input);
	        ranges = !ranges ? [new Range(0, input.length)] : ranges.length ? ranges.map(r => new Range(r.from, r.to)) : [new Range(0, 0)];
	        return this.createParse(input, fragments || [], ranges);
	    }
	    /**
	    Run a full parse, returning the resulting tree.
	    */
	    parse(input, fragments, ranges) {
	        let parse = this.startParse(input, fragments, ranges);
	        for (;;) {
	            let done = parse.advance();
	            if (done)
	                return done;
	        }
	    }
	}
	class StringInput {
	    constructor(string) {
	        this.string = string;
	    }
	    get length() { return this.string.length; }
	    chunk(from) { return this.string.slice(from); }
	    get lineChunks() { return false; }
	    read(from, to) { return this.string.slice(from, to); }
	}

	/**
	Create a parse wrapper that, after the inner parse completes,
	scans its tree for mixed language regions with the `nest`
	function, runs the resulting [inner parses](#common.NestedParse),
	and then [mounts](#common.NodeProp^mounted) their results onto the
	tree.
	*/
	function parseMixed(nest) {
	    return (parse, input, fragments, ranges) => new MixedParse(parse, nest, input, fragments, ranges);
	}
	class InnerParse {
	    constructor(parser, parse, overlay, target, from) {
	        this.parser = parser;
	        this.parse = parse;
	        this.overlay = overlay;
	        this.target = target;
	        this.from = from;
	    }
	}
	function checkRanges(ranges) {
	    if (!ranges.length || ranges.some(r => r.from >= r.to))
	        throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(ranges));
	}
	class ActiveOverlay {
	    constructor(parser, predicate, mounts, index, start, target, prev) {
	        this.parser = parser;
	        this.predicate = predicate;
	        this.mounts = mounts;
	        this.index = index;
	        this.start = start;
	        this.target = target;
	        this.prev = prev;
	        this.depth = 0;
	        this.ranges = [];
	    }
	}
	const stoppedInner = new NodeProp({ perNode: true });
	class MixedParse {
	    constructor(base, nest, input, fragments, ranges) {
	        this.nest = nest;
	        this.input = input;
	        this.fragments = fragments;
	        this.ranges = ranges;
	        this.inner = [];
	        this.innerDone = 0;
	        this.baseTree = null;
	        this.stoppedAt = null;
	        this.baseParse = base;
	    }
	    advance() {
	        if (this.baseParse) {
	            let done = this.baseParse.advance();
	            if (!done)
	                return null;
	            this.baseParse = null;
	            this.baseTree = done;
	            this.startInner();
	            if (this.stoppedAt != null)
	                for (let inner of this.inner)
	                    inner.parse.stopAt(this.stoppedAt);
	        }
	        if (this.innerDone == this.inner.length) {
	            let result = this.baseTree;
	            if (this.stoppedAt != null)
	                result = new Tree(result.type, result.children, result.positions, result.length, result.propValues.concat([[stoppedInner, this.stoppedAt]]));
	            return result;
	        }
	        let inner = this.inner[this.innerDone], done = inner.parse.advance();
	        if (done) {
	            this.innerDone++;
	            // This is a somewhat dodgy but super helpful hack where we
	            // patch up nodes created by the inner parse (and thus
	            // presumably not aliased anywhere else) to hold the information
	            // about the inner parse.
	            let props = Object.assign(Object.create(null), inner.target.props);
	            props[NodeProp.mounted.id] = new MountedTree(done, inner.overlay, inner.parser);
	            inner.target.props = props;
	        }
	        return null;
	    }
	    get parsedPos() {
	        if (this.baseParse)
	            return 0;
	        let pos = this.input.length;
	        for (let i = this.innerDone; i < this.inner.length; i++) {
	            if (this.inner[i].from < pos)
	                pos = Math.min(pos, this.inner[i].parse.parsedPos);
	        }
	        return pos;
	    }
	    stopAt(pos) {
	        this.stoppedAt = pos;
	        if (this.baseParse)
	            this.baseParse.stopAt(pos);
	        else
	            for (let i = this.innerDone; i < this.inner.length; i++)
	                this.inner[i].parse.stopAt(pos);
	    }
	    startInner() {
	        let fragmentCursor = new FragmentCursor$2(this.fragments);
	        let overlay = null;
	        let covered = null;
	        let cursor = new TreeCursor(new TreeNode(this.baseTree, this.ranges[0].from, 0, null), IterMode.IncludeAnonymous | IterMode.IgnoreMounts);
	        scan: for (let nest, isCovered;;) {
	            let enter = true, range;
	            if (this.stoppedAt != null && cursor.from >= this.stoppedAt) {
	                enter = false;
	            }
	            else if (fragmentCursor.hasNode(cursor)) {
	                if (overlay) {
	                    let match = overlay.mounts.find(m => m.frag.from <= cursor.from && m.frag.to >= cursor.to && m.mount.overlay);
	                    if (match)
	                        for (let r of match.mount.overlay) {
	                            let from = r.from + match.pos, to = r.to + match.pos;
	                            if (from >= cursor.from && to <= cursor.to && !overlay.ranges.some(r => r.from < to && r.to > from))
	                                overlay.ranges.push({ from, to });
	                        }
	                }
	                enter = false;
	            }
	            else if (covered && (isCovered = checkCover(covered.ranges, cursor.from, cursor.to))) {
	                enter = isCovered != 2 /* Cover.Full */;
	            }
	            else if (!cursor.type.isAnonymous && (nest = this.nest(cursor, this.input)) &&
	                (cursor.from < cursor.to || !nest.overlay)) {
	                if (!cursor.tree)
	                    materialize(cursor);
	                let oldMounts = fragmentCursor.findMounts(cursor.from, nest.parser);
	                if (typeof nest.overlay == "function") {
	                    overlay = new ActiveOverlay(nest.parser, nest.overlay, oldMounts, this.inner.length, cursor.from, cursor.tree, overlay);
	                }
	                else {
	                    let ranges = punchRanges(this.ranges, nest.overlay ||
	                        (cursor.from < cursor.to ? [new Range(cursor.from, cursor.to)] : []));
	                    if (ranges.length)
	                        checkRanges(ranges);
	                    if (ranges.length || !nest.overlay)
	                        this.inner.push(new InnerParse(nest.parser, ranges.length ? nest.parser.startParse(this.input, enterFragments(oldMounts, ranges), ranges)
	                            : nest.parser.startParse(""), nest.overlay ? nest.overlay.map(r => new Range(r.from - cursor.from, r.to - cursor.from)) : null, cursor.tree, ranges.length ? ranges[0].from : cursor.from));
	                    if (!nest.overlay)
	                        enter = false;
	                    else if (ranges.length)
	                        covered = { ranges, depth: 0, prev: covered };
	                }
	            }
	            else if (overlay && (range = overlay.predicate(cursor))) {
	                if (range === true)
	                    range = new Range(cursor.from, cursor.to);
	                if (range.from < range.to)
	                    overlay.ranges.push(range);
	            }
	            if (enter && cursor.firstChild()) {
	                if (overlay)
	                    overlay.depth++;
	                if (covered)
	                    covered.depth++;
	            }
	            else {
	                for (;;) {
	                    if (cursor.nextSibling())
	                        break;
	                    if (!cursor.parent())
	                        break scan;
	                    if (overlay && !--overlay.depth) {
	                        let ranges = punchRanges(this.ranges, overlay.ranges);
	                        if (ranges.length) {
	                            checkRanges(ranges);
	                            this.inner.splice(overlay.index, 0, new InnerParse(overlay.parser, overlay.parser.startParse(this.input, enterFragments(overlay.mounts, ranges), ranges), overlay.ranges.map(r => new Range(r.from - overlay.start, r.to - overlay.start)), overlay.target, ranges[0].from));
	                        }
	                        overlay = overlay.prev;
	                    }
	                    if (covered && !--covered.depth)
	                        covered = covered.prev;
	                }
	            }
	        }
	    }
	}
	function checkCover(covered, from, to) {
	    for (let range of covered) {
	        if (range.from >= to)
	            break;
	        if (range.to > from)
	            return range.from <= from && range.to >= to ? 2 /* Cover.Full */ : 1 /* Cover.Partial */;
	    }
	    return 0 /* Cover.None */;
	}
	// Take a piece of buffer and convert it into a stand-alone
	// TreeBuffer.
	function sliceBuf(buf, startI, endI, nodes, positions, off) {
	    if (startI < endI) {
	        let from = buf.buffer[startI + 1];
	        nodes.push(buf.slice(startI, endI, from));
	        positions.push(from - off);
	    }
	}
	// This function takes a node that's in a buffer, and converts it, and
	// its parent buffer nodes, into a Tree. This is again acting on the
	// assumption that the trees and buffers have been constructed by the
	// parse that was ran via the mix parser, and thus aren't shared with
	// any other code, making violations of the immutability safe.
	function materialize(cursor) {
	    let { node } = cursor, stack = [];
	    let buffer = node.context.buffer;
	    // Scan up to the nearest tree
	    do {
	        stack.push(cursor.index);
	        cursor.parent();
	    } while (!cursor.tree);
	    // Find the index of the buffer in that tree
	    let base = cursor.tree, i = base.children.indexOf(buffer);
	    let buf = base.children[i], b = buf.buffer, newStack = [i];
	    // Split a level in the buffer, putting the nodes before and after
	    // the child that contains `node` into new buffers.
	    function split(startI, endI, type, innerOffset, length, stackPos) {
	        let targetI = stack[stackPos];
	        let children = [], positions = [];
	        sliceBuf(buf, startI, targetI, children, positions, innerOffset);
	        let from = b[targetI + 1], to = b[targetI + 2];
	        newStack.push(children.length);
	        let child = stackPos
	            ? split(targetI + 4, b[targetI + 3], buf.set.types[b[targetI]], from, to - from, stackPos - 1)
	            : node.toTree();
	        children.push(child);
	        positions.push(from - innerOffset);
	        sliceBuf(buf, b[targetI + 3], endI, children, positions, innerOffset);
	        return new Tree(type, children, positions, length);
	    }
	    base.children[i] = split(0, b.length, NodeType.none, 0, buf.length, stack.length - 1);
	    // Move the cursor back to the target node
	    for (let index of newStack) {
	        let tree = cursor.tree.children[index], pos = cursor.tree.positions[index];
	        cursor.yield(new TreeNode(tree, pos + cursor.from, index, cursor._tree));
	    }
	}
	class StructureCursor {
	    constructor(root, offset) {
	        this.offset = offset;
	        this.done = false;
	        this.cursor = root.cursor(IterMode.IncludeAnonymous | IterMode.IgnoreMounts);
	    }
	    // Move to the first node (in pre-order) that starts at or after `pos`.
	    moveTo(pos) {
	        let { cursor } = this, p = pos - this.offset;
	        while (!this.done && cursor.from < p) {
	            if (cursor.to >= pos && cursor.enter(p, 1, IterMode.IgnoreOverlays | IterMode.ExcludeBuffers)) ;
	            else if (!cursor.next(false))
	                this.done = true;
	        }
	    }
	    hasNode(cursor) {
	        this.moveTo(cursor.from);
	        if (!this.done && this.cursor.from + this.offset == cursor.from && this.cursor.tree) {
	            for (let tree = this.cursor.tree;;) {
	                if (tree == cursor.tree)
	                    return true;
	                if (tree.children.length && tree.positions[0] == 0 && tree.children[0] instanceof Tree)
	                    tree = tree.children[0];
	                else
	                    break;
	            }
	        }
	        return false;
	    }
	}
	let FragmentCursor$2 = class FragmentCursor {
	    constructor(fragments) {
	        var _a;
	        this.fragments = fragments;
	        this.curTo = 0;
	        this.fragI = 0;
	        if (fragments.length) {
	            let first = this.curFrag = fragments[0];
	            this.curTo = (_a = first.tree.prop(stoppedInner)) !== null && _a !== void 0 ? _a : first.to;
	            this.inner = new StructureCursor(first.tree, -first.offset);
	        }
	        else {
	            this.curFrag = this.inner = null;
	        }
	    }
	    hasNode(node) {
	        while (this.curFrag && node.from >= this.curTo)
	            this.nextFrag();
	        return this.curFrag && this.curFrag.from <= node.from && this.curTo >= node.to && this.inner.hasNode(node);
	    }
	    nextFrag() {
	        var _a;
	        this.fragI++;
	        if (this.fragI == this.fragments.length) {
	            this.curFrag = this.inner = null;
	        }
	        else {
	            let frag = this.curFrag = this.fragments[this.fragI];
	            this.curTo = (_a = frag.tree.prop(stoppedInner)) !== null && _a !== void 0 ? _a : frag.to;
	            this.inner = new StructureCursor(frag.tree, -frag.offset);
	        }
	    }
	    findMounts(pos, parser) {
	        var _a;
	        let result = [];
	        if (this.inner) {
	            this.inner.cursor.moveTo(pos, 1);
	            for (let pos = this.inner.cursor.node; pos; pos = pos.parent) {
	                let mount = (_a = pos.tree) === null || _a === void 0 ? void 0 : _a.prop(NodeProp.mounted);
	                if (mount && mount.parser == parser) {
	                    for (let i = this.fragI; i < this.fragments.length; i++) {
	                        let frag = this.fragments[i];
	                        if (frag.from >= pos.to)
	                            break;
	                        if (frag.tree == this.curFrag.tree)
	                            result.push({
	                                frag,
	                                pos: pos.from - frag.offset,
	                                mount
	                            });
	                    }
	                }
	            }
	        }
	        return result;
	    }
	};
	function punchRanges(outer, ranges) {
	    let copy = null, current = ranges;
	    for (let i = 1, j = 0; i < outer.length; i++) {
	        let gapFrom = outer[i - 1].to, gapTo = outer[i].from;
	        for (; j < current.length; j++) {
	            let r = current[j];
	            if (r.from >= gapTo)
	                break;
	            if (r.to <= gapFrom)
	                continue;
	            if (!copy)
	                current = copy = ranges.slice();
	            if (r.from < gapFrom) {
	                copy[j] = new Range(r.from, gapFrom);
	                if (r.to > gapTo)
	                    copy.splice(j + 1, 0, new Range(gapTo, r.to));
	            }
	            else if (r.to > gapTo) {
	                copy[j--] = new Range(gapTo, r.to);
	            }
	            else {
	                copy.splice(j--, 1);
	            }
	        }
	    }
	    return current;
	}
	function findCoverChanges(a, b, from, to) {
	    let iA = 0, iB = 0, inA = false, inB = false, pos = -1e9;
	    let result = [];
	    for (;;) {
	        let nextA = iA == a.length ? 1e9 : inA ? a[iA].to : a[iA].from;
	        let nextB = iB == b.length ? 1e9 : inB ? b[iB].to : b[iB].from;
	        if (inA != inB) {
	            let start = Math.max(pos, from), end = Math.min(nextA, nextB, to);
	            if (start < end)
	                result.push(new Range(start, end));
	        }
	        pos = Math.min(nextA, nextB);
	        if (pos == 1e9)
	            break;
	        if (nextA == pos) {
	            if (!inA)
	                inA = true;
	            else {
	                inA = false;
	                iA++;
	            }
	        }
	        if (nextB == pos) {
	            if (!inB)
	                inB = true;
	            else {
	                inB = false;
	                iB++;
	            }
	        }
	    }
	    return result;
	}
	// Given a number of fragments for the outer tree, and a set of ranges
	// to parse, find fragments for inner trees mounted around those
	// ranges, if any.
	function enterFragments(mounts, ranges) {
	    let result = [];
	    for (let { pos, mount, frag } of mounts) {
	        let startPos = pos + (mount.overlay ? mount.overlay[0].from : 0), endPos = startPos + mount.tree.length;
	        let from = Math.max(frag.from, startPos), to = Math.min(frag.to, endPos);
	        if (mount.overlay) {
	            let overlay = mount.overlay.map(r => new Range(r.from + pos, r.to + pos));
	            let changes = findCoverChanges(ranges, overlay, from, to);
	            for (let i = 0, pos = from;; i++) {
	                let last = i == changes.length, end = last ? to : changes[i].from;
	                if (end > pos)
	                    result.push(new TreeFragment(pos, end, mount.tree, -startPos, frag.from >= pos || frag.openStart, frag.to <= end || frag.openEnd));
	                if (last)
	                    break;
	                pos = changes[i].to;
	            }
	        }
	        else {
	            result.push(new TreeFragment(from, to, mount.tree, -startPos, frag.from >= startPos || frag.openStart, frag.to <= endPos || frag.openEnd));
	        }
	    }
	    return result;
	}

	let nextTagID = 0;
	/**
	Highlighting tags are markers that denote a highlighting category.
	They are [associated](#highlight.styleTags) with parts of a syntax
	tree by a language mode, and then mapped to an actual CSS style by
	a [highlighter](#highlight.Highlighter).

	Because syntax tree node types and highlight styles have to be
	able to talk the same language, CodeMirror uses a mostly _closed_
	[vocabulary](#highlight.tags) of syntax tags (as opposed to
	traditional open string-based systems, which make it hard for
	highlighting themes to cover all the tokens produced by the
	various languages).

	It _is_ possible to [define](#highlight.Tag^define) your own
	highlighting tags for system-internal use (where you control both
	the language package and the highlighter), but such tags will not
	be picked up by regular highlighters (though you can derive them
	from standard tags to allow highlighters to fall back to those).
	*/
	let Tag$1 = class Tag {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The set of this tag and all its parent tags, starting with
	    this one itself and sorted in order of decreasing specificity.
	    */
	    set, 
	    /**
	    The base unmodified tag that this one is based on, if it's
	    modified @internal
	    */
	    base, 
	    /**
	    The modifiers applied to this.base @internal
	    */
	    modified) {
	        this.set = set;
	        this.base = base;
	        this.modified = modified;
	        /**
	        @internal
	        */
	        this.id = nextTagID++;
	    }
	    /**
	    Define a new tag. If `parent` is given, the tag is treated as a
	    sub-tag of that parent, and
	    [highlighters](#highlight.tagHighlighter) that don't mention
	    this tag will try to fall back to the parent tag (or grandparent
	    tag, etc).
	    */
	    static define(parent) {
	        if (parent === null || parent === void 0 ? void 0 : parent.base)
	            throw new Error("Can not derive from a modified tag");
	        let tag = new Tag([], null, []);
	        tag.set.push(tag);
	        if (parent)
	            for (let t of parent.set)
	                tag.set.push(t);
	        return tag;
	    }
	    /**
	    Define a tag _modifier_, which is a function that, given a tag,
	    will return a tag that is a subtag of the original. Applying the
	    same modifier to a twice tag will return the same value (`m1(t1)
	    == m1(t1)`) and applying multiple modifiers will, regardless or
	    order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
	    
	    When multiple modifiers are applied to a given base tag, each
	    smaller set of modifiers is registered as a parent, so that for
	    example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
	    `m1(m3(t1)`, and so on.
	    */
	    static defineModifier() {
	        let mod = new Modifier;
	        return (tag) => {
	            if (tag.modified.indexOf(mod) > -1)
	                return tag;
	            return Modifier.get(tag.base || tag, tag.modified.concat(mod).sort((a, b) => a.id - b.id));
	        };
	    }
	};
	let nextModifierID = 0;
	class Modifier {
	    constructor() {
	        this.instances = [];
	        this.id = nextModifierID++;
	    }
	    static get(base, mods) {
	        if (!mods.length)
	            return base;
	        let exists = mods[0].instances.find(t => t.base == base && sameArray(mods, t.modified));
	        if (exists)
	            return exists;
	        let set = [], tag = new Tag$1(set, base, mods);
	        for (let m of mods)
	            m.instances.push(tag);
	        let configs = powerSet(mods);
	        for (let parent of base.set)
	            if (!parent.modified.length)
	                for (let config of configs)
	                    set.push(Modifier.get(parent, config));
	        return tag;
	    }
	}
	function sameArray(a, b) {
	    return a.length == b.length && a.every((x, i) => x == b[i]);
	}
	function powerSet(array) {
	    let sets = [[]];
	    for (let i = 0; i < array.length; i++) {
	        for (let j = 0, e = sets.length; j < e; j++) {
	            sets.push(sets[j].concat(array[i]));
	        }
	    }
	    return sets.sort((a, b) => b.length - a.length);
	}
	/**
	This function is used to add a set of tags to a language syntax
	via [`NodeSet.extend`](#common.NodeSet.extend) or
	[`LRParser.configure`](#lr.LRParser.configure).

	The argument object maps node selectors to [highlighting
	tags](#highlight.Tag) or arrays of tags.

	Node selectors may hold one or more (space-separated) node paths.
	Such a path can be a [node name](#common.NodeType.name), or
	multiple node names (or `*` wildcards) separated by slash
	characters, as in `"Block/Declaration/VariableName"`. Such a path
	matches the final node but only if its direct parent nodes are the
	other nodes mentioned. A `*` in such a path matches any parent,
	but only a single level—wildcards that match multiple parents
	aren't supported, both for efficiency reasons and because Lezer
	trees make it rather hard to reason about what they would match.)

	A path can be ended with `/...` to indicate that the tag assigned
	to the node should also apply to all child nodes, even if they
	match their own style (by default, only the innermost style is
	used).

	When a path ends in `!`, as in `Attribute!`, no further matching
	happens for the node's child nodes, and the entire node gets the
	given style.

	In this notation, node names that contain `/`, `!`, `*`, or `...`
	must be quoted as JSON strings.

	For example:

	```javascript
	parser.withProps(
	  styleTags({
	    // Style Number and BigNumber nodes
	    "Number BigNumber": tags.number,
	    // Style Escape nodes whose parent is String
	    "String/Escape": tags.escape,
	    // Style anything inside Attributes nodes
	    "Attributes!": tags.meta,
	    // Add a style to all content inside Italic nodes
	    "Italic/...": tags.emphasis,
	    // Style InvalidString nodes as both `string` and `invalid`
	    "InvalidString": [tags.string, tags.invalid],
	    // Style the node named "/" as punctuation
	    '"/"': tags.punctuation
	  })
	)
	```
	*/
	function styleTags(spec) {
	    let byName = Object.create(null);
	    for (let prop in spec) {
	        let tags = spec[prop];
	        if (!Array.isArray(tags))
	            tags = [tags];
	        for (let part of prop.split(" "))
	            if (part) {
	                let pieces = [], mode = 2 /* Mode.Normal */, rest = part;
	                for (let pos = 0;;) {
	                    if (rest == "..." && pos > 0 && pos + 3 == part.length) {
	                        mode = 1 /* Mode.Inherit */;
	                        break;
	                    }
	                    let m = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(rest);
	                    if (!m)
	                        throw new RangeError("Invalid path: " + part);
	                    pieces.push(m[0] == "*" ? "" : m[0][0] == '"' ? JSON.parse(m[0]) : m[0]);
	                    pos += m[0].length;
	                    if (pos == part.length)
	                        break;
	                    let next = part[pos++];
	                    if (pos == part.length && next == "!") {
	                        mode = 0 /* Mode.Opaque */;
	                        break;
	                    }
	                    if (next != "/")
	                        throw new RangeError("Invalid path: " + part);
	                    rest = part.slice(pos);
	                }
	                let last = pieces.length - 1, inner = pieces[last];
	                if (!inner)
	                    throw new RangeError("Invalid path: " + part);
	                let rule = new Rule$1(tags, mode, last > 0 ? pieces.slice(0, last) : null);
	                byName[inner] = rule.sort(byName[inner]);
	            }
	    }
	    return ruleNodeProp.add(byName);
	}
	const ruleNodeProp = new NodeProp();
	let Rule$1 = class Rule {
	    constructor(tags, mode, context, next) {
	        this.tags = tags;
	        this.mode = mode;
	        this.context = context;
	        this.next = next;
	    }
	    get opaque() { return this.mode == 0 /* Mode.Opaque */; }
	    get inherit() { return this.mode == 1 /* Mode.Inherit */; }
	    sort(other) {
	        if (!other || other.depth < this.depth) {
	            this.next = other;
	            return this;
	        }
	        other.next = this.sort(other.next);
	        return other;
	    }
	    get depth() { return this.context ? this.context.length : 0; }
	};
	Rule$1.empty = new Rule$1([], 2 /* Mode.Normal */, null);
	/**
	Define a [highlighter](#highlight.Highlighter) from an array of
	tag/class pairs. Classes associated with more specific tags will
	take precedence.
	*/
	function tagHighlighter(tags, options) {
	    let map = Object.create(null);
	    for (let style of tags) {
	        if (!Array.isArray(style.tag))
	            map[style.tag.id] = style.class;
	        else
	            for (let tag of style.tag)
	                map[tag.id] = style.class;
	    }
	    let { scope, all = null } = options || {};
	    return {
	        style: (tags) => {
	            let cls = all;
	            for (let tag of tags) {
	                for (let sub of tag.set) {
	                    let tagClass = map[sub.id];
	                    if (tagClass) {
	                        cls = cls ? cls + " " + tagClass : tagClass;
	                        break;
	                    }
	                }
	            }
	            return cls;
	        },
	        scope
	    };
	}
	function highlightTags(highlighters, tags) {
	    let result = null;
	    for (let highlighter of highlighters) {
	        let value = highlighter.style(tags);
	        if (value)
	            result = result ? result + " " + value : value;
	    }
	    return result;
	}
	/**
	Highlight the given [tree](#common.Tree) with the given
	[highlighter](#highlight.Highlighter). Often, the higher-level
	[`highlightCode`](#highlight.highlightCode) function is easier to
	use.
	*/
	function highlightTree(tree, highlighter, 
	/**
	Assign styling to a region of the text. Will be called, in order
	of position, for any ranges where more than zero classes apply.
	`classes` is a space separated string of CSS classes.
	*/
	putStyle, 
	/**
	The start of the range to highlight.
	*/
	from = 0, 
	/**
	The end of the range.
	*/
	to = tree.length) {
	    let builder = new HighlightBuilder(from, Array.isArray(highlighter) ? highlighter : [highlighter], putStyle);
	    builder.highlightRange(tree.cursor(), from, to, "", builder.highlighters);
	    builder.flush(to);
	}
	class HighlightBuilder {
	    constructor(at, highlighters, span) {
	        this.at = at;
	        this.highlighters = highlighters;
	        this.span = span;
	        this.class = "";
	    }
	    startSpan(at, cls) {
	        if (cls != this.class) {
	            this.flush(at);
	            if (at > this.at)
	                this.at = at;
	            this.class = cls;
	        }
	    }
	    flush(to) {
	        if (to > this.at && this.class)
	            this.span(this.at, to, this.class);
	    }
	    highlightRange(cursor, from, to, inheritedClass, highlighters) {
	        let { type, from: start, to: end } = cursor;
	        if (start >= to || end <= from)
	            return;
	        if (type.isTop)
	            highlighters = this.highlighters.filter(h => !h.scope || h.scope(type));
	        let cls = inheritedClass;
	        let rule = getStyleTags(cursor) || Rule$1.empty;
	        let tagCls = highlightTags(highlighters, rule.tags);
	        if (tagCls) {
	            if (cls)
	                cls += " ";
	            cls += tagCls;
	            if (rule.mode == 1 /* Mode.Inherit */)
	                inheritedClass += (inheritedClass ? " " : "") + tagCls;
	        }
	        this.startSpan(Math.max(from, start), cls);
	        if (rule.opaque)
	            return;
	        let mounted = cursor.tree && cursor.tree.prop(NodeProp.mounted);
	        if (mounted && mounted.overlay) {
	            let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);
	            let innerHighlighters = this.highlighters.filter(h => !h.scope || h.scope(mounted.tree.type));
	            let hasChild = cursor.firstChild();
	            for (let i = 0, pos = start;; i++) {
	                let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
	                let nextPos = next ? next.from + start : end;
	                let rangeFrom = Math.max(from, pos), rangeTo = Math.min(to, nextPos);
	                if (rangeFrom < rangeTo && hasChild) {
	                    while (cursor.from < rangeTo) {
	                        this.highlightRange(cursor, rangeFrom, rangeTo, inheritedClass, highlighters);
	                        this.startSpan(Math.min(rangeTo, cursor.to), cls);
	                        if (cursor.to >= nextPos || !cursor.nextSibling())
	                            break;
	                    }
	                }
	                if (!next || nextPos > to)
	                    break;
	                pos = next.to + start;
	                if (pos > from) {
	                    this.highlightRange(inner.cursor(), Math.max(from, next.from + start), Math.min(to, pos), "", innerHighlighters);
	                    this.startSpan(Math.min(to, pos), cls);
	                }
	            }
	            if (hasChild)
	                cursor.parent();
	        }
	        else if (cursor.firstChild()) {
	            if (mounted)
	                inheritedClass = "";
	            do {
	                if (cursor.to <= from)
	                    continue;
	                if (cursor.from >= to)
	                    break;
	                this.highlightRange(cursor, from, to, inheritedClass, highlighters);
	                this.startSpan(Math.min(to, cursor.to), cls);
	            } while (cursor.nextSibling());
	            cursor.parent();
	        }
	    }
	}
	/**
	Match a syntax node's [highlight rules](#highlight.styleTags). If
	there's a match, return its set of tags, and whether it is
	opaque (uses a `!`) or applies to all child nodes (`/...`).
	*/
	function getStyleTags(node) {
	    let rule = node.type.prop(ruleNodeProp);
	    while (rule && rule.context && !node.matchContext(rule.context))
	        rule = rule.next;
	    return rule || null;
	}
	const t = Tag$1.define;
	const comment$1 = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string$1 = t(literal), number$1 = t(literal), content$1 = t(), heading = t(content$1), keyword$1 = t(), operator$2 = t(), punctuation$1 = t(), bracket = t(punctuation$1), meta = t();
	/**
	The default set of highlighting [tags](#highlight.Tag).

	This collection is heavily biased towards programming languages,
	and necessarily incomplete. A full ontology of syntactic
	constructs would fill a stack of books, and be impractical to
	write themes for. So try to make do with this set. If all else
	fails, [open an
	issue](https://github.com/codemirror/codemirror.next) to propose a
	new tag, or [define](#highlight.Tag^define) a local custom tag for
	your use case.

	Note that it is not obligatory to always attach the most specific
	tag possible to an element—if your grammar can't easily
	distinguish a certain type of element (such as a local variable),
	it is okay to style it as its more general variant (a variable).

	For tags that extend some parent tag, the documentation links to
	the parent.
	*/
	const tags$1 = {
	    /**
	    A comment.
	    */
	    comment: comment$1,
	    /**
	    A line [comment](#highlight.tags.comment).
	    */
	    lineComment: t(comment$1),
	    /**
	    A block [comment](#highlight.tags.comment).
	    */
	    blockComment: t(comment$1),
	    /**
	    A documentation [comment](#highlight.tags.comment).
	    */
	    docComment: t(comment$1),
	    /**
	    Any kind of identifier.
	    */
	    name,
	    /**
	    The [name](#highlight.tags.name) of a variable.
	    */
	    variableName: t(name),
	    /**
	    A type [name](#highlight.tags.name).
	    */
	    typeName: typeName,
	    /**
	    A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
	    */
	    tagName: t(typeName),
	    /**
	    A property or field [name](#highlight.tags.name).
	    */
	    propertyName: propertyName,
	    /**
	    An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
	    */
	    attributeName: t(propertyName),
	    /**
	    The [name](#highlight.tags.name) of a class.
	    */
	    className: t(name),
	    /**
	    A label [name](#highlight.tags.name).
	    */
	    labelName: t(name),
	    /**
	    A namespace [name](#highlight.tags.name).
	    */
	    namespace: t(name),
	    /**
	    The [name](#highlight.tags.name) of a macro.
	    */
	    macroName: t(name),
	    /**
	    A literal value.
	    */
	    literal,
	    /**
	    A string [literal](#highlight.tags.literal).
	    */
	    string: string$1,
	    /**
	    A documentation [string](#highlight.tags.string).
	    */
	    docString: t(string$1),
	    /**
	    A character literal (subtag of [string](#highlight.tags.string)).
	    */
	    character: t(string$1),
	    /**
	    An attribute value (subtag of [string](#highlight.tags.string)).
	    */
	    attributeValue: t(string$1),
	    /**
	    A number [literal](#highlight.tags.literal).
	    */
	    number: number$1,
	    /**
	    An integer [number](#highlight.tags.number) literal.
	    */
	    integer: t(number$1),
	    /**
	    A floating-point [number](#highlight.tags.number) literal.
	    */
	    float: t(number$1),
	    /**
	    A boolean [literal](#highlight.tags.literal).
	    */
	    bool: t(literal),
	    /**
	    Regular expression [literal](#highlight.tags.literal).
	    */
	    regexp: t(literal),
	    /**
	    An escape [literal](#highlight.tags.literal), for example a
	    backslash escape in a string.
	    */
	    escape: t(literal),
	    /**
	    A color [literal](#highlight.tags.literal).
	    */
	    color: t(literal),
	    /**
	    A URL [literal](#highlight.tags.literal).
	    */
	    url: t(literal),
	    /**
	    A language keyword.
	    */
	    keyword: keyword$1,
	    /**
	    The [keyword](#highlight.tags.keyword) for the self or this
	    object.
	    */
	    self: t(keyword$1),
	    /**
	    The [keyword](#highlight.tags.keyword) for null.
	    */
	    null: t(keyword$1),
	    /**
	    A [keyword](#highlight.tags.keyword) denoting some atomic value.
	    */
	    atom: t(keyword$1),
	    /**
	    A [keyword](#highlight.tags.keyword) that represents a unit.
	    */
	    unit: t(keyword$1),
	    /**
	    A modifier [keyword](#highlight.tags.keyword).
	    */
	    modifier: t(keyword$1),
	    /**
	    A [keyword](#highlight.tags.keyword) that acts as an operator.
	    */
	    operatorKeyword: t(keyword$1),
	    /**
	    A control-flow related [keyword](#highlight.tags.keyword).
	    */
	    controlKeyword: t(keyword$1),
	    /**
	    A [keyword](#highlight.tags.keyword) that defines something.
	    */
	    definitionKeyword: t(keyword$1),
	    /**
	    A [keyword](#highlight.tags.keyword) related to defining or
	    interfacing with modules.
	    */
	    moduleKeyword: t(keyword$1),
	    /**
	    An operator.
	    */
	    operator: operator$2,
	    /**
	    An [operator](#highlight.tags.operator) that dereferences something.
	    */
	    derefOperator: t(operator$2),
	    /**
	    Arithmetic-related [operator](#highlight.tags.operator).
	    */
	    arithmeticOperator: t(operator$2),
	    /**
	    Logical [operator](#highlight.tags.operator).
	    */
	    logicOperator: t(operator$2),
	    /**
	    Bit [operator](#highlight.tags.operator).
	    */
	    bitwiseOperator: t(operator$2),
	    /**
	    Comparison [operator](#highlight.tags.operator).
	    */
	    compareOperator: t(operator$2),
	    /**
	    [Operator](#highlight.tags.operator) that updates its operand.
	    */
	    updateOperator: t(operator$2),
	    /**
	    [Operator](#highlight.tags.operator) that defines something.
	    */
	    definitionOperator: t(operator$2),
	    /**
	    Type-related [operator](#highlight.tags.operator).
	    */
	    typeOperator: t(operator$2),
	    /**
	    Control-flow [operator](#highlight.tags.operator).
	    */
	    controlOperator: t(operator$2),
	    /**
	    Program or markup punctuation.
	    */
	    punctuation: punctuation$1,
	    /**
	    [Punctuation](#highlight.tags.punctuation) that separates
	    things.
	    */
	    separator: t(punctuation$1),
	    /**
	    Bracket-style [punctuation](#highlight.tags.punctuation).
	    */
	    bracket,
	    /**
	    Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
	    tokens).
	    */
	    angleBracket: t(bracket),
	    /**
	    Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
	    tokens).
	    */
	    squareBracket: t(bracket),
	    /**
	    Parentheses (usually `(` and `)` tokens). Subtag of
	    [bracket](#highlight.tags.bracket).
	    */
	    paren: t(bracket),
	    /**
	    Braces (usually `{` and `}` tokens). Subtag of
	    [bracket](#highlight.tags.bracket).
	    */
	    brace: t(bracket),
	    /**
	    Content, for example plain text in XML or markup documents.
	    */
	    content: content$1,
	    /**
	    [Content](#highlight.tags.content) that represents a heading.
	    */
	    heading,
	    /**
	    A level 1 [heading](#highlight.tags.heading).
	    */
	    heading1: t(heading),
	    /**
	    A level 2 [heading](#highlight.tags.heading).
	    */
	    heading2: t(heading),
	    /**
	    A level 3 [heading](#highlight.tags.heading).
	    */
	    heading3: t(heading),
	    /**
	    A level 4 [heading](#highlight.tags.heading).
	    */
	    heading4: t(heading),
	    /**
	    A level 5 [heading](#highlight.tags.heading).
	    */
	    heading5: t(heading),
	    /**
	    A level 6 [heading](#highlight.tags.heading).
	    */
	    heading6: t(heading),
	    /**
	    A prose separator (such as a horizontal rule).
	    */
	    contentSeparator: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that represents a list.
	    */
	    list: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that represents a quote.
	    */
	    quote: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that is emphasized.
	    */
	    emphasis: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that is styled strong.
	    */
	    strong: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that is part of a link.
	    */
	    link: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that is styled as code or
	    monospace.
	    */
	    monospace: t(content$1),
	    /**
	    [Content](#highlight.tags.content) that has a strike-through
	    style.
	    */
	    strikethrough: t(content$1),
	    /**
	    Inserted text in a change-tracking format.
	    */
	    inserted: t(),
	    /**
	    Deleted text.
	    */
	    deleted: t(),
	    /**
	    Changed text.
	    */
	    changed: t(),
	    /**
	    An invalid or unsyntactic element.
	    */
	    invalid: t(),
	    /**
	    Metadata or meta-instruction.
	    */
	    meta,
	    /**
	    [Metadata](#highlight.tags.meta) that applies to the entire
	    document.
	    */
	    documentMeta: t(meta),
	    /**
	    [Metadata](#highlight.tags.meta) that annotates or adds
	    attributes to a given syntactic element.
	    */
	    annotation: t(meta),
	    /**
	    Processing instruction or preprocessor directive. Subtag of
	    [meta](#highlight.tags.meta).
	    */
	    processingInstruction: t(meta),
	    /**
	    [Modifier](#highlight.Tag^defineModifier) that indicates that a
	    given element is being defined. Expected to be used with the
	    various [name](#highlight.tags.name) tags.
	    */
	    definition: Tag$1.defineModifier(),
	    /**
	    [Modifier](#highlight.Tag^defineModifier) that indicates that
	    something is constant. Mostly expected to be used with
	    [variable names](#highlight.tags.variableName).
	    */
	    constant: Tag$1.defineModifier(),
	    /**
	    [Modifier](#highlight.Tag^defineModifier) used to indicate that
	    a [variable](#highlight.tags.variableName) or [property
	    name](#highlight.tags.propertyName) is being called or defined
	    as a function.
	    */
	    function: Tag$1.defineModifier(),
	    /**
	    [Modifier](#highlight.Tag^defineModifier) that can be applied to
	    [names](#highlight.tags.name) to indicate that they belong to
	    the language's standard environment.
	    */
	    standard: Tag$1.defineModifier(),
	    /**
	    [Modifier](#highlight.Tag^defineModifier) that indicates a given
	    [names](#highlight.tags.name) is local to some scope.
	    */
	    local: Tag$1.defineModifier(),
	    /**
	    A generic variant [modifier](#highlight.Tag^defineModifier) that
	    can be used to tag language-specific alternative variants of
	    some common tag. It is recommended for themes to define special
	    forms of at least the [string](#highlight.tags.string) and
	    [variable name](#highlight.tags.variableName) tags, since those
	    come up a lot.
	    */
	    special: Tag$1.defineModifier()
	};
	/**
	This is a highlighter that adds stable, predictable classes to
	tokens, for styling with external CSS.

	The following tags are mapped to their name prefixed with `"tok-"`
	(for example `"tok-comment"`):

	* [`link`](#highlight.tags.link)
	* [`heading`](#highlight.tags.heading)
	* [`emphasis`](#highlight.tags.emphasis)
	* [`strong`](#highlight.tags.strong)
	* [`keyword`](#highlight.tags.keyword)
	* [`atom`](#highlight.tags.atom)
	* [`bool`](#highlight.tags.bool)
	* [`url`](#highlight.tags.url)
	* [`labelName`](#highlight.tags.labelName)
	* [`inserted`](#highlight.tags.inserted)
	* [`deleted`](#highlight.tags.deleted)
	* [`literal`](#highlight.tags.literal)
	* [`string`](#highlight.tags.string)
	* [`number`](#highlight.tags.number)
	* [`variableName`](#highlight.tags.variableName)
	* [`typeName`](#highlight.tags.typeName)
	* [`namespace`](#highlight.tags.namespace)
	* [`className`](#highlight.tags.className)
	* [`macroName`](#highlight.tags.macroName)
	* [`propertyName`](#highlight.tags.propertyName)
	* [`operator`](#highlight.tags.operator)
	* [`comment`](#highlight.tags.comment)
	* [`meta`](#highlight.tags.meta)
	* [`punctuation`](#highlight.tags.punctuation)
	* [`invalid`](#highlight.tags.invalid)

	In addition, these mappings are provided:

	* [`regexp`](#highlight.tags.regexp),
	  [`escape`](#highlight.tags.escape), and
	  [`special`](#highlight.tags.special)[`(string)`](#highlight.tags.string)
	  are mapped to `"tok-string2"`
	* [`special`](#highlight.tags.special)[`(variableName)`](#highlight.tags.variableName)
	  to `"tok-variableName2"`
	* [`local`](#highlight.tags.local)[`(variableName)`](#highlight.tags.variableName)
	  to `"tok-variableName tok-local"`
	* [`definition`](#highlight.tags.definition)[`(variableName)`](#highlight.tags.variableName)
	  to `"tok-variableName tok-definition"`
	* [`definition`](#highlight.tags.definition)[`(propertyName)`](#highlight.tags.propertyName)
	  to `"tok-propertyName tok-definition"`
	*/
	tagHighlighter([
	    { tag: tags$1.link, class: "tok-link" },
	    { tag: tags$1.heading, class: "tok-heading" },
	    { tag: tags$1.emphasis, class: "tok-emphasis" },
	    { tag: tags$1.strong, class: "tok-strong" },
	    { tag: tags$1.keyword, class: "tok-keyword" },
	    { tag: tags$1.atom, class: "tok-atom" },
	    { tag: tags$1.bool, class: "tok-bool" },
	    { tag: tags$1.url, class: "tok-url" },
	    { tag: tags$1.labelName, class: "tok-labelName" },
	    { tag: tags$1.inserted, class: "tok-inserted" },
	    { tag: tags$1.deleted, class: "tok-deleted" },
	    { tag: tags$1.literal, class: "tok-literal" },
	    { tag: tags$1.string, class: "tok-string" },
	    { tag: tags$1.number, class: "tok-number" },
	    { tag: [tags$1.regexp, tags$1.escape, tags$1.special(tags$1.string)], class: "tok-string2" },
	    { tag: tags$1.variableName, class: "tok-variableName" },
	    { tag: tags$1.local(tags$1.variableName), class: "tok-variableName tok-local" },
	    { tag: tags$1.definition(tags$1.variableName), class: "tok-variableName tok-definition" },
	    { tag: tags$1.special(tags$1.variableName), class: "tok-variableName2" },
	    { tag: tags$1.definition(tags$1.propertyName), class: "tok-propertyName tok-definition" },
	    { tag: tags$1.typeName, class: "tok-typeName" },
	    { tag: tags$1.namespace, class: "tok-namespace" },
	    { tag: tags$1.className, class: "tok-className" },
	    { tag: tags$1.macroName, class: "tok-macroName" },
	    { tag: tags$1.propertyName, class: "tok-propertyName" },
	    { tag: tags$1.operator, class: "tok-operator" },
	    { tag: tags$1.comment, class: "tok-comment" },
	    { tag: tags$1.meta, class: "tok-meta" },
	    { tag: tags$1.invalid, class: "tok-invalid" },
	    { tag: tags$1.punctuation, class: "tok-punctuation" }
	]);

	var _a;
	/**
	Node prop stored in a parser's top syntax node to provide the
	facet that stores language-specific data for that language.
	*/
	const languageDataProp = /*@__PURE__*/new NodeProp();
	/**
	Helper function to define a facet (to be added to the top syntax
	node(s) for a language via
	[`languageDataProp`](https://codemirror.net/6/docs/ref/#language.languageDataProp)), that will be
	used to associate language data with the language. You
	probably only need this when subclassing
	[`Language`](https://codemirror.net/6/docs/ref/#language.Language).
	*/
	function defineLanguageFacet(baseData) {
	    return Facet.define({
	        combine: baseData ? values => values.concat(baseData) : undefined
	    });
	}
	/**
	Syntax node prop used to register sublanguages. Should be added to
	the top level node type for the language.
	*/
	const sublanguageProp = /*@__PURE__*/new NodeProp();
	/**
	A language object manages parsing and per-language
	[metadata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt). Parse data is
	managed as a [Lezer](https://lezer.codemirror.net) tree. The class
	can be used directly, via the [`LRLanguage`](https://codemirror.net/6/docs/ref/#language.LRLanguage)
	subclass for [Lezer](https://lezer.codemirror.net/) LR parsers, or
	via the [`StreamLanguage`](https://codemirror.net/6/docs/ref/#language.StreamLanguage) subclass
	for stream parsers.
	*/
	class Language {
	    /**
	    Construct a language object. If you need to invoke this
	    directly, first define a data facet with
	    [`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet), and then
	    configure your parser to [attach](https://codemirror.net/6/docs/ref/#language.languageDataProp) it
	    to the language's outer syntax node.
	    */
	    constructor(
	    /**
	    The [language data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) facet
	    used for this language.
	    */
	    data, parser, extraExtensions = [], 
	    /**
	    A language name.
	    */
	    name = "") {
	        this.data = data;
	        this.name = name;
	        // Kludge to define EditorState.tree as a debugging helper,
	        // without the EditorState package actually knowing about
	        // languages and lezer trees.
	        if (!EditorState.prototype.hasOwnProperty("tree"))
	            Object.defineProperty(EditorState.prototype, "tree", { get() { return syntaxTree(this); } });
	        this.parser = parser;
	        this.extension = [
	            language.of(this),
	            EditorState.languageData.of((state, pos, side) => {
	                let top = topNodeAt(state, pos, side), data = top.type.prop(languageDataProp);
	                if (!data)
	                    return [];
	                let base = state.facet(data), sub = top.type.prop(sublanguageProp);
	                if (sub) {
	                    let innerNode = top.resolve(pos - top.from, side);
	                    for (let sublang of sub)
	                        if (sublang.test(innerNode, state)) {
	                            let data = state.facet(sublang.facet);
	                            return sublang.type == "replace" ? data : data.concat(base);
	                        }
	                }
	                return base;
	            })
	        ].concat(extraExtensions);
	    }
	    /**
	    Query whether this language is active at the given position.
	    */
	    isActiveAt(state, pos, side = -1) {
	        return topNodeAt(state, pos, side).type.prop(languageDataProp) == this.data;
	    }
	    /**
	    Find the document regions that were parsed using this language.
	    The returned regions will _include_ any nested languages rooted
	    in this language, when those exist.
	    */
	    findRegions(state) {
	        let lang = state.facet(language);
	        if ((lang === null || lang === void 0 ? void 0 : lang.data) == this.data)
	            return [{ from: 0, to: state.doc.length }];
	        if (!lang || !lang.allowsNesting)
	            return [];
	        let result = [];
	        let explore = (tree, from) => {
	            if (tree.prop(languageDataProp) == this.data) {
	                result.push({ from, to: from + tree.length });
	                return;
	            }
	            let mount = tree.prop(NodeProp.mounted);
	            if (mount) {
	                if (mount.tree.prop(languageDataProp) == this.data) {
	                    if (mount.overlay)
	                        for (let r of mount.overlay)
	                            result.push({ from: r.from + from, to: r.to + from });
	                    else
	                        result.push({ from: from, to: from + tree.length });
	                    return;
	                }
	                else if (mount.overlay) {
	                    let size = result.length;
	                    explore(mount.tree, mount.overlay[0].from + from);
	                    if (result.length > size)
	                        return;
	                }
	            }
	            for (let i = 0; i < tree.children.length; i++) {
	                let ch = tree.children[i];
	                if (ch instanceof Tree)
	                    explore(ch, tree.positions[i] + from);
	            }
	        };
	        explore(syntaxTree(state), 0);
	        return result;
	    }
	    /**
	    Indicates whether this language allows nested languages. The
	    default implementation returns true.
	    */
	    get allowsNesting() { return true; }
	}
	/**
	@internal
	*/
	Language.setState = /*@__PURE__*/StateEffect.define();
	function topNodeAt(state, pos, side) {
	    let topLang = state.facet(language), tree = syntaxTree(state).topNode;
	    if (!topLang || topLang.allowsNesting) {
	        for (let node = tree; node; node = node.enter(pos, side, IterMode.ExcludeBuffers))
	            if (node.type.isTop)
	                tree = node;
	    }
	    return tree;
	}
	/**
	A subclass of [`Language`](https://codemirror.net/6/docs/ref/#language.Language) for use with Lezer
	[LR parsers](https://lezer.codemirror.net/docs/ref#lr.LRParser)
	parsers.
	*/
	class LRLanguage extends Language {
	    constructor(data, parser, name) {
	        super(data, parser, [], name);
	        this.parser = parser;
	    }
	    /**
	    Define a language from a parser.
	    */
	    static define(spec) {
	        let data = defineLanguageFacet(spec.languageData);
	        return new LRLanguage(data, spec.parser.configure({
	            props: [languageDataProp.add(type => type.isTop ? data : undefined)]
	        }), spec.name);
	    }
	    /**
	    Create a new instance of this language with a reconfigured
	    version of its parser and optionally a new name.
	    */
	    configure(options, name) {
	        return new LRLanguage(this.data, this.parser.configure(options), name || this.name);
	    }
	    get allowsNesting() { return this.parser.hasWrappers(); }
	}
	/**
	Get the syntax tree for a state, which is the current (possibly
	incomplete) parse tree of the active
	[language](https://codemirror.net/6/docs/ref/#language.Language), or the empty tree if there is no
	language available.
	*/
	function syntaxTree(state) {
	    let field = state.field(Language.state, false);
	    return field ? field.tree : Tree.empty;
	}
	/**
	Lezer-style
	[`Input`](https://lezer.codemirror.net/docs/ref#common.Input)
	object for a [`Text`](https://codemirror.net/6/docs/ref/#state.Text) object.
	*/
	class DocInput {
	    /**
	    Create an input object for the given document.
	    */
	    constructor(doc) {
	        this.doc = doc;
	        this.cursorPos = 0;
	        this.string = "";
	        this.cursor = doc.iter();
	    }
	    get length() { return this.doc.length; }
	    syncTo(pos) {
	        this.string = this.cursor.next(pos - this.cursorPos).value;
	        this.cursorPos = pos + this.string.length;
	        return this.cursorPos - this.string.length;
	    }
	    chunk(pos) {
	        this.syncTo(pos);
	        return this.string;
	    }
	    get lineChunks() { return true; }
	    read(from, to) {
	        let stringStart = this.cursorPos - this.string.length;
	        if (from < stringStart || to >= this.cursorPos)
	            return this.doc.sliceString(from, to);
	        else
	            return this.string.slice(from - stringStart, to - stringStart);
	    }
	}
	let currentContext = null;
	/**
	A parse context provided to parsers working on the editor content.
	*/
	class ParseContext {
	    constructor(parser, 
	    /**
	    The current editor state.
	    */
	    state, 
	    /**
	    Tree fragments that can be reused by incremental re-parses.
	    */
	    fragments = [], 
	    /**
	    @internal
	    */
	    tree, 
	    /**
	    @internal
	    */
	    treeLen, 
	    /**
	    The current editor viewport (or some overapproximation
	    thereof). Intended to be used for opportunistically avoiding
	    work (in which case
	    [`skipUntilInView`](https://codemirror.net/6/docs/ref/#language.ParseContext.skipUntilInView)
	    should be called to make sure the parser is restarted when the
	    skipped region becomes visible).
	    */
	    viewport, 
	    /**
	    @internal
	    */
	    skipped, 
	    /**
	    This is where skipping parsers can register a promise that,
	    when resolved, will schedule a new parse. It is cleared when
	    the parse worker picks up the promise. @internal
	    */
	    scheduleOn) {
	        this.parser = parser;
	        this.state = state;
	        this.fragments = fragments;
	        this.tree = tree;
	        this.treeLen = treeLen;
	        this.viewport = viewport;
	        this.skipped = skipped;
	        this.scheduleOn = scheduleOn;
	        this.parse = null;
	        /**
	        @internal
	        */
	        this.tempSkipped = [];
	    }
	    /**
	    @internal
	    */
	    static create(parser, state, viewport) {
	        return new ParseContext(parser, state, [], Tree.empty, 0, viewport, [], null);
	    }
	    startParse() {
	        return this.parser.startParse(new DocInput(this.state.doc), this.fragments);
	    }
	    /**
	    @internal
	    */
	    work(until, upto) {
	        if (upto != null && upto >= this.state.doc.length)
	            upto = undefined;
	        if (this.tree != Tree.empty && this.isDone(upto !== null && upto !== void 0 ? upto : this.state.doc.length)) {
	            this.takeTree();
	            return true;
	        }
	        return this.withContext(() => {
	            var _a;
	            if (typeof until == "number") {
	                let endTime = Date.now() + until;
	                until = () => Date.now() > endTime;
	            }
	            if (!this.parse)
	                this.parse = this.startParse();
	            if (upto != null && (this.parse.stoppedAt == null || this.parse.stoppedAt > upto) &&
	                upto < this.state.doc.length)
	                this.parse.stopAt(upto);
	            for (;;) {
	                let done = this.parse.advance();
	                if (done) {
	                    this.fragments = this.withoutTempSkipped(TreeFragment.addTree(done, this.fragments, this.parse.stoppedAt != null));
	                    this.treeLen = (_a = this.parse.stoppedAt) !== null && _a !== void 0 ? _a : this.state.doc.length;
	                    this.tree = done;
	                    this.parse = null;
	                    if (this.treeLen < (upto !== null && upto !== void 0 ? upto : this.state.doc.length))
	                        this.parse = this.startParse();
	                    else
	                        return true;
	                }
	                if (until())
	                    return false;
	            }
	        });
	    }
	    /**
	    @internal
	    */
	    takeTree() {
	        let pos, tree;
	        if (this.parse && (pos = this.parse.parsedPos) >= this.treeLen) {
	            if (this.parse.stoppedAt == null || this.parse.stoppedAt > pos)
	                this.parse.stopAt(pos);
	            this.withContext(() => { while (!(tree = this.parse.advance())) { } });
	            this.treeLen = pos;
	            this.tree = tree;
	            this.fragments = this.withoutTempSkipped(TreeFragment.addTree(this.tree, this.fragments, true));
	            this.parse = null;
	        }
	    }
	    withContext(f) {
	        let prev = currentContext;
	        currentContext = this;
	        try {
	            return f();
	        }
	        finally {
	            currentContext = prev;
	        }
	    }
	    withoutTempSkipped(fragments) {
	        for (let r; r = this.tempSkipped.pop();)
	            fragments = cutFragments(fragments, r.from, r.to);
	        return fragments;
	    }
	    /**
	    @internal
	    */
	    changes(changes, newState) {
	        let { fragments, tree, treeLen, viewport, skipped } = this;
	        this.takeTree();
	        if (!changes.empty) {
	            let ranges = [];
	            changes.iterChangedRanges((fromA, toA, fromB, toB) => ranges.push({ fromA, toA, fromB, toB }));
	            fragments = TreeFragment.applyChanges(fragments, ranges);
	            tree = Tree.empty;
	            treeLen = 0;
	            viewport = { from: changes.mapPos(viewport.from, -1), to: changes.mapPos(viewport.to, 1) };
	            if (this.skipped.length) {
	                skipped = [];
	                for (let r of this.skipped) {
	                    let from = changes.mapPos(r.from, 1), to = changes.mapPos(r.to, -1);
	                    if (from < to)
	                        skipped.push({ from, to });
	                }
	            }
	        }
	        return new ParseContext(this.parser, newState, fragments, tree, treeLen, viewport, skipped, this.scheduleOn);
	    }
	    /**
	    @internal
	    */
	    updateViewport(viewport) {
	        if (this.viewport.from == viewport.from && this.viewport.to == viewport.to)
	            return false;
	        this.viewport = viewport;
	        let startLen = this.skipped.length;
	        for (let i = 0; i < this.skipped.length; i++) {
	            let { from, to } = this.skipped[i];
	            if (from < viewport.to && to > viewport.from) {
	                this.fragments = cutFragments(this.fragments, from, to);
	                this.skipped.splice(i--, 1);
	            }
	        }
	        if (this.skipped.length >= startLen)
	            return false;
	        this.reset();
	        return true;
	    }
	    /**
	    @internal
	    */
	    reset() {
	        if (this.parse) {
	            this.takeTree();
	            this.parse = null;
	        }
	    }
	    /**
	    Notify the parse scheduler that the given region was skipped
	    because it wasn't in view, and the parse should be restarted
	    when it comes into view.
	    */
	    skipUntilInView(from, to) {
	        this.skipped.push({ from, to });
	    }
	    /**
	    Returns a parser intended to be used as placeholder when
	    asynchronously loading a nested parser. It'll skip its input and
	    mark it as not-really-parsed, so that the next update will parse
	    it again.
	    
	    When `until` is given, a reparse will be scheduled when that
	    promise resolves.
	    */
	    static getSkippingParser(until) {
	        return new class extends Parser {
	            createParse(input, fragments, ranges) {
	                let from = ranges[0].from, to = ranges[ranges.length - 1].to;
	                let parser = {
	                    parsedPos: from,
	                    advance() {
	                        let cx = currentContext;
	                        if (cx) {
	                            for (let r of ranges)
	                                cx.tempSkipped.push(r);
	                            if (until)
	                                cx.scheduleOn = cx.scheduleOn ? Promise.all([cx.scheduleOn, until]) : until;
	                        }
	                        this.parsedPos = to;
	                        return new Tree(NodeType.none, [], [], to - from);
	                    },
	                    stoppedAt: null,
	                    stopAt() { }
	                };
	                return parser;
	            }
	        };
	    }
	    /**
	    @internal
	    */
	    isDone(upto) {
	        upto = Math.min(upto, this.state.doc.length);
	        let frags = this.fragments;
	        return this.treeLen >= upto && frags.length && frags[0].from == 0 && frags[0].to >= upto;
	    }
	    /**
	    Get the context for the current parse, or `null` if no editor
	    parse is in progress.
	    */
	    static get() { return currentContext; }
	}
	function cutFragments(fragments, from, to) {
	    return TreeFragment.applyChanges(fragments, [{ fromA: from, toA: to, fromB: from, toB: to }]);
	}
	class LanguageState {
	    constructor(
	    // A mutable parse state that is used to preserve work done during
	    // the lifetime of a state when moving to the next state.
	    context) {
	        this.context = context;
	        this.tree = context.tree;
	    }
	    apply(tr) {
	        if (!tr.docChanged && this.tree == this.context.tree)
	            return this;
	        let newCx = this.context.changes(tr.changes, tr.state);
	        // If the previous parse wasn't done, go forward only up to its
	        // end position or the end of the viewport, to avoid slowing down
	        // state updates with parse work beyond the viewport.
	        let upto = this.context.treeLen == tr.startState.doc.length ? undefined
	            : Math.max(tr.changes.mapPos(this.context.treeLen), newCx.viewport.to);
	        if (!newCx.work(20 /* Work.Apply */, upto))
	            newCx.takeTree();
	        return new LanguageState(newCx);
	    }
	    static init(state) {
	        let vpTo = Math.min(3000 /* Work.InitViewport */, state.doc.length);
	        let parseState = ParseContext.create(state.facet(language).parser, state, { from: 0, to: vpTo });
	        if (!parseState.work(20 /* Work.Apply */, vpTo))
	            parseState.takeTree();
	        return new LanguageState(parseState);
	    }
	}
	Language.state = /*@__PURE__*/StateField.define({
	    create: LanguageState.init,
	    update(value, tr) {
	        for (let e of tr.effects)
	            if (e.is(Language.setState))
	                return e.value;
	        if (tr.startState.facet(language) != tr.state.facet(language))
	            return LanguageState.init(tr.state);
	        return value.apply(tr);
	    }
	});
	let requestIdle = (callback) => {
	    let timeout = setTimeout(() => callback(), 500 /* Work.MaxPause */);
	    return () => clearTimeout(timeout);
	};
	if (typeof requestIdleCallback != "undefined")
	    requestIdle = (callback) => {
	        let idle = -1, timeout = setTimeout(() => {
	            idle = requestIdleCallback(callback, { timeout: 500 /* Work.MaxPause */ - 100 /* Work.MinPause */ });
	        }, 100 /* Work.MinPause */);
	        return () => idle < 0 ? clearTimeout(timeout) : cancelIdleCallback(idle);
	    };
	const isInputPending = typeof navigator != "undefined" && ((_a = navigator.scheduling) === null || _a === void 0 ? void 0 : _a.isInputPending)
	    ? () => navigator.scheduling.isInputPending() : null;
	const parseWorker = /*@__PURE__*/ViewPlugin.fromClass(class ParseWorker {
	    constructor(view) {
	        this.view = view;
	        this.working = null;
	        this.workScheduled = 0;
	        // End of the current time chunk
	        this.chunkEnd = -1;
	        // Milliseconds of budget left for this chunk
	        this.chunkBudget = -1;
	        this.work = this.work.bind(this);
	        this.scheduleWork();
	    }
	    update(update) {
	        let cx = this.view.state.field(Language.state).context;
	        if (cx.updateViewport(update.view.viewport) || this.view.viewport.to > cx.treeLen)
	            this.scheduleWork();
	        if (update.docChanged || update.selectionSet) {
	            if (this.view.hasFocus)
	                this.chunkBudget += 50 /* Work.ChangeBonus */;
	            this.scheduleWork();
	        }
	        this.checkAsyncSchedule(cx);
	    }
	    scheduleWork() {
	        if (this.working)
	            return;
	        let { state } = this.view, field = state.field(Language.state);
	        if (field.tree != field.context.tree || !field.context.isDone(state.doc.length))
	            this.working = requestIdle(this.work);
	    }
	    work(deadline) {
	        this.working = null;
	        let now = Date.now();
	        if (this.chunkEnd < now && (this.chunkEnd < 0 || this.view.hasFocus)) { // Start a new chunk
	            this.chunkEnd = now + 30000 /* Work.ChunkTime */;
	            this.chunkBudget = 3000 /* Work.ChunkBudget */;
	        }
	        if (this.chunkBudget <= 0)
	            return; // No more budget
	        let { state, viewport: { to: vpTo } } = this.view, field = state.field(Language.state);
	        if (field.tree == field.context.tree && field.context.isDone(vpTo + 100000 /* Work.MaxParseAhead */))
	            return;
	        let endTime = Date.now() + Math.min(this.chunkBudget, 100 /* Work.Slice */, deadline && !isInputPending ? Math.max(25 /* Work.MinSlice */, deadline.timeRemaining() - 5) : 1e9);
	        let viewportFirst = field.context.treeLen < vpTo && state.doc.length > vpTo + 1000;
	        let done = field.context.work(() => {
	            return isInputPending && isInputPending() || Date.now() > endTime;
	        }, vpTo + (viewportFirst ? 0 : 100000 /* Work.MaxParseAhead */));
	        this.chunkBudget -= Date.now() - now;
	        if (done || this.chunkBudget <= 0) {
	            field.context.takeTree();
	            this.view.dispatch({ effects: Language.setState.of(new LanguageState(field.context)) });
	        }
	        if (this.chunkBudget > 0 && !(done && !viewportFirst))
	            this.scheduleWork();
	        this.checkAsyncSchedule(field.context);
	    }
	    checkAsyncSchedule(cx) {
	        if (cx.scheduleOn) {
	            this.workScheduled++;
	            cx.scheduleOn
	                .then(() => this.scheduleWork())
	                .catch(err => logException(this.view.state, err))
	                .then(() => this.workScheduled--);
	            cx.scheduleOn = null;
	        }
	    }
	    destroy() {
	        if (this.working)
	            this.working();
	    }
	    isWorking() {
	        return !!(this.working || this.workScheduled > 0);
	    }
	}, {
	    eventHandlers: { focus() { this.scheduleWork(); } }
	});
	/**
	The facet used to associate a language with an editor state. Used
	by `Language` object's `extension` property (so you don't need to
	manually wrap your languages in this). Can be used to access the
	current language on a state.
	*/
	const language = /*@__PURE__*/Facet.define({
	    combine(languages) { return languages.length ? languages[0] : null; },
	    enables: language => [
	        Language.state,
	        parseWorker,
	        EditorView.contentAttributes.compute([language], state => {
	            let lang = state.facet(language);
	            return lang && lang.name ? { "data-language": lang.name } : {};
	        })
	    ]
	});
	/**
	This class bundles a [language](https://codemirror.net/6/docs/ref/#language.Language) with an
	optional set of supporting extensions. Language packages are
	encouraged to export a function that optionally takes a
	configuration object and returns a `LanguageSupport` instance, as
	the main way for client code to use the package.
	*/
	class LanguageSupport {
	    /**
	    Create a language support object.
	    */
	    constructor(
	    /**
	    The language object.
	    */
	    language, 
	    /**
	    An optional set of supporting extensions. When nesting a
	    language in another language, the outer language is encouraged
	    to include the supporting extensions for its inner languages
	    in its own set of support extensions.
	    */
	    support = []) {
	        this.language = language;
	        this.support = support;
	        this.extension = [language, support];
	    }
	}
	/**
	Language descriptions are used to store metadata about languages
	and to dynamically load them. Their main role is finding the
	appropriate language for a filename or dynamically loading nested
	parsers.
	*/
	class LanguageDescription {
	    constructor(
	    /**
	    The name of this language.
	    */
	    name, 
	    /**
	    Alternative names for the mode (lowercased, includes `this.name`).
	    */
	    alias, 
	    /**
	    File extensions associated with this language.
	    */
	    extensions, 
	    /**
	    Optional filename pattern that should be associated with this
	    language.
	    */
	    filename, loadFunc, 
	    /**
	    If the language has been loaded, this will hold its value.
	    */
	    support = undefined) {
	        this.name = name;
	        this.alias = alias;
	        this.extensions = extensions;
	        this.filename = filename;
	        this.loadFunc = loadFunc;
	        this.support = support;
	        this.loading = null;
	    }
	    /**
	    Start loading the the language. Will return a promise that
	    resolves to a [`LanguageSupport`](https://codemirror.net/6/docs/ref/#language.LanguageSupport)
	    object when the language successfully loads.
	    */
	    load() {
	        return this.loading || (this.loading = this.loadFunc().then(support => this.support = support, err => { this.loading = null; throw err; }));
	    }
	    /**
	    Create a language description.
	    */
	    static of(spec) {
	        let { load, support } = spec;
	        if (!load) {
	            if (!support)
	                throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");
	            load = () => Promise.resolve(support);
	        }
	        return new LanguageDescription(spec.name, (spec.alias || []).concat(spec.name).map(s => s.toLowerCase()), spec.extensions || [], spec.filename, load, support);
	    }
	    /**
	    Look for a language in the given array of descriptions that
	    matches the filename. Will first match
	    [`filename`](https://codemirror.net/6/docs/ref/#language.LanguageDescription.filename) patterns,
	    and then [extensions](https://codemirror.net/6/docs/ref/#language.LanguageDescription.extensions),
	    and return the first language that matches.
	    */
	    static matchFilename(descs, filename) {
	        for (let d of descs)
	            if (d.filename && d.filename.test(filename))
	                return d;
	        let ext = /\.([^.]+)$/.exec(filename);
	        if (ext)
	            for (let d of descs)
	                if (d.extensions.indexOf(ext[1]) > -1)
	                    return d;
	        return null;
	    }
	    /**
	    Look for a language whose name or alias matches the the given
	    name (case-insensitively). If `fuzzy` is true, and no direct
	    matchs is found, this'll also search for a language whose name
	    or alias occurs in the string (for names shorter than three
	    characters, only when surrounded by non-word characters).
	    */
	    static matchLanguageName(descs, name, fuzzy = true) {
	        name = name.toLowerCase();
	        for (let d of descs)
	            if (d.alias.some(a => a == name))
	                return d;
	        if (fuzzy)
	            for (let d of descs)
	                for (let a of d.alias) {
	                    let found = name.indexOf(a);
	                    if (found > -1 && (a.length > 2 || !/\w/.test(name[found - 1]) && !/\w/.test(name[found + a.length])))
	                        return d;
	                }
	        return null;
	    }
	}

	/**
	Facet that defines a way to provide a function that computes the
	appropriate indentation depth, as a column number (see
	[`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)), at the start of a given
	line. A return value of `null` indicates no indentation can be
	determined, and the line should inherit the indentation of the one
	above it. A return value of `undefined` defers to the next indent
	service.
	*/
	const indentService = /*@__PURE__*/Facet.define();
	/**
	Facet for overriding the unit by which indentation happens. Should
	be a string consisting either entirely of the same whitespace
	character. When not set, this defaults to 2 spaces.
	*/
	const indentUnit = /*@__PURE__*/Facet.define({
	    combine: values => {
	        if (!values.length)
	            return "  ";
	        let unit = values[0];
	        if (!unit || /\S/.test(unit) || Array.from(unit).some(e => e != unit[0]))
	            throw new Error("Invalid indent unit: " + JSON.stringify(values[0]));
	        return unit;
	    }
	});
	/**
	Return the _column width_ of an indent unit in the state.
	Determined by the [`indentUnit`](https://codemirror.net/6/docs/ref/#language.indentUnit)
	facet, and [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) when that
	contains tabs.
	*/
	function getIndentUnit(state) {
	    let unit = state.facet(indentUnit);
	    return unit.charCodeAt(0) == 9 ? state.tabSize * unit.length : unit.length;
	}
	/**
	Create an indentation string that covers columns 0 to `cols`.
	Will use tabs for as much of the columns as possible when the
	[`indentUnit`](https://codemirror.net/6/docs/ref/#language.indentUnit) facet contains
	tabs.
	*/
	function indentString(state, cols) {
	    let result = "", ts = state.tabSize, ch = state.facet(indentUnit)[0];
	    if (ch == "\t") {
	        while (cols >= ts) {
	            result += "\t";
	            cols -= ts;
	        }
	        ch = " ";
	    }
	    for (let i = 0; i < cols; i++)
	        result += ch;
	    return result;
	}
	/**
	Get the indentation, as a column number, at the given position.
	Will first consult any [indent services](https://codemirror.net/6/docs/ref/#language.indentService)
	that are registered, and if none of those return an indentation,
	this will check the syntax tree for the [indent node
	prop](https://codemirror.net/6/docs/ref/#language.indentNodeProp) and use that if found. Returns a
	number when an indentation could be determined, and null
	otherwise.
	*/
	function getIndentation(context, pos) {
	    if (context instanceof EditorState)
	        context = new IndentContext(context);
	    for (let service of context.state.facet(indentService)) {
	        let result = service(context, pos);
	        if (result !== undefined)
	            return result;
	    }
	    let tree = syntaxTree(context.state);
	    return tree.length >= pos ? syntaxIndentation(context, tree, pos) : null;
	}
	/**
	Indentation contexts are used when calling [indentation
	services](https://codemirror.net/6/docs/ref/#language.indentService). They provide helper utilities
	useful in indentation logic, and can selectively override the
	indentation reported for some lines.
	*/
	class IndentContext {
	    /**
	    Create an indent context.
	    */
	    constructor(
	    /**
	    The editor state.
	    */
	    state, 
	    /**
	    @internal
	    */
	    options = {}) {
	        this.state = state;
	        this.options = options;
	        this.unit = getIndentUnit(state);
	    }
	    /**
	    Get a description of the line at the given position, taking
	    [simulated line
	    breaks](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
	    into account. If there is such a break at `pos`, the `bias`
	    argument determines whether the part of the line line before or
	    after the break is used.
	    */
	    lineAt(pos, bias = 1) {
	        let line = this.state.doc.lineAt(pos);
	        let { simulateBreak, simulateDoubleBreak } = this.options;
	        if (simulateBreak != null && simulateBreak >= line.from && simulateBreak <= line.to) {
	            if (simulateDoubleBreak && simulateBreak == pos)
	                return { text: "", from: pos };
	            else if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos)
	                return { text: line.text.slice(simulateBreak - line.from), from: simulateBreak };
	            else
	                return { text: line.text.slice(0, simulateBreak - line.from), from: line.from };
	        }
	        return line;
	    }
	    /**
	    Get the text directly after `pos`, either the entire line
	    or the next 100 characters, whichever is shorter.
	    */
	    textAfterPos(pos, bias = 1) {
	        if (this.options.simulateDoubleBreak && pos == this.options.simulateBreak)
	            return "";
	        let { text, from } = this.lineAt(pos, bias);
	        return text.slice(pos - from, Math.min(text.length, pos + 100 - from));
	    }
	    /**
	    Find the column for the given position.
	    */
	    column(pos, bias = 1) {
	        let { text, from } = this.lineAt(pos, bias);
	        let result = this.countColumn(text, pos - from);
	        let override = this.options.overrideIndentation ? this.options.overrideIndentation(from) : -1;
	        if (override > -1)
	            result += override - this.countColumn(text, text.search(/\S|$/));
	        return result;
	    }
	    /**
	    Find the column position (taking tabs into account) of the given
	    position in the given string.
	    */
	    countColumn(line, pos = line.length) {
	        return countColumn(line, this.state.tabSize, pos);
	    }
	    /**
	    Find the indentation column of the line at the given point.
	    */
	    lineIndent(pos, bias = 1) {
	        let { text, from } = this.lineAt(pos, bias);
	        let override = this.options.overrideIndentation;
	        if (override) {
	            let overriden = override(from);
	            if (overriden > -1)
	                return overriden;
	        }
	        return this.countColumn(text, text.search(/\S|$/));
	    }
	    /**
	    Returns the [simulated line
	    break](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
	    for this context, if any.
	    */
	    get simulatedBreak() {
	        return this.options.simulateBreak || null;
	    }
	}
	/**
	A syntax tree node prop used to associate indentation strategies
	with node types. Such a strategy is a function from an indentation
	context to a column number (see also
	[`indentString`](https://codemirror.net/6/docs/ref/#language.indentString)) or null, where null
	indicates that no definitive indentation can be determined.
	*/
	const indentNodeProp = /*@__PURE__*/new NodeProp();
	// Compute the indentation for a given position from the syntax tree.
	function syntaxIndentation(cx, ast, pos) {
	    let stack = ast.resolveStack(pos);
	    let inner = stack.node.enterUnfinishedNodesBefore(pos);
	    if (inner != stack.node) {
	        let add = [];
	        for (let cur = inner; cur != stack.node; cur = cur.parent)
	            add.push(cur);
	        for (let i = add.length - 1; i >= 0; i--)
	            stack = { node: add[i], next: stack };
	    }
	    return indentFor(stack, cx, pos);
	}
	function indentFor(stack, cx, pos) {
	    for (let cur = stack; cur; cur = cur.next) {
	        let strategy = indentStrategy(cur.node);
	        if (strategy)
	            return strategy(TreeIndentContext.create(cx, pos, cur));
	    }
	    return 0;
	}
	function ignoreClosed(cx) {
	    return cx.pos == cx.options.simulateBreak && cx.options.simulateDoubleBreak;
	}
	function indentStrategy(tree) {
	    let strategy = tree.type.prop(indentNodeProp);
	    if (strategy)
	        return strategy;
	    let first = tree.firstChild, close;
	    if (first && (close = first.type.prop(NodeProp.closedBy))) {
	        let last = tree.lastChild, closed = last && close.indexOf(last.name) > -1;
	        return cx => delimitedStrategy(cx, true, 1, undefined, closed && !ignoreClosed(cx) ? last.from : undefined);
	    }
	    return tree.parent == null ? topIndent$2 : null;
	}
	function topIndent$2() { return 0; }
	/**
	Objects of this type provide context information and helper
	methods to indentation functions registered on syntax nodes.
	*/
	class TreeIndentContext extends IndentContext {
	    constructor(base, 
	    /**
	    The position at which indentation is being computed.
	    */
	    pos, 
	    /**
	    @internal
	    */
	    context) {
	        super(base.state, base.options);
	        this.base = base;
	        this.pos = pos;
	        this.context = context;
	    }
	    /**
	    The syntax tree node to which the indentation strategy
	    applies.
	    */
	    get node() { return this.context.node; }
	    /**
	    @internal
	    */
	    static create(base, pos, context) {
	        return new TreeIndentContext(base, pos, context);
	    }
	    /**
	    Get the text directly after `this.pos`, either the entire line
	    or the next 100 characters, whichever is shorter.
	    */
	    get textAfter() {
	        return this.textAfterPos(this.pos);
	    }
	    /**
	    Get the indentation at the reference line for `this.node`, which
	    is the line on which it starts, unless there is a node that is
	    _not_ a parent of this node covering the start of that line. If
	    so, the line at the start of that node is tried, again skipping
	    on if it is covered by another such node.
	    */
	    get baseIndent() {
	        return this.baseIndentFor(this.node);
	    }
	    /**
	    Get the indentation for the reference line of the given node
	    (see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).
	    */
	    baseIndentFor(node) {
	        let line = this.state.doc.lineAt(node.from);
	        // Skip line starts that are covered by a sibling (or cousin, etc)
	        for (;;) {
	            let atBreak = node.resolve(line.from);
	            while (atBreak.parent && atBreak.parent.from == atBreak.from)
	                atBreak = atBreak.parent;
	            if (isParent(atBreak, node))
	                break;
	            line = this.state.doc.lineAt(atBreak.from);
	        }
	        return this.lineIndent(line.from);
	    }
	    /**
	    Continue looking for indentations in the node's parent nodes,
	    and return the result of that.
	    */
	    continue() {
	        return indentFor(this.context.next, this.base, this.pos);
	    }
	}
	function isParent(parent, of) {
	    for (let cur = of; cur; cur = cur.parent)
	        if (parent == cur)
	            return true;
	    return false;
	}
	// Check whether a delimited node is aligned (meaning there are
	// non-skipped nodes on the same line as the opening delimiter). And
	// if so, return the opening token.
	function bracketedAligned(context) {
	    let tree = context.node;
	    let openToken = tree.childAfter(tree.from), last = tree.lastChild;
	    if (!openToken)
	        return null;
	    let sim = context.options.simulateBreak;
	    let openLine = context.state.doc.lineAt(openToken.from);
	    let lineEnd = sim == null || sim <= openLine.from ? openLine.to : Math.min(openLine.to, sim);
	    for (let pos = openToken.to;;) {
	        let next = tree.childAfter(pos);
	        if (!next || next == last)
	            return null;
	        if (!next.type.isSkipped)
	            return next.from < lineEnd ? openToken : null;
	        pos = next.to;
	    }
	}
	/**
	An indentation strategy for delimited (usually bracketed) nodes.
	Will, by default, indent one unit more than the parent's base
	indent unless the line starts with a closing token. When `align`
	is true and there are non-skipped nodes on the node's opening
	line, the content of the node will be aligned with the end of the
	opening node, like this:

	    foo(bar,
	        baz)
	*/
	function delimitedIndent({ closing, align = true, units = 1 }) {
	    return (context) => delimitedStrategy(context, align, units, closing);
	}
	function delimitedStrategy(context, align, units, closing, closedAt) {
	    let after = context.textAfter, space = after.match(/^\s*/)[0].length;
	    let closed = closing && after.slice(space, space + closing.length) == closing || closedAt == context.pos + space;
	    let aligned = align ? bracketedAligned(context) : null;
	    if (aligned)
	        return closed ? context.column(aligned.from) : context.column(aligned.to);
	    return context.baseIndent + (closed ? 0 : context.unit * units);
	}
	/**
	An indentation strategy that aligns a node's content to its base
	indentation.
	*/
	const flatIndent = (context) => context.baseIndent;
	/**
	Creates an indentation strategy that, by default, indents
	continued lines one unit more than the node's base indentation.
	You can provide `except` to prevent indentation of lines that
	match a pattern (for example `/^else\b/` in `if`/`else`
	constructs), and you can change the amount of units used with the
	`units` option.
	*/
	function continuedIndent({ except, units = 1 } = {}) {
	    return (context) => {
	        let matchExcept = except && except.test(context.textAfter);
	        return context.baseIndent + (matchExcept ? 0 : units * context.unit);
	    };
	}
	const DontIndentBeyond = 200;
	/**
	Enables reindentation on input. When a language defines an
	`indentOnInput` field in its [language
	data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt), which must hold a regular
	expression, the line at the cursor will be reindented whenever new
	text is typed and the input from the start of the line up to the
	cursor matches that regexp.

	To avoid unneccesary reindents, it is recommended to start the
	regexp with `^` (usually followed by `\s*`), and end it with `$`.
	For example, `/^\s*\}$/` will reindent when a closing brace is
	added at the start of a line.
	*/
	function indentOnInput() {
	    return EditorState.transactionFilter.of(tr => {
	        if (!tr.docChanged || !tr.isUserEvent("input.type") && !tr.isUserEvent("input.complete"))
	            return tr;
	        let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head);
	        if (!rules.length)
	            return tr;
	        let doc = tr.newDoc, { head } = tr.newSelection.main, line = doc.lineAt(head);
	        if (head > line.from + DontIndentBeyond)
	            return tr;
	        let lineStart = doc.sliceString(line.from, head);
	        if (!rules.some(r => r.test(lineStart)))
	            return tr;
	        let { state } = tr, last = -1, changes = [];
	        for (let { head } of state.selection.ranges) {
	            let line = state.doc.lineAt(head);
	            if (line.from == last)
	                continue;
	            last = line.from;
	            let indent = getIndentation(state, line.from);
	            if (indent == null)
	                continue;
	            let cur = /^\s*/.exec(line.text)[0];
	            let norm = indentString(state, indent);
	            if (cur != norm)
	                changes.push({ from: line.from, to: line.from + cur.length, insert: norm });
	        }
	        return changes.length ? [tr, { changes, sequential: true }] : tr;
	    });
	}

	/**
	A facet that registers a code folding service. When called with
	the extent of a line, such a function should return a foldable
	range that starts on that line (but continues beyond it), if one
	can be found.
	*/
	const foldService = /*@__PURE__*/Facet.define();
	/**
	This node prop is used to associate folding information with
	syntax node types. Given a syntax node, it should check whether
	that tree is foldable and return the range that can be collapsed
	when it is.
	*/
	const foldNodeProp = /*@__PURE__*/new NodeProp();
	/**
	[Fold](https://codemirror.net/6/docs/ref/#language.foldNodeProp) function that folds everything but
	the first and the last child of a syntax node. Useful for nodes
	that start and end with delimiters.
	*/
	function foldInside(node) {
	    let first = node.firstChild, last = node.lastChild;
	    return first && first.to < last.from ? { from: first.to, to: last.type.isError ? node.to : last.from } : null;
	}
	function syntaxFolding(state, start, end) {
	    let tree = syntaxTree(state);
	    if (tree.length < end)
	        return null;
	    let stack = tree.resolveStack(end, 1);
	    let found = null;
	    for (let iter = stack; iter; iter = iter.next) {
	        let cur = iter.node;
	        if (cur.to <= end || cur.from > end)
	            continue;
	        if (found && cur.from < start)
	            break;
	        let prop = cur.type.prop(foldNodeProp);
	        if (prop && (cur.to < tree.length - 50 || tree.length == state.doc.length || !isUnfinished(cur))) {
	            let value = prop(cur, state);
	            if (value && value.from <= end && value.from >= start && value.to > end)
	                found = value;
	        }
	    }
	    return found;
	}
	function isUnfinished(node) {
	    let ch = node.lastChild;
	    return ch && ch.to == node.to && ch.type.isError;
	}
	/**
	Check whether the given line is foldable. First asks any fold
	services registered through
	[`foldService`](https://codemirror.net/6/docs/ref/#language.foldService), and if none of them return
	a result, tries to query the [fold node
	prop](https://codemirror.net/6/docs/ref/#language.foldNodeProp) of syntax nodes that cover the end
	of the line.
	*/
	function foldable(state, lineStart, lineEnd) {
	    for (let service of state.facet(foldService)) {
	        let result = service(state, lineStart, lineEnd);
	        if (result)
	            return result;
	    }
	    return syntaxFolding(state, lineStart, lineEnd);
	}
	function mapRange(range, mapping) {
	    let from = mapping.mapPos(range.from, 1), to = mapping.mapPos(range.to, -1);
	    return from >= to ? undefined : { from, to };
	}
	/**
	State effect that can be attached to a transaction to fold the
	given range. (You probably only need this in exceptional
	circumstances—usually you'll just want to let
	[`foldCode`](https://codemirror.net/6/docs/ref/#language.foldCode) and the [fold
	gutter](https://codemirror.net/6/docs/ref/#language.foldGutter) create the transactions.)
	*/
	const foldEffect = /*@__PURE__*/StateEffect.define({ map: mapRange });
	/**
	State effect that unfolds the given range (if it was folded).
	*/
	const unfoldEffect = /*@__PURE__*/StateEffect.define({ map: mapRange });
	function selectedLines(view) {
	    let lines = [];
	    for (let { head } of view.state.selection.ranges) {
	        if (lines.some(l => l.from <= head && l.to >= head))
	            continue;
	        lines.push(view.lineBlockAt(head));
	    }
	    return lines;
	}
	/**
	The state field that stores the folded ranges (as a [decoration
	set](https://codemirror.net/6/docs/ref/#view.DecorationSet)). Can be passed to
	[`EditorState.toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) and
	[`fromJSON`](https://codemirror.net/6/docs/ref/#state.EditorState^fromJSON) to serialize the fold
	state.
	*/
	const foldState = /*@__PURE__*/StateField.define({
	    create() {
	        return Decoration.none;
	    },
	    update(folded, tr) {
	        folded = folded.map(tr.changes);
	        for (let e of tr.effects) {
	            if (e.is(foldEffect) && !foldExists(folded, e.value.from, e.value.to)) {
	                let { preparePlaceholder } = tr.state.facet(foldConfig);
	                let widget = !preparePlaceholder ? foldWidget :
	                    Decoration.replace({ widget: new PreparedFoldWidget(preparePlaceholder(tr.state, e.value)) });
	                folded = folded.update({ add: [widget.range(e.value.from, e.value.to)] });
	            }
	            else if (e.is(unfoldEffect)) {
	                folded = folded.update({ filter: (from, to) => e.value.from != from || e.value.to != to,
	                    filterFrom: e.value.from, filterTo: e.value.to });
	            }
	        }
	        // Clear folded ranges that cover the selection head
	        if (tr.selection) {
	            let onSelection = false, { head } = tr.selection.main;
	            folded.between(head, head, (a, b) => { if (a < head && b > head)
	                onSelection = true; });
	            if (onSelection)
	                folded = folded.update({
	                    filterFrom: head,
	                    filterTo: head,
	                    filter: (a, b) => b <= head || a >= head
	                });
	        }
	        return folded;
	    },
	    provide: f => EditorView.decorations.from(f),
	    toJSON(folded, state) {
	        let ranges = [];
	        folded.between(0, state.doc.length, (from, to) => { ranges.push(from, to); });
	        return ranges;
	    },
	    fromJSON(value) {
	        if (!Array.isArray(value) || value.length % 2)
	            throw new RangeError("Invalid JSON for fold state");
	        let ranges = [];
	        for (let i = 0; i < value.length;) {
	            let from = value[i++], to = value[i++];
	            if (typeof from != "number" || typeof to != "number")
	                throw new RangeError("Invalid JSON for fold state");
	            ranges.push(foldWidget.range(from, to));
	        }
	        return Decoration.set(ranges, true);
	    }
	});
	function findFold(state, from, to) {
	    var _a;
	    let found = null;
	    (_a = state.field(foldState, false)) === null || _a === void 0 ? void 0 : _a.between(from, to, (from, to) => {
	        if (!found || found.from > from)
	            found = { from, to };
	    });
	    return found;
	}
	function foldExists(folded, from, to) {
	    let found = false;
	    folded.between(from, from, (a, b) => { if (a == from && b == to)
	        found = true; });
	    return found;
	}
	function maybeEnable(state, other) {
	    return state.field(foldState, false) ? other : other.concat(StateEffect.appendConfig.of(codeFolding()));
	}
	/**
	Fold the lines that are selected, if possible.
	*/
	const foldCode = view => {
	    for (let line of selectedLines(view)) {
	        let range = foldable(view.state, line.from, line.to);
	        if (range) {
	            view.dispatch({ effects: maybeEnable(view.state, [foldEffect.of(range), announceFold(view, range)]) });
	            return true;
	        }
	    }
	    return false;
	};
	/**
	Unfold folded ranges on selected lines.
	*/
	const unfoldCode = view => {
	    if (!view.state.field(foldState, false))
	        return false;
	    let effects = [];
	    for (let line of selectedLines(view)) {
	        let folded = findFold(view.state, line.from, line.to);
	        if (folded)
	            effects.push(unfoldEffect.of(folded), announceFold(view, folded, false));
	    }
	    if (effects.length)
	        view.dispatch({ effects });
	    return effects.length > 0;
	};
	function announceFold(view, range, fold = true) {
	    let lineFrom = view.state.doc.lineAt(range.from).number, lineTo = view.state.doc.lineAt(range.to).number;
	    return EditorView.announce.of(`${view.state.phrase(fold ? "Folded lines" : "Unfolded lines")} ${lineFrom} ${view.state.phrase("to")} ${lineTo}.`);
	}
	/**
	Fold all top-level foldable ranges. Note that, in most cases,
	folding information will depend on the [syntax
	tree](https://codemirror.net/6/docs/ref/#language.syntaxTree), and folding everything may not work
	reliably when the document hasn't been fully parsed (either
	because the editor state was only just initialized, or because the
	document is so big that the parser decided not to parse it
	entirely).
	*/
	const foldAll = view => {
	    let { state } = view, effects = [];
	    for (let pos = 0; pos < state.doc.length;) {
	        let line = view.lineBlockAt(pos), range = foldable(state, line.from, line.to);
	        if (range)
	            effects.push(foldEffect.of(range));
	        pos = (range ? view.lineBlockAt(range.to) : line).to + 1;
	    }
	    if (effects.length)
	        view.dispatch({ effects: maybeEnable(view.state, effects) });
	    return !!effects.length;
	};
	/**
	Unfold all folded code.
	*/
	const unfoldAll = view => {
	    let field = view.state.field(foldState, false);
	    if (!field || !field.size)
	        return false;
	    let effects = [];
	    field.between(0, view.state.doc.length, (from, to) => { effects.push(unfoldEffect.of({ from, to })); });
	    view.dispatch({ effects });
	    return true;
	};
	/**
	Default fold-related key bindings.

	 - Ctrl-Shift-[ (Cmd-Alt-[ on macOS): [`foldCode`](https://codemirror.net/6/docs/ref/#language.foldCode).
	 - Ctrl-Shift-] (Cmd-Alt-] on macOS): [`unfoldCode`](https://codemirror.net/6/docs/ref/#language.unfoldCode).
	 - Ctrl-Alt-[: [`foldAll`](https://codemirror.net/6/docs/ref/#language.foldAll).
	 - Ctrl-Alt-]: [`unfoldAll`](https://codemirror.net/6/docs/ref/#language.unfoldAll).
	*/
	const foldKeymap = [
	    { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: foldCode },
	    { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: unfoldCode },
	    { key: "Ctrl-Alt-[", run: foldAll },
	    { key: "Ctrl-Alt-]", run: unfoldAll }
	];
	const defaultConfig = {
	    placeholderDOM: null,
	    preparePlaceholder: null,
	    placeholderText: "…"
	};
	const foldConfig = /*@__PURE__*/Facet.define({
	    combine(values) { return combineConfig(values, defaultConfig); }
	});
	/**
	Create an extension that configures code folding.
	*/
	function codeFolding(config) {
	    let result = [foldState, baseTheme$1$1];
	    if (config)
	        result.push(foldConfig.of(config));
	    return result;
	}
	function widgetToDOM(view, prepared) {
	    let { state } = view, conf = state.facet(foldConfig);
	    let onclick = (event) => {
	        let line = view.lineBlockAt(view.posAtDOM(event.target));
	        let folded = findFold(view.state, line.from, line.to);
	        if (folded)
	            view.dispatch({ effects: unfoldEffect.of(folded) });
	        event.preventDefault();
	    };
	    if (conf.placeholderDOM)
	        return conf.placeholderDOM(view, onclick, prepared);
	    let element = document.createElement("span");
	    element.textContent = conf.placeholderText;
	    element.setAttribute("aria-label", state.phrase("folded code"));
	    element.title = state.phrase("unfold");
	    element.className = "cm-foldPlaceholder";
	    element.onclick = onclick;
	    return element;
	}
	const foldWidget = /*@__PURE__*/Decoration.replace({ widget: /*@__PURE__*/new class extends WidgetType {
	        toDOM(view) { return widgetToDOM(view, null); }
	    } });
	class PreparedFoldWidget extends WidgetType {
	    constructor(value) {
	        super();
	        this.value = value;
	    }
	    eq(other) { return this.value == other.value; }
	    toDOM(view) { return widgetToDOM(view, this.value); }
	}
	const foldGutterDefaults = {
	    openText: "⌄",
	    closedText: "›",
	    markerDOM: null,
	    domEventHandlers: {},
	    foldingChanged: () => false
	};
	class FoldMarker extends GutterMarker {
	    constructor(config, open) {
	        super();
	        this.config = config;
	        this.open = open;
	    }
	    eq(other) { return this.config == other.config && this.open == other.open; }
	    toDOM(view) {
	        if (this.config.markerDOM)
	            return this.config.markerDOM(this.open);
	        let span = document.createElement("span");
	        span.textContent = this.open ? this.config.openText : this.config.closedText;
	        span.title = view.state.phrase(this.open ? "Fold line" : "Unfold line");
	        return span;
	    }
	}
	/**
	Create an extension that registers a fold gutter, which shows a
	fold status indicator before foldable lines (which can be clicked
	to fold or unfold the line).
	*/
	function foldGutter(config = {}) {
	    let fullConfig = Object.assign(Object.assign({}, foldGutterDefaults), config);
	    let canFold = new FoldMarker(fullConfig, true), canUnfold = new FoldMarker(fullConfig, false);
	    let markers = ViewPlugin.fromClass(class {
	        constructor(view) {
	            this.from = view.viewport.from;
	            this.markers = this.buildMarkers(view);
	        }
	        update(update) {
	            if (update.docChanged || update.viewportChanged ||
	                update.startState.facet(language) != update.state.facet(language) ||
	                update.startState.field(foldState, false) != update.state.field(foldState, false) ||
	                syntaxTree(update.startState) != syntaxTree(update.state) ||
	                fullConfig.foldingChanged(update))
	                this.markers = this.buildMarkers(update.view);
	        }
	        buildMarkers(view) {
	            let builder = new RangeSetBuilder();
	            for (let line of view.viewportLineBlocks) {
	                let mark = findFold(view.state, line.from, line.to) ? canUnfold
	                    : foldable(view.state, line.from, line.to) ? canFold : null;
	                if (mark)
	                    builder.add(line.from, line.from, mark);
	            }
	            return builder.finish();
	        }
	    });
	    let { domEventHandlers } = fullConfig;
	    return [
	        markers,
	        gutter({
	            class: "cm-foldGutter",
	            markers(view) { var _a; return ((_a = view.plugin(markers)) === null || _a === void 0 ? void 0 : _a.markers) || RangeSet.empty; },
	            initialSpacer() {
	                return new FoldMarker(fullConfig, false);
	            },
	            domEventHandlers: Object.assign(Object.assign({}, domEventHandlers), { click: (view, line, event) => {
	                    if (domEventHandlers.click && domEventHandlers.click(view, line, event))
	                        return true;
	                    let folded = findFold(view.state, line.from, line.to);
	                    if (folded) {
	                        view.dispatch({ effects: unfoldEffect.of(folded) });
	                        return true;
	                    }
	                    let range = foldable(view.state, line.from, line.to);
	                    if (range) {
	                        view.dispatch({ effects: foldEffect.of(range) });
	                        return true;
	                    }
	                    return false;
	                } })
	        }),
	        codeFolding()
	    ];
	}
	const baseTheme$1$1 = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-foldPlaceholder": {
	        backgroundColor: "#eee",
	        border: "1px solid #ddd",
	        color: "#888",
	        borderRadius: ".2em",
	        margin: "0 1px",
	        padding: "0 1px",
	        cursor: "pointer"
	    },
	    ".cm-foldGutter span": {
	        padding: "0 1px",
	        cursor: "pointer"
	    }
	});

	/**
	A highlight style associates CSS styles with higlighting
	[tags](https://lezer.codemirror.net/docs/ref#highlight.Tag).
	*/
	class HighlightStyle {
	    constructor(
	    /**
	    The tag styles used to create this highlight style.
	    */
	    specs, options) {
	        this.specs = specs;
	        let modSpec;
	        function def(spec) {
	            let cls = StyleModule.newName();
	            (modSpec || (modSpec = Object.create(null)))["." + cls] = spec;
	            return cls;
	        }
	        const all = typeof options.all == "string" ? options.all : options.all ? def(options.all) : undefined;
	        const scopeOpt = options.scope;
	        this.scope = scopeOpt instanceof Language ? (type) => type.prop(languageDataProp) == scopeOpt.data
	            : scopeOpt ? (type) => type == scopeOpt : undefined;
	        this.style = tagHighlighter(specs.map(style => ({
	            tag: style.tag,
	            class: style.class || def(Object.assign({}, style, { tag: null }))
	        })), {
	            all,
	        }).style;
	        this.module = modSpec ? new StyleModule(modSpec) : null;
	        this.themeType = options.themeType;
	    }
	    /**
	    Create a highlighter style that associates the given styles to
	    the given tags. The specs must be objects that hold a style tag
	    or array of tags in their `tag` property, and either a single
	    `class` property providing a static CSS class (for highlighter
	    that rely on external styling), or a
	    [`style-mod`](https://github.com/marijnh/style-mod#documentation)-style
	    set of CSS properties (which define the styling for those tags).
	    
	    The CSS rules created for a highlighter will be emitted in the
	    order of the spec's properties. That means that for elements that
	    have multiple tags associated with them, styles defined further
	    down in the list will have a higher CSS precedence than styles
	    defined earlier.
	    */
	    static define(specs, options) {
	        return new HighlightStyle(specs, options || {});
	    }
	}
	const highlighterFacet = /*@__PURE__*/Facet.define();
	const fallbackHighlighter = /*@__PURE__*/Facet.define({
	    combine(values) { return values.length ? [values[0]] : null; }
	});
	function getHighlighters(state) {
	    let main = state.facet(highlighterFacet);
	    return main.length ? main : state.facet(fallbackHighlighter);
	}
	/**
	Wrap a highlighter in an editor extension that uses it to apply
	syntax highlighting to the editor content.

	When multiple (non-fallback) styles are provided, the styling
	applied is the union of the classes they emit.
	*/
	function syntaxHighlighting(highlighter, options) {
	    let ext = [treeHighlighter], themeType;
	    if (highlighter instanceof HighlightStyle) {
	        if (highlighter.module)
	            ext.push(EditorView.styleModule.of(highlighter.module));
	        themeType = highlighter.themeType;
	    }
	    if (options === null || options === void 0 ? void 0 : options.fallback)
	        ext.push(fallbackHighlighter.of(highlighter));
	    else if (themeType)
	        ext.push(highlighterFacet.computeN([EditorView.darkTheme], state => {
	            return state.facet(EditorView.darkTheme) == (themeType == "dark") ? [highlighter] : [];
	        }));
	    else
	        ext.push(highlighterFacet.of(highlighter));
	    return ext;
	}
	class TreeHighlighter {
	    constructor(view) {
	        this.markCache = Object.create(null);
	        this.tree = syntaxTree(view.state);
	        this.decorations = this.buildDeco(view, getHighlighters(view.state));
	        this.decoratedTo = view.viewport.to;
	    }
	    update(update) {
	        let tree = syntaxTree(update.state), highlighters = getHighlighters(update.state);
	        let styleChange = highlighters != getHighlighters(update.startState);
	        let { viewport } = update.view, decoratedToMapped = update.changes.mapPos(this.decoratedTo, 1);
	        if (tree.length < viewport.to && !styleChange && tree.type == this.tree.type && decoratedToMapped >= viewport.to) {
	            this.decorations = this.decorations.map(update.changes);
	            this.decoratedTo = decoratedToMapped;
	        }
	        else if (tree != this.tree || update.viewportChanged || styleChange) {
	            this.tree = tree;
	            this.decorations = this.buildDeco(update.view, highlighters);
	            this.decoratedTo = viewport.to;
	        }
	    }
	    buildDeco(view, highlighters) {
	        if (!highlighters || !this.tree.length)
	            return Decoration.none;
	        let builder = new RangeSetBuilder();
	        for (let { from, to } of view.visibleRanges) {
	            highlightTree(this.tree, highlighters, (from, to, style) => {
	                builder.add(from, to, this.markCache[style] || (this.markCache[style] = Decoration.mark({ class: style })));
	            }, from, to);
	        }
	        return builder.finish();
	    }
	}
	const treeHighlighter = /*@__PURE__*/Prec.high(/*@__PURE__*/ViewPlugin.fromClass(TreeHighlighter, {
	    decorations: v => v.decorations
	}));
	/**
	A default highlight style (works well with light themes).
	*/
	const defaultHighlightStyle = /*@__PURE__*/HighlightStyle.define([
	    { tag: tags$1.meta,
	        color: "#404740" },
	    { tag: tags$1.link,
	        textDecoration: "underline" },
	    { tag: tags$1.heading,
	        textDecoration: "underline",
	        fontWeight: "bold" },
	    { tag: tags$1.emphasis,
	        fontStyle: "italic" },
	    { tag: tags$1.strong,
	        fontWeight: "bold" },
	    { tag: tags$1.strikethrough,
	        textDecoration: "line-through" },
	    { tag: tags$1.keyword,
	        color: "#708" },
	    { tag: [tags$1.atom, tags$1.bool, tags$1.url, tags$1.contentSeparator, tags$1.labelName],
	        color: "#219" },
	    { tag: [tags$1.literal, tags$1.inserted],
	        color: "#164" },
	    { tag: [tags$1.string, tags$1.deleted],
	        color: "#a11" },
	    { tag: [tags$1.regexp, tags$1.escape, /*@__PURE__*/tags$1.special(tags$1.string)],
	        color: "#e40" },
	    { tag: /*@__PURE__*/tags$1.definition(tags$1.variableName),
	        color: "#00f" },
	    { tag: /*@__PURE__*/tags$1.local(tags$1.variableName),
	        color: "#30a" },
	    { tag: [tags$1.typeName, tags$1.namespace],
	        color: "#085" },
	    { tag: tags$1.className,
	        color: "#167" },
	    { tag: [/*@__PURE__*/tags$1.special(tags$1.variableName), tags$1.macroName],
	        color: "#256" },
	    { tag: /*@__PURE__*/tags$1.definition(tags$1.propertyName),
	        color: "#00c" },
	    { tag: tags$1.comment,
	        color: "#940" },
	    { tag: tags$1.invalid,
	        color: "#f00" }
	]);

	const baseTheme$4 = /*@__PURE__*/EditorView.baseTheme({
	    "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
	    "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
	});
	const DefaultScanDist = 10000, DefaultBrackets = "()[]{}";
	const bracketMatchingConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        return combineConfig(configs, {
	            afterCursor: true,
	            brackets: DefaultBrackets,
	            maxScanDistance: DefaultScanDist,
	            renderMatch: defaultRenderMatch
	        });
	    }
	});
	const matchingMark = /*@__PURE__*/Decoration.mark({ class: "cm-matchingBracket" }), nonmatchingMark = /*@__PURE__*/Decoration.mark({ class: "cm-nonmatchingBracket" });
	function defaultRenderMatch(match) {
	    let decorations = [];
	    let mark = match.matched ? matchingMark : nonmatchingMark;
	    decorations.push(mark.range(match.start.from, match.start.to));
	    if (match.end)
	        decorations.push(mark.range(match.end.from, match.end.to));
	    return decorations;
	}
	const bracketMatchingState = /*@__PURE__*/StateField.define({
	    create() { return Decoration.none; },
	    update(deco, tr) {
	        if (!tr.docChanged && !tr.selection)
	            return deco;
	        let decorations = [];
	        let config = tr.state.facet(bracketMatchingConfig);
	        for (let range of tr.state.selection.ranges) {
	            if (!range.empty)
	                continue;
	            let match = matchBrackets(tr.state, range.head, -1, config)
	                || (range.head > 0 && matchBrackets(tr.state, range.head - 1, 1, config))
	                || (config.afterCursor &&
	                    (matchBrackets(tr.state, range.head, 1, config) ||
	                        (range.head < tr.state.doc.length && matchBrackets(tr.state, range.head + 1, -1, config))));
	            if (match)
	                decorations = decorations.concat(config.renderMatch(match, tr.state));
	        }
	        return Decoration.set(decorations, true);
	    },
	    provide: f => EditorView.decorations.from(f)
	});
	const bracketMatchingUnique = [
	    bracketMatchingState,
	    baseTheme$4
	];
	/**
	Create an extension that enables bracket matching. Whenever the
	cursor is next to a bracket, that bracket and the one it matches
	are highlighted. Or, when no matching bracket is found, another
	highlighting style is used to indicate this.
	*/
	function bracketMatching(config = {}) {
	    return [bracketMatchingConfig.of(config), bracketMatchingUnique];
	}
	/**
	When larger syntax nodes, such as HTML tags, are marked as
	opening/closing, it can be a bit messy to treat the whole node as
	a matchable bracket. This node prop allows you to define, for such
	a node, a ‘handle’—the part of the node that is highlighted, and
	that the cursor must be on to activate highlighting in the first
	place.
	*/
	const bracketMatchingHandle = /*@__PURE__*/new NodeProp();
	function matchingNodes(node, dir, brackets) {
	    let byProp = node.prop(dir < 0 ? NodeProp.openedBy : NodeProp.closedBy);
	    if (byProp)
	        return byProp;
	    if (node.name.length == 1) {
	        let index = brackets.indexOf(node.name);
	        if (index > -1 && index % 2 == (dir < 0 ? 1 : 0))
	            return [brackets[index + dir]];
	    }
	    return null;
	}
	function findHandle(node) {
	    let hasHandle = node.type.prop(bracketMatchingHandle);
	    return hasHandle ? hasHandle(node.node) : node;
	}
	/**
	Find the matching bracket for the token at `pos`, scanning
	direction `dir`. Only the `brackets` and `maxScanDistance`
	properties are used from `config`, if given. Returns null if no
	bracket was found at `pos`, or a match result otherwise.
	*/
	function matchBrackets(state, pos, dir, config = {}) {
	    let maxScanDistance = config.maxScanDistance || DefaultScanDist, brackets = config.brackets || DefaultBrackets;
	    let tree = syntaxTree(state), node = tree.resolveInner(pos, dir);
	    for (let cur = node; cur; cur = cur.parent) {
	        let matches = matchingNodes(cur.type, dir, brackets);
	        if (matches && cur.from < cur.to) {
	            let handle = findHandle(cur);
	            if (handle && (dir > 0 ? pos >= handle.from && pos < handle.to : pos > handle.from && pos <= handle.to))
	                return matchMarkedBrackets(state, pos, dir, cur, handle, matches, brackets);
	        }
	    }
	    return matchPlainBrackets(state, pos, dir, tree, node.type, maxScanDistance, brackets);
	}
	function matchMarkedBrackets(_state, _pos, dir, token, handle, matching, brackets) {
	    let parent = token.parent, firstToken = { from: handle.from, to: handle.to };
	    let depth = 0, cursor = parent === null || parent === void 0 ? void 0 : parent.cursor();
	    if (cursor && (dir < 0 ? cursor.childBefore(token.from) : cursor.childAfter(token.to)))
	        do {
	            if (dir < 0 ? cursor.to <= token.from : cursor.from >= token.to) {
	                if (depth == 0 && matching.indexOf(cursor.type.name) > -1 && cursor.from < cursor.to) {
	                    let endHandle = findHandle(cursor);
	                    return { start: firstToken, end: endHandle ? { from: endHandle.from, to: endHandle.to } : undefined, matched: true };
	                }
	                else if (matchingNodes(cursor.type, dir, brackets)) {
	                    depth++;
	                }
	                else if (matchingNodes(cursor.type, -dir, brackets)) {
	                    if (depth == 0) {
	                        let endHandle = findHandle(cursor);
	                        return {
	                            start: firstToken,
	                            end: endHandle && endHandle.from < endHandle.to ? { from: endHandle.from, to: endHandle.to } : undefined,
	                            matched: false
	                        };
	                    }
	                    depth--;
	                }
	            }
	        } while (dir < 0 ? cursor.prevSibling() : cursor.nextSibling());
	    return { start: firstToken, matched: false };
	}
	function matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance, brackets) {
	    let startCh = dir < 0 ? state.sliceDoc(pos - 1, pos) : state.sliceDoc(pos, pos + 1);
	    let bracket = brackets.indexOf(startCh);
	    if (bracket < 0 || (bracket % 2 == 0) != (dir > 0))
	        return null;
	    let startToken = { from: dir < 0 ? pos - 1 : pos, to: dir > 0 ? pos + 1 : pos };
	    let iter = state.doc.iterRange(pos, dir > 0 ? state.doc.length : 0), depth = 0;
	    for (let distance = 0; !(iter.next()).done && distance <= maxScanDistance;) {
	        let text = iter.value;
	        if (dir < 0)
	            distance += text.length;
	        let basePos = pos + distance * dir;
	        for (let pos = dir > 0 ? 0 : text.length - 1, end = dir > 0 ? text.length : -1; pos != end; pos += dir) {
	            let found = brackets.indexOf(text[pos]);
	            if (found < 0 || tree.resolveInner(basePos + pos, 1).type != tokenType)
	                continue;
	            if ((found % 2 == 0) == (dir > 0)) {
	                depth++;
	            }
	            else if (depth == 1) { // Closing
	                return { start: startToken, end: { from: basePos + pos, to: basePos + pos + 1 }, matched: (found >> 1) == (bracket >> 1) };
	            }
	            else {
	                depth--;
	            }
	        }
	        if (dir > 0)
	            distance += text.length;
	    }
	    return iter.done ? { start: startToken, matched: false } : null;
	}

	// Counts the column offset in a string, taking tabs into account.
	// Used mostly to find indentation.
	function countCol(string, end, tabSize, startIndex = 0, startValue = 0) {
	    if (end == null) {
	        end = string.search(/[^\s\u00a0]/);
	        if (end == -1)
	            end = string.length;
	    }
	    let n = startValue;
	    for (let i = startIndex; i < end; i++) {
	        if (string.charCodeAt(i) == 9)
	            n += tabSize - (n % tabSize);
	        else
	            n++;
	    }
	    return n;
	}
	/**
	Encapsulates a single line of input. Given to stream syntax code,
	which uses it to tokenize the content.
	*/
	class StringStream {
	    /**
	    Create a stream.
	    */
	    constructor(
	    /**
	    The line.
	    */
	    string, tabSize, 
	    /**
	    The current indent unit size.
	    */
	    indentUnit, overrideIndent) {
	        this.string = string;
	        this.tabSize = tabSize;
	        this.indentUnit = indentUnit;
	        this.overrideIndent = overrideIndent;
	        /**
	        The current position on the line.
	        */
	        this.pos = 0;
	        /**
	        The start position of the current token.
	        */
	        this.start = 0;
	        this.lastColumnPos = 0;
	        this.lastColumnValue = 0;
	    }
	    /**
	    True if we are at the end of the line.
	    */
	    eol() { return this.pos >= this.string.length; }
	    /**
	    True if we are at the start of the line.
	    */
	    sol() { return this.pos == 0; }
	    /**
	    Get the next code unit after the current position, or undefined
	    if we're at the end of the line.
	    */
	    peek() { return this.string.charAt(this.pos) || undefined; }
	    /**
	    Read the next code unit and advance `this.pos`.
	    */
	    next() {
	        if (this.pos < this.string.length)
	            return this.string.charAt(this.pos++);
	    }
	    /**
	    Match the next character against the given string, regular
	    expression, or predicate. Consume and return it if it matches.
	    */
	    eat(match) {
	        let ch = this.string.charAt(this.pos);
	        let ok;
	        if (typeof match == "string")
	            ok = ch == match;
	        else
	            ok = ch && (match instanceof RegExp ? match.test(ch) : match(ch));
	        if (ok) {
	            ++this.pos;
	            return ch;
	        }
	    }
	    /**
	    Continue matching characters that match the given string,
	    regular expression, or predicate function. Return true if any
	    characters were consumed.
	    */
	    eatWhile(match) {
	        let start = this.pos;
	        while (this.eat(match)) { }
	        return this.pos > start;
	    }
	    /**
	    Consume whitespace ahead of `this.pos`. Return true if any was
	    found.
	    */
	    eatSpace() {
	        let start = this.pos;
	        while (/[\s\u00a0]/.test(this.string.charAt(this.pos)))
	            ++this.pos;
	        return this.pos > start;
	    }
	    /**
	    Move to the end of the line.
	    */
	    skipToEnd() { this.pos = this.string.length; }
	    /**
	    Move to directly before the given character, if found on the
	    current line.
	    */
	    skipTo(ch) {
	        let found = this.string.indexOf(ch, this.pos);
	        if (found > -1) {
	            this.pos = found;
	            return true;
	        }
	    }
	    /**
	    Move back `n` characters.
	    */
	    backUp(n) { this.pos -= n; }
	    /**
	    Get the column position at `this.pos`.
	    */
	    column() {
	        if (this.lastColumnPos < this.start) {
	            this.lastColumnValue = countCol(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);
	            this.lastColumnPos = this.start;
	        }
	        return this.lastColumnValue;
	    }
	    /**
	    Get the indentation column of the current line.
	    */
	    indentation() {
	        var _a;
	        return (_a = this.overrideIndent) !== null && _a !== void 0 ? _a : countCol(this.string, null, this.tabSize);
	    }
	    /**
	    Match the input against the given string or regular expression
	    (which should start with a `^`). Return true or the regexp match
	    if it matches.
	    
	    Unless `consume` is set to `false`, this will move `this.pos`
	    past the matched text.
	    
	    When matching a string `caseInsensitive` can be set to true to
	    make the match case-insensitive.
	    */
	    match(pattern, consume, caseInsensitive) {
	        if (typeof pattern == "string") {
	            let cased = (str) => caseInsensitive ? str.toLowerCase() : str;
	            let substr = this.string.substr(this.pos, pattern.length);
	            if (cased(substr) == cased(pattern)) {
	                if (consume !== false)
	                    this.pos += pattern.length;
	                return true;
	            }
	            else
	                return null;
	        }
	        else {
	            let match = this.string.slice(this.pos).match(pattern);
	            if (match && match.index > 0)
	                return null;
	            if (match && consume !== false)
	                this.pos += match[0].length;
	            return match;
	        }
	    }
	    /**
	    Get the current token.
	    */
	    current() { return this.string.slice(this.start, this.pos); }
	}

	function fullParser(spec) {
	    return {
	        name: spec.name || "",
	        token: spec.token,
	        blankLine: spec.blankLine || (() => { }),
	        startState: spec.startState || (() => true),
	        copyState: spec.copyState || defaultCopyState,
	        indent: spec.indent || (() => null),
	        languageData: spec.languageData || {},
	        tokenTable: spec.tokenTable || noTokens
	    };
	}
	function defaultCopyState(state) {
	    if (typeof state != "object")
	        return state;
	    let newState = {};
	    for (let prop in state) {
	        let val = state[prop];
	        newState[prop] = (val instanceof Array ? val.slice() : val);
	    }
	    return newState;
	}
	const IndentedFrom = /*@__PURE__*/new WeakMap();
	/**
	A [language](https://codemirror.net/6/docs/ref/#language.Language) class based on a CodeMirror
	5-style [streaming parser](https://codemirror.net/6/docs/ref/#language.StreamParser).
	*/
	class StreamLanguage extends Language {
	    constructor(parser) {
	        let data = defineLanguageFacet(parser.languageData);
	        let p = fullParser(parser), self;
	        let impl = new class extends Parser {
	            createParse(input, fragments, ranges) {
	                return new Parse$1(self, input, fragments, ranges);
	            }
	        };
	        super(data, impl, [indentService.of((cx, pos) => this.getIndent(cx, pos))], parser.name);
	        this.topNode = docID(data);
	        self = this;
	        this.streamParser = p;
	        this.stateAfter = new NodeProp({ perNode: true });
	        this.tokenTable = parser.tokenTable ? new TokenTable(p.tokenTable) : defaultTokenTable;
	    }
	    /**
	    Define a stream language.
	    */
	    static define(spec) { return new StreamLanguage(spec); }
	    getIndent(cx, pos) {
	        let tree = syntaxTree(cx.state), at = tree.resolve(pos);
	        while (at && at.type != this.topNode)
	            at = at.parent;
	        if (!at)
	            return null;
	        let from = undefined;
	        let { overrideIndentation } = cx.options;
	        if (overrideIndentation) {
	            from = IndentedFrom.get(cx.state);
	            if (from != null && from < pos - 1e4)
	                from = undefined;
	        }
	        let start = findState(this, tree, 0, at.from, from !== null && from !== void 0 ? from : pos), statePos, state;
	        if (start) {
	            state = start.state;
	            statePos = start.pos + 1;
	        }
	        else {
	            state = this.streamParser.startState(cx.unit);
	            statePos = 0;
	        }
	        if (pos - statePos > 10000 /* C.MaxIndentScanDist */)
	            return null;
	        while (statePos < pos) {
	            let line = cx.state.doc.lineAt(statePos), end = Math.min(pos, line.to);
	            if (line.length) {
	                let indentation = overrideIndentation ? overrideIndentation(line.from) : -1;
	                let stream = new StringStream(line.text, cx.state.tabSize, cx.unit, indentation < 0 ? undefined : indentation);
	                while (stream.pos < end - line.from)
	                    readToken$3(this.streamParser.token, stream, state);
	            }
	            else {
	                this.streamParser.blankLine(state, cx.unit);
	            }
	            if (end == pos)
	                break;
	            statePos = line.to + 1;
	        }
	        let line = cx.lineAt(pos);
	        if (overrideIndentation && from == null)
	            IndentedFrom.set(cx.state, line.from);
	        return this.streamParser.indent(state, /^\s*(.*)/.exec(line.text)[1], cx);
	    }
	    get allowsNesting() { return false; }
	}
	function findState(lang, tree, off, startPos, before) {
	    let state = off >= startPos && off + tree.length <= before && tree.prop(lang.stateAfter);
	    if (state)
	        return { state: lang.streamParser.copyState(state), pos: off + tree.length };
	    for (let i = tree.children.length - 1; i >= 0; i--) {
	        let child = tree.children[i], pos = off + tree.positions[i];
	        let found = child instanceof Tree && pos < before && findState(lang, child, pos, startPos, before);
	        if (found)
	            return found;
	    }
	    return null;
	}
	function cutTree(lang, tree, from, to, inside) {
	    if (inside && from <= 0 && to >= tree.length)
	        return tree;
	    if (!inside && tree.type == lang.topNode)
	        inside = true;
	    for (let i = tree.children.length - 1; i >= 0; i--) {
	        let pos = tree.positions[i], child = tree.children[i], inner;
	        if (pos < to && child instanceof Tree) {
	            if (!(inner = cutTree(lang, child, from - pos, to - pos, inside)))
	                break;
	            return !inside ? inner
	                : new Tree(tree.type, tree.children.slice(0, i).concat(inner), tree.positions.slice(0, i + 1), pos + inner.length);
	        }
	    }
	    return null;
	}
	function findStartInFragments(lang, fragments, startPos, editorState) {
	    for (let f of fragments) {
	        let from = f.from + (f.openStart ? 25 : 0), to = f.to - (f.openEnd ? 25 : 0);
	        let found = from <= startPos && to > startPos && findState(lang, f.tree, 0 - f.offset, startPos, to), tree;
	        if (found && (tree = cutTree(lang, f.tree, startPos + f.offset, found.pos + f.offset, false)))
	            return { state: found.state, tree };
	    }
	    return { state: lang.streamParser.startState(editorState ? getIndentUnit(editorState) : 4), tree: Tree.empty };
	}
	let Parse$1 = class Parse {
	    constructor(lang, input, fragments, ranges) {
	        this.lang = lang;
	        this.input = input;
	        this.fragments = fragments;
	        this.ranges = ranges;
	        this.stoppedAt = null;
	        this.chunks = [];
	        this.chunkPos = [];
	        this.chunk = [];
	        this.chunkReused = undefined;
	        this.rangeIndex = 0;
	        this.to = ranges[ranges.length - 1].to;
	        let context = ParseContext.get(), from = ranges[0].from;
	        let { state, tree } = findStartInFragments(lang, fragments, from, context === null || context === void 0 ? void 0 : context.state);
	        this.state = state;
	        this.parsedPos = this.chunkStart = from + tree.length;
	        for (let i = 0; i < tree.children.length; i++) {
	            this.chunks.push(tree.children[i]);
	            this.chunkPos.push(tree.positions[i]);
	        }
	        if (context && this.parsedPos < context.viewport.from - 100000 /* C.MaxDistanceBeforeViewport */) {
	            this.state = this.lang.streamParser.startState(getIndentUnit(context.state));
	            context.skipUntilInView(this.parsedPos, context.viewport.from);
	            this.parsedPos = context.viewport.from;
	        }
	        this.moveRangeIndex();
	    }
	    advance() {
	        let context = ParseContext.get();
	        let parseEnd = this.stoppedAt == null ? this.to : Math.min(this.to, this.stoppedAt);
	        let end = Math.min(parseEnd, this.chunkStart + 2048 /* C.ChunkSize */);
	        if (context)
	            end = Math.min(end, context.viewport.to);
	        while (this.parsedPos < end)
	            this.parseLine(context);
	        if (this.chunkStart < this.parsedPos)
	            this.finishChunk();
	        if (this.parsedPos >= parseEnd)
	            return this.finish();
	        if (context && this.parsedPos >= context.viewport.to) {
	            context.skipUntilInView(this.parsedPos, parseEnd);
	            return this.finish();
	        }
	        return null;
	    }
	    stopAt(pos) {
	        this.stoppedAt = pos;
	    }
	    lineAfter(pos) {
	        let chunk = this.input.chunk(pos);
	        if (!this.input.lineChunks) {
	            let eol = chunk.indexOf("\n");
	            if (eol > -1)
	                chunk = chunk.slice(0, eol);
	        }
	        else if (chunk == "\n") {
	            chunk = "";
	        }
	        return pos + chunk.length <= this.to ? chunk : chunk.slice(0, this.to - pos);
	    }
	    nextLine() {
	        let from = this.parsedPos, line = this.lineAfter(from), end = from + line.length;
	        for (let index = this.rangeIndex;;) {
	            let rangeEnd = this.ranges[index].to;
	            if (rangeEnd >= end)
	                break;
	            line = line.slice(0, rangeEnd - (end - line.length));
	            index++;
	            if (index == this.ranges.length)
	                break;
	            let rangeStart = this.ranges[index].from;
	            let after = this.lineAfter(rangeStart);
	            line += after;
	            end = rangeStart + after.length;
	        }
	        return { line, end };
	    }
	    skipGapsTo(pos, offset, side) {
	        for (;;) {
	            let end = this.ranges[this.rangeIndex].to, offPos = pos + offset;
	            if (side > 0 ? end > offPos : end >= offPos)
	                break;
	            let start = this.ranges[++this.rangeIndex].from;
	            offset += start - end;
	        }
	        return offset;
	    }
	    moveRangeIndex() {
	        while (this.ranges[this.rangeIndex].to < this.parsedPos)
	            this.rangeIndex++;
	    }
	    emitToken(id, from, to, size, offset) {
	        if (this.ranges.length > 1) {
	            offset = this.skipGapsTo(from, offset, 1);
	            from += offset;
	            let len0 = this.chunk.length;
	            offset = this.skipGapsTo(to, offset, -1);
	            to += offset;
	            size += this.chunk.length - len0;
	        }
	        this.chunk.push(id, from, to, size);
	        return offset;
	    }
	    parseLine(context) {
	        let { line, end } = this.nextLine(), offset = 0, { streamParser } = this.lang;
	        let stream = new StringStream(line, context ? context.state.tabSize : 4, context ? getIndentUnit(context.state) : 2);
	        if (stream.eol()) {
	            streamParser.blankLine(this.state, stream.indentUnit);
	        }
	        else {
	            while (!stream.eol()) {
	                let token = readToken$3(streamParser.token, stream, this.state);
	                if (token)
	                    offset = this.emitToken(this.lang.tokenTable.resolve(token), this.parsedPos + stream.start, this.parsedPos + stream.pos, 4, offset);
	                if (stream.start > 10000 /* C.MaxLineLength */)
	                    break;
	            }
	        }
	        this.parsedPos = end;
	        this.moveRangeIndex();
	        if (this.parsedPos < this.to)
	            this.parsedPos++;
	    }
	    finishChunk() {
	        let tree = Tree.build({
	            buffer: this.chunk,
	            start: this.chunkStart,
	            length: this.parsedPos - this.chunkStart,
	            nodeSet,
	            topID: 0,
	            maxBufferLength: 2048 /* C.ChunkSize */,
	            reused: this.chunkReused
	        });
	        tree = new Tree(tree.type, tree.children, tree.positions, tree.length, [[this.lang.stateAfter, this.lang.streamParser.copyState(this.state)]]);
	        this.chunks.push(tree);
	        this.chunkPos.push(this.chunkStart - this.ranges[0].from);
	        this.chunk = [];
	        this.chunkReused = undefined;
	        this.chunkStart = this.parsedPos;
	    }
	    finish() {
	        return new Tree(this.lang.topNode, this.chunks, this.chunkPos, this.parsedPos - this.ranges[0].from).balance();
	    }
	};
	function readToken$3(token, stream, state) {
	    stream.start = stream.pos;
	    for (let i = 0; i < 10; i++) {
	        let result = token(stream, state);
	        if (stream.pos > stream.start)
	            return result;
	    }
	    throw new Error("Stream parser failed to advance stream.");
	}
	const noTokens = /*@__PURE__*/Object.create(null);
	const typeArray$1 = [NodeType.none];
	const nodeSet = /*@__PURE__*/new NodeSet(typeArray$1);
	const warned = [];
	// Cache of node types by name and tags
	const byTag = /*@__PURE__*/Object.create(null);
	const defaultTable = /*@__PURE__*/Object.create(null);
	for (let [legacyName, name] of [
	    ["variable", "variableName"],
	    ["variable-2", "variableName.special"],
	    ["string-2", "string.special"],
	    ["def", "variableName.definition"],
	    ["tag", "tagName"],
	    ["attribute", "attributeName"],
	    ["type", "typeName"],
	    ["builtin", "variableName.standard"],
	    ["qualifier", "modifier"],
	    ["error", "invalid"],
	    ["header", "heading"],
	    ["property", "propertyName"]
	])
	    defaultTable[legacyName] = /*@__PURE__*/createTokenType(noTokens, name);
	class TokenTable {
	    constructor(extra) {
	        this.extra = extra;
	        this.table = Object.assign(Object.create(null), defaultTable);
	    }
	    resolve(tag) {
	        return !tag ? 0 : this.table[tag] || (this.table[tag] = createTokenType(this.extra, tag));
	    }
	}
	const defaultTokenTable = /*@__PURE__*/new TokenTable(noTokens);
	function warnForPart(part, msg) {
	    if (warned.indexOf(part) > -1)
	        return;
	    warned.push(part);
	    console.warn(msg);
	}
	function createTokenType(extra, tagStr) {
	    let tags$1$1 = [];
	    for (let name of tagStr.split(" ")) {
	        let found = [];
	        for (let part of name.split(".")) {
	            let value = (extra[part] || tags$1[part]);
	            if (!value) {
	                warnForPart(part, `Unknown highlighting tag ${part}`);
	            }
	            else if (typeof value == "function") {
	                if (!found.length)
	                    warnForPart(part, `Modifier ${part} used at start of tag`);
	                else
	                    found = found.map(value);
	            }
	            else {
	                if (found.length)
	                    warnForPart(part, `Tag ${part} used as modifier`);
	                else
	                    found = Array.isArray(value) ? value : [value];
	            }
	        }
	        for (let tag of found)
	            tags$1$1.push(tag);
	    }
	    if (!tags$1$1.length)
	        return 0;
	    let name = tagStr.replace(/ /g, "_"), key = name + " " + tags$1$1.map(t => t.id);
	    let known = byTag[key];
	    if (known)
	        return known.id;
	    let type = byTag[key] = NodeType.define({
	        id: typeArray$1.length,
	        name,
	        props: [styleTags({ [name]: tags$1$1 })]
	    });
	    typeArray$1.push(type);
	    return type.id;
	}
	function docID(data) {
	    let type = NodeType.define({ id: typeArray$1.length, name: "Document", props: [languageDataProp.add(() => data)], top: true });
	    typeArray$1.push(type);
	    return type;
	}
	({
	    rtl: /*@__PURE__*/Decoration.mark({ class: "cm-iso", inclusive: true, attributes: { dir: "rtl" }, bidiIsolate: Direction.RTL }),
	    ltr: /*@__PURE__*/Decoration.mark({ class: "cm-iso", inclusive: true, attributes: { dir: "ltr" }, bidiIsolate: Direction.LTR }),
	    auto: /*@__PURE__*/Decoration.mark({ class: "cm-iso", inclusive: true, attributes: { dir: "auto" }, bidiIsolate: null })
	});

	/**
	An instance of this is passed to completion source functions.
	*/
	class CompletionContext {
	    /**
	    Create a new completion context. (Mostly useful for testing
	    completion sources—in the editor, the extension will create
	    these for you.)
	    */
	    constructor(
	    /**
	    The editor state that the completion happens in.
	    */
	    state, 
	    /**
	    The position at which the completion is happening.
	    */
	    pos, 
	    /**
	    Indicates whether completion was activated explicitly, or
	    implicitly by typing. The usual way to respond to this is to
	    only return completions when either there is part of a
	    completable entity before the cursor, or `explicit` is true.
	    */
	    explicit) {
	        this.state = state;
	        this.pos = pos;
	        this.explicit = explicit;
	        /**
	        @internal
	        */
	        this.abortListeners = [];
	    }
	    /**
	    Get the extent, content, and (if there is a token) type of the
	    token before `this.pos`.
	    */
	    tokenBefore(types) {
	        let token = syntaxTree(this.state).resolveInner(this.pos, -1);
	        while (token && types.indexOf(token.name) < 0)
	            token = token.parent;
	        return token ? { from: token.from, to: this.pos,
	            text: this.state.sliceDoc(token.from, this.pos),
	            type: token.type } : null;
	    }
	    /**
	    Get the match of the given expression directly before the
	    cursor.
	    */
	    matchBefore(expr) {
	        let line = this.state.doc.lineAt(this.pos);
	        let start = Math.max(line.from, this.pos - 250);
	        let str = line.text.slice(start - line.from, this.pos - line.from);
	        let found = str.search(ensureAnchor(expr, false));
	        return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };
	    }
	    /**
	    Yields true when the query has been aborted. Can be useful in
	    asynchronous queries to avoid doing work that will be ignored.
	    */
	    get aborted() { return this.abortListeners == null; }
	    /**
	    Allows you to register abort handlers, which will be called when
	    the query is
	    [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).
	    */
	    addEventListener(type, listener) {
	        if (type == "abort" && this.abortListeners)
	            this.abortListeners.push(listener);
	    }
	}
	function toSet(chars) {
	    let flat = Object.keys(chars).join("");
	    let words = /\w/.test(flat);
	    if (words)
	        flat = flat.replace(/\w/g, "");
	    return `[${words ? "\\w" : ""}${flat.replace(/[^\w\s]/g, "\\$&")}]`;
	}
	function prefixMatch(options) {
	    let first = Object.create(null), rest = Object.create(null);
	    for (let { label } of options) {
	        first[label[0]] = true;
	        for (let i = 1; i < label.length; i++)
	            rest[label[i]] = true;
	    }
	    let source = toSet(first) + toSet(rest) + "*$";
	    return [new RegExp("^" + source), new RegExp(source)];
	}
	/**
	Given a a fixed array of options, return an autocompleter that
	completes them.
	*/
	function completeFromList(list) {
	    let options = list.map(o => typeof o == "string" ? { label: o } : o);
	    let [validFor, match] = options.every(o => /^\w+$/.test(o.label)) ? [/\w*$/, /\w+$/] : prefixMatch(options);
	    return (context) => {
	        let token = context.matchBefore(match);
	        return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;
	    };
	}
	/**
	Wrap the given completion source so that it will not fire when the
	cursor is in a syntax node with one of the given names.
	*/
	function ifNotIn(nodes, source) {
	    return (context) => {
	        for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {
	            if (nodes.indexOf(pos.name) > -1)
	                return null;
	            if (pos.type.isTop)
	                break;
	        }
	        return source(context);
	    };
	}
	class Option {
	    constructor(completion, source, match, score) {
	        this.completion = completion;
	        this.source = source;
	        this.match = match;
	        this.score = score;
	    }
	}
	function cur(state) { return state.selection.main.from; }
	// Make sure the given regexp has a $ at its end and, if `start` is
	// true, a ^ at its start.
	function ensureAnchor(expr, start) {
	    var _a;
	    let { source } = expr;
	    let addStart = start && source[0] != "^", addEnd = source[source.length - 1] != "$";
	    if (!addStart && !addEnd)
	        return expr;
	    return new RegExp(`${addStart ? "^" : ""}(?:${source})${addEnd ? "$" : ""}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? "i" : ""));
	}
	/**
	This annotation is added to transactions that are produced by
	picking a completion.
	*/
	const pickedCompletion = /*@__PURE__*/Annotation.define();
	/**
	Helper function that returns a transaction spec which inserts a
	completion's text in the main selection range, and any other
	selection range that has the same text in front of it.
	*/
	function insertCompletionText(state, text, from, to) {
	    let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;
	    return Object.assign(Object.assign({}, state.changeByRange(range => {
	        if (range != main && from != to &&
	            state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))
	            return { range };
	        return {
	            changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: text },
	            range: EditorSelection.cursor(range.from + fromOff + text.length)
	        };
	    })), { scrollIntoView: true, userEvent: "input.complete" });
	}
	const SourceCache = /*@__PURE__*/new WeakMap();
	function asSource(source) {
	    if (!Array.isArray(source))
	        return source;
	    let known = SourceCache.get(source);
	    if (!known)
	        SourceCache.set(source, known = completeFromList(source));
	    return known;
	}
	const startCompletionEffect = /*@__PURE__*/StateEffect.define();
	const closeCompletionEffect = /*@__PURE__*/StateEffect.define();

	// A pattern matcher for fuzzy completion matching. Create an instance
	// once for a pattern, and then use that to match any number of
	// completions.
	class FuzzyMatcher {
	    constructor(pattern) {
	        this.pattern = pattern;
	        this.chars = [];
	        this.folded = [];
	        // Buffers reused by calls to `match` to track matched character
	        // positions.
	        this.any = [];
	        this.precise = [];
	        this.byWord = [];
	        this.score = 0;
	        this.matched = [];
	        for (let p = 0; p < pattern.length;) {
	            let char = codePointAt(pattern, p), size = codePointSize(char);
	            this.chars.push(char);
	            let part = pattern.slice(p, p + size), upper = part.toUpperCase();
	            this.folded.push(codePointAt(upper == part ? part.toLowerCase() : upper, 0));
	            p += size;
	        }
	        this.astral = pattern.length != this.chars.length;
	    }
	    ret(score, matched) {
	        this.score = score;
	        this.matched = matched;
	        return this;
	    }
	    // Matches a given word (completion) against the pattern (input).
	    // Will return a boolean indicating whether there was a match and,
	    // on success, set `this.score` to the score, `this.matched` to an
	    // array of `from, to` pairs indicating the matched parts of `word`.
	    //
	    // The score is a number that is more negative the worse the match
	    // is. See `Penalty` above.
	    match(word) {
	        if (this.pattern.length == 0)
	            return this.ret(-100 /* Penalty.NotFull */, []);
	        if (word.length < this.pattern.length)
	            return null;
	        let { chars, folded, any, precise, byWord } = this;
	        // For single-character queries, only match when they occur right
	        // at the start
	        if (chars.length == 1) {
	            let first = codePointAt(word, 0), firstSize = codePointSize(first);
	            let score = firstSize == word.length ? 0 : -100 /* Penalty.NotFull */;
	            if (first == chars[0]) ;
	            else if (first == folded[0])
	                score += -200 /* Penalty.CaseFold */;
	            else
	                return null;
	            return this.ret(score, [0, firstSize]);
	        }
	        let direct = word.indexOf(this.pattern);
	        if (direct == 0)
	            return this.ret(word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */, [0, this.pattern.length]);
	        let len = chars.length, anyTo = 0;
	        if (direct < 0) {
	            for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {
	                let next = codePointAt(word, i);
	                if (next == chars[anyTo] || next == folded[anyTo])
	                    any[anyTo++] = i;
	                i += codePointSize(next);
	            }
	            // No match, exit immediately
	            if (anyTo < len)
	                return null;
	        }
	        // This tracks the extent of the precise (non-folded, not
	        // necessarily adjacent) match
	        let preciseTo = 0;
	        // Tracks whether there is a match that hits only characters that
	        // appear to be starting words. `byWordFolded` is set to true when
	        // a case folded character is encountered in such a match
	        let byWordTo = 0, byWordFolded = false;
	        // If we've found a partial adjacent match, these track its state
	        let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;
	        let hasLower = /[a-z]/.test(word), wordAdjacent = true;
	        // Go over the option's text, scanning for the various kinds of matches
	        for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* Tp.NonWord */; i < e && byWordTo < len;) {
	            let next = codePointAt(word, i);
	            if (direct < 0) {
	                if (preciseTo < len && next == chars[preciseTo])
	                    precise[preciseTo++] = i;
	                if (adjacentTo < len) {
	                    if (next == chars[adjacentTo] || next == folded[adjacentTo]) {
	                        if (adjacentTo == 0)
	                            adjacentStart = i;
	                        adjacentEnd = i + 1;
	                        adjacentTo++;
	                    }
	                    else {
	                        adjacentTo = 0;
	                    }
	                }
	            }
	            let ch, type = next < 0xff
	                ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Tp.Lower */ : next >= 65 && next <= 90 ? 1 /* Tp.Upper */ : 0 /* Tp.NonWord */)
	                : ((ch = fromCodePoint(next)) != ch.toLowerCase() ? 1 /* Tp.Upper */ : ch != ch.toUpperCase() ? 2 /* Tp.Lower */ : 0 /* Tp.NonWord */);
	            if (!i || type == 1 /* Tp.Upper */ && hasLower || prevType == 0 /* Tp.NonWord */ && type != 0 /* Tp.NonWord */) {
	                if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))
	                    byWord[byWordTo++] = i;
	                else if (byWord.length)
	                    wordAdjacent = false;
	            }
	            prevType = type;
	            i += codePointSize(next);
	        }
	        if (byWordTo == len && byWord[0] == 0 && wordAdjacent)
	            return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0), byWord, word);
	        if (adjacentTo == len && adjacentStart == 0)
	            return this.ret(-200 /* Penalty.CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* Penalty.NotFull */), [0, adjacentEnd]);
	        if (direct > -1)
	            return this.ret(-700 /* Penalty.NotStart */ - word.length, [direct, direct + this.pattern.length]);
	        if (adjacentTo == len)
	            return this.ret(-200 /* Penalty.CaseFold */ + -700 /* Penalty.NotStart */ - word.length, [adjacentStart, adjacentEnd]);
	        if (byWordTo == len)
	            return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0) + -700 /* Penalty.NotStart */ +
	                (wordAdjacent ? 0 : -1100 /* Penalty.Gap */), byWord, word);
	        return chars.length == 2 ? null
	            : this.result((any[0] ? -700 /* Penalty.NotStart */ : 0) + -200 /* Penalty.CaseFold */ + -1100 /* Penalty.Gap */, any, word);
	    }
	    result(score, positions, word) {
	        let result = [], i = 0;
	        for (let pos of positions) {
	            let to = pos + (this.astral ? codePointSize(codePointAt(word, pos)) : 1);
	            if (i && result[i - 1] == pos)
	                result[i - 1] = to;
	            else {
	                result[i++] = pos;
	                result[i++] = to;
	            }
	        }
	        return this.ret(score - word.length, result);
	    }
	}
	class StrictMatcher {
	    constructor(pattern) {
	        this.pattern = pattern;
	        this.matched = [];
	        this.score = 0;
	        this.folded = pattern.toLowerCase();
	    }
	    match(word) {
	        if (word.length < this.pattern.length)
	            return null;
	        let start = word.slice(0, this.pattern.length);
	        let match = start == this.pattern ? 0 : start.toLowerCase() == this.folded ? -200 /* Penalty.CaseFold */ : null;
	        if (match == null)
	            return null;
	        this.matched = [0, start.length];
	        this.score = match + (word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */);
	        return this;
	    }
	}

	const completionConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        return combineConfig(configs, {
	            activateOnTyping: true,
	            activateOnTypingDelay: 100,
	            selectOnOpen: true,
	            override: null,
	            closeOnBlur: true,
	            maxRenderedOptions: 100,
	            defaultKeymap: true,
	            tooltipClass: () => "",
	            optionClass: () => "",
	            aboveCursor: false,
	            icons: true,
	            addToOptions: [],
	            positionInfo: defaultPositionInfo,
	            filterStrict: false,
	            compareCompletions: (a, b) => a.label.localeCompare(b.label),
	            interactionDelay: 75,
	            updateSyncTime: 100
	        }, {
	            defaultKeymap: (a, b) => a && b,
	            closeOnBlur: (a, b) => a && b,
	            icons: (a, b) => a && b,
	            tooltipClass: (a, b) => c => joinClass(a(c), b(c)),
	            optionClass: (a, b) => c => joinClass(a(c), b(c)),
	            addToOptions: (a, b) => a.concat(b),
	            filterStrict: (a, b) => a || b,
	        });
	    }
	});
	function joinClass(a, b) {
	    return a ? b ? a + " " + b : a : b;
	}
	function defaultPositionInfo(view, list, option, info, space, tooltip) {
	    let rtl = view.textDirection == Direction.RTL, left = rtl, narrow = false;
	    let side = "top", offset, maxWidth;
	    let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;
	    let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;
	    if (left && spaceLeft < Math.min(infoWidth, spaceRight))
	        left = false;
	    else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))
	        left = true;
	    if (infoWidth <= (left ? spaceLeft : spaceRight)) {
	        offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;
	        maxWidth = Math.min(400 /* Info.Width */, left ? spaceLeft : spaceRight);
	    }
	    else {
	        narrow = true;
	        maxWidth = Math.min(400 /* Info.Width */, (rtl ? list.right : space.right - list.left) - 30 /* Info.Margin */);
	        let spaceBelow = space.bottom - list.bottom;
	        if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion
	            offset = option.bottom - list.top;
	        }
	        else { // Above it
	            side = "bottom";
	            offset = list.bottom - option.top;
	        }
	    }
	    let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;
	    let scaleX = (list.right - list.left) / tooltip.offsetWidth;
	    return {
	        style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,
	        class: "cm-completionInfo-" + (narrow ? (rtl ? "left-narrow" : "right-narrow") : left ? "left" : "right")
	    };
	}

	function optionContent(config) {
	    let content = config.addToOptions.slice();
	    if (config.icons)
	        content.push({
	            render(completion) {
	                let icon = document.createElement("div");
	                icon.classList.add("cm-completionIcon");
	                if (completion.type)
	                    icon.classList.add(...completion.type.split(/\s+/g).map(cls => "cm-completionIcon-" + cls));
	                icon.setAttribute("aria-hidden", "true");
	                return icon;
	            },
	            position: 20
	        });
	    content.push({
	        render(completion, _s, _v, match) {
	            let labelElt = document.createElement("span");
	            labelElt.className = "cm-completionLabel";
	            let label = completion.displayLabel || completion.label, off = 0;
	            for (let j = 0; j < match.length;) {
	                let from = match[j++], to = match[j++];
	                if (from > off)
	                    labelElt.appendChild(document.createTextNode(label.slice(off, from)));
	                let span = labelElt.appendChild(document.createElement("span"));
	                span.appendChild(document.createTextNode(label.slice(from, to)));
	                span.className = "cm-completionMatchedText";
	                off = to;
	            }
	            if (off < label.length)
	                labelElt.appendChild(document.createTextNode(label.slice(off)));
	            return labelElt;
	        },
	        position: 50
	    }, {
	        render(completion) {
	            if (!completion.detail)
	                return null;
	            let detailElt = document.createElement("span");
	            detailElt.className = "cm-completionDetail";
	            detailElt.textContent = completion.detail;
	            return detailElt;
	        },
	        position: 80
	    });
	    return content.sort((a, b) => a.position - b.position).map(a => a.render);
	}
	function rangeAroundSelected(total, selected, max) {
	    if (total <= max)
	        return { from: 0, to: total };
	    if (selected < 0)
	        selected = 0;
	    if (selected <= (total >> 1)) {
	        let off = Math.floor(selected / max);
	        return { from: off * max, to: (off + 1) * max };
	    }
	    let off = Math.floor((total - selected) / max);
	    return { from: total - (off + 1) * max, to: total - off * max };
	}
	class CompletionTooltip {
	    constructor(view, stateField, applyCompletion) {
	        this.view = view;
	        this.stateField = stateField;
	        this.applyCompletion = applyCompletion;
	        this.info = null;
	        this.infoDestroy = null;
	        this.placeInfoReq = {
	            read: () => this.measureInfo(),
	            write: (pos) => this.placeInfo(pos),
	            key: this
	        };
	        this.space = null;
	        this.currentClass = "";
	        let cState = view.state.field(stateField);
	        let { options, selected } = cState.open;
	        let config = view.state.facet(completionConfig);
	        this.optionContent = optionContent(config);
	        this.optionClass = config.optionClass;
	        this.tooltipClass = config.tooltipClass;
	        this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);
	        this.dom = document.createElement("div");
	        this.dom.className = "cm-tooltip-autocomplete";
	        this.updateTooltipClass(view.state);
	        this.dom.addEventListener("mousedown", (e) => {
	            let { options } = view.state.field(stateField).open;
	            for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {
	                if (dom.nodeName == "LI" && (match = /-(\d+)$/.exec(dom.id)) && +match[1] < options.length) {
	                    this.applyCompletion(view, options[+match[1]]);
	                    e.preventDefault();
	                    return;
	                }
	            }
	        });
	        this.dom.addEventListener("focusout", (e) => {
	            let state = view.state.field(this.stateField, false);
	            if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&
	                e.relatedTarget != view.contentDOM)
	                view.dispatch({ effects: closeCompletionEffect.of(null) });
	        });
	        this.showOptions(options, cState.id);
	    }
	    mount() { this.updateSel(); }
	    showOptions(options, id) {
	        if (this.list)
	            this.list.remove();
	        this.list = this.dom.appendChild(this.createListBox(options, id, this.range));
	        this.list.addEventListener("scroll", () => {
	            if (this.info)
	                this.view.requestMeasure(this.placeInfoReq);
	        });
	    }
	    update(update) {
	        var _a;
	        let cState = update.state.field(this.stateField);
	        let prevState = update.startState.field(this.stateField);
	        this.updateTooltipClass(update.state);
	        if (cState != prevState) {
	            let { options, selected, disabled } = cState.open;
	            if (!prevState.open || prevState.open.options != options) {
	                this.range = rangeAroundSelected(options.length, selected, update.state.facet(completionConfig).maxRenderedOptions);
	                this.showOptions(options, cState.id);
	            }
	            this.updateSel();
	            if (disabled != ((_a = prevState.open) === null || _a === void 0 ? void 0 : _a.disabled))
	                this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!disabled);
	        }
	    }
	    updateTooltipClass(state) {
	        let cls = this.tooltipClass(state);
	        if (cls != this.currentClass) {
	            for (let c of this.currentClass.split(" "))
	                if (c)
	                    this.dom.classList.remove(c);
	            for (let c of cls.split(" "))
	                if (c)
	                    this.dom.classList.add(c);
	            this.currentClass = cls;
	        }
	    }
	    positioned(space) {
	        this.space = space;
	        if (this.info)
	            this.view.requestMeasure(this.placeInfoReq);
	    }
	    updateSel() {
	        let cState = this.view.state.field(this.stateField), open = cState.open;
	        if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {
	            this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);
	            this.showOptions(open.options, cState.id);
	        }
	        if (this.updateSelectedOption(open.selected)) {
	            this.destroyInfo();
	            let { completion } = open.options[open.selected];
	            let { info } = completion;
	            if (!info)
	                return;
	            let infoResult = typeof info === "string" ? document.createTextNode(info) : info(completion);
	            if (!infoResult)
	                return;
	            if ("then" in infoResult) {
	                infoResult.then(obj => {
	                    if (obj && this.view.state.field(this.stateField, false) == cState)
	                        this.addInfoPane(obj, completion);
	                }).catch(e => logException(this.view.state, e, "completion info"));
	            }
	            else {
	                this.addInfoPane(infoResult, completion);
	            }
	        }
	    }
	    addInfoPane(content, completion) {
	        this.destroyInfo();
	        let wrap = this.info = document.createElement("div");
	        wrap.className = "cm-tooltip cm-completionInfo";
	        if (content.nodeType != null) {
	            wrap.appendChild(content);
	            this.infoDestroy = null;
	        }
	        else {
	            let { dom, destroy } = content;
	            wrap.appendChild(dom);
	            this.infoDestroy = destroy || null;
	        }
	        this.dom.appendChild(wrap);
	        this.view.requestMeasure(this.placeInfoReq);
	    }
	    updateSelectedOption(selected) {
	        let set = null;
	        for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {
	            if (opt.nodeName != "LI" || !opt.id) {
	                i--; // A section header
	            }
	            else if (i == selected) {
	                if (!opt.hasAttribute("aria-selected")) {
	                    opt.setAttribute("aria-selected", "true");
	                    set = opt;
	                }
	            }
	            else {
	                if (opt.hasAttribute("aria-selected"))
	                    opt.removeAttribute("aria-selected");
	            }
	        }
	        if (set)
	            scrollIntoView(this.list, set);
	        return set;
	    }
	    measureInfo() {
	        let sel = this.dom.querySelector("[aria-selected]");
	        if (!sel || !this.info)
	            return null;
	        let listRect = this.dom.getBoundingClientRect();
	        let infoRect = this.info.getBoundingClientRect();
	        let selRect = sel.getBoundingClientRect();
	        let space = this.space;
	        if (!space) {
	            let win = this.dom.ownerDocument.defaultView || window;
	            space = { left: 0, top: 0, right: win.innerWidth, bottom: win.innerHeight };
	        }
	        if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||
	            selRect.bottom < Math.max(space.top, listRect.top) + 10)
	            return null;
	        return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space, this.dom);
	    }
	    placeInfo(pos) {
	        if (this.info) {
	            if (pos) {
	                if (pos.style)
	                    this.info.style.cssText = pos.style;
	                this.info.className = "cm-tooltip cm-completionInfo " + (pos.class || "");
	            }
	            else {
	                this.info.style.cssText = "top: -1e6px";
	            }
	        }
	    }
	    createListBox(options, id, range) {
	        const ul = document.createElement("ul");
	        ul.id = id;
	        ul.setAttribute("role", "listbox");
	        ul.setAttribute("aria-expanded", "true");
	        ul.setAttribute("aria-label", this.view.state.phrase("Completions"));
	        let curSection = null;
	        for (let i = range.from; i < range.to; i++) {
	            let { completion, match } = options[i], { section } = completion;
	            if (section) {
	                let name = typeof section == "string" ? section : section.name;
	                if (name != curSection && (i > range.from || range.from == 0)) {
	                    curSection = name;
	                    if (typeof section != "string" && section.header) {
	                        ul.appendChild(section.header(section));
	                    }
	                    else {
	                        let header = ul.appendChild(document.createElement("completion-section"));
	                        header.textContent = name;
	                    }
	                }
	            }
	            const li = ul.appendChild(document.createElement("li"));
	            li.id = id + "-" + i;
	            li.setAttribute("role", "option");
	            let cls = this.optionClass(completion);
	            if (cls)
	                li.className = cls;
	            for (let source of this.optionContent) {
	                let node = source(completion, this.view.state, this.view, match);
	                if (node)
	                    li.appendChild(node);
	            }
	        }
	        if (range.from)
	            ul.classList.add("cm-completionListIncompleteTop");
	        if (range.to < options.length)
	            ul.classList.add("cm-completionListIncompleteBottom");
	        return ul;
	    }
	    destroyInfo() {
	        if (this.info) {
	            if (this.infoDestroy)
	                this.infoDestroy();
	            this.info.remove();
	            this.info = null;
	        }
	    }
	    destroy() {
	        this.destroyInfo();
	    }
	}
	function completionTooltip(stateField, applyCompletion) {
	    return (view) => new CompletionTooltip(view, stateField, applyCompletion);
	}
	function scrollIntoView(container, element) {
	    let parent = container.getBoundingClientRect();
	    let self = element.getBoundingClientRect();
	    let scaleY = parent.height / container.offsetHeight;
	    if (self.top < parent.top)
	        container.scrollTop -= (parent.top - self.top) / scaleY;
	    else if (self.bottom > parent.bottom)
	        container.scrollTop += (self.bottom - parent.bottom) / scaleY;
	}

	// Used to pick a preferred option when two options with the same
	// label occur in the result.
	function score(option) {
	    return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +
	        (option.type ? 1 : 0);
	}
	function sortOptions(active, state) {
	    let options = [];
	    let sections = null;
	    let addOption = (option) => {
	        options.push(option);
	        let { section } = option.completion;
	        if (section) {
	            if (!sections)
	                sections = [];
	            let name = typeof section == "string" ? section : section.name;
	            if (!sections.some(s => s.name == name))
	                sections.push(typeof section == "string" ? { name } : section);
	        }
	    };
	    let conf = state.facet(completionConfig);
	    for (let a of active)
	        if (a.hasResult()) {
	            let getMatch = a.result.getMatch;
	            if (a.result.filter === false) {
	                for (let option of a.result.options) {
	                    addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));
	                }
	            }
	            else {
	                let pattern = state.sliceDoc(a.from, a.to), match;
	                let matcher = conf.filterStrict ? new StrictMatcher(pattern) : new FuzzyMatcher(pattern);
	                for (let option of a.result.options)
	                    if (match = matcher.match(option.label)) {
	                        let matched = !option.displayLabel ? match.matched : getMatch ? getMatch(option, match.matched) : [];
	                        addOption(new Option(option, a.source, matched, match.score + (option.boost || 0)));
	                    }
	            }
	        }
	    if (sections) {
	        let sectionOrder = Object.create(null), pos = 0;
	        let cmp = (a, b) => { var _a, _b; return ((_a = a.rank) !== null && _a !== void 0 ? _a : 1e9) - ((_b = b.rank) !== null && _b !== void 0 ? _b : 1e9) || (a.name < b.name ? -1 : 1); };
	        for (let s of sections.sort(cmp)) {
	            pos -= 1e5;
	            sectionOrder[s.name] = pos;
	        }
	        for (let option of options) {
	            let { section } = option.completion;
	            if (section)
	                option.score += sectionOrder[typeof section == "string" ? section : section.name];
	        }
	    }
	    let result = [], prev = null;
	    let compare = conf.compareCompletions;
	    for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {
	        let cur = opt.completion;
	        if (!prev || prev.label != cur.label || prev.detail != cur.detail ||
	            (prev.type != null && cur.type != null && prev.type != cur.type) ||
	            prev.apply != cur.apply || prev.boost != cur.boost)
	            result.push(opt);
	        else if (score(opt.completion) > score(prev))
	            result[result.length - 1] = opt;
	        prev = opt.completion;
	    }
	    return result;
	}
	class CompletionDialog {
	    constructor(options, attrs, tooltip, timestamp, selected, disabled) {
	        this.options = options;
	        this.attrs = attrs;
	        this.tooltip = tooltip;
	        this.timestamp = timestamp;
	        this.selected = selected;
	        this.disabled = disabled;
	    }
	    setSelected(selected, id) {
	        return selected == this.selected || selected >= this.options.length ? this
	            : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);
	    }
	    static build(active, state, id, prev, conf) {
	        let options = sortOptions(active, state);
	        if (!options.length) {
	            return prev && active.some(a => a.state == 1 /* State.Pending */) ?
	                new CompletionDialog(prev.options, prev.attrs, prev.tooltip, prev.timestamp, prev.selected, true) : null;
	        }
	        let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;
	        if (prev && prev.selected != selected && prev.selected != -1) {
	            let selectedValue = prev.options[prev.selected].completion;
	            for (let i = 0; i < options.length; i++)
	                if (options[i].completion == selectedValue) {
	                    selected = i;
	                    break;
	                }
	        }
	        return new CompletionDialog(options, makeAttrs(id, selected), {
	            pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),
	            create: createTooltip,
	            above: conf.aboveCursor,
	        }, prev ? prev.timestamp : Date.now(), selected, false);
	    }
	    map(changes) {
	        return new CompletionDialog(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: changes.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
	    }
	}
	class CompletionState {
	    constructor(active, id, open) {
	        this.active = active;
	        this.id = id;
	        this.open = open;
	    }
	    static start() {
	        return new CompletionState(none$2, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
	    }
	    update(tr) {
	        let { state } = tr, conf = state.facet(completionConfig);
	        let sources = conf.override ||
	            state.languageDataAt("autocomplete", cur(state)).map(asSource);
	        let active = sources.map(source => {
	            let value = this.active.find(s => s.source == source) ||
	                new ActiveSource(source, this.active.some(a => a.state != 0 /* State.Inactive */) ? 1 /* State.Pending */ : 0 /* State.Inactive */);
	            return value.update(tr, conf);
	        });
	        if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))
	            active = this.active;
	        let open = this.open;
	        if (open && tr.docChanged)
	            open = open.map(tr.changes);
	        if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||
	            !sameResults(active, this.active))
	            open = CompletionDialog.build(active, state, this.id, open, conf);
	        else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))
	            open = null;
	        if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))
	            active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* State.Inactive */) : a);
	        for (let effect of tr.effects)
	            if (effect.is(setSelectedEffect))
	                open = open && open.setSelected(effect.value, this.id);
	        return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);
	    }
	    get tooltip() { return this.open ? this.open.tooltip : null; }
	    get attrs() { return this.open ? this.open.attrs : baseAttrs; }
	}
	function sameResults(a, b) {
	    if (a == b)
	        return true;
	    for (let iA = 0, iB = 0;;) {
	        while (iA < a.length && !a[iA].hasResult)
	            iA++;
	        while (iB < b.length && !b[iB].hasResult)
	            iB++;
	        let endA = iA == a.length, endB = iB == b.length;
	        if (endA || endB)
	            return endA == endB;
	        if (a[iA++].result != b[iB++].result)
	            return false;
	    }
	}
	const baseAttrs = {
	    "aria-autocomplete": "list"
	};
	function makeAttrs(id, selected) {
	    let result = {
	        "aria-autocomplete": "list",
	        "aria-haspopup": "listbox",
	        "aria-controls": id
	    };
	    if (selected > -1)
	        result["aria-activedescendant"] = id + "-" + selected;
	    return result;
	}
	const none$2 = [];
	function getUserEvent(tr) {
	    return tr.isUserEvent("input.type") ? "input" : tr.isUserEvent("delete.backward") ? "delete" : null;
	}
	class ActiveSource {
	    constructor(source, state, explicitPos = -1) {
	        this.source = source;
	        this.state = state;
	        this.explicitPos = explicitPos;
	    }
	    hasResult() { return false; }
	    update(tr, conf) {
	        let event = getUserEvent(tr), value = this;
	        if (event)
	            value = value.handleUserEvent(tr, event, conf);
	        else if (tr.docChanged)
	            value = value.handleChange(tr);
	        else if (tr.selection && value.state != 0 /* State.Inactive */)
	            value = new ActiveSource(value.source, 0 /* State.Inactive */);
	        for (let effect of tr.effects) {
	            if (effect.is(startCompletionEffect))
	                value = new ActiveSource(value.source, 1 /* State.Pending */, effect.value ? cur(tr.state) : -1);
	            else if (effect.is(closeCompletionEffect))
	                value = new ActiveSource(value.source, 0 /* State.Inactive */);
	            else if (effect.is(setActiveEffect))
	                for (let active of effect.value)
	                    if (active.source == value.source)
	                        value = active;
	        }
	        return value;
	    }
	    handleUserEvent(tr, type, conf) {
	        return type == "delete" || !conf.activateOnTyping ? this.map(tr.changes) : new ActiveSource(this.source, 1 /* State.Pending */);
	    }
	    handleChange(tr) {
	        return tr.changes.touchesRange(cur(tr.startState)) ? new ActiveSource(this.source, 0 /* State.Inactive */) : this.map(tr.changes);
	    }
	    map(changes) {
	        return changes.empty || this.explicitPos < 0 ? this : new ActiveSource(this.source, this.state, changes.mapPos(this.explicitPos));
	    }
	}
	class ActiveResult extends ActiveSource {
	    constructor(source, explicitPos, result, from, to) {
	        super(source, 2 /* State.Result */, explicitPos);
	        this.result = result;
	        this.from = from;
	        this.to = to;
	    }
	    hasResult() { return true; }
	    handleUserEvent(tr, type, conf) {
	        var _a;
	        let result = this.result;
	        if (result.map && !tr.changes.empty)
	            result = result.map(result, tr.changes);
	        let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);
	        let pos = cur(tr.state);
	        if ((this.explicitPos < 0 ? pos <= from : pos < this.from) ||
	            pos > to || !result ||
	            type == "delete" && cur(tr.startState) == this.from)
	            return new ActiveSource(this.source, type == "input" && conf.activateOnTyping ? 1 /* State.Pending */ : 0 /* State.Inactive */);
	        let explicitPos = this.explicitPos < 0 ? -1 : tr.changes.mapPos(this.explicitPos);
	        if (checkValid(result.validFor, tr.state, from, to))
	            return new ActiveResult(this.source, explicitPos, result, from, to);
	        if (result.update &&
	            (result = result.update(result, from, to, new CompletionContext(tr.state, pos, explicitPos >= 0))))
	            return new ActiveResult(this.source, explicitPos, result, result.from, (_a = result.to) !== null && _a !== void 0 ? _a : cur(tr.state));
	        return new ActiveSource(this.source, 1 /* State.Pending */, explicitPos);
	    }
	    handleChange(tr) {
	        return tr.changes.touchesRange(this.from, this.to) ? new ActiveSource(this.source, 0 /* State.Inactive */) : this.map(tr.changes);
	    }
	    map(mapping) {
	        if (mapping.empty)
	            return this;
	        let result = this.result.map ? this.result.map(this.result, mapping) : this.result;
	        if (!result)
	            return new ActiveSource(this.source, 0 /* State.Inactive */);
	        return new ActiveResult(this.source, this.explicitPos < 0 ? -1 : mapping.mapPos(this.explicitPos), this.result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));
	    }
	}
	function checkValid(validFor, state, from, to) {
	    if (!validFor)
	        return false;
	    let text = state.sliceDoc(from, to);
	    return typeof validFor == "function" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);
	}
	const setActiveEffect = /*@__PURE__*/StateEffect.define({
	    map(sources, mapping) { return sources.map(s => s.map(mapping)); }
	});
	const setSelectedEffect = /*@__PURE__*/StateEffect.define();
	const completionState = /*@__PURE__*/StateField.define({
	    create() { return CompletionState.start(); },
	    update(value, tr) { return value.update(tr); },
	    provide: f => [
	        showTooltip.from(f, val => val.tooltip),
	        EditorView.contentAttributes.from(f, state => state.attrs)
	    ]
	});
	function applyCompletion(view, option) {
	    const apply = option.completion.apply || option.completion.label;
	    let result = view.state.field(completionState).active.find(a => a.source == option.source);
	    if (!(result instanceof ActiveResult))
	        return false;
	    if (typeof apply == "string")
	        view.dispatch(Object.assign(Object.assign({}, insertCompletionText(view.state, apply, result.from, result.to)), { annotations: pickedCompletion.of(option.completion) }));
	    else
	        apply(view, option.completion, result.from, result.to);
	    return true;
	}
	const createTooltip = /*@__PURE__*/completionTooltip(completionState, applyCompletion);

	/**
	Returns a command that moves the completion selection forward or
	backward by the given amount.
	*/
	function moveCompletionSelection(forward, by = "option") {
	    return (view) => {
	        let cState = view.state.field(completionState, false);
	        if (!cState || !cState.open || cState.open.disabled ||
	            Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)
	            return false;
	        let step = 1, tooltip;
	        if (by == "page" && (tooltip = getTooltip(view, cState.open.tooltip)))
	            step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /
	                tooltip.dom.querySelector("li").offsetHeight) - 1);
	        let { length } = cState.open.options;
	        let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;
	        if (selected < 0)
	            selected = by == "page" ? 0 : length - 1;
	        else if (selected >= length)
	            selected = by == "page" ? length - 1 : 0;
	        view.dispatch({ effects: setSelectedEffect.of(selected) });
	        return true;
	    };
	}
	/**
	Accept the current completion.
	*/
	const acceptCompletion = (view) => {
	    let cState = view.state.field(completionState, false);
	    if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||
	        Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)
	        return false;
	    return applyCompletion(view, cState.open.options[cState.open.selected]);
	};
	/**
	Explicitly start autocompletion.
	*/
	const startCompletion = (view) => {
	    let cState = view.state.field(completionState, false);
	    if (!cState)
	        return false;
	    view.dispatch({ effects: startCompletionEffect.of(true) });
	    return true;
	};
	/**
	Close the currently active completion.
	*/
	const closeCompletion = (view) => {
	    let cState = view.state.field(completionState, false);
	    if (!cState || !cState.active.some(a => a.state != 0 /* State.Inactive */))
	        return false;
	    view.dispatch({ effects: closeCompletionEffect.of(null) });
	    return true;
	};
	class RunningQuery {
	    constructor(active, context) {
	        this.active = active;
	        this.context = context;
	        this.time = Date.now();
	        this.updates = [];
	        // Note that 'undefined' means 'not done yet', whereas 'null' means
	        // 'query returned null'.
	        this.done = undefined;
	    }
	}
	const MaxUpdateCount = 50, MinAbortTime = 1000;
	const completionPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.view = view;
	        this.debounceUpdate = -1;
	        this.running = [];
	        this.debounceAccept = -1;
	        this.pendingStart = false;
	        this.composing = 0 /* CompositionState.None */;
	        for (let active of view.state.field(completionState).active)
	            if (active.state == 1 /* State.Pending */)
	                this.startQuery(active);
	    }
	    update(update) {
	        let cState = update.state.field(completionState);
	        if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)
	            return;
	        let doesReset = update.transactions.some(tr => {
	            return (tr.selection || tr.docChanged) && !getUserEvent(tr);
	        });
	        for (let i = 0; i < this.running.length; i++) {
	            let query = this.running[i];
	            if (doesReset ||
	                query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {
	                for (let handler of query.context.abortListeners) {
	                    try {
	                        handler();
	                    }
	                    catch (e) {
	                        logException(this.view.state, e);
	                    }
	                }
	                query.context.abortListeners = null;
	                this.running.splice(i--, 1);
	            }
	            else {
	                query.updates.push(...update.transactions);
	            }
	        }
	        if (this.debounceUpdate > -1)
	            clearTimeout(this.debounceUpdate);
	        if (update.transactions.some(tr => tr.effects.some(e => e.is(startCompletionEffect))))
	            this.pendingStart = true;
	        let delay = this.pendingStart ? 50 : update.state.facet(completionConfig).activateOnTypingDelay;
	        this.debounceUpdate = cState.active.some(a => a.state == 1 /* State.Pending */ && !this.running.some(q => q.active.source == a.source))
	            ? setTimeout(() => this.startUpdate(), delay) : -1;
	        if (this.composing != 0 /* CompositionState.None */)
	            for (let tr of update.transactions) {
	                if (getUserEvent(tr) == "input")
	                    this.composing = 2 /* CompositionState.Changed */;
	                else if (this.composing == 2 /* CompositionState.Changed */ && tr.selection)
	                    this.composing = 3 /* CompositionState.ChangedAndMoved */;
	            }
	    }
	    startUpdate() {
	        this.debounceUpdate = -1;
	        this.pendingStart = false;
	        let { state } = this.view, cState = state.field(completionState);
	        for (let active of cState.active) {
	            if (active.state == 1 /* State.Pending */ && !this.running.some(r => r.active.source == active.source))
	                this.startQuery(active);
	        }
	    }
	    startQuery(active) {
	        let { state } = this.view, pos = cur(state);
	        let context = new CompletionContext(state, pos, active.explicitPos == pos);
	        let pending = new RunningQuery(active, context);
	        this.running.push(pending);
	        Promise.resolve(active.source(context)).then(result => {
	            if (!pending.context.aborted) {
	                pending.done = result || null;
	                this.scheduleAccept();
	            }
	        }, err => {
	            this.view.dispatch({ effects: closeCompletionEffect.of(null) });
	            logException(this.view.state, err);
	        });
	    }
	    scheduleAccept() {
	        if (this.running.every(q => q.done !== undefined))
	            this.accept();
	        else if (this.debounceAccept < 0)
	            this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);
	    }
	    // For each finished query in this.running, try to create a result
	    // or, if appropriate, restart the query.
	    accept() {
	        var _a;
	        if (this.debounceAccept > -1)
	            clearTimeout(this.debounceAccept);
	        this.debounceAccept = -1;
	        let updated = [];
	        let conf = this.view.state.facet(completionConfig);
	        for (let i = 0; i < this.running.length; i++) {
	            let query = this.running[i];
	            if (query.done === undefined)
	                continue;
	            this.running.splice(i--, 1);
	            if (query.done) {
	                let active = new ActiveResult(query.active.source, query.active.explicitPos, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : cur(query.updates.length ? query.updates[0].startState : this.view.state));
	                // Replay the transactions that happened since the start of
	                // the request and see if that preserves the result
	                for (let tr of query.updates)
	                    active = active.update(tr, conf);
	                if (active.hasResult()) {
	                    updated.push(active);
	                    continue;
	                }
	            }
	            let current = this.view.state.field(completionState).active.find(a => a.source == query.active.source);
	            if (current && current.state == 1 /* State.Pending */) {
	                if (query.done == null) {
	                    // Explicitly failed. Should clear the pending status if it
	                    // hasn't been re-set in the meantime.
	                    let active = new ActiveSource(query.active.source, 0 /* State.Inactive */);
	                    for (let tr of query.updates)
	                        active = active.update(tr, conf);
	                    if (active.state != 1 /* State.Pending */)
	                        updated.push(active);
	                }
	                else {
	                    // Cleared by subsequent transactions. Restart.
	                    this.startQuery(current);
	                }
	            }
	        }
	        if (updated.length)
	            this.view.dispatch({ effects: setActiveEffect.of(updated) });
	    }
	}, {
	    eventHandlers: {
	        blur(event) {
	            let state = this.view.state.field(completionState, false);
	            if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {
	                let dialog = state.open && getTooltip(this.view, state.open.tooltip);
	                if (!dialog || !dialog.dom.contains(event.relatedTarget))
	                    setTimeout(() => this.view.dispatch({ effects: closeCompletionEffect.of(null) }), 10);
	            }
	        },
	        compositionstart() {
	            this.composing = 1 /* CompositionState.Started */;
	        },
	        compositionend() {
	            if (this.composing == 3 /* CompositionState.ChangedAndMoved */) {
	                // Safari fires compositionend events synchronously, possibly
	                // from inside an update, so dispatch asynchronously to avoid reentrancy
	                setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);
	            }
	            this.composing = 0 /* CompositionState.None */;
	        }
	    }
	});
	const windows = typeof navigator == "object" && /*@__PURE__*//Win/.test(navigator.platform);
	const commitCharacters = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.domEventHandlers({
	    keydown(event, view) {
	        let field = view.state.field(completionState, false);
	        if (!field || !field.open || field.open.disabled || field.open.selected < 0 ||
	            event.key.length > 1 || event.ctrlKey && !(windows && event.altKey) || event.metaKey)
	            return false;
	        let option = field.open.options[field.open.selected];
	        let result = field.active.find(a => a.source == option.source);
	        let commitChars = option.completion.commitCharacters || result.result.commitCharacters;
	        if (commitChars && commitChars.indexOf(event.key) > -1)
	            applyCompletion(view, option);
	        return false;
	    }
	}));

	const baseTheme$3 = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-tooltip.cm-tooltip-autocomplete": {
	        "& > ul": {
	            fontFamily: "monospace",
	            whiteSpace: "nowrap",
	            overflow: "hidden auto",
	            maxWidth_fallback: "700px",
	            maxWidth: "min(700px, 95vw)",
	            minWidth: "250px",
	            maxHeight: "10em",
	            height: "100%",
	            listStyle: "none",
	            margin: 0,
	            padding: 0,
	            "& > li, & > completion-section": {
	                padding: "1px 3px",
	                lineHeight: 1.2
	            },
	            "& > li": {
	                overflowX: "hidden",
	                textOverflow: "ellipsis",
	                cursor: "pointer"
	            },
	            "& > completion-section": {
	                display: "list-item",
	                borderBottom: "1px solid silver",
	                paddingLeft: "0.5em",
	                opacity: 0.7
	            }
	        }
	    },
	    "&light .cm-tooltip-autocomplete ul li[aria-selected]": {
	        background: "#17c",
	        color: "white",
	    },
	    "&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
	        background: "#777",
	    },
	    "&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
	        background: "#347",
	        color: "white",
	    },
	    "&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": {
	        background: "#444",
	    },
	    ".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
	        content: '"···"',
	        opacity: 0.5,
	        display: "block",
	        textAlign: "center"
	    },
	    ".cm-tooltip.cm-completionInfo": {
	        position: "absolute",
	        padding: "3px 9px",
	        width: "max-content",
	        maxWidth: `${400 /* Info.Width */}px`,
	        boxSizing: "border-box"
	    },
	    ".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
	    ".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
	    ".cm-completionInfo.cm-completionInfo-left-narrow": { right: `${30 /* Info.Margin */}px` },
	    ".cm-completionInfo.cm-completionInfo-right-narrow": { left: `${30 /* Info.Margin */}px` },
	    "&light .cm-snippetField": { backgroundColor: "#00000022" },
	    "&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
	    ".cm-snippetFieldPosition": {
	        verticalAlign: "text-top",
	        width: 0,
	        height: "1.15em",
	        display: "inline-block",
	        margin: "0 -0.7px -.7em",
	        borderLeft: "1.4px dotted #888"
	    },
	    ".cm-completionMatchedText": {
	        textDecoration: "underline"
	    },
	    ".cm-completionDetail": {
	        marginLeft: "0.5em",
	        fontStyle: "italic"
	    },
	    ".cm-completionIcon": {
	        fontSize: "90%",
	        width: ".8em",
	        display: "inline-block",
	        textAlign: "center",
	        paddingRight: ".6em",
	        opacity: "0.6",
	        boxSizing: "content-box"
	    },
	    ".cm-completionIcon-function, .cm-completionIcon-method": {
	        "&:after": { content: "'ƒ'" }
	    },
	    ".cm-completionIcon-class": {
	        "&:after": { content: "'○'" }
	    },
	    ".cm-completionIcon-interface": {
	        "&:after": { content: "'◌'" }
	    },
	    ".cm-completionIcon-variable": {
	        "&:after": { content: "'𝑥'" }
	    },
	    ".cm-completionIcon-constant": {
	        "&:after": { content: "'𝐶'" }
	    },
	    ".cm-completionIcon-type": {
	        "&:after": { content: "'𝑡'" }
	    },
	    ".cm-completionIcon-enum": {
	        "&:after": { content: "'∪'" }
	    },
	    ".cm-completionIcon-property": {
	        "&:after": { content: "'□'" }
	    },
	    ".cm-completionIcon-keyword": {
	        "&:after": { content: "'🔑\uFE0E'" } // Disable emoji rendering
	    },
	    ".cm-completionIcon-namespace": {
	        "&:after": { content: "'▢'" }
	    },
	    ".cm-completionIcon-text": {
	        "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" }
	    }
	});

	class FieldPos {
	    constructor(field, line, from, to) {
	        this.field = field;
	        this.line = line;
	        this.from = from;
	        this.to = to;
	    }
	}
	class FieldRange {
	    constructor(field, from, to) {
	        this.field = field;
	        this.from = from;
	        this.to = to;
	    }
	    map(changes) {
	        let from = changes.mapPos(this.from, -1, MapMode.TrackDel);
	        let to = changes.mapPos(this.to, 1, MapMode.TrackDel);
	        return from == null || to == null ? null : new FieldRange(this.field, from, to);
	    }
	}
	class Snippet {
	    constructor(lines, fieldPositions) {
	        this.lines = lines;
	        this.fieldPositions = fieldPositions;
	    }
	    instantiate(state, pos) {
	        let text = [], lineStart = [pos];
	        let lineObj = state.doc.lineAt(pos), baseIndent = /^\s*/.exec(lineObj.text)[0];
	        for (let line of this.lines) {
	            if (text.length) {
	                let indent = baseIndent, tabs = /^\t*/.exec(line)[0].length;
	                for (let i = 0; i < tabs; i++)
	                    indent += state.facet(indentUnit);
	                lineStart.push(pos + indent.length - tabs);
	                line = indent + line.slice(tabs);
	            }
	            text.push(line);
	            pos += line.length + 1;
	        }
	        let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));
	        return { text, ranges };
	    }
	    static parse(template) {
	        let fields = [];
	        let lines = [], positions = [], m;
	        for (let line of template.split(/\r\n?|\n/)) {
	            while (m = /[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(line)) {
	                let seq = m[1] ? +m[1] : null, name = m[2] || m[3] || "", found = -1;
	                for (let i = 0; i < fields.length; i++) {
	                    if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)
	                        found = i;
	                }
	                if (found < 0) {
	                    let i = 0;
	                    while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))
	                        i++;
	                    fields.splice(i, 0, { seq, name });
	                    found = i;
	                    for (let pos of positions)
	                        if (pos.field >= found)
	                            pos.field++;
	                }
	                positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));
	                line = line.slice(0, m.index) + name + line.slice(m.index + m[0].length);
	            }
	            for (let esc; esc = /\\([{}])/.exec(line);) {
	                line = line.slice(0, esc.index) + esc[1] + line.slice(esc.index + esc[0].length);
	                for (let pos of positions)
	                    if (pos.line == lines.length && pos.from > esc.index) {
	                        pos.from--;
	                        pos.to--;
	                    }
	            }
	            lines.push(line);
	        }
	        return new Snippet(lines, positions);
	    }
	}
	let fieldMarker = /*@__PURE__*/Decoration.widget({ widget: /*@__PURE__*/new class extends WidgetType {
	        toDOM() {
	            let span = document.createElement("span");
	            span.className = "cm-snippetFieldPosition";
	            return span;
	        }
	        ignoreEvent() { return false; }
	    } });
	let fieldRange = /*@__PURE__*/Decoration.mark({ class: "cm-snippetField" });
	class ActiveSnippet {
	    constructor(ranges, active) {
	        this.ranges = ranges;
	        this.active = active;
	        this.deco = Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)));
	    }
	    map(changes) {
	        let ranges = [];
	        for (let r of this.ranges) {
	            let mapped = r.map(changes);
	            if (!mapped)
	                return null;
	            ranges.push(mapped);
	        }
	        return new ActiveSnippet(ranges, this.active);
	    }
	    selectionInsideField(sel) {
	        return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));
	    }
	}
	const setActive = /*@__PURE__*/StateEffect.define({
	    map(value, changes) { return value && value.map(changes); }
	});
	const moveToField = /*@__PURE__*/StateEffect.define();
	const snippetState = /*@__PURE__*/StateField.define({
	    create() { return null; },
	    update(value, tr) {
	        for (let effect of tr.effects) {
	            if (effect.is(setActive))
	                return effect.value;
	            if (effect.is(moveToField) && value)
	                return new ActiveSnippet(value.ranges, effect.value);
	        }
	        if (value && tr.docChanged)
	            value = value.map(tr.changes);
	        if (value && tr.selection && !value.selectionInsideField(tr.selection))
	            value = null;
	        return value;
	    },
	    provide: f => EditorView.decorations.from(f, val => val ? val.deco : Decoration.none)
	});
	function fieldSelection(ranges, field) {
	    return EditorSelection.create(ranges.filter(r => r.field == field).map(r => EditorSelection.range(r.from, r.to)));
	}
	/**
	Convert a snippet template to a function that can
	[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written
	using syntax like this:

	    "for (let ${index} = 0; ${index} < ${end}; ${index}++) {\n\t${}\n}"

	Each `${}` placeholder (you may also use `#{}`) indicates a field
	that the user can fill in. Its name, if any, will be the default
	content for the field.

	When the snippet is activated by calling the returned function,
	the code is inserted at the given position. Newlines in the
	template are indented by the indentation of the start line, plus
	one [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after
	the newline.

	On activation, (all instances of) the first field are selected.
	The user can move between fields with Tab and Shift-Tab as long as
	the fields are active. Moving to the last field or moving the
	cursor out of the current field deactivates the fields.

	The order of fields defaults to textual order, but you can add
	numbers to placeholders (`${1}` or `${1:defaultText}`) to provide
	a custom order.

	To include a literal `{` or `}` in your template, put a backslash
	in front of it. This will be removed and the brace will not be
	interpreted as indicating a placeholder.
	*/
	function snippet(template) {
	    let snippet = Snippet.parse(template);
	    return (editor, completion, from, to) => {
	        let { text, ranges } = snippet.instantiate(editor.state, from);
	        let spec = {
	            changes: { from, to, insert: Text$1.of(text) },
	            scrollIntoView: true,
	            annotations: completion ? [pickedCompletion.of(completion), Transaction.userEvent.of("input.complete")] : undefined
	        };
	        if (ranges.length)
	            spec.selection = fieldSelection(ranges, 0);
	        if (ranges.some(r => r.field > 0)) {
	            let active = new ActiveSnippet(ranges, 0);
	            let effects = spec.effects = [setActive.of(active)];
	            if (editor.state.field(snippetState, false) === undefined)
	                effects.push(StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme$3]));
	        }
	        editor.dispatch(editor.state.update(spec));
	    };
	}
	function moveField(dir) {
	    return ({ state, dispatch }) => {
	        let active = state.field(snippetState, false);
	        if (!active || dir < 0 && active.active == 0)
	            return false;
	        let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);
	        dispatch(state.update({
	            selection: fieldSelection(active.ranges, next),
	            effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next)),
	            scrollIntoView: true
	        }));
	        return true;
	    };
	}
	/**
	A command that clears the active snippet, if any.
	*/
	const clearSnippet = ({ state, dispatch }) => {
	    let active = state.field(snippetState, false);
	    if (!active)
	        return false;
	    dispatch(state.update({ effects: setActive.of(null) }));
	    return true;
	};
	/**
	Move to the next snippet field, if available.
	*/
	const nextSnippetField = /*@__PURE__*/moveField(1);
	/**
	Move to the previous snippet field, if available.
	*/
	const prevSnippetField = /*@__PURE__*/moveField(-1);
	const defaultSnippetKeymap = [
	    { key: "Tab", run: nextSnippetField, shift: prevSnippetField },
	    { key: "Escape", run: clearSnippet }
	];
	/**
	A facet that can be used to configure the key bindings used by
	snippets. The default binds Tab to
	[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to
	[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape
	to [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).
	*/
	const snippetKeymap = /*@__PURE__*/Facet.define({
	    combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }
	});
	const addSnippetKeymap = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));
	/**
	Create a completion from a snippet. Returns an object with the
	properties from `completion`, plus an `apply` function that
	applies the snippet.
	*/
	function snippetCompletion(template, completion) {
	    return Object.assign(Object.assign({}, completion), { apply: snippet(template) });
	}
	const snippetPointerHandler = /*@__PURE__*/EditorView.domEventHandlers({
	    mousedown(event, view) {
	        let active = view.state.field(snippetState, false), pos;
	        if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)
	            return false;
	        let match = active.ranges.find(r => r.from <= pos && r.to >= pos);
	        if (!match || match.field == active.active)
	            return false;
	        view.dispatch({
	            selection: fieldSelection(active.ranges, match.field),
	            effects: setActive.of(active.ranges.some(r => r.field > match.field)
	                ? new ActiveSnippet(active.ranges, match.field) : null),
	            scrollIntoView: true
	        });
	        return true;
	    }
	});

	const defaults$3 = {
	    brackets: ["(", "[", "{", "'", '"'],
	    before: ")]}:;>",
	    stringPrefixes: []
	};
	const closeBracketEffect = /*@__PURE__*/StateEffect.define({
	    map(value, mapping) {
	        let mapped = mapping.mapPos(value, -1, MapMode.TrackAfter);
	        return mapped == null ? undefined : mapped;
	    }
	});
	const closedBracket = /*@__PURE__*/new class extends RangeValue {
	};
	closedBracket.startSide = 1;
	closedBracket.endSide = -1;
	const bracketState = /*@__PURE__*/StateField.define({
	    create() { return RangeSet.empty; },
	    update(value, tr) {
	        value = value.map(tr.changes);
	        if (tr.selection) {
	            let line = tr.state.doc.lineAt(tr.selection.main.head);
	            value = value.update({ filter: from => from >= line.from && from <= line.to });
	        }
	        for (let effect of tr.effects)
	            if (effect.is(closeBracketEffect))
	                value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });
	        return value;
	    }
	});
	/**
	Extension to enable bracket-closing behavior. When a closeable
	bracket is typed, its closing bracket is immediately inserted
	after the cursor. When closing a bracket directly in front of a
	closing bracket inserted by the extension, the cursor moves over
	that bracket.
	*/
	function closeBrackets() {
	    return [inputHandler, bracketState];
	}
	const definedClosing = "()[]{}<>";
	function closing$2(ch) {
	    for (let i = 0; i < definedClosing.length; i += 2)
	        if (definedClosing.charCodeAt(i) == ch)
	            return definedClosing.charAt(i + 1);
	    return fromCodePoint(ch < 128 ? ch : ch + 1);
	}
	function config(state, pos) {
	    return state.languageDataAt("closeBrackets", pos)[0] || defaults$3;
	}
	const android$1 = typeof navigator == "object" && /*@__PURE__*//Android\b/.test(navigator.userAgent);
	const inputHandler = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, insert) => {
	    if ((android$1 ? view.composing : view.compositionStarted) || view.state.readOnly)
	        return false;
	    let sel = view.state.selection.main;
	    if (insert.length > 2 || insert.length == 2 && codePointSize(codePointAt(insert, 0)) == 1 ||
	        from != sel.from || to != sel.to)
	        return false;
	    let tr = insertBracket(view.state, insert);
	    if (!tr)
	        return false;
	    view.dispatch(tr);
	    return true;
	});
	/**
	Command that implements deleting a pair of matching brackets when
	the cursor is between them.
	*/
	const deleteBracketPair = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    let conf = config(state, state.selection.main.head);
	    let tokens = conf.brackets || defaults$3.brackets;
	    let dont = null, changes = state.changeByRange(range => {
	        if (range.empty) {
	            let before = prevChar(state.doc, range.head);
	            for (let token of tokens) {
	                if (token == before && nextChar(state.doc, range.head) == closing$2(codePointAt(token, 0)))
	                    return { changes: { from: range.head - token.length, to: range.head + token.length },
	                        range: EditorSelection.cursor(range.head - token.length) };
	            }
	        }
	        return { range: dont = range };
	    });
	    if (!dont)
	        dispatch(state.update(changes, { scrollIntoView: true, userEvent: "delete.backward" }));
	    return !dont;
	};
	/**
	Close-brackets related key bindings. Binds Backspace to
	[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).
	*/
	const closeBracketsKeymap = [
	    { key: "Backspace", run: deleteBracketPair }
	];
	/**
	Implements the extension's behavior on text insertion. If the
	given string counts as a bracket in the language around the
	selection, and replacing the selection with it requires custom
	behavior (inserting a closing version or skipping past a
	previously-closed bracket), this function returns a transaction
	representing that custom behavior. (You only need this if you want
	to programmatically insert brackets—the
	[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will
	take care of running this for user input.)
	*/
	function insertBracket(state, bracket) {
	    let conf = config(state, state.selection.main.head);
	    let tokens = conf.brackets || defaults$3.brackets;
	    for (let tok of tokens) {
	        let closed = closing$2(codePointAt(tok, 0));
	        if (bracket == tok)
	            return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)
	                : handleOpen(state, tok, closed, conf.before || defaults$3.before);
	        if (bracket == closed && closedBracketAt(state, state.selection.main.from))
	            return handleClose(state, tok, closed);
	    }
	    return null;
	}
	function closedBracketAt(state, pos) {
	    let found = false;
	    state.field(bracketState).between(0, state.doc.length, from => {
	        if (from == pos)
	            found = true;
	    });
	    return found;
	}
	function nextChar(doc, pos) {
	    let next = doc.sliceString(pos, pos + 2);
	    return next.slice(0, codePointSize(codePointAt(next, 0)));
	}
	function prevChar(doc, pos) {
	    let prev = doc.sliceString(pos - 2, pos);
	    return codePointSize(codePointAt(prev, 0)) == prev.length ? prev : prev.slice(1);
	}
	function handleOpen(state, open, close, closeBefore) {
	    let dont = null, changes = state.changeByRange(range => {
	        if (!range.empty)
	            return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],
	                effects: closeBracketEffect.of(range.to + open.length),
	                range: EditorSelection.range(range.anchor + open.length, range.head + open.length) };
	        let next = nextChar(state.doc, range.head);
	        if (!next || /\s/.test(next) || closeBefore.indexOf(next) > -1)
	            return { changes: { insert: open + close, from: range.head },
	                effects: closeBracketEffect.of(range.head + open.length),
	                range: EditorSelection.cursor(range.head + open.length) };
	        return { range: dont = range };
	    });
	    return dont ? null : state.update(changes, {
	        scrollIntoView: true,
	        userEvent: "input.type"
	    });
	}
	function handleClose(state, _open, close) {
	    let dont = null, changes = state.changeByRange(range => {
	        if (range.empty && nextChar(state.doc, range.head) == close)
	            return { changes: { from: range.head, to: range.head + close.length, insert: close },
	                range: EditorSelection.cursor(range.head + close.length) };
	        return dont = { range };
	    });
	    return dont ? null : state.update(changes, {
	        scrollIntoView: true,
	        userEvent: "input.type"
	    });
	}
	// Handles cases where the open and close token are the same, and
	// possibly triple quotes (as in `"""abc"""`-style quoting).
	function handleSame(state, token, allowTriple, config) {
	    let stringPrefixes = config.stringPrefixes || defaults$3.stringPrefixes;
	    let dont = null, changes = state.changeByRange(range => {
	        if (!range.empty)
	            return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],
	                effects: closeBracketEffect.of(range.to + token.length),
	                range: EditorSelection.range(range.anchor + token.length, range.head + token.length) };
	        let pos = range.head, next = nextChar(state.doc, pos), start;
	        if (next == token) {
	            if (nodeStart(state, pos)) {
	                return { changes: { insert: token + token, from: pos },
	                    effects: closeBracketEffect.of(pos + token.length),
	                    range: EditorSelection.cursor(pos + token.length) };
	            }
	            else if (closedBracketAt(state, pos)) {
	                let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;
	                let content = isTriple ? token + token + token : token;
	                return { changes: { from: pos, to: pos + content.length, insert: content },
	                    range: EditorSelection.cursor(pos + content.length) };
	            }
	        }
	        else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&
	            (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&
	            nodeStart(state, start)) {
	            return { changes: { insert: token + token + token + token, from: pos },
	                effects: closeBracketEffect.of(pos + token.length),
	                range: EditorSelection.cursor(pos + token.length) };
	        }
	        else if (state.charCategorizer(pos)(next) != CharCategory.Word) {
	            if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))
	                return { changes: { insert: token + token, from: pos },
	                    effects: closeBracketEffect.of(pos + token.length),
	                    range: EditorSelection.cursor(pos + token.length) };
	        }
	        return { range: dont = range };
	    });
	    return dont ? null : state.update(changes, {
	        scrollIntoView: true,
	        userEvent: "input.type"
	    });
	}
	function nodeStart(state, pos) {
	    let tree = syntaxTree(state).resolveInner(pos + 1);
	    return tree.parent && tree.from == pos;
	}
	function probablyInString(state, pos, quoteToken, prefixes) {
	    let node = syntaxTree(state).resolveInner(pos, -1);
	    let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);
	    for (let i = 0; i < 5; i++) {
	        let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));
	        let quotePos = start.indexOf(quoteToken);
	        if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {
	            let first = node.firstChild;
	            while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {
	                if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)
	                    return false;
	                first = first.firstChild;
	            }
	            return true;
	        }
	        let parent = node.to == pos && node.parent;
	        if (!parent)
	            break;
	        node = parent;
	    }
	    return false;
	}
	function canStartStringAt(state, pos, prefixes) {
	    let charCat = state.charCategorizer(pos);
	    if (charCat(state.sliceDoc(pos - 1, pos)) != CharCategory.Word)
	        return pos;
	    for (let prefix of prefixes) {
	        let start = pos - prefix.length;
	        if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != CharCategory.Word)
	            return start;
	    }
	    return -1;
	}

	/**
	Returns an extension that enables autocompletion.
	*/
	function autocompletion(config = {}) {
	    return [
	        commitCharacters,
	        completionState,
	        completionConfig.of(config),
	        completionPlugin,
	        completionKeymapExt,
	        baseTheme$3
	    ];
	}
	/**
	Basic keybindings for autocompletion.

	 - Ctrl-Space: [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)
	 - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)
	 - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`
	 - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`
	 - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, "page")`
	 - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, "page")`
	 - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)
	*/
	const completionKeymap = [
	    { key: "Ctrl-Space", run: startCompletion },
	    { key: "Escape", run: closeCompletion },
	    { key: "ArrowDown", run: /*@__PURE__*/moveCompletionSelection(true) },
	    { key: "ArrowUp", run: /*@__PURE__*/moveCompletionSelection(false) },
	    { key: "PageDown", run: /*@__PURE__*/moveCompletionSelection(true, "page") },
	    { key: "PageUp", run: /*@__PURE__*/moveCompletionSelection(false, "page") },
	    { key: "Enter", run: acceptCompletion }
	];
	const completionKeymapExt = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));

	class CompositeBlock {
	    static create(type, value, from, parentHash, end) {
	        let hash = (parentHash + (parentHash << 8) + type + (value << 4)) | 0;
	        return new CompositeBlock(type, value, from, hash, end, [], []);
	    }
	    constructor(type, 
	    // Used for indentation in list items, markup character in lists
	    value, from, hash, end, children, positions) {
	        this.type = type;
	        this.value = value;
	        this.from = from;
	        this.hash = hash;
	        this.end = end;
	        this.children = children;
	        this.positions = positions;
	        this.hashProp = [[NodeProp.contextHash, hash]];
	    }
	    addChild(child, pos) {
	        if (child.prop(NodeProp.contextHash) != this.hash)
	            child = new Tree(child.type, child.children, child.positions, child.length, this.hashProp);
	        this.children.push(child);
	        this.positions.push(pos);
	    }
	    toTree(nodeSet, end = this.end) {
	        let last = this.children.length - 1;
	        if (last >= 0)
	            end = Math.max(end, this.positions[last] + this.children[last].length + this.from);
	        return new Tree(nodeSet.types[this.type], this.children, this.positions, end - this.from).balance({
	            makeTree: (children, positions, length) => new Tree(NodeType.none, children, positions, length, this.hashProp)
	        });
	    }
	}
	var Type$1;
	(function (Type) {
	    Type[Type["Document"] = 1] = "Document";
	    Type[Type["CodeBlock"] = 2] = "CodeBlock";
	    Type[Type["FencedCode"] = 3] = "FencedCode";
	    Type[Type["Blockquote"] = 4] = "Blockquote";
	    Type[Type["HorizontalRule"] = 5] = "HorizontalRule";
	    Type[Type["BulletList"] = 6] = "BulletList";
	    Type[Type["OrderedList"] = 7] = "OrderedList";
	    Type[Type["ListItem"] = 8] = "ListItem";
	    Type[Type["ATXHeading1"] = 9] = "ATXHeading1";
	    Type[Type["ATXHeading2"] = 10] = "ATXHeading2";
	    Type[Type["ATXHeading3"] = 11] = "ATXHeading3";
	    Type[Type["ATXHeading4"] = 12] = "ATXHeading4";
	    Type[Type["ATXHeading5"] = 13] = "ATXHeading5";
	    Type[Type["ATXHeading6"] = 14] = "ATXHeading6";
	    Type[Type["SetextHeading1"] = 15] = "SetextHeading1";
	    Type[Type["SetextHeading2"] = 16] = "SetextHeading2";
	    Type[Type["HTMLBlock"] = 17] = "HTMLBlock";
	    Type[Type["LinkReference"] = 18] = "LinkReference";
	    Type[Type["Paragraph"] = 19] = "Paragraph";
	    Type[Type["CommentBlock"] = 20] = "CommentBlock";
	    Type[Type["ProcessingInstructionBlock"] = 21] = "ProcessingInstructionBlock";
	    // Inline
	    Type[Type["Escape"] = 22] = "Escape";
	    Type[Type["Entity"] = 23] = "Entity";
	    Type[Type["HardBreak"] = 24] = "HardBreak";
	    Type[Type["Emphasis"] = 25] = "Emphasis";
	    Type[Type["StrongEmphasis"] = 26] = "StrongEmphasis";
	    Type[Type["Link"] = 27] = "Link";
	    Type[Type["Image"] = 28] = "Image";
	    Type[Type["InlineCode"] = 29] = "InlineCode";
	    Type[Type["HTMLTag"] = 30] = "HTMLTag";
	    Type[Type["Comment"] = 31] = "Comment";
	    Type[Type["ProcessingInstruction"] = 32] = "ProcessingInstruction";
	    Type[Type["Autolink"] = 33] = "Autolink";
	    // Smaller tokens
	    Type[Type["HeaderMark"] = 34] = "HeaderMark";
	    Type[Type["QuoteMark"] = 35] = "QuoteMark";
	    Type[Type["ListMark"] = 36] = "ListMark";
	    Type[Type["LinkMark"] = 37] = "LinkMark";
	    Type[Type["EmphasisMark"] = 38] = "EmphasisMark";
	    Type[Type["CodeMark"] = 39] = "CodeMark";
	    Type[Type["CodeText"] = 40] = "CodeText";
	    Type[Type["CodeInfo"] = 41] = "CodeInfo";
	    Type[Type["LinkTitle"] = 42] = "LinkTitle";
	    Type[Type["LinkLabel"] = 43] = "LinkLabel";
	    Type[Type["URL"] = 44] = "URL";
	})(Type$1 || (Type$1 = {}));
	/// Data structure used to accumulate a block's content during [leaf
	/// block parsing](#BlockParser.leaf).
	class LeafBlock {
	    /// @internal
	    constructor(
	    /// The start position of the block.
	    start, 
	    /// The block's text content.
	    content) {
	        this.start = start;
	        this.content = content;
	        /// @internal
	        this.marks = [];
	        /// The block parsers active for this block.
	        this.parsers = [];
	    }
	}
	/// Data structure used during block-level per-line parsing.
	class Line {
	    constructor() {
	        /// The line's full text.
	        this.text = "";
	        /// The base indent provided by the composite contexts (that have
	        /// been handled so far).
	        this.baseIndent = 0;
	        /// The string position corresponding to the base indent.
	        this.basePos = 0;
	        /// The number of contexts handled @internal
	        this.depth = 0;
	        /// Any markers (i.e. block quote markers) parsed for the contexts. @internal
	        this.markers = [];
	        /// The position of the next non-whitespace character beyond any
	        /// list, blockquote, or other composite block markers.
	        this.pos = 0;
	        /// The column of the next non-whitespace character.
	        this.indent = 0;
	        /// The character code of the character after `pos`.
	        this.next = -1;
	    }
	    /// @internal
	    forward() {
	        if (this.basePos > this.pos)
	            this.forwardInner();
	    }
	    /// @internal
	    forwardInner() {
	        let newPos = this.skipSpace(this.basePos);
	        this.indent = this.countIndent(newPos, this.pos, this.indent);
	        this.pos = newPos;
	        this.next = newPos == this.text.length ? -1 : this.text.charCodeAt(newPos);
	    }
	    /// Skip whitespace after the given position, return the position of
	    /// the next non-space character or the end of the line if there's
	    /// only space after `from`.
	    skipSpace(from) { return skipSpace(this.text, from); }
	    /// @internal
	    reset(text) {
	        this.text = text;
	        this.baseIndent = this.basePos = this.pos = this.indent = 0;
	        this.forwardInner();
	        this.depth = 1;
	        while (this.markers.length)
	            this.markers.pop();
	    }
	    /// Move the line's base position forward to the given position.
	    /// This should only be called by composite [block
	    /// parsers](#BlockParser.parse) or [markup skipping
	    /// functions](#NodeSpec.composite).
	    moveBase(to) {
	        this.basePos = to;
	        this.baseIndent = this.countIndent(to, this.pos, this.indent);
	    }
	    /// Move the line's base position forward to the given _column_.
	    moveBaseColumn(indent) {
	        this.baseIndent = indent;
	        this.basePos = this.findColumn(indent);
	    }
	    /// Store a composite-block-level marker. Should be called from
	    /// [markup skipping functions](#NodeSpec.composite) when they
	    /// consume any non-whitespace characters.
	    addMarker(elt) {
	        this.markers.push(elt);
	    }
	    /// Find the column position at `to`, optionally starting at a given
	    /// position and column.
	    countIndent(to, from = 0, indent = 0) {
	        for (let i = from; i < to; i++)
	            indent += this.text.charCodeAt(i) == 9 ? 4 - indent % 4 : 1;
	        return indent;
	    }
	    /// Find the position corresponding to the given column.
	    findColumn(goal) {
	        let i = 0;
	        for (let indent = 0; i < this.text.length && indent < goal; i++)
	            indent += this.text.charCodeAt(i) == 9 ? 4 - indent % 4 : 1;
	        return i;
	    }
	    /// @internal
	    scrub() {
	        if (!this.baseIndent)
	            return this.text;
	        let result = "";
	        for (let i = 0; i < this.basePos; i++)
	            result += " ";
	        return result + this.text.slice(this.basePos);
	    }
	}
	function skipForList(bl, cx, line) {
	    if (line.pos == line.text.length ||
	        (bl != cx.block && line.indent >= cx.stack[line.depth + 1].value + line.baseIndent))
	        return true;
	    if (line.indent >= line.baseIndent + 4)
	        return false;
	    let size = (bl.type == Type$1.OrderedList ? isOrderedList : isBulletList)(line, cx, false);
	    return size > 0 &&
	        (bl.type != Type$1.BulletList || isHorizontalRule(line, cx, false) < 0) &&
	        line.text.charCodeAt(line.pos + size - 1) == bl.value;
	}
	const DefaultSkipMarkup = {
	    [Type$1.Blockquote](bl, cx, line) {
	        if (line.next != 62 /* '>' */)
	            return false;
	        line.markers.push(elt(Type$1.QuoteMark, cx.lineStart + line.pos, cx.lineStart + line.pos + 1));
	        line.moveBase(line.pos + (space$5(line.text.charCodeAt(line.pos + 1)) ? 2 : 1));
	        bl.end = cx.lineStart + line.text.length;
	        return true;
	    },
	    [Type$1.ListItem](bl, _cx, line) {
	        if (line.indent < line.baseIndent + bl.value && line.next > -1)
	            return false;
	        line.moveBaseColumn(line.baseIndent + bl.value);
	        return true;
	    },
	    [Type$1.OrderedList]: skipForList,
	    [Type$1.BulletList]: skipForList,
	    [Type$1.Document]() { return true; }
	};
	function space$5(ch) { return ch == 32 || ch == 9 || ch == 10 || ch == 13; }
	function skipSpace(line, i = 0) {
	    while (i < line.length && space$5(line.charCodeAt(i)))
	        i++;
	    return i;
	}
	function skipSpaceBack(line, i, to) {
	    while (i > to && space$5(line.charCodeAt(i - 1)))
	        i--;
	    return i;
	}
	function isFencedCode(line) {
	    if (line.next != 96 && line.next != 126 /* '`~' */)
	        return -1;
	    let pos = line.pos + 1;
	    while (pos < line.text.length && line.text.charCodeAt(pos) == line.next)
	        pos++;
	    if (pos < line.pos + 3)
	        return -1;
	    if (line.next == 96)
	        for (let i = pos; i < line.text.length; i++)
	            if (line.text.charCodeAt(i) == 96)
	                return -1;
	    return pos;
	}
	function isBlockquote(line) {
	    return line.next != 62 /* '>' */ ? -1 : line.text.charCodeAt(line.pos + 1) == 32 ? 2 : 1;
	}
	function isHorizontalRule(line, cx, breaking) {
	    if (line.next != 42 && line.next != 45 && line.next != 95 /* '_-*' */)
	        return -1;
	    let count = 1;
	    for (let pos = line.pos + 1; pos < line.text.length; pos++) {
	        let ch = line.text.charCodeAt(pos);
	        if (ch == line.next)
	            count++;
	        else if (!space$5(ch))
	            return -1;
	    }
	    // Setext headers take precedence
	    if (breaking && line.next == 45 && isSetextUnderline(line) > -1 && line.depth == cx.stack.length)
	        return -1;
	    return count < 3 ? -1 : 1;
	}
	function inList$1(cx, type) {
	    for (let i = cx.stack.length - 1; i >= 0; i--)
	        if (cx.stack[i].type == type)
	            return true;
	    return false;
	}
	function isBulletList(line, cx, breaking) {
	    return (line.next == 45 || line.next == 43 || line.next == 42 /* '-+*' */) &&
	        (line.pos == line.text.length - 1 || space$5(line.text.charCodeAt(line.pos + 1))) &&
	        (!breaking || inList$1(cx, Type$1.BulletList) || line.skipSpace(line.pos + 2) < line.text.length) ? 1 : -1;
	}
	function isOrderedList(line, cx, breaking) {
	    let pos = line.pos, next = line.next;
	    for (;;) {
	        if (next >= 48 && next <= 57 /* '0-9' */)
	            pos++;
	        else
	            break;
	        if (pos == line.text.length)
	            return -1;
	        next = line.text.charCodeAt(pos);
	    }
	    if (pos == line.pos || pos > line.pos + 9 ||
	        (next != 46 && next != 41 /* '.)' */) ||
	        (pos < line.text.length - 1 && !space$5(line.text.charCodeAt(pos + 1))) ||
	        breaking && !inList$1(cx, Type$1.OrderedList) &&
	            (line.skipSpace(pos + 1) == line.text.length || pos > line.pos + 1 || line.next != 49 /* '1' */))
	        return -1;
	    return pos + 1 - line.pos;
	}
	function isAtxHeading(line) {
	    if (line.next != 35 /* '#' */)
	        return -1;
	    let pos = line.pos + 1;
	    while (pos < line.text.length && line.text.charCodeAt(pos) == 35)
	        pos++;
	    if (pos < line.text.length && line.text.charCodeAt(pos) != 32)
	        return -1;
	    let size = pos - line.pos;
	    return size > 6 ? -1 : size;
	}
	function isSetextUnderline(line) {
	    if (line.next != 45 && line.next != 61 /* '-=' */ || line.indent >= line.baseIndent + 4)
	        return -1;
	    let pos = line.pos + 1;
	    while (pos < line.text.length && line.text.charCodeAt(pos) == line.next)
	        pos++;
	    let end = pos;
	    while (pos < line.text.length && space$5(line.text.charCodeAt(pos)))
	        pos++;
	    return pos == line.text.length ? end : -1;
	}
	const EmptyLine = /^[ \t]*$/, CommentEnd = /-->/, ProcessingEnd = /\?>/;
	const HTMLBlockStyle = [
	    [/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i],
	    [/^\s*<!--/, CommentEnd],
	    [/^\s*<\?/, ProcessingEnd],
	    [/^\s*<![A-Z]/, />/],
	    [/^\s*<!\[CDATA\[/, /\]\]>/],
	    [/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i, EmptyLine],
	    [/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i, EmptyLine]
	];
	function isHTMLBlock(line, _cx, breaking) {
	    if (line.next != 60 /* '<' */)
	        return -1;
	    let rest = line.text.slice(line.pos);
	    for (let i = 0, e = HTMLBlockStyle.length - (breaking ? 1 : 0); i < e; i++)
	        if (HTMLBlockStyle[i][0].test(rest))
	            return i;
	    return -1;
	}
	function getListIndent(line, pos) {
	    let indentAfter = line.countIndent(pos, line.pos, line.indent);
	    let indented = line.countIndent(line.skipSpace(pos), pos, indentAfter);
	    return indented >= indentAfter + 5 ? indentAfter + 1 : indented;
	}
	function addCodeText(marks, from, to) {
	    let last = marks.length - 1;
	    if (last >= 0 && marks[last].to == from && marks[last].type == Type$1.CodeText)
	        marks[last].to = to;
	    else
	        marks.push(elt(Type$1.CodeText, from, to));
	}
	// Rules for parsing blocks. A return value of false means the rule
	// doesn't apply here, true means it does. When true is returned and
	// `p.line` has been updated, the rule is assumed to have consumed a
	// leaf block. Otherwise, it is assumed to have opened a context.
	const DefaultBlockParsers = {
	    LinkReference: undefined,
	    IndentedCode(cx, line) {
	        let base = line.baseIndent + 4;
	        if (line.indent < base)
	            return false;
	        let start = line.findColumn(base);
	        let from = cx.lineStart + start, to = cx.lineStart + line.text.length;
	        let marks = [], pendingMarks = [];
	        addCodeText(marks, from, to);
	        while (cx.nextLine() && line.depth >= cx.stack.length) {
	            if (line.pos == line.text.length) { // Empty
	                addCodeText(pendingMarks, cx.lineStart - 1, cx.lineStart);
	                for (let m of line.markers)
	                    pendingMarks.push(m);
	            }
	            else if (line.indent < base) {
	                break;
	            }
	            else {
	                if (pendingMarks.length) {
	                    for (let m of pendingMarks) {
	                        if (m.type == Type$1.CodeText)
	                            addCodeText(marks, m.from, m.to);
	                        else
	                            marks.push(m);
	                    }
	                    pendingMarks = [];
	                }
	                addCodeText(marks, cx.lineStart - 1, cx.lineStart);
	                for (let m of line.markers)
	                    marks.push(m);
	                to = cx.lineStart + line.text.length;
	                let codeStart = cx.lineStart + line.findColumn(line.baseIndent + 4);
	                if (codeStart < to)
	                    addCodeText(marks, codeStart, to);
	            }
	        }
	        if (pendingMarks.length) {
	            pendingMarks = pendingMarks.filter(m => m.type != Type$1.CodeText);
	            if (pendingMarks.length)
	                line.markers = pendingMarks.concat(line.markers);
	        }
	        cx.addNode(cx.buffer.writeElements(marks, -from).finish(Type$1.CodeBlock, to - from), from);
	        return true;
	    },
	    FencedCode(cx, line) {
	        let fenceEnd = isFencedCode(line);
	        if (fenceEnd < 0)
	            return false;
	        let from = cx.lineStart + line.pos, ch = line.next, len = fenceEnd - line.pos;
	        let infoFrom = line.skipSpace(fenceEnd), infoTo = skipSpaceBack(line.text, line.text.length, infoFrom);
	        let marks = [elt(Type$1.CodeMark, from, from + len)];
	        if (infoFrom < infoTo)
	            marks.push(elt(Type$1.CodeInfo, cx.lineStart + infoFrom, cx.lineStart + infoTo));
	        for (let first = true; cx.nextLine() && line.depth >= cx.stack.length; first = false) {
	            let i = line.pos;
	            if (line.indent - line.baseIndent < 4)
	                while (i < line.text.length && line.text.charCodeAt(i) == ch)
	                    i++;
	            if (i - line.pos >= len && line.skipSpace(i) == line.text.length) {
	                for (let m of line.markers)
	                    marks.push(m);
	                marks.push(elt(Type$1.CodeMark, cx.lineStart + line.pos, cx.lineStart + i));
	                cx.nextLine();
	                break;
	            }
	            else {
	                if (!first)
	                    addCodeText(marks, cx.lineStart - 1, cx.lineStart);
	                for (let m of line.markers)
	                    marks.push(m);
	                let textStart = cx.lineStart + line.basePos, textEnd = cx.lineStart + line.text.length;
	                if (textStart < textEnd)
	                    addCodeText(marks, textStart, textEnd);
	            }
	        }
	        cx.addNode(cx.buffer.writeElements(marks, -from)
	            .finish(Type$1.FencedCode, cx.prevLineEnd() - from), from);
	        return true;
	    },
	    Blockquote(cx, line) {
	        let size = isBlockquote(line);
	        if (size < 0)
	            return false;
	        cx.startContext(Type$1.Blockquote, line.pos);
	        cx.addNode(Type$1.QuoteMark, cx.lineStart + line.pos, cx.lineStart + line.pos + 1);
	        line.moveBase(line.pos + size);
	        return null;
	    },
	    HorizontalRule(cx, line) {
	        if (isHorizontalRule(line, cx, false) < 0)
	            return false;
	        let from = cx.lineStart + line.pos;
	        cx.nextLine();
	        cx.addNode(Type$1.HorizontalRule, from);
	        return true;
	    },
	    BulletList(cx, line) {
	        let size = isBulletList(line, cx, false);
	        if (size < 0)
	            return false;
	        if (cx.block.type != Type$1.BulletList)
	            cx.startContext(Type$1.BulletList, line.basePos, line.next);
	        let newBase = getListIndent(line, line.pos + 1);
	        cx.startContext(Type$1.ListItem, line.basePos, newBase - line.baseIndent);
	        cx.addNode(Type$1.ListMark, cx.lineStart + line.pos, cx.lineStart + line.pos + size);
	        line.moveBaseColumn(newBase);
	        return null;
	    },
	    OrderedList(cx, line) {
	        let size = isOrderedList(line, cx, false);
	        if (size < 0)
	            return false;
	        if (cx.block.type != Type$1.OrderedList)
	            cx.startContext(Type$1.OrderedList, line.basePos, line.text.charCodeAt(line.pos + size - 1));
	        let newBase = getListIndent(line, line.pos + size);
	        cx.startContext(Type$1.ListItem, line.basePos, newBase - line.baseIndent);
	        cx.addNode(Type$1.ListMark, cx.lineStart + line.pos, cx.lineStart + line.pos + size);
	        line.moveBaseColumn(newBase);
	        return null;
	    },
	    ATXHeading(cx, line) {
	        let size = isAtxHeading(line);
	        if (size < 0)
	            return false;
	        let off = line.pos, from = cx.lineStart + off;
	        let endOfSpace = skipSpaceBack(line.text, line.text.length, off), after = endOfSpace;
	        while (after > off && line.text.charCodeAt(after - 1) == line.next)
	            after--;
	        if (after == endOfSpace || after == off || !space$5(line.text.charCodeAt(after - 1)))
	            after = line.text.length;
	        let buf = cx.buffer
	            .write(Type$1.HeaderMark, 0, size)
	            .writeElements(cx.parser.parseInline(line.text.slice(off + size + 1, after), from + size + 1), -from);
	        if (after < line.text.length)
	            buf.write(Type$1.HeaderMark, after - off, endOfSpace - off);
	        let node = buf.finish(Type$1.ATXHeading1 - 1 + size, line.text.length - off);
	        cx.nextLine();
	        cx.addNode(node, from);
	        return true;
	    },
	    HTMLBlock(cx, line) {
	        let type = isHTMLBlock(line, cx, false);
	        if (type < 0)
	            return false;
	        let from = cx.lineStart + line.pos, end = HTMLBlockStyle[type][1];
	        let marks = [], trailing = end != EmptyLine;
	        while (!end.test(line.text) && cx.nextLine()) {
	            if (line.depth < cx.stack.length) {
	                trailing = false;
	                break;
	            }
	            for (let m of line.markers)
	                marks.push(m);
	        }
	        if (trailing)
	            cx.nextLine();
	        let nodeType = end == CommentEnd ? Type$1.CommentBlock : end == ProcessingEnd ? Type$1.ProcessingInstructionBlock : Type$1.HTMLBlock;
	        let to = cx.prevLineEnd();
	        cx.addNode(cx.buffer.writeElements(marks, -from).finish(nodeType, to - from), from);
	        return true;
	    },
	    SetextHeading: undefined // Specifies relative precedence for block-continue function
	};
	// This implements a state machine that incrementally parses link references. At each
	// next line, it looks ahead to see if the line continues the reference or not. If it
	// doesn't and a valid link is available ending before that line, it finishes that.
	// Similarly, on `finish` (when the leaf is terminated by external circumstances), it
	// creates a link reference if there's a valid reference up to the current point.
	class LinkReferenceParser {
	    constructor(leaf) {
	        this.stage = 0 /* RefStage.Start */;
	        this.elts = [];
	        this.pos = 0;
	        this.start = leaf.start;
	        this.advance(leaf.content);
	    }
	    nextLine(cx, line, leaf) {
	        if (this.stage == -1 /* RefStage.Failed */)
	            return false;
	        let content = leaf.content + "\n" + line.scrub();
	        let finish = this.advance(content);
	        if (finish > -1 && finish < content.length)
	            return this.complete(cx, leaf, finish);
	        return false;
	    }
	    finish(cx, leaf) {
	        if ((this.stage == 2 /* RefStage.Link */ || this.stage == 3 /* RefStage.Title */) && skipSpace(leaf.content, this.pos) == leaf.content.length)
	            return this.complete(cx, leaf, leaf.content.length);
	        return false;
	    }
	    complete(cx, leaf, len) {
	        cx.addLeafElement(leaf, elt(Type$1.LinkReference, this.start, this.start + len, this.elts));
	        return true;
	    }
	    nextStage(elt) {
	        if (elt) {
	            this.pos = elt.to - this.start;
	            this.elts.push(elt);
	            this.stage++;
	            return true;
	        }
	        if (elt === false)
	            this.stage = -1 /* RefStage.Failed */;
	        return false;
	    }
	    advance(content) {
	        for (;;) {
	            if (this.stage == -1 /* RefStage.Failed */) {
	                return -1;
	            }
	            else if (this.stage == 0 /* RefStage.Start */) {
	                if (!this.nextStage(parseLinkLabel(content, this.pos, this.start, true)))
	                    return -1;
	                if (content.charCodeAt(this.pos) != 58 /* ':' */)
	                    return this.stage = -1 /* RefStage.Failed */;
	                this.elts.push(elt(Type$1.LinkMark, this.pos + this.start, this.pos + this.start + 1));
	                this.pos++;
	            }
	            else if (this.stage == 1 /* RefStage.Label */) {
	                if (!this.nextStage(parseURL(content, skipSpace(content, this.pos), this.start)))
	                    return -1;
	            }
	            else if (this.stage == 2 /* RefStage.Link */) {
	                let skip = skipSpace(content, this.pos), end = 0;
	                if (skip > this.pos) {
	                    let title = parseLinkTitle(content, skip, this.start);
	                    if (title) {
	                        let titleEnd = lineEnd(content, title.to - this.start);
	                        if (titleEnd > 0) {
	                            this.nextStage(title);
	                            end = titleEnd;
	                        }
	                    }
	                }
	                if (!end)
	                    end = lineEnd(content, this.pos);
	                return end > 0 && end < content.length ? end : -1;
	            }
	            else { // RefStage.Title
	                return lineEnd(content, this.pos);
	            }
	        }
	    }
	}
	function lineEnd(text, pos) {
	    for (; pos < text.length; pos++) {
	        let next = text.charCodeAt(pos);
	        if (next == 10)
	            break;
	        if (!space$5(next))
	            return -1;
	    }
	    return pos;
	}
	class SetextHeadingParser {
	    nextLine(cx, line, leaf) {
	        let underline = line.depth < cx.stack.length ? -1 : isSetextUnderline(line);
	        let next = line.next;
	        if (underline < 0)
	            return false;
	        let underlineMark = elt(Type$1.HeaderMark, cx.lineStart + line.pos, cx.lineStart + underline);
	        cx.nextLine();
	        cx.addLeafElement(leaf, elt(next == 61 ? Type$1.SetextHeading1 : Type$1.SetextHeading2, leaf.start, cx.prevLineEnd(), [
	            ...cx.parser.parseInline(leaf.content, leaf.start),
	            underlineMark
	        ]));
	        return true;
	    }
	    finish() {
	        return false;
	    }
	}
	const DefaultLeafBlocks = {
	    LinkReference(_, leaf) { return leaf.content.charCodeAt(0) == 91 /* '[' */ ? new LinkReferenceParser(leaf) : null; },
	    SetextHeading() { return new SetextHeadingParser; }
	};
	const DefaultEndLeaf = [
	    (_, line) => isAtxHeading(line) >= 0,
	    (_, line) => isFencedCode(line) >= 0,
	    (_, line) => isBlockquote(line) >= 0,
	    (p, line) => isBulletList(line, p, true) >= 0,
	    (p, line) => isOrderedList(line, p, true) >= 0,
	    (p, line) => isHorizontalRule(line, p, true) >= 0,
	    (p, line) => isHTMLBlock(line, p, true) >= 0
	];
	const scanLineResult = { text: "", end: 0 };
	/// Block-level parsing functions get access to this context object.
	class BlockContext {
	    /// @internal
	    constructor(
	    /// The parser configuration used.
	    parser, 
	    /// @internal
	    input, fragments, 
	    /// @internal
	    ranges) {
	        this.parser = parser;
	        this.input = input;
	        this.ranges = ranges;
	        this.line = new Line();
	        this.atEnd = false;
	        /// For reused nodes on gaps, we can't directly put the original
	        /// node into the tree, since that may be bitter than its parent.
	        /// When this happens, we create a dummy tree that is replaced by
	        /// the proper node in `injectGaps` @internal
	        this.reusePlaceholders = new Map;
	        this.stoppedAt = null;
	        /// The range index that absoluteLineStart points into @internal
	        this.rangeI = 0;
	        this.to = ranges[ranges.length - 1].to;
	        this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = ranges[0].from;
	        this.block = CompositeBlock.create(Type$1.Document, 0, this.lineStart, 0, 0);
	        this.stack = [this.block];
	        this.fragments = fragments.length ? new FragmentCursor$1(fragments, input) : null;
	        this.readLine();
	    }
	    get parsedPos() {
	        return this.absoluteLineStart;
	    }
	    advance() {
	        if (this.stoppedAt != null && this.absoluteLineStart > this.stoppedAt)
	            return this.finish();
	        let { line } = this;
	        for (;;) {
	            for (let markI = 0;;) {
	                let next = line.depth < this.stack.length ? this.stack[this.stack.length - 1] : null;
	                while (markI < line.markers.length && (!next || line.markers[markI].from < next.end)) {
	                    let mark = line.markers[markI++];
	                    this.addNode(mark.type, mark.from, mark.to);
	                }
	                if (!next)
	                    break;
	                this.finishContext();
	            }
	            if (line.pos < line.text.length)
	                break;
	            // Empty line
	            if (!this.nextLine())
	                return this.finish();
	        }
	        if (this.fragments && this.reuseFragment(line.basePos))
	            return null;
	        start: for (;;) {
	            for (let type of this.parser.blockParsers)
	                if (type) {
	                    let result = type(this, line);
	                    if (result != false) {
	                        if (result == true)
	                            return null;
	                        line.forward();
	                        continue start;
	                    }
	                }
	            break;
	        }
	        let leaf = new LeafBlock(this.lineStart + line.pos, line.text.slice(line.pos));
	        for (let parse of this.parser.leafBlockParsers)
	            if (parse) {
	                let parser = parse(this, leaf);
	                if (parser)
	                    leaf.parsers.push(parser);
	            }
	        lines: while (this.nextLine()) {
	            if (line.pos == line.text.length)
	                break;
	            if (line.indent < line.baseIndent + 4) {
	                for (let stop of this.parser.endLeafBlock)
	                    if (stop(this, line, leaf))
	                        break lines;
	            }
	            for (let parser of leaf.parsers)
	                if (parser.nextLine(this, line, leaf))
	                    return null;
	            leaf.content += "\n" + line.scrub();
	            for (let m of line.markers)
	                leaf.marks.push(m);
	        }
	        this.finishLeaf(leaf);
	        return null;
	    }
	    stopAt(pos) {
	        if (this.stoppedAt != null && this.stoppedAt < pos)
	            throw new RangeError("Can't move stoppedAt forward");
	        this.stoppedAt = pos;
	    }
	    reuseFragment(start) {
	        if (!this.fragments.moveTo(this.absoluteLineStart + start, this.absoluteLineStart) ||
	            !this.fragments.matches(this.block.hash))
	            return false;
	        let taken = this.fragments.takeNodes(this);
	        if (!taken)
	            return false;
	        this.absoluteLineStart += taken;
	        this.lineStart = toRelative(this.absoluteLineStart, this.ranges);
	        this.moveRangeI();
	        if (this.absoluteLineStart < this.to) {
	            this.lineStart++;
	            this.absoluteLineStart++;
	            this.readLine();
	        }
	        else {
	            this.atEnd = true;
	            this.readLine();
	        }
	        return true;
	    }
	    /// The number of parent blocks surrounding the current block.
	    get depth() {
	        return this.stack.length;
	    }
	    /// Get the type of the parent block at the given depth. When no
	    /// depth is passed, return the type of the innermost parent.
	    parentType(depth = this.depth - 1) {
	        return this.parser.nodeSet.types[this.stack[depth].type];
	    }
	    /// Move to the next input line. This should only be called by
	    /// (non-composite) [block parsers](#BlockParser.parse) that consume
	    /// the line directly, or leaf block parser
	    /// [`nextLine`](#LeafBlockParser.nextLine) methods when they
	    /// consume the current line (and return true).
	    nextLine() {
	        this.lineStart += this.line.text.length;
	        if (this.absoluteLineEnd >= this.to) {
	            this.absoluteLineStart = this.absoluteLineEnd;
	            this.atEnd = true;
	            this.readLine();
	            return false;
	        }
	        else {
	            this.lineStart++;
	            this.absoluteLineStart = this.absoluteLineEnd + 1;
	            this.moveRangeI();
	            this.readLine();
	            return true;
	        }
	    }
	    moveRangeI() {
	        while (this.rangeI < this.ranges.length - 1 && this.absoluteLineStart >= this.ranges[this.rangeI].to) {
	            this.rangeI++;
	            this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from);
	        }
	    }
	    /// @internal
	    scanLine(start) {
	        let r = scanLineResult;
	        r.end = start;
	        if (start >= this.to) {
	            r.text = "";
	        }
	        else {
	            r.text = this.lineChunkAt(start);
	            r.end += r.text.length;
	            if (this.ranges.length > 1) {
	                let textOffset = this.absoluteLineStart, rangeI = this.rangeI;
	                while (this.ranges[rangeI].to < r.end) {
	                    rangeI++;
	                    let nextFrom = this.ranges[rangeI].from;
	                    let after = this.lineChunkAt(nextFrom);
	                    r.end = nextFrom + after.length;
	                    r.text = r.text.slice(0, this.ranges[rangeI - 1].to - textOffset) + after;
	                    textOffset = r.end - r.text.length;
	                }
	            }
	        }
	        return r;
	    }
	    /// @internal
	    readLine() {
	        let { line } = this, { text, end } = this.scanLine(this.absoluteLineStart);
	        this.absoluteLineEnd = end;
	        line.reset(text);
	        for (; line.depth < this.stack.length; line.depth++) {
	            let cx = this.stack[line.depth], handler = this.parser.skipContextMarkup[cx.type];
	            if (!handler)
	                throw new Error("Unhandled block context " + Type$1[cx.type]);
	            if (!handler(cx, this, line))
	                break;
	            line.forward();
	        }
	    }
	    lineChunkAt(pos) {
	        let next = this.input.chunk(pos), text;
	        if (!this.input.lineChunks) {
	            let eol = next.indexOf("\n");
	            text = eol < 0 ? next : next.slice(0, eol);
	        }
	        else {
	            text = next == "\n" ? "" : next;
	        }
	        return pos + text.length > this.to ? text.slice(0, this.to - pos) : text;
	    }
	    /// The end position of the previous line.
	    prevLineEnd() { return this.atEnd ? this.lineStart : this.lineStart - 1; }
	    /// @internal
	    startContext(type, start, value = 0) {
	        this.block = CompositeBlock.create(type, value, this.lineStart + start, this.block.hash, this.lineStart + this.line.text.length);
	        this.stack.push(this.block);
	    }
	    /// Start a composite block. Should only be called from [block
	    /// parser functions](#BlockParser.parse) that return null.
	    startComposite(type, start, value = 0) {
	        this.startContext(this.parser.getNodeType(type), start, value);
	    }
	    /// @internal
	    addNode(block, from, to) {
	        if (typeof block == "number")
	            block = new Tree(this.parser.nodeSet.types[block], none$1, none$1, (to !== null && to !== void 0 ? to : this.prevLineEnd()) - from);
	        this.block.addChild(block, from - this.block.from);
	    }
	    /// Add a block element. Can be called by [block
	    /// parsers](#BlockParser.parse).
	    addElement(elt) {
	        this.block.addChild(elt.toTree(this.parser.nodeSet), elt.from - this.block.from);
	    }
	    /// Add a block element from a [leaf parser](#LeafBlockParser). This
	    /// makes sure any extra composite block markup (such as blockquote
	    /// markers) inside the block are also added to the syntax tree.
	    addLeafElement(leaf, elt) {
	        this.addNode(this.buffer
	            .writeElements(injectMarks(elt.children, leaf.marks), -elt.from)
	            .finish(elt.type, elt.to - elt.from), elt.from);
	    }
	    /// @internal
	    finishContext() {
	        let cx = this.stack.pop();
	        let top = this.stack[this.stack.length - 1];
	        top.addChild(cx.toTree(this.parser.nodeSet), cx.from - top.from);
	        this.block = top;
	    }
	    finish() {
	        while (this.stack.length > 1)
	            this.finishContext();
	        return this.addGaps(this.block.toTree(this.parser.nodeSet, this.lineStart));
	    }
	    addGaps(tree) {
	        return this.ranges.length > 1 ?
	            injectGaps(this.ranges, 0, tree.topNode, this.ranges[0].from, this.reusePlaceholders) : tree;
	    }
	    /// @internal
	    finishLeaf(leaf) {
	        for (let parser of leaf.parsers)
	            if (parser.finish(this, leaf))
	                return;
	        let inline = injectMarks(this.parser.parseInline(leaf.content, leaf.start), leaf.marks);
	        this.addNode(this.buffer
	            .writeElements(inline, -leaf.start)
	            .finish(Type$1.Paragraph, leaf.content.length), leaf.start);
	    }
	    elt(type, from, to, children) {
	        if (typeof type == "string")
	            return elt(this.parser.getNodeType(type), from, to, children);
	        return new TreeElement(type, from);
	    }
	    /// @internal
	    get buffer() { return new Buffer(this.parser.nodeSet); }
	}
	function injectGaps(ranges, rangeI, tree, offset, dummies) {
	    let rangeEnd = ranges[rangeI].to;
	    let children = [], positions = [], start = tree.from + offset;
	    function movePastNext(upto, inclusive) {
	        while (inclusive ? upto >= rangeEnd : upto > rangeEnd) {
	            let size = ranges[rangeI + 1].from - rangeEnd;
	            offset += size;
	            upto += size;
	            rangeI++;
	            rangeEnd = ranges[rangeI].to;
	        }
	    }
	    for (let ch = tree.firstChild; ch; ch = ch.nextSibling) {
	        movePastNext(ch.from + offset, true);
	        let from = ch.from + offset, node, reuse = dummies.get(ch.tree);
	        if (reuse) {
	            node = reuse;
	        }
	        else if (ch.to + offset > rangeEnd) {
	            node = injectGaps(ranges, rangeI, ch, offset, dummies);
	            movePastNext(ch.to + offset, false);
	        }
	        else {
	            node = ch.toTree();
	        }
	        children.push(node);
	        positions.push(from - start);
	    }
	    movePastNext(tree.to + offset, false);
	    return new Tree(tree.type, children, positions, tree.to + offset - start, tree.tree ? tree.tree.propValues : undefined);
	}
	/// A Markdown parser configuration.
	class MarkdownParser extends Parser {
	    /// @internal
	    constructor(
	    /// The parser's syntax [node
	    /// types](https://lezer.codemirror.net/docs/ref/#common.NodeSet).
	    nodeSet, 
	    /// @internal
	    blockParsers, 
	    /// @internal
	    leafBlockParsers, 
	    /// @internal
	    blockNames, 
	    /// @internal
	    endLeafBlock, 
	    /// @internal
	    skipContextMarkup, 
	    /// @internal
	    inlineParsers, 
	    /// @internal
	    inlineNames, 
	    /// @internal
	    wrappers) {
	        super();
	        this.nodeSet = nodeSet;
	        this.blockParsers = blockParsers;
	        this.leafBlockParsers = leafBlockParsers;
	        this.blockNames = blockNames;
	        this.endLeafBlock = endLeafBlock;
	        this.skipContextMarkup = skipContextMarkup;
	        this.inlineParsers = inlineParsers;
	        this.inlineNames = inlineNames;
	        this.wrappers = wrappers;
	        /// @internal
	        this.nodeTypes = Object.create(null);
	        for (let t of nodeSet.types)
	            this.nodeTypes[t.name] = t.id;
	    }
	    createParse(input, fragments, ranges) {
	        let parse = new BlockContext(this, input, fragments, ranges);
	        for (let w of this.wrappers)
	            parse = w(parse, input, fragments, ranges);
	        return parse;
	    }
	    /// Reconfigure the parser.
	    configure(spec) {
	        let config = resolveConfig(spec);
	        if (!config)
	            return this;
	        let { nodeSet, skipContextMarkup } = this;
	        let blockParsers = this.blockParsers.slice(), leafBlockParsers = this.leafBlockParsers.slice(), blockNames = this.blockNames.slice(), inlineParsers = this.inlineParsers.slice(), inlineNames = this.inlineNames.slice(), endLeafBlock = this.endLeafBlock.slice(), wrappers = this.wrappers;
	        if (nonEmpty(config.defineNodes)) {
	            skipContextMarkup = Object.assign({}, skipContextMarkup);
	            let nodeTypes = nodeSet.types.slice(), styles;
	            for (let s of config.defineNodes) {
	                let { name, block, composite, style } = typeof s == "string" ? { name: s } : s;
	                if (nodeTypes.some(t => t.name == name))
	                    continue;
	                if (composite)
	                    skipContextMarkup[nodeTypes.length] =
	                        (bl, cx, line) => composite(cx, line, bl.value);
	                let id = nodeTypes.length;
	                let group = composite ? ["Block", "BlockContext"] : !block ? undefined
	                    : id >= Type$1.ATXHeading1 && id <= Type$1.SetextHeading2 ? ["Block", "LeafBlock", "Heading"] : ["Block", "LeafBlock"];
	                nodeTypes.push(NodeType.define({
	                    id,
	                    name,
	                    props: group && [[NodeProp.group, group]]
	                }));
	                if (style) {
	                    if (!styles)
	                        styles = {};
	                    if (Array.isArray(style) || style instanceof Tag$1)
	                        styles[name] = style;
	                    else
	                        Object.assign(styles, style);
	                }
	            }
	            nodeSet = new NodeSet(nodeTypes);
	            if (styles)
	                nodeSet = nodeSet.extend(styleTags(styles));
	        }
	        if (nonEmpty(config.props))
	            nodeSet = nodeSet.extend(...config.props);
	        if (nonEmpty(config.remove)) {
	            for (let rm of config.remove) {
	                let block = this.blockNames.indexOf(rm), inline = this.inlineNames.indexOf(rm);
	                if (block > -1)
	                    blockParsers[block] = leafBlockParsers[block] = undefined;
	                if (inline > -1)
	                    inlineParsers[inline] = undefined;
	            }
	        }
	        if (nonEmpty(config.parseBlock)) {
	            for (let spec of config.parseBlock) {
	                let found = blockNames.indexOf(spec.name);
	                if (found > -1) {
	                    blockParsers[found] = spec.parse;
	                    leafBlockParsers[found] = spec.leaf;
	                }
	                else {
	                    let pos = spec.before ? findName(blockNames, spec.before)
	                        : spec.after ? findName(blockNames, spec.after) + 1 : blockNames.length - 1;
	                    blockParsers.splice(pos, 0, spec.parse);
	                    leafBlockParsers.splice(pos, 0, spec.leaf);
	                    blockNames.splice(pos, 0, spec.name);
	                }
	                if (spec.endLeaf)
	                    endLeafBlock.push(spec.endLeaf);
	            }
	        }
	        if (nonEmpty(config.parseInline)) {
	            for (let spec of config.parseInline) {
	                let found = inlineNames.indexOf(spec.name);
	                if (found > -1) {
	                    inlineParsers[found] = spec.parse;
	                }
	                else {
	                    let pos = spec.before ? findName(inlineNames, spec.before)
	                        : spec.after ? findName(inlineNames, spec.after) + 1 : inlineNames.length - 1;
	                    inlineParsers.splice(pos, 0, spec.parse);
	                    inlineNames.splice(pos, 0, spec.name);
	                }
	            }
	        }
	        if (config.wrap)
	            wrappers = wrappers.concat(config.wrap);
	        return new MarkdownParser(nodeSet, blockParsers, leafBlockParsers, blockNames, endLeafBlock, skipContextMarkup, inlineParsers, inlineNames, wrappers);
	    }
	    /// @internal
	    getNodeType(name) {
	        let found = this.nodeTypes[name];
	        if (found == null)
	            throw new RangeError(`Unknown node type '${name}'`);
	        return found;
	    }
	    /// Parse the given piece of inline text at the given offset,
	    /// returning an array of [`Element`](#Element) objects representing
	    /// the inline content.
	    parseInline(text, offset) {
	        let cx = new InlineContext(this, text, offset);
	        outer: for (let pos = offset; pos < cx.end;) {
	            let next = cx.char(pos);
	            for (let token of this.inlineParsers)
	                if (token) {
	                    let result = token(cx, next, pos);
	                    if (result >= 0) {
	                        pos = result;
	                        continue outer;
	                    }
	                }
	            pos++;
	        }
	        return cx.resolveMarkers(0);
	    }
	}
	function nonEmpty(a) {
	    return a != null && a.length > 0;
	}
	function resolveConfig(spec) {
	    if (!Array.isArray(spec))
	        return spec;
	    if (spec.length == 0)
	        return null;
	    let conf = resolveConfig(spec[0]);
	    if (spec.length == 1)
	        return conf;
	    let rest = resolveConfig(spec.slice(1));
	    if (!rest || !conf)
	        return conf || rest;
	    let conc = (a, b) => (a || none$1).concat(b || none$1);
	    let wrapA = conf.wrap, wrapB = rest.wrap;
	    return {
	        props: conc(conf.props, rest.props),
	        defineNodes: conc(conf.defineNodes, rest.defineNodes),
	        parseBlock: conc(conf.parseBlock, rest.parseBlock),
	        parseInline: conc(conf.parseInline, rest.parseInline),
	        remove: conc(conf.remove, rest.remove),
	        wrap: !wrapA ? wrapB : !wrapB ? wrapA :
	            (inner, input, fragments, ranges) => wrapA(wrapB(inner, input, fragments, ranges), input, fragments, ranges)
	    };
	}
	function findName(names, name) {
	    let found = names.indexOf(name);
	    if (found < 0)
	        throw new RangeError(`Position specified relative to unknown parser ${name}`);
	    return found;
	}
	let nodeTypes = [NodeType.none];
	for (let i = 1, name; name = Type$1[i]; i++) {
	    nodeTypes[i] = NodeType.define({
	        id: i,
	        name,
	        props: i >= Type$1.Escape ? [] : [[NodeProp.group, i in DefaultSkipMarkup ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
	        top: name == "Document"
	    });
	}
	const none$1 = [];
	class Buffer {
	    constructor(nodeSet) {
	        this.nodeSet = nodeSet;
	        this.content = [];
	        this.nodes = [];
	    }
	    write(type, from, to, children = 0) {
	        this.content.push(type, from, to, 4 + children * 4);
	        return this;
	    }
	    writeElements(elts, offset = 0) {
	        for (let e of elts)
	            e.writeTo(this, offset);
	        return this;
	    }
	    finish(type, length) {
	        return Tree.build({
	            buffer: this.content,
	            nodeSet: this.nodeSet,
	            reused: this.nodes,
	            topID: type,
	            length
	        });
	    }
	}
	/// Elements are used to compose syntax nodes during parsing.
	let Element$3 = class Element {
	    /// @internal
	    constructor(
	    /// The node's
	    /// [id](https://lezer.codemirror.net/docs/ref/#common.NodeType.id).
	    type, 
	    /// The start of the node, as an offset from the start of the document.
	    from, 
	    /// The end of the node.
	    to, 
	    /// The node's child nodes @internal
	    children = none$1) {
	        this.type = type;
	        this.from = from;
	        this.to = to;
	        this.children = children;
	    }
	    /// @internal
	    writeTo(buf, offset) {
	        let startOff = buf.content.length;
	        buf.writeElements(this.children, offset);
	        buf.content.push(this.type, this.from + offset, this.to + offset, buf.content.length + 4 - startOff);
	    }
	    /// @internal
	    toTree(nodeSet) {
	        return new Buffer(nodeSet).writeElements(this.children, -this.from).finish(this.type, this.to - this.from);
	    }
	};
	class TreeElement {
	    constructor(tree, from) {
	        this.tree = tree;
	        this.from = from;
	    }
	    get to() { return this.from + this.tree.length; }
	    get type() { return this.tree.type.id; }
	    get children() { return none$1; }
	    writeTo(buf, offset) {
	        buf.nodes.push(this.tree);
	        buf.content.push(buf.nodes.length - 1, this.from + offset, this.to + offset, -1);
	    }
	    toTree() { return this.tree; }
	}
	function elt(type, from, to, children) {
	    return new Element$3(type, from, to, children);
	}
	const EmphasisUnderscore = { resolve: "Emphasis", mark: "EmphasisMark" };
	const EmphasisAsterisk = { resolve: "Emphasis", mark: "EmphasisMark" };
	const LinkStart = {}, ImageStart = {};
	class InlineDelimiter {
	    constructor(type, from, to, side) {
	        this.type = type;
	        this.from = from;
	        this.to = to;
	        this.side = side;
	    }
	}
	const Escapable = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
	let Punctuation$1 = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;
	try {
	    Punctuation$1 = new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]", "u");
	}
	catch (_) { }
	const DefaultInline = {
	    Escape(cx, next, start) {
	        if (next != 92 /* '\\' */ || start == cx.end - 1)
	            return -1;
	        let escaped = cx.char(start + 1);
	        for (let i = 0; i < Escapable.length; i++)
	            if (Escapable.charCodeAt(i) == escaped)
	                return cx.append(elt(Type$1.Escape, start, start + 2));
	        return -1;
	    },
	    Entity(cx, next, start) {
	        if (next != 38 /* '&' */)
	            return -1;
	        let m = /^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(cx.slice(start + 1, start + 31));
	        return m ? cx.append(elt(Type$1.Entity, start, start + 1 + m[0].length)) : -1;
	    },
	    InlineCode(cx, next, start) {
	        if (next != 96 /* '`' */ || start && cx.char(start - 1) == 96)
	            return -1;
	        let pos = start + 1;
	        while (pos < cx.end && cx.char(pos) == 96)
	            pos++;
	        let size = pos - start, curSize = 0;
	        for (; pos < cx.end; pos++) {
	            if (cx.char(pos) == 96) {
	                curSize++;
	                if (curSize == size && cx.char(pos + 1) != 96)
	                    return cx.append(elt(Type$1.InlineCode, start, pos + 1, [
	                        elt(Type$1.CodeMark, start, start + size),
	                        elt(Type$1.CodeMark, pos + 1 - size, pos + 1)
	                    ]));
	            }
	            else {
	                curSize = 0;
	            }
	        }
	        return -1;
	    },
	    HTMLTag(cx, next, start) {
	        if (next != 60 /* '<' */ || start == cx.end - 1)
	            return -1;
	        let after = cx.slice(start + 1, cx.end);
	        let url = /^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(after);
	        if (url) {
	            return cx.append(elt(Type$1.Autolink, start, start + 1 + url[0].length, [
	                elt(Type$1.LinkMark, start, start + 1),
	                // url[0] includes the closing bracket, so exclude it from this slice
	                elt(Type$1.URL, start + 1, start + url[0].length),
	                elt(Type$1.LinkMark, start + url[0].length, start + 1 + url[0].length)
	            ]));
	        }
	        let comment = /^!--[^>](?:-[^-]|[^-])*?-->/i.exec(after);
	        if (comment)
	            return cx.append(elt(Type$1.Comment, start, start + 1 + comment[0].length));
	        let procInst = /^\?[^]*?\?>/.exec(after);
	        if (procInst)
	            return cx.append(elt(Type$1.ProcessingInstruction, start, start + 1 + procInst[0].length));
	        let m = /^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(after);
	        if (!m)
	            return -1;
	        return cx.append(elt(Type$1.HTMLTag, start, start + 1 + m[0].length));
	    },
	    Emphasis(cx, next, start) {
	        if (next != 95 && next != 42)
	            return -1;
	        let pos = start + 1;
	        while (cx.char(pos) == next)
	            pos++;
	        let before = cx.slice(start - 1, start), after = cx.slice(pos, pos + 1);
	        let pBefore = Punctuation$1.test(before), pAfter = Punctuation$1.test(after);
	        let sBefore = /\s|^$/.test(before), sAfter = /\s|^$/.test(after);
	        let leftFlanking = !sAfter && (!pAfter || sBefore || pBefore);
	        let rightFlanking = !sBefore && (!pBefore || sAfter || pAfter);
	        let canOpen = leftFlanking && (next == 42 || !rightFlanking || pBefore);
	        let canClose = rightFlanking && (next == 42 || !leftFlanking || pAfter);
	        return cx.append(new InlineDelimiter(next == 95 ? EmphasisUnderscore : EmphasisAsterisk, start, pos, (canOpen ? 1 /* Mark.Open */ : 0 /* Mark.None */) | (canClose ? 2 /* Mark.Close */ : 0 /* Mark.None */)));
	    },
	    HardBreak(cx, next, start) {
	        if (next == 92 /* '\\' */ && cx.char(start + 1) == 10 /* '\n' */)
	            return cx.append(elt(Type$1.HardBreak, start, start + 2));
	        if (next == 32) {
	            let pos = start + 1;
	            while (cx.char(pos) == 32)
	                pos++;
	            if (cx.char(pos) == 10 && pos >= start + 2)
	                return cx.append(elt(Type$1.HardBreak, start, pos + 1));
	        }
	        return -1;
	    },
	    Link(cx, next, start) {
	        return next == 91 /* '[' */ ? cx.append(new InlineDelimiter(LinkStart, start, start + 1, 1 /* Mark.Open */)) : -1;
	    },
	    Image(cx, next, start) {
	        return next == 33 /* '!' */ && cx.char(start + 1) == 91 /* '[' */
	            ? cx.append(new InlineDelimiter(ImageStart, start, start + 2, 1 /* Mark.Open */)) : -1;
	    },
	    LinkEnd(cx, next, start) {
	        if (next != 93 /* ']' */)
	            return -1;
	        // Scanning back to the next link/image start marker
	        for (let i = cx.parts.length - 1; i >= 0; i--) {
	            let part = cx.parts[i];
	            if (part instanceof InlineDelimiter && (part.type == LinkStart || part.type == ImageStart)) {
	                // If this one has been set invalid (because it would produce
	                // a nested link) or there's no valid link here ignore both.
	                if (!part.side || cx.skipSpace(part.to) == start && !/[(\[]/.test(cx.slice(start + 1, start + 2))) {
	                    cx.parts[i] = null;
	                    return -1;
	                }
	                // Finish the content and replace the entire range in
	                // this.parts with the link/image node.
	                let content = cx.takeContent(i);
	                let link = cx.parts[i] = finishLink(cx, content, part.type == LinkStart ? Type$1.Link : Type$1.Image, part.from, start + 1);
	                // Set any open-link markers before this link to invalid.
	                if (part.type == LinkStart)
	                    for (let j = 0; j < i; j++) {
	                        let p = cx.parts[j];
	                        if (p instanceof InlineDelimiter && p.type == LinkStart)
	                            p.side = 0 /* Mark.None */;
	                    }
	                return link.to;
	            }
	        }
	        return -1;
	    }
	};
	function finishLink(cx, content, type, start, startPos) {
	    let { text } = cx, next = cx.char(startPos), endPos = startPos;
	    content.unshift(elt(Type$1.LinkMark, start, start + (type == Type$1.Image ? 2 : 1)));
	    content.push(elt(Type$1.LinkMark, startPos - 1, startPos));
	    if (next == 40 /* '(' */) {
	        let pos = cx.skipSpace(startPos + 1);
	        let dest = parseURL(text, pos - cx.offset, cx.offset), title;
	        if (dest) {
	            pos = cx.skipSpace(dest.to);
	            // The destination and title must be separated by whitespace
	            if (pos != dest.to) {
	                title = parseLinkTitle(text, pos - cx.offset, cx.offset);
	                if (title)
	                    pos = cx.skipSpace(title.to);
	            }
	        }
	        if (cx.char(pos) == 41 /* ')' */) {
	            content.push(elt(Type$1.LinkMark, startPos, startPos + 1));
	            endPos = pos + 1;
	            if (dest)
	                content.push(dest);
	            if (title)
	                content.push(title);
	            content.push(elt(Type$1.LinkMark, pos, endPos));
	        }
	    }
	    else if (next == 91 /* '[' */) {
	        let label = parseLinkLabel(text, startPos - cx.offset, cx.offset, false);
	        if (label) {
	            content.push(label);
	            endPos = label.to;
	        }
	    }
	    return elt(type, start, endPos, content);
	}
	// These return `null` when falling off the end of the input, `false`
	// when parsing fails otherwise (for use in the incremental link
	// reference parser).
	function parseURL(text, start, offset) {
	    let next = text.charCodeAt(start);
	    if (next == 60 /* '<' */) {
	        for (let pos = start + 1; pos < text.length; pos++) {
	            let ch = text.charCodeAt(pos);
	            if (ch == 62 /* '>' */)
	                return elt(Type$1.URL, start + offset, pos + 1 + offset);
	            if (ch == 60 || ch == 10 /* '<\n' */)
	                return false;
	        }
	        return null;
	    }
	    else {
	        let depth = 0, pos = start;
	        for (let escaped = false; pos < text.length; pos++) {
	            let ch = text.charCodeAt(pos);
	            if (space$5(ch)) {
	                break;
	            }
	            else if (escaped) {
	                escaped = false;
	            }
	            else if (ch == 40 /* '(' */) {
	                depth++;
	            }
	            else if (ch == 41 /* ')' */) {
	                if (!depth)
	                    break;
	                depth--;
	            }
	            else if (ch == 92 /* '\\' */) {
	                escaped = true;
	            }
	        }
	        return pos > start ? elt(Type$1.URL, start + offset, pos + offset) : pos == text.length ? null : false;
	    }
	}
	function parseLinkTitle(text, start, offset) {
	    let next = text.charCodeAt(start);
	    if (next != 39 && next != 34 && next != 40 /* '"\'(' */)
	        return false;
	    let end = next == 40 ? 41 : next;
	    for (let pos = start + 1, escaped = false; pos < text.length; pos++) {
	        let ch = text.charCodeAt(pos);
	        if (escaped)
	            escaped = false;
	        else if (ch == end)
	            return elt(Type$1.LinkTitle, start + offset, pos + 1 + offset);
	        else if (ch == 92 /* '\\' */)
	            escaped = true;
	    }
	    return null;
	}
	function parseLinkLabel(text, start, offset, requireNonWS) {
	    for (let escaped = false, pos = start + 1, end = Math.min(text.length, pos + 999); pos < end; pos++) {
	        let ch = text.charCodeAt(pos);
	        if (escaped)
	            escaped = false;
	        else if (ch == 93 /* ']' */)
	            return requireNonWS ? false : elt(Type$1.LinkLabel, start + offset, pos + 1 + offset);
	        else {
	            if (requireNonWS && !space$5(ch))
	                requireNonWS = false;
	            if (ch == 91 /* '[' */)
	                return false;
	            else if (ch == 92 /* '\\' */)
	                escaped = true;
	        }
	    }
	    return null;
	}
	/// Inline parsing functions get access to this context, and use it to
	/// read the content and emit syntax nodes.
	class InlineContext {
	    /// @internal
	    constructor(
	    /// The parser that is being used.
	    parser, 
	    /// The text of this inline section.
	    text, 
	    /// The starting offset of the section in the document.
	    offset) {
	        this.parser = parser;
	        this.text = text;
	        this.offset = offset;
	        /// @internal
	        this.parts = [];
	    }
	    /// Get the character code at the given (document-relative)
	    /// position.
	    char(pos) { return pos >= this.end ? -1 : this.text.charCodeAt(pos - this.offset); }
	    /// The position of the end of this inline section.
	    get end() { return this.offset + this.text.length; }
	    /// Get a substring of this inline section. Again uses
	    /// document-relative positions.
	    slice(from, to) { return this.text.slice(from - this.offset, to - this.offset); }
	    /// @internal
	    append(elt) {
	        this.parts.push(elt);
	        return elt.to;
	    }
	    /// Add a [delimiter](#DelimiterType) at this given position. `open`
	    /// and `close` indicate whether this delimiter is opening, closing,
	    /// or both. Returns the end of the delimiter, for convenient
	    /// returning from [parse functions](#InlineParser.parse).
	    addDelimiter(type, from, to, open, close) {
	        return this.append(new InlineDelimiter(type, from, to, (open ? 1 /* Mark.Open */ : 0 /* Mark.None */) | (close ? 2 /* Mark.Close */ : 0 /* Mark.None */)));
	    }
	    /// Add an inline element. Returns the end of the element.
	    addElement(elt) {
	        return this.append(elt);
	    }
	    /// Resolve markers between this.parts.length and from, wrapping matched markers in the
	    /// appropriate node and updating the content of this.parts. @internal
	    resolveMarkers(from) {
	        // Scan forward, looking for closing tokens
	        for (let i = from; i < this.parts.length; i++) {
	            let close = this.parts[i];
	            if (!(close instanceof InlineDelimiter && close.type.resolve && (close.side & 2 /* Mark.Close */)))
	                continue;
	            let emp = close.type == EmphasisUnderscore || close.type == EmphasisAsterisk;
	            let closeSize = close.to - close.from;
	            let open, j = i - 1;
	            // Continue scanning for a matching opening token
	            for (; j >= from; j--) {
	                let part = this.parts[j];
	                if (part instanceof InlineDelimiter && (part.side & 1 /* Mark.Open */) && part.type == close.type &&
	                    // Ignore emphasis delimiters where the character count doesn't match
	                    !(emp && ((close.side & 1 /* Mark.Open */) || (part.side & 2 /* Mark.Close */)) &&
	                        (part.to - part.from + closeSize) % 3 == 0 && ((part.to - part.from) % 3 || closeSize % 3))) {
	                    open = part;
	                    break;
	                }
	            }
	            if (!open)
	                continue;
	            let type = close.type.resolve, content = [];
	            let start = open.from, end = close.to;
	            // Emphasis marker effect depends on the character count. Size consumed is minimum of the two
	            // markers.
	            if (emp) {
	                let size = Math.min(2, open.to - open.from, closeSize);
	                start = open.to - size;
	                end = close.from + size;
	                type = size == 1 ? "Emphasis" : "StrongEmphasis";
	            }
	            // Move the covered region into content, optionally adding marker nodes
	            if (open.type.mark)
	                content.push(this.elt(open.type.mark, start, open.to));
	            for (let k = j + 1; k < i; k++) {
	                if (this.parts[k] instanceof Element$3)
	                    content.push(this.parts[k]);
	                this.parts[k] = null;
	            }
	            if (close.type.mark)
	                content.push(this.elt(close.type.mark, close.from, end));
	            let element = this.elt(type, start, end, content);
	            // If there are leftover emphasis marker characters, shrink the close/open markers. Otherwise, clear them.
	            this.parts[j] = emp && open.from != start ? new InlineDelimiter(open.type, open.from, start, open.side) : null;
	            let keep = this.parts[i] = emp && close.to != end ? new InlineDelimiter(close.type, end, close.to, close.side) : null;
	            // Insert the new element in this.parts
	            if (keep)
	                this.parts.splice(i, 0, element);
	            else
	                this.parts[i] = element;
	        }
	        // Collect the elements remaining in this.parts into an array.
	        let result = [];
	        for (let i = from; i < this.parts.length; i++) {
	            let part = this.parts[i];
	            if (part instanceof Element$3)
	                result.push(part);
	        }
	        return result;
	    }
	    /// Find an opening delimiter of the given type. Returns `null` if
	    /// no delimiter is found, or an index that can be passed to
	    /// [`takeContent`](#InlineContext.takeContent) otherwise.
	    findOpeningDelimiter(type) {
	        for (let i = this.parts.length - 1; i >= 0; i--) {
	            let part = this.parts[i];
	            if (part instanceof InlineDelimiter && part.type == type)
	                return i;
	        }
	        return null;
	    }
	    /// Remove all inline elements and delimiters starting from the
	    /// given index (which you should get from
	    /// [`findOpeningDelimiter`](#InlineContext.findOpeningDelimiter),
	    /// resolve delimiters inside of them, and return them as an array
	    /// of elements.
	    takeContent(startIndex) {
	        let content = this.resolveMarkers(startIndex);
	        this.parts.length = startIndex;
	        return content;
	    }
	    /// Skip space after the given (document) position, returning either
	    /// the position of the next non-space character or the end of the
	    /// section.
	    skipSpace(from) { return skipSpace(this.text, from - this.offset) + this.offset; }
	    elt(type, from, to, children) {
	        if (typeof type == "string")
	            return elt(this.parser.getNodeType(type), from, to, children);
	        return new TreeElement(type, from);
	    }
	}
	function injectMarks(elements, marks) {
	    if (!marks.length)
	        return elements;
	    if (!elements.length)
	        return marks;
	    let elts = elements.slice(), eI = 0;
	    for (let mark of marks) {
	        while (eI < elts.length && elts[eI].to < mark.to)
	            eI++;
	        if (eI < elts.length && elts[eI].from < mark.from) {
	            let e = elts[eI];
	            if (e instanceof Element$3)
	                elts[eI] = new Element$3(e.type, e.from, e.to, injectMarks(e.children, [mark]));
	        }
	        else {
	            elts.splice(eI++, 0, mark);
	        }
	    }
	    return elts;
	}
	// These are blocks that can span blank lines, and should thus only be
	// reused if their next sibling is also being reused.
	const NotLast = [Type$1.CodeBlock, Type$1.ListItem, Type$1.OrderedList, Type$1.BulletList];
	let FragmentCursor$1 = class FragmentCursor {
	    constructor(fragments, input) {
	        this.fragments = fragments;
	        this.input = input;
	        // Index into fragment array
	        this.i = 0;
	        // Active fragment
	        this.fragment = null;
	        this.fragmentEnd = -1;
	        // Cursor into the current fragment, if any. When `moveTo` returns
	        // true, this points at the first block after `pos`.
	        this.cursor = null;
	        if (fragments.length)
	            this.fragment = fragments[this.i++];
	    }
	    nextFragment() {
	        this.fragment = this.i < this.fragments.length ? this.fragments[this.i++] : null;
	        this.cursor = null;
	        this.fragmentEnd = -1;
	    }
	    moveTo(pos, lineStart) {
	        while (this.fragment && this.fragment.to <= pos)
	            this.nextFragment();
	        if (!this.fragment || this.fragment.from > (pos ? pos - 1 : 0))
	            return false;
	        if (this.fragmentEnd < 0) {
	            let end = this.fragment.to;
	            while (end > 0 && this.input.read(end - 1, end) != "\n")
	                end--;
	            this.fragmentEnd = end ? end - 1 : 0;
	        }
	        let c = this.cursor;
	        if (!c) {
	            c = this.cursor = this.fragment.tree.cursor();
	            c.firstChild();
	        }
	        let rPos = pos + this.fragment.offset;
	        while (c.to <= rPos)
	            if (!c.parent())
	                return false;
	        for (;;) {
	            if (c.from >= rPos)
	                return this.fragment.from <= lineStart;
	            if (!c.childAfter(rPos))
	                return false;
	        }
	    }
	    matches(hash) {
	        let tree = this.cursor.tree;
	        return tree && tree.prop(NodeProp.contextHash) == hash;
	    }
	    takeNodes(cx) {
	        let cur = this.cursor, off = this.fragment.offset, fragEnd = this.fragmentEnd - (this.fragment.openEnd ? 1 : 0);
	        let start = cx.absoluteLineStart, end = start, blockI = cx.block.children.length;
	        let prevEnd = end, prevI = blockI;
	        for (;;) {
	            if (cur.to - off > fragEnd) {
	                if (cur.type.isAnonymous && cur.firstChild())
	                    continue;
	                break;
	            }
	            let pos = toRelative(cur.from - off, cx.ranges);
	            if (cur.to - off <= cx.ranges[cx.rangeI].to) { // Fits in current range
	                cx.addNode(cur.tree, pos);
	            }
	            else {
	                let dummy = new Tree(cx.parser.nodeSet.types[Type$1.Paragraph], [], [], 0, cx.block.hashProp);
	                cx.reusePlaceholders.set(dummy, cur.tree);
	                cx.addNode(dummy, pos);
	            }
	            // Taken content must always end in a block, because incremental
	            // parsing happens on block boundaries. Never stop directly
	            // after an indented code block, since those can continue after
	            // any number of blank lines.
	            if (cur.type.is("Block")) {
	                if (NotLast.indexOf(cur.type.id) < 0) {
	                    end = cur.to - off;
	                    blockI = cx.block.children.length;
	                }
	                else {
	                    end = prevEnd;
	                    blockI = prevI;
	                    prevEnd = cur.to - off;
	                    prevI = cx.block.children.length;
	                }
	            }
	            if (!cur.nextSibling())
	                break;
	        }
	        while (cx.block.children.length > blockI) {
	            cx.block.children.pop();
	            cx.block.positions.pop();
	        }
	        return end - start;
	    }
	};
	// Convert an input-stream-relative position to a
	// Markdown-doc-relative position by subtracting the size of all input
	// gaps before `abs`.
	function toRelative(abs, ranges) {
	    let pos = abs;
	    for (let i = 1; i < ranges.length; i++) {
	        let gapFrom = ranges[i - 1].to, gapTo = ranges[i].from;
	        if (gapFrom < abs)
	            pos -= gapTo - gapFrom;
	    }
	    return pos;
	}
	const markdownHighlighting = styleTags({
	    "Blockquote/...": tags$1.quote,
	    HorizontalRule: tags$1.contentSeparator,
	    "ATXHeading1/... SetextHeading1/...": tags$1.heading1,
	    "ATXHeading2/... SetextHeading2/...": tags$1.heading2,
	    "ATXHeading3/...": tags$1.heading3,
	    "ATXHeading4/...": tags$1.heading4,
	    "ATXHeading5/...": tags$1.heading5,
	    "ATXHeading6/...": tags$1.heading6,
	    "Comment CommentBlock": tags$1.comment,
	    Escape: tags$1.escape,
	    Entity: tags$1.character,
	    "Emphasis/...": tags$1.emphasis,
	    "StrongEmphasis/...": tags$1.strong,
	    "Link/... Image/...": tags$1.link,
	    "OrderedList/... BulletList/...": tags$1.list,
	    "BlockQuote/...": tags$1.quote,
	    "InlineCode CodeText": tags$1.monospace,
	    "URL Autolink": tags$1.url,
	    "HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark": tags$1.processingInstruction,
	    "CodeInfo LinkLabel": tags$1.labelName,
	    LinkTitle: tags$1.string,
	    Paragraph: tags$1.content
	});
	/// The default CommonMark parser.
	const parser$i = new MarkdownParser(new NodeSet(nodeTypes).extend(markdownHighlighting), Object.keys(DefaultBlockParsers).map(n => DefaultBlockParsers[n]), Object.keys(DefaultBlockParsers).map(n => DefaultLeafBlocks[n]), Object.keys(DefaultBlockParsers), DefaultEndLeaf, DefaultSkipMarkup, Object.keys(DefaultInline).map(n => DefaultInline[n]), Object.keys(DefaultInline), []);

	function leftOverSpace(node, from, to) {
	    let ranges = [];
	    for (let n = node.firstChild, pos = from;; n = n.nextSibling) {
	        let nextPos = n ? n.from : to;
	        if (nextPos > pos)
	            ranges.push({ from: pos, to: nextPos });
	        if (!n)
	            break;
	        pos = n.to;
	    }
	    return ranges;
	}
	/// Create a Markdown extension to enable nested parsing on code
	/// blocks and/or embedded HTML.
	function parseCode(config) {
	    let { codeParser, htmlParser } = config;
	    let wrap = parseMixed((node, input) => {
	        let id = node.type.id;
	        if (codeParser && (id == Type$1.CodeBlock || id == Type$1.FencedCode)) {
	            let info = "";
	            if (id == Type$1.FencedCode) {
	                let infoNode = node.node.getChild(Type$1.CodeInfo);
	                if (infoNode)
	                    info = input.read(infoNode.from, infoNode.to);
	            }
	            let parser = codeParser(info);
	            if (parser)
	                return { parser, overlay: node => node.type.id == Type$1.CodeText };
	        }
	        else if (htmlParser && (id == Type$1.HTMLBlock || id == Type$1.HTMLTag)) {
	            return { parser: htmlParser, overlay: leftOverSpace(node.node, node.from, node.to) };
	        }
	        return null;
	    });
	    return { wrap };
	}

	const StrikethroughDelim = { resolve: "Strikethrough", mark: "StrikethroughMark" };
	/// An extension that implements
	/// [GFM-style](https://github.github.com/gfm/#strikethrough-extension-)
	/// Strikethrough syntax using `~~` delimiters.
	const Strikethrough = {
	    defineNodes: [{
	            name: "Strikethrough",
	            style: { "Strikethrough/...": tags$1.strikethrough }
	        }, {
	            name: "StrikethroughMark",
	            style: tags$1.processingInstruction
	        }],
	    parseInline: [{
	            name: "Strikethrough",
	            parse(cx, next, pos) {
	                if (next != 126 /* '~' */ || cx.char(pos + 1) != 126 || cx.char(pos + 2) == 126)
	                    return -1;
	                let before = cx.slice(pos - 1, pos), after = cx.slice(pos + 2, pos + 3);
	                let sBefore = /\s|^$/.test(before), sAfter = /\s|^$/.test(after);
	                let pBefore = Punctuation$1.test(before), pAfter = Punctuation$1.test(after);
	                return cx.addDelimiter(StrikethroughDelim, pos, pos + 2, !sAfter && (!pAfter || sBefore || pBefore), !sBefore && (!pBefore || sAfter || pAfter));
	            },
	            after: "Emphasis"
	        }]
	};
	function parseRow(cx, line, startI = 0, elts, offset = 0) {
	    let count = 0, first = true, cellStart = -1, cellEnd = -1, esc = false;
	    let parseCell = () => {
	        elts.push(cx.elt("TableCell", offset + cellStart, offset + cellEnd, cx.parser.parseInline(line.slice(cellStart, cellEnd), offset + cellStart)));
	    };
	    for (let i = startI; i < line.length; i++) {
	        let next = line.charCodeAt(i);
	        if (next == 124 /* '|' */ && !esc) {
	            if (!first || cellStart > -1)
	                count++;
	            first = false;
	            if (elts) {
	                if (cellStart > -1)
	                    parseCell();
	                elts.push(cx.elt("TableDelimiter", i + offset, i + offset + 1));
	            }
	            cellStart = cellEnd = -1;
	        }
	        else if (esc || next != 32 && next != 9) {
	            if (cellStart < 0)
	                cellStart = i;
	            cellEnd = i + 1;
	        }
	        esc = !esc && next == 92;
	    }
	    if (cellStart > -1) {
	        count++;
	        if (elts)
	            parseCell();
	    }
	    return count;
	}
	function hasPipe(str, start) {
	    for (let i = start; i < str.length; i++) {
	        let next = str.charCodeAt(i);
	        if (next == 124 /* '|' */)
	            return true;
	        if (next == 92 /* '\\' */)
	            i++;
	    }
	    return false;
	}
	const delimiterLine = /^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;
	class TableParser {
	    constructor() {
	        // Null means we haven't seen the second line yet, false means this
	        // isn't a table, and an array means this is a table and we've
	        // parsed the given rows so far.
	        this.rows = null;
	    }
	    nextLine(cx, line, leaf) {
	        if (this.rows == null) { // Second line
	            this.rows = false;
	            let lineText;
	            if ((line.next == 45 || line.next == 58 || line.next == 124 /* '-:|' */) &&
	                delimiterLine.test(lineText = line.text.slice(line.pos))) {
	                let firstRow = [], firstCount = parseRow(cx, leaf.content, 0, firstRow, leaf.start);
	                if (firstCount == parseRow(cx, lineText, line.pos))
	                    this.rows = [cx.elt("TableHeader", leaf.start, leaf.start + leaf.content.length, firstRow),
	                        cx.elt("TableDelimiter", cx.lineStart + line.pos, cx.lineStart + line.text.length)];
	            }
	        }
	        else if (this.rows) { // Line after the second
	            let content = [];
	            parseRow(cx, line.text, line.pos, content, cx.lineStart);
	            this.rows.push(cx.elt("TableRow", cx.lineStart + line.pos, cx.lineStart + line.text.length, content));
	        }
	        return false;
	    }
	    finish(cx, leaf) {
	        if (!this.rows)
	            return false;
	        cx.addLeafElement(leaf, cx.elt("Table", leaf.start, leaf.start + leaf.content.length, this.rows));
	        return true;
	    }
	}
	/// This extension provides
	/// [GFM-style](https://github.github.com/gfm/#tables-extension-)
	/// tables, using syntax like this:
	///
	/// ```
	/// | head 1 | head 2 |
	/// | ---    | ---    |
	/// | cell 1 | cell 2 |
	/// ```
	const Table = {
	    defineNodes: [
	        { name: "Table", block: true },
	        { name: "TableHeader", style: { "TableHeader/...": tags$1.heading } },
	        "TableRow",
	        { name: "TableCell", style: tags$1.content },
	        { name: "TableDelimiter", style: tags$1.processingInstruction },
	    ],
	    parseBlock: [{
	            name: "Table",
	            leaf(_, leaf) { return hasPipe(leaf.content, 0) ? new TableParser : null; },
	            endLeaf(cx, line, leaf) {
	                if (leaf.parsers.some(p => p instanceof TableParser) || !hasPipe(line.text, line.basePos))
	                    return false;
	                let next = cx.scanLine(cx.absoluteLineEnd + 1).text;
	                return delimiterLine.test(next) && parseRow(cx, line.text, line.basePos) == parseRow(cx, next, line.basePos);
	            },
	            before: "SetextHeading"
	        }]
	};
	class TaskParser {
	    nextLine() { return false; }
	    finish(cx, leaf) {
	        cx.addLeafElement(leaf, cx.elt("Task", leaf.start, leaf.start + leaf.content.length, [
	            cx.elt("TaskMarker", leaf.start, leaf.start + 3),
	            ...cx.parser.parseInline(leaf.content.slice(3), leaf.start + 3)
	        ]));
	        return true;
	    }
	}
	/// Extension providing
	/// [GFM-style](https://github.github.com/gfm/#task-list-items-extension-)
	/// task list items, where list items can be prefixed with `[ ]` or
	/// `[x]` to add a checkbox.
	const TaskList = {
	    defineNodes: [
	        { name: "Task", block: true, style: tags$1.list },
	        { name: "TaskMarker", style: tags$1.atom }
	    ],
	    parseBlock: [{
	            name: "TaskList",
	            leaf(cx, leaf) {
	                return /^\[[ xX]\][ \t]/.test(leaf.content) && cx.parentType().name == "ListItem" ? new TaskParser : null;
	            },
	            after: "SetextHeading"
	        }]
	};
	const autolinkRE = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy;
	const urlRE = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy;
	const lastTwoDomainWords = /[\w-]+\.[\w-]+($|\/)/;
	const emailRE = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy;
	const xmppResourceRE = /\/[a-zA-Z\d@.]+/gy;
	function count(str, from, to, ch) {
	    let result = 0;
	    for (let i = from; i < to; i++)
	        if (str[i] == ch)
	            result++;
	    return result;
	}
	function autolinkURLEnd(text, from) {
	    urlRE.lastIndex = from;
	    let m = urlRE.exec(text);
	    if (!m || lastTwoDomainWords.exec(m[0])[0].indexOf("_") > -1)
	        return -1;
	    let end = from + m[0].length;
	    for (;;) {
	        let last = text[end - 1], m;
	        if (/[?!.,:*_~]/.test(last) ||
	            last == ")" && count(text, from, end, ")") > count(text, from, end, "("))
	            end--;
	        else if (last == ";" && (m = /&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(text.slice(from, end))))
	            end = from + m.index;
	        else
	            break;
	    }
	    return end;
	}
	function autolinkEmailEnd(text, from) {
	    emailRE.lastIndex = from;
	    let m = emailRE.exec(text);
	    if (!m)
	        return -1;
	    let last = m[0][m[0].length - 1];
	    return last == "_" || last == "-" ? -1 : from + m[0].length - (last == "." ? 1 : 0);
	}
	/// Extension that implements autolinking for
	/// `www.`/`http://`/`https://`/`mailto:`/`xmpp:` URLs and email
	/// addresses.
	const Autolink = {
	    parseInline: [{
	            name: "Autolink",
	            parse(cx, next, absPos) {
	                let pos = absPos - cx.offset;
	                autolinkRE.lastIndex = pos;
	                let m = autolinkRE.exec(cx.text), end = -1;
	                if (!m)
	                    return -1;
	                if (m[1] || m[2]) { // www., http://
	                    end = autolinkURLEnd(cx.text, pos + m[0].length);
	                }
	                else if (m[3]) { // email address
	                    end = autolinkEmailEnd(cx.text, pos);
	                }
	                else { // mailto:/xmpp:
	                    end = autolinkEmailEnd(cx.text, pos + m[0].length);
	                    if (end > -1 && m[0] == "xmpp:") {
	                        xmppResourceRE.lastIndex = end;
	                        m = xmppResourceRE.exec(cx.text);
	                        if (m)
	                            end = m.index + m[0].length;
	                    }
	                }
	                if (end < 0)
	                    return -1;
	                cx.addElement(cx.elt("URL", absPos, end + cx.offset));
	                return end + cx.offset;
	            }
	        }]
	};
	/// Extension bundle containing [`Table`](#Table),
	/// [`TaskList`](#TaskList), [`Strikethrough`](#Strikethrough), and
	/// [`Autolink`](#Autolink).
	const GFM = [Table, TaskList, Strikethrough, Autolink];
	function parseSubSuper(ch, node, mark) {
	    return (cx, next, pos) => {
	        if (next != ch || cx.char(pos + 1) == ch)
	            return -1;
	        let elts = [cx.elt(mark, pos, pos + 1)];
	        for (let i = pos + 1; i < cx.end; i++) {
	            let next = cx.char(i);
	            if (next == ch)
	                return cx.addElement(cx.elt(node, pos, i + 1, elts.concat(cx.elt(mark, i, i + 1))));
	            if (next == 92 /* '\\' */)
	                elts.push(cx.elt("Escape", i, i++ + 2));
	            if (space$5(next))
	                break;
	        }
	        return -1;
	    };
	}
	/// Extension providing
	/// [Pandoc-style](https://pandoc.org/MANUAL.html#superscripts-and-subscripts)
	/// superscript using `^` markers.
	const Superscript = {
	    defineNodes: [
	        { name: "Superscript", style: tags$1.special(tags$1.content) },
	        { name: "SuperscriptMark", style: tags$1.processingInstruction }
	    ],
	    parseInline: [{
	            name: "Superscript",
	            parse: parseSubSuper(94 /* '^' */, "Superscript", "SuperscriptMark")
	        }]
	};
	/// Extension providing
	/// [Pandoc-style](https://pandoc.org/MANUAL.html#superscripts-and-subscripts)
	/// subscript using `~` markers.
	const Subscript = {
	    defineNodes: [
	        { name: "Subscript", style: tags$1.special(tags$1.content) },
	        { name: "SubscriptMark", style: tags$1.processingInstruction }
	    ],
	    parseInline: [{
	            name: "Subscript",
	            parse: parseSubSuper(126 /* '~' */, "Subscript", "SubscriptMark")
	        }]
	};
	/// Extension that parses two colons with only letters, underscores,
	/// and numbers between them as `Emoji` nodes.
	const Emoji = {
	    defineNodes: [{ name: "Emoji", style: tags$1.character }],
	    parseInline: [{
	            name: "Emoji",
	            parse(cx, next, pos) {
	                let match;
	                if (next != 58 /* ':' */ || !(match = /^[a-zA-Z_0-9]+:/.exec(cx.slice(pos + 1, cx.end))))
	                    return -1;
	                return cx.addElement(cx.elt("Emoji", pos, pos + 1 + match[0].length));
	            }
	        }]
	};

	/**
	A parse stack. These are used internally by the parser to track
	parsing progress. They also provide some properties and methods
	that external code such as a tokenizer can use to get information
	about the parse state.
	*/
	class Stack {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    The parse that this stack is part of @internal
	    */
	    p, 
	    /**
	    Holds state, input pos, buffer index triplets for all but the
	    top state @internal
	    */
	    stack, 
	    /**
	    The current parse state @internal
	    */
	    state, 
	    // The position at which the next reduce should take place. This
	    // can be less than `this.pos` when skipped expressions have been
	    // added to the stack (which should be moved outside of the next
	    // reduction)
	    /**
	    @internal
	    */
	    reducePos, 
	    /**
	    The input position up to which this stack has parsed.
	    */
	    pos, 
	    /**
	    The dynamic score of the stack, including dynamic precedence
	    and error-recovery penalties
	    @internal
	    */
	    score, 
	    // The output buffer. Holds (type, start, end, size) quads
	    // representing nodes created by the parser, where `size` is
	    // amount of buffer array entries covered by this node.
	    /**
	    @internal
	    */
	    buffer, 
	    // The base offset of the buffer. When stacks are split, the split
	    // instance shared the buffer history with its parent up to
	    // `bufferBase`, which is the absolute offset (including the
	    // offset of previous splits) into the buffer at which this stack
	    // starts writing.
	    /**
	    @internal
	    */
	    bufferBase, 
	    /**
	    @internal
	    */
	    curContext, 
	    /**
	    @internal
	    */
	    lookAhead = 0, 
	    // A parent stack from which this was split off, if any. This is
	    // set up so that it always points to a stack that has some
	    // additional buffer content, never to a stack with an equal
	    // `bufferBase`.
	    /**
	    @internal
	    */
	    parent) {
	        this.p = p;
	        this.stack = stack;
	        this.state = state;
	        this.reducePos = reducePos;
	        this.pos = pos;
	        this.score = score;
	        this.buffer = buffer;
	        this.bufferBase = bufferBase;
	        this.curContext = curContext;
	        this.lookAhead = lookAhead;
	        this.parent = parent;
	    }
	    /**
	    @internal
	    */
	    toString() {
	        return `[${this.stack.filter((_, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
	    }
	    // Start an empty stack
	    /**
	    @internal
	    */
	    static start(p, state, pos = 0) {
	        let cx = p.parser.context;
	        return new Stack(p, [], state, pos, pos, 0, [], 0, cx ? new StackContext(cx, cx.start) : null, 0, null);
	    }
	    /**
	    The stack's current [context](#lr.ContextTracker) value, if
	    any. Its type will depend on the context tracker's type
	    parameter, or it will be `null` if there is no context
	    tracker.
	    */
	    get context() { return this.curContext ? this.curContext.context : null; }
	    // Push a state onto the stack, tracking its start position as well
	    // as the buffer base at that point.
	    /**
	    @internal
	    */
	    pushState(state, start) {
	        this.stack.push(this.state, start, this.bufferBase + this.buffer.length);
	        this.state = state;
	    }
	    // Apply a reduce action
	    /**
	    @internal
	    */
	    reduce(action) {
	        var _a;
	        let depth = action >> 19 /* Action.ReduceDepthShift */, type = action & 65535 /* Action.ValueMask */;
	        let { parser } = this.p;
	        let dPrec = parser.dynamicPrecedence(type);
	        if (dPrec)
	            this.score += dPrec;
	        if (depth == 0) {
	            this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
	            // Zero-depth reductions are a special case—they add stuff to
	            // the stack without popping anything off.
	            if (type < parser.minRepeatTerm)
	                this.storeNode(type, this.reducePos, this.reducePos, 4, true);
	            this.reduceContext(type, this.reducePos);
	            return;
	        }
	        // Find the base index into `this.stack`, content after which will
	        // be dropped. Note that with `StayFlag` reductions we need to
	        // consume two extra frames (the dummy parent node for the skipped
	        // expression and the state that we'll be staying in, which should
	        // be moved to `this.state`).
	        let base = this.stack.length - ((depth - 1) * 3) - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
	        let start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
	        // This is a kludge to try and detect overly deep left-associative
	        // trees, which will not increase the parse stack depth and thus
	        // won't be caught by the regular stack-depth limit check.
	        if (size >= 2000 /* Recover.MinBigReduction */ && !((_a = this.p.parser.nodeSet.types[type]) === null || _a === void 0 ? void 0 : _a.isAnonymous)) {
	            if (start == this.p.lastBigReductionStart) {
	                this.p.bigReductionCount++;
	                this.p.lastBigReductionSize = size;
	            }
	            else if (this.p.lastBigReductionSize < size) {
	                this.p.bigReductionCount = 1;
	                this.p.lastBigReductionStart = start;
	                this.p.lastBigReductionSize = size;
	            }
	        }
	        let bufferBase = base ? this.stack[base - 1] : 0, count = this.bufferBase + this.buffer.length - bufferBase;
	        // Store normal terms or `R -> R R` repeat reductions
	        if (type < parser.minRepeatTerm || (action & 131072 /* Action.RepeatFlag */)) {
	            let pos = parser.stateFlag(this.state, 1 /* StateFlag.Skipped */) ? this.pos : this.reducePos;
	            this.storeNode(type, start, pos, count + 4, true);
	        }
	        if (action & 262144 /* Action.StayFlag */) {
	            this.state = this.stack[base];
	        }
	        else {
	            let baseStateID = this.stack[base - 3];
	            this.state = parser.getGoto(baseStateID, type, true);
	        }
	        while (this.stack.length > base)
	            this.stack.pop();
	        this.reduceContext(type, start);
	    }
	    // Shift a value into the buffer
	    /**
	    @internal
	    */
	    storeNode(term, start, end, size = 4, isReduce = false) {
	        if (term == 0 /* Term.Err */ &&
	            (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
	            // Try to omit/merge adjacent error nodes
	            let cur = this, top = this.buffer.length;
	            if (top == 0 && cur.parent) {
	                top = cur.bufferBase - cur.parent.bufferBase;
	                cur = cur.parent;
	            }
	            if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
	                if (start == end)
	                    return;
	                if (cur.buffer[top - 2] >= start) {
	                    cur.buffer[top - 2] = end;
	                    return;
	                }
	            }
	        }
	        if (!isReduce || this.pos == end) { // Simple case, just append
	            this.buffer.push(term, start, end, size);
	        }
	        else { // There may be skipped nodes that have to be moved forward
	            let index = this.buffer.length;
	            if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */)
	                while (index > 0 && this.buffer[index - 2] > end) {
	                    // Move this record forward
	                    this.buffer[index] = this.buffer[index - 4];
	                    this.buffer[index + 1] = this.buffer[index - 3];
	                    this.buffer[index + 2] = this.buffer[index - 2];
	                    this.buffer[index + 3] = this.buffer[index - 1];
	                    index -= 4;
	                    if (size > 4)
	                        size -= 4;
	                }
	            this.buffer[index] = term;
	            this.buffer[index + 1] = start;
	            this.buffer[index + 2] = end;
	            this.buffer[index + 3] = size;
	        }
	    }
	    // Apply a shift action
	    /**
	    @internal
	    */
	    shift(action, type, start, end) {
	        if (action & 131072 /* Action.GotoFlag */) {
	            this.pushState(action & 65535 /* Action.ValueMask */, this.pos);
	        }
	        else if ((action & 262144 /* Action.StayFlag */) == 0) { // Regular shift
	            let nextState = action, { parser } = this.p;
	            if (end > this.pos || type <= parser.maxNode) {
	                this.pos = end;
	                if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */))
	                    this.reducePos = end;
	            }
	            this.pushState(nextState, start);
	            this.shiftContext(type, start);
	            if (type <= parser.maxNode)
	                this.buffer.push(type, start, end, 4);
	        }
	        else { // Shift-and-stay, which means this is a skipped token
	            this.pos = end;
	            this.shiftContext(type, start);
	            if (type <= this.p.parser.maxNode)
	                this.buffer.push(type, start, end, 4);
	        }
	    }
	    // Apply an action
	    /**
	    @internal
	    */
	    apply(action, next, nextStart, nextEnd) {
	        if (action & 65536 /* Action.ReduceFlag */)
	            this.reduce(action);
	        else
	            this.shift(action, next, nextStart, nextEnd);
	    }
	    // Add a prebuilt (reused) node into the buffer.
	    /**
	    @internal
	    */
	    useNode(value, next) {
	        let index = this.p.reused.length - 1;
	        if (index < 0 || this.p.reused[index] != value) {
	            this.p.reused.push(value);
	            index++;
	        }
	        let start = this.pos;
	        this.reducePos = this.pos = start + value.length;
	        this.pushState(next, start);
	        this.buffer.push(index, start, this.reducePos, -1 /* size == -1 means this is a reused value */);
	        if (this.curContext)
	            this.updateContext(this.curContext.tracker.reuse(this.curContext.context, value, this, this.p.stream.reset(this.pos - value.length)));
	    }
	    // Split the stack. Due to the buffer sharing and the fact
	    // that `this.stack` tends to stay quite shallow, this isn't very
	    // expensive.
	    /**
	    @internal
	    */
	    split() {
	        let parent = this;
	        let off = parent.buffer.length;
	        // Because the top of the buffer (after this.pos) may be mutated
	        // to reorder reductions and skipped tokens, and shared buffers
	        // should be immutable, this copies any outstanding skipped tokens
	        // to the new buffer, and puts the base pointer before them.
	        while (off > 0 && parent.buffer[off - 2] > parent.reducePos)
	            off -= 4;
	        let buffer = parent.buffer.slice(off), base = parent.bufferBase + off;
	        // Make sure parent points to an actual parent with content, if there is such a parent.
	        while (parent && base == parent.bufferBase)
	            parent = parent.parent;
	        return new Stack(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, buffer, base, this.curContext, this.lookAhead, parent);
	    }
	    // Try to recover from an error by 'deleting' (ignoring) one token.
	    /**
	    @internal
	    */
	    recoverByDelete(next, nextEnd) {
	        let isNode = next <= this.p.parser.maxNode;
	        if (isNode)
	            this.storeNode(next, this.pos, nextEnd, 4);
	        this.storeNode(0 /* Term.Err */, this.pos, nextEnd, isNode ? 8 : 4);
	        this.pos = this.reducePos = nextEnd;
	        this.score -= 190 /* Recover.Delete */;
	    }
	    /**
	    Check if the given term would be able to be shifted (optionally
	    after some reductions) on this stack. This can be useful for
	    external tokenizers that want to make sure they only provide a
	    given token when it applies.
	    */
	    canShift(term) {
	        for (let sim = new SimulatedStack(this);;) {
	            let action = this.p.parser.stateSlot(sim.state, 4 /* ParseState.DefaultReduce */) || this.p.parser.hasAction(sim.state, term);
	            if (action == 0)
	                return false;
	            if ((action & 65536 /* Action.ReduceFlag */) == 0)
	                return true;
	            sim.reduce(action);
	        }
	    }
	    // Apply up to Recover.MaxNext recovery actions that conceptually
	    // inserts some missing token or rule.
	    /**
	    @internal
	    */
	    recoverByInsert(next) {
	        if (this.stack.length >= 300 /* Recover.MaxInsertStackDepth */)
	            return [];
	        let nextStates = this.p.parser.nextStates(this.state);
	        if (nextStates.length > 4 /* Recover.MaxNext */ << 1 || this.stack.length >= 120 /* Recover.DampenInsertStackDepth */) {
	            let best = [];
	            for (let i = 0, s; i < nextStates.length; i += 2) {
	                if ((s = nextStates[i + 1]) != this.state && this.p.parser.hasAction(s, next))
	                    best.push(nextStates[i], s);
	            }
	            if (this.stack.length < 120 /* Recover.DampenInsertStackDepth */)
	                for (let i = 0; best.length < 4 /* Recover.MaxNext */ << 1 && i < nextStates.length; i += 2) {
	                    let s = nextStates[i + 1];
	                    if (!best.some((v, i) => (i & 1) && v == s))
	                        best.push(nextStates[i], s);
	                }
	            nextStates = best;
	        }
	        let result = [];
	        for (let i = 0; i < nextStates.length && result.length < 4 /* Recover.MaxNext */; i += 2) {
	            let s = nextStates[i + 1];
	            if (s == this.state)
	                continue;
	            let stack = this.split();
	            stack.pushState(s, this.pos);
	            stack.storeNode(0 /* Term.Err */, stack.pos, stack.pos, 4, true);
	            stack.shiftContext(nextStates[i], this.pos);
	            stack.reducePos = this.pos;
	            stack.score -= 200 /* Recover.Insert */;
	            result.push(stack);
	        }
	        return result;
	    }
	    // Force a reduce, if possible. Return false if that can't
	    // be done.
	    /**
	    @internal
	    */
	    forceReduce() {
	        let { parser } = this.p;
	        let reduce = parser.stateSlot(this.state, 5 /* ParseState.ForcedReduce */);
	        if ((reduce & 65536 /* Action.ReduceFlag */) == 0)
	            return false;
	        if (!parser.validAction(this.state, reduce)) {
	            let depth = reduce >> 19 /* Action.ReduceDepthShift */, term = reduce & 65535 /* Action.ValueMask */;
	            let target = this.stack.length - depth * 3;
	            if (target < 0 || parser.getGoto(this.stack[target], term, false) < 0) {
	                let backup = this.findForcedReduction();
	                if (backup == null)
	                    return false;
	                reduce = backup;
	            }
	            this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);
	            this.score -= 100 /* Recover.Reduce */;
	        }
	        this.reducePos = this.pos;
	        this.reduce(reduce);
	        return true;
	    }
	    /**
	    Try to scan through the automaton to find some kind of reduction
	    that can be applied. Used when the regular ForcedReduce field
	    isn't a valid action. @internal
	    */
	    findForcedReduction() {
	        let { parser } = this.p, seen = [];
	        let explore = (state, depth) => {
	            if (seen.includes(state))
	                return;
	            seen.push(state);
	            return parser.allActions(state, (action) => {
	                if (action & (262144 /* Action.StayFlag */ | 131072 /* Action.GotoFlag */)) ;
	                else if (action & 65536 /* Action.ReduceFlag */) {
	                    let rDepth = (action >> 19 /* Action.ReduceDepthShift */) - depth;
	                    if (rDepth > 1) {
	                        let term = action & 65535 /* Action.ValueMask */, target = this.stack.length - rDepth * 3;
	                        if (target >= 0 && parser.getGoto(this.stack[target], term, false) >= 0)
	                            return (rDepth << 19 /* Action.ReduceDepthShift */) | 65536 /* Action.ReduceFlag */ | term;
	                    }
	                }
	                else {
	                    let found = explore(action, depth + 1);
	                    if (found != null)
	                        return found;
	                }
	            });
	        };
	        return explore(this.state, 0);
	    }
	    /**
	    @internal
	    */
	    forceAll() {
	        while (!this.p.parser.stateFlag(this.state, 2 /* StateFlag.Accepting */)) {
	            if (!this.forceReduce()) {
	                this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);
	                break;
	            }
	        }
	        return this;
	    }
	    /**
	    Check whether this state has no further actions (assumed to be a direct descendant of the
	    top state, since any other states must be able to continue
	    somehow). @internal
	    */
	    get deadEnd() {
	        if (this.stack.length != 3)
	            return false;
	        let { parser } = this.p;
	        return parser.data[parser.stateSlot(this.state, 1 /* ParseState.Actions */)] == 65535 /* Seq.End */ &&
	            !parser.stateSlot(this.state, 4 /* ParseState.DefaultReduce */);
	    }
	    /**
	    Restart the stack (put it back in its start state). Only safe
	    when this.stack.length == 3 (state is directly below the top
	    state). @internal
	    */
	    restart() {
	        this.storeNode(0 /* Term.Err */, this.pos, this.pos, 4, true);
	        this.state = this.stack[0];
	        this.stack.length = 0;
	    }
	    /**
	    @internal
	    */
	    sameState(other) {
	        if (this.state != other.state || this.stack.length != other.stack.length)
	            return false;
	        for (let i = 0; i < this.stack.length; i += 3)
	            if (this.stack[i] != other.stack[i])
	                return false;
	        return true;
	    }
	    /**
	    Get the parser used by this stack.
	    */
	    get parser() { return this.p.parser; }
	    /**
	    Test whether a given dialect (by numeric ID, as exported from
	    the terms file) is enabled.
	    */
	    dialectEnabled(dialectID) { return this.p.parser.dialect.flags[dialectID]; }
	    shiftContext(term, start) {
	        if (this.curContext)
	            this.updateContext(this.curContext.tracker.shift(this.curContext.context, term, this, this.p.stream.reset(start)));
	    }
	    reduceContext(term, start) {
	        if (this.curContext)
	            this.updateContext(this.curContext.tracker.reduce(this.curContext.context, term, this, this.p.stream.reset(start)));
	    }
	    /**
	    @internal
	    */
	    emitContext() {
	        let last = this.buffer.length - 1;
	        if (last < 0 || this.buffer[last] != -3)
	            this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);
	    }
	    /**
	    @internal
	    */
	    emitLookAhead() {
	        let last = this.buffer.length - 1;
	        if (last < 0 || this.buffer[last] != -4)
	            this.buffer.push(this.lookAhead, this.pos, this.pos, -4);
	    }
	    updateContext(context) {
	        if (context != this.curContext.context) {
	            let newCx = new StackContext(this.curContext.tracker, context);
	            if (newCx.hash != this.curContext.hash)
	                this.emitContext();
	            this.curContext = newCx;
	        }
	    }
	    /**
	    @internal
	    */
	    setLookAhead(lookAhead) {
	        if (lookAhead > this.lookAhead) {
	            this.emitLookAhead();
	            this.lookAhead = lookAhead;
	        }
	    }
	    /**
	    @internal
	    */
	    close() {
	        if (this.curContext && this.curContext.tracker.strict)
	            this.emitContext();
	        if (this.lookAhead > 0)
	            this.emitLookAhead();
	    }
	}
	class StackContext {
	    constructor(tracker, context) {
	        this.tracker = tracker;
	        this.context = context;
	        this.hash = tracker.strict ? tracker.hash(context) : 0;
	    }
	}
	// Used to cheaply run some reductions to scan ahead without mutating
	// an entire stack
	class SimulatedStack {
	    constructor(start) {
	        this.start = start;
	        this.state = start.state;
	        this.stack = start.stack;
	        this.base = this.stack.length;
	    }
	    reduce(action) {
	        let term = action & 65535 /* Action.ValueMask */, depth = action >> 19 /* Action.ReduceDepthShift */;
	        if (depth == 0) {
	            if (this.stack == this.start.stack)
	                this.stack = this.stack.slice();
	            this.stack.push(this.state, 0, 0);
	            this.base += 3;
	        }
	        else {
	            this.base -= (depth - 1) * 3;
	        }
	        let goto = this.start.p.parser.getGoto(this.stack[this.base - 3], term, true);
	        this.state = goto;
	    }
	}
	// This is given to `Tree.build` to build a buffer, and encapsulates
	// the parent-stack-walking necessary to read the nodes.
	class StackBufferCursor {
	    constructor(stack, pos, index) {
	        this.stack = stack;
	        this.pos = pos;
	        this.index = index;
	        this.buffer = stack.buffer;
	        if (this.index == 0)
	            this.maybeNext();
	    }
	    static create(stack, pos = stack.bufferBase + stack.buffer.length) {
	        return new StackBufferCursor(stack, pos, pos - stack.bufferBase);
	    }
	    maybeNext() {
	        let next = this.stack.parent;
	        if (next != null) {
	            this.index = this.stack.bufferBase - next.bufferBase;
	            this.stack = next;
	            this.buffer = next.buffer;
	        }
	    }
	    get id() { return this.buffer[this.index - 4]; }
	    get start() { return this.buffer[this.index - 3]; }
	    get end() { return this.buffer[this.index - 2]; }
	    get size() { return this.buffer[this.index - 1]; }
	    next() {
	        this.index -= 4;
	        this.pos -= 4;
	        if (this.index == 0)
	            this.maybeNext();
	    }
	    fork() {
	        return new StackBufferCursor(this.stack, this.pos, this.index);
	    }
	}

	// See lezer-generator/src/encode.ts for comments about the encoding
	// used here
	function decodeArray(input, Type = Uint16Array) {
	    if (typeof input != "string")
	        return input;
	    let array = null;
	    for (let pos = 0, out = 0; pos < input.length;) {
	        let value = 0;
	        for (;;) {
	            let next = input.charCodeAt(pos++), stop = false;
	            if (next == 126 /* Encode.BigValCode */) {
	                value = 65535 /* Encode.BigVal */;
	                break;
	            }
	            if (next >= 92 /* Encode.Gap2 */)
	                next--;
	            if (next >= 34 /* Encode.Gap1 */)
	                next--;
	            let digit = next - 32 /* Encode.Start */;
	            if (digit >= 46 /* Encode.Base */) {
	                digit -= 46 /* Encode.Base */;
	                stop = true;
	            }
	            value += digit;
	            if (stop)
	                break;
	            value *= 46 /* Encode.Base */;
	        }
	        if (array)
	            array[out++] = value;
	        else
	            array = new Type(value);
	    }
	    return array;
	}

	class CachedToken {
	    constructor() {
	        this.start = -1;
	        this.value = -1;
	        this.end = -1;
	        this.extended = -1;
	        this.lookAhead = 0;
	        this.mask = 0;
	        this.context = 0;
	    }
	}
	const nullToken = new CachedToken;
	/**
	[Tokenizers](#lr.ExternalTokenizer) interact with the input
	through this interface. It presents the input as a stream of
	characters, tracking lookahead and hiding the complexity of
	[ranges](#common.Parser.parse^ranges) from tokenizer code.
	*/
	class InputStream {
	    /**
	    @internal
	    */
	    constructor(
	    /**
	    @internal
	    */
	    input, 
	    /**
	    @internal
	    */
	    ranges) {
	        this.input = input;
	        this.ranges = ranges;
	        /**
	        @internal
	        */
	        this.chunk = "";
	        /**
	        @internal
	        */
	        this.chunkOff = 0;
	        /**
	        Backup chunk
	        */
	        this.chunk2 = "";
	        this.chunk2Pos = 0;
	        /**
	        The character code of the next code unit in the input, or -1
	        when the stream is at the end of the input.
	        */
	        this.next = -1;
	        /**
	        @internal
	        */
	        this.token = nullToken;
	        this.rangeIndex = 0;
	        this.pos = this.chunkPos = ranges[0].from;
	        this.range = ranges[0];
	        this.end = ranges[ranges.length - 1].to;
	        this.readNext();
	    }
	    /**
	    @internal
	    */
	    resolveOffset(offset, assoc) {
	        let range = this.range, index = this.rangeIndex;
	        let pos = this.pos + offset;
	        while (pos < range.from) {
	            if (!index)
	                return null;
	            let next = this.ranges[--index];
	            pos -= range.from - next.to;
	            range = next;
	        }
	        while (assoc < 0 ? pos > range.to : pos >= range.to) {
	            if (index == this.ranges.length - 1)
	                return null;
	            let next = this.ranges[++index];
	            pos += next.from - range.to;
	            range = next;
	        }
	        return pos;
	    }
	    /**
	    @internal
	    */
	    clipPos(pos) {
	        if (pos >= this.range.from && pos < this.range.to)
	            return pos;
	        for (let range of this.ranges)
	            if (range.to > pos)
	                return Math.max(pos, range.from);
	        return this.end;
	    }
	    /**
	    Look at a code unit near the stream position. `.peek(0)` equals
	    `.next`, `.peek(-1)` gives you the previous character, and so
	    on.
	    
	    Note that looking around during tokenizing creates dependencies
	    on potentially far-away content, which may reduce the
	    effectiveness incremental parsing—when looking forward—or even
	    cause invalid reparses when looking backward more than 25 code
	    units, since the library does not track lookbehind.
	    */
	    peek(offset) {
	        let idx = this.chunkOff + offset, pos, result;
	        if (idx >= 0 && idx < this.chunk.length) {
	            pos = this.pos + offset;
	            result = this.chunk.charCodeAt(idx);
	        }
	        else {
	            let resolved = this.resolveOffset(offset, 1);
	            if (resolved == null)
	                return -1;
	            pos = resolved;
	            if (pos >= this.chunk2Pos && pos < this.chunk2Pos + this.chunk2.length) {
	                result = this.chunk2.charCodeAt(pos - this.chunk2Pos);
	            }
	            else {
	                let i = this.rangeIndex, range = this.range;
	                while (range.to <= pos)
	                    range = this.ranges[++i];
	                this.chunk2 = this.input.chunk(this.chunk2Pos = pos);
	                if (pos + this.chunk2.length > range.to)
	                    this.chunk2 = this.chunk2.slice(0, range.to - pos);
	                result = this.chunk2.charCodeAt(0);
	            }
	        }
	        if (pos >= this.token.lookAhead)
	            this.token.lookAhead = pos + 1;
	        return result;
	    }
	    /**
	    Accept a token. By default, the end of the token is set to the
	    current stream position, but you can pass an offset (relative to
	    the stream position) to change that.
	    */
	    acceptToken(token, endOffset = 0) {
	        let end = endOffset ? this.resolveOffset(endOffset, -1) : this.pos;
	        if (end == null || end < this.token.start)
	            throw new RangeError("Token end out of bounds");
	        this.token.value = token;
	        this.token.end = end;
	    }
	    /**
	    Accept a token ending at a specific given position.
	    */
	    acceptTokenTo(token, endPos) {
	        this.token.value = token;
	        this.token.end = endPos;
	    }
	    getChunk() {
	        if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
	            let { chunk, chunkPos } = this;
	            this.chunk = this.chunk2;
	            this.chunkPos = this.chunk2Pos;
	            this.chunk2 = chunk;
	            this.chunk2Pos = chunkPos;
	            this.chunkOff = this.pos - this.chunkPos;
	        }
	        else {
	            this.chunk2 = this.chunk;
	            this.chunk2Pos = this.chunkPos;
	            let nextChunk = this.input.chunk(this.pos);
	            let end = this.pos + nextChunk.length;
	            this.chunk = end > this.range.to ? nextChunk.slice(0, this.range.to - this.pos) : nextChunk;
	            this.chunkPos = this.pos;
	            this.chunkOff = 0;
	        }
	    }
	    readNext() {
	        if (this.chunkOff >= this.chunk.length) {
	            this.getChunk();
	            if (this.chunkOff == this.chunk.length)
	                return this.next = -1;
	        }
	        return this.next = this.chunk.charCodeAt(this.chunkOff);
	    }
	    /**
	    Move the stream forward N (defaults to 1) code units. Returns
	    the new value of [`next`](#lr.InputStream.next).
	    */
	    advance(n = 1) {
	        this.chunkOff += n;
	        while (this.pos + n >= this.range.to) {
	            if (this.rangeIndex == this.ranges.length - 1)
	                return this.setDone();
	            n -= this.range.to - this.pos;
	            this.range = this.ranges[++this.rangeIndex];
	            this.pos = this.range.from;
	        }
	        this.pos += n;
	        if (this.pos >= this.token.lookAhead)
	            this.token.lookAhead = this.pos + 1;
	        return this.readNext();
	    }
	    setDone() {
	        this.pos = this.chunkPos = this.end;
	        this.range = this.ranges[this.rangeIndex = this.ranges.length - 1];
	        this.chunk = "";
	        return this.next = -1;
	    }
	    /**
	    @internal
	    */
	    reset(pos, token) {
	        if (token) {
	            this.token = token;
	            token.start = pos;
	            token.lookAhead = pos + 1;
	            token.value = token.extended = -1;
	        }
	        else {
	            this.token = nullToken;
	        }
	        if (this.pos != pos) {
	            this.pos = pos;
	            if (pos == this.end) {
	                this.setDone();
	                return this;
	            }
	            while (pos < this.range.from)
	                this.range = this.ranges[--this.rangeIndex];
	            while (pos >= this.range.to)
	                this.range = this.ranges[++this.rangeIndex];
	            if (pos >= this.chunkPos && pos < this.chunkPos + this.chunk.length) {
	                this.chunkOff = pos - this.chunkPos;
	            }
	            else {
	                this.chunk = "";
	                this.chunkOff = 0;
	            }
	            this.readNext();
	        }
	        return this;
	    }
	    /**
	    @internal
	    */
	    read(from, to) {
	        if (from >= this.chunkPos && to <= this.chunkPos + this.chunk.length)
	            return this.chunk.slice(from - this.chunkPos, to - this.chunkPos);
	        if (from >= this.chunk2Pos && to <= this.chunk2Pos + this.chunk2.length)
	            return this.chunk2.slice(from - this.chunk2Pos, to - this.chunk2Pos);
	        if (from >= this.range.from && to <= this.range.to)
	            return this.input.read(from, to);
	        let result = "";
	        for (let r of this.ranges) {
	            if (r.from >= to)
	                break;
	            if (r.to > from)
	                result += this.input.read(Math.max(r.from, from), Math.min(r.to, to));
	        }
	        return result;
	    }
	}
	/**
	@internal
	*/
	class TokenGroup {
	    constructor(data, id) {
	        this.data = data;
	        this.id = id;
	    }
	    token(input, stack) {
	        let { parser } = stack.p;
	        readToken$2(this.data, input, stack, this.id, parser.data, parser.tokenPrecTable);
	    }
	}
	TokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;
	/**
	@hide
	*/
	class LocalTokenGroup {
	    constructor(data, precTable, elseToken) {
	        this.precTable = precTable;
	        this.elseToken = elseToken;
	        this.data = typeof data == "string" ? decodeArray(data) : data;
	    }
	    token(input, stack) {
	        let start = input.pos, skipped = 0;
	        for (;;) {
	            let atEof = input.next < 0, nextPos = input.resolveOffset(1, 1);
	            readToken$2(this.data, input, stack, 0, this.data, this.precTable);
	            if (input.token.value > -1)
	                break;
	            if (this.elseToken == null)
	                return;
	            if (!atEof)
	                skipped++;
	            if (nextPos == null)
	                break;
	            input.reset(nextPos, input.token);
	        }
	        if (skipped) {
	            input.reset(start, input.token);
	            input.acceptToken(this.elseToken, skipped);
	        }
	    }
	}
	LocalTokenGroup.prototype.contextual = TokenGroup.prototype.fallback = TokenGroup.prototype.extend = false;
	/**
	`@external tokens` declarations in the grammar should resolve to
	an instance of this class.
	*/
	class ExternalTokenizer {
	    /**
	    Create a tokenizer. The first argument is the function that,
	    given an input stream, scans for the types of tokens it
	    recognizes at the stream's position, and calls
	    [`acceptToken`](#lr.InputStream.acceptToken) when it finds
	    one.
	    */
	    constructor(
	    /**
	    @internal
	    */
	    token, options = {}) {
	        this.token = token;
	        this.contextual = !!options.contextual;
	        this.fallback = !!options.fallback;
	        this.extend = !!options.extend;
	    }
	}
	// Tokenizer data is stored a big uint16 array containing, for each
	// state:
	//
	//  - A group bitmask, indicating what token groups are reachable from
	//    this state, so that paths that can only lead to tokens not in
	//    any of the current groups can be cut off early.
	//
	//  - The position of the end of the state's sequence of accepting
	//    tokens
	//
	//  - The number of outgoing edges for the state
	//
	//  - The accepting tokens, as (token id, group mask) pairs
	//
	//  - The outgoing edges, as (start character, end character, state
	//    index) triples, with end character being exclusive
	//
	// This function interprets that data, running through a stream as
	// long as new states with the a matching group mask can be reached,
	// and updating `input.token` when it matches a token.
	function readToken$2(data, input, stack, group, precTable, precOffset) {
	    let state = 0, groupMask = 1 << group, { dialect } = stack.p.parser;
	    scan: for (;;) {
	        if ((groupMask & data[state]) == 0)
	            break;
	        let accEnd = data[state + 1];
	        // Check whether this state can lead to a token in the current group
	        // Accept tokens in this state, possibly overwriting
	        // lower-precedence / shorter tokens
	        for (let i = state + 3; i < accEnd; i += 2)
	            if ((data[i + 1] & groupMask) > 0) {
	                let term = data[i];
	                if (dialect.allows(term) &&
	                    (input.token.value == -1 || input.token.value == term ||
	                        overrides(term, input.token.value, precTable, precOffset))) {
	                    input.acceptToken(term);
	                    break;
	                }
	            }
	        let next = input.next, low = 0, high = data[state + 2];
	        // Special case for EOF
	        if (input.next < 0 && high > low && data[accEnd + high * 3 - 3] == 65535 /* Seq.End */) {
	            state = data[accEnd + high * 3 - 1];
	            continue scan;
	        }
	        // Do a binary search on the state's edges
	        for (; low < high;) {
	            let mid = (low + high) >> 1;
	            let index = accEnd + mid + (mid << 1);
	            let from = data[index], to = data[index + 1] || 0x10000;
	            if (next < from)
	                high = mid;
	            else if (next >= to)
	                low = mid + 1;
	            else {
	                state = data[index + 2];
	                input.advance();
	                continue scan;
	            }
	        }
	        break;
	    }
	}
	function findOffset(data, start, term) {
	    for (let i = start, next; (next = data[i]) != 65535 /* Seq.End */; i++)
	        if (next == term)
	            return i - start;
	    return -1;
	}
	function overrides(token, prev, tableData, tableOffset) {
	    let iPrev = findOffset(tableData, tableOffset, prev);
	    return iPrev < 0 || findOffset(tableData, tableOffset, token) < iPrev;
	}

	// Environment variable used to control console output
	const verbose = typeof process != "undefined" && process.env && /\bparse\b/.test(process.env.LOG);
	let stackIDs = null;
	function cutAt(tree, pos, side) {
	    let cursor = tree.cursor(IterMode.IncludeAnonymous);
	    cursor.moveTo(pos);
	    for (;;) {
	        if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos)))
	            for (;;) {
	                if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError)
	                    return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Safety.Margin */))
	                        : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Safety.Margin */));
	                if (side < 0 ? cursor.prevSibling() : cursor.nextSibling())
	                    break;
	                if (!cursor.parent())
	                    return side < 0 ? 0 : tree.length;
	            }
	    }
	}
	class FragmentCursor {
	    constructor(fragments, nodeSet) {
	        this.fragments = fragments;
	        this.nodeSet = nodeSet;
	        this.i = 0;
	        this.fragment = null;
	        this.safeFrom = -1;
	        this.safeTo = -1;
	        this.trees = [];
	        this.start = [];
	        this.index = [];
	        this.nextFragment();
	    }
	    nextFragment() {
	        let fr = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];
	        if (fr) {
	            this.safeFrom = fr.openStart ? cutAt(fr.tree, fr.from + fr.offset, 1) - fr.offset : fr.from;
	            this.safeTo = fr.openEnd ? cutAt(fr.tree, fr.to + fr.offset, -1) - fr.offset : fr.to;
	            while (this.trees.length) {
	                this.trees.pop();
	                this.start.pop();
	                this.index.pop();
	            }
	            this.trees.push(fr.tree);
	            this.start.push(-fr.offset);
	            this.index.push(0);
	            this.nextStart = this.safeFrom;
	        }
	        else {
	            this.nextStart = 1e9;
	        }
	    }
	    // `pos` must be >= any previously given `pos` for this cursor
	    nodeAt(pos) {
	        if (pos < this.nextStart)
	            return null;
	        while (this.fragment && this.safeTo <= pos)
	            this.nextFragment();
	        if (!this.fragment)
	            return null;
	        for (;;) {
	            let last = this.trees.length - 1;
	            if (last < 0) { // End of tree
	                this.nextFragment();
	                return null;
	            }
	            let top = this.trees[last], index = this.index[last];
	            if (index == top.children.length) {
	                this.trees.pop();
	                this.start.pop();
	                this.index.pop();
	                continue;
	            }
	            let next = top.children[index];
	            let start = this.start[last] + top.positions[index];
	            if (start > pos) {
	                this.nextStart = start;
	                return null;
	            }
	            if (next instanceof Tree) {
	                if (start == pos) {
	                    if (start < this.safeFrom)
	                        return null;
	                    let end = start + next.length;
	                    if (end <= this.safeTo) {
	                        let lookAhead = next.prop(NodeProp.lookAhead);
	                        if (!lookAhead || end + lookAhead < this.fragment.to)
	                            return next;
	                    }
	                }
	                this.index[last]++;
	                if (start + next.length >= Math.max(this.safeFrom, pos)) { // Enter this node
	                    this.trees.push(next);
	                    this.start.push(start);
	                    this.index.push(0);
	                }
	            }
	            else {
	                this.index[last]++;
	                this.nextStart = start + next.length;
	            }
	        }
	    }
	}
	class TokenCache {
	    constructor(parser, stream) {
	        this.stream = stream;
	        this.tokens = [];
	        this.mainToken = null;
	        this.actions = [];
	        this.tokens = parser.tokenizers.map(_ => new CachedToken);
	    }
	    getActions(stack) {
	        let actionIndex = 0;
	        let main = null;
	        let { parser } = stack.p, { tokenizers } = parser;
	        let mask = parser.stateSlot(stack.state, 3 /* ParseState.TokenizerMask */);
	        let context = stack.curContext ? stack.curContext.hash : 0;
	        let lookAhead = 0;
	        for (let i = 0; i < tokenizers.length; i++) {
	            if (((1 << i) & mask) == 0)
	                continue;
	            let tokenizer = tokenizers[i], token = this.tokens[i];
	            if (main && !tokenizer.fallback)
	                continue;
	            if (tokenizer.contextual || token.start != stack.pos || token.mask != mask || token.context != context) {
	                this.updateCachedToken(token, tokenizer, stack);
	                token.mask = mask;
	                token.context = context;
	            }
	            if (token.lookAhead > token.end + 25 /* Safety.Margin */)
	                lookAhead = Math.max(token.lookAhead, lookAhead);
	            if (token.value != 0 /* Term.Err */) {
	                let startIndex = actionIndex;
	                if (token.extended > -1)
	                    actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
	                actionIndex = this.addActions(stack, token.value, token.end, actionIndex);
	                if (!tokenizer.extend) {
	                    main = token;
	                    if (actionIndex > startIndex)
	                        break;
	                }
	            }
	        }
	        while (this.actions.length > actionIndex)
	            this.actions.pop();
	        if (lookAhead)
	            stack.setLookAhead(lookAhead);
	        if (!main && stack.pos == this.stream.end) {
	            main = new CachedToken;
	            main.value = stack.p.parser.eofTerm;
	            main.start = main.end = stack.pos;
	            actionIndex = this.addActions(stack, main.value, main.end, actionIndex);
	        }
	        this.mainToken = main;
	        return this.actions;
	    }
	    getMainToken(stack) {
	        if (this.mainToken)
	            return this.mainToken;
	        let main = new CachedToken, { pos, p } = stack;
	        main.start = pos;
	        main.end = Math.min(pos + 1, p.stream.end);
	        main.value = pos == p.stream.end ? p.parser.eofTerm : 0 /* Term.Err */;
	        return main;
	    }
	    updateCachedToken(token, tokenizer, stack) {
	        let start = this.stream.clipPos(stack.pos);
	        tokenizer.token(this.stream.reset(start, token), stack);
	        if (token.value > -1) {
	            let { parser } = stack.p;
	            for (let i = 0; i < parser.specialized.length; i++)
	                if (parser.specialized[i] == token.value) {
	                    let result = parser.specializers[i](this.stream.read(token.start, token.end), stack);
	                    if (result >= 0 && stack.p.parser.dialect.allows(result >> 1)) {
	                        if ((result & 1) == 0 /* Specialize.Specialize */)
	                            token.value = result >> 1;
	                        else
	                            token.extended = result >> 1;
	                        break;
	                    }
	                }
	        }
	        else {
	            token.value = 0 /* Term.Err */;
	            token.end = this.stream.clipPos(start + 1);
	        }
	    }
	    putAction(action, token, end, index) {
	        // Don't add duplicate actions
	        for (let i = 0; i < index; i += 3)
	            if (this.actions[i] == action)
	                return index;
	        this.actions[index++] = action;
	        this.actions[index++] = token;
	        this.actions[index++] = end;
	        return index;
	    }
	    addActions(stack, token, end, index) {
	        let { state } = stack, { parser } = stack.p, { data } = parser;
	        for (let set = 0; set < 2; set++) {
	            for (let i = parser.stateSlot(state, set ? 2 /* ParseState.Skip */ : 1 /* ParseState.Actions */);; i += 3) {
	                if (data[i] == 65535 /* Seq.End */) {
	                    if (data[i + 1] == 1 /* Seq.Next */) {
	                        i = pair(data, i + 2);
	                    }
	                    else {
	                        if (index == 0 && data[i + 1] == 2 /* Seq.Other */)
	                            index = this.putAction(pair(data, i + 2), token, end, index);
	                        break;
	                    }
	                }
	                if (data[i] == token)
	                    index = this.putAction(pair(data, i + 1), token, end, index);
	            }
	        }
	        return index;
	    }
	}
	class Parse {
	    constructor(parser, input, fragments, ranges) {
	        this.parser = parser;
	        this.input = input;
	        this.ranges = ranges;
	        this.recovering = 0;
	        this.nextStackID = 0x2654; // ♔, ♕, ♖, ♗, ♘, ♙, ♠, ♡, ♢, ♣, ♤, ♥, ♦, ♧
	        this.minStackPos = 0;
	        this.reused = [];
	        this.stoppedAt = null;
	        this.lastBigReductionStart = -1;
	        this.lastBigReductionSize = 0;
	        this.bigReductionCount = 0;
	        this.stream = new InputStream(input, ranges);
	        this.tokens = new TokenCache(parser, this.stream);
	        this.topTerm = parser.top[1];
	        let { from } = ranges[0];
	        this.stacks = [Stack.start(this, parser.top[0], from)];
	        this.fragments = fragments.length && this.stream.end - from > parser.bufferLength * 4
	            ? new FragmentCursor(fragments, parser.nodeSet) : null;
	    }
	    get parsedPos() {
	        return this.minStackPos;
	    }
	    // Move the parser forward. This will process all parse stacks at
	    // `this.pos` and try to advance them to a further position. If no
	    // stack for such a position is found, it'll start error-recovery.
	    //
	    // When the parse is finished, this will return a syntax tree. When
	    // not, it returns `null`.
	    advance() {
	        let stacks = this.stacks, pos = this.minStackPos;
	        // This will hold stacks beyond `pos`.
	        let newStacks = this.stacks = [];
	        let stopped, stoppedTokens;
	        // If a large amount of reductions happened with the same start
	        // position, force the stack out of that production in order to
	        // avoid creating a tree too deep to recurse through.
	        // (This is an ugly kludge, because unfortunately there is no
	        // straightforward, cheap way to check for this happening, due to
	        // the history of reductions only being available in an
	        // expensive-to-access format in the stack buffers.)
	        if (this.bigReductionCount > 300 /* Rec.MaxLeftAssociativeReductionCount */ && stacks.length == 1) {
	            let [s] = stacks;
	            while (s.forceReduce() && s.stack.length && s.stack[s.stack.length - 2] >= this.lastBigReductionStart) { }
	            this.bigReductionCount = this.lastBigReductionSize = 0;
	        }
	        // Keep advancing any stacks at `pos` until they either move
	        // forward or can't be advanced. Gather stacks that can't be
	        // advanced further in `stopped`.
	        for (let i = 0; i < stacks.length; i++) {
	            let stack = stacks[i];
	            for (;;) {
	                this.tokens.mainToken = null;
	                if (stack.pos > pos) {
	                    newStacks.push(stack);
	                }
	                else if (this.advanceStack(stack, newStacks, stacks)) {
	                    continue;
	                }
	                else {
	                    if (!stopped) {
	                        stopped = [];
	                        stoppedTokens = [];
	                    }
	                    stopped.push(stack);
	                    let tok = this.tokens.getMainToken(stack);
	                    stoppedTokens.push(tok.value, tok.end);
	                }
	                break;
	            }
	        }
	        if (!newStacks.length) {
	            let finished = stopped && findFinished(stopped);
	            if (finished) {
	                if (verbose)
	                    console.log("Finish with " + this.stackID(finished));
	                return this.stackToTree(finished);
	            }
	            if (this.parser.strict) {
	                if (verbose && stopped)
	                    console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none"));
	                throw new SyntaxError("No parse at " + pos);
	            }
	            if (!this.recovering)
	                this.recovering = 5 /* Rec.Distance */;
	        }
	        if (this.recovering && stopped) {
	            let finished = this.stoppedAt != null && stopped[0].pos > this.stoppedAt ? stopped[0]
	                : this.runRecovery(stopped, stoppedTokens, newStacks);
	            if (finished) {
	                if (verbose)
	                    console.log("Force-finish " + this.stackID(finished));
	                return this.stackToTree(finished.forceAll());
	            }
	        }
	        if (this.recovering) {
	            let maxRemaining = this.recovering == 1 ? 1 : this.recovering * 3 /* Rec.MaxRemainingPerStep */;
	            if (newStacks.length > maxRemaining) {
	                newStacks.sort((a, b) => b.score - a.score);
	                while (newStacks.length > maxRemaining)
	                    newStacks.pop();
	            }
	            if (newStacks.some(s => s.reducePos > pos))
	                this.recovering--;
	        }
	        else if (newStacks.length > 1) {
	            // Prune stacks that are in the same state, or that have been
	            // running without splitting for a while, to avoid getting stuck
	            // with multiple successful stacks running endlessly on.
	            outer: for (let i = 0; i < newStacks.length - 1; i++) {
	                let stack = newStacks[i];
	                for (let j = i + 1; j < newStacks.length; j++) {
	                    let other = newStacks[j];
	                    if (stack.sameState(other) ||
	                        stack.buffer.length > 500 /* Rec.MinBufferLengthPrune */ && other.buffer.length > 500 /* Rec.MinBufferLengthPrune */) {
	                        if (((stack.score - other.score) || (stack.buffer.length - other.buffer.length)) > 0) {
	                            newStacks.splice(j--, 1);
	                        }
	                        else {
	                            newStacks.splice(i--, 1);
	                            continue outer;
	                        }
	                    }
	                }
	            }
	            if (newStacks.length > 12 /* Rec.MaxStackCount */)
	                newStacks.splice(12 /* Rec.MaxStackCount */, newStacks.length - 12 /* Rec.MaxStackCount */);
	        }
	        this.minStackPos = newStacks[0].pos;
	        for (let i = 1; i < newStacks.length; i++)
	            if (newStacks[i].pos < this.minStackPos)
	                this.minStackPos = newStacks[i].pos;
	        return null;
	    }
	    stopAt(pos) {
	        if (this.stoppedAt != null && this.stoppedAt < pos)
	            throw new RangeError("Can't move stoppedAt forward");
	        this.stoppedAt = pos;
	    }
	    // Returns an updated version of the given stack, or null if the
	    // stack can't advance normally. When `split` and `stacks` are
	    // given, stacks split off by ambiguous operations will be pushed to
	    // `split`, or added to `stacks` if they move `pos` forward.
	    advanceStack(stack, stacks, split) {
	        let start = stack.pos, { parser } = this;
	        let base = verbose ? this.stackID(stack) + " -> " : "";
	        if (this.stoppedAt != null && start > this.stoppedAt)
	            return stack.forceReduce() ? stack : null;
	        if (this.fragments) {
	            let strictCx = stack.curContext && stack.curContext.tracker.strict, cxHash = strictCx ? stack.curContext.hash : 0;
	            for (let cached = this.fragments.nodeAt(start); cached;) {
	                let match = this.parser.nodeSet.types[cached.type.id] == cached.type ? parser.getGoto(stack.state, cached.type.id) : -1;
	                if (match > -1 && cached.length && (!strictCx || (cached.prop(NodeProp.contextHash) || 0) == cxHash)) {
	                    stack.useNode(cached, match);
	                    if (verbose)
	                        console.log(base + this.stackID(stack) + ` (via reuse of ${parser.getName(cached.type.id)})`);
	                    return true;
	                }
	                if (!(cached instanceof Tree) || cached.children.length == 0 || cached.positions[0] > 0)
	                    break;
	                let inner = cached.children[0];
	                if (inner instanceof Tree && cached.positions[0] == 0)
	                    cached = inner;
	                else
	                    break;
	            }
	        }
	        let defaultReduce = parser.stateSlot(stack.state, 4 /* ParseState.DefaultReduce */);
	        if (defaultReduce > 0) {
	            stack.reduce(defaultReduce);
	            if (verbose)
	                console.log(base + this.stackID(stack) + ` (via always-reduce ${parser.getName(defaultReduce & 65535 /* Action.ValueMask */)})`);
	            return true;
	        }
	        if (stack.stack.length >= 8400 /* Rec.CutDepth */) {
	            while (stack.stack.length > 6000 /* Rec.CutTo */ && stack.forceReduce()) { }
	        }
	        let actions = this.tokens.getActions(stack);
	        for (let i = 0; i < actions.length;) {
	            let action = actions[i++], term = actions[i++], end = actions[i++];
	            let last = i == actions.length || !split;
	            let localStack = last ? stack : stack.split();
	            let main = this.tokens.mainToken;
	            localStack.apply(action, term, main ? main.start : localStack.pos, end);
	            if (verbose)
	                console.log(base + this.stackID(localStack) + ` (via ${(action & 65536 /* Action.ReduceFlag */) == 0 ? "shift"
                    : `reduce of ${parser.getName(action & 65535 /* Action.ValueMask */)}`} for ${parser.getName(term)} @ ${start}${localStack == stack ? "" : ", split"})`);
	            if (last)
	                return true;
	            else if (localStack.pos > start)
	                stacks.push(localStack);
	            else
	                split.push(localStack);
	        }
	        return false;
	    }
	    // Advance a given stack forward as far as it will go. Returns the
	    // (possibly updated) stack if it got stuck, or null if it moved
	    // forward and was given to `pushStackDedup`.
	    advanceFully(stack, newStacks) {
	        let pos = stack.pos;
	        for (;;) {
	            if (!this.advanceStack(stack, null, null))
	                return false;
	            if (stack.pos > pos) {
	                pushStackDedup(stack, newStacks);
	                return true;
	            }
	        }
	    }
	    runRecovery(stacks, tokens, newStacks) {
	        let finished = null, restarted = false;
	        for (let i = 0; i < stacks.length; i++) {
	            let stack = stacks[i], token = tokens[i << 1], tokenEnd = tokens[(i << 1) + 1];
	            let base = verbose ? this.stackID(stack) + " -> " : "";
	            if (stack.deadEnd) {
	                if (restarted)
	                    continue;
	                restarted = true;
	                stack.restart();
	                if (verbose)
	                    console.log(base + this.stackID(stack) + " (restarted)");
	                let done = this.advanceFully(stack, newStacks);
	                if (done)
	                    continue;
	            }
	            let force = stack.split(), forceBase = base;
	            for (let j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */; j++) {
	                if (verbose)
	                    console.log(forceBase + this.stackID(force) + " (via force-reduce)");
	                let done = this.advanceFully(force, newStacks);
	                if (done)
	                    break;
	                if (verbose)
	                    forceBase = this.stackID(force) + " -> ";
	            }
	            for (let insert of stack.recoverByInsert(token)) {
	                if (verbose)
	                    console.log(base + this.stackID(insert) + " (via recover-insert)");
	                this.advanceFully(insert, newStacks);
	            }
	            if (this.stream.end > stack.pos) {
	                if (tokenEnd == stack.pos) {
	                    tokenEnd++;
	                    token = 0 /* Term.Err */;
	                }
	                stack.recoverByDelete(token, tokenEnd);
	                if (verbose)
	                    console.log(base + this.stackID(stack) + ` (via recover-delete ${this.parser.getName(token)})`);
	                pushStackDedup(stack, newStacks);
	            }
	            else if (!finished || finished.score < stack.score) {
	                finished = stack;
	            }
	        }
	        return finished;
	    }
	    // Convert the stack's buffer to a syntax tree.
	    stackToTree(stack) {
	        stack.close();
	        return Tree.build({ buffer: StackBufferCursor.create(stack),
	            nodeSet: this.parser.nodeSet,
	            topID: this.topTerm,
	            maxBufferLength: this.parser.bufferLength,
	            reused: this.reused,
	            start: this.ranges[0].from,
	            length: stack.pos - this.ranges[0].from,
	            minRepeatType: this.parser.minRepeatTerm });
	    }
	    stackID(stack) {
	        let id = (stackIDs || (stackIDs = new WeakMap)).get(stack);
	        if (!id)
	            stackIDs.set(stack, id = String.fromCodePoint(this.nextStackID++));
	        return id + stack;
	    }
	}
	function pushStackDedup(stack, newStacks) {
	    for (let i = 0; i < newStacks.length; i++) {
	        let other = newStacks[i];
	        if (other.pos == stack.pos && other.sameState(stack)) {
	            if (newStacks[i].score < stack.score)
	                newStacks[i] = stack;
	            return;
	        }
	    }
	    newStacks.push(stack);
	}
	class Dialect {
	    constructor(source, flags, disabled) {
	        this.source = source;
	        this.flags = flags;
	        this.disabled = disabled;
	    }
	    allows(term) { return !this.disabled || this.disabled[term] == 0; }
	}
	const id = x => x;
	/**
	Context trackers are used to track stateful context (such as
	indentation in the Python grammar, or parent elements in the XML
	grammar) needed by external tokenizers. You declare them in a
	grammar file as `@context exportName from "module"`.

	Context values should be immutable, and can be updated (replaced)
	on shift or reduce actions.

	The export used in a `@context` declaration should be of this
	type.
	*/
	class ContextTracker {
	    /**
	    Define a context tracker.
	    */
	    constructor(spec) {
	        this.start = spec.start;
	        this.shift = spec.shift || id;
	        this.reduce = spec.reduce || id;
	        this.reuse = spec.reuse || id;
	        this.hash = spec.hash || (() => 0);
	        this.strict = spec.strict !== false;
	    }
	}
	/**
	Holds the parse tables for a given grammar, as generated by
	`lezer-generator`, and provides [methods](#common.Parser) to parse
	content with.
	*/
	class LRParser extends Parser {
	    /**
	    @internal
	    */
	    constructor(spec) {
	        super();
	        /**
	        @internal
	        */
	        this.wrappers = [];
	        if (spec.version != 14 /* File.Version */)
	            throw new RangeError(`Parser version (${spec.version}) doesn't match runtime version (${14 /* File.Version */})`);
	        let nodeNames = spec.nodeNames.split(" ");
	        this.minRepeatTerm = nodeNames.length;
	        for (let i = 0; i < spec.repeatNodeCount; i++)
	            nodeNames.push("");
	        let topTerms = Object.keys(spec.topRules).map(r => spec.topRules[r][1]);
	        let nodeProps = [];
	        for (let i = 0; i < nodeNames.length; i++)
	            nodeProps.push([]);
	        function setProp(nodeID, prop, value) {
	            nodeProps[nodeID].push([prop, prop.deserialize(String(value))]);
	        }
	        if (spec.nodeProps)
	            for (let propSpec of spec.nodeProps) {
	                let prop = propSpec[0];
	                if (typeof prop == "string")
	                    prop = NodeProp[prop];
	                for (let i = 1; i < propSpec.length;) {
	                    let next = propSpec[i++];
	                    if (next >= 0) {
	                        setProp(next, prop, propSpec[i++]);
	                    }
	                    else {
	                        let value = propSpec[i + -next];
	                        for (let j = -next; j > 0; j--)
	                            setProp(propSpec[i++], prop, value);
	                        i++;
	                    }
	                }
	            }
	        this.nodeSet = new NodeSet(nodeNames.map((name, i) => NodeType.define({
	            name: i >= this.minRepeatTerm ? undefined : name,
	            id: i,
	            props: nodeProps[i],
	            top: topTerms.indexOf(i) > -1,
	            error: i == 0,
	            skipped: spec.skippedNodes && spec.skippedNodes.indexOf(i) > -1
	        })));
	        if (spec.propSources)
	            this.nodeSet = this.nodeSet.extend(...spec.propSources);
	        this.strict = false;
	        this.bufferLength = DefaultBufferLength;
	        let tokenArray = decodeArray(spec.tokenData);
	        this.context = spec.context;
	        this.specializerSpecs = spec.specialized || [];
	        this.specialized = new Uint16Array(this.specializerSpecs.length);
	        for (let i = 0; i < this.specializerSpecs.length; i++)
	            this.specialized[i] = this.specializerSpecs[i].term;
	        this.specializers = this.specializerSpecs.map(getSpecializer);
	        this.states = decodeArray(spec.states, Uint32Array);
	        this.data = decodeArray(spec.stateData);
	        this.goto = decodeArray(spec.goto);
	        this.maxTerm = spec.maxTerm;
	        this.tokenizers = spec.tokenizers.map(value => typeof value == "number" ? new TokenGroup(tokenArray, value) : value);
	        this.topRules = spec.topRules;
	        this.dialects = spec.dialects || {};
	        this.dynamicPrecedences = spec.dynamicPrecedences || null;
	        this.tokenPrecTable = spec.tokenPrec;
	        this.termNames = spec.termNames || null;
	        this.maxNode = this.nodeSet.types.length - 1;
	        this.dialect = this.parseDialect();
	        this.top = this.topRules[Object.keys(this.topRules)[0]];
	    }
	    createParse(input, fragments, ranges) {
	        let parse = new Parse(this, input, fragments, ranges);
	        for (let w of this.wrappers)
	            parse = w(parse, input, fragments, ranges);
	        return parse;
	    }
	    /**
	    Get a goto table entry @internal
	    */
	    getGoto(state, term, loose = false) {
	        let table = this.goto;
	        if (term >= table[0])
	            return -1;
	        for (let pos = table[term + 1];;) {
	            let groupTag = table[pos++], last = groupTag & 1;
	            let target = table[pos++];
	            if (last && loose)
	                return target;
	            for (let end = pos + (groupTag >> 1); pos < end; pos++)
	                if (table[pos] == state)
	                    return target;
	            if (last)
	                return -1;
	        }
	    }
	    /**
	    Check if this state has an action for a given terminal @internal
	    */
	    hasAction(state, terminal) {
	        let data = this.data;
	        for (let set = 0; set < 2; set++) {
	            for (let i = this.stateSlot(state, set ? 2 /* ParseState.Skip */ : 1 /* ParseState.Actions */), next;; i += 3) {
	                if ((next = data[i]) == 65535 /* Seq.End */) {
	                    if (data[i + 1] == 1 /* Seq.Next */)
	                        next = data[i = pair(data, i + 2)];
	                    else if (data[i + 1] == 2 /* Seq.Other */)
	                        return pair(data, i + 2);
	                    else
	                        break;
	                }
	                if (next == terminal || next == 0 /* Term.Err */)
	                    return pair(data, i + 1);
	            }
	        }
	        return 0;
	    }
	    /**
	    @internal
	    */
	    stateSlot(state, slot) {
	        return this.states[(state * 6 /* ParseState.Size */) + slot];
	    }
	    /**
	    @internal
	    */
	    stateFlag(state, flag) {
	        return (this.stateSlot(state, 0 /* ParseState.Flags */) & flag) > 0;
	    }
	    /**
	    @internal
	    */
	    validAction(state, action) {
	        return !!this.allActions(state, a => a == action ? true : null);
	    }
	    /**
	    @internal
	    */
	    allActions(state, action) {
	        let deflt = this.stateSlot(state, 4 /* ParseState.DefaultReduce */);
	        let result = deflt ? action(deflt) : undefined;
	        for (let i = this.stateSlot(state, 1 /* ParseState.Actions */); result == null; i += 3) {
	            if (this.data[i] == 65535 /* Seq.End */) {
	                if (this.data[i + 1] == 1 /* Seq.Next */)
	                    i = pair(this.data, i + 2);
	                else
	                    break;
	            }
	            result = action(pair(this.data, i + 1));
	        }
	        return result;
	    }
	    /**
	    Get the states that can follow this one through shift actions or
	    goto jumps. @internal
	    */
	    nextStates(state) {
	        let result = [];
	        for (let i = this.stateSlot(state, 1 /* ParseState.Actions */);; i += 3) {
	            if (this.data[i] == 65535 /* Seq.End */) {
	                if (this.data[i + 1] == 1 /* Seq.Next */)
	                    i = pair(this.data, i + 2);
	                else
	                    break;
	            }
	            if ((this.data[i + 2] & (65536 /* Action.ReduceFlag */ >> 16)) == 0) {
	                let value = this.data[i + 1];
	                if (!result.some((v, i) => (i & 1) && v == value))
	                    result.push(this.data[i], value);
	            }
	        }
	        return result;
	    }
	    /**
	    Configure the parser. Returns a new parser instance that has the
	    given settings modified. Settings not provided in `config` are
	    kept from the original parser.
	    */
	    configure(config) {
	        // Hideous reflection-based kludge to make it easy to create a
	        // slightly modified copy of a parser.
	        let copy = Object.assign(Object.create(LRParser.prototype), this);
	        if (config.props)
	            copy.nodeSet = this.nodeSet.extend(...config.props);
	        if (config.top) {
	            let info = this.topRules[config.top];
	            if (!info)
	                throw new RangeError(`Invalid top rule name ${config.top}`);
	            copy.top = info;
	        }
	        if (config.tokenizers)
	            copy.tokenizers = this.tokenizers.map(t => {
	                let found = config.tokenizers.find(r => r.from == t);
	                return found ? found.to : t;
	            });
	        if (config.specializers) {
	            copy.specializers = this.specializers.slice();
	            copy.specializerSpecs = this.specializerSpecs.map((s, i) => {
	                let found = config.specializers.find(r => r.from == s.external);
	                if (!found)
	                    return s;
	                let spec = Object.assign(Object.assign({}, s), { external: found.to });
	                copy.specializers[i] = getSpecializer(spec);
	                return spec;
	            });
	        }
	        if (config.contextTracker)
	            copy.context = config.contextTracker;
	        if (config.dialect)
	            copy.dialect = this.parseDialect(config.dialect);
	        if (config.strict != null)
	            copy.strict = config.strict;
	        if (config.wrap)
	            copy.wrappers = copy.wrappers.concat(config.wrap);
	        if (config.bufferLength != null)
	            copy.bufferLength = config.bufferLength;
	        return copy;
	    }
	    /**
	    Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)
	    are registered for this parser.
	    */
	    hasWrappers() {
	        return this.wrappers.length > 0;
	    }
	    /**
	    Returns the name associated with a given term. This will only
	    work for all terms when the parser was generated with the
	    `--names` option. By default, only the names of tagged terms are
	    stored.
	    */
	    getName(term) {
	        return this.termNames ? this.termNames[term] : String(term <= this.maxNode && this.nodeSet.types[term].name || term);
	    }
	    /**
	    The eof term id is always allocated directly after the node
	    types. @internal
	    */
	    get eofTerm() { return this.maxNode + 1; }
	    /**
	    The type of top node produced by the parser.
	    */
	    get topNode() { return this.nodeSet.types[this.top[1]]; }
	    /**
	    @internal
	    */
	    dynamicPrecedence(term) {
	        let prec = this.dynamicPrecedences;
	        return prec == null ? 0 : prec[term] || 0;
	    }
	    /**
	    @internal
	    */
	    parseDialect(dialect) {
	        let values = Object.keys(this.dialects), flags = values.map(() => false);
	        if (dialect)
	            for (let part of dialect.split(" ")) {
	                let id = values.indexOf(part);
	                if (id >= 0)
	                    flags[id] = true;
	            }
	        let disabled = null;
	        for (let i = 0; i < values.length; i++)
	            if (!flags[i]) {
	                for (let j = this.dialects[values[i]], id; (id = this.data[j++]) != 65535 /* Seq.End */;)
	                    (disabled || (disabled = new Uint8Array(this.maxTerm + 1)))[id] = 1;
	            }
	        return new Dialect(dialect, flags, disabled);
	    }
	    /**
	    Used by the output of the parser generator. Not available to
	    user code. @hide
	    */
	    static deserialize(spec) {
	        return new LRParser(spec);
	    }
	}
	function pair(data, off) { return data[off] | (data[off + 1] << 16); }
	function findFinished(stacks) {
	    let best = null;
	    for (let stack of stacks) {
	        let stopped = stack.p.stoppedAt;
	        if ((stack.pos == stack.p.stream.end || stopped != null && stack.pos > stopped) &&
	            stack.p.parser.stateFlag(stack.state, 2 /* StateFlag.Accepting */) &&
	            (!best || best.score < stack.score))
	            best = stack;
	    }
	    return best;
	}
	function getSpecializer(spec) {
	    if (spec.external) {
	        let mask = spec.extend ? 1 /* Specialize.Extend */ : 0 /* Specialize.Specialize */;
	        return (value, stack) => (spec.external(value, stack) << 1) | mask;
	    }
	    return spec.get;
	}

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const scriptText = 54,
	  StartCloseScriptTag = 1,
	  styleText = 55,
	  StartCloseStyleTag = 2,
	  textareaText = 56,
	  StartCloseTextareaTag = 3,
	  EndTag = 4,
	  SelfClosingEndTag = 5,
	  StartTag$1 = 6,
	  StartScriptTag = 7,
	  StartStyleTag = 8,
	  StartTextareaTag = 9,
	  StartSelfClosingTag = 10,
	  StartCloseTag$1 = 11,
	  NoMatchStartCloseTag = 12,
	  MismatchedStartCloseTag = 13,
	  missingCloseTag = 57,
	  IncompleteCloseTag = 14,
	  commentContent$1$1 = 58,
	  Element$2 = 20,
	  TagName = 22,
	  Attribute = 23,
	  AttributeName = 24,
	  AttributeValue = 26,
	  UnquotedAttributeValue = 27,
	  ScriptText = 28,
	  StyleText = 31,
	  TextareaText = 34,
	  OpenTag$1 = 36,
	  CloseTag = 37,
	  Dialect_noMatch = 0,
	  Dialect_selfClosing = 1;

	/* Hand-written tokenizers for HTML. */

	const selfClosers$1 = {
	  area: true, base: true, br: true, col: true, command: true,
	  embed: true, frame: true, hr: true, img: true, input: true,
	  keygen: true, link: true, meta: true, param: true, source: true,
	  track: true, wbr: true, menuitem: true
	};

	const implicitlyClosed = {
	  dd: true, li: true, optgroup: true, option: true, p: true,
	  rp: true, rt: true, tbody: true, td: true, tfoot: true,
	  th: true, tr: true
	};

	const closeOnOpen = {
	  dd: {dd: true, dt: true},
	  dt: {dd: true, dt: true},
	  li: {li: true},
	  option: {option: true, optgroup: true},
	  optgroup: {optgroup: true},
	  p: {
	    address: true, article: true, aside: true, blockquote: true, dir: true,
	    div: true, dl: true, fieldset: true, footer: true, form: true,
	    h1: true, h2: true, h3: true, h4: true, h5: true, h6: true,
	    header: true, hgroup: true, hr: true, menu: true, nav: true, ol: true,
	    p: true, pre: true, section: true, table: true, ul: true
	  },
	  rp: {rp: true, rt: true},
	  rt: {rp: true, rt: true},
	  tbody: {tbody: true, tfoot: true},
	  td: {td: true, th: true},
	  tfoot: {tbody: true},
	  th: {td: true, th: true},
	  thead: {tbody: true, tfoot: true},
	  tr: {tr: true}
	};

	function nameChar$1(ch) {
	  return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161
	}

	function isSpace$3(ch) {
	  return ch == 9 || ch == 10 || ch == 13 || ch == 32
	}

	let cachedName$1 = null, cachedInput$1 = null, cachedPos$1 = 0;
	function tagNameAfter$1(input, offset) {
	  let pos = input.pos + offset;
	  if (cachedPos$1 == pos && cachedInput$1 == input) return cachedName$1
	  let next = input.peek(offset);
	  while (isSpace$3(next)) next = input.peek(++offset);
	  let name = "";
	  for (;;) {
	    if (!nameChar$1(next)) break
	    name += String.fromCharCode(next);
	    next = input.peek(++offset);
	  }
	  // Undefined to signal there's a <? or <!, null for just missing
	  cachedInput$1 = input; cachedPos$1 = pos;
	  return cachedName$1 = name ? name.toLowerCase() : next == question || next == bang ? undefined : null
	}

	const lessThan = 60, greaterThan = 62, slash$2 = 47, question = 63, bang = 33, dash$2 = 45;

	function ElementContext$1(name, parent) {
	  this.name = name;
	  this.parent = parent;
	  this.hash = parent ? parent.hash : 0;
	  for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);
	}

	const startTagTerms = [StartTag$1, StartSelfClosingTag, StartScriptTag, StartStyleTag, StartTextareaTag];

	const elementContext$1 = new ContextTracker({
	  start: null,
	  shift(context, term, stack, input) {
	    return startTagTerms.indexOf(term) > -1 ? new ElementContext$1(tagNameAfter$1(input, 1) || "", context) : context
	  },
	  reduce(context, term) {
	    return term == Element$2 && context ? context.parent : context
	  },
	  reuse(context, node, stack, input) {
	    let type = node.type.id;
	    return type == StartTag$1 || type == OpenTag$1
	      ? new ElementContext$1(tagNameAfter$1(input, 1) || "", context) : context
	  },
	  hash(context) { return context ? context.hash : 0 },
	  strict: false
	});

	const tagStart$1 = new ExternalTokenizer((input, stack) => {
	  if (input.next != lessThan) {
	    // End of file, close any open tags
	    if (input.next < 0 && stack.context) input.acceptToken(missingCloseTag);
	    return
	  }
	  input.advance();
	  let close = input.next == slash$2;
	  if (close) input.advance();
	  let name = tagNameAfter$1(input, 0);
	  if (name === undefined) return
	  if (!name) return input.acceptToken(close ? IncompleteCloseTag : StartTag$1)

	  let parent = stack.context ? stack.context.name : null;
	  if (close) {
	    if (name == parent) return input.acceptToken(StartCloseTag$1)
	    if (parent && implicitlyClosed[parent]) return input.acceptToken(missingCloseTag, -2)
	    if (stack.dialectEnabled(Dialect_noMatch)) return input.acceptToken(NoMatchStartCloseTag)
	    for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return
	    input.acceptToken(MismatchedStartCloseTag);
	  } else {
	    if (name == "script") return input.acceptToken(StartScriptTag)
	    if (name == "style") return input.acceptToken(StartStyleTag)
	    if (name == "textarea") return input.acceptToken(StartTextareaTag)
	    if (selfClosers$1.hasOwnProperty(name)) return input.acceptToken(StartSelfClosingTag)
	    if (parent && closeOnOpen[parent] && closeOnOpen[parent][name]) input.acceptToken(missingCloseTag, -1);
	    else input.acceptToken(StartTag$1);
	  }
	}, {contextual: true});

	const commentContent$2 = new ExternalTokenizer(input => {
	  for (let dashes = 0, i = 0;; i++) {
	    if (input.next < 0) {
	      if (i) input.acceptToken(commentContent$1$1);
	      break
	    }
	    if (input.next == dash$2) {
	      dashes++;
	    } else if (input.next == greaterThan && dashes >= 2) {
	      if (i >= 3) input.acceptToken(commentContent$1$1, -2);
	      break
	    } else {
	      dashes = 0;
	    }
	    input.advance();
	  }
	});

	function inForeignElement(context) {
	  for (; context; context = context.parent)
	    if (context.name == "svg" || context.name == "math") return true
	  return false
	}

	const endTag = new ExternalTokenizer((input, stack) => {
	  if (input.next == slash$2 && input.peek(1) == greaterThan) {
	    let selfClosing = stack.dialectEnabled(Dialect_selfClosing) || inForeignElement(stack.context);
	    input.acceptToken(selfClosing ? SelfClosingEndTag : EndTag, 2);
	  } else if (input.next == greaterThan) {
	    input.acceptToken(EndTag, 1);
	  }
	});

	function contentTokenizer(tag, textToken, endToken) {
	  let lastState = 2 + tag.length;
	  return new ExternalTokenizer(input => {
	    // state means:
	    // - 0 nothing matched
	    // - 1 '<' matched
	    // - 2 '</' + possibly whitespace matched
	    // - 3-(1+tag.length) part of the tag matched
	    // - lastState whole tag + possibly whitespace matched
	    for (let state = 0, matchedLen = 0, i = 0;; i++) {
	      if (input.next < 0) {
	        if (i) input.acceptToken(textToken);
	        break
	      }
	      if (state == 0 && input.next == lessThan ||
	          state == 1 && input.next == slash$2 ||
	          state >= 2 && state < lastState && input.next == tag.charCodeAt(state - 2)) {
	        state++;
	        matchedLen++;
	      } else if ((state == 2 || state == lastState) && isSpace$3(input.next)) {
	        matchedLen++;
	      } else if (state == lastState && input.next == greaterThan) {
	        if (i > matchedLen)
	          input.acceptToken(textToken, -matchedLen);
	        else
	          input.acceptToken(endToken, -(matchedLen - 2));
	        break
	      } else if ((input.next == 10 /* '\n' */ || input.next == 13 /* '\r' */) && i) {
	        input.acceptToken(textToken, 1);
	        break
	      } else {
	        state = matchedLen = 0;
	      }
	      input.advance();
	    }
	  })
	}

	const scriptTokens = contentTokenizer("script", scriptText, StartCloseScriptTag);

	const styleTokens = contentTokenizer("style", styleText, StartCloseStyleTag);

	const textareaTokens = contentTokenizer("textarea", textareaText, StartCloseTextareaTag);

	const htmlHighlighting = styleTags({
	  "Text RawText": tags$1.content,
	  "StartTag StartCloseTag SelfClosingEndTag EndTag": tags$1.angleBracket,
	  TagName: tags$1.tagName,
	  "MismatchedCloseTag/TagName": [tags$1.tagName,  tags$1.invalid],
	  AttributeName: tags$1.attributeName,
	  "AttributeValue UnquotedAttributeValue": tags$1.attributeValue,
	  Is: tags$1.definitionOperator,
	  "EntityReference CharacterReference": tags$1.character,
	  Comment: tags$1.blockComment,
	  ProcessingInst: tags$1.processingInstruction,
	  DoctypeDecl: tags$1.documentMeta
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$h = LRParser.deserialize({
	  version: 14,
	  states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7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uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",
	  goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
	  nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
	  maxTerm: 67,
	  context: elementContext$1,
	  nodeProps: [
	    ["closedBy", -10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],
	    ["openedBy", 4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],
	    ["group", -9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],
	    ["isolate", -11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]
	  ],
	  propSources: [htmlHighlighting],
	  skippedNodes: [0],
	  repeatNodeCount: 9,
	  tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_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POr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
	  tokenizers: [scriptTokens, styleTokens, textareaTokens, endTag, tagStart$1, commentContent$2, 0, 1, 2, 3, 4, 5],
	  topRules: {"Document":[0,15]},
	  dialects: {noMatch: 0, selfClosing: 509},
	  tokenPrec: 511
	});

	function getAttrs(openTag, input) {
	  let attrs = Object.create(null);
	  for (let att of openTag.getChildren(Attribute)) {
	    let name = att.getChild(AttributeName), value = att.getChild(AttributeValue) || att.getChild(UnquotedAttributeValue);
	    if (name) attrs[input.read(name.from, name.to)] =
	      !value ? "" : value.type.id == AttributeValue ? input.read(value.from + 1, value.to - 1) : input.read(value.from, value.to);
	  }
	  return attrs
	}

	function findTagName(openTag, input) {
	  let tagNameNode = openTag.getChild(TagName);
	  return tagNameNode ? input.read(tagNameNode.from, tagNameNode.to) : " "
	}

	function maybeNest(node, input, tags) {
	  let attrs;
	  for (let tag of tags) {
	    if (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(node.node.parent.firstChild, input))))
	      return {parser: tag.parser}
	  }
	  return null
	}

	// tags?: {
	//   tag: string,
	//   attrs?: ({[attr: string]: string}) => boolean,
	//   parser: Parser
	// }[]
	// attributes?: {
	//   name: string,
	//   tagName?: string,
	//   parser: Parser
	// }[]
	 
	function configureNesting(tags = [], attributes = []) {
	  let script = [], style = [], textarea = [], other = [];
	  for (let tag of tags) {
	    let array = tag.tag == "script" ? script : tag.tag == "style" ? style : tag.tag == "textarea" ? textarea : other;
	    array.push(tag);
	  }
	  let attrs = attributes.length ? Object.create(null) : null;
	  for (let attr of attributes) (attrs[attr.name] || (attrs[attr.name] = [])).push(attr);

	  return parseMixed((node, input) => {
	    let id = node.type.id;
	    if (id == ScriptText) return maybeNest(node, input, script)
	    if (id == StyleText) return maybeNest(node, input, style)
	    if (id == TextareaText) return maybeNest(node, input, textarea)

	    if (id == Element$2 && other.length) {
	      let n = node.node, open = n.firstChild, tagName = open && findTagName(open, input), attrs;
	      if (tagName) for (let tag of other) {
	        if (tag.tag == tagName && (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(n, input))))) {
	          let close = n.lastChild;
	          let to = close.type.id == CloseTag ? close.from : n.to;
	          if (to > open.to)
	            return {parser: tag.parser, overlay: [{from: open.to, to}]}
	        }
	      }
	    }

	    if (attrs && id == Attribute) {
	      let n = node.node, nameNode;
	      if (nameNode = n.firstChild) {
	        let matches = attrs[input.read(nameNode.from, nameNode.to)];
	        if (matches) for (let attr of matches) {
	          if (attr.tagName && attr.tagName != findTagName(n.parent, input)) continue
	          let value = n.lastChild;
	          if (value.type.id == AttributeValue) {
	            let from = value.from + 1;
	            let last = value.lastChild, to = value.to - (last && last.isError ? 0 : 1);
	            if (to > from) return {parser: attr.parser, overlay: [{from, to}]}
	          } else if (value.type.id == UnquotedAttributeValue) {
	            return {parser: attr.parser, overlay: [{from: value.from, to: value.to}]}
	          }
	        }
	      }
	    }
	    return null
	  })
	}

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const descendantOp$2 = 99,
	  Unit$2 = 1,
	  callee$1 = 100,
	  identifier$5 = 101,
	  VariableName$1 = 2;

	/* Hand-written tokenizers for CSS tokens that can't be
	   expressed by Lezer's built-in tokenizer. */

	const space$4 = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197,
	               8198, 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288];
	const colon$1 = 58, parenL$1 = 40, underscore$1 = 95, bracketL$1 = 91, dash$1 = 45, period$1 = 46,
	      hash$2 = 35, percent$1 = 37, ampersand = 38, backslash$1 = 92, newline$4 = 10;

	function isAlpha$3(ch) { return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 161 }

	function isDigit$3(ch) { return ch >= 48 && ch <= 57 }

	const identifiers$a = new ExternalTokenizer((input, stack) => {
	  for (let inside = false, dashes = 0, i = 0;; i++) {
	    let {next} = input;
	    if (isAlpha$3(next) || next == dash$1 || next == underscore$1 || (inside && isDigit$3(next))) {
	      if (!inside && (next != dash$1 || i > 0)) inside = true;
	      if (dashes === i && next == dash$1) dashes++;
	      input.advance();
	    } else if (next == backslash$1 && input.peek(1) != newline$4) {
	      input.advance();
	      if (input.next > -1) input.advance();
	      inside = true;
	    } else {
	      if (inside)
	        input.acceptToken(next == parenL$1 ? callee$1 : dashes == 2 && stack.canShift(VariableName$1) ? VariableName$1 : identifier$5);
	      break
	    }
	  }
	});

	const descendant$2 = new ExternalTokenizer(input => {
	  if (space$4.includes(input.peek(-1))) {
	    let {next} = input;
	    if (isAlpha$3(next) || next == underscore$1 || next == hash$2 || next == period$1 ||
	        next == bracketL$1 || next == colon$1 && isAlpha$3(input.peek(1)) ||
	        next == dash$1 || next == ampersand)
	      input.acceptToken(descendantOp$2);
	  }
	});

	const unitToken$2 = new ExternalTokenizer(input => {
	  if (!space$4.includes(input.peek(-1))) {
	    let {next} = input;
	    if (next == percent$1) { input.advance(); input.acceptToken(Unit$2); }
	    if (isAlpha$3(next)) {
	      do { input.advance(); } while (isAlpha$3(input.next) || isDigit$3(input.next))
	      input.acceptToken(Unit$2);
	    }
	  }
	});

	const cssHighlighting$1 = styleTags({
	  "AtKeyword import charset namespace keyframes media supports": tags$1.definitionKeyword,
	  "from to selector": tags$1.keyword,
	  NamespaceName: tags$1.namespace,
	  KeyframeName: tags$1.labelName,
	  KeyframeRangeName: tags$1.operatorKeyword,
	  TagName: tags$1.tagName,
	  ClassName: tags$1.className,
	  PseudoClassName: tags$1.constant(tags$1.className),
	  IdName: tags$1.labelName,
	  "FeatureName PropertyName": tags$1.propertyName,
	  AttributeName: tags$1.attributeName,
	  NumberLiteral: tags$1.number,
	  KeywordQuery: tags$1.keyword,
	  UnaryQueryOp: tags$1.operatorKeyword,
	  "CallTag ValueName": tags$1.atom,
	  VariableName: tags$1.variableName,
	  Callee: tags$1.operatorKeyword,
	  Unit: tags$1.unit,
	  "UniversalSelector NestingSelector": tags$1.definitionOperator,
	  MatchOp: tags$1.compareOperator,
	  "ChildOp SiblingOp, LogicOp": tags$1.logicOperator,
	  BinOp: tags$1.arithmeticOperator,
	  Important: tags$1.modifier,
	  Comment: tags$1.blockComment,
	  ColorLiteral: tags$1.color,
	  "ParenthesizedContent StringLiteral": tags$1.string,
	  ":": tags$1.punctuation,
	  "PseudoOp #": tags$1.derefOperator,
	  "; ,": tags$1.separator,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_callee$1 = {__proto__:null,lang:32, "nth-child":32, "nth-last-child":32, "nth-of-type":32, "nth-last-of-type":32, dir:32, "host-context":32, url:60, "url-prefix":60, domain:60, regexp:60, selector:138};
	const spec_AtKeyword$2 = {__proto__:null,"@import":118, "@media":142, "@charset":146, "@namespace":150, "@keyframes":156, "@supports":168};
	const spec_identifier$8 = {__proto__:null,not:132, only:132};
	const parser$g = LRParser.deserialize({
	  version: 14,
	  states: ":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP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!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",
	  nodeNames: "⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",
	  maxTerm: 117,
	  nodeProps: [
	    ["isolate", -2,3,24,""],
	    ["openedBy", 17,"(",32,"[",50,"{"],
	    ["closedBy", 18,")",33,"]",51,"}"]
	  ],
	  propSources: [cssHighlighting$1],
	  skippedNodes: [0,3,87],
	  repeatNodeCount: 11,
	  tokenData: "J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7ox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O%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",
	  tokenizers: [descendant$2, unitToken$2, identifiers$a, 1, 2, 3, 4, new LocalTokenGroup("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~", 28, 105)],
	  topRules: {"StyleSheet":[0,4],"Styles":[1,86]},
	  specialized: [{term: 100, get: (value) => spec_callee$1[value] || -1},{term: 58, get: (value) => spec_AtKeyword$2[value] || -1},{term: 101, get: (value) => spec_identifier$8[value] || -1}],
	  tokenPrec: 1200
	});

	let _properties = null;
	function properties$2() {
	    if (!_properties && typeof document == "object" && document.body) {
	        let { style } = document.body, names = [], seen = new Set;
	        for (let prop in style)
	            if (prop != "cssText" && prop != "cssFloat") {
	                if (typeof style[prop] == "string") {
	                    if (/[A-Z]/.test(prop))
	                        prop = prop.replace(/[A-Z]/g, ch => "-" + ch.toLowerCase());
	                    if (!seen.has(prop)) {
	                        names.push(prop);
	                        seen.add(prop);
	                    }
	                }
	            }
	        _properties = names.sort().map(name => ({ type: "property", label: name }));
	    }
	    return _properties || [];
	}
	const pseudoClasses = /*@__PURE__*/[
	    "active", "after", "any-link", "autofill", "backdrop", "before",
	    "checked", "cue", "default", "defined", "disabled", "empty",
	    "enabled", "file-selector-button", "first", "first-child",
	    "first-letter", "first-line", "first-of-type", "focus",
	    "focus-visible", "focus-within", "fullscreen", "has", "host",
	    "host-context", "hover", "in-range", "indeterminate", "invalid",
	    "is", "lang", "last-child", "last-of-type", "left", "link", "marker",
	    "modal", "not", "nth-child", "nth-last-child", "nth-last-of-type",
	    "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range",
	    "part", "placeholder", "placeholder-shown", "read-only", "read-write",
	    "required", "right", "root", "scope", "selection", "slotted", "target",
	    "target-text", "valid", "visited", "where"
	].map(name => ({ type: "class", label: name }));
	const values = /*@__PURE__*/[
	    "above", "absolute", "activeborder", "additive", "activecaption", "after-white-space",
	    "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always",
	    "antialiased", "appworkspace", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column",
	    "avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below",
	    "bidi-override", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
	    "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
	    "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "capitalize",
	    "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle",
	    "cjk-decimal", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn",
	    "color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content",
	    "contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover",
	    "crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
	    "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in",
	    "destination-out", "destination-over", "difference", "disc", "discard", "disclosure-closed",
	    "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize",
	    "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end",
	    "ethiopic-abegede-gez", "ethiopic-halehame-aa-er", "ethiopic-halehame-gez", "ew-resize", "exclusion",
	    "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box",
	    "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from",
	    "geometricPrecision", "graytext", "grid", "groove", "hand", "hard-light", "help", "hidden", "hide",
	    "higher", "highlight", "highlighttext", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",
	    "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext",
	    "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid",
	    "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "keep-all",
	    "landscape", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear",
	    "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower",
	    "lower-hexadecimal", "lower-latin", "lower-norwegian", "lowercase", "ltr", "luminosity", "manipulation",
	    "match", "matrix", "matrix3d", "medium", "menu", "menutext", "message-box", "middle", "min-intrinsic",
	    "mix", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "n-resize", "narrower",
	    "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none",
	    "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize",
	    "oblique", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "outset", "outside",
	    "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused",
	    "perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait",
	    "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio",
	    "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat",
	    "repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
	    "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round",
	    "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturation",
	    "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position",
	    "se-resize", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "serif", "show",
	    "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
	    "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps",
	    "small-caption", "smaller", "soft-light", "solid", "source-atop", "source-in", "source-out",
	    "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "start",
	    "static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks",
	    "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell",
	    "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row",
	    "table-row-group", "text", "text-bottom", "text-top", "textarea", "textfield", "thick", "thin",
	    "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "to", "top",
	    "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent",
	    "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-latin",
	    "uppercase", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill",
	    "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe",
	    "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"
	].map(name => ({ type: "keyword", label: name })).concat(/*@__PURE__*/[
	    "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
	    "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
	    "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
	    "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
	    "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
	    "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
	    "darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
	    "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
	    "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
	    "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
	    "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
	    "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
	    "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
	    "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
	    "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
	    "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
	    "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
	    "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
	    "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
	    "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
	    "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
	    "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
	    "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
	    "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
	    "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
	    "whitesmoke", "yellow", "yellowgreen"
	].map(name => ({ type: "constant", label: name })));
	const tags = /*@__PURE__*/[
	    "a", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "blockquote", "body",
	    "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "dd", "del",
	    "details", "dfn", "dialog", "div", "dl", "dt", "em", "figcaption", "figure", "footer",
	    "form", "header", "hgroup", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "html", "i", "iframe",
	    "img", "input", "ins", "kbd", "label", "legend", "li", "main", "meter", "nav", "ol", "output",
	    "p", "pre", "ruby", "section", "select", "small", "source", "span", "strong", "sub", "summary",
	    "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "tr", "u", "ul"
	].map(name => ({ type: "type", label: name }));
	const identifier$4 = /^(\w[\w-]*|-\w[\w-]*|)$/, variable$1 = /^-(-[\w-]*)?$/;
	function isVarArg(node, doc) {
	    var _a;
	    if (node.name == "(" || node.type.isError)
	        node = node.parent || node;
	    if (node.name != "ArgList")
	        return false;
	    let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;
	    if ((callee === null || callee === void 0 ? void 0 : callee.name) != "Callee")
	        return false;
	    return doc.sliceString(callee.from, callee.to) == "var";
	}
	const VariablesByNode = /*@__PURE__*/new NodeWeakMap();
	const declSelector = ["Declaration"];
	function astTop(node) {
	    for (let cur = node;;) {
	        if (cur.type.isTop)
	            return cur;
	        if (!(cur = cur.parent))
	            return node;
	    }
	}
	function variableNames(doc, node, isVariable) {
	    if (node.to - node.from > 4096) {
	        let known = VariablesByNode.get(node);
	        if (known)
	            return known;
	        let result = [], seen = new Set, cursor = node.cursor(IterMode.IncludeAnonymous);
	        if (cursor.firstChild())
	            do {
	                for (let option of variableNames(doc, cursor.node, isVariable))
	                    if (!seen.has(option.label)) {
	                        seen.add(option.label);
	                        result.push(option);
	                    }
	            } while (cursor.nextSibling());
	        VariablesByNode.set(node, result);
	        return result;
	    }
	    else {
	        let result = [], seen = new Set;
	        node.cursor().iterate(node => {
	            var _a;
	            if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == ":") {
	                let name = doc.sliceString(node.from, node.to);
	                if (!seen.has(name)) {
	                    seen.add(name);
	                    result.push({ label: name, type: "variable" });
	                }
	            }
	        });
	        return result;
	    }
	}
	/**
	Create a completion source for a CSS dialect, providing a
	predicate for determining what kind of syntax node can act as a
	completable variable. This is used by language modes like Sass and
	Less to reuse this package's completion logic.
	*/
	const defineCSSCompletionSource = (isVariable) => context => {
	    let { state, pos } = context, node = syntaxTree(state).resolveInner(pos, -1);
	    let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == "-";
	    if (node.name == "PropertyName" ||
	        (isDash || node.name == "TagName") && /^(Block|Styles)$/.test(node.resolve(node.to).name))
	        return { from: node.from, options: properties$2(), validFor: identifier$4 };
	    if (node.name == "ValueName")
	        return { from: node.from, options: values, validFor: identifier$4 };
	    if (node.name == "PseudoClassName")
	        return { from: node.from, options: pseudoClasses, validFor: identifier$4 };
	    if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))
	        return { from: isVariable(node) || isDash ? node.from : pos,
	            options: variableNames(state.doc, astTop(node), isVariable),
	            validFor: variable$1 };
	    if (node.name == "TagName") {
	        for (let { parent } = node; parent; parent = parent.parent)
	            if (parent.name == "Block")
	                return { from: node.from, options: properties$2(), validFor: identifier$4 };
	        return { from: node.from, options: tags, validFor: identifier$4 };
	    }
	    if (!context.explicit)
	        return null;
	    let above = node.resolve(pos), before = above.childBefore(pos);
	    if (before && before.name == ":" && above.name == "PseudoClassSelector")
	        return { from: pos, options: pseudoClasses, validFor: identifier$4 };
	    if (before && before.name == ":" && above.name == "Declaration" || above.name == "ArgList")
	        return { from: pos, options: values, validFor: identifier$4 };
	    if (above.name == "Block" || above.name == "Styles")
	        return { from: pos, options: properties$2(), validFor: identifier$4 };
	    return null;
	};
	/**
	CSS property, variable, and value keyword completion source.
	*/
	const cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == "VariableName");

	/**
	A language provider based on the [Lezer CSS
	parser](https://github.com/lezer-parser/css), extended with
	highlighting and indentation information.
	*/
	const cssLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "css",
	    parser: /*@__PURE__*/parser$g.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Declaration: /*@__PURE__*/continuedIndent()
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "Block KeyframeList": foldInside
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "/*", close: "*/" } },
	        indentOnInput: /^\s*\}$/,
	        wordChars: "-"
	    }
	});
	/**
	Language support for CSS.
	*/
	function css$2() {
	    return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
	}

	var index$i = /*#__PURE__*/Object.freeze({
		__proto__: null,
		css: css$2,
		cssCompletionSource: cssCompletionSource,
		cssLanguage: cssLanguage,
		defineCSSCompletionSource: defineCSSCompletionSource
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const noSemi = 309,
	  incdec = 1,
	  incdecPrefix = 2,
	  JSXStartTag = 3,
	  insertSemi = 310,
	  spaces$1 = 312,
	  newline$3 = 313,
	  LineComment$2 = 4,
	  BlockComment$1 = 5,
	  Dialect_jsx = 0;

	/* Hand-written tokenizers for JavaScript tokens that can't be
	   expressed by lezer's built-in tokenizer. */

	const space$3 = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200,
	               8201, 8202, 8232, 8233, 8239, 8287, 12288];

	const braceR$1 = 125, semicolon$1 = 59, slash$1 = 47, star = 42, plus$1 = 43, minus = 45, lt = 60, comma = 44;

	const trackNewline = new ContextTracker({
	  start: false,
	  shift(context, term) {
	    return term == LineComment$2 || term == BlockComment$1 || term == spaces$1 ? context : term == newline$3
	  },
	  strict: false
	});

	const insertSemicolon = new ExternalTokenizer((input, stack) => {
	  let {next} = input;
	  if (next == braceR$1 || next == -1 || stack.context)
	    input.acceptToken(insertSemi);
	}, {contextual: true, fallback: true});

	const noSemicolon = new ExternalTokenizer((input, stack) => {
	  let {next} = input, after;
	  if (space$3.indexOf(next) > -1) return
	  if (next == slash$1 && ((after = input.peek(1)) == slash$1 || after == star)) return
	  if (next != braceR$1 && next != semicolon$1 && next != -1 && !stack.context)
	    input.acceptToken(noSemi);
	}, {contextual: true});

	const incdecToken = new ExternalTokenizer((input, stack) => {
	  let {next} = input;
	  if (next == plus$1 || next == minus) {
	    input.advance();
	    if (next == input.next) {
	      input.advance();
	      let mayPostfix = !stack.context && stack.canShift(incdec);
	      input.acceptToken(mayPostfix ? incdec : incdecPrefix);
	    }
	  }
	}, {contextual: true});

	function identifierChar(ch, start) {
	  return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch == 95 || ch >= 192 ||
	    !start && ch >= 48 && ch <= 57
	}

	const jsx = new ExternalTokenizer((input, stack) => {
	  if (input.next != lt || !stack.dialectEnabled(Dialect_jsx)) return
	  input.advance();
	  if (input.next == slash$1) return
	  // Scan for an identifier followed by a comma or 'extends', don't
	  // treat this as a start tag if present.
	  let back = 0;
	  while (space$3.indexOf(input.next) > -1) { input.advance(); back++; }
	  if (identifierChar(input.next, true)) {
	    input.advance();
	    back++;
	    while (identifierChar(input.next, false)) { input.advance(); back++; }
	    while (space$3.indexOf(input.next) > -1) { input.advance(); back++; }
	    if (input.next == comma) return
	    for (let i = 0;; i++) {
	      if (i == 7) {
	        if (!identifierChar(input.next, true)) return
	        break
	      }
	      if (input.next != "extends".charCodeAt(i)) break
	      input.advance();
	      back++;
	    }
	  }
	  input.acceptToken(JSXStartTag, -back);
	});

	const jsHighlight = styleTags({
	  "get set async static": tags$1.modifier,
	  "for while do if else switch try catch finally return throw break continue default case": tags$1.controlKeyword,
	  "in of await yield void typeof delete instanceof": tags$1.operatorKeyword,
	  "let var const using function class extends": tags$1.definitionKeyword,
	  "import export from": tags$1.moduleKeyword,
	  "with debugger as new": tags$1.keyword,
	  TemplateString: tags$1.special(tags$1.string),
	  super: tags$1.atom,
	  BooleanLiteral: tags$1.bool,
	  this: tags$1.self,
	  null: tags$1.null,
	  Star: tags$1.modifier,
	  VariableName: tags$1.variableName,
	  "CallExpression/VariableName TaggedTemplateExpression/VariableName": tags$1.function(tags$1.variableName),
	  VariableDefinition: tags$1.definition(tags$1.variableName),
	  Label: tags$1.labelName,
	  PropertyName: tags$1.propertyName,
	  PrivatePropertyName: tags$1.special(tags$1.propertyName),
	  "CallExpression/MemberExpression/PropertyName": tags$1.function(tags$1.propertyName),
	  "FunctionDeclaration/VariableDefinition": tags$1.function(tags$1.definition(tags$1.variableName)),
	  "ClassDeclaration/VariableDefinition": tags$1.definition(tags$1.className),
	  PropertyDefinition: tags$1.definition(tags$1.propertyName),
	  PrivatePropertyDefinition: tags$1.definition(tags$1.special(tags$1.propertyName)),
	  UpdateOp: tags$1.updateOperator,
	  "LineComment Hashbang": tags$1.lineComment,
	  BlockComment: tags$1.blockComment,
	  Number: tags$1.number,
	  String: tags$1.string,
	  Escape: tags$1.escape,
	  ArithOp: tags$1.arithmeticOperator,
	  LogicOp: tags$1.logicOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  RegExp: tags$1.regexp,
	  Equals: tags$1.definitionOperator,
	  Arrow: tags$1.function(tags$1.punctuation),
	  ": Spread": tags$1.punctuation,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace,
	  "InterpolationStart InterpolationEnd": tags$1.special(tags$1.brace),
	  ".": tags$1.derefOperator,
	  ", ;": tags$1.separator,
	  "@": tags$1.meta,

	  TypeName: tags$1.typeName,
	  TypeDefinition: tags$1.definition(tags$1.typeName),
	  "type enum interface implements namespace module declare": tags$1.definitionKeyword,
	  "abstract global Privacy readonly override": tags$1.modifier,
	  "is keyof unique infer": tags$1.operatorKeyword,

	  JSXAttributeValue: tags$1.attributeValue,
	  JSXText: tags$1.content,
	  "JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": tags$1.angleBracket,
	  "JSXIdentifier JSXNameSpacedName": tags$1.tagName,
	  "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": tags$1.attributeName,
	  "JSXBuiltin/JSXIdentifier": tags$1.standard(tags$1.tagName)
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$7 = {__proto__:null,export:18, as:23, from:31, default:34, async:39, function:40, extends:52, this:56, true:64, false:64, null:76, void:80, typeof:84, super:102, new:136, delete:152, yield:161, await:165, class:170, public:227, private:227, protected:227, readonly:229, instanceof:248, satisfies:251, in:252, const:254, import:286, keyof:339, unique:343, infer:349, is:385, abstract:405, implements:407, type:409, let:412, var:414, using:417, interface:423, enum:427, namespace:433, module:435, declare:439, global:443, for:462, of:471, while:474, with:478, do:482, if:486, else:488, switch:492, case:498, try:504, catch:508, finally:512, return:516, throw:520, break:524, continue:528, debugger:532};
	const spec_word = {__proto__:null,async:123, get:125, set:127, declare:187, public:189, private:189, protected:189, static:191, abstract:193, override:195, readonly:201, accessor:203, new:389};
	const spec_LessThan = {__proto__:null,"<":143};
	const parser$f = LRParser.deserialize({
	  version: 14,
	  states: "$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O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.r:cQ.t:fQ.u:gQ.v:jQ/V)yQ0_+OQ2W,yQ2Z,|Q2k-fQ2r-zQ3Y.lQ3_:kQ3`:lQ3a:mQ3b:nQ3c:oQ3d:pQ3e:qQ3f:rQ3g:sQ3h:tQ3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",
	  nodeNames: "⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",
	  maxTerm: 371,
	  context: trackNewline,
	  nodeProps: [
	    ["isolate", -8,4,5,13,33,35,48,50,52,""],
	    ["group", -26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],
	    ["openedBy", 22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],
	    ["closedBy", 23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]
	  ],
	  propSources: [jsHighlight],
	  skippedNodes: [0,4,5,271],
	  repeatNodeCount: 37,
	  tokenData: "$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Z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 10, 11, 12, 13, insertSemicolon, new LocalTokenGroup("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~", 141, 332), new LocalTokenGroup("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~", 25, 315)],
	  topRules: {"Script":[0,6],"SingleExpression":[1,269],"SingleClassItem":[2,270]},
	  dialects: {jsx: 0, ts: 14614},
	  dynamicPrecedences: {"69":1,"79":1,"81":1,"165":1,"193":1},
	  specialized: [{term: 319, get: (value) => spec_identifier$7[value] || -1},{term: 334, get: (value) => spec_word[value] || -1},{term: 70, get: (value) => spec_LessThan[value] || -1}],
	  tokenPrec: 14638
	});

	/**
	A collection of JavaScript-related
	[snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
	*/
	const snippets$1 = [
	    /*@__PURE__*/snippetCompletion("function ${name}(${params}) {\n\t${}\n}", {
	        label: "function",
	        detail: "definition",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}", {
	        label: "for",
	        detail: "loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("for (let ${name} of ${collection}) {\n\t${}\n}", {
	        label: "for",
	        detail: "of loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("do {\n\t${}\n} while (${})", {
	        label: "do",
	        detail: "loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("while (${}) {\n\t${}\n}", {
	        label: "while",
	        detail: "loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("try {\n\t${}\n} catch (${error}) {\n\t${}\n}", {
	        label: "try",
	        detail: "/ catch block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("if (${}) {\n\t${}\n}", {
	        label: "if",
	        detail: "block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("if (${}) {\n\t${}\n} else {\n\t${}\n}", {
	        label: "if",
	        detail: "/ else block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}", {
	        label: "class",
	        detail: "definition",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("import {${names}} from \"${module}\"\n${}", {
	        label: "import",
	        detail: "named",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("import ${name} from \"${module}\"\n${}", {
	        label: "import",
	        detail: "default",
	        type: "keyword"
	    })
	];
	/**
	A collection of snippet completions for TypeScript. Includes the
	JavaScript [snippets](https://codemirror.net/6/docs/ref/#lang-javascript.snippets).
	*/
	const typescriptSnippets = /*@__PURE__*/snippets$1.concat([
	    /*@__PURE__*/snippetCompletion("interface ${name} {\n\t${}\n}", {
	        label: "interface",
	        detail: "definition",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("type ${name} = ${type}", {
	        label: "type",
	        detail: "definition",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("enum ${name} {\n\t${}\n}", {
	        label: "enum",
	        detail: "definition",
	        type: "keyword"
	    })
	]);

	const cache$1 = /*@__PURE__*/new NodeWeakMap();
	const ScopeNodes$1 = /*@__PURE__*/new Set([
	    "Script", "Block",
	    "FunctionExpression", "FunctionDeclaration", "ArrowFunction", "MethodDeclaration",
	    "ForStatement"
	]);
	function defID$1(type) {
	    return (node, def) => {
	        let id = node.node.getChild("VariableDefinition");
	        if (id)
	            def(id, type);
	        return true;
	    };
	}
	const functionContext = ["FunctionDeclaration"];
	const gatherCompletions$1 = {
	    FunctionDeclaration: /*@__PURE__*/defID$1("function"),
	    ClassDeclaration: /*@__PURE__*/defID$1("class"),
	    ClassExpression: () => true,
	    EnumDeclaration: /*@__PURE__*/defID$1("constant"),
	    TypeAliasDeclaration: /*@__PURE__*/defID$1("type"),
	    NamespaceDeclaration: /*@__PURE__*/defID$1("namespace"),
	    VariableDefinition(node, def) { if (!node.matchContext(functionContext))
	        def(node, "variable"); },
	    TypeDefinition(node, def) { def(node, "type"); },
	    __proto__: null
	};
	function getScope$1(doc, node) {
	    let cached = cache$1.get(node);
	    if (cached)
	        return cached;
	    let completions = [], top = true;
	    function def(node, type) {
	        let name = doc.sliceString(node.from, node.to);
	        completions.push({ label: name, type });
	    }
	    node.cursor(IterMode.IncludeAnonymous).iterate(node => {
	        if (top) {
	            top = false;
	        }
	        else if (node.name) {
	            let gather = gatherCompletions$1[node.name];
	            if (gather && gather(node, def) || ScopeNodes$1.has(node.name))
	                return false;
	        }
	        else if (node.to - node.from > 8192) {
	            // Allow caching for bigger internal nodes
	            for (let c of getScope$1(doc, node.node))
	                completions.push(c);
	            return false;
	        }
	    });
	    cache$1.set(node, completions);
	    return completions;
	}
	const Identifier$4 = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;
	const dontComplete$1 = [
	    "TemplateString", "String", "RegExp",
	    "LineComment", "BlockComment",
	    "VariableDefinition", "TypeDefinition", "Label",
	    "PropertyDefinition", "PropertyName",
	    "PrivatePropertyDefinition", "PrivatePropertyName",
	    ".", "?."
	];
	/**
	Completion source that looks up locally defined names in
	JavaScript code.
	*/
	function localCompletionSource$1(context) {
	    let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
	    if (dontComplete$1.indexOf(inner.name) > -1)
	        return null;
	    let isWord = inner.name == "VariableName" ||
	        inner.to - inner.from < 20 && Identifier$4.test(context.state.sliceDoc(inner.from, inner.to));
	    if (!isWord && !context.explicit)
	        return null;
	    let options = [];
	    for (let pos = inner; pos; pos = pos.parent) {
	        if (ScopeNodes$1.has(pos.name))
	            options = options.concat(getScope$1(context.state.doc, pos));
	    }
	    return {
	        options,
	        from: isWord ? inner.from : context.pos,
	        validFor: Identifier$4
	    };
	}
	function pathFor$1(read, member, name) {
	    var _a;
	    let path = [];
	    for (;;) {
	        let obj = member.firstChild, prop;
	        if ((obj === null || obj === void 0 ? void 0 : obj.name) == "VariableName") {
	            path.push(read(obj));
	            return { path: path.reverse(), name };
	        }
	        else if ((obj === null || obj === void 0 ? void 0 : obj.name) == "MemberExpression" && ((_a = (prop = obj.lastChild)) === null || _a === void 0 ? void 0 : _a.name) == "PropertyName") {
	            path.push(read(prop));
	            member = obj;
	        }
	        else {
	            return null;
	        }
	    }
	}
	/**
	Helper function for defining JavaScript completion sources. It
	returns the completable name and object path for a completion
	context, or null if no name/property completion should happen at
	that position. For example, when completing after `a.b.c` it will
	return `{path: ["a", "b"], name: "c"}`. When completing after `x`
	it will return `{path: [], name: "x"}`. When not in a property or
	name, it will return null if `context.explicit` is false, and
	`{path: [], name: ""}` otherwise.
	*/
	function completionPath(context) {
	    let read = (node) => context.state.doc.sliceString(node.from, node.to);
	    let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
	    if (inner.name == "PropertyName") {
	        return pathFor$1(read, inner.parent, read(inner));
	    }
	    else if ((inner.name == "." || inner.name == "?.") && inner.parent.name == "MemberExpression") {
	        return pathFor$1(read, inner.parent, "");
	    }
	    else if (dontComplete$1.indexOf(inner.name) > -1) {
	        return null;
	    }
	    else if (inner.name == "VariableName" || inner.to - inner.from < 20 && Identifier$4.test(read(inner))) {
	        return { path: [], name: read(inner) };
	    }
	    else if (inner.name == "MemberExpression") {
	        return pathFor$1(read, inner, "");
	    }
	    else {
	        return context.explicit ? { path: [], name: "" } : null;
	    }
	}
	function enumeratePropertyCompletions(obj, top) {
	    let options = [], seen = new Set;
	    for (let depth = 0;; depth++) {
	        for (let name of (Object.getOwnPropertyNames || Object.keys)(obj)) {
	            if (!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(name) || seen.has(name))
	                continue;
	            seen.add(name);
	            let value;
	            try {
	                value = obj[name];
	            }
	            catch (_) {
	                continue;
	            }
	            options.push({
	                label: name,
	                type: typeof value == "function" ? (/^[A-Z]/.test(name) ? "class" : top ? "function" : "method")
	                    : top ? "variable" : "property",
	                boost: -depth
	            });
	        }
	        let next = Object.getPrototypeOf(obj);
	        if (!next)
	            return options;
	        obj = next;
	    }
	}
	/**
	Defines a [completion source](https://codemirror.net/6/docs/ref/#autocomplete.CompletionSource) that
	completes from the given scope object (for example `globalThis`).
	Will enter properties of the object when completing properties on
	a directly-named path.
	*/
	function scopeCompletionSource(scope) {
	    let cache = new Map;
	    return (context) => {
	        let path = completionPath(context);
	        if (!path)
	            return null;
	        let target = scope;
	        for (let step of path.path) {
	            target = target[step];
	            if (!target)
	                return null;
	        }
	        let options = cache.get(target);
	        if (!options)
	            cache.set(target, options = enumeratePropertyCompletions(target, !path.path.length));
	        return {
	            from: context.pos - path.name.length,
	            options,
	            validFor: Identifier$4
	        };
	    };
	}

	/**
	A language provider based on the [Lezer JavaScript
	parser](https://github.com/lezer-parser/javascript), extended with
	highlighting and indentation information.
	*/
	const javascriptLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "javascript",
	    parser: /*@__PURE__*/parser$f.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
	                TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
	                LabeledStatement: flatIndent,
	                SwitchBody: context => {
	                    let after = context.textAfter, closed = /^\s*\}/.test(after), isCase = /^\s*(case|default)\b/.test(after);
	                    return context.baseIndent + (closed ? 0 : isCase ? 1 : 2) * context.unit;
	                },
	                Block: /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                ArrowFunction: cx => cx.baseIndent + cx.unit,
	                "TemplateString BlockComment": () => null,
	                "Statement Property": /*@__PURE__*/continuedIndent({ except: /^{/ }),
	                JSXElement(context) {
	                    let closed = /^\s*<\//.test(context.textAfter);
	                    return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);
	                },
	                JSXEscape(context) {
	                    let closed = /\s*\}/.test(context.textAfter);
	                    return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);
	                },
	                "JSXOpenTag JSXSelfClosingTag"(context) {
	                    return context.column(context.node.from) + context.unit;
	                }
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": foldInside,
	                BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	            })
	        ]
	    }),
	    languageData: {
	        closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
	        commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
	        indentOnInput: /^\s*(?:case |default:|\{|\}|<\/)$/,
	        wordChars: "$"
	    }
	});
	const jsxSublanguage = {
	    test: node => /^JSX/.test(node.name),
	    facet: /*@__PURE__*/defineLanguageFacet({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
	};
	/**
	A language provider for TypeScript.
	*/
	const typescriptLanguage = /*@__PURE__*/javascriptLanguage.configure({ dialect: "ts" }, "typescript");
	/**
	Language provider for JSX.
	*/
	const jsxLanguage = /*@__PURE__*/javascriptLanguage.configure({
	    dialect: "jsx",
	    props: [/*@__PURE__*/sublanguageProp.add(n => n.isTop ? [jsxSublanguage] : undefined)]
	});
	/**
	Language provider for JSX + TypeScript.
	*/
	const tsxLanguage = /*@__PURE__*/javascriptLanguage.configure({
	    dialect: "jsx ts",
	    props: [/*@__PURE__*/sublanguageProp.add(n => n.isTop ? [jsxSublanguage] : undefined)]
	}, "typescript");
	let kwCompletion = (name) => ({ label: name, type: "keyword" });
	const keywords$I = /*@__PURE__*/"break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion);
	const typescriptKeywords = /*@__PURE__*/keywords$I.concat(/*@__PURE__*/["declare", "implements", "private", "protected", "public"].map(kwCompletion));
	/**
	JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets)
	and local variable completion.
	*/
	function javascript$2(config = {}) {
	    let lang = config.jsx ? (config.typescript ? tsxLanguage : jsxLanguage)
	        : config.typescript ? typescriptLanguage : javascriptLanguage;
	    let completions = config.typescript ? typescriptSnippets.concat(typescriptKeywords) : snippets$1.concat(keywords$I);
	    return new LanguageSupport(lang, [
	        javascriptLanguage.data.of({
	            autocomplete: ifNotIn(dontComplete$1, completeFromList(completions))
	        }),
	        javascriptLanguage.data.of({
	            autocomplete: localCompletionSource$1
	        }),
	        config.jsx ? autoCloseTags$2 : [],
	    ]);
	}
	function findOpenTag(node) {
	    for (;;) {
	        if (node.name == "JSXOpenTag" || node.name == "JSXSelfClosingTag" || node.name == "JSXFragmentTag")
	            return node;
	        if (node.name == "JSXEscape" || !node.parent)
	            return null;
	        node = node.parent;
	    }
	}
	function elementName$3(doc, tree, max = doc.length) {
	    for (let ch = tree === null || tree === void 0 ? void 0 : tree.firstChild; ch; ch = ch.nextSibling) {
	        if (ch.name == "JSXIdentifier" || ch.name == "JSXBuiltin" || ch.name == "JSXNamespacedName" ||
	            ch.name == "JSXMemberExpression")
	            return doc.sliceString(ch.from, Math.min(ch.to, max));
	    }
	    return "";
	}
	const android = typeof navigator == "object" && /*@__PURE__*//Android\b/.test(navigator.userAgent);
	/**
	Extension that will automatically insert JSX close tags when a `>` or
	`/` is typed.
	*/
	const autoCloseTags$2 = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, defaultInsert) => {
	    if ((android ? view.composing : view.compositionStarted) || view.state.readOnly ||
	        from != to || (text != ">" && text != "/") ||
	        !javascriptLanguage.isActiveAt(view.state, from, -1))
	        return false;
	    let base = defaultInsert(), { state } = base;
	    let closeTags = state.changeByRange(range => {
	        var _a;
	        let { head } = range, around = syntaxTree(state).resolveInner(head - 1, -1), name;
	        if (around.name == "JSXStartTag")
	            around = around.parent;
	        if (state.doc.sliceString(head - 1, head) != text || around.name == "JSXAttributeValue" && around.to > head) ;
	        else if (text == ">" && around.name == "JSXFragmentTag") {
	            return { range, changes: { from: head, insert: `</>` } };
	        }
	        else if (text == "/" && around.name == "JSXStartCloseTag") {
	            let empty = around.parent, base = empty.parent;
	            if (base && empty.from == head - 2 &&
	                ((name = elementName$3(state.doc, base.firstChild, head)) || ((_a = base.firstChild) === null || _a === void 0 ? void 0 : _a.name) == "JSXFragmentTag")) {
	                let insert = `${name}>`;
	                return { range: EditorSelection.cursor(head + insert.length, -1), changes: { from: head, insert } };
	            }
	        }
	        else if (text == ">") {
	            let openTag = findOpenTag(around);
	            if (openTag && openTag.name == "JSXOpenTag" &&
	                !/^\/?>|^<\//.test(state.doc.sliceString(head, head + 2)) &&
	                (name = elementName$3(state.doc, openTag, head)))
	                return { range, changes: { from: head, insert: `</${name}>` } };
	        }
	        return { range };
	    });
	    if (closeTags.changes.empty)
	        return false;
	    view.dispatch([
	        base,
	        state.update(closeTags, { userEvent: "input.complete", scrollIntoView: true })
	    ]);
	    return true;
	});

	/**
	Connects an [ESLint](https://eslint.org/) linter to CodeMirror's
	[lint](https://codemirror.net/6/docs/ref/#lint) integration. `eslint` should be an instance of the
	[`Linter`](https://eslint.org/docs/developer-guide/nodejs-api#linter)
	class, and `config` an optional ESLint configuration. The return
	value of this function can be passed to [`linter`](https://codemirror.net/6/docs/ref/#lint.linter)
	to create a JavaScript linting extension.

	Note that ESLint targets node, and is tricky to run in the
	browser. The
	[eslint-linter-browserify](https://github.com/UziTech/eslint-linter-browserify)
	package may help with that (see
	[example](https://github.com/UziTech/eslint-linter-browserify/blob/master/example/script.js)).
	*/
	function esLint(eslint, config) {
	    if (!config) {
	        config = {
	            parserOptions: { ecmaVersion: 2019, sourceType: "module" },
	            env: { browser: true, node: true, es6: true, es2015: true, es2017: true, es2020: true },
	            rules: {}
	        };
	        eslint.getRules().forEach((desc, name) => {
	            if (desc.meta.docs.recommended)
	                config.rules[name] = 2;
	        });
	    }
	    return (view) => {
	        let { state } = view, found = [];
	        for (let { from, to } of javascriptLanguage.findRegions(state)) {
	            let fromLine = state.doc.lineAt(from), offset = { line: fromLine.number - 1, col: from - fromLine.from, pos: from };
	            for (let d of eslint.verify(state.sliceDoc(from, to), config))
	                found.push(translateDiagnostic(d, state.doc, offset));
	        }
	        return found;
	    };
	}
	function mapPos(line, col, doc, offset) {
	    return doc.line(line + offset.line).from + col + (line == 1 ? offset.col - 1 : -1);
	}
	function translateDiagnostic(input, doc, offset) {
	    let start = mapPos(input.line, input.column, doc, offset);
	    let result = {
	        from: start,
	        to: input.endLine != null && input.endColumn != 1 ? mapPos(input.endLine, input.endColumn, doc, offset) : start,
	        message: input.message,
	        source: input.ruleId ? "eslint:" + input.ruleId : "eslint",
	        severity: input.severity == 1 ? "warning" : "error",
	    };
	    if (input.fix) {
	        let { range, text } = input.fix, from = range[0] + offset.pos - start, to = range[1] + offset.pos - start;
	        result.actions = [{
	                name: "fix",
	                apply(view, start) {
	                    view.dispatch({ changes: { from: start + from, to: start + to, insert: text }, scrollIntoView: true });
	                }
	            }];
	    }
	    return result;
	}

	var index$h = /*#__PURE__*/Object.freeze({
		__proto__: null,
		autoCloseTags: autoCloseTags$2,
		completionPath: completionPath,
		esLint: esLint,
		javascript: javascript$2,
		javascriptLanguage: javascriptLanguage,
		jsxLanguage: jsxLanguage,
		localCompletionSource: localCompletionSource$1,
		scopeCompletionSource: scopeCompletionSource,
		snippets: snippets$1,
		tsxLanguage: tsxLanguage,
		typescriptLanguage: typescriptLanguage,
		typescriptSnippets: typescriptSnippets
	});

	const Targets = ["_blank", "_self", "_top", "_parent"];
	const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
	const Methods = ["get", "post", "put", "delete"];
	const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
	const Bool$1 = ["true", "false"];
	const S = {}; // Empty tag spec
	const Tags$1 = {
	    a: {
	        attrs: {
	            href: null, ping: null, type: null,
	            media: null,
	            target: Targets,
	            hreflang: null
	        }
	    },
	    abbr: S,
	    address: S,
	    area: {
	        attrs: {
	            alt: null, coords: null, href: null, target: null, ping: null,
	            media: null, hreflang: null, type: null,
	            shape: ["default", "rect", "circle", "poly"]
	        }
	    },
	    article: S,
	    aside: S,
	    audio: {
	        attrs: {
	            src: null, mediagroup: null,
	            crossorigin: ["anonymous", "use-credentials"],
	            preload: ["none", "metadata", "auto"],
	            autoplay: ["autoplay"],
	            loop: ["loop"],
	            controls: ["controls"]
	        }
	    },
	    b: S,
	    base: { attrs: { href: null, target: Targets } },
	    bdi: S,
	    bdo: S,
	    blockquote: { attrs: { cite: null } },
	    body: S,
	    br: S,
	    button: {
	        attrs: {
	            form: null, formaction: null, name: null, value: null,
	            autofocus: ["autofocus"],
	            disabled: ["autofocus"],
	            formenctype: Encs,
	            formmethod: Methods,
	            formnovalidate: ["novalidate"],
	            formtarget: Targets,
	            type: ["submit", "reset", "button"]
	        }
	    },
	    canvas: { attrs: { width: null, height: null } },
	    caption: S,
	    center: S,
	    cite: S,
	    code: S,
	    col: { attrs: { span: null } },
	    colgroup: { attrs: { span: null } },
	    command: {
	        attrs: {
	            type: ["command", "checkbox", "radio"],
	            label: null, icon: null, radiogroup: null, command: null, title: null,
	            disabled: ["disabled"],
	            checked: ["checked"]
	        }
	    },
	    data: { attrs: { value: null } },
	    datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
	    datalist: { attrs: { data: null } },
	    dd: S,
	    del: { attrs: { cite: null, datetime: null } },
	    details: { attrs: { open: ["open"] } },
	    dfn: S,
	    div: S,
	    dl: S,
	    dt: S,
	    em: S,
	    embed: { attrs: { src: null, type: null, width: null, height: null } },
	    eventsource: { attrs: { src: null } },
	    fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
	    figcaption: S,
	    figure: S,
	    footer: S,
	    form: {
	        attrs: {
	            action: null, name: null,
	            "accept-charset": Charsets,
	            autocomplete: ["on", "off"],
	            enctype: Encs,
	            method: Methods,
	            novalidate: ["novalidate"],
	            target: Targets
	        }
	    },
	    h1: S, h2: S, h3: S, h4: S, h5: S, h6: S,
	    head: {
	        children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
	    },
	    header: S,
	    hgroup: S,
	    hr: S,
	    html: {
	        attrs: { manifest: null }
	    },
	    i: S,
	    iframe: {
	        attrs: {
	            src: null, srcdoc: null, name: null, width: null, height: null,
	            sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
	            seamless: ["seamless"]
	        }
	    },
	    img: {
	        attrs: {
	            alt: null, src: null, ismap: null, usemap: null, width: null, height: null,
	            crossorigin: ["anonymous", "use-credentials"]
	        }
	    },
	    input: {
	        attrs: {
	            alt: null, dirname: null, form: null, formaction: null,
	            height: null, list: null, max: null, maxlength: null, min: null,
	            name: null, pattern: null, placeholder: null, size: null, src: null,
	            step: null, value: null, width: null,
	            accept: ["audio/*", "video/*", "image/*"],
	            autocomplete: ["on", "off"],
	            autofocus: ["autofocus"],
	            checked: ["checked"],
	            disabled: ["disabled"],
	            formenctype: Encs,
	            formmethod: Methods,
	            formnovalidate: ["novalidate"],
	            formtarget: Targets,
	            multiple: ["multiple"],
	            readonly: ["readonly"],
	            required: ["required"],
	            type: ["hidden", "text", "search", "tel", "url", "email", "password", "datetime", "date", "month",
	                "week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio",
	                "file", "submit", "image", "reset", "button"]
	        }
	    },
	    ins: { attrs: { cite: null, datetime: null } },
	    kbd: S,
	    keygen: {
	        attrs: {
	            challenge: null, form: null, name: null,
	            autofocus: ["autofocus"],
	            disabled: ["disabled"],
	            keytype: ["RSA"]
	        }
	    },
	    label: { attrs: { for: null, form: null } },
	    legend: S,
	    li: { attrs: { value: null } },
	    link: {
	        attrs: {
	            href: null, type: null,
	            hreflang: null,
	            media: null,
	            sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
	        }
	    },
	    map: { attrs: { name: null } },
	    mark: S,
	    menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
	    meta: {
	        attrs: {
	            content: null,
	            charset: Charsets,
	            name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
	            "http-equiv": ["content-language", "content-type", "default-style", "refresh"]
	        }
	    },
	    meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
	    nav: S,
	    noscript: S,
	    object: {
	        attrs: {
	            data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,
	            typemustmatch: ["typemustmatch"]
	        }
	    },
	    ol: { attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
	        children: ["li", "script", "template", "ul", "ol"] },
	    optgroup: { attrs: { disabled: ["disabled"], label: null } },
	    option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
	    output: { attrs: { for: null, form: null, name: null } },
	    p: S,
	    param: { attrs: { name: null, value: null } },
	    pre: S,
	    progress: { attrs: { value: null, max: null } },
	    q: { attrs: { cite: null } },
	    rp: S,
	    rt: S,
	    ruby: S,
	    samp: S,
	    script: {
	        attrs: {
	            type: ["text/javascript"],
	            src: null,
	            async: ["async"],
	            defer: ["defer"],
	            charset: Charsets
	        }
	    },
	    section: S,
	    select: {
	        attrs: {
	            form: null, name: null, size: null,
	            autofocus: ["autofocus"],
	            disabled: ["disabled"],
	            multiple: ["multiple"]
	        }
	    },
	    slot: { attrs: { name: null } },
	    small: S,
	    source: { attrs: { src: null, type: null, media: null } },
	    span: S,
	    strong: S,
	    style: {
	        attrs: {
	            type: ["text/css"],
	            media: null,
	            scoped: null
	        }
	    },
	    sub: S,
	    summary: S,
	    sup: S,
	    table: S,
	    tbody: S,
	    td: { attrs: { colspan: null, rowspan: null, headers: null } },
	    template: S,
	    textarea: {
	        attrs: {
	            dirname: null, form: null, maxlength: null, name: null, placeholder: null,
	            rows: null, cols: null,
	            autofocus: ["autofocus"],
	            disabled: ["disabled"],
	            readonly: ["readonly"],
	            required: ["required"],
	            wrap: ["soft", "hard"]
	        }
	    },
	    tfoot: S,
	    th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
	    thead: S,
	    time: { attrs: { datetime: null } },
	    title: S,
	    tr: S,
	    track: {
	        attrs: {
	            src: null, label: null, default: null,
	            kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
	            srclang: null
	        }
	    },
	    ul: { children: ["li", "script", "template", "ul", "ol"] },
	    var: S,
	    video: {
	        attrs: {
	            src: null, poster: null, width: null, height: null,
	            crossorigin: ["anonymous", "use-credentials"],
	            preload: ["auto", "metadata", "none"],
	            autoplay: ["autoplay"],
	            mediagroup: ["movie"],
	            muted: ["muted"],
	            controls: ["controls"]
	        }
	    },
	    wbr: S
	};
	const GlobalAttrs = {
	    accesskey: null,
	    class: null,
	    contenteditable: Bool$1,
	    contextmenu: null,
	    dir: ["ltr", "rtl", "auto"],
	    draggable: ["true", "false", "auto"],
	    dropzone: ["copy", "move", "link", "string:", "file:"],
	    hidden: ["hidden"],
	    id: null,
	    inert: ["inert"],
	    itemid: null,
	    itemprop: null,
	    itemref: null,
	    itemscope: ["itemscope"],
	    itemtype: null,
	    lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
	    spellcheck: Bool$1,
	    autocorrect: Bool$1,
	    autocapitalize: Bool$1,
	    style: null,
	    tabindex: null,
	    title: null,
	    translate: ["yes", "no"],
	    rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
	    role: /*@__PURE__*/"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
	    "aria-activedescendant": null,
	    "aria-atomic": Bool$1,
	    "aria-autocomplete": ["inline", "list", "both", "none"],
	    "aria-busy": Bool$1,
	    "aria-checked": ["true", "false", "mixed", "undefined"],
	    "aria-controls": null,
	    "aria-describedby": null,
	    "aria-disabled": Bool$1,
	    "aria-dropeffect": null,
	    "aria-expanded": ["true", "false", "undefined"],
	    "aria-flowto": null,
	    "aria-grabbed": ["true", "false", "undefined"],
	    "aria-haspopup": Bool$1,
	    "aria-hidden": Bool$1,
	    "aria-invalid": ["true", "false", "grammar", "spelling"],
	    "aria-label": null,
	    "aria-labelledby": null,
	    "aria-level": null,
	    "aria-live": ["off", "polite", "assertive"],
	    "aria-multiline": Bool$1,
	    "aria-multiselectable": Bool$1,
	    "aria-owns": null,
	    "aria-posinset": null,
	    "aria-pressed": ["true", "false", "mixed", "undefined"],
	    "aria-readonly": Bool$1,
	    "aria-relevant": null,
	    "aria-required": Bool$1,
	    "aria-selected": ["true", "false", "undefined"],
	    "aria-setsize": null,
	    "aria-sort": ["ascending", "descending", "none", "other"],
	    "aria-valuemax": null,
	    "aria-valuemin": null,
	    "aria-valuenow": null,
	    "aria-valuetext": null
	};
	const eventAttributes = /*@__PURE__*/("beforeunload copy cut dragstart dragover dragleave dragenter dragend " +
	    "drag paste focus blur change click load mousedown mouseenter mouseleave " +
	    "mouseup keydown keyup resize scroll unload").split(" ").map(n => "on" + n);
	for (let a of eventAttributes)
	    GlobalAttrs[a] = null;
	class Schema {
	    constructor(extraTags, extraAttrs) {
	        this.tags = Object.assign(Object.assign({}, Tags$1), extraTags);
	        this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);
	        this.allTags = Object.keys(this.tags);
	        this.globalAttrNames = Object.keys(this.globalAttrs);
	    }
	}
	Schema.default = /*@__PURE__*/new Schema;
	function elementName$2(doc, tree, max = doc.length) {
	    if (!tree)
	        return "";
	    let tag = tree.firstChild;
	    let name = tag && tag.getChild("TagName");
	    return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
	}
	function findParentElement$1(tree, skip = false) {
	    for (; tree; tree = tree.parent)
	        if (tree.name == "Element") {
	            if (skip)
	                skip = false;
	            else
	                return tree;
	        }
	    return null;
	}
	function allowedChildren(doc, tree, schema) {
	    let parentInfo = schema.tags[elementName$2(doc, findParentElement$1(tree))];
	    return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;
	}
	function openTags(doc, tree) {
	    let open = [];
	    for (let parent = findParentElement$1(tree); parent && !parent.type.isTop; parent = findParentElement$1(parent.parent)) {
	        let tagName = elementName$2(doc, parent);
	        if (tagName && parent.lastChild.name == "CloseTag")
	            break;
	        if (tagName && open.indexOf(tagName) < 0 && (tree.name == "EndTag" || tree.from >= parent.firstChild.to))
	            open.push(tagName);
	    }
	    return open;
	}
	const identifier$3 = /^[:\-\.\w\u00b7-\uffff]*$/;
	function completeTag(state, schema, tree, from, to) {
	    let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
	    let parent = findParentElement$1(tree, true);
	    return { from, to,
	        options: allowedChildren(state.doc, parent, schema).map(tagName => ({ label: tagName, type: "type" })).concat(openTags(state.doc, tree).map((tag, i) => ({ label: "/" + tag, apply: "/" + tag + end,
	            type: "type", boost: 99 - i }))),
	        validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/ };
	}
	function completeCloseTag(state, tree, from, to) {
	    let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
	    return { from, to,
	        options: openTags(state.doc, tree).map((tag, i) => ({ label: tag, apply: tag + end, type: "type", boost: 99 - i })),
	        validFor: identifier$3 };
	}
	function completeStartTag(state, schema, tree, pos) {
	    let options = [], level = 0;
	    for (let tagName of allowedChildren(state.doc, tree, schema))
	        options.push({ label: "<" + tagName, type: "type" });
	    for (let open of openTags(state.doc, tree))
	        options.push({ label: "</" + open + ">", type: "type", boost: 99 - level++ });
	    return { from: pos, to: pos, options, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
	}
	function completeAttrName(state, schema, tree, from, to) {
	    let elt = findParentElement$1(tree), info = elt ? schema.tags[elementName$2(state.doc, elt)] : null;
	    let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];
	    let names = info && info.globalAttrs === false ? localAttrs
	        : localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;
	    return { from, to,
	        options: names.map(attrName => ({ label: attrName, type: "property" })),
	        validFor: identifier$3 };
	}
	function completeAttrValue(state, schema, tree, from, to) {
	    var _a;
	    let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild("AttributeName");
	    let options = [], token = undefined;
	    if (nameNode) {
	        let attrName = state.sliceDoc(nameNode.from, nameNode.to);
	        let attrs = schema.globalAttrs[attrName];
	        if (!attrs) {
	            let elt = findParentElement$1(tree), info = elt ? schema.tags[elementName$2(state.doc, elt)] : null;
	            attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];
	        }
	        if (attrs) {
	            let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = '"', quoteEnd = '"';
	            if (/^['"]/.test(base)) {
	                token = base[0] == '"' ? /^[^"]*$/ : /^[^']*$/;
	                quoteStart = "";
	                quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? "" : base[0];
	                base = base.slice(1);
	                from++;
	            }
	            else {
	                token = /^[^\s<>='"]*$/;
	            }
	            for (let value of attrs)
	                options.push({ label: value, apply: quoteStart + value + quoteEnd, type: "constant" });
	        }
	    }
	    return { from, to, options, validFor: token };
	}
	function htmlCompletionFor(schema, context) {
	    let { state, pos } = context, tree = syntaxTree(state).resolveInner(pos, -1), around = tree.resolve(pos);
	    for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {
	        let last = before.lastChild;
	        if (!last || !last.type.isError || last.from < last.to)
	            break;
	        around = tree = before;
	        scan = last.from;
	    }
	    if (tree.name == "TagName") {
	        return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos)
	            : completeTag(state, schema, tree, tree.from, pos);
	    }
	    else if (tree.name == "StartTag") {
	        return completeTag(state, schema, tree, pos, pos);
	    }
	    else if (tree.name == "StartCloseTag" || tree.name == "IncompleteCloseTag") {
	        return completeCloseTag(state, tree, pos, pos);
	    }
	    else if (tree.name == "OpenTag" || tree.name == "SelfClosingTag" || tree.name == "AttributeName") {
	        return completeAttrName(state, schema, tree, tree.name == "AttributeName" ? tree.from : pos, pos);
	    }
	    else if (tree.name == "Is" || tree.name == "AttributeValue" || tree.name == "UnquotedAttributeValue") {
	        return completeAttrValue(state, schema, tree, tree.name == "Is" ? pos : tree.from, pos);
	    }
	    else if (context.explicit && (around.name == "Element" || around.name == "Text" || around.name == "Document")) {
	        return completeStartTag(state, schema, tree, pos);
	    }
	    else {
	        return null;
	    }
	}
	/**
	HTML tag completion. Opens and closes tags and attributes in a
	context-aware way.
	*/
	function htmlCompletionSource(context) {
	    return htmlCompletionFor(Schema.default, context);
	}
	/**
	Create a completion source for HTML extended with additional tags
	or attributes.
	*/
	function htmlCompletionSourceWith(config) {
	    let { extraTags, extraGlobalAttributes: extraAttrs } = config;
	    let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
	    return (context) => htmlCompletionFor(schema, context);
	}

	const jsonParser = /*@__PURE__*/javascriptLanguage.parser.configure({ top: "SingleExpression" });
	const defaultNesting = [
	    { tag: "script",
	        attrs: attrs => attrs.type == "text/typescript" || attrs.lang == "ts",
	        parser: typescriptLanguage.parser },
	    { tag: "script",
	        attrs: attrs => attrs.type == "text/babel" || attrs.type == "text/jsx",
	        parser: jsxLanguage.parser },
	    { tag: "script",
	        attrs: attrs => attrs.type == "text/typescript-jsx",
	        parser: tsxLanguage.parser },
	    { tag: "script",
	        attrs(attrs) {
	            return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(attrs.type);
	        },
	        parser: jsonParser },
	    { tag: "script",
	        attrs(attrs) {
	            return !attrs.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);
	        },
	        parser: javascriptLanguage.parser },
	    { tag: "style",
	        attrs(attrs) {
	            return (!attrs.lang || attrs.lang == "css") && (!attrs.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));
	        },
	        parser: cssLanguage.parser }
	];
	const defaultAttrs = /*@__PURE__*/[
	    { name: "style",
	        parser: /*@__PURE__*/cssLanguage.parser.configure({ top: "Styles" }) }
	].concat(/*@__PURE__*/eventAttributes.map(name => ({ name, parser: javascriptLanguage.parser })));
	/**
	A language provider based on the [Lezer HTML
	parser](https://github.com/lezer-parser/html), extended with the
	JavaScript and CSS parsers to parse the content of `<script>` and
	`<style>` tags.
	*/
	const htmlPlain = /*@__PURE__*/LRLanguage.define({
	    name: "html",
	    parser: /*@__PURE__*/parser$h.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Element(context) {
	                    let after = /^(\s*)(<\/)?/.exec(context.textAfter);
	                    if (context.node.to <= context.pos + after[0].length)
	                        return context.continue();
	                    return context.lineIndent(context.node.from) + (after[2] ? 0 : context.unit);
	                },
	                "OpenTag CloseTag SelfClosingTag"(context) {
	                    return context.column(context.node.from) + context.unit;
	                },
	                Document(context) {
	                    if (context.pos + /\s*/.exec(context.textAfter)[0].length < context.node.to)
	                        return context.continue();
	                    let endElt = null, close;
	                    for (let cur = context.node;;) {
	                        let last = cur.lastChild;
	                        if (!last || last.name != "Element" || last.to != cur.to)
	                            break;
	                        endElt = cur = last;
	                    }
	                    if (endElt && !((close = endElt.lastChild) && (close.name == "CloseTag" || close.name == "SelfClosingTag")))
	                        return context.lineIndent(endElt.from) + context.unit;
	                    return null;
	                }
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                Element(node) {
	                    let first = node.firstChild, last = node.lastChild;
	                    if (!first || first.name != "OpenTag")
	                        return null;
	                    return { from: first.to, to: last.name == "CloseTag" ? last.from : node.to };
	                }
	            }),
	            /*@__PURE__*/bracketMatchingHandle.add({
	                "OpenTag CloseTag": node => node.getChild("TagName")
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "<!--", close: "-->" } },
	        indentOnInput: /^\s*<\/\w+\W$/,
	        wordChars: "-._"
	    }
	});
	/**
	A language provider based on the [Lezer HTML
	parser](https://github.com/lezer-parser/html), extended with the
	JavaScript and CSS parsers to parse the content of `<script>` and
	`<style>` tags.
	*/
	const htmlLanguage = /*@__PURE__*/htmlPlain.configure({
	    wrap: /*@__PURE__*/configureNesting(defaultNesting, defaultAttrs)
	});
	/**
	Language support for HTML, including
	[`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
	CSS support extensions.
	*/
	function html(config = {}) {
	    let dialect = "", wrap;
	    if (config.matchClosingTags === false)
	        dialect = "noMatch";
	    if (config.selfClosingTags === true)
	        dialect = (dialect ? dialect + " " : "") + "selfClosing";
	    if (config.nestedLanguages && config.nestedLanguages.length ||
	        config.nestedAttributes && config.nestedAttributes.length)
	        wrap = configureNesting((config.nestedLanguages || []).concat(defaultNesting), (config.nestedAttributes || []).concat(defaultAttrs));
	    let lang = wrap ? htmlPlain.configure({ wrap, dialect }) : dialect ? htmlLanguage.configure({ dialect }) : htmlLanguage;
	    return new LanguageSupport(lang, [
	        htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }),
	        config.autoCloseTags !== false ? autoCloseTags$1 : [],
	        javascript$2().support,
	        css$2().support
	    ]);
	}
	const selfClosers = /*@__PURE__*/new Set(/*@__PURE__*/"area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
	/**
	Extension that will automatically insert close tags when a `>` or
	`/` is typed.
	*/
	const autoCloseTags$1 = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
	    if (view.composing || view.state.readOnly || from != to || (text != ">" && text != "/") ||
	        !htmlLanguage.isActiveAt(view.state, from, -1))
	        return false;
	    let base = insertTransaction(), { state } = base;
	    let closeTags = state.changeByRange(range => {
	        var _a, _b, _c;
	        let didType = state.doc.sliceString(range.from - 1, range.to) == text;
	        let { head } = range, around = syntaxTree(state).resolveInner(head - 1, -1), name;
	        if (around.name == "TagName" || around.name == "StartTag")
	            around = around.parent;
	        if (didType && text == ">" && around.name == "OpenTag") {
	            if (((_b = (_a = around.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" &&
	                (name = elementName$2(state.doc, around.parent, head)) &&
	                !selfClosers.has(name)) {
	                let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
	                let insert = `</${name}>`;
	                return { range, changes: { from: head, to, insert } };
	            }
	        }
	        else if (didType && text == "/" && around.name == "IncompleteCloseTag") {
	            let base = around.parent;
	            if (around.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" &&
	                (name = elementName$2(state.doc, base, head)) && !selfClosers.has(name)) {
	                let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
	                let insert = `${name}>`;
	                return {
	                    range: EditorSelection.cursor(head + insert.length, -1),
	                    changes: { from: head, to, insert }
	                };
	            }
	        }
	        return { range };
	    });
	    if (closeTags.changes.empty)
	        return false;
	    view.dispatch([
	        base,
	        state.update(closeTags, {
	            userEvent: "input.complete",
	            scrollIntoView: true
	        })
	    ]);
	    return true;
	});

	var index$g = /*#__PURE__*/Object.freeze({
		__proto__: null,
		autoCloseTags: autoCloseTags$1,
		html: html,
		htmlCompletionSource: htmlCompletionSource,
		htmlCompletionSourceWith: htmlCompletionSourceWith,
		htmlLanguage: htmlLanguage,
		htmlPlain: htmlPlain
	});

	const data = /*@__PURE__*/defineLanguageFacet({ commentTokens: { block: { open: "<!--", close: "-->" } } });
	const headingProp = /*@__PURE__*/new NodeProp();
	const commonmark = /*@__PURE__*/parser$i.configure({
	    props: [
	        /*@__PURE__*/foldNodeProp.add(type => {
	            return !type.is("Block") || type.is("Document") || isHeading(type) != null ? undefined
	                : (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to });
	        }),
	        /*@__PURE__*/headingProp.add(isHeading),
	        /*@__PURE__*/indentNodeProp.add({
	            Document: () => null
	        }),
	        /*@__PURE__*/languageDataProp.add({
	            Document: data
	        })
	    ]
	});
	function isHeading(type) {
	    let match = /^(?:ATX|Setext)Heading(\d)$/.exec(type.name);
	    return match ? +match[1] : undefined;
	}
	function findSectionEnd(headerNode, level) {
	    let last = headerNode;
	    for (;;) {
	        let next = last.nextSibling, heading;
	        if (!next || (heading = isHeading(next.type)) != null && heading <= level)
	            break;
	        last = next;
	    }
	    return last.to;
	}
	const headerIndent = /*@__PURE__*/foldService.of((state, start, end) => {
	    for (let node = syntaxTree(state).resolveInner(end, -1); node; node = node.parent) {
	        if (node.from < start)
	            break;
	        let heading = node.type.prop(headingProp);
	        if (heading == null)
	            continue;
	        let upto = findSectionEnd(node, heading);
	        if (upto > end)
	            return { from: end, to: upto };
	    }
	    return null;
	});
	function mkLang(parser) {
	    return new Language(data, parser, [headerIndent], "markdown");
	}
	/**
	Language support for strict CommonMark.
	*/
	const commonmarkLanguage = /*@__PURE__*/mkLang(commonmark);
	const extended = /*@__PURE__*/commonmark.configure([GFM, Subscript, Superscript, Emoji, {
	        props: [
	            /*@__PURE__*/foldNodeProp.add({
	                Table: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to })
	            })
	        ]
	    }]);
	/**
	Language support for [GFM](https://github.github.com/gfm/) plus
	subscript, superscript, and emoji syntax.
	*/
	const markdownLanguage = /*@__PURE__*/mkLang(extended);
	function getCodeParser(languages, defaultLanguage) {
	    return (info) => {
	        if (info && languages) {
	            let found = null;
	            // Strip anything after whitespace
	            info = /\S*/.exec(info)[0];
	            if (typeof languages == "function")
	                found = languages(info);
	            else
	                found = LanguageDescription.matchLanguageName(languages, info, true);
	            if (found instanceof LanguageDescription)
	                return found.support ? found.support.language.parser : ParseContext.getSkippingParser(found.load());
	            else if (found)
	                return found.parser;
	        }
	        return defaultLanguage ? defaultLanguage.parser : null;
	    };
	}

	let Context$e = class Context {
	    constructor(node, from, to, spaceBefore, spaceAfter, type, item) {
	        this.node = node;
	        this.from = from;
	        this.to = to;
	        this.spaceBefore = spaceBefore;
	        this.spaceAfter = spaceAfter;
	        this.type = type;
	        this.item = item;
	    }
	    blank(maxWidth, trailing = true) {
	        let result = this.spaceBefore + (this.node.name == "Blockquote" ? ">" : "");
	        if (maxWidth != null) {
	            while (result.length < maxWidth)
	                result += " ";
	            return result;
	        }
	        else {
	            for (let i = this.to - this.from - result.length - this.spaceAfter.length; i > 0; i--)
	                result += " ";
	            return result + (trailing ? this.spaceAfter : "");
	        }
	    }
	    marker(doc, add) {
	        let number = this.node.name == "OrderedList" ? String((+itemNumber(this.item, doc)[2] + add)) : "";
	        return this.spaceBefore + number + this.type + this.spaceAfter;
	    }
	};
	function getContext(node, doc) {
	    let nodes = [];
	    for (let cur = node; cur && cur.name != "Document"; cur = cur.parent) {
	        if (cur.name == "ListItem" || cur.name == "Blockquote" || cur.name == "FencedCode")
	            nodes.push(cur);
	    }
	    let context = [];
	    for (let i = nodes.length - 1; i >= 0; i--) {
	        let node = nodes[i], match;
	        let line = doc.lineAt(node.from), startPos = node.from - line.from;
	        if (node.name == "FencedCode") {
	            context.push(new Context$e(node, startPos, startPos, "", "", "", null));
	        }
	        else if (node.name == "Blockquote" && (match = /^ *>( ?)/.exec(line.text.slice(startPos)))) {
	            context.push(new Context$e(node, startPos, startPos + match[0].length, "", match[1], ">", null));
	        }
	        else if (node.name == "ListItem" && node.parent.name == "OrderedList" &&
	            (match = /^( *)\d+([.)])( *)/.exec(line.text.slice(startPos)))) {
	            let after = match[3], len = match[0].length;
	            if (after.length >= 4) {
	                after = after.slice(0, after.length - 4);
	                len -= 4;
	            }
	            context.push(new Context$e(node.parent, startPos, startPos + len, match[1], after, match[2], node));
	        }
	        else if (node.name == "ListItem" && node.parent.name == "BulletList" &&
	            (match = /^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(line.text.slice(startPos)))) {
	            let after = match[4], len = match[0].length;
	            if (after.length > 4) {
	                after = after.slice(0, after.length - 4);
	                len -= 4;
	            }
	            let type = match[2];
	            if (match[3])
	                type += match[3].replace(/[xX]/, ' ');
	            context.push(new Context$e(node.parent, startPos, startPos + len, match[1], after, type, node));
	        }
	    }
	    return context;
	}
	function itemNumber(item, doc) {
	    return /^(\s*)(\d+)(?=[.)])/.exec(doc.sliceString(item.from, item.from + 10));
	}
	function renumberList(after, doc, changes, offset = 0) {
	    for (let prev = -1, node = after;;) {
	        if (node.name == "ListItem") {
	            let m = itemNumber(node, doc);
	            let number = +m[2];
	            if (prev >= 0) {
	                if (number != prev + 1)
	                    return;
	                changes.push({ from: node.from + m[1].length, to: node.from + m[0].length, insert: String(prev + 2 + offset) });
	            }
	            prev = number;
	        }
	        let next = node.nextSibling;
	        if (!next)
	            break;
	        node = next;
	    }
	}
	function normalizeIndent(content, state) {
	    let blank = /^[ \t]*/.exec(content)[0].length;
	    if (!blank || state.facet(indentUnit) != "\t")
	        return content;
	    let col = countColumn(content, 4, blank);
	    let space = "";
	    for (let i = col; i > 0;) {
	        if (i >= 4) {
	            space += "\t";
	            i -= 4;
	        }
	        else {
	            space += " ";
	            i--;
	        }
	    }
	    return space + content.slice(blank);
	}
	/**
	This command, when invoked in Markdown context with cursor
	selection(s), will create a new line with the markup for
	blockquotes and lists that were active on the old line. If the
	cursor was directly after the end of the markup for the old line,
	trailing whitespace and list markers are removed from that line.

	The command does nothing in non-Markdown context, so it should
	not be used as the only binding for Enter (even in a Markdown
	document, HTML and code regions might use a different language).
	*/
	const insertNewlineContinueMarkup = ({ state, dispatch }) => {
	    let tree = syntaxTree(state), { doc } = state;
	    let dont = null, changes = state.changeByRange(range => {
	        if (!range.empty || !markdownLanguage.isActiveAt(state, range.from))
	            return dont = { range };
	        let pos = range.from, line = doc.lineAt(pos);
	        let context = getContext(tree.resolveInner(pos, -1), doc);
	        while (context.length && context[context.length - 1].from > pos - line.from)
	            context.pop();
	        if (!context.length)
	            return dont = { range };
	        let inner = context[context.length - 1];
	        if (inner.to - inner.spaceAfter.length > pos - line.from)
	            return dont = { range };
	        let emptyLine = pos >= (inner.to - inner.spaceAfter.length) && !/\S/.test(line.text.slice(inner.to));
	        // Empty line in list
	        if (inner.item && emptyLine) {
	            let first = inner.node.firstChild, second = inner.node.getChild("ListItem", "ListItem");
	            // Not second item or blank line before: delete a level of markup
	            if (first.to >= pos || second && second.to < pos ||
	                line.from > 0 && !/[^\s>]/.test(doc.lineAt(line.from - 1).text)) {
	                let next = context.length > 1 ? context[context.length - 2] : null;
	                let delTo, insert = "";
	                if (next && next.item) { // Re-add marker for the list at the next level
	                    delTo = line.from + next.from;
	                    insert = next.marker(doc, 1);
	                }
	                else {
	                    delTo = line.from + (next ? next.to : 0);
	                }
	                let changes = [{ from: delTo, to: pos, insert }];
	                if (inner.node.name == "OrderedList")
	                    renumberList(inner.item, doc, changes, -2);
	                if (next && next.node.name == "OrderedList")
	                    renumberList(next.item, doc, changes);
	                return { range: EditorSelection.cursor(delTo + insert.length), changes };
	            }
	            else { // Move second item down, making tight two-item list non-tight
	                let insert = blankLine$1(context, state, line);
	                return { range: EditorSelection.cursor(pos + insert.length + 1),
	                    changes: { from: line.from, insert: insert + state.lineBreak } };
	            }
	        }
	        if (inner.node.name == "Blockquote" && emptyLine && line.from) {
	            let prevLine = doc.lineAt(line.from - 1), quoted = />\s*$/.exec(prevLine.text);
	            // Two aligned empty quoted lines in a row
	            if (quoted && quoted.index == inner.from) {
	                let changes = state.changes([{ from: prevLine.from + quoted.index, to: prevLine.to },
	                    { from: line.from + inner.from, to: line.to }]);
	                return { range: range.map(changes), changes };
	            }
	        }
	        let changes = [];
	        if (inner.node.name == "OrderedList")
	            renumberList(inner.item, doc, changes);
	        let continued = inner.item && inner.item.from < line.from;
	        let insert = "";
	        // If not dedented
	        if (!continued || /^[\s\d.)\-+*>]*/.exec(line.text)[0].length >= inner.to) {
	            for (let i = 0, e = context.length - 1; i <= e; i++) {
	                insert += i == e && !continued ? context[i].marker(doc, 1)
	                    : context[i].blank(i < e ? countColumn(line.text, 4, context[i + 1].from) - insert.length : null);
	            }
	        }
	        let from = pos;
	        while (from > line.from && /\s/.test(line.text.charAt(from - line.from - 1)))
	            from--;
	        insert = normalizeIndent(insert, state);
	        if (nonTightList(inner.node, state.doc))
	            insert = blankLine$1(context, state, line) + state.lineBreak + insert;
	        changes.push({ from, to: pos, insert: state.lineBreak + insert });
	        return { range: EditorSelection.cursor(from + insert.length + 1), changes };
	    });
	    if (dont)
	        return false;
	    dispatch(state.update(changes, { scrollIntoView: true, userEvent: "input" }));
	    return true;
	};
	function isMark(node) {
	    return node.name == "QuoteMark" || node.name == "ListMark";
	}
	function nonTightList(node, doc) {
	    if (node.name != "OrderedList" && node.name != "BulletList")
	        return false;
	    let first = node.firstChild, second = node.getChild("ListItem", "ListItem");
	    if (!second)
	        return false;
	    let line1 = doc.lineAt(first.to), line2 = doc.lineAt(second.from);
	    let empty = /^[\s>]*$/.test(line1.text);
	    return line1.number + (empty ? 0 : 1) < line2.number;
	}
	function blankLine$1(context, state, line) {
	    let insert = "";
	    for (let i = 0, e = context.length - 2; i <= e; i++) {
	        insert += context[i].blank(i < e ? countColumn(line.text, 4, context[i + 1].from) - insert.length : null, i < e);
	    }
	    return normalizeIndent(insert, state);
	}
	function contextNodeForDelete(tree, pos) {
	    let node = tree.resolveInner(pos, -1), scan = pos;
	    if (isMark(node)) {
	        scan = node.from;
	        node = node.parent;
	    }
	    for (let prev; prev = node.childBefore(scan);) {
	        if (isMark(prev)) {
	            scan = prev.from;
	        }
	        else if (prev.name == "OrderedList" || prev.name == "BulletList") {
	            node = prev.lastChild;
	            scan = node.to;
	        }
	        else {
	            break;
	        }
	    }
	    return node;
	}
	/**
	This command will, when invoked in a Markdown context with the
	cursor directly after list or blockquote markup, delete one level
	of markup. When the markup is for a list, it will be replaced by
	spaces on the first invocation (a further invocation will delete
	the spaces), to make it easy to continue a list.

	When not after Markdown block markup, this command will return
	false, so it is intended to be bound alongside other deletion
	commands, with a higher precedence than the more generic commands.
	*/
	const deleteMarkupBackward = ({ state, dispatch }) => {
	    let tree = syntaxTree(state);
	    let dont = null, changes = state.changeByRange(range => {
	        let pos = range.from, { doc } = state;
	        if (range.empty && markdownLanguage.isActiveAt(state, range.from)) {
	            let line = doc.lineAt(pos);
	            let context = getContext(contextNodeForDelete(tree, pos), doc);
	            if (context.length) {
	                let inner = context[context.length - 1];
	                let spaceEnd = inner.to - inner.spaceAfter.length + (inner.spaceAfter ? 1 : 0);
	                // Delete extra trailing space after markup
	                if (pos - line.from > spaceEnd && !/\S/.test(line.text.slice(spaceEnd, pos - line.from)))
	                    return { range: EditorSelection.cursor(line.from + spaceEnd),
	                        changes: { from: line.from + spaceEnd, to: pos } };
	                if (pos - line.from == spaceEnd &&
	                    // Only apply this if we're on the line that has the
	                    // construct's syntax, or there's only indentation in the
	                    // target range
	                    (!inner.item || line.from <= inner.item.from || !/\S/.test(line.text.slice(0, inner.to)))) {
	                    let start = line.from + inner.from;
	                    // Replace a list item marker with blank space
	                    if (inner.item && inner.node.from < inner.item.from && /\S/.test(line.text.slice(inner.from, inner.to))) {
	                        let insert = inner.blank(countColumn(line.text, 4, inner.to) - countColumn(line.text, 4, inner.from));
	                        if (start == line.from)
	                            insert = normalizeIndent(insert, state);
	                        return { range: EditorSelection.cursor(start + insert.length),
	                            changes: { from: start, to: line.from + inner.to, insert } };
	                    }
	                    // Delete one level of indentation
	                    if (start < pos)
	                        return { range: EditorSelection.cursor(start), changes: { from: start, to: pos } };
	                }
	            }
	        }
	        return dont = { range };
	    });
	    if (dont)
	        return false;
	    dispatch(state.update(changes, { scrollIntoView: true, userEvent: "delete" }));
	    return true;
	};

	/**
	A small keymap with Markdown-specific bindings. Binds Enter to
	[`insertNewlineContinueMarkup`](https://codemirror.net/6/docs/ref/#lang-markdown.insertNewlineContinueMarkup)
	and Backspace to
	[`deleteMarkupBackward`](https://codemirror.net/6/docs/ref/#lang-markdown.deleteMarkupBackward).
	*/
	const markdownKeymap = [
	    { key: "Enter", run: insertNewlineContinueMarkup },
	    { key: "Backspace", run: deleteMarkupBackward }
	];
	const htmlNoMatch = /*@__PURE__*/html({ matchClosingTags: false });
	/**
	Markdown language support.
	*/
	function markdown(config = {}) {
	    let { codeLanguages, defaultCodeLanguage, addKeymap = true, base: { parser } = commonmarkLanguage, completeHTMLTags = true } = config;
	    if (!(parser instanceof MarkdownParser))
	        throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");
	    let extensions = config.extensions ? [config.extensions] : [];
	    let support = [htmlNoMatch.support], defaultCode;
	    if (defaultCodeLanguage instanceof LanguageSupport) {
	        support.push(defaultCodeLanguage.support);
	        defaultCode = defaultCodeLanguage.language;
	    }
	    else if (defaultCodeLanguage) {
	        defaultCode = defaultCodeLanguage;
	    }
	    let codeParser = codeLanguages || defaultCode ? getCodeParser(codeLanguages, defaultCode) : undefined;
	    extensions.push(parseCode({ codeParser, htmlParser: htmlNoMatch.language.parser }));
	    if (addKeymap)
	        support.push(Prec.high(keymap.of(markdownKeymap)));
	    let lang = mkLang(parser.configure(extensions));
	    if (completeHTMLTags)
	        support.push(lang.data.of({ autocomplete: htmlTagCompletion }));
	    return new LanguageSupport(lang, support);
	}
	function htmlTagCompletion(context) {
	    let { state, pos } = context, m = /<[:\-\.\w\u00b7-\uffff]*$/.exec(state.sliceDoc(pos - 25, pos));
	    if (!m)
	        return null;
	    let tree = syntaxTree(state).resolveInner(pos, -1);
	    while (tree && !tree.type.isTop) {
	        if (tree.name == "CodeBlock" || tree.name == "FencedCode" || tree.name == "ProcessingInstructionBlock" ||
	            tree.name == "CommentBlock" || tree.name == "Link" || tree.name == "Image")
	            return null;
	        tree = tree.parent;
	    }
	    return {
	        from: pos - m[0].length, to: pos,
	        options: htmlTagCompletions(),
	        validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
	    };
	}
	let _tagCompletions = null;
	function htmlTagCompletions() {
	    if (_tagCompletions)
	        return _tagCompletions;
	    let result = htmlCompletionSource(new CompletionContext(EditorState.create({ extensions: htmlNoMatch }), 0, true));
	    return _tagCompletions = result ? result.options : [];
	}

	var index$f = /*#__PURE__*/Object.freeze({
		__proto__: null,
		commonmarkLanguage: commonmarkLanguage,
		deleteMarkupBackward: deleteMarkupBackward,
		insertNewlineContinueMarkup: insertNewlineContinueMarkup,
		markdown: markdown,
		markdownKeymap: markdownKeymap,
		markdownLanguage: markdownLanguage
	});

	function legacy(parser) {
	    return new LanguageSupport(StreamLanguage.define(parser));
	}
	function sql$3(dialectName) {
	    return Promise.resolve().then(function () { return index$e; }).then(m => m.sql({ dialect: m[dialectName] }));
	}
	/**
	An array of language descriptions for known language packages.
	*/
	const languages = [
	    // New-style language modes
	    /*@__PURE__*/LanguageDescription.of({
	        name: "C",
	        extensions: ["c", "h", "ino"],
	        load() {
	            return Promise.resolve().then(function () { return index$d; }).then(m => m.cpp());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "C++",
	        alias: ["cpp"],
	        extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
	        load() {
	            return Promise.resolve().then(function () { return index$d; }).then(m => m.cpp());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "CQL",
	        alias: ["cassandra"],
	        extensions: ["cql"],
	        load() { return sql$3("Cassandra"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "CSS",
	        extensions: ["css"],
	        load() {
	            return Promise.resolve().then(function () { return index$i; }).then(m => m.css());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "HTML",
	        alias: ["xhtml"],
	        extensions: ["html", "htm", "handlebars", "hbs"],
	        load() {
	            return Promise.resolve().then(function () { return index$g; }).then(m => m.html());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Java",
	        extensions: ["java"],
	        load() {
	            return Promise.resolve().then(function () { return index$c; }).then(m => m.java());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "JavaScript",
	        alias: ["ecmascript", "js", "node"],
	        extensions: ["js", "mjs", "cjs"],
	        load() {
	            return Promise.resolve().then(function () { return index$h; }).then(m => m.javascript());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "JSON",
	        alias: ["json5"],
	        extensions: ["json", "map"],
	        load() {
	            return Promise.resolve().then(function () { return index$b; }).then(m => m.json());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "JSX",
	        extensions: ["jsx"],
	        load() {
	            return Promise.resolve().then(function () { return index$h; }).then(m => m.javascript({ jsx: true }));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "LESS",
	        extensions: ["less"],
	        load() {
	            return Promise.resolve().then(function () { return index$a; }).then(m => m.less());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Liquid",
	        extensions: ["liquid"],
	        load() {
	            return Promise.resolve().then(function () { return index$9; }).then(m => m.liquid());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MariaDB SQL",
	        load() { return sql$3("MariaSQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Markdown",
	        extensions: ["md", "markdown", "mkd"],
	        load() {
	            return Promise.resolve().then(function () { return index$f; }).then(m => m.markdown());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MS SQL",
	        load() { return sql$3("MSSQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MySQL",
	        load() { return sql$3("MySQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "PHP",
	        extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
	        load() {
	            return Promise.resolve().then(function () { return index$8; }).then(m => m.php());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "PLSQL",
	        extensions: ["pls"],
	        load() { return sql$3("PLSQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "PostgreSQL",
	        load() { return sql$3("PostgreSQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Python",
	        extensions: ["BUILD", "bzl", "py", "pyw"],
	        filename: /^(BUCK|BUILD)$/,
	        load() {
	            return Promise.resolve().then(function () { return index$7; }).then(m => m.python());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Rust",
	        extensions: ["rs"],
	        load() {
	            return Promise.resolve().then(function () { return index$6; }).then(m => m.rust());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Sass",
	        extensions: ["sass"],
	        load() {
	            return Promise.resolve().then(function () { return index$5; }).then(m => m.sass({ indented: true }));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SCSS",
	        extensions: ["scss"],
	        load() {
	            return Promise.resolve().then(function () { return index$5; }).then(m => m.sass());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SQL",
	        extensions: ["sql"],
	        load() { return sql$3("StandardSQL"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SQLite",
	        load() { return sql$3("SQLite"); }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TSX",
	        extensions: ["tsx"],
	        load() {
	            return Promise.resolve().then(function () { return index$h; }).then(m => m.javascript({ jsx: true, typescript: true }));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TypeScript",
	        alias: ["ts"],
	        extensions: ["ts", "mts", "cts"],
	        load() {
	            return Promise.resolve().then(function () { return index$h; }).then(m => m.javascript({ typescript: true }));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "WebAssembly",
	        extensions: ["wat", "wast"],
	        load() {
	            return Promise.resolve().then(function () { return index$4; }).then(m => m.wast());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "XML",
	        alias: ["rss", "wsdl", "xsd"],
	        extensions: ["xml", "xsl", "xsd", "svg"],
	        load() {
	            return Promise.resolve().then(function () { return index$3; }).then(m => m.xml());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "YAML",
	        alias: ["yml"],
	        extensions: ["yaml", "yml"],
	        load() {
	            return Promise.resolve().then(function () { return index$2; }).then(m => m.yaml());
	        }
	    }),
	    // Legacy modes ported from CodeMirror 5
	    /*@__PURE__*/LanguageDescription.of({
	        name: "APL",
	        extensions: ["dyalog", "apl"],
	        load() {
	            return Promise.resolve().then(function () { return apl$1; }).then(m => legacy(m.apl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "PGP",
	        alias: ["asciiarmor"],
	        extensions: ["asc", "pgp", "sig"],
	        load() {
	            return Promise.resolve().then(function () { return asciiarmor; }).then(m => legacy(m.asciiArmor));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "ASN.1",
	        extensions: ["asn", "asn1"],
	        load() {
	            return Promise.resolve().then(function () { return asn1$1; }).then(m => legacy(m.asn1({})));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Asterisk",
	        filename: /^extensions\.conf$/i,
	        load() {
	            return Promise.resolve().then(function () { return asterisk$1; }).then(m => legacy(m.asterisk));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Brainfuck",
	        extensions: ["b", "bf"],
	        load() {
	            return Promise.resolve().then(function () { return brainfuck$1; }).then(m => legacy(m.brainfuck));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Cobol",
	        extensions: ["cob", "cpy"],
	        load() {
	            return Promise.resolve().then(function () { return cobol$1; }).then(m => legacy(m.cobol));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "C#",
	        alias: ["csharp", "cs"],
	        extensions: ["cs"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.csharp));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Clojure",
	        extensions: ["clj", "cljc", "cljx"],
	        load() {
	            return Promise.resolve().then(function () { return clojure$1; }).then(m => legacy(m.clojure));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "ClojureScript",
	        extensions: ["cljs"],
	        load() {
	            return Promise.resolve().then(function () { return clojure$1; }).then(m => legacy(m.clojure));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Closure Stylesheets (GSS)",
	        extensions: ["gss"],
	        load() {
	            return Promise.resolve().then(function () { return css$1; }).then(m => legacy(m.gss));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "CMake",
	        extensions: ["cmake", "cmake.in"],
	        filename: /^CMakeLists\.txt$/,
	        load() {
	            return Promise.resolve().then(function () { return cmake$1; }).then(m => legacy(m.cmake));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "CoffeeScript",
	        alias: ["coffee", "coffee-script"],
	        extensions: ["coffee"],
	        load() {
	            return Promise.resolve().then(function () { return coffeescript; }).then(m => legacy(m.coffeeScript));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Common Lisp",
	        alias: ["lisp"],
	        extensions: ["cl", "lisp", "el"],
	        load() {
	            return Promise.resolve().then(function () { return commonlisp; }).then(m => legacy(m.commonLisp));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Cypher",
	        extensions: ["cyp", "cypher"],
	        load() {
	            return Promise.resolve().then(function () { return cypher$1; }).then(m => legacy(m.cypher));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Cython",
	        extensions: ["pyx", "pxd", "pxi"],
	        load() {
	            return Promise.resolve().then(function () { return python$1; }).then(m => legacy(m.cython));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Crystal",
	        extensions: ["cr"],
	        load() {
	            return Promise.resolve().then(function () { return crystal$1; }).then(m => legacy(m.crystal));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "D",
	        extensions: ["d"],
	        load() {
	            return Promise.resolve().then(function () { return d$2; }).then(m => legacy(m.d));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Dart",
	        extensions: ["dart"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.dart));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "diff",
	        extensions: ["diff", "patch"],
	        load() {
	            return Promise.resolve().then(function () { return diff$1; }).then(m => legacy(m.diff));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Dockerfile",
	        filename: /^Dockerfile$/,
	        load() {
	            return Promise.resolve().then(function () { return dockerfile; }).then(m => legacy(m.dockerFile));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "DTD",
	        extensions: ["dtd"],
	        load() {
	            return Promise.resolve().then(function () { return dtd$1; }).then(m => legacy(m.dtd));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Dylan",
	        extensions: ["dylan", "dyl", "intr"],
	        load() {
	            return Promise.resolve().then(function () { return dylan$1; }).then(m => legacy(m.dylan));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "EBNF",
	        load() {
	            return Promise.resolve().then(function () { return ebnf$1; }).then(m => legacy(m.ebnf));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "ECL",
	        extensions: ["ecl"],
	        load() {
	            return Promise.resolve().then(function () { return ecl$1; }).then(m => legacy(m.ecl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "edn",
	        extensions: ["edn"],
	        load() {
	            return Promise.resolve().then(function () { return clojure$1; }).then(m => legacy(m.clojure));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Eiffel",
	        extensions: ["e"],
	        load() {
	            return Promise.resolve().then(function () { return eiffel$1; }).then(m => legacy(m.eiffel));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Elm",
	        extensions: ["elm"],
	        load() {
	            return Promise.resolve().then(function () { return elm$1; }).then(m => legacy(m.elm));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Erlang",
	        extensions: ["erl"],
	        load() {
	            return Promise.resolve().then(function () { return erlang$1; }).then(m => legacy(m.erlang));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Esper",
	        load() {
	            return Promise.resolve().then(function () { return sql$1; }).then(m => legacy(m.esper));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Factor",
	        extensions: ["factor"],
	        load() {
	            return Promise.resolve().then(function () { return factor$1; }).then(m => legacy(m.factor));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "FCL",
	        load() {
	            return Promise.resolve().then(function () { return fcl$1; }).then(m => legacy(m.fcl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Forth",
	        extensions: ["forth", "fth", "4th"],
	        load() {
	            return Promise.resolve().then(function () { return forth$1; }).then(m => legacy(m.forth));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Fortran",
	        extensions: ["f", "for", "f77", "f90", "f95"],
	        load() {
	            return Promise.resolve().then(function () { return fortran$1; }).then(m => legacy(m.fortran));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "F#",
	        alias: ["fsharp"],
	        extensions: ["fs"],
	        load() {
	            return Promise.resolve().then(function () { return mllike; }).then(m => legacy(m.fSharp));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Gas",
	        extensions: ["s"],
	        load() {
	            return Promise.resolve().then(function () { return gas$1; }).then(m => legacy(m.gas));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Gherkin",
	        extensions: ["feature"],
	        load() {
	            return Promise.resolve().then(function () { return gherkin$1; }).then(m => legacy(m.gherkin));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Go",
	        extensions: ["go"],
	        load() {
	            return Promise.resolve().then(function () { return go$1; }).then(m => legacy(m.go));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Groovy",
	        extensions: ["groovy", "gradle"],
	        filename: /^Jenkinsfile$/,
	        load() {
	            return Promise.resolve().then(function () { return groovy$1; }).then(m => legacy(m.groovy));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Haskell",
	        extensions: ["hs"],
	        load() {
	            return Promise.resolve().then(function () { return haskell$1; }).then(m => legacy(m.haskell));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Haxe",
	        extensions: ["hx"],
	        load() {
	            return Promise.resolve().then(function () { return haxe$1; }).then(m => legacy(m.haxe));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "HXML",
	        extensions: ["hxml"],
	        load() {
	            return Promise.resolve().then(function () { return haxe$1; }).then(m => legacy(m.hxml));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "HTTP",
	        load() {
	            return Promise.resolve().then(function () { return http$1; }).then(m => legacy(m.http));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "IDL",
	        extensions: ["pro"],
	        load() {
	            return Promise.resolve().then(function () { return idl$1; }).then(m => legacy(m.idl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "JSON-LD",
	        alias: ["jsonld"],
	        extensions: ["jsonld"],
	        load() {
	            return Promise.resolve().then(function () { return javascript$1; }).then(m => legacy(m.jsonld));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Jinja2",
	        extensions: ["j2", "jinja", "jinja2"],
	        load() {
	            return Promise.resolve().then(function () { return jinja2$1; }).then(m => legacy(m.jinja2));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Julia",
	        extensions: ["jl"],
	        load() {
	            return Promise.resolve().then(function () { return julia$1; }).then(m => legacy(m.julia));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Kotlin",
	        extensions: ["kt", "kts"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.kotlin));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "LiveScript",
	        alias: ["ls"],
	        extensions: ["ls"],
	        load() {
	            return Promise.resolve().then(function () { return livescript; }).then(m => legacy(m.liveScript));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Lua",
	        extensions: ["lua"],
	        load() {
	            return Promise.resolve().then(function () { return lua$1; }).then(m => legacy(m.lua));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "mIRC",
	        extensions: ["mrc"],
	        load() {
	            return Promise.resolve().then(function () { return mirc$1; }).then(m => legacy(m.mirc));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Mathematica",
	        extensions: ["m", "nb", "wl", "wls"],
	        load() {
	            return Promise.resolve().then(function () { return mathematica$1; }).then(m => legacy(m.mathematica));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Modelica",
	        extensions: ["mo"],
	        load() {
	            return Promise.resolve().then(function () { return modelica$1; }).then(m => legacy(m.modelica));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MUMPS",
	        extensions: ["mps"],
	        load() {
	            return Promise.resolve().then(function () { return mumps$1; }).then(m => legacy(m.mumps));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Mbox",
	        extensions: ["mbox"],
	        load() {
	            return Promise.resolve().then(function () { return mbox$1; }).then(m => legacy(m.mbox));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Nginx",
	        filename: /nginx.*\.conf$/i,
	        load() {
	            return Promise.resolve().then(function () { return nginx$1; }).then(m => legacy(m.nginx));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "NSIS",
	        extensions: ["nsh", "nsi"],
	        load() {
	            return Promise.resolve().then(function () { return nsis$1; }).then(m => legacy(m.nsis));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "NTriples",
	        extensions: ["nt", "nq"],
	        load() {
	            return Promise.resolve().then(function () { return ntriples$1; }).then(m => legacy(m.ntriples));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Objective-C",
	        alias: ["objective-c", "objc"],
	        extensions: ["m"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.objectiveC));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Objective-C++",
	        alias: ["objective-c++", "objc++"],
	        extensions: ["mm"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.objectiveCpp));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "OCaml",
	        extensions: ["ml", "mli", "mll", "mly"],
	        load() {
	            return Promise.resolve().then(function () { return mllike; }).then(m => legacy(m.oCaml));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Octave",
	        extensions: ["m"],
	        load() {
	            return Promise.resolve().then(function () { return octave$1; }).then(m => legacy(m.octave));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Oz",
	        extensions: ["oz"],
	        load() {
	            return Promise.resolve().then(function () { return oz$1; }).then(m => legacy(m.oz));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Pascal",
	        extensions: ["p", "pas"],
	        load() {
	            return Promise.resolve().then(function () { return pascal$1; }).then(m => legacy(m.pascal));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Perl",
	        extensions: ["pl", "pm"],
	        load() {
	            return Promise.resolve().then(function () { return perl$1; }).then(m => legacy(m.perl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Pig",
	        extensions: ["pig"],
	        load() {
	            return Promise.resolve().then(function () { return pig$1; }).then(m => legacy(m.pig));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "PowerShell",
	        extensions: ["ps1", "psd1", "psm1"],
	        load() {
	            return Promise.resolve().then(function () { return powershell; }).then(m => legacy(m.powerShell));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Properties files",
	        alias: ["ini", "properties"],
	        extensions: ["properties", "ini", "in"],
	        load() {
	            return Promise.resolve().then(function () { return properties$1; }).then(m => legacy(m.properties));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "ProtoBuf",
	        extensions: ["proto"],
	        load() {
	            return Promise.resolve().then(function () { return protobuf$1; }).then(m => legacy(m.protobuf));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Puppet",
	        extensions: ["pp"],
	        load() {
	            return Promise.resolve().then(function () { return puppet$1; }).then(m => legacy(m.puppet));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Q",
	        extensions: ["q"],
	        load() {
	            return Promise.resolve().then(function () { return q$1; }).then(m => legacy(m.q));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "R",
	        alias: ["rscript"],
	        extensions: ["r", "R"],
	        load() {
	            return Promise.resolve().then(function () { return r$1; }).then(m => legacy(m.r));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "RPM Changes",
	        load() {
	            return Promise.resolve().then(function () { return rpm; }).then(m => legacy(m.rpmChanges));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "RPM Spec",
	        extensions: ["spec"],
	        load() {
	            return Promise.resolve().then(function () { return rpm; }).then(m => legacy(m.rpmSpec));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Ruby",
	        alias: ["jruby", "macruby", "rake", "rb", "rbx"],
	        extensions: ["rb"],
	        filename: /^(Gemfile|Rakefile)$/,
	        load() {
	            return Promise.resolve().then(function () { return ruby$1; }).then(m => legacy(m.ruby));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SAS",
	        extensions: ["sas"],
	        load() {
	            return Promise.resolve().then(function () { return sas$1; }).then(m => legacy(m.sas));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Scala",
	        extensions: ["scala"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.scala));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Scheme",
	        extensions: ["scm", "ss"],
	        load() {
	            return Promise.resolve().then(function () { return scheme$1; }).then(m => legacy(m.scheme));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Shell",
	        alias: ["bash", "sh", "zsh"],
	        extensions: ["sh", "ksh", "bash"],
	        filename: /^PKGBUILD$/,
	        load() {
	            return Promise.resolve().then(function () { return shell$1; }).then(m => legacy(m.shell));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Sieve",
	        extensions: ["siv", "sieve"],
	        load() {
	            return Promise.resolve().then(function () { return sieve$1; }).then(m => legacy(m.sieve));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Smalltalk",
	        extensions: ["st"],
	        load() {
	            return Promise.resolve().then(function () { return smalltalk$1; }).then(m => legacy(m.smalltalk));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Solr",
	        load() {
	            return Promise.resolve().then(function () { return solr$1; }).then(m => legacy(m.solr));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SML",
	        extensions: ["sml", "sig", "fun", "smackspec"],
	        load() {
	            return Promise.resolve().then(function () { return mllike; }).then(m => legacy(m.sml));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SPARQL",
	        alias: ["sparul"],
	        extensions: ["rq", "sparql"],
	        load() {
	            return Promise.resolve().then(function () { return sparql$1; }).then(m => legacy(m.sparql));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Spreadsheet",
	        alias: ["excel", "formula"],
	        load() {
	            return Promise.resolve().then(function () { return spreadsheet$1; }).then(m => legacy(m.spreadsheet));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Squirrel",
	        extensions: ["nut"],
	        load() {
	            return Promise.resolve().then(function () { return clike$1; }).then(m => legacy(m.squirrel));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Stylus",
	        extensions: ["styl"],
	        load() {
	            return Promise.resolve().then(function () { return stylus$1; }).then(m => legacy(m.stylus));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Swift",
	        extensions: ["swift"],
	        load() {
	            return Promise.resolve().then(function () { return swift$1; }).then(m => legacy(m.swift));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "sTeX",
	        load() {
	            return Promise.resolve().then(function () { return stex$1; }).then(m => legacy(m.stex));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "LaTeX",
	        alias: ["tex"],
	        extensions: ["text", "ltx", "tex"],
	        load() {
	            return Promise.resolve().then(function () { return stex$1; }).then(m => legacy(m.stex));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "SystemVerilog",
	        extensions: ["v", "sv", "svh"],
	        load() {
	            return Promise.resolve().then(function () { return verilog$1; }).then(m => legacy(m.verilog));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Tcl",
	        extensions: ["tcl"],
	        load() {
	            return Promise.resolve().then(function () { return tcl$1; }).then(m => legacy(m.tcl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Textile",
	        extensions: ["textile"],
	        load() {
	            return Promise.resolve().then(function () { return textile$1; }).then(m => legacy(m.textile));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TiddlyWiki",
	        load() {
	            return Promise.resolve().then(function () { return tiddlywiki; }).then(m => legacy(m.tiddlyWiki));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Tiki wiki",
	        load() {
	            return Promise.resolve().then(function () { return tiki$1; }).then(m => legacy(m.tiki));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TOML",
	        extensions: ["toml"],
	        load() {
	            return Promise.resolve().then(function () { return toml$1; }).then(m => legacy(m.toml));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Troff",
	        extensions: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
	        load() {
	            return Promise.resolve().then(function () { return troff$1; }).then(m => legacy(m.troff));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TTCN",
	        extensions: ["ttcn", "ttcn3", "ttcnpp"],
	        load() {
	            return Promise.resolve().then(function () { return ttcn$1; }).then(m => legacy(m.ttcn));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "TTCN_CFG",
	        extensions: ["cfg"],
	        load() {
	            return Promise.resolve().then(function () { return ttcnCfg$1; }).then(m => legacy(m.ttcnCfg));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Turtle",
	        extensions: ["ttl"],
	        load() {
	            return Promise.resolve().then(function () { return turtle$1; }).then(m => legacy(m.turtle));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Web IDL",
	        extensions: ["webidl"],
	        load() {
	            return Promise.resolve().then(function () { return webidl; }).then(m => legacy(m.webIDL));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "VB.NET",
	        extensions: ["vb"],
	        load() {
	            return Promise.resolve().then(function () { return vb$1; }).then(m => legacy(m.vb));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "VBScript",
	        extensions: ["vbs"],
	        load() {
	            return Promise.resolve().then(function () { return vbscript; }).then(m => legacy(m.vbScript));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Velocity",
	        extensions: ["vtl"],
	        load() {
	            return Promise.resolve().then(function () { return velocity$1; }).then(m => legacy(m.velocity));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Verilog",
	        extensions: ["v"],
	        load() {
	            return Promise.resolve().then(function () { return verilog$1; }).then(m => legacy(m.verilog));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "VHDL",
	        extensions: ["vhd", "vhdl"],
	        load() {
	            return Promise.resolve().then(function () { return vhdl$1; }).then(m => legacy(m.vhdl));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "XQuery",
	        extensions: ["xy", "xquery"],
	        load() {
	            return Promise.resolve().then(function () { return xquery; }).then(m => legacy(m.xQuery));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Yacas",
	        extensions: ["ys"],
	        load() {
	            return Promise.resolve().then(function () { return yacas$1; }).then(m => legacy(m.yacas));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Z80",
	        extensions: ["z80"],
	        load() {
	            return Promise.resolve().then(function () { return z80$1; }).then(m => legacy(m.z80));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MscGen",
	        extensions: ["mscgen", "mscin", "msc"],
	        load() {
	            return Promise.resolve().then(function () { return mscgen$1; }).then(m => legacy(m.mscgen));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Xù",
	        extensions: ["xu"],
	        load() {
	            return Promise.resolve().then(function () { return mscgen$1; }).then(m => legacy(m.xu));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "MsGenny",
	        extensions: ["msgenny"],
	        load() {
	            return Promise.resolve().then(function () { return mscgen$1; }).then(m => legacy(m.msgenny));
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Vue",
	        extensions: ["vue"],
	        load() {
	            return Promise.resolve().then(function () { return index$1; }).then(m => m.vue());
	        }
	    }),
	    /*@__PURE__*/LanguageDescription.of({
	        name: "Angular Template",
	        load() {
	            return Promise.resolve().then(function () { return index; }).then(m => m.angular());
	        }
	    })
	];

	function _extends$1() {
	  _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
	    for (var i = 1; i < arguments.length; i++) {
	      var source = arguments[i];
	      for (var key in source) {
	        if (Object.prototype.hasOwnProperty.call(source, key)) {
	          target[key] = source[key];
	        }
	      }
	    }
	    return target;
	  };
	  return _extends$1.apply(this, arguments);
	}

	function _objectWithoutPropertiesLoose(source, excluded) {
	  if (source == null) return {};
	  var target = {};
	  var sourceKeys = Object.keys(source);
	  var key, i;
	  for (i = 0; i < sourceKeys.length; i++) {
	    key = sourceKeys[i];
	    if (excluded.indexOf(key) >= 0) continue;
	    target[key] = source[key];
	  }
	  return target;
	}

	/**
	Comment or uncomment the current selection. Will use line comments
	if available, otherwise falling back to block comments.
	*/
	const toggleComment = target => {
	    let { state } = target, line = state.doc.lineAt(state.selection.main.from), config = getConfig(target.state, line.from);
	    return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;
	};
	function command$1(f, option) {
	    return ({ state, dispatch }) => {
	        if (state.readOnly)
	            return false;
	        let tr = f(option, state);
	        if (!tr)
	            return false;
	        dispatch(state.update(tr));
	        return true;
	    };
	}
	/**
	Comment or uncomment the current selection using line comments.
	The line comment syntax is taken from the
	[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
	data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
	*/
	const toggleLineComment = /*@__PURE__*/command$1(changeLineComment, 0 /* CommentOption.Toggle */);
	/**
	Comment or uncomment the current selection using block comments.
	The block comment syntax is taken from the
	[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
	data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
	*/
	const toggleBlockComment = /*@__PURE__*/command$1(changeBlockComment, 0 /* CommentOption.Toggle */);
	/**
	Comment or uncomment the lines around the current selection using
	block comments.
	*/
	const toggleBlockCommentByLine = /*@__PURE__*/command$1((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);
	function getConfig(state, pos) {
	    let data = state.languageDataAt("commentTokens", pos);
	    return data.length ? data[0] : {};
	}
	const SearchMargin = 50;
	/**
	Determines if the given range is block-commented in the given
	state.
	*/
	function findBlockComment(state, { open, close }, from, to) {
	    let textBefore = state.sliceDoc(from - SearchMargin, from);
	    let textAfter = state.sliceDoc(to, to + SearchMargin);
	    let spaceBefore = /\s*$/.exec(textBefore)[0].length, spaceAfter = /^\s*/.exec(textAfter)[0].length;
	    let beforeOff = textBefore.length - spaceBefore;
	    if (textBefore.slice(beforeOff - open.length, beforeOff) == open &&
	        textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {
	        return { open: { pos: from - spaceBefore, margin: spaceBefore && 1 },
	            close: { pos: to + spaceAfter, margin: spaceAfter && 1 } };
	    }
	    let startText, endText;
	    if (to - from <= 2 * SearchMargin) {
	        startText = endText = state.sliceDoc(from, to);
	    }
	    else {
	        startText = state.sliceDoc(from, from + SearchMargin);
	        endText = state.sliceDoc(to - SearchMargin, to);
	    }
	    let startSpace = /^\s*/.exec(startText)[0].length, endSpace = /\s*$/.exec(endText)[0].length;
	    let endOff = endText.length - endSpace - close.length;
	    if (startText.slice(startSpace, startSpace + open.length) == open &&
	        endText.slice(endOff, endOff + close.length) == close) {
	        return { open: { pos: from + startSpace + open.length,
	                margin: /\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0 },
	            close: { pos: to - endSpace - close.length,
	                margin: /\s/.test(endText.charAt(endOff - 1)) ? 1 : 0 } };
	    }
	    return null;
	}
	function selectedLineRanges(state) {
	    let ranges = [];
	    for (let r of state.selection.ranges) {
	        let fromLine = state.doc.lineAt(r.from);
	        let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);
	        let last = ranges.length - 1;
	        if (last >= 0 && ranges[last].to > fromLine.from)
	            ranges[last].to = toLine.to;
	        else
	            ranges.push({ from: fromLine.from + /^\s*/.exec(fromLine.text)[0].length, to: toLine.to });
	    }
	    return ranges;
	}
	// Performs toggle, comment and uncomment of block comments in
	// languages that support them.
	function changeBlockComment(option, state, ranges = state.selection.ranges) {
	    let tokens = ranges.map(r => getConfig(state, r.from).block);
	    if (!tokens.every(c => c))
	        return null;
	    let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
	    if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {
	        return { changes: state.changes(ranges.map((range, i) => {
	                if (comments[i])
	                    return [];
	                return [{ from: range.from, insert: tokens[i].open + " " }, { from: range.to, insert: " " + tokens[i].close }];
	            })) };
	    }
	    else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {
	        let changes = [];
	        for (let i = 0, comment; i < comments.length; i++)
	            if (comment = comments[i]) {
	                let token = tokens[i], { open, close } = comment;
	                changes.push({ from: open.pos - token.open.length, to: open.pos + open.margin }, { from: close.pos - close.margin, to: close.pos + token.close.length });
	            }
	        return { changes };
	    }
	    return null;
	}
	// Performs toggle, comment and uncomment of line comments.
	function changeLineComment(option, state, ranges = state.selection.ranges) {
	    let lines = [];
	    let prevLine = -1;
	    for (let { from, to } of ranges) {
	        let startI = lines.length, minIndent = 1e9;
	        let token = getConfig(state, from).line;
	        if (!token)
	            continue;
	        for (let pos = from; pos <= to;) {
	            let line = state.doc.lineAt(pos);
	            if (line.from > prevLine && (from == to || to > line.from)) {
	                prevLine = line.from;
	                let indent = /^\s*/.exec(line.text)[0].length;
	                let empty = indent == line.length;
	                let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;
	                if (indent < line.text.length && indent < minIndent)
	                    minIndent = indent;
	                lines.push({ line, comment, token, indent, empty, single: false });
	            }
	            pos = line.to + 1;
	        }
	        if (minIndent < 1e9)
	            for (let i = startI; i < lines.length; i++)
	                if (lines[i].indent < lines[i].line.text.length)
	                    lines[i].indent = minIndent;
	        if (lines.length == startI + 1)
	            lines[startI].single = true;
	    }
	    if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {
	        let changes = [];
	        for (let { line, token, indent, empty, single } of lines)
	            if (single || !empty)
	                changes.push({ from: line.from + indent, insert: token + " " });
	        let changeSet = state.changes(changes);
	        return { changes: changeSet, selection: state.selection.map(changeSet, 1) };
	    }
	    else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {
	        let changes = [];
	        for (let { line, comment, token } of lines)
	            if (comment >= 0) {
	                let from = line.from + comment, to = from + token.length;
	                if (line.text[to - line.from] == " ")
	                    to++;
	                changes.push({ from, to });
	            }
	        return { changes };
	    }
	    return null;
	}

	const fromHistory = /*@__PURE__*/Annotation.define();
	/**
	Transaction annotation that will prevent that transaction from
	being combined with other transactions in the undo history. Given
	`"before"`, it'll prevent merging with previous transactions. With
	`"after"`, subsequent transactions won't be combined with this
	one. With `"full"`, the transaction is isolated on both sides.
	*/
	const isolateHistory = /*@__PURE__*/Annotation.define();
	/**
	This facet provides a way to register functions that, given a
	transaction, provide a set of effects that the history should
	store when inverting the transaction. This can be used to
	integrate some kinds of effects in the history, so that they can
	be undone (and redone again).
	*/
	const invertedEffects = /*@__PURE__*/Facet.define();
	const historyConfig = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        return combineConfig(configs, {
	            minDepth: 100,
	            newGroupDelay: 500,
	            joinToEvent: (_t, isAdjacent) => isAdjacent,
	        }, {
	            minDepth: Math.max,
	            newGroupDelay: Math.min,
	            joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)
	        });
	    }
	});
	const historyField_ = /*@__PURE__*/StateField.define({
	    create() {
	        return HistoryState.empty;
	    },
	    update(state, tr) {
	        let config = tr.state.facet(historyConfig);
	        let fromHist = tr.annotation(fromHistory);
	        if (fromHist) {
	            let item = HistEvent.fromTransaction(tr, fromHist.selection), from = fromHist.side;
	            let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;
	            if (item)
	                other = updateBranch(other, other.length, config.minDepth, item);
	            else
	                other = addSelection(other, tr.startState.selection);
	            return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);
	        }
	        let isolate = tr.annotation(isolateHistory);
	        if (isolate == "full" || isolate == "before")
	            state = state.isolate();
	        if (tr.annotation(Transaction.addToHistory) === false)
	            return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;
	        let event = HistEvent.fromTransaction(tr);
	        let time = tr.annotation(Transaction.time), userEvent = tr.annotation(Transaction.userEvent);
	        if (event)
	            state = state.addChanges(event, time, userEvent, config, tr);
	        else if (tr.selection)
	            state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);
	        if (isolate == "full" || isolate == "after")
	            state = state.isolate();
	        return state;
	    },
	    toJSON(value) {
	        return { done: value.done.map(e => e.toJSON()), undone: value.undone.map(e => e.toJSON()) };
	    },
	    fromJSON(json) {
	        return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));
	    }
	});
	/**
	Create a history extension with the given configuration.
	*/
	function history(config = {}) {
	    return [
	        historyField_,
	        historyConfig.of(config),
	        EditorView.domEventHandlers({
	            beforeinput(e, view) {
	                let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
	                if (!command)
	                    return false;
	                e.preventDefault();
	                return command(view);
	            }
	        })
	    ];
	}
	function cmd(side, selection) {
	    return function ({ state, dispatch }) {
	        if (!selection && state.readOnly)
	            return false;
	        let historyState = state.field(historyField_, false);
	        if (!historyState)
	            return false;
	        let tr = historyState.pop(side, state, selection);
	        if (!tr)
	            return false;
	        dispatch(tr);
	        return true;
	    };
	}
	/**
	Undo a single group of history events. Returns false if no group
	was available.
	*/
	const undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);
	/**
	Redo a group of history events. Returns false if no group was
	available.
	*/
	const redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);
	/**
	Undo a change or selection change.
	*/
	const undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);
	/**
	Redo a change or selection change.
	*/
	const redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);
	// History events store groups of changes or effects that need to be
	// undone/redone together.
	class HistEvent {
	    constructor(
	    // The changes in this event. Normal events hold at least one
	    // change or effect. But it may be necessary to store selection
	    // events before the first change, in which case a special type of
	    // instance is created which doesn't hold any changes, with
	    // changes == startSelection == undefined
	    changes, 
	    // The effects associated with this event
	    effects, 
	    // Accumulated mapping (from addToHistory==false) that should be
	    // applied to events below this one.
	    mapped, 
	    // The selection before this event
	    startSelection, 
	    // Stores selection changes after this event, to be used for
	    // selection undo/redo.
	    selectionsAfter) {
	        this.changes = changes;
	        this.effects = effects;
	        this.mapped = mapped;
	        this.startSelection = startSelection;
	        this.selectionsAfter = selectionsAfter;
	    }
	    setSelAfter(after) {
	        return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);
	    }
	    toJSON() {
	        var _a, _b, _c;
	        return {
	            changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),
	            mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),
	            startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),
	            selectionsAfter: this.selectionsAfter.map(s => s.toJSON())
	        };
	    }
	    static fromJSON(json) {
	        return new HistEvent(json.changes && ChangeSet.fromJSON(json.changes), [], json.mapped && ChangeDesc.fromJSON(json.mapped), json.startSelection && EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(EditorSelection.fromJSON));
	    }
	    // This does not check `addToHistory` and such, it assumes the
	    // transaction needs to be converted to an item. Returns null when
	    // there are no changes or effects in the transaction.
	    static fromTransaction(tr, selection) {
	        let effects = none;
	        for (let invert of tr.startState.facet(invertedEffects)) {
	            let result = invert(tr);
	            if (result.length)
	                effects = effects.concat(result);
	        }
	        if (!effects.length && tr.changes.empty)
	            return null;
	        return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);
	    }
	    static selection(selections) {
	        return new HistEvent(undefined, none, undefined, undefined, selections);
	    }
	}
	function updateBranch(branch, to, maxLen, newEvent) {
	    let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;
	    let newBranch = branch.slice(start, to);
	    newBranch.push(newEvent);
	    return newBranch;
	}
	function isAdjacent(a, b) {
	    let ranges = [], isAdjacent = false;
	    a.iterChangedRanges((f, t) => ranges.push(f, t));
	    b.iterChangedRanges((_f, _t, f, t) => {
	        for (let i = 0; i < ranges.length;) {
	            let from = ranges[i++], to = ranges[i++];
	            if (t >= from && f <= to)
	                isAdjacent = true;
	        }
	    });
	    return isAdjacent;
	}
	function eqSelectionShape(a, b) {
	    return a.ranges.length == b.ranges.length &&
	        a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;
	}
	function conc(a, b) {
	    return !a.length ? b : !b.length ? a : a.concat(b);
	}
	const none = [];
	const MaxSelectionsPerEvent = 200;
	function addSelection(branch, selection) {
	    if (!branch.length) {
	        return [HistEvent.selection([selection])];
	    }
	    else {
	        let lastEvent = branch[branch.length - 1];
	        let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));
	        if (sels.length && sels[sels.length - 1].eq(selection))
	            return branch;
	        sels.push(selection);
	        return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));
	    }
	}
	// Assumes the top item has one or more selectionAfter values
	function popSelection(branch) {
	    let last = branch[branch.length - 1];
	    let newBranch = branch.slice();
	    newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));
	    return newBranch;
	}
	// Add a mapping to the top event in the given branch. If this maps
	// away all the changes and effects in that item, drop it and
	// propagate the mapping to the next item.
	function addMappingToBranch(branch, mapping) {
	    if (!branch.length)
	        return branch;
	    let length = branch.length, selections = none;
	    while (length) {
	        let event = mapEvent(branch[length - 1], mapping, selections);
	        if (event.changes && !event.changes.empty || event.effects.length) { // Event survived mapping
	            let result = branch.slice(0, length);
	            result[length - 1] = event;
	            return result;
	        }
	        else { // Drop this event, since there's no changes or effects left
	            mapping = event.mapped;
	            length--;
	            selections = event.selectionsAfter;
	        }
	    }
	    return selections.length ? [HistEvent.selection(selections)] : none;
	}
	function mapEvent(event, mapping, extraSelections) {
	    let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);
	    // Change-less events don't store mappings (they are always the last event in a branch)
	    if (!event.changes)
	        return HistEvent.selection(selections);
	    let mappedChanges = event.changes.map(mapping), before = mapping.mapDesc(event.changes, true);
	    let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;
	    return new HistEvent(mappedChanges, StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);
	}
	const joinableUserEvent = /^(input\.type|delete)($|\.)/;
	class HistoryState {
	    constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {
	        this.done = done;
	        this.undone = undone;
	        this.prevTime = prevTime;
	        this.prevUserEvent = prevUserEvent;
	    }
	    isolate() {
	        return this.prevTime ? new HistoryState(this.done, this.undone) : this;
	    }
	    addChanges(event, time, userEvent, config, tr) {
	        let done = this.done, lastEvent = done[done.length - 1];
	        if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes &&
	            (!userEvent || joinableUserEvent.test(userEvent)) &&
	            ((!lastEvent.selectionsAfter.length &&
	                time - this.prevTime < config.newGroupDelay &&
	                config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes))) ||
	                // For compose (but not compose.start) events, always join with previous event
	                userEvent == "input.type.compose")) {
	            done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));
	        }
	        else {
	            done = updateBranch(done, done.length, config.minDepth, event);
	        }
	        return new HistoryState(done, none, time, userEvent);
	    }
	    addSelection(selection, time, userEvent, newGroupDelay) {
	        let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;
	        if (last.length > 0 &&
	            time - this.prevTime < newGroupDelay &&
	            userEvent == this.prevUserEvent && userEvent && /^select($|\.)/.test(userEvent) &&
	            eqSelectionShape(last[last.length - 1], selection))
	            return this;
	        return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);
	    }
	    addMapping(mapping) {
	        return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);
	    }
	    pop(side, state, onlySelection) {
	        let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;
	        if (branch.length == 0)
	            return null;
	        let event = branch[branch.length - 1], selection = event.selectionsAfter[0] || state.selection;
	        if (onlySelection && event.selectionsAfter.length) {
	            return state.update({
	                selection: event.selectionsAfter[event.selectionsAfter.length - 1],
	                annotations: fromHistory.of({ side, rest: popSelection(branch), selection }),
	                userEvent: side == 0 /* BranchName.Done */ ? "select.undo" : "select.redo",
	                scrollIntoView: true
	            });
	        }
	        else if (!event.changes) {
	            return null;
	        }
	        else {
	            let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);
	            if (event.mapped)
	                rest = addMappingToBranch(rest, event.mapped);
	            return state.update({
	                changes: event.changes,
	                selection: event.startSelection,
	                effects: event.effects,
	                annotations: fromHistory.of({ side, rest, selection }),
	                filter: false,
	                userEvent: side == 0 /* BranchName.Done */ ? "undo" : "redo",
	                scrollIntoView: true
	            });
	        }
	    }
	}
	HistoryState.empty = /*@__PURE__*/new HistoryState(none, none);
	/**
	Default key bindings for the undo history.

	- Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).
	- Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).
	- Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).
	- Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).
	*/
	const historyKeymap = [
	    { key: "Mod-z", run: undo, preventDefault: true },
	    { key: "Mod-y", mac: "Mod-Shift-z", run: redo, preventDefault: true },
	    { linux: "Ctrl-Shift-z", run: redo, preventDefault: true },
	    { key: "Mod-u", run: undoSelection, preventDefault: true },
	    { key: "Alt-u", mac: "Mod-Shift-u", run: redoSelection, preventDefault: true }
	];

	function updateSel(sel, by) {
	    return EditorSelection.create(sel.ranges.map(by), sel.mainIndex);
	}
	function setSel(state, selection) {
	    return state.update({ selection, scrollIntoView: true, userEvent: "select" });
	}
	function moveSel({ state, dispatch }, how) {
	    let selection = updateSel(state.selection, how);
	    if (selection.eq(state.selection, true))
	        return false;
	    dispatch(setSel(state, selection));
	    return true;
	}
	function rangeEnd(range, forward) {
	    return EditorSelection.cursor(forward ? range.to : range.from);
	}
	function cursorByChar(view, forward) {
	    return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));
	}
	function ltrAtCursor(view) {
	    return view.textDirectionAt(view.state.selection.main.head) == Direction.LTR;
	}
	/**
	Move the selection one character to the left (which is backward in
	left-to-right text, forward in right-to-left text).
	*/
	const cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));
	/**
	Move the selection one character to the right.
	*/
	const cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));
	function cursorByGroup(view, forward) {
	    return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));
	}
	/**
	Move the selection to the left across one group of word or
	non-word (but also non-space) characters.
	*/
	const cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));
	/**
	Move the selection one group to the right.
	*/
	const cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));
	function interestingNode(state, node, bracketProp) {
	    if (node.type.prop(bracketProp))
	        return true;
	    let len = node.to - node.from;
	    return len && (len > 2 || /[^\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;
	}
	function moveBySyntax(state, start, forward) {
	    let pos = syntaxTree(state).resolveInner(start.head);
	    let bracketProp = forward ? NodeProp.closedBy : NodeProp.openedBy;
	    // Scan forward through child nodes to see if there's an interesting
	    // node ahead.
	    for (let at = start.head;;) {
	        let next = forward ? pos.childAfter(at) : pos.childBefore(at);
	        if (!next)
	            break;
	        if (interestingNode(state, next, bracketProp))
	            pos = next;
	        else
	            at = forward ? next.to : next.from;
	    }
	    let bracket = pos.type.prop(bracketProp), match, newPos;
	    if (bracket && (match = forward ? matchBrackets(state, pos.from, 1) : matchBrackets(state, pos.to, -1)) && match.matched)
	        newPos = forward ? match.end.to : match.end.from;
	    else
	        newPos = forward ? pos.to : pos.from;
	    return EditorSelection.cursor(newPos, forward ? -1 : 1);
	}
	/**
	Move the cursor over the next syntactic element to the left.
	*/
	const cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
	/**
	Move the cursor over the next syntactic element to the right.
	*/
	const cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
	function cursorByLine(view, forward) {
	    return moveSel(view, range => {
	        if (!range.empty)
	            return rangeEnd(range, forward);
	        let moved = view.moveVertically(range, forward);
	        return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);
	    });
	}
	/**
	Move the selection one line up.
	*/
	const cursorLineUp = view => cursorByLine(view, false);
	/**
	Move the selection one line down.
	*/
	const cursorLineDown = view => cursorByLine(view, true);
	function pageInfo(view) {
	    let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;
	    let marginTop = 0, marginBottom = 0, height;
	    if (selfScroll) {
	        for (let source of view.state.facet(EditorView.scrollMargins)) {
	            let margins = source(view);
	            if (margins === null || margins === void 0 ? void 0 : margins.top)
	                marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);
	            if (margins === null || margins === void 0 ? void 0 : margins.bottom)
	                marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);
	        }
	        height = view.scrollDOM.clientHeight - marginTop - marginBottom;
	    }
	    else {
	        height = (view.dom.ownerDocument.defaultView || window).innerHeight;
	    }
	    return { marginTop, marginBottom, selfScroll,
	        height: Math.max(view.defaultLineHeight, height - 5) };
	}
	function cursorByPage(view, forward) {
	    let page = pageInfo(view);
	    let { state } = view, selection = updateSel(state.selection, range => {
	        return range.empty ? view.moveVertically(range, forward, page.height)
	            : rangeEnd(range, forward);
	    });
	    if (selection.eq(state.selection))
	        return false;
	    let effect;
	    if (page.selfScroll) {
	        let startPos = view.coordsAtPos(state.selection.main.head);
	        let scrollRect = view.scrollDOM.getBoundingClientRect();
	        let scrollTop = scrollRect.top + page.marginTop, scrollBottom = scrollRect.bottom - page.marginBottom;
	        if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom)
	            effect = EditorView.scrollIntoView(selection.main.head, { y: "start", yMargin: startPos.top - scrollTop });
	    }
	    view.dispatch(setSel(state, selection), { effects: effect });
	    return true;
	}
	/**
	Move the selection one page up.
	*/
	const cursorPageUp = view => cursorByPage(view, false);
	/**
	Move the selection one page down.
	*/
	const cursorPageDown = view => cursorByPage(view, true);
	function moveByLineBoundary(view, start, forward) {
	    let line = view.lineBlockAt(start.head), moved = view.moveToLineBoundary(start, forward);
	    if (moved.head == start.head && moved.head != (forward ? line.to : line.from))
	        moved = view.moveToLineBoundary(start, forward, false);
	    if (!forward && moved.head == line.from && line.length) {
	        let space = /^\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;
	        if (space && start.head != line.from + space)
	            moved = EditorSelection.cursor(line.from + space);
	    }
	    return moved;
	}
	/**
	Move the selection to the next line wrap point, or to the end of
	the line if there isn't one left on this line.
	*/
	const cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));
	/**
	Move the selection to previous line wrap point, or failing that to
	the start of the line. If the line is indented, and the cursor
	isn't already at the end of the indentation, this will move to the
	end of the indentation instead of the start of the line.
	*/
	const cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));
	/**
	Move the selection one line wrap point to the left.
	*/
	const cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
	/**
	Move the selection one line wrap point to the right.
	*/
	const cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
	/**
	Move the selection to the start of the line.
	*/
	const cursorLineStart = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
	/**
	Move the selection to the end of the line.
	*/
	const cursorLineEnd = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
	function toMatchingBracket(state, dispatch, extend) {
	    let found = false, selection = updateSel(state.selection, range => {
	        let matching = matchBrackets(state, range.head, -1)
	            || matchBrackets(state, range.head, 1)
	            || (range.head > 0 && matchBrackets(state, range.head - 1, 1))
	            || (range.head < state.doc.length && matchBrackets(state, range.head + 1, -1));
	        if (!matching || !matching.end)
	            return range;
	        found = true;
	        let head = matching.start.from == range.head ? matching.end.to : matching.end.from;
	        return extend ? EditorSelection.range(range.anchor, head) : EditorSelection.cursor(head);
	    });
	    if (!found)
	        return false;
	    dispatch(setSel(state, selection));
	    return true;
	}
	/**
	Move the selection to the bracket matching the one it is currently
	on, if any.
	*/
	const cursorMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, false);
	function extendSel(view, how) {
	    let selection = updateSel(view.state.selection, range => {
	        let head = how(range);
	        return EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);
	    });
	    if (selection.eq(view.state.selection))
	        return false;
	    view.dispatch(setSel(view.state, selection));
	    return true;
	}
	function selectByChar(view, forward) {
	    return extendSel(view, range => view.moveByChar(range, forward));
	}
	/**
	Move the selection head one character to the left, while leaving
	the anchor in place.
	*/
	const selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));
	/**
	Move the selection head one character to the right.
	*/
	const selectCharRight = view => selectByChar(view, ltrAtCursor(view));
	function selectByGroup(view, forward) {
	    return extendSel(view, range => view.moveByGroup(range, forward));
	}
	/**
	Move the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to
	the left.
	*/
	const selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));
	/**
	Move the selection head one group to the right.
	*/
	const selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));
	/**
	Move the selection head over the next syntactic element to the left.
	*/
	const selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
	/**
	Move the selection head over the next syntactic element to the right.
	*/
	const selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
	function selectByLine(view, forward) {
	    return extendSel(view, range => view.moveVertically(range, forward));
	}
	/**
	Move the selection head one line up.
	*/
	const selectLineUp = view => selectByLine(view, false);
	/**
	Move the selection head one line down.
	*/
	const selectLineDown = view => selectByLine(view, true);
	function selectByPage(view, forward) {
	    return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));
	}
	/**
	Move the selection head one page up.
	*/
	const selectPageUp = view => selectByPage(view, false);
	/**
	Move the selection head one page down.
	*/
	const selectPageDown = view => selectByPage(view, true);
	/**
	Move the selection head to the next line boundary.
	*/
	const selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));
	/**
	Move the selection head to the previous line boundary.
	*/
	const selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));
	/**
	Move the selection head one line boundary to the left.
	*/
	const selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
	/**
	Move the selection head one line boundary to the right.
	*/
	const selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
	/**
	Move the selection head to the start of the line.
	*/
	const selectLineStart = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from));
	/**
	Move the selection head to the end of the line.
	*/
	const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to));
	/**
	Move the selection to the start of the document.
	*/
	const cursorDocStart = ({ state, dispatch }) => {
	    dispatch(setSel(state, { anchor: 0 }));
	    return true;
	};
	/**
	Move the selection to the end of the document.
	*/
	const cursorDocEnd = ({ state, dispatch }) => {
	    dispatch(setSel(state, { anchor: state.doc.length }));
	    return true;
	};
	/**
	Move the selection head to the start of the document.
	*/
	const selectDocStart = ({ state, dispatch }) => {
	    dispatch(setSel(state, { anchor: state.selection.main.anchor, head: 0 }));
	    return true;
	};
	/**
	Move the selection head to the end of the document.
	*/
	const selectDocEnd = ({ state, dispatch }) => {
	    dispatch(setSel(state, { anchor: state.selection.main.anchor, head: state.doc.length }));
	    return true;
	};
	/**
	Select the entire document.
	*/
	const selectAll = ({ state, dispatch }) => {
	    dispatch(state.update({ selection: { anchor: 0, head: state.doc.length }, userEvent: "select" }));
	    return true;
	};
	/**
	Expand the selection to cover entire lines.
	*/
	const selectLine = ({ state, dispatch }) => {
	    let ranges = selectedLineBlocks(state).map(({ from, to }) => EditorSelection.range(from, Math.min(to + 1, state.doc.length)));
	    dispatch(state.update({ selection: EditorSelection.create(ranges), userEvent: "select" }));
	    return true;
	};
	/**
	Select the next syntactic construct that is larger than the
	selection. Note that this will only work insofar as the language
	[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
	syntax tree.
	*/
	const selectParentSyntax = ({ state, dispatch }) => {
	    let selection = updateSel(state.selection, range => {
	        var _a;
	        let stack = syntaxTree(state).resolveStack(range.from, 1);
	        for (let cur = stack; cur; cur = cur.next) {
	            let { node } = cur;
	            if (((node.from < range.from && node.to >= range.to) ||
	                (node.to > range.to && node.from <= range.from)) &&
	                ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent))
	                return EditorSelection.range(node.to, node.from);
	        }
	        return range;
	    });
	    dispatch(setSel(state, selection));
	    return true;
	};
	/**
	Simplify the current selection. When multiple ranges are selected,
	reduce it to its main range. Otherwise, if the selection is
	non-empty, convert it to a cursor selection.
	*/
	const simplifySelection = ({ state, dispatch }) => {
	    let cur = state.selection, selection = null;
	    if (cur.ranges.length > 1)
	        selection = EditorSelection.create([cur.main]);
	    else if (!cur.main.empty)
	        selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
	    if (!selection)
	        return false;
	    dispatch(setSel(state, selection));
	    return true;
	};
	function deleteBy(target, by) {
	    if (target.state.readOnly)
	        return false;
	    let event = "delete.selection", { state } = target;
	    let changes = state.changeByRange(range => {
	        let { from, to } = range;
	        if (from == to) {
	            let towards = by(range);
	            if (towards < from) {
	                event = "delete.backward";
	                towards = skipAtomic(target, towards, false);
	            }
	            else if (towards > from) {
	                event = "delete.forward";
	                towards = skipAtomic(target, towards, true);
	            }
	            from = Math.min(from, towards);
	            to = Math.max(to, towards);
	        }
	        else {
	            from = skipAtomic(target, from, false);
	            to = skipAtomic(target, to, true);
	        }
	        return from == to ? { range } : { changes: { from, to }, range: EditorSelection.cursor(from, from < range.head ? -1 : 1) };
	    });
	    if (changes.changes.empty)
	        return false;
	    target.dispatch(state.update(changes, {
	        scrollIntoView: true,
	        userEvent: event,
	        effects: event == "delete.selection" ? EditorView.announce.of(state.phrase("Selection deleted")) : undefined
	    }));
	    return true;
	}
	function skipAtomic(target, pos, forward) {
	    if (target instanceof EditorView)
	        for (let ranges of target.state.facet(EditorView.atomicRanges).map(f => f(target)))
	            ranges.between(pos, pos, (from, to) => {
	                if (from < pos && to > pos)
	                    pos = forward ? to : from;
	            });
	    return pos;
	}
	const deleteByChar = (target, forward) => deleteBy(target, range => {
	    let pos = range.from, { state } = target, line = state.doc.lineAt(pos), before, targetPos;
	    if (!forward && pos > line.from && pos < line.from + 200 &&
	        !/[^ \t]/.test(before = line.text.slice(0, pos - line.from))) {
	        if (before[before.length - 1] == "\t")
	            return pos - 1;
	        let col = countColumn(before, state.tabSize), drop = col % getIndentUnit(state) || getIndentUnit(state);
	        for (let i = 0; i < drop && before[before.length - 1 - i] == " "; i++)
	            pos--;
	        targetPos = pos;
	    }
	    else {
	        targetPos = findClusterBreak(line.text, pos - line.from, forward, forward) + line.from;
	        if (targetPos == pos && line.number != (forward ? state.doc.lines : 1))
	            targetPos += forward ? 1 : -1;
	        else if (!forward && /[\ufe00-\ufe0f]/.test(line.text.slice(targetPos - line.from, pos - line.from)))
	            targetPos = findClusterBreak(line.text, targetPos - line.from, false, false) + line.from;
	    }
	    return targetPos;
	});
	/**
	Delete the selection, or, for cursor selections, the character
	before the cursor.
	*/
	const deleteCharBackward = view => deleteByChar(view, false);
	/**
	Delete the selection or the character after the cursor.
	*/
	const deleteCharForward = view => deleteByChar(view, true);
	const deleteByGroup = (target, forward) => deleteBy(target, range => {
	    let pos = range.head, { state } = target, line = state.doc.lineAt(pos);
	    let categorize = state.charCategorizer(pos);
	    for (let cat = null;;) {
	        if (pos == (forward ? line.to : line.from)) {
	            if (pos == range.head && line.number != (forward ? state.doc.lines : 1))
	                pos += forward ? 1 : -1;
	            break;
	        }
	        let next = findClusterBreak(line.text, pos - line.from, forward) + line.from;
	        let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);
	        let nextCat = categorize(nextChar);
	        if (cat != null && nextCat != cat)
	            break;
	        if (nextChar != " " || pos != range.head)
	            cat = nextCat;
	        pos = next;
	    }
	    return pos;
	});
	/**
	Delete the selection or backward until the end of the next
	[group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of
	whitespace when they consist of a single space.
	*/
	const deleteGroupBackward = target => deleteByGroup(target, false);
	/**
	Delete the selection or forward until the end of the next group.
	*/
	const deleteGroupForward = target => deleteByGroup(target, true);
	/**
	Delete the selection, or, if it is a cursor selection, delete to
	the end of the line. If the cursor is directly at the end of the
	line, delete the line break after it.
	*/
	const deleteToLineEnd = view => deleteBy(view, range => {
	    let lineEnd = view.lineBlockAt(range.head).to;
	    return range.head < lineEnd ? lineEnd : Math.min(view.state.doc.length, range.head + 1);
	});
	/**
	Delete the selection, or, if it is a cursor selection, delete to
	the start of the line or the next line wrap before the cursor.
	*/
	const deleteLineBoundaryBackward = view => deleteBy(view, range => {
	    let lineStart = view.moveToLineBoundary(range, false).head;
	    return range.head > lineStart ? lineStart : Math.max(0, range.head - 1);
	});
	/**
	Delete the selection, or, if it is a cursor selection, delete to
	the end of the line or the next line wrap after the cursor.
	*/
	const deleteLineBoundaryForward = view => deleteBy(view, range => {
	    let lineStart = view.moveToLineBoundary(range, true).head;
	    return range.head < lineStart ? lineStart : Math.min(view.state.doc.length, range.head + 1);
	});
	/**
	Replace each selection range with a line break, leaving the cursor
	on the line before the break.
	*/
	const splitLine = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    let changes = state.changeByRange(range => {
	        return { changes: { from: range.from, to: range.to, insert: Text$1.of(["", ""]) },
	            range: EditorSelection.cursor(range.from) };
	    });
	    dispatch(state.update(changes, { scrollIntoView: true, userEvent: "input" }));
	    return true;
	};
	/**
	Flip the characters before and after the cursor(s).
	*/
	const transposeChars = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    let changes = state.changeByRange(range => {
	        if (!range.empty || range.from == 0 || range.from == state.doc.length)
	            return { range };
	        let pos = range.from, line = state.doc.lineAt(pos);
	        let from = pos == line.from ? pos - 1 : findClusterBreak(line.text, pos - line.from, false) + line.from;
	        let to = pos == line.to ? pos + 1 : findClusterBreak(line.text, pos - line.from, true) + line.from;
	        return { changes: { from, to, insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos)) },
	            range: EditorSelection.cursor(to) };
	    });
	    if (changes.changes.empty)
	        return false;
	    dispatch(state.update(changes, { scrollIntoView: true, userEvent: "move.character" }));
	    return true;
	};
	function selectedLineBlocks(state) {
	    let blocks = [], upto = -1;
	    for (let range of state.selection.ranges) {
	        let startLine = state.doc.lineAt(range.from), endLine = state.doc.lineAt(range.to);
	        if (!range.empty && range.to == endLine.from)
	            endLine = state.doc.lineAt(range.to - 1);
	        if (upto >= startLine.number) {
	            let prev = blocks[blocks.length - 1];
	            prev.to = endLine.to;
	            prev.ranges.push(range);
	        }
	        else {
	            blocks.push({ from: startLine.from, to: endLine.to, ranges: [range] });
	        }
	        upto = endLine.number + 1;
	    }
	    return blocks;
	}
	function moveLine(state, dispatch, forward) {
	    if (state.readOnly)
	        return false;
	    let changes = [], ranges = [];
	    for (let block of selectedLineBlocks(state)) {
	        if (forward ? block.to == state.doc.length : block.from == 0)
	            continue;
	        let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);
	        let size = nextLine.length + 1;
	        if (forward) {
	            changes.push({ from: block.to, to: nextLine.to }, { from: block.from, insert: nextLine.text + state.lineBreak });
	            for (let r of block.ranges)
	                ranges.push(EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));
	        }
	        else {
	            changes.push({ from: nextLine.from, to: block.from }, { from: block.to, insert: state.lineBreak + nextLine.text });
	            for (let r of block.ranges)
	                ranges.push(EditorSelection.range(r.anchor - size, r.head - size));
	        }
	    }
	    if (!changes.length)
	        return false;
	    dispatch(state.update({
	        changes,
	        scrollIntoView: true,
	        selection: EditorSelection.create(ranges, state.selection.mainIndex),
	        userEvent: "move.line"
	    }));
	    return true;
	}
	/**
	Move the selected lines up one line.
	*/
	const moveLineUp = ({ state, dispatch }) => moveLine(state, dispatch, false);
	/**
	Move the selected lines down one line.
	*/
	const moveLineDown = ({ state, dispatch }) => moveLine(state, dispatch, true);
	function copyLine(state, dispatch, forward) {
	    if (state.readOnly)
	        return false;
	    let changes = [];
	    for (let block of selectedLineBlocks(state)) {
	        if (forward)
	            changes.push({ from: block.from, insert: state.doc.slice(block.from, block.to) + state.lineBreak });
	        else
	            changes.push({ from: block.to, insert: state.lineBreak + state.doc.slice(block.from, block.to) });
	    }
	    dispatch(state.update({ changes, scrollIntoView: true, userEvent: "input.copyline" }));
	    return true;
	}
	/**
	Create a copy of the selected lines. Keep the selection in the top copy.
	*/
	const copyLineUp = ({ state, dispatch }) => copyLine(state, dispatch, false);
	/**
	Create a copy of the selected lines. Keep the selection in the bottom copy.
	*/
	const copyLineDown = ({ state, dispatch }) => copyLine(state, dispatch, true);
	/**
	Delete selected lines.
	*/
	const deleteLine = view => {
	    if (view.state.readOnly)
	        return false;
	    let { state } = view, changes = state.changes(selectedLineBlocks(state).map(({ from, to }) => {
	        if (from > 0)
	            from--;
	        else if (to < state.doc.length)
	            to++;
	        return { from, to };
	    }));
	    let selection = updateSel(state.selection, range => view.moveVertically(range, true)).map(changes);
	    view.dispatch({ changes, selection, scrollIntoView: true, userEvent: "delete.line" });
	    return true;
	};
	function isBetweenBrackets(state, pos) {
	    if (/\(\)|\[\]|\{\}/.test(state.sliceDoc(pos - 1, pos + 1)))
	        return { from: pos, to: pos };
	    let context = syntaxTree(state).resolveInner(pos);
	    let before = context.childBefore(pos), after = context.childAfter(pos), closedBy;
	    if (before && after && before.to <= pos && after.from >= pos &&
	        (closedBy = before.type.prop(NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 &&
	        state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from &&
	        !/\S/.test(state.sliceDoc(before.to, after.from)))
	        return { from: before.to, to: after.from };
	    return null;
	}
	/**
	Replace the selection with a newline and indent the newly created
	line(s). If the current line consists only of whitespace, this
	will also delete that whitespace. When the cursor is between
	matching brackets, an additional newline will be inserted after
	the cursor.
	*/
	const insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);
	/**
	Create a blank, indented line below the current line.
	*/
	const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
	function newlineAndIndent(atEof) {
	    return ({ state, dispatch }) => {
	        if (state.readOnly)
	            return false;
	        let changes = state.changeByRange(range => {
	            let { from, to } = range, line = state.doc.lineAt(from);
	            let explode = !atEof && from == to && isBetweenBrackets(state, from);
	            if (atEof)
	                from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;
	            let cx = new IndentContext(state, { simulateBreak: from, simulateDoubleBreak: !!explode });
	            let indent = getIndentation(cx, from);
	            if (indent == null)
	                indent = countColumn(/^\s*/.exec(state.doc.lineAt(from).text)[0], state.tabSize);
	            while (to < line.to && /\s/.test(line.text[to - line.from]))
	                to++;
	            if (explode)
	                ({ from, to } = explode);
	            else if (from > line.from && from < line.from + 100 && !/\S/.test(line.text.slice(0, from)))
	                from = line.from;
	            let insert = ["", indentString(state, indent)];
	            if (explode)
	                insert.push(indentString(state, cx.lineIndent(line.from, -1)));
	            return { changes: { from, to, insert: Text$1.of(insert) },
	                range: EditorSelection.cursor(from + 1 + insert[1].length) };
	        });
	        dispatch(state.update(changes, { scrollIntoView: true, userEvent: "input" }));
	        return true;
	    };
	}
	function changeBySelectedLine(state, f) {
	    let atLine = -1;
	    return state.changeByRange(range => {
	        let changes = [];
	        for (let pos = range.from; pos <= range.to;) {
	            let line = state.doc.lineAt(pos);
	            if (line.number > atLine && (range.empty || range.to > line.from)) {
	                f(line, changes, range);
	                atLine = line.number;
	            }
	            pos = line.to + 1;
	        }
	        let changeSet = state.changes(changes);
	        return { changes,
	            range: EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1)) };
	    });
	}
	/**
	Auto-indent the selected lines. This uses the [indentation service
	facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
	information.
	*/
	const indentSelection = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    let updated = Object.create(null);
	    let context = new IndentContext(state, { overrideIndentation: start => {
	            let found = updated[start];
	            return found == null ? -1 : found;
	        } });
	    let changes = changeBySelectedLine(state, (line, changes, range) => {
	        let indent = getIndentation(context, line.from);
	        if (indent == null)
	            return;
	        if (!/\S/.test(line.text))
	            indent = 0;
	        let cur = /^\s*/.exec(line.text)[0];
	        let norm = indentString(state, indent);
	        if (cur != norm || range.from < line.from + cur.length) {
	            updated[line.from] = indent;
	            changes.push({ from: line.from, to: line.from + cur.length, insert: norm });
	        }
	    });
	    if (!changes.changes.empty)
	        dispatch(state.update(changes, { userEvent: "indent" }));
	    return true;
	};
	/**
	Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
	lines.
	*/
	const indentMore = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
	        changes.push({ from: line.from, insert: state.facet(indentUnit) });
	    }), { userEvent: "input.indent" }));
	    return true;
	};
	/**
	Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
	selected lines.
	*/
	const indentLess = ({ state, dispatch }) => {
	    if (state.readOnly)
	        return false;
	    dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
	        let space = /^\s*/.exec(line.text)[0];
	        if (!space)
	            return;
	        let col = countColumn(space, state.tabSize), keep = 0;
	        let insert = indentString(state, Math.max(0, col - getIndentUnit(state)));
	        while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep))
	            keep++;
	        changes.push({ from: line.from + keep, to: line.from + space.length, insert: insert.slice(keep) });
	    }), { userEvent: "delete.dedent" }));
	    return true;
	};
	/**
	Array of key bindings containing the Emacs-style bindings that are
	available on macOS by default.

	 - Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
	 - Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
	 - Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
	 - Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
	 - Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
	 - Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
	 - Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
	 - Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
	 - Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)
	 - Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
	 - Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)
	 - Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)
	 - Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)
	 - Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)
	*/
	const emacsStyleKeymap = [
	    { key: "Ctrl-b", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },
	    { key: "Ctrl-f", run: cursorCharRight, shift: selectCharRight },
	    { key: "Ctrl-p", run: cursorLineUp, shift: selectLineUp },
	    { key: "Ctrl-n", run: cursorLineDown, shift: selectLineDown },
	    { key: "Ctrl-a", run: cursorLineStart, shift: selectLineStart },
	    { key: "Ctrl-e", run: cursorLineEnd, shift: selectLineEnd },
	    { key: "Ctrl-d", run: deleteCharForward },
	    { key: "Ctrl-h", run: deleteCharBackward },
	    { key: "Ctrl-k", run: deleteToLineEnd },
	    { key: "Ctrl-Alt-h", run: deleteGroupBackward },
	    { key: "Ctrl-o", run: splitLine },
	    { key: "Ctrl-t", run: transposeChars },
	    { key: "Ctrl-v", run: cursorPageDown },
	];
	/**
	An array of key bindings closely sticking to platform-standard or
	widely used bindings. (This includes the bindings from
	[`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`
	property changed to `mac`.)

	 - ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
	 - ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
	 - Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)
	 - Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)
	 - Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
	 - Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
	 - ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
	 - ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
	 - Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
	 - Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
	 - Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
	 - Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
	 - PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
	 - PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
	 - Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)
	 - End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)
	 - Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
	 - Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
	 - Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)
	 - Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)
	 - Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
	 - Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
	 - Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
	 - Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)
	 - Cmd-Backspace (macOS): [`deleteLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryBackward).
	 - Cmd-Delete (macOS): [`deleteLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryForward).
	*/
	const standardKeymap = /*@__PURE__*/[
	    { key: "ArrowLeft", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },
	    { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: cursorGroupLeft, shift: selectGroupLeft, preventDefault: true },
	    { mac: "Cmd-ArrowLeft", run: cursorLineBoundaryLeft, shift: selectLineBoundaryLeft, preventDefault: true },
	    { key: "ArrowRight", run: cursorCharRight, shift: selectCharRight, preventDefault: true },
	    { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: cursorGroupRight, shift: selectGroupRight, preventDefault: true },
	    { mac: "Cmd-ArrowRight", run: cursorLineBoundaryRight, shift: selectLineBoundaryRight, preventDefault: true },
	    { key: "ArrowUp", run: cursorLineUp, shift: selectLineUp, preventDefault: true },
	    { mac: "Cmd-ArrowUp", run: cursorDocStart, shift: selectDocStart },
	    { mac: "Ctrl-ArrowUp", run: cursorPageUp, shift: selectPageUp },
	    { key: "ArrowDown", run: cursorLineDown, shift: selectLineDown, preventDefault: true },
	    { mac: "Cmd-ArrowDown", run: cursorDocEnd, shift: selectDocEnd },
	    { mac: "Ctrl-ArrowDown", run: cursorPageDown, shift: selectPageDown },
	    { key: "PageUp", run: cursorPageUp, shift: selectPageUp },
	    { key: "PageDown", run: cursorPageDown, shift: selectPageDown },
	    { key: "Home", run: cursorLineBoundaryBackward, shift: selectLineBoundaryBackward, preventDefault: true },
	    { key: "Mod-Home", run: cursorDocStart, shift: selectDocStart },
	    { key: "End", run: cursorLineBoundaryForward, shift: selectLineBoundaryForward, preventDefault: true },
	    { key: "Mod-End", run: cursorDocEnd, shift: selectDocEnd },
	    { key: "Enter", run: insertNewlineAndIndent },
	    { key: "Mod-a", run: selectAll },
	    { key: "Backspace", run: deleteCharBackward, shift: deleteCharBackward },
	    { key: "Delete", run: deleteCharForward },
	    { key: "Mod-Backspace", mac: "Alt-Backspace", run: deleteGroupBackward },
	    { key: "Mod-Delete", mac: "Alt-Delete", run: deleteGroupForward },
	    { mac: "Mod-Backspace", run: deleteLineBoundaryBackward },
	    { mac: "Mod-Delete", run: deleteLineBoundaryForward }
	].concat(/*@__PURE__*/emacsStyleKeymap.map(b => ({ mac: b.key, run: b.run, shift: b.shift })));
	/**
	The default keymap. Includes all bindings from
	[`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:

	- Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)
	- Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)
	- Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)
	- Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)
	- Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)
	- Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)
	- Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)
	- Ctrl-Enter (Cmd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)
	- Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)
	- Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)
	- Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)
	- Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)
	- Ctrl-Alt-\\ (Cmd-Alt-\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)
	- Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)
	- Shift-Ctrl-\\ (Shift-Cmd-\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)
	- Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).
	- Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).
	*/
	const defaultKeymap = /*@__PURE__*/[
	    { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: cursorSyntaxLeft, shift: selectSyntaxLeft },
	    { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: cursorSyntaxRight, shift: selectSyntaxRight },
	    { key: "Alt-ArrowUp", run: moveLineUp },
	    { key: "Shift-Alt-ArrowUp", run: copyLineUp },
	    { key: "Alt-ArrowDown", run: moveLineDown },
	    { key: "Shift-Alt-ArrowDown", run: copyLineDown },
	    { key: "Escape", run: simplifySelection },
	    { key: "Mod-Enter", run: insertBlankLine },
	    { key: "Alt-l", mac: "Ctrl-l", run: selectLine },
	    { key: "Mod-i", run: selectParentSyntax, preventDefault: true },
	    { key: "Mod-[", run: indentLess },
	    { key: "Mod-]", run: indentMore },
	    { key: "Mod-Alt-\\", run: indentSelection },
	    { key: "Shift-Mod-k", run: deleteLine },
	    { key: "Shift-Mod-\\", run: cursorMatchingBracket },
	    { key: "Mod-/", run: toggleComment },
	    { key: "Alt-A", run: toggleBlockComment }
	].concat(standardKeymap);
	/**
	A binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and
	Shift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).
	Please see the [Tab example](../../examples/tab/) before using
	this.
	*/
	const indentWithTab = { key: "Tab", run: indentMore, shift: indentLess };

	function crelt() {
	  var elt = arguments[0];
	  if (typeof elt == "string") elt = document.createElement(elt);
	  var i = 1, next = arguments[1];
	  if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
	    for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
	      var value = next[name];
	      if (typeof value == "string") elt.setAttribute(name, value);
	      else if (value != null) elt[name] = value;
	    }
	    i++;
	  }
	  for (; i < arguments.length; i++) add$1(elt, arguments[i]);
	  return elt
	}

	function add$1(elt, child) {
	  if (typeof child == "string") {
	    elt.appendChild(document.createTextNode(child));
	  } else if (child == null) ; else if (child.nodeType != null) {
	    elt.appendChild(child);
	  } else if (Array.isArray(child)) {
	    for (var i = 0; i < child.length; i++) add$1(elt, child[i]);
	  } else {
	    throw new RangeError("Unsupported child node: " + child)
	  }
	}

	const basicNormalize = typeof String.prototype.normalize == "function"
	    ? x => x.normalize("NFKD") : x => x;
	/**
	A search cursor provides an iterator over text matches in a
	document.
	*/
	class SearchCursor {
	    /**
	    Create a text cursor. The query is the search string, `from` to
	    `to` provides the region to search.
	    
	    When `normalize` is given, it will be called, on both the query
	    string and the content it is matched against, before comparing.
	    You can, for example, create a case-insensitive search by
	    passing `s => s.toLowerCase()`.
	    
	    Text is always normalized with
	    [`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
	    (when supported).
	    */
	    constructor(text, query, from = 0, to = text.length, normalize, test) {
	        this.test = test;
	        /**
	        The current match (only holds a meaningful value after
	        [`next`](https://codemirror.net/6/docs/ref/#search.SearchCursor.next) has been called and when
	        `done` is false).
	        */
	        this.value = { from: 0, to: 0 };
	        /**
	        Whether the end of the iterated region has been reached.
	        */
	        this.done = false;
	        this.matches = [];
	        this.buffer = "";
	        this.bufferPos = 0;
	        this.iter = text.iterRange(from, to);
	        this.bufferStart = from;
	        this.normalize = normalize ? x => normalize(basicNormalize(x)) : basicNormalize;
	        this.query = this.normalize(query);
	    }
	    peek() {
	        if (this.bufferPos == this.buffer.length) {
	            this.bufferStart += this.buffer.length;
	            this.iter.next();
	            if (this.iter.done)
	                return -1;
	            this.bufferPos = 0;
	            this.buffer = this.iter.value;
	        }
	        return codePointAt(this.buffer, this.bufferPos);
	    }
	    /**
	    Look for the next match. Updates the iterator's
	    [`value`](https://codemirror.net/6/docs/ref/#search.SearchCursor.value) and
	    [`done`](https://codemirror.net/6/docs/ref/#search.SearchCursor.done) properties. Should be called
	    at least once before using the cursor.
	    */
	    next() {
	        while (this.matches.length)
	            this.matches.pop();
	        return this.nextOverlapping();
	    }
	    /**
	    The `next` method will ignore matches that partially overlap a
	    previous match. This method behaves like `next`, but includes
	    such matches.
	    */
	    nextOverlapping() {
	        for (;;) {
	            let next = this.peek();
	            if (next < 0) {
	                this.done = true;
	                return this;
	            }
	            let str = fromCodePoint(next), start = this.bufferStart + this.bufferPos;
	            this.bufferPos += codePointSize(next);
	            let norm = this.normalize(str);
	            for (let i = 0, pos = start;; i++) {
	                let code = norm.charCodeAt(i);
	                let match = this.match(code, pos, this.bufferPos + this.bufferStart);
	                if (i == norm.length - 1) {
	                    if (match) {
	                        this.value = match;
	                        return this;
	                    }
	                    break;
	                }
	                if (pos == start && i < str.length && str.charCodeAt(i) == code)
	                    pos++;
	            }
	        }
	    }
	    match(code, pos, end) {
	        let match = null;
	        for (let i = 0; i < this.matches.length; i += 2) {
	            let index = this.matches[i], keep = false;
	            if (this.query.charCodeAt(index) == code) {
	                if (index == this.query.length - 1) {
	                    match = { from: this.matches[i + 1], to: end };
	                }
	                else {
	                    this.matches[i]++;
	                    keep = true;
	                }
	            }
	            if (!keep) {
	                this.matches.splice(i, 2);
	                i -= 2;
	            }
	        }
	        if (this.query.charCodeAt(0) == code) {
	            if (this.query.length == 1)
	                match = { from: pos, to: end };
	            else
	                this.matches.push(1, pos);
	        }
	        if (match && this.test && !this.test(match.from, match.to, this.buffer, this.bufferStart))
	            match = null;
	        return match;
	    }
	}
	if (typeof Symbol != "undefined")
	    SearchCursor.prototype[Symbol.iterator] = function () { return this; };

	const empty = { from: -1, to: -1, match: /*@__PURE__*//.*/.exec("") };
	const baseFlags = "gm" + (/x/.unicode == null ? "" : "u");
	/**
	This class is similar to [`SearchCursor`](https://codemirror.net/6/docs/ref/#search.SearchCursor)
	but searches for a regular expression pattern instead of a plain
	string.
	*/
	class RegExpCursor {
	    /**
	    Create a cursor that will search the given range in the given
	    document. `query` should be the raw pattern (as you'd pass it to
	    `new RegExp`).
	    */
	    constructor(text, query, options, from = 0, to = text.length) {
	        this.text = text;
	        this.to = to;
	        this.curLine = "";
	        /**
	        Set to `true` when the cursor has reached the end of the search
	        range.
	        */
	        this.done = false;
	        /**
	        Will contain an object with the extent of the match and the
	        match object when [`next`](https://codemirror.net/6/docs/ref/#search.RegExpCursor.next)
	        sucessfully finds a match.
	        */
	        this.value = empty;
	        if (/\\[sWDnr]|\n|\r|\[\^/.test(query))
	            return new MultilineRegExpCursor(text, query, options, from, to);
	        this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
	        this.test = options === null || options === void 0 ? void 0 : options.test;
	        this.iter = text.iter();
	        let startLine = text.lineAt(from);
	        this.curLineStart = startLine.from;
	        this.matchPos = toCharEnd(text, from);
	        this.getLine(this.curLineStart);
	    }
	    getLine(skip) {
	        this.iter.next(skip);
	        if (this.iter.lineBreak) {
	            this.curLine = "";
	        }
	        else {
	            this.curLine = this.iter.value;
	            if (this.curLineStart + this.curLine.length > this.to)
	                this.curLine = this.curLine.slice(0, this.to - this.curLineStart);
	            this.iter.next();
	        }
	    }
	    nextLine() {
	        this.curLineStart = this.curLineStart + this.curLine.length + 1;
	        if (this.curLineStart > this.to)
	            this.curLine = "";
	        else
	            this.getLine(0);
	    }
	    /**
	    Move to the next match, if there is one.
	    */
	    next() {
	        for (let off = this.matchPos - this.curLineStart;;) {
	            this.re.lastIndex = off;
	            let match = this.matchPos <= this.to && this.re.exec(this.curLine);
	            if (match) {
	                let from = this.curLineStart + match.index, to = from + match[0].length;
	                this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
	                if (from == this.curLineStart + this.curLine.length)
	                    this.nextLine();
	                if ((from < to || from > this.value.to) && (!this.test || this.test(from, to, match))) {
	                    this.value = { from, to, match };
	                    return this;
	                }
	                off = this.matchPos - this.curLineStart;
	            }
	            else if (this.curLineStart + this.curLine.length < this.to) {
	                this.nextLine();
	                off = 0;
	            }
	            else {
	                this.done = true;
	                return this;
	            }
	        }
	    }
	}
	const flattened = /*@__PURE__*/new WeakMap();
	// Reusable (partially) flattened document strings
	class FlattenedDoc {
	    constructor(from, text) {
	        this.from = from;
	        this.text = text;
	    }
	    get to() { return this.from + this.text.length; }
	    static get(doc, from, to) {
	        let cached = flattened.get(doc);
	        if (!cached || cached.from >= to || cached.to <= from) {
	            let flat = new FlattenedDoc(from, doc.sliceString(from, to));
	            flattened.set(doc, flat);
	            return flat;
	        }
	        if (cached.from == from && cached.to == to)
	            return cached;
	        let { text, from: cachedFrom } = cached;
	        if (cachedFrom > from) {
	            text = doc.sliceString(from, cachedFrom) + text;
	            cachedFrom = from;
	        }
	        if (cached.to < to)
	            text += doc.sliceString(cached.to, to);
	        flattened.set(doc, new FlattenedDoc(cachedFrom, text));
	        return new FlattenedDoc(from, text.slice(from - cachedFrom, to - cachedFrom));
	    }
	}
	class MultilineRegExpCursor {
	    constructor(text, query, options, from, to) {
	        this.text = text;
	        this.to = to;
	        this.done = false;
	        this.value = empty;
	        this.matchPos = toCharEnd(text, from);
	        this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
	        this.test = options === null || options === void 0 ? void 0 : options.test;
	        this.flat = FlattenedDoc.get(text, from, this.chunkEnd(from + 5000 /* Chunk.Base */));
	    }
	    chunkEnd(pos) {
	        return pos >= this.to ? this.to : this.text.lineAt(pos).to;
	    }
	    next() {
	        for (;;) {
	            let off = this.re.lastIndex = this.matchPos - this.flat.from;
	            let match = this.re.exec(this.flat.text);
	            // Skip empty matches directly after the last match
	            if (match && !match[0] && match.index == off) {
	                this.re.lastIndex = off + 1;
	                match = this.re.exec(this.flat.text);
	            }
	            if (match) {
	                let from = this.flat.from + match.index, to = from + match[0].length;
	                // If a match goes almost to the end of a noncomplete chunk, try
	                // again, since it'll likely be able to match more
	                if ((this.flat.to >= this.to || match.index + match[0].length <= this.flat.text.length - 10) &&
	                    (!this.test || this.test(from, to, match))) {
	                    this.value = { from, to, match };
	                    this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
	                    return this;
	                }
	            }
	            if (this.flat.to == this.to) {
	                this.done = true;
	                return this;
	            }
	            // Grow the flattened doc
	            this.flat = FlattenedDoc.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
	        }
	    }
	}
	if (typeof Symbol != "undefined") {
	    RegExpCursor.prototype[Symbol.iterator] = MultilineRegExpCursor.prototype[Symbol.iterator] =
	        function () { return this; };
	}
	function validRegExp(source) {
	    try {
	        new RegExp(source, baseFlags);
	        return true;
	    }
	    catch (_a) {
	        return false;
	    }
	}
	function toCharEnd(text, pos) {
	    if (pos >= text.length)
	        return pos;
	    let line = text.lineAt(pos), next;
	    while (pos < line.to && (next = line.text.charCodeAt(pos - line.from)) >= 0xDC00 && next < 0xE000)
	        pos++;
	    return pos;
	}

	function createLineDialog(view) {
	    let line = String(view.state.doc.lineAt(view.state.selection.main.head).number);
	    let input = crelt("input", { class: "cm-textfield", name: "line", value: line });
	    let dom = crelt("form", {
	        class: "cm-gotoLine",
	        onkeydown: (event) => {
	            if (event.keyCode == 27) { // Escape
	                event.preventDefault();
	                view.dispatch({ effects: dialogEffect.of(false) });
	                view.focus();
	            }
	            else if (event.keyCode == 13) { // Enter
	                event.preventDefault();
	                go();
	            }
	        },
	        onsubmit: (event) => {
	            event.preventDefault();
	            go();
	        }
	    }, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", { class: "cm-button", type: "submit" }, view.state.phrase("go")));
	    function go() {
	        let match = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(input.value);
	        if (!match)
	            return;
	        let { state } = view, startLine = state.doc.lineAt(state.selection.main.head);
	        let [, sign, ln, cl, percent] = match;
	        let col = cl ? +cl.slice(1) : 0;
	        let line = ln ? +ln : startLine.number;
	        if (ln && percent) {
	            let pc = line / 100;
	            if (sign)
	                pc = pc * (sign == "-" ? -1 : 1) + (startLine.number / state.doc.lines);
	            line = Math.round(state.doc.lines * pc);
	        }
	        else if (ln && sign) {
	            line = line * (sign == "-" ? -1 : 1) + startLine.number;
	        }
	        let docLine = state.doc.line(Math.max(1, Math.min(state.doc.lines, line)));
	        let selection = EditorSelection.cursor(docLine.from + Math.max(0, Math.min(col, docLine.length)));
	        view.dispatch({
	            effects: [dialogEffect.of(false), EditorView.scrollIntoView(selection.from, { y: 'center' })],
	            selection,
	        });
	        view.focus();
	    }
	    return { dom };
	}
	const dialogEffect = /*@__PURE__*/StateEffect.define();
	const dialogField = /*@__PURE__*/StateField.define({
	    create() { return true; },
	    update(value, tr) {
	        for (let e of tr.effects)
	            if (e.is(dialogEffect))
	                value = e.value;
	        return value;
	    },
	    provide: f => showPanel.from(f, val => val ? createLineDialog : null)
	});
	/**
	Command that shows a dialog asking the user for a line number, and
	when a valid position is provided, moves the cursor to that line.

	Supports line numbers, relative line offsets prefixed with `+` or
	`-`, document percentages suffixed with `%`, and an optional
	column position by adding `:` and a second number after the line
	number.
	*/
	const gotoLine = view => {
	    let panel = getPanel(view, createLineDialog);
	    if (!panel) {
	        let effects = [dialogEffect.of(true)];
	        if (view.state.field(dialogField, false) == null)
	            effects.push(StateEffect.appendConfig.of([dialogField, baseTheme$1]));
	        view.dispatch({ effects });
	        panel = getPanel(view, createLineDialog);
	    }
	    if (panel)
	        panel.dom.querySelector("input").select();
	    return true;
	};
	const baseTheme$1 = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-panel.cm-gotoLine": {
	        padding: "2px 6px 4px",
	        "& label": { fontSize: "80%" }
	    }
	});

	const defaultHighlightOptions = {
	    highlightWordAroundCursor: false,
	    minSelectionLength: 1,
	    maxMatches: 100,
	    wholeWords: false
	};
	const highlightConfig = /*@__PURE__*/Facet.define({
	    combine(options) {
	        return combineConfig(options, defaultHighlightOptions, {
	            highlightWordAroundCursor: (a, b) => a || b,
	            minSelectionLength: Math.min,
	            maxMatches: Math.min
	        });
	    }
	});
	/**
	This extension highlights text that matches the selection. It uses
	the `"cm-selectionMatch"` class for the highlighting. When
	`highlightWordAroundCursor` is enabled, the word at the cursor
	itself will be highlighted with `"cm-selectionMatch-main"`.
	*/
	function highlightSelectionMatches(options) {
	    let ext = [defaultTheme, matchHighlighter];
	    if (options)
	        ext.push(highlightConfig.of(options));
	    return ext;
	}
	const matchDeco = /*@__PURE__*/Decoration.mark({ class: "cm-selectionMatch" });
	const mainMatchDeco = /*@__PURE__*/Decoration.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
	// Whether the characters directly outside the given positions are non-word characters
	function insideWordBoundaries(check, state, from, to) {
	    return (from == 0 || check(state.sliceDoc(from - 1, from)) != CharCategory.Word) &&
	        (to == state.doc.length || check(state.sliceDoc(to, to + 1)) != CharCategory.Word);
	}
	// Whether the characters directly at the given positions are word characters
	function insideWord(check, state, from, to) {
	    return check(state.sliceDoc(from, from + 1)) == CharCategory.Word
	        && check(state.sliceDoc(to - 1, to)) == CharCategory.Word;
	}
	const matchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.decorations = this.getDeco(view);
	    }
	    update(update) {
	        if (update.selectionSet || update.docChanged || update.viewportChanged)
	            this.decorations = this.getDeco(update.view);
	    }
	    getDeco(view) {
	        let conf = view.state.facet(highlightConfig);
	        let { state } = view, sel = state.selection;
	        if (sel.ranges.length > 1)
	            return Decoration.none;
	        let range = sel.main, query, check = null;
	        if (range.empty) {
	            if (!conf.highlightWordAroundCursor)
	                return Decoration.none;
	            let word = state.wordAt(range.head);
	            if (!word)
	                return Decoration.none;
	            check = state.charCategorizer(range.head);
	            query = state.sliceDoc(word.from, word.to);
	        }
	        else {
	            let len = range.to - range.from;
	            if (len < conf.minSelectionLength || len > 200)
	                return Decoration.none;
	            if (conf.wholeWords) {
	                query = state.sliceDoc(range.from, range.to); // TODO: allow and include leading/trailing space?
	                check = state.charCategorizer(range.head);
	                if (!(insideWordBoundaries(check, state, range.from, range.to) &&
	                    insideWord(check, state, range.from, range.to)))
	                    return Decoration.none;
	            }
	            else {
	                query = state.sliceDoc(range.from, range.to);
	                if (!query)
	                    return Decoration.none;
	            }
	        }
	        let deco = [];
	        for (let part of view.visibleRanges) {
	            let cursor = new SearchCursor(state.doc, query, part.from, part.to);
	            while (!cursor.next().done) {
	                let { from, to } = cursor.value;
	                if (!check || insideWordBoundaries(check, state, from, to)) {
	                    if (range.empty && from <= range.from && to >= range.to)
	                        deco.push(mainMatchDeco.range(from, to));
	                    else if (from >= range.to || to <= range.from)
	                        deco.push(matchDeco.range(from, to));
	                    if (deco.length > conf.maxMatches)
	                        return Decoration.none;
	                }
	            }
	        }
	        return Decoration.set(deco);
	    }
	}, {
	    decorations: v => v.decorations
	});
	const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
	    ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
	});
	// Select the words around the cursors.
	const selectWord = ({ state, dispatch }) => {
	    let { selection } = state;
	    let newSel = EditorSelection.create(selection.ranges.map(range => state.wordAt(range.head) || EditorSelection.cursor(range.head)), selection.mainIndex);
	    if (newSel.eq(selection))
	        return false;
	    dispatch(state.update({ selection: newSel }));
	    return true;
	};
	// Find next occurrence of query relative to last cursor. Wrap around
	// the document if there are no more matches.
	function findNextOccurrence(state, query) {
	    let { main, ranges } = state.selection;
	    let word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
	    for (let cycled = false, cursor = new SearchCursor(state.doc, query, ranges[ranges.length - 1].to);;) {
	        cursor.next();
	        if (cursor.done) {
	            if (cycled)
	                return null;
	            cursor = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
	            cycled = true;
	        }
	        else {
	            if (cycled && ranges.some(r => r.from == cursor.value.from))
	                continue;
	            if (fullWord) {
	                let word = state.wordAt(cursor.value.from);
	                if (!word || word.from != cursor.value.from || word.to != cursor.value.to)
	                    continue;
	            }
	            return cursor.value;
	        }
	    }
	}
	/**
	Select next occurrence of the current selection. Expand selection
	to the surrounding word when the selection is empty.
	*/
	const selectNextOccurrence = ({ state, dispatch }) => {
	    let { ranges } = state.selection;
	    if (ranges.some(sel => sel.from === sel.to))
	        return selectWord({ state, dispatch });
	    let searchedText = state.sliceDoc(ranges[0].from, ranges[0].to);
	    if (state.selection.ranges.some(r => state.sliceDoc(r.from, r.to) != searchedText))
	        return false;
	    let range = findNextOccurrence(state, searchedText);
	    if (!range)
	        return false;
	    dispatch(state.update({
	        selection: state.selection.addRange(EditorSelection.range(range.from, range.to), false),
	        effects: EditorView.scrollIntoView(range.to)
	    }));
	    return true;
	};

	const searchConfigFacet = /*@__PURE__*/Facet.define({
	    combine(configs) {
	        return combineConfig(configs, {
	            top: false,
	            caseSensitive: false,
	            literal: false,
	            regexp: false,
	            wholeWord: false,
	            createPanel: view => new SearchPanel(view),
	            scrollToMatch: range => EditorView.scrollIntoView(range)
	        });
	    }
	});
	/**
	A search query. Part of the editor's search state.
	*/
	class SearchQuery {
	    /**
	    Create a query object.
	    */
	    constructor(config) {
	        this.search = config.search;
	        this.caseSensitive = !!config.caseSensitive;
	        this.literal = !!config.literal;
	        this.regexp = !!config.regexp;
	        this.replace = config.replace || "";
	        this.valid = !!this.search && (!this.regexp || validRegExp(this.search));
	        this.unquoted = this.unquote(this.search);
	        this.wholeWord = !!config.wholeWord;
	    }
	    /**
	    @internal
	    */
	    unquote(text) {
	        return this.literal ? text :
	            text.replace(/\\([nrt\\])/g, (_, ch) => ch == "n" ? "\n" : ch == "r" ? "\r" : ch == "t" ? "\t" : "\\");
	    }
	    /**
	    Compare this query to another query.
	    */
	    eq(other) {
	        return this.search == other.search && this.replace == other.replace &&
	            this.caseSensitive == other.caseSensitive && this.regexp == other.regexp &&
	            this.wholeWord == other.wholeWord;
	    }
	    /**
	    @internal
	    */
	    create() {
	        return this.regexp ? new RegExpQuery(this) : new StringQuery(this);
	    }
	    /**
	    Get a search cursor for this query, searching through the given
	    range in the given state.
	    */
	    getCursor(state, from = 0, to) {
	        let st = state.doc ? state : EditorState.create({ doc: state });
	        if (to == null)
	            to = st.doc.length;
	        return this.regexp ? regexpCursor(this, st, from, to) : stringCursor(this, st, from, to);
	    }
	}
	class QueryType {
	    constructor(spec) {
	        this.spec = spec;
	    }
	}
	function stringCursor(spec, state, from, to) {
	    return new SearchCursor(state.doc, spec.unquoted, from, to, spec.caseSensitive ? undefined : x => x.toLowerCase(), spec.wholeWord ? stringWordTest(state.doc, state.charCategorizer(state.selection.main.head)) : undefined);
	}
	function stringWordTest(doc, categorizer) {
	    return (from, to, buf, bufPos) => {
	        if (bufPos > from || bufPos + buf.length < to) {
	            bufPos = Math.max(0, from - 2);
	            buf = doc.sliceString(bufPos, Math.min(doc.length, to + 2));
	        }
	        return (categorizer(charBefore(buf, from - bufPos)) != CharCategory.Word ||
	            categorizer(charAfter(buf, from - bufPos)) != CharCategory.Word) &&
	            (categorizer(charAfter(buf, to - bufPos)) != CharCategory.Word ||
	                categorizer(charBefore(buf, to - bufPos)) != CharCategory.Word);
	    };
	}
	class StringQuery extends QueryType {
	    constructor(spec) {
	        super(spec);
	    }
	    nextMatch(state, curFrom, curTo) {
	        let cursor = stringCursor(this.spec, state, curTo, state.doc.length).nextOverlapping();
	        if (cursor.done)
	            cursor = stringCursor(this.spec, state, 0, curFrom).nextOverlapping();
	        return cursor.done ? null : cursor.value;
	    }
	    // Searching in reverse is, rather than implementing an inverted search
	    // cursor, done by scanning chunk after chunk forward.
	    prevMatchInRange(state, from, to) {
	        for (let pos = to;;) {
	            let start = Math.max(from, pos - 10000 /* FindPrev.ChunkSize */ - this.spec.unquoted.length);
	            let cursor = stringCursor(this.spec, state, start, pos), range = null;
	            while (!cursor.nextOverlapping().done)
	                range = cursor.value;
	            if (range)
	                return range;
	            if (start == from)
	                return null;
	            pos -= 10000 /* FindPrev.ChunkSize */;
	        }
	    }
	    prevMatch(state, curFrom, curTo) {
	        return this.prevMatchInRange(state, 0, curFrom) ||
	            this.prevMatchInRange(state, curTo, state.doc.length);
	    }
	    getReplacement(_result) { return this.spec.unquote(this.spec.replace); }
	    matchAll(state, limit) {
	        let cursor = stringCursor(this.spec, state, 0, state.doc.length), ranges = [];
	        while (!cursor.next().done) {
	            if (ranges.length >= limit)
	                return null;
	            ranges.push(cursor.value);
	        }
	        return ranges;
	    }
	    highlight(state, from, to, add) {
	        let cursor = stringCursor(this.spec, state, Math.max(0, from - this.spec.unquoted.length), Math.min(to + this.spec.unquoted.length, state.doc.length));
	        while (!cursor.next().done)
	            add(cursor.value.from, cursor.value.to);
	    }
	}
	function regexpCursor(spec, state, from, to) {
	    return new RegExpCursor(state.doc, spec.search, {
	        ignoreCase: !spec.caseSensitive,
	        test: spec.wholeWord ? regexpWordTest(state.charCategorizer(state.selection.main.head)) : undefined
	    }, from, to);
	}
	function charBefore(str, index) {
	    return str.slice(findClusterBreak(str, index, false), index);
	}
	function charAfter(str, index) {
	    return str.slice(index, findClusterBreak(str, index));
	}
	function regexpWordTest(categorizer) {
	    return (_from, _to, match) => !match[0].length ||
	        (categorizer(charBefore(match.input, match.index)) != CharCategory.Word ||
	            categorizer(charAfter(match.input, match.index)) != CharCategory.Word) &&
	            (categorizer(charAfter(match.input, match.index + match[0].length)) != CharCategory.Word ||
	                categorizer(charBefore(match.input, match.index + match[0].length)) != CharCategory.Word);
	}
	class RegExpQuery extends QueryType {
	    nextMatch(state, curFrom, curTo) {
	        let cursor = regexpCursor(this.spec, state, curTo, state.doc.length).next();
	        if (cursor.done)
	            cursor = regexpCursor(this.spec, state, 0, curFrom).next();
	        return cursor.done ? null : cursor.value;
	    }
	    prevMatchInRange(state, from, to) {
	        for (let size = 1;; size++) {
	            let start = Math.max(from, to - size * 10000 /* FindPrev.ChunkSize */);
	            let cursor = regexpCursor(this.spec, state, start, to), range = null;
	            while (!cursor.next().done)
	                range = cursor.value;
	            if (range && (start == from || range.from > start + 10))
	                return range;
	            if (start == from)
	                return null;
	        }
	    }
	    prevMatch(state, curFrom, curTo) {
	        return this.prevMatchInRange(state, 0, curFrom) ||
	            this.prevMatchInRange(state, curTo, state.doc.length);
	    }
	    getReplacement(result) {
	        return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g, (m, i) => i == "$" ? "$"
	            : i == "&" ? result.match[0]
	                : i != "0" && +i < result.match.length ? result.match[i]
	                    : m);
	    }
	    matchAll(state, limit) {
	        let cursor = regexpCursor(this.spec, state, 0, state.doc.length), ranges = [];
	        while (!cursor.next().done) {
	            if (ranges.length >= limit)
	                return null;
	            ranges.push(cursor.value);
	        }
	        return ranges;
	    }
	    highlight(state, from, to, add) {
	        let cursor = regexpCursor(this.spec, state, Math.max(0, from - 250 /* RegExp.HighlightMargin */), Math.min(to + 250 /* RegExp.HighlightMargin */, state.doc.length));
	        while (!cursor.next().done)
	            add(cursor.value.from, cursor.value.to);
	    }
	}
	/**
	A state effect that updates the current search query. Note that
	this only has an effect if the search state has been initialized
	(by including [`search`](https://codemirror.net/6/docs/ref/#search.search) in your configuration or
	by running [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) at least
	once).
	*/
	const setSearchQuery = /*@__PURE__*/StateEffect.define();
	const togglePanel$1 = /*@__PURE__*/StateEffect.define();
	const searchState = /*@__PURE__*/StateField.define({
	    create(state) {
	        return new SearchState(defaultQuery(state).create(), null);
	    },
	    update(value, tr) {
	        for (let effect of tr.effects) {
	            if (effect.is(setSearchQuery))
	                value = new SearchState(effect.value.create(), value.panel);
	            else if (effect.is(togglePanel$1))
	                value = new SearchState(value.query, effect.value ? createSearchPanel : null);
	        }
	        return value;
	    },
	    provide: f => showPanel.from(f, val => val.panel)
	});
	class SearchState {
	    constructor(query, panel) {
	        this.query = query;
	        this.panel = panel;
	    }
	}
	const matchMark = /*@__PURE__*/Decoration.mark({ class: "cm-searchMatch" }), selectedMatchMark = /*@__PURE__*/Decoration.mark({ class: "cm-searchMatch cm-searchMatch-selected" });
	const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
	    constructor(view) {
	        this.view = view;
	        this.decorations = this.highlight(view.state.field(searchState));
	    }
	    update(update) {
	        let state = update.state.field(searchState);
	        if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged)
	            this.decorations = this.highlight(state);
	    }
	    highlight({ query, panel }) {
	        if (!panel || !query.spec.valid)
	            return Decoration.none;
	        let { view } = this;
	        let builder = new RangeSetBuilder();
	        for (let i = 0, ranges = view.visibleRanges, l = ranges.length; i < l; i++) {
	            let { from, to } = ranges[i];
	            while (i < l - 1 && to > ranges[i + 1].from - 2 * 250 /* RegExp.HighlightMargin */)
	                to = ranges[++i].to;
	            query.highlight(view.state, from, to, (from, to) => {
	                let selected = view.state.selection.ranges.some(r => r.from == from && r.to == to);
	                builder.add(from, to, selected ? selectedMatchMark : matchMark);
	            });
	        }
	        return builder.finish();
	    }
	}, {
	    decorations: v => v.decorations
	});
	function searchCommand(f) {
	    return view => {
	        let state = view.state.field(searchState, false);
	        return state && state.query.spec.valid ? f(view, state) : openSearchPanel(view);
	    };
	}
	/**
	Open the search panel if it isn't already open, and move the
	selection to the first match after the current main selection.
	Will wrap around to the start of the document when it reaches the
	end.
	*/
	const findNext = /*@__PURE__*/searchCommand((view, { query }) => {
	    let { to } = view.state.selection.main;
	    let next = query.nextMatch(view.state, to, to);
	    if (!next)
	        return false;
	    let selection = EditorSelection.single(next.from, next.to);
	    let config = view.state.facet(searchConfigFacet);
	    view.dispatch({
	        selection,
	        effects: [announceMatch(view, next), config.scrollToMatch(selection.main, view)],
	        userEvent: "select.search"
	    });
	    selectSearchInput(view);
	    return true;
	});
	/**
	Move the selection to the previous instance of the search query,
	before the current main selection. Will wrap past the start
	of the document to start searching at the end again.
	*/
	const findPrevious = /*@__PURE__*/searchCommand((view, { query }) => {
	    let { state } = view, { from } = state.selection.main;
	    let prev = query.prevMatch(state, from, from);
	    if (!prev)
	        return false;
	    let selection = EditorSelection.single(prev.from, prev.to);
	    let config = view.state.facet(searchConfigFacet);
	    view.dispatch({
	        selection,
	        effects: [announceMatch(view, prev), config.scrollToMatch(selection.main, view)],
	        userEvent: "select.search"
	    });
	    selectSearchInput(view);
	    return true;
	});
	/**
	Select all instances of the search query.
	*/
	const selectMatches = /*@__PURE__*/searchCommand((view, { query }) => {
	    let ranges = query.matchAll(view.state, 1000);
	    if (!ranges || !ranges.length)
	        return false;
	    view.dispatch({
	        selection: EditorSelection.create(ranges.map(r => EditorSelection.range(r.from, r.to))),
	        userEvent: "select.search.matches"
	    });
	    return true;
	});
	/**
	Select all instances of the currently selected text.
	*/
	const selectSelectionMatches = ({ state, dispatch }) => {
	    let sel = state.selection;
	    if (sel.ranges.length > 1 || sel.main.empty)
	        return false;
	    let { from, to } = sel.main;
	    let ranges = [], main = 0;
	    for (let cur = new SearchCursor(state.doc, state.sliceDoc(from, to)); !cur.next().done;) {
	        if (ranges.length > 1000)
	            return false;
	        if (cur.value.from == from)
	            main = ranges.length;
	        ranges.push(EditorSelection.range(cur.value.from, cur.value.to));
	    }
	    dispatch(state.update({
	        selection: EditorSelection.create(ranges, main),
	        userEvent: "select.search.matches"
	    }));
	    return true;
	};
	/**
	Replace the current match of the search query.
	*/
	const replaceNext = /*@__PURE__*/searchCommand((view, { query }) => {
	    let { state } = view, { from, to } = state.selection.main;
	    if (state.readOnly)
	        return false;
	    let next = query.nextMatch(state, from, from);
	    if (!next)
	        return false;
	    let changes = [], selection, replacement;
	    let effects = [];
	    if (next.from == from && next.to == to) {
	        replacement = state.toText(query.getReplacement(next));
	        changes.push({ from: next.from, to: next.to, insert: replacement });
	        next = query.nextMatch(state, next.from, next.to);
	        effects.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
	    }
	    if (next) {
	        let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
	        selection = EditorSelection.single(next.from - off, next.to - off);
	        effects.push(announceMatch(view, next));
	        effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main, view));
	    }
	    view.dispatch({
	        changes, selection, effects,
	        userEvent: "input.replace"
	    });
	    return true;
	});
	/**
	Replace all instances of the search query with the given
	replacement.
	*/
	const replaceAll = /*@__PURE__*/searchCommand((view, { query }) => {
	    if (view.state.readOnly)
	        return false;
	    let changes = query.matchAll(view.state, 1e9).map(match => {
	        let { from, to } = match;
	        return { from, to, insert: query.getReplacement(match) };
	    });
	    if (!changes.length)
	        return false;
	    let announceText = view.state.phrase("replaced $ matches", changes.length) + ".";
	    view.dispatch({
	        changes,
	        effects: EditorView.announce.of(announceText),
	        userEvent: "input.replace.all"
	    });
	    return true;
	});
	function createSearchPanel(view) {
	    return view.state.facet(searchConfigFacet).createPanel(view);
	}
	function defaultQuery(state, fallback) {
	    var _a, _b, _c, _d, _e;
	    let sel = state.selection.main;
	    let selText = sel.empty || sel.to > sel.from + 100 ? "" : state.sliceDoc(sel.from, sel.to);
	    if (fallback && !selText)
	        return fallback;
	    let config = state.facet(searchConfigFacet);
	    return new SearchQuery({
	        search: ((_a = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _a !== void 0 ? _a : config.literal) ? selText : selText.replace(/\n/g, "\\n"),
	        caseSensitive: (_b = fallback === null || fallback === void 0 ? void 0 : fallback.caseSensitive) !== null && _b !== void 0 ? _b : config.caseSensitive,
	        literal: (_c = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _c !== void 0 ? _c : config.literal,
	        regexp: (_d = fallback === null || fallback === void 0 ? void 0 : fallback.regexp) !== null && _d !== void 0 ? _d : config.regexp,
	        wholeWord: (_e = fallback === null || fallback === void 0 ? void 0 : fallback.wholeWord) !== null && _e !== void 0 ? _e : config.wholeWord
	    });
	}
	function getSearchInput(view) {
	    let panel = getPanel(view, createSearchPanel);
	    return panel && panel.dom.querySelector("[main-field]");
	}
	function selectSearchInput(view) {
	    let input = getSearchInput(view);
	    if (input && input == view.root.activeElement)
	        input.select();
	}
	/**
	Make sure the search panel is open and focused.
	*/
	const openSearchPanel = view => {
	    let state = view.state.field(searchState, false);
	    if (state && state.panel) {
	        let searchInput = getSearchInput(view);
	        if (searchInput && searchInput != view.root.activeElement) {
	            let query = defaultQuery(view.state, state.query.spec);
	            if (query.valid)
	                view.dispatch({ effects: setSearchQuery.of(query) });
	            searchInput.focus();
	            searchInput.select();
	        }
	    }
	    else {
	        view.dispatch({ effects: [
	                togglePanel$1.of(true),
	                state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) : StateEffect.appendConfig.of(searchExtensions)
	            ] });
	    }
	    return true;
	};
	/**
	Close the search panel.
	*/
	const closeSearchPanel = view => {
	    let state = view.state.field(searchState, false);
	    if (!state || !state.panel)
	        return false;
	    let panel = getPanel(view, createSearchPanel);
	    if (panel && panel.dom.contains(view.root.activeElement))
	        view.focus();
	    view.dispatch({ effects: togglePanel$1.of(false) });
	    return true;
	};
	/**
	Default search-related key bindings.

	 - Mod-f: [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel)
	 - F3, Mod-g: [`findNext`](https://codemirror.net/6/docs/ref/#search.findNext)
	 - Shift-F3, Shift-Mod-g: [`findPrevious`](https://codemirror.net/6/docs/ref/#search.findPrevious)
	 - Mod-Alt-g: [`gotoLine`](https://codemirror.net/6/docs/ref/#search.gotoLine)
	 - Mod-d: [`selectNextOccurrence`](https://codemirror.net/6/docs/ref/#search.selectNextOccurrence)
	*/
	const searchKeymap = [
	    { key: "Mod-f", run: openSearchPanel, scope: "editor search-panel" },
	    { key: "F3", run: findNext, shift: findPrevious, scope: "editor search-panel", preventDefault: true },
	    { key: "Mod-g", run: findNext, shift: findPrevious, scope: "editor search-panel", preventDefault: true },
	    { key: "Escape", run: closeSearchPanel, scope: "editor search-panel" },
	    { key: "Mod-Shift-l", run: selectSelectionMatches },
	    { key: "Mod-Alt-g", run: gotoLine },
	    { key: "Mod-d", run: selectNextOccurrence, preventDefault: true },
	];
	class SearchPanel {
	    constructor(view) {
	        this.view = view;
	        let query = this.query = view.state.field(searchState).query.spec;
	        this.commit = this.commit.bind(this);
	        this.searchField = crelt("input", {
	            value: query.search,
	            placeholder: phrase(view, "Find"),
	            "aria-label": phrase(view, "Find"),
	            class: "cm-textfield",
	            name: "search",
	            form: "",
	            "main-field": "true",
	            onchange: this.commit,
	            onkeyup: this.commit
	        });
	        this.replaceField = crelt("input", {
	            value: query.replace,
	            placeholder: phrase(view, "Replace"),
	            "aria-label": phrase(view, "Replace"),
	            class: "cm-textfield",
	            name: "replace",
	            form: "",
	            onchange: this.commit,
	            onkeyup: this.commit
	        });
	        this.caseField = crelt("input", {
	            type: "checkbox",
	            name: "case",
	            form: "",
	            checked: query.caseSensitive,
	            onchange: this.commit
	        });
	        this.reField = crelt("input", {
	            type: "checkbox",
	            name: "re",
	            form: "",
	            checked: query.regexp,
	            onchange: this.commit
	        });
	        this.wordField = crelt("input", {
	            type: "checkbox",
	            name: "word",
	            form: "",
	            checked: query.wholeWord,
	            onchange: this.commit
	        });
	        function button(name, onclick, content) {
	            return crelt("button", { class: "cm-button", name, onclick, type: "button" }, content);
	        }
	        this.dom = crelt("div", { onkeydown: (e) => this.keydown(e), class: "cm-search" }, [
	            this.searchField,
	            button("next", () => findNext(view), [phrase(view, "next")]),
	            button("prev", () => findPrevious(view), [phrase(view, "previous")]),
	            button("select", () => selectMatches(view), [phrase(view, "all")]),
	            crelt("label", null, [this.caseField, phrase(view, "match case")]),
	            crelt("label", null, [this.reField, phrase(view, "regexp")]),
	            crelt("label", null, [this.wordField, phrase(view, "by word")]),
	            ...view.state.readOnly ? [] : [
	                crelt("br"),
	                this.replaceField,
	                button("replace", () => replaceNext(view), [phrase(view, "replace")]),
	                button("replaceAll", () => replaceAll(view), [phrase(view, "replace all")])
	            ],
	            crelt("button", {
	                name: "close",
	                onclick: () => closeSearchPanel(view),
	                "aria-label": phrase(view, "close"),
	                type: "button"
	            }, ["×"])
	        ]);
	    }
	    commit() {
	        let query = new SearchQuery({
	            search: this.searchField.value,
	            caseSensitive: this.caseField.checked,
	            regexp: this.reField.checked,
	            wholeWord: this.wordField.checked,
	            replace: this.replaceField.value,
	        });
	        if (!query.eq(this.query)) {
	            this.query = query;
	            this.view.dispatch({ effects: setSearchQuery.of(query) });
	        }
	    }
	    keydown(e) {
	        if (runScopeHandlers(this.view, e, "search-panel")) {
	            e.preventDefault();
	        }
	        else if (e.keyCode == 13 && e.target == this.searchField) {
	            e.preventDefault();
	            (e.shiftKey ? findPrevious : findNext)(this.view);
	        }
	        else if (e.keyCode == 13 && e.target == this.replaceField) {
	            e.preventDefault();
	            replaceNext(this.view);
	        }
	    }
	    update(update) {
	        for (let tr of update.transactions)
	            for (let effect of tr.effects) {
	                if (effect.is(setSearchQuery) && !effect.value.eq(this.query))
	                    this.setQuery(effect.value);
	            }
	    }
	    setQuery(query) {
	        this.query = query;
	        this.searchField.value = query.search;
	        this.replaceField.value = query.replace;
	        this.caseField.checked = query.caseSensitive;
	        this.reField.checked = query.regexp;
	        this.wordField.checked = query.wholeWord;
	    }
	    mount() {
	        this.searchField.select();
	    }
	    get pos() { return 80; }
	    get top() { return this.view.state.facet(searchConfigFacet).top; }
	}
	function phrase(view, phrase) { return view.state.phrase(phrase); }
	const AnnounceMargin = 30;
	const Break = /[\s\.,:;?!]/;
	function announceMatch(view, { from, to }) {
	    let line = view.state.doc.lineAt(from), lineEnd = view.state.doc.lineAt(to).to;
	    let start = Math.max(line.from, from - AnnounceMargin), end = Math.min(lineEnd, to + AnnounceMargin);
	    let text = view.state.sliceDoc(start, end);
	    if (start != line.from) {
	        for (let i = 0; i < AnnounceMargin; i++)
	            if (!Break.test(text[i + 1]) && Break.test(text[i])) {
	                text = text.slice(i);
	                break;
	            }
	    }
	    if (end != lineEnd) {
	        for (let i = text.length - 1; i > text.length - AnnounceMargin; i--)
	            if (!Break.test(text[i - 1]) && Break.test(text[i])) {
	                text = text.slice(0, i);
	                break;
	            }
	    }
	    return EditorView.announce.of(`${view.state.phrase("current match")}. ${text} ${view.state.phrase("on line")} ${line.number}.`);
	}
	const baseTheme$2 = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-panel.cm-search": {
	        padding: "2px 6px 4px",
	        position: "relative",
	        "& [name=close]": {
	            position: "absolute",
	            top: "0",
	            right: "4px",
	            backgroundColor: "inherit",
	            border: "none",
	            font: "inherit",
	            padding: 0,
	            margin: 0
	        },
	        "& input, & button, & label": {
	            margin: ".2em .6em .2em 0"
	        },
	        "& input[type=checkbox]": {
	            marginRight: ".2em"
	        },
	        "& label": {
	            fontSize: "80%",
	            whiteSpace: "pre"
	        }
	    },
	    "&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
	    "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
	    "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
	    "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
	});
	const searchExtensions = [
	    searchState,
	    /*@__PURE__*/Prec.low(searchHighlighter),
	    baseTheme$2
	];

	class SelectedDiagnostic {
	    constructor(from, to, diagnostic) {
	        this.from = from;
	        this.to = to;
	        this.diagnostic = diagnostic;
	    }
	}
	class LintState {
	    constructor(diagnostics, panel, selected) {
	        this.diagnostics = diagnostics;
	        this.panel = panel;
	        this.selected = selected;
	    }
	    static init(diagnostics, panel, state) {
	        // Filter the list of diagnostics for which to create markers
	        let markedDiagnostics = diagnostics;
	        let diagnosticFilter = state.facet(lintConfig).markerFilter;
	        if (diagnosticFilter)
	            markedDiagnostics = diagnosticFilter(markedDiagnostics, state);
	        let ranges = Decoration.set(markedDiagnostics.map((d) => {
	            // For zero-length ranges or ranges covering only a line break, create a widget
	            return d.from == d.to || (d.from == d.to - 1 && state.doc.lineAt(d.from).to == d.from)
	                ? Decoration.widget({
	                    widget: new DiagnosticWidget(d),
	                    diagnostic: d
	                }).range(d.from)
	                : Decoration.mark({
	                    attributes: { class: "cm-lintRange cm-lintRange-" + d.severity + (d.markClass ? " " + d.markClass : "") },
	                    diagnostic: d,
	                    inclusive: true
	                }).range(d.from, d.to);
	        }), true);
	        return new LintState(ranges, panel, findDiagnostic(ranges));
	    }
	}
	function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
	    let found = null;
	    diagnostics.between(after, 1e9, (from, to, { spec }) => {
	        if (diagnostic && spec.diagnostic != diagnostic)
	            return;
	        found = new SelectedDiagnostic(from, to, spec.diagnostic);
	        return false;
	    });
	    return found;
	}
	function hideTooltip(tr, tooltip) {
	    let line = tr.startState.doc.lineAt(tooltip.pos);
	    return !!(tr.effects.some(e => e.is(setDiagnosticsEffect)) || tr.changes.touchesRange(line.from, line.to));
	}
	function maybeEnableLint(state, effects) {
	    return state.field(lintState, false) ? effects : effects.concat(StateEffect.appendConfig.of(lintExtensions));
	}
	/**
	The state effect that updates the set of active diagnostics. Can
	be useful when writing an extension that needs to track these.
	*/
	const setDiagnosticsEffect = /*@__PURE__*/StateEffect.define();
	const togglePanel = /*@__PURE__*/StateEffect.define();
	const movePanelSelection = /*@__PURE__*/StateEffect.define();
	const lintState = /*@__PURE__*/StateField.define({
	    create() {
	        return new LintState(Decoration.none, null, null);
	    },
	    update(value, tr) {
	        if (tr.docChanged) {
	            let mapped = value.diagnostics.map(tr.changes), selected = null;
	            if (value.selected) {
	                let selPos = tr.changes.mapPos(value.selected.from, 1);
	                selected = findDiagnostic(mapped, value.selected.diagnostic, selPos) || findDiagnostic(mapped, null, selPos);
	            }
	            value = new LintState(mapped, value.panel, selected);
	        }
	        for (let effect of tr.effects) {
	            if (effect.is(setDiagnosticsEffect)) {
	                value = LintState.init(effect.value, value.panel, tr.state);
	            }
	            else if (effect.is(togglePanel)) {
	                value = new LintState(value.diagnostics, effect.value ? LintPanel.open : null, value.selected);
	            }
	            else if (effect.is(movePanelSelection)) {
	                value = new LintState(value.diagnostics, value.panel, effect.value);
	            }
	        }
	        return value;
	    },
	    provide: f => [showPanel.from(f, val => val.panel),
	        EditorView.decorations.from(f, s => s.diagnostics)]
	});
	const activeMark = /*@__PURE__*/Decoration.mark({ class: "cm-lintRange cm-lintRange-active", inclusive: true });
	function lintTooltip(view, pos, side) {
	    let { diagnostics } = view.state.field(lintState);
	    let found = [], stackStart = 2e8, stackEnd = 0;
	    diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, { spec }) => {
	        if (pos >= from && pos <= to &&
	            (from == to || ((pos > from || side > 0) && (pos < to || side < 0)))) {
	            found.push(spec.diagnostic);
	            stackStart = Math.min(from, stackStart);
	            stackEnd = Math.max(to, stackEnd);
	        }
	    });
	    let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
	    if (diagnosticFilter)
	        found = diagnosticFilter(found, view.state);
	    if (!found.length)
	        return null;
	    return {
	        pos: stackStart,
	        end: stackEnd,
	        above: view.state.doc.lineAt(stackStart).to < stackEnd,
	        create() {
	            return { dom: diagnosticsTooltip(view, found) };
	        }
	    };
	}
	function diagnosticsTooltip(view, diagnostics) {
	    return crelt("ul", { class: "cm-tooltip-lint" }, diagnostics.map(d => renderDiagnostic(view, d, false)));
	}
	/**
	Command to open and focus the lint panel.
	*/
	const openLintPanel = (view) => {
	    let field = view.state.field(lintState, false);
	    if (!field || !field.panel)
	        view.dispatch({ effects: maybeEnableLint(view.state, [togglePanel.of(true)]) });
	    let panel = getPanel(view, LintPanel.open);
	    if (panel)
	        panel.dom.querySelector(".cm-panel-lint ul").focus();
	    return true;
	};
	/**
	Command to close the lint panel, when open.
	*/
	const closeLintPanel = (view) => {
	    let field = view.state.field(lintState, false);
	    if (!field || !field.panel)
	        return false;
	    view.dispatch({ effects: togglePanel.of(false) });
	    return true;
	};
	/**
	Move the selection to the next diagnostic.
	*/
	const nextDiagnostic = (view) => {
	    let field = view.state.field(lintState, false);
	    if (!field)
	        return false;
	    let sel = view.state.selection.main, next = field.diagnostics.iter(sel.to + 1);
	    if (!next.value) {
	        next = field.diagnostics.iter(0);
	        if (!next.value || next.from == sel.from && next.to == sel.to)
	            return false;
	    }
	    view.dispatch({ selection: { anchor: next.from, head: next.to }, scrollIntoView: true });
	    return true;
	};
	/**
	A set of default key bindings for the lint functionality.

	- Ctrl-Shift-m (Cmd-Shift-m on macOS): [`openLintPanel`](https://codemirror.net/6/docs/ref/#lint.openLintPanel)
	- F8: [`nextDiagnostic`](https://codemirror.net/6/docs/ref/#lint.nextDiagnostic)
	*/
	const lintKeymap = [
	    { key: "Mod-Shift-m", run: openLintPanel, preventDefault: true },
	    { key: "F8", run: nextDiagnostic }
	];
	const lintConfig = /*@__PURE__*/Facet.define({
	    combine(input) {
	        return Object.assign({ sources: input.map(i => i.source).filter(x => x != null) }, combineConfig(input.map(i => i.config), {
	            delay: 750,
	            markerFilter: null,
	            tooltipFilter: null,
	            needsRefresh: null
	        }, {
	            needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)
	        }));
	    }
	});
	function assignKeys(actions) {
	    let assigned = [];
	    if (actions)
	        actions: for (let { name } of actions) {
	            for (let i = 0; i < name.length; i++) {
	                let ch = name[i];
	                if (/[a-zA-Z]/.test(ch) && !assigned.some(c => c.toLowerCase() == ch.toLowerCase())) {
	                    assigned.push(ch);
	                    continue actions;
	                }
	            }
	            assigned.push("");
	        }
	    return assigned;
	}
	function renderDiagnostic(view, diagnostic, inPanel) {
	    var _a;
	    let keys = inPanel ? assignKeys(diagnostic.actions) : [];
	    return crelt("li", { class: "cm-diagnostic cm-diagnostic-" + diagnostic.severity }, crelt("span", { class: "cm-diagnosticText" }, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
	        let fired = false, click = (e) => {
	            e.preventDefault();
	            if (fired)
	                return;
	            fired = true;
	            let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
	            if (found)
	                action.apply(view, found.from, found.to);
	        };
	        let { name } = action, keyIndex = keys[i] ? name.indexOf(keys[i]) : -1;
	        let nameElt = keyIndex < 0 ? name : [name.slice(0, keyIndex),
	            crelt("u", name.slice(keyIndex, keyIndex + 1)),
	            name.slice(keyIndex + 1)];
	        return crelt("button", {
	            type: "button",
	            class: "cm-diagnosticAction",
	            onclick: click,
	            onmousedown: click,
	            "aria-label": ` Action: ${name}${keyIndex < 0 ? "" : ` (access key "${keys[i]})"`}.`
	        }, nameElt);
	    }), diagnostic.source && crelt("div", { class: "cm-diagnosticSource" }, diagnostic.source));
	}
	class DiagnosticWidget extends WidgetType {
	    constructor(diagnostic) {
	        super();
	        this.diagnostic = diagnostic;
	    }
	    eq(other) { return other.diagnostic == this.diagnostic; }
	    toDOM() {
	        return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity });
	    }
	}
	class PanelItem {
	    constructor(view, diagnostic) {
	        this.diagnostic = diagnostic;
	        this.id = "item_" + Math.floor(Math.random() * 0xffffffff).toString(16);
	        this.dom = renderDiagnostic(view, diagnostic, true);
	        this.dom.id = this.id;
	        this.dom.setAttribute("role", "option");
	    }
	}
	class LintPanel {
	    constructor(view) {
	        this.view = view;
	        this.items = [];
	        let onkeydown = (event) => {
	            if (event.keyCode == 27) { // Escape
	                closeLintPanel(this.view);
	                this.view.focus();
	            }
	            else if (event.keyCode == 38 || event.keyCode == 33) { // ArrowUp, PageUp
	                this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);
	            }
	            else if (event.keyCode == 40 || event.keyCode == 34) { // ArrowDown, PageDown
	                this.moveSelection((this.selectedIndex + 1) % this.items.length);
	            }
	            else if (event.keyCode == 36) { // Home
	                this.moveSelection(0);
	            }
	            else if (event.keyCode == 35) { // End
	                this.moveSelection(this.items.length - 1);
	            }
	            else if (event.keyCode == 13) { // Enter
	                this.view.focus();
	            }
	            else if (event.keyCode >= 65 && event.keyCode <= 90 && this.selectedIndex >= 0) { // A-Z
	                let { diagnostic } = this.items[this.selectedIndex], keys = assignKeys(diagnostic.actions);
	                for (let i = 0; i < keys.length; i++)
	                    if (keys[i].toUpperCase().charCodeAt(0) == event.keyCode) {
	                        let found = findDiagnostic(this.view.state.field(lintState).diagnostics, diagnostic);
	                        if (found)
	                            diagnostic.actions[i].apply(view, found.from, found.to);
	                    }
	            }
	            else {
	                return;
	            }
	            event.preventDefault();
	        };
	        let onclick = (event) => {
	            for (let i = 0; i < this.items.length; i++) {
	                if (this.items[i].dom.contains(event.target))
	                    this.moveSelection(i);
	            }
	        };
	        this.list = crelt("ul", {
	            tabIndex: 0,
	            role: "listbox",
	            "aria-label": this.view.state.phrase("Diagnostics"),
	            onkeydown,
	            onclick
	        });
	        this.dom = crelt("div", { class: "cm-panel-lint" }, this.list, crelt("button", {
	            type: "button",
	            name: "close",
	            "aria-label": this.view.state.phrase("close"),
	            onclick: () => closeLintPanel(this.view)
	        }, "×"));
	        this.update();
	    }
	    get selectedIndex() {
	        let selected = this.view.state.field(lintState).selected;
	        if (!selected)
	            return -1;
	        for (let i = 0; i < this.items.length; i++)
	            if (this.items[i].diagnostic == selected.diagnostic)
	                return i;
	        return -1;
	    }
	    update() {
	        let { diagnostics, selected } = this.view.state.field(lintState);
	        let i = 0, needsSync = false, newSelectedItem = null;
	        diagnostics.between(0, this.view.state.doc.length, (_start, _end, { spec }) => {
	            let found = -1, item;
	            for (let j = i; j < this.items.length; j++)
	                if (this.items[j].diagnostic == spec.diagnostic) {
	                    found = j;
	                    break;
	                }
	            if (found < 0) {
	                item = new PanelItem(this.view, spec.diagnostic);
	                this.items.splice(i, 0, item);
	                needsSync = true;
	            }
	            else {
	                item = this.items[found];
	                if (found > i) {
	                    this.items.splice(i, found - i);
	                    needsSync = true;
	                }
	            }
	            if (selected && item.diagnostic == selected.diagnostic) {
	                if (!item.dom.hasAttribute("aria-selected")) {
	                    item.dom.setAttribute("aria-selected", "true");
	                    newSelectedItem = item;
	                }
	            }
	            else if (item.dom.hasAttribute("aria-selected")) {
	                item.dom.removeAttribute("aria-selected");
	            }
	            i++;
	        });
	        while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
	            needsSync = true;
	            this.items.pop();
	        }
	        if (this.items.length == 0) {
	            this.items.push(new PanelItem(this.view, {
	                from: -1, to: -1,
	                severity: "info",
	                message: this.view.state.phrase("No diagnostics")
	            }));
	            needsSync = true;
	        }
	        if (newSelectedItem) {
	            this.list.setAttribute("aria-activedescendant", newSelectedItem.id);
	            this.view.requestMeasure({
	                key: this,
	                read: () => ({ sel: newSelectedItem.dom.getBoundingClientRect(), panel: this.list.getBoundingClientRect() }),
	                write: ({ sel, panel }) => {
	                    let scaleY = panel.height / this.list.offsetHeight;
	                    if (sel.top < panel.top)
	                        this.list.scrollTop -= (panel.top - sel.top) / scaleY;
	                    else if (sel.bottom > panel.bottom)
	                        this.list.scrollTop += (sel.bottom - panel.bottom) / scaleY;
	                }
	            });
	        }
	        else if (this.selectedIndex < 0) {
	            this.list.removeAttribute("aria-activedescendant");
	        }
	        if (needsSync)
	            this.sync();
	    }
	    sync() {
	        let domPos = this.list.firstChild;
	        function rm() {
	            let prev = domPos;
	            domPos = prev.nextSibling;
	            prev.remove();
	        }
	        for (let item of this.items) {
	            if (item.dom.parentNode == this.list) {
	                while (domPos != item.dom)
	                    rm();
	                domPos = item.dom.nextSibling;
	            }
	            else {
	                this.list.insertBefore(item.dom, domPos);
	            }
	        }
	        while (domPos)
	            rm();
	    }
	    moveSelection(selectedIndex) {
	        if (this.selectedIndex < 0)
	            return;
	        let field = this.view.state.field(lintState);
	        let selection = findDiagnostic(field.diagnostics, this.items[selectedIndex].diagnostic);
	        if (!selection)
	            return;
	        this.view.dispatch({
	            selection: { anchor: selection.from, head: selection.to },
	            scrollIntoView: true,
	            effects: movePanelSelection.of(selection)
	        });
	    }
	    static open(view) { return new LintPanel(view); }
	}
	function svg(content, attrs = `viewBox="0 0 40 40"`) {
	    return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
	}
	function underline(color) {
	    return svg(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${color}" fill="none" stroke-width=".7"/>`, `width="6" height="3"`);
	}
	const baseTheme = /*@__PURE__*/EditorView.baseTheme({
	    ".cm-diagnostic": {
	        padding: "3px 6px 3px 8px",
	        marginLeft: "-1px",
	        display: "block",
	        whiteSpace: "pre-wrap"
	    },
	    ".cm-diagnostic-error": { borderLeft: "5px solid #d11" },
	    ".cm-diagnostic-warning": { borderLeft: "5px solid orange" },
	    ".cm-diagnostic-info": { borderLeft: "5px solid #999" },
	    ".cm-diagnostic-hint": { borderLeft: "5px solid #66d" },
	    ".cm-diagnosticAction": {
	        font: "inherit",
	        border: "none",
	        padding: "2px 4px",
	        backgroundColor: "#444",
	        color: "white",
	        borderRadius: "3px",
	        marginLeft: "8px",
	        cursor: "pointer"
	    },
	    ".cm-diagnosticSource": {
	        fontSize: "70%",
	        opacity: .7
	    },
	    ".cm-lintRange": {
	        backgroundPosition: "left bottom",
	        backgroundRepeat: "repeat-x",
	        paddingBottom: "0.7px",
	    },
	    ".cm-lintRange-error": { backgroundImage: /*@__PURE__*/underline("#d11") },
	    ".cm-lintRange-warning": { backgroundImage: /*@__PURE__*/underline("orange") },
	    ".cm-lintRange-info": { backgroundImage: /*@__PURE__*/underline("#999") },
	    ".cm-lintRange-hint": { backgroundImage: /*@__PURE__*/underline("#66d") },
	    ".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
	    ".cm-tooltip-lint": {
	        padding: 0,
	        margin: 0
	    },
	    ".cm-lintPoint": {
	        position: "relative",
	        "&:after": {
	            content: '""',
	            position: "absolute",
	            bottom: 0,
	            left: "-2px",
	            borderLeft: "3px solid transparent",
	            borderRight: "3px solid transparent",
	            borderBottom: "4px solid #d11"
	        }
	    },
	    ".cm-lintPoint-warning": {
	        "&:after": { borderBottomColor: "orange" }
	    },
	    ".cm-lintPoint-info": {
	        "&:after": { borderBottomColor: "#999" }
	    },
	    ".cm-lintPoint-hint": {
	        "&:after": { borderBottomColor: "#66d" }
	    },
	    ".cm-panel.cm-panel-lint": {
	        position: "relative",
	        "& ul": {
	            maxHeight: "100px",
	            overflowY: "auto",
	            "& [aria-selected]": {
	                backgroundColor: "#ddd",
	                "& u": { textDecoration: "underline" }
	            },
	            "&:focus [aria-selected]": {
	                background_fallback: "#bdf",
	                backgroundColor: "Highlight",
	                color_fallback: "white",
	                color: "HighlightText"
	            },
	            "& u": { textDecoration: "none" },
	            padding: 0,
	            margin: 0
	        },
	        "& [name=close]": {
	            position: "absolute",
	            top: "0",
	            right: "2px",
	            background: "inherit",
	            border: "none",
	            font: "inherit",
	            padding: 0,
	            margin: 0
	        }
	    }
	});
	const lintExtensions = [
	    lintState,
	    /*@__PURE__*/EditorView.decorations.compute([lintState], state => {
	        let { selected, panel } = state.field(lintState);
	        return !selected || !panel || selected.from == selected.to ? Decoration.none : Decoration.set([
	            activeMark.range(selected.from, selected.to)
	        ]);
	    }),
	    /*@__PURE__*/hoverTooltip(lintTooltip, { hideOn: hideTooltip }),
	    baseTheme
	];

	/**
	This is an extension value that just pulls together a number of
	extensions that you might want in a basic editor. It is meant as a
	convenient helper to quickly set up CodeMirror without installing
	and importing a lot of separate packages.

	Specifically, it includes...

	 - [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
	 - [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
	 - [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
	 - [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
	 - [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
	 - [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
	 - [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
	 - [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
	 - [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
	 - [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
	 - [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
	 - [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
	 - [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
	 - [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
	 - [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
	 - [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
	 - [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
	 - [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
	 - [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)

	(You'll probably want to add some language package to your setup
	too.)

	This extension does not allow customization. The idea is that,
	once you decide you want to configure your editor more precisely,
	you take this package's source (which is just a bunch of imports
	and an array literal), copy it into your own code, and adjust it
	as desired.
	*/
	var basicSetup = function basicSetup(options) {
	  if (options === void 0) {
	    options = {};
	  }
	  var {
	    crosshairCursor: initCrosshairCursor = false
	  } = options;
	  var keymaps = [];
	  if (options.closeBracketsKeymap !== false) {
	    keymaps = keymaps.concat(closeBracketsKeymap);
	  }
	  if (options.defaultKeymap !== false) {
	    keymaps = keymaps.concat(defaultKeymap);
	  }
	  if (options.searchKeymap !== false) {
	    keymaps = keymaps.concat(searchKeymap);
	  }
	  if (options.historyKeymap !== false) {
	    keymaps = keymaps.concat(historyKeymap);
	  }
	  if (options.foldKeymap !== false) {
	    keymaps = keymaps.concat(foldKeymap);
	  }
	  if (options.completionKeymap !== false) {
	    keymaps = keymaps.concat(completionKeymap);
	  }
	  if (options.lintKeymap !== false) {
	    keymaps = keymaps.concat(lintKeymap);
	  }
	  var extensions = [];
	  if (options.lineNumbers !== false) extensions.push(lineNumbers());
	  if (options.highlightActiveLineGutter !== false) extensions.push(highlightActiveLineGutter());
	  if (options.highlightSpecialChars !== false) extensions.push(highlightSpecialChars());
	  if (options.history !== false) extensions.push(history());
	  if (options.foldGutter !== false) extensions.push(foldGutter());
	  if (options.drawSelection !== false) extensions.push(drawSelection());
	  if (options.dropCursor !== false) extensions.push(dropCursor());
	  if (options.allowMultipleSelections !== false) extensions.push(EditorState.allowMultipleSelections.of(true));
	  if (options.indentOnInput !== false) extensions.push(indentOnInput());
	  if (options.syntaxHighlighting !== false) extensions.push(syntaxHighlighting(defaultHighlightStyle, {
	    fallback: true
	  }));
	  if (options.bracketMatching !== false) extensions.push(bracketMatching());
	  if (options.closeBrackets !== false) extensions.push(closeBrackets());
	  if (options.autocompletion !== false) extensions.push(autocompletion());
	  if (options.rectangularSelection !== false) extensions.push(rectangularSelection());
	  if (initCrosshairCursor !== false) extensions.push(crosshairCursor());
	  if (options.highlightActiveLine !== false) extensions.push(highlightActiveLine());
	  if (options.highlightSelectionMatches !== false) extensions.push(highlightSelectionMatches());
	  if (options.tabSize && typeof options.tabSize === 'number') extensions.push(indentUnit.of(' '.repeat(options.tabSize)));
	  return extensions.concat([keymap.of(keymaps.flat())]).filter(Boolean);
	};

	// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
	const chalky = "#e5c07b", coral = "#e06c75", cyan = "#56b6c2", invalid = "#ffffff", ivory = "#abb2bf", stone = "#7d8799", // Brightened compared to original to increase contrast
	malibu = "#61afef", sage = "#98c379", whiskey = "#d19a66", violet = "#c678dd", darkBackground = "#21252b", highlightBackground = "#2c313a", background = "#282c34", tooltipBackground = "#353a42", selection = "#3E4451", cursor = "#528bff";
	/**
	The editor theme styles for One Dark.
	*/
	const oneDarkTheme = /*@__PURE__*/EditorView.theme({
	    "&": {
	        color: ivory,
	        backgroundColor: background
	    },
	    ".cm-content": {
	        caretColor: cursor
	    },
	    ".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
	    "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
	    ".cm-panels": { backgroundColor: darkBackground, color: ivory },
	    ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
	    ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
	    ".cm-searchMatch": {
	        backgroundColor: "#72a1ff59",
	        outline: "1px solid #457dff"
	    },
	    ".cm-searchMatch.cm-searchMatch-selected": {
	        backgroundColor: "#6199ff2f"
	    },
	    ".cm-activeLine": { backgroundColor: "#6699ff0b" },
	    ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
	    "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
	        backgroundColor: "#bad0f847"
	    },
	    ".cm-gutters": {
	        backgroundColor: background,
	        color: stone,
	        border: "none"
	    },
	    ".cm-activeLineGutter": {
	        backgroundColor: highlightBackground
	    },
	    ".cm-foldPlaceholder": {
	        backgroundColor: "transparent",
	        border: "none",
	        color: "#ddd"
	    },
	    ".cm-tooltip": {
	        border: "none",
	        backgroundColor: tooltipBackground
	    },
	    ".cm-tooltip .cm-tooltip-arrow:before": {
	        borderTopColor: "transparent",
	        borderBottomColor: "transparent"
	    },
	    ".cm-tooltip .cm-tooltip-arrow:after": {
	        borderTopColor: tooltipBackground,
	        borderBottomColor: tooltipBackground
	    },
	    ".cm-tooltip-autocomplete": {
	        "& > ul > li[aria-selected]": {
	            backgroundColor: highlightBackground,
	            color: ivory
	        }
	    }
	}, { dark: true });
	/**
	The highlighting style for code in the One Dark theme.
	*/
	const oneDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
	    { tag: tags$1.keyword,
	        color: violet },
	    { tag: [tags$1.name, tags$1.deleted, tags$1.character, tags$1.propertyName, tags$1.macroName],
	        color: coral },
	    { tag: [/*@__PURE__*/tags$1.function(tags$1.variableName), tags$1.labelName],
	        color: malibu },
	    { tag: [tags$1.color, /*@__PURE__*/tags$1.constant(tags$1.name), /*@__PURE__*/tags$1.standard(tags$1.name)],
	        color: whiskey },
	    { tag: [/*@__PURE__*/tags$1.definition(tags$1.name), tags$1.separator],
	        color: ivory },
	    { tag: [tags$1.typeName, tags$1.className, tags$1.number, tags$1.changed, tags$1.annotation, tags$1.modifier, tags$1.self, tags$1.namespace],
	        color: chalky },
	    { tag: [tags$1.operator, tags$1.operatorKeyword, tags$1.url, tags$1.escape, tags$1.regexp, tags$1.link, /*@__PURE__*/tags$1.special(tags$1.string)],
	        color: cyan },
	    { tag: [tags$1.meta, tags$1.comment],
	        color: stone },
	    { tag: tags$1.strong,
	        fontWeight: "bold" },
	    { tag: tags$1.emphasis,
	        fontStyle: "italic" },
	    { tag: tags$1.strikethrough,
	        textDecoration: "line-through" },
	    { tag: tags$1.link,
	        color: stone,
	        textDecoration: "underline" },
	    { tag: tags$1.heading,
	        fontWeight: "bold",
	        color: coral },
	    { tag: [tags$1.atom, tags$1.bool, /*@__PURE__*/tags$1.special(tags$1.variableName)],
	        color: whiskey },
	    { tag: [tags$1.processingInstruction, tags$1.string, tags$1.inserted],
	        color: sage },
	    { tag: tags$1.invalid,
	        color: invalid },
	]);
	/**
	Extension to enable the One Dark theme (both the editor theme and
	the highlight style).
	*/
	const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];

	var defaultLightThemeOption = EditorView.theme({
	  '&': {
	    backgroundColor: '#fff'
	  }
	}, {
	  dark: false
	});

	var getDefaultExtensions = function getDefaultExtensions(optios) {
	  if (optios === void 0) {
	    optios = {};
	  }
	  var {
	    indentWithTab: defaultIndentWithTab = true,
	    editable = true,
	    readOnly = false,
	    theme = 'light',
	    placeholder: placeholderStr = '',
	    basicSetup: defaultBasicSetup = true
	  } = optios;
	  var getExtensions = [];
	  if (defaultIndentWithTab) {
	    getExtensions.unshift(keymap.of([indentWithTab]));
	  }
	  if (defaultBasicSetup) {
	    if (typeof defaultBasicSetup === 'boolean') {
	      getExtensions.unshift(basicSetup());
	    } else {
	      getExtensions.unshift(basicSetup(defaultBasicSetup));
	    }
	  }
	  if (placeholderStr) {
	    getExtensions.unshift(placeholder(placeholderStr));
	  }
	  switch (theme) {
	    case 'light':
	      getExtensions.push(defaultLightThemeOption);
	      break;
	    case 'dark':
	      getExtensions.push(oneDark);
	      break;
	    case 'none':
	      break;
	    default:
	      getExtensions.push(theme);
	      break;
	  }
	  if (editable === false) {
	    getExtensions.push(EditorView.editable.of(false));
	  }
	  if (readOnly) {
	    getExtensions.push(EditorState.readOnly.of(true));
	  }
	  return [...getExtensions];
	};

	var getStatistics = view => {
	  return {
	    line: view.state.doc.lineAt(view.state.selection.main.from),
	    lineCount: view.state.doc.lines,
	    lineBreak: view.state.lineBreak,
	    length: view.state.doc.length,
	    readOnly: view.state.readOnly,
	    tabSize: view.state.tabSize,
	    selection: view.state.selection,
	    selectionAsSingle: view.state.selection.asSingle().main,
	    ranges: view.state.selection.ranges,
	    selectionCode: view.state.sliceDoc(view.state.selection.main.from, view.state.selection.main.to),
	    selections: view.state.selection.ranges.map(r => view.state.sliceDoc(r.from, r.to)),
	    selectedText: view.state.selection.ranges.some(r => !r.empty)
	  };
	};

	var External = Annotation.define();
	var emptyExtensions = [];
	function useCodeMirror(props) {
	  var {
	    value,
	    selection,
	    onChange,
	    onStatistics,
	    onCreateEditor,
	    onUpdate,
	    extensions = emptyExtensions,
	    autoFocus,
	    theme = 'light',
	    height = null,
	    minHeight = null,
	    maxHeight = null,
	    width = null,
	    minWidth = null,
	    maxWidth = null,
	    placeholder: placeholderStr = '',
	    editable = true,
	    readOnly = false,
	    indentWithTab: defaultIndentWithTab = true,
	    basicSetup: defaultBasicSetup = true,
	    root,
	    initialState
	  } = props;
	  var [container, setContainer] = reactExports.useState();
	  var [view, setView] = reactExports.useState();
	  var [state, setState] = reactExports.useState();
	  var defaultThemeOption = EditorView.theme({
	    '&': {
	      height,
	      minHeight,
	      maxHeight,
	      width,
	      minWidth,
	      maxWidth
	    },
	    '& .cm-scroller': {
	      height: '100% !important'
	    }
	  });
	  var updateListener = EditorView.updateListener.of(vu => {
	    if (vu.docChanged && typeof onChange === 'function' &&
	    // Fix echoing of the remote changes:
	    // If transaction is market as remote we don't have to call `onChange` handler again
	    !vu.transactions.some(tr => tr.annotation(External))) {
	      var doc = vu.state.doc;
	      var _value = doc.toString();
	      onChange(_value, vu);
	    }
	    onStatistics && onStatistics(getStatistics(vu));
	  });
	  var defaultExtensions = getDefaultExtensions({
	    theme,
	    editable,
	    readOnly,
	    placeholder: placeholderStr,
	    indentWithTab: defaultIndentWithTab,
	    basicSetup: defaultBasicSetup
	  });
	  var getExtensions = [updateListener, defaultThemeOption, ...defaultExtensions];
	  if (onUpdate && typeof onUpdate === 'function') {
	    getExtensions.push(EditorView.updateListener.of(onUpdate));
	  }
	  getExtensions = getExtensions.concat(extensions);
	  reactExports.useEffect(() => {
	    if (container && !state) {
	      var config = {
	        doc: value,
	        selection,
	        extensions: getExtensions
	      };
	      var stateCurrent = initialState ? EditorState.fromJSON(initialState.json, config, initialState.fields) : EditorState.create(config);
	      setState(stateCurrent);
	      if (!view) {
	        var viewCurrent = new EditorView({
	          state: stateCurrent,
	          parent: container,
	          root
	        });
	        setView(viewCurrent);
	        onCreateEditor && onCreateEditor(viewCurrent, stateCurrent);
	      }
	    }
	    return () => {
	      if (view) {
	        setState(undefined);
	        setView(undefined);
	      }
	    };
	  }, [container, state]);
	  reactExports.useEffect(() => setContainer(props.container), [props.container]);
	  reactExports.useEffect(() => () => {
	    if (view) {
	      view.destroy();
	      setView(undefined);
	    }
	  }, [view]);
	  reactExports.useEffect(() => {
	    if (autoFocus && view) {
	      view.focus();
	    }
	  }, [autoFocus, view]);
	  reactExports.useEffect(() => {
	    if (view) {
	      view.dispatch({
	        effects: StateEffect.reconfigure.of(getExtensions)
	      });
	    }
	    // eslint-disable-next-line react-hooks/exhaustive-deps
	  }, [theme, extensions, height, minHeight, maxHeight, width, minWidth, maxWidth, placeholderStr, editable, readOnly, defaultIndentWithTab, defaultBasicSetup, onChange, onUpdate]);
	  reactExports.useEffect(() => {
	    if (value === undefined) {
	      return;
	    }
	    var currentValue = view ? view.state.doc.toString() : '';
	    if (view && value !== currentValue) {
	      view.dispatch({
	        changes: {
	          from: 0,
	          to: currentValue.length,
	          insert: value || ''
	        },
	        annotations: [External.of(true)]
	      });
	    }
	  }, [value, view]);
	  return {
	    state,
	    setState,
	    view,
	    setView,
	    container,
	    setContainer
	  };
	}

	var _excluded = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"];
	var ReactCodeMirror = /*#__PURE__*/reactExports.forwardRef((props, ref) => {
	  var {
	      className,
	      value = '',
	      selection,
	      extensions = [],
	      onChange,
	      onStatistics,
	      onCreateEditor,
	      onUpdate,
	      autoFocus,
	      theme = 'light',
	      height,
	      minHeight,
	      maxHeight,
	      width,
	      minWidth,
	      maxWidth,
	      basicSetup,
	      placeholder,
	      indentWithTab,
	      editable,
	      readOnly,
	      root,
	      initialState
	    } = props,
	    other = _objectWithoutPropertiesLoose(props, _excluded);
	  var editor = reactExports.useRef(null);
	  var {
	    state,
	    view,
	    container
	  } = useCodeMirror({
	    container: editor.current,
	    root,
	    value,
	    autoFocus,
	    theme,
	    height,
	    minHeight,
	    maxHeight,
	    width,
	    minWidth,
	    maxWidth,
	    basicSetup,
	    placeholder,
	    indentWithTab,
	    editable,
	    readOnly,
	    selection,
	    onChange,
	    onStatistics,
	    onCreateEditor,
	    onUpdate,
	    extensions,
	    initialState
	  });
	  reactExports.useImperativeHandle(ref, () => ({
	    editor: editor.current,
	    state: state,
	    view: view
	  }), [editor, container, state, view]);

	  // check type of value
	  if (typeof value !== 'string') {
	    throw new Error("value must be typeof string but got " + typeof value);
	  }
	  var defaultClassNames = typeof theme === 'string' ? "cm-theme-" + theme : 'cm-theme';
	  return /*#__PURE__*/jsxRuntimeExports.jsx("div", _extends$1({
	    ref: editor,
	    className: "" + defaultClassNames + (className ? " " + className : '')
	  }, other));
	});
	ReactCodeMirror.displayName = 'CodeMirror';

	function r$3(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r$3(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r$3(e))&&(n&&(n+=" "),n+=t);return n}

	function useCommitAction() {
	    const transport = useWidgetTransport();
	    return reactExports.useCallback(async () => {
	        return (await transport("commit", {}));
	    }, [transport]);
	}

	const jupyterEditorTheme = EditorView.theme({
	    "&": {
	        background: "var(--jp-layout-color0)",
	        color: "var(--jp-content-font-color1)",
	    },
	    ".jp-CodeConsole &, .jp-Notebook &": {
	        background: "transparent",
	    },
	    ".cm-content": {
	        caretColor: "var(--jp-editor-cursor-color)",
	    },
	    ".cm-scroller": {
	        fontFamily: "inherit",
	    },
	    ".cm-cursor, .cm-dropCursor": {
	        borderLeft: "var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color)",
	    },
	    ".cm-selectionBackground, .cm-content ::selection": {
	        backgroundColor: "var(--jp-editor-selected-background)",
	    },
	    "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground": {
	        backgroundColor: "var(--jp-editor-selected-focused-background)",
	    },
	    ".cm-gutters": {
	        borderRight: "none",
	        backgroundColor: "var(--jp-layout-color0)",
	    },
	    ".cm-gutter": {
	        backgroundColor: "var(--jp-layout-color0)",
	    },
	    ".cm-activeLine": {
	        backgroundColor: "color-mix(in srgb, var(--jp-layout-color3) 25%, transparent)",
	    },
	    ".cm-activeLineGutter": {
	        backgroundColor: "color-mix(in srgb, var(--jp-layout-color3) 25%, transparent)",
	    },
	    ".cm-lineNumbers": {
	        color: "var(--jp-ui-font-color2)",
	    },
	    ".cm-searchMatch": {
	        backgroundColor: "var(--jp-search-unselected-match-background-color)",
	        color: "var(--jp-search-unselected-match-color)",
	    },
	    ".cm-searchMatch.cm-searchMatch-selected": {
	        backgroundColor: "var(--jp-search-selected-match-background-color) !important",
	        color: "var(--jp-search-selected-match-color) !important",
	    },
	    ".cm-tooltip": {
	        backgroundColor: "var(--jp-layout-color1)",
	    },
	    ".cm-builtin": {
	        color: "var(--jp-mirror-editor-builtin-color)",
	    },
	});
	const jupyterHighlightStyle = HighlightStyle.define([
	    { tag: tags$1.meta, color: "var(--jp-mirror-editor-meta-color)" },
	    { tag: tags$1.heading, color: "var(--jp-mirror-editor-header-color)" },
	    {
	        tag: [tags$1.heading1, tags$1.heading2, tags$1.heading3, tags$1.heading4],
	        color: "var(--jp-mirror-editor-header-color)",
	        fontWeight: "bold",
	    },
	    {
	        tag: tags$1.keyword,
	        color: "var(--jp-mirror-editor-keyword-color)",
	        fontWeight: "bold",
	    },
	    { tag: tags$1.atom, color: "var(--jp-mirror-editor-atom-color)" },
	    { tag: tags$1.number, color: "var(--jp-mirror-editor-number-color)" },
	    {
	        tag: [tags$1.definition(tags$1.name), tags$1.function(tags$1.definition(tags$1.variableName))],
	        color: "var(--jp-mirror-editor-def-color)",
	    },
	    {
	        tag: tags$1.standard(tags$1.variableName),
	        color: "var(--jp-mirror-editor-builtin-color)",
	    },
	    {
	        tag: [tags$1.special(tags$1.variableName), tags$1.self],
	        color: "var(--jp-mirror-editor-variable-2-color)",
	    },
	    { tag: tags$1.punctuation, color: "var(--jp-mirror-editor-punctuation-color)" },
	    { tag: tags$1.propertyName, color: "var(--jp-mirror-editor-property-color)" },
	    {
	        tag: tags$1.operator,
	        color: "var(--jp-mirror-editor-operator-color)",
	        fontWeight: "bold",
	    },
	    {
	        tag: tags$1.comment,
	        color: "var(--jp-mirror-editor-comment-color)",
	        fontStyle: "italic",
	    },
	    { tag: tags$1.string, color: "var(--jp-mirror-editor-string-color)" },
	    {
	        tag: [tags$1.labelName, tags$1.monospace, tags$1.special(tags$1.string)],
	        color: "var(--jp-mirror-editor-string-2-color)",
	    },
	    { tag: tags$1.bracket, color: "var(--jp-mirror-editor-bracket-color)" },
	    { tag: tags$1.tagName, color: "var(--jp-mirror-editor-tag-color)" },
	    { tag: tags$1.attributeName, color: "var(--jp-mirror-editor-attribute-color)" },
	    { tag: tags$1.quote, color: "var(--jp-mirror-editor-quote-color)" },
	    {
	        tag: tags$1.link,
	        color: "var(--jp-mirror-editor-link-color)",
	        textDecoration: "underline",
	    },
	    { tag: [tags$1.separator, tags$1.derefOperator, tags$1.paren], color: "" },
	    { tag: tags$1.strong, fontWeight: "bold" },
	    { tag: tags$1.emphasis, fontStyle: "italic" },
	    { tag: tags$1.strikethrough, textDecoration: "line-through" },
	    {
	        tag: tags$1.bool,
	        color: "var(--jp-mirror-editor-keyword-color)",
	        fontWeight: "bold",
	    },
	]);
	const jupyterTheme = [
	    jupyterEditorTheme,
	    syntaxHighlighting(jupyterHighlightStyle),
	];

	function focusNextCell(element) {
	    let jupyterLabParent = element;
	    const isParent = (el) => el.classList.contains("jp-WindowedPanel-inner");
	    while (jupyterLabParent.parentElement && !isParent(jupyterLabParent)) {
	        jupyterLabParent = jupyterLabParent.parentElement;
	    }
	    const root = isParent(jupyterLabParent) ? jupyterLabParent : document;
	    const rect = element.getBoundingClientRect();
	    const candidates = Array.from(root.querySelectorAll(".cm-content"));
	    const minTop = rect.top + rect.height;
	    let bestCandidate = null;
	    let bestTop = Number.MAX_SAFE_INTEGER;
	    for (const candidate of candidates) {
	        if (candidate === element) {
	            continue;
	        }
	        const candidateRect = candidate.getBoundingClientRect();
	        if (candidateRect.top <= minTop) {
	            continue;
	        }
	        if (candidateRect.top < bestTop) {
	            bestCandidate = candidate;
	            bestTop = candidateRect.top;
	        }
	    }
	    if (bestCandidate !== null) {
	        bestCandidate.focus();
	    }
	}

	function useLanguageSupport(extension) {
	    return useQuery({
	        queryKey: ["languageSupport", extension],
	        queryFn: async () => {
	            const language = languages.filter((lang) => lang.extensions.includes(extension))[0];
	            if (!language) {
	                return null;
	            }
	            if (language.name === "Markdown") {
	                return markdown({ base: markdownLanguage, codeLanguages: languages });
	            }
	            if (language.support) {
	                return language.support;
	            }
	            return await language.load();
	        },
	        refetchInterval: false,
	        refetchOnMount: false,
	        refetchOnReconnect: false,
	        refetchOnWindowFocus: false,
	        refetchIntervalInBackground: false,
	    });
	}
	function Editor({ className, parentRef }) {
	    const [extension] = useWidgetModelState("extension");
	    const [lineNumbers] = useWidgetModelState("show_line_numbers");
	    const [code, setCode] = useWidgetModelState("code");
	    const commit = useCommitAction();
	    const extensions = [EditorView.lineWrapping];
	    const { data: language } = useLanguageSupport(extension);
	    if (language) {
	        extensions.push(language);
	    }
	    return (jsxRuntimeExports.jsx(ReactCodeMirror, { value: code, className: clsx("overflow-y-scroll min-h-full", className), onChange: (code) => setCode(code), onKeyDown: async (event) => {
	            if (event.key === "Enter" && (event.shiftKey || event.metaKey)) {
	                event.preventDefault();
	                event.stopPropagation();
	                if (parentRef.current !== null) {
	                    focusNextCell(parentRef.current);
	                }
	            }
	            if (event.key === "s" && event.metaKey) {
	                await commit();
	            }
	        }, theme: jupyterTheme, extensions: extensions, basicSetup: { lineNumbers } }));
	}

	/**
	 * Helpers.
	 */

	var s = 1000;
	var m = s * 60;
	var h = m * 60;
	var d$3 = h * 24;
	var w = d$3 * 7;
	var y = d$3 * 365.25;

	/**
	 * Parse or format the given `val`.
	 *
	 * Options:
	 *
	 *  - `long` verbose formatting [false]
	 *
	 * @param {String|Number} val
	 * @param {Object} [options]
	 * @throws {Error} throw an error if val is not a non-empty string or a number
	 * @return {String|Number}
	 * @api public
	 */

	var ms = function (val, options) {
	  options = options || {};
	  var type = typeof val;
	  if (type === 'string' && val.length > 0) {
	    return parse(val);
	  } else if (type === 'number' && isFinite(val)) {
	    return options.long ? fmtLong(val) : fmtShort(val);
	  }
	  throw new Error(
	    'val is not a non-empty string or a valid number. val=' +
	      JSON.stringify(val)
	  );
	};

	/**
	 * Parse the given `str` and return milliseconds.
	 *
	 * @param {String} str
	 * @return {Number}
	 * @api private
	 */

	function parse(str) {
	  str = String(str);
	  if (str.length > 100) {
	    return;
	  }
	  var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
	    str
	  );
	  if (!match) {
	    return;
	  }
	  var n = parseFloat(match[1]);
	  var type = (match[2] || 'ms').toLowerCase();
	  switch (type) {
	    case 'years':
	    case 'year':
	    case 'yrs':
	    case 'yr':
	    case 'y':
	      return n * y;
	    case 'weeks':
	    case 'week':
	    case 'w':
	      return n * w;
	    case 'days':
	    case 'day':
	    case 'd':
	      return n * d$3;
	    case 'hours':
	    case 'hour':
	    case 'hrs':
	    case 'hr':
	    case 'h':
	      return n * h;
	    case 'minutes':
	    case 'minute':
	    case 'mins':
	    case 'min':
	    case 'm':
	      return n * m;
	    case 'seconds':
	    case 'second':
	    case 'secs':
	    case 'sec':
	    case 's':
	      return n * s;
	    case 'milliseconds':
	    case 'millisecond':
	    case 'msecs':
	    case 'msec':
	    case 'ms':
	      return n;
	    default:
	      return undefined;
	  }
	}

	/**
	 * Short format for `ms`.
	 *
	 * @param {Number} ms
	 * @return {String}
	 * @api private
	 */

	function fmtShort(ms) {
	  var msAbs = Math.abs(ms);
	  if (msAbs >= d$3) {
	    return Math.round(ms / d$3) + 'd';
	  }
	  if (msAbs >= h) {
	    return Math.round(ms / h) + 'h';
	  }
	  if (msAbs >= m) {
	    return Math.round(ms / m) + 'm';
	  }
	  if (msAbs >= s) {
	    return Math.round(ms / s) + 's';
	  }
	  return ms + 'ms';
	}

	/**
	 * Long format for `ms`.
	 *
	 * @param {Number} ms
	 * @return {String}
	 * @api private
	 */

	function fmtLong(ms) {
	  var msAbs = Math.abs(ms);
	  if (msAbs >= d$3) {
	    return plural(ms, msAbs, d$3, 'day');
	  }
	  if (msAbs >= h) {
	    return plural(ms, msAbs, h, 'hour');
	  }
	  if (msAbs >= m) {
	    return plural(ms, msAbs, m, 'minute');
	  }
	  if (msAbs >= s) {
	    return plural(ms, msAbs, s, 'second');
	  }
	  return ms + ' ms';
	}

	/**
	 * Pluralization helper.
	 */

	function plural(ms, msAbs, n, name) {
	  var isPlural = msAbs >= n * 1.5;
	  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
	}

	var ms$1 = /*@__PURE__*/getDefaultExportFromCjs(ms);

	function useCheckout() {
	    const transport = useWidgetTransport();
	    return reactExports.useCallback(async (hexsha) => {
	        await transport("checkout-version", { hexsha });
	    }, [transport]);
	}

	function useGetCommits() {
	    const transport = useWidgetTransport();
	    const [headCommit] = useWidgetModelState("head_commit");
	    return useQuery({
	        queryKey: ["commits", headCommit],
	        queryFn: async () => {
	            const response = await transport("get-commits", {});
	            return response;
	        },
	    });
	}

	function useNow(refreshInterval) {
	    const [now, setNow] = reactExports.useState(Date.now());
	    const setNowValue = () => {
	        setNow(Date.now());
	    };
	    reactExports.useEffect(() => {
	        if (!refreshInterval) {
	            return;
	        }
	        const ivl = setInterval(setNowValue, refreshInterval);
	        return () => {
	            clearInterval(ivl);
	        };
	    }, [setNow, refreshInterval]);
	    return [now, setNowValue];
	}

	function useTrailing(func, time) {
	    const [lastCalledAt, setLastCalledAt] = reactExports.useState(Date.now());
	    reactExports.useEffect(() => {
	        const timeout = setTimeout(func, time);
	        return () => {
	            clearTimeout(timeout);
	        };
	    }, [func, lastCalledAt, time]);
	    return () => {
	        setLastCalledAt(Date.now());
	    };
	}

	function truncateLength(length) {
	    const max = 100;
	    return length > max ? `${max}+` : length.toFixed();
	}
	function Toolbar() {
	    const [autoSave, setAutoSave] = reactExports.useState(true);
	    const [path] = useWidgetModelState("path");
	    const [isDirty] = useWidgetModelState("is_dirty");
	    const [checkoutCommit] = useWidgetModelState("checkout_commit");
	    const [now] = useNow(30000);
	    const commit = useCommitAction();
	    const checkout = useCheckout();
	    const autoCommit = reactExports.useCallback(() => {
	        if (isDirty && autoSave) {
	            commit();
	        }
	    }, [autoSave, isDirty]);
	    const commitTrailing = useTrailing(autoCommit, 5000);
	    useWidgetModelChange("code", () => {
	        commitTrailing();
	    });
	    useWidgetModelChange("is_dirty", (newValue) => {
	        commitTrailing();
	    });
	    const commitsQuery = useGetCommits();
	    return (jsxRuntimeExports.jsxs("div", { className: "bg-cellBackground grid grid-cols-[1fr_auto_1fr] items-center min-h-8 h-8 max-h-8 w-full py-1 px-3 gap-6", children: [jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-6", children: [jsxRuntimeExports.jsx("button", { type: "button", disabled: !isDirty, onClick: () => commit(), className: "disabled:text-font3", children: "Save" }), jsxRuntimeExports.jsxs("div", { className: "flex gap-3 items-center", children: [jsxRuntimeExports.jsx("input", { type: "checkbox", id: "jupyter-notepad-autosave", checked: autoSave, onChange: (event) => {
	                                    setAutoSave(event.target.checked);
	                                } }), jsxRuntimeExports.jsx("label", { htmlFor: "jupyter-notepad-line-numbers", className: "whitespace-nowrap", children: "Auto save" })] })] }), jsxRuntimeExports.jsx("h4", { className: "self-center font-bold text-center text-ellipsis whitespace-nowrap overflow-hidden", children: jsxRuntimeExports.jsx("span", { title: path, children: path }) }), jsxRuntimeExports.jsx("div", { className: "flex justify-end", children: jsxRuntimeExports.jsxs("select", { className: "bg-cellBackground", value: checkoutCommit ?? "", onChange: async (evt) => {
	                        if (evt.target.value) {
	                            await checkout(evt.target.value);
	                        }
	                    }, children: [jsxRuntimeExports.jsx("option", { value: "", children: commitsQuery.status === "success"
	                                ? commitsQuery.data.length === 0
	                                    ? "No history yet"
	                                    : `History (${truncateLength(commitsQuery.data.length)})`
	                                : commitsQuery.status === "loading"
	                                    ? "Loading commits..."
	                                    : "Error loading commits" }), commitsQuery.status === "success"
	                            ? commitsQuery.data.map((commit) => {
	                                const diff = Math.max(now - commit.timestamp_millis, 0);
	                                let text;
	                                if (diff <= 5000) {
	                                    text = "Just now";
	                                }
	                                else if (diff <= 30000) {
	                                    text = "Seconds ago";
	                                }
	                                else {
	                                    text = `${ms$1(diff)} ago`;
	                                }
	                                const shortSha = commit.hexsha.slice(0, 8);
	                                return (jsxRuntimeExports.jsxs("option", { value: commit.hexsha, children: [text, " - ", shortSha] }, commit.hexsha));
	                            })
	                            : null] }) })] }));
	}

	function Widget() {
	    const ref = reactExports.useRef(null);
	    const [height] = useWidgetModelState("height");
	    return (jsxRuntimeExports.jsxs("div", { ref: ref, className: "flex flex-col border border-cellBorder min-h-full", style: { height: `${height}rem` }, children: [jsxRuntimeExports.jsx(Toolbar, {}), jsxRuntimeExports.jsx(Editor, { parentRef: ref, className: "px-1" })] }));
	}

	class WidgetView extends base$4.DOMWidgetView {
	    render() {
	        const queryClient = new QueryClient();
	        this.el.classList.add("flex-grow");
	        const component = reactExports.createElement(Providers, {
	            model: this.model,
	            queryClient,
	        }, reactExports.createElement(Widget));
	        ReactDOM.render(component, this.el);
	    }
	    remove() {
	        ReactDOM.unmountComponentAtNode(this.el);
	    }
	}

	window.__webpack_public_path__ =
	    document.querySelector("body").getAttribute("data-base-url") +
	        "nbextensions/jupyter-notepad";

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const whitespace$2 = 36,
	  LineComment$1 = 1,
	  BlockComment = 2,
	  String$1$1 = 3,
	  Number$1 = 4,
	  Bool = 5,
	  Null = 6,
	  ParenL$2 = 7,
	  ParenR$1 = 8,
	  BraceL$2 = 9,
	  BraceR = 10,
	  BracketL$2 = 11,
	  BracketR = 12,
	  Semi = 13,
	  Dot$1 = 14,
	  Operator = 15,
	  Punctuation = 16,
	  SpecialVar = 17,
	  Identifier$3 = 18,
	  QuotedIdentifier = 19,
	  Keyword = 20,
	  Type = 21,
	  Bits = 22,
	  Bytes = 23,
	  Builtin = 24;

	function isAlpha$2(ch) {
	    return ch >= 65 /* Ch.A */ && ch <= 90 /* Ch.Z */ || ch >= 97 /* Ch.a */ && ch <= 122 /* Ch.z */ || ch >= 48 /* Ch._0 */ && ch <= 57 /* Ch._9 */;
	}
	function isHexDigit(ch) {
	    return ch >= 48 /* Ch._0 */ && ch <= 57 /* Ch._9 */ || ch >= 97 /* Ch.a */ && ch <= 102 /* Ch.f */ || ch >= 65 /* Ch.A */ && ch <= 70 /* Ch.F */;
	}
	function readLiteral(input, endQuote, backslashEscapes) {
	    for (let escaped = false;;) {
	        if (input.next < 0)
	            return;
	        if (input.next == endQuote && !escaped) {
	            input.advance();
	            return;
	        }
	        escaped = backslashEscapes && !escaped && input.next == 92 /* Ch.Backslash */;
	        input.advance();
	    }
	}
	function readDoubleDollarLiteral(input, tag) {
	    scan: for (;;) {
	        if (input.next < 0)
	            return console.log("exit at end", input.pos);
	        if (input.next == 36 /* Ch.Dollar */) {
	            input.advance();
	            for (let i = 0; i < tag.length; i++) {
	                if (input.next != tag.charCodeAt(i))
	                    continue scan;
	                input.advance();
	            }
	            if (input.next == 36 /* Ch.Dollar */) {
	                input.advance();
	                return;
	            }
	        }
	        else {
	            input.advance();
	        }
	    }
	}
	function readPLSQLQuotedLiteral(input, openDelim) {
	    let matchingDelim = "[{<(".indexOf(String.fromCharCode(openDelim));
	    let closeDelim = matchingDelim < 0 ? openDelim : "]}>)".charCodeAt(matchingDelim);
	    for (;;) {
	        if (input.next < 0)
	            return;
	        if (input.next == closeDelim && input.peek(1) == 39 /* Ch.SingleQuote */) {
	            input.advance(2);
	            return;
	        }
	        input.advance();
	    }
	}
	function readWord(input, result) {
	    for (;;) {
	        if (input.next != 95 /* Ch.Underscore */ && !isAlpha$2(input.next))
	            break;
	        if (result != null)
	            result += String.fromCharCode(input.next);
	        input.advance();
	    }
	    return result;
	}
	function readWordOrQuoted(input) {
	    if (input.next == 39 /* Ch.SingleQuote */ || input.next == 34 /* Ch.DoubleQuote */ || input.next == 96 /* Ch.Backtick */) {
	        let quote = input.next;
	        input.advance();
	        readLiteral(input, quote, false);
	    }
	    else {
	        readWord(input);
	    }
	}
	function readBits(input, endQuote) {
	    while (input.next == 48 /* Ch._0 */ || input.next == 49 /* Ch._1 */)
	        input.advance();
	    if (endQuote && input.next == endQuote)
	        input.advance();
	}
	function readNumber(input, sawDot) {
	    for (;;) {
	        if (input.next == 46 /* Ch.Dot */) {
	            if (sawDot)
	                break;
	            sawDot = true;
	        }
	        else if (input.next < 48 /* Ch._0 */ || input.next > 57 /* Ch._9 */) {
	            break;
	        }
	        input.advance();
	    }
	    if (input.next == 69 /* Ch.E */ || input.next == 101 /* Ch.e */) {
	        input.advance();
	        if (input.next == 43 /* Ch.Plus */ || input.next == 45 /* Ch.Dash */)
	            input.advance();
	        while (input.next >= 48 /* Ch._0 */ && input.next <= 57 /* Ch._9 */)
	            input.advance();
	    }
	}
	function eol(input) {
	    while (!(input.next < 0 || input.next == 10 /* Ch.Newline */))
	        input.advance();
	}
	function inString$2(ch, str) {
	    for (let i = 0; i < str.length; i++)
	        if (str.charCodeAt(i) == ch)
	            return true;
	    return false;
	}
	const Space$1 = " \t\r\n";
	function keywords$H(keywords, types, builtin) {
	    let result = Object.create(null);
	    result["true"] = result["false"] = Bool;
	    result["null"] = result["unknown"] = Null;
	    for (let kw of keywords.split(" "))
	        if (kw)
	            result[kw] = Keyword;
	    for (let tp of types.split(" "))
	        if (tp)
	            result[tp] = Type;
	    for (let kw of (builtin || "").split(" "))
	        if (kw)
	            result[kw] = Builtin;
	    return result;
	}
	const SQLTypes = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ";
	const SQLKeywords = "absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ";
	const defaults$2 = {
	    backslashEscapes: false,
	    hashComments: false,
	    spaceAfterDashes: false,
	    slashComments: false,
	    doubleQuotedStrings: false,
	    doubleDollarQuotedStrings: false,
	    unquotedBitLiterals: false,
	    treatBitsAsBytes: false,
	    charSetCasts: false,
	    plsqlQuotingMechanism: false,
	    operatorChars: "*+\-%<>!=&|~^/",
	    specialVar: "?",
	    identifierQuotes: '"',
	    words: /*@__PURE__*/keywords$H(SQLKeywords, SQLTypes)
	};
	function dialect(spec, kws, types, builtin) {
	    let dialect = {};
	    for (let prop in defaults$2)
	        dialect[prop] = (spec.hasOwnProperty(prop) ? spec : defaults$2)[prop];
	    if (kws)
	        dialect.words = keywords$H(kws, types || "", builtin);
	    return dialect;
	}
	function tokensFor(d) {
	    return new ExternalTokenizer(input => {
	        var _a;
	        let { next } = input;
	        input.advance();
	        if (inString$2(next, Space$1)) {
	            while (inString$2(input.next, Space$1))
	                input.advance();
	            input.acceptToken(whitespace$2);
	        }
	        else if (next == 36 /* Ch.Dollar */) {
	            let tag = readWord(input, "");
	            if (input.next == 36 /* Ch.Dollar */) {
	                input.advance();
	                readDoubleDollarLiteral(input, tag);
	                input.acceptToken(String$1$1);
	            }
	        }
	        else if (next == 39 /* Ch.SingleQuote */ || next == 34 /* Ch.DoubleQuote */ && d.doubleQuotedStrings) {
	            readLiteral(input, next, d.backslashEscapes);
	            input.acceptToken(String$1$1);
	        }
	        else if (next == 35 /* Ch.Hash */ && d.hashComments ||
	            next == 47 /* Ch.Slash */ && input.next == 47 /* Ch.Slash */ && d.slashComments) {
	            eol(input);
	            input.acceptToken(LineComment$1);
	        }
	        else if (next == 45 /* Ch.Dash */ && input.next == 45 /* Ch.Dash */ &&
	            (!d.spaceAfterDashes || input.peek(1) == 32 /* Ch.Space */)) {
	            eol(input);
	            input.acceptToken(LineComment$1);
	        }
	        else if (next == 47 /* Ch.Slash */ && input.next == 42 /* Ch.Star */) {
	            input.advance();
	            for (let depth = 1;;) {
	                let cur = input.next;
	                if (input.next < 0)
	                    break;
	                input.advance();
	                if (cur == 42 /* Ch.Star */ && input.next == 47 /* Ch.Slash */) {
	                    depth--;
	                    input.advance();
	                    if (!depth)
	                        break;
	                }
	                else if (cur == 47 /* Ch.Slash */ && input.next == 42 /* Ch.Star */) {
	                    depth++;
	                    input.advance();
	                }
	            }
	            input.acceptToken(BlockComment);
	        }
	        else if ((next == 101 /* Ch.e */ || next == 69 /* Ch.E */) && input.next == 39 /* Ch.SingleQuote */) {
	            input.advance();
	            readLiteral(input, 39 /* Ch.SingleQuote */, true);
	        }
	        else if ((next == 110 /* Ch.n */ || next == 78 /* Ch.N */) && input.next == 39 /* Ch.SingleQuote */ &&
	            d.charSetCasts) {
	            input.advance();
	            readLiteral(input, 39 /* Ch.SingleQuote */, d.backslashEscapes);
	            input.acceptToken(String$1$1);
	        }
	        else if (next == 95 /* Ch.Underscore */ && d.charSetCasts) {
	            for (let i = 0;; i++) {
	                if (input.next == 39 /* Ch.SingleQuote */ && i > 1) {
	                    input.advance();
	                    readLiteral(input, 39 /* Ch.SingleQuote */, d.backslashEscapes);
	                    input.acceptToken(String$1$1);
	                    break;
	                }
	                if (!isAlpha$2(input.next))
	                    break;
	                input.advance();
	            }
	        }
	        else if (d.plsqlQuotingMechanism &&
	            (next == 113 /* Ch.q */ || next == 81 /* Ch.Q */) && input.next == 39 /* Ch.SingleQuote */ &&
	            input.peek(1) > 0 && !inString$2(input.peek(1), Space$1)) {
	            let openDelim = input.peek(1);
	            input.advance(2);
	            readPLSQLQuotedLiteral(input, openDelim);
	            input.acceptToken(String$1$1);
	        }
	        else if (next == 40 /* Ch.ParenL */) {
	            input.acceptToken(ParenL$2);
	        }
	        else if (next == 41 /* Ch.ParenR */) {
	            input.acceptToken(ParenR$1);
	        }
	        else if (next == 123 /* Ch.BraceL */) {
	            input.acceptToken(BraceL$2);
	        }
	        else if (next == 125 /* Ch.BraceR */) {
	            input.acceptToken(BraceR);
	        }
	        else if (next == 91 /* Ch.BracketL */) {
	            input.acceptToken(BracketL$2);
	        }
	        else if (next == 93 /* Ch.BracketR */) {
	            input.acceptToken(BracketR);
	        }
	        else if (next == 59 /* Ch.Semi */) {
	            input.acceptToken(Semi);
	        }
	        else if (d.unquotedBitLiterals && next == 48 /* Ch._0 */ && input.next == 98 /* Ch.b */) {
	            input.advance();
	            readBits(input);
	            input.acceptToken(Bits);
	        }
	        else if ((next == 98 /* Ch.b */ || next == 66 /* Ch.B */) && (input.next == 39 /* Ch.SingleQuote */ || input.next == 34 /* Ch.DoubleQuote */)) {
	            const quoteStyle = input.next;
	            input.advance();
	            if (d.treatBitsAsBytes) {
	                readLiteral(input, quoteStyle, d.backslashEscapes);
	                input.acceptToken(Bytes);
	            }
	            else {
	                readBits(input, quoteStyle);
	                input.acceptToken(Bits);
	            }
	        }
	        else if (next == 48 /* Ch._0 */ && (input.next == 120 /* Ch.x */ || input.next == 88 /* Ch.X */) ||
	            (next == 120 /* Ch.x */ || next == 88 /* Ch.X */) && input.next == 39 /* Ch.SingleQuote */) {
	            let quoted = input.next == 39 /* Ch.SingleQuote */;
	            input.advance();
	            while (isHexDigit(input.next))
	                input.advance();
	            if (quoted && input.next == 39 /* Ch.SingleQuote */)
	                input.advance();
	            input.acceptToken(Number$1);
	        }
	        else if (next == 46 /* Ch.Dot */ && input.next >= 48 /* Ch._0 */ && input.next <= 57 /* Ch._9 */) {
	            readNumber(input, true);
	            input.acceptToken(Number$1);
	        }
	        else if (next == 46 /* Ch.Dot */) {
	            input.acceptToken(Dot$1);
	        }
	        else if (next >= 48 /* Ch._0 */ && next <= 57 /* Ch._9 */) {
	            readNumber(input, false);
	            input.acceptToken(Number$1);
	        }
	        else if (inString$2(next, d.operatorChars)) {
	            while (inString$2(input.next, d.operatorChars))
	                input.advance();
	            input.acceptToken(Operator);
	        }
	        else if (inString$2(next, d.specialVar)) {
	            if (input.next == next)
	                input.advance();
	            readWordOrQuoted(input);
	            input.acceptToken(SpecialVar);
	        }
	        else if (inString$2(next, d.identifierQuotes)) {
	            readLiteral(input, next, false);
	            input.acceptToken(QuotedIdentifier);
	        }
	        else if (next == 58 /* Ch.Colon */ || next == 44 /* Ch.Comma */) {
	            input.acceptToken(Punctuation);
	        }
	        else if (isAlpha$2(next)) {
	            let word = readWord(input, String.fromCharCode(next));
	            input.acceptToken(input.next == 46 /* Ch.Dot */ || input.peek(-word.length - 1) == 46 /* Ch.Dot */
	                ? Identifier$3 : (_a = d.words[word.toLowerCase()]) !== null && _a !== void 0 ? _a : Identifier$3);
	        }
	    });
	}
	const tokens = /*@__PURE__*/tokensFor(defaults$2);

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$1$1 = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
	  stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
	  goto: "#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",
	  nodeNames: "⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",
	  maxTerm: 38,
	  nodeProps: [
	    ["isolate", -4,1,2,3,19,""]
	  ],
	  skippedNodes: [0,1,2],
	  repeatNodeCount: 3,
	  tokenData: "RORO",
	  tokenizers: [0, tokens],
	  topRules: {"Script":[0,25]},
	  tokenPrec: 0
	});

	function tokenBefore(tree) {
	    let cursor = tree.cursor().moveTo(tree.from, -1);
	    while (/Comment/.test(cursor.name))
	        cursor.moveTo(cursor.from, -1);
	    return cursor.node;
	}
	function idName(doc, node) {
	    let text = doc.sliceString(node.from, node.to);
	    let quoted = /^([`'"])(.*)\1$/.exec(text);
	    return quoted ? quoted[2] : text;
	}
	function plainID(node) {
	    return node && (node.name == "Identifier" || node.name == "QuotedIdentifier");
	}
	function pathFor(doc, id) {
	    if (id.name == "CompositeIdentifier") {
	        let path = [];
	        for (let ch = id.firstChild; ch; ch = ch.nextSibling)
	            if (plainID(ch))
	                path.push(idName(doc, ch));
	        return path;
	    }
	    return [idName(doc, id)];
	}
	function parentsFor(doc, node) {
	    for (let path = [];;) {
	        if (!node || node.name != ".")
	            return path;
	        let name = tokenBefore(node);
	        if (!plainID(name))
	            return path;
	        path.unshift(idName(doc, name));
	        node = tokenBefore(name);
	    }
	}
	function sourceContext(state, startPos) {
	    let pos = syntaxTree(state).resolveInner(startPos, -1);
	    let aliases = getAliases(state.doc, pos);
	    if (pos.name == "Identifier" || pos.name == "QuotedIdentifier" || pos.name == "Keyword") {
	        return { from: pos.from,
	            quoted: pos.name == "QuotedIdentifier" ? state.doc.sliceString(pos.from, pos.from + 1) : null,
	            parents: parentsFor(state.doc, tokenBefore(pos)),
	            aliases };
	    }
	    if (pos.name == ".") {
	        return { from: startPos, quoted: null, parents: parentsFor(state.doc, pos), aliases };
	    }
	    else {
	        return { from: startPos, quoted: null, parents: [], empty: true, aliases };
	    }
	}
	const EndFrom = /*@__PURE__*/new Set(/*@__PURE__*/"where group having order union intersect except all distinct limit offset fetch for".split(" "));
	function getAliases(doc, at) {
	    let statement;
	    for (let parent = at; !statement; parent = parent.parent) {
	        if (!parent)
	            return null;
	        if (parent.name == "Statement")
	            statement = parent;
	    }
	    let aliases = null;
	    for (let scan = statement.firstChild, sawFrom = false, prevID = null; scan; scan = scan.nextSibling) {
	        let kw = scan.name == "Keyword" ? doc.sliceString(scan.from, scan.to).toLowerCase() : null;
	        let alias = null;
	        if (!sawFrom) {
	            sawFrom = kw == "from";
	        }
	        else if (kw == "as" && prevID && plainID(scan.nextSibling)) {
	            alias = idName(doc, scan.nextSibling);
	        }
	        else if (kw && EndFrom.has(kw)) {
	            break;
	        }
	        else if (prevID && plainID(scan)) {
	            alias = idName(doc, scan);
	        }
	        if (alias) {
	            if (!aliases)
	                aliases = Object.create(null);
	            aliases[alias] = pathFor(doc, prevID);
	        }
	        prevID = /Identifier$/.test(scan.name) ? scan : null;
	    }
	    return aliases;
	}
	function maybeQuoteCompletions(quote, completions) {
	    if (!quote)
	        return completions;
	    return completions.map(c => (Object.assign(Object.assign({}, c), { label: c.label[0] == quote ? c.label : quote + c.label + quote, apply: undefined })));
	}
	const Span = /^\w*$/, QuotedSpan = /^[`'"]?\w*[`'"]?$/;
	function isSelfTag(namespace) {
	    return namespace.self && typeof namespace.self.label == "string";
	}
	class CompletionLevel {
	    constructor(idQuote) {
	        this.idQuote = idQuote;
	        this.list = [];
	        this.children = undefined;
	    }
	    child(name) {
	        let children = this.children || (this.children = Object.create(null));
	        let found = children[name];
	        if (found)
	            return found;
	        if (name && !this.list.some(c => c.label == name))
	            this.list.push(nameCompletion(name, "type", this.idQuote));
	        return (children[name] = new CompletionLevel(this.idQuote));
	    }
	    maybeChild(name) {
	        return this.children ? this.children[name] : null;
	    }
	    addCompletion(option) {
	        let found = this.list.findIndex(o => o.label == option.label);
	        if (found > -1)
	            this.list[found] = option;
	        else
	            this.list.push(option);
	    }
	    addCompletions(completions) {
	        for (let option of completions)
	            this.addCompletion(typeof option == "string" ? nameCompletion(option, "property", this.idQuote) : option);
	    }
	    addNamespace(namespace) {
	        if (Array.isArray(namespace)) {
	            this.addCompletions(namespace);
	        }
	        else if (isSelfTag(namespace)) {
	            this.addNamespace(namespace.children);
	        }
	        else {
	            this.addNamespaceObject(namespace);
	        }
	    }
	    addNamespaceObject(namespace) {
	        for (let name of Object.keys(namespace)) {
	            let children = namespace[name], self = null;
	            let parts = name.replace(/\\?\./g, p => p == "." ? "\0" : p).split("\0");
	            let scope = this;
	            if (isSelfTag(children)) {
	                self = children.self;
	                children = children.children;
	            }
	            for (let i = 0; i < parts.length; i++) {
	                if (self && i == parts.length - 1)
	                    scope.addCompletion(self);
	                scope = scope.child(parts[i].replace(/\\\./g, "."));
	            }
	            scope.addNamespace(children);
	        }
	    }
	}
	function nameCompletion(label, type, idQuote) {
	    if (/^[a-z_][a-z_\d]*$/.test(label))
	        return { label, type };
	    return { label, type, apply: idQuote + label + idQuote };
	}
	// Some of this is more gnarly than it has to be because we're also
	// supporting the deprecated, not-so-well-considered style of
	// supplying the schema (dotted property names for schemas, separate
	// `tables` and `schemas` completions).
	function completeFromSchema$1(schema, tables, schemas, defaultTableName, defaultSchemaName, dialect) {
	    var _a;
	    let idQuote = ((_a = dialect === null || dialect === void 0 ? void 0 : dialect.spec.identifierQuotes) === null || _a === void 0 ? void 0 : _a[0]) || '"';
	    let top = new CompletionLevel(idQuote);
	    let defaultSchema = defaultSchemaName ? top.child(defaultSchemaName) : null;
	    top.addNamespace(schema);
	    if (tables)
	        (defaultSchema || top).addCompletions(tables);
	    if (schemas)
	        top.addCompletions(schemas);
	    if (defaultSchema)
	        top.addCompletions(defaultSchema.list);
	    if (defaultTableName)
	        top.addCompletions((defaultSchema || top).child(defaultTableName).list);
	    return (context) => {
	        let { parents, from, quoted, empty, aliases } = sourceContext(context.state, context.pos);
	        if (empty && !context.explicit)
	            return null;
	        if (aliases && parents.length == 1)
	            parents = aliases[parents[0]] || parents;
	        let level = top;
	        for (let name of parents) {
	            while (!level.children || !level.children[name]) {
	                if (level == top)
	                    level = defaultSchema;
	                else if (level == defaultSchema && defaultTableName)
	                    level = level.child(defaultTableName);
	                else
	                    return null;
	            }
	            let next = level.maybeChild(name);
	            if (!next)
	                return null;
	            level = next;
	        }
	        let quoteAfter = quoted && context.state.sliceDoc(context.pos, context.pos + 1) == quoted;
	        let options = level.list;
	        if (level == top && aliases)
	            options = options.concat(Object.keys(aliases).map(name => ({ label: name, type: "constant" })));
	        return {
	            from,
	            to: quoteAfter ? context.pos + 1 : undefined,
	            options: maybeQuoteCompletions(quoted, options),
	            validFor: quoted ? QuotedSpan : Span
	        };
	    };
	}
	function completeKeywords(keywords, upperCase) {
	    let completions = Object.keys(keywords).map(keyword => ({
	        label: upperCase ? keyword.toUpperCase() : keyword,
	        type: keywords[keyword] == Type ? "type" : keywords[keyword] == Keyword ? "keyword" : "variable",
	        boost: -1
	    }));
	    return ifNotIn(["QuotedIdentifier", "SpecialVar", "String", "LineComment", "BlockComment", "."], completeFromList(completions));
	}

	let parser$e = /*@__PURE__*/parser$1$1.configure({
	    props: [
	        /*@__PURE__*/indentNodeProp.add({
	            Statement: /*@__PURE__*/continuedIndent()
	        }),
	        /*@__PURE__*/foldNodeProp.add({
	            Statement(tree) { return { from: tree.firstChild.to, to: tree.to }; },
	            BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	        }),
	        /*@__PURE__*/styleTags({
	            Keyword: tags$1.keyword,
	            Type: tags$1.typeName,
	            Builtin: /*@__PURE__*/tags$1.standard(tags$1.name),
	            Bits: tags$1.number,
	            Bytes: tags$1.string,
	            Bool: tags$1.bool,
	            Null: tags$1.null,
	            Number: tags$1.number,
	            String: tags$1.string,
	            Identifier: tags$1.name,
	            QuotedIdentifier: /*@__PURE__*/tags$1.special(tags$1.string),
	            SpecialVar: /*@__PURE__*/tags$1.special(tags$1.name),
	            LineComment: tags$1.lineComment,
	            BlockComment: tags$1.blockComment,
	            Operator: tags$1.operator,
	            "Semi Punctuation": tags$1.punctuation,
	            "( )": tags$1.paren,
	            "{ }": tags$1.brace,
	            "[ ]": tags$1.squareBracket
	        })
	    ]
	});
	/**
	Represents an SQL dialect.
	*/
	class SQLDialect {
	    constructor(
	    /**
	    @internal
	    */
	    dialect, 
	    /**
	    The language for this dialect.
	    */
	    language, 
	    /**
	    The spec used to define this dialect.
	    */
	    spec) {
	        this.dialect = dialect;
	        this.language = language;
	        this.spec = spec;
	    }
	    /**
	    Returns the language for this dialect as an extension.
	    */
	    get extension() { return this.language.extension; }
	    /**
	    Define a new dialect.
	    */
	    static define(spec) {
	        let d = dialect(spec, spec.keywords, spec.types, spec.builtin);
	        let language = LRLanguage.define({
	            name: "sql",
	            parser: parser$e.configure({
	                tokenizers: [{ from: tokens, to: tokensFor(d) }]
	            }),
	            languageData: {
	                commentTokens: { line: "--", block: { open: "/*", close: "*/" } },
	                closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
	            }
	        });
	        return new SQLDialect(d, language, spec);
	    }
	}
	/**
	Returns a completion source that provides keyword completion for
	the given SQL dialect.
	*/
	function keywordCompletionSource(dialect, upperCase = false) {
	    return completeKeywords(dialect.dialect.words, upperCase);
	}
	/**
	FIXME remove on 1.0 @internal
	*/
	function keywordCompletion(dialect, upperCase = false) {
	    return dialect.language.data.of({
	        autocomplete: keywordCompletionSource(dialect, upperCase)
	    });
	}
	/**
	Returns a completion sources that provides schema-based completion
	for the given configuration.
	*/
	function schemaCompletionSource(config) {
	    return config.schema ? completeFromSchema$1(config.schema, config.tables, config.schemas, config.defaultTable, config.defaultSchema, config.dialect || StandardSQL)
	        : () => null;
	}
	/**
	FIXME remove on 1.0 @internal
	*/
	function schemaCompletion(config) {
	    return config.schema ? (config.dialect || StandardSQL).language.data.of({
	        autocomplete: schemaCompletionSource(config)
	    }) : [];
	}
	/**
	SQL language support for the given SQL dialect, with keyword
	completion, and, if provided, schema-based completion as extra
	extensions.
	*/
	function sql$2(config = {}) {
	    let lang = config.dialect || StandardSQL;
	    return new LanguageSupport(lang.language, [schemaCompletion(config), keywordCompletion(lang, !!config.upperCaseKeywords)]);
	}
	/**
	The standard SQL dialect.
	*/
	const StandardSQL = /*@__PURE__*/SQLDialect.define({});
	/**
	Dialect for [PostgreSQL](https://www.postgresql.org).
	*/
	const PostgreSQL = /*@__PURE__*/SQLDialect.define({
	    charSetCasts: true,
	    doubleDollarQuotedStrings: true,
	    operatorChars: "+-*/<>=~!@#%^&|`?",
	    specialVar: "",
	    keywords: SQLKeywords + "a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",
	    types: SQLTypes + "bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"
	});
	const MySQLKeywords = "accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";
	const MySQLTypes = SQLTypes + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed";
	const MySQLBuiltin = "charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee";
	/**
	[MySQL](https://dev.mysql.com/) dialect.
	*/
	const MySQL = /*@__PURE__*/SQLDialect.define({
	    operatorChars: "*+-%<>!=&|^",
	    charSetCasts: true,
	    doubleQuotedStrings: true,
	    unquotedBitLiterals: true,
	    hashComments: true,
	    spaceAfterDashes: true,
	    specialVar: "@?",
	    identifierQuotes: "`",
	    keywords: SQLKeywords + "group_concat " + MySQLKeywords,
	    types: MySQLTypes,
	    builtin: MySQLBuiltin
	});
	/**
	Variant of [`MySQL`](https://codemirror.net/6/docs/ref/#lang-sql.MySQL) for
	[MariaDB](https://mariadb.org/).
	*/
	const MariaSQL = /*@__PURE__*/SQLDialect.define({
	    operatorChars: "*+-%<>!=&|^",
	    charSetCasts: true,
	    doubleQuotedStrings: true,
	    unquotedBitLiterals: true,
	    hashComments: true,
	    spaceAfterDashes: true,
	    specialVar: "@?",
	    identifierQuotes: "`",
	    keywords: SQLKeywords + "always generated groupby_concat hard persistent shutdown soft virtual " + MySQLKeywords,
	    types: MySQLTypes,
	    builtin: MySQLBuiltin
	});
	/**
	SQL dialect for Microsoft [SQL
	Server](https://www.microsoft.com/en-us/sql-server).
	*/
	const MSSQL = /*@__PURE__*/SQLDialect.define({
	    keywords: SQLKeywords + "trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",
	    types: SQLTypes + "bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",
	    builtin: "binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",
	    operatorChars: "*+-%<>!=^&|/",
	    specialVar: "@"
	});
	/**
	[SQLite](https://sqlite.org/) dialect.
	*/
	const SQLite = /*@__PURE__*/SQLDialect.define({
	    keywords: SQLKeywords + "abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",
	    types: SQLTypes + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",
	    builtin: "auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",
	    operatorChars: "*+-%<>!=&|/~",
	    identifierQuotes: "`\"",
	    specialVar: "@:?$"
	});
	/**
	Dialect for [Cassandra](https://cassandra.apache.org/)'s SQL-ish query language.
	*/
	const Cassandra = /*@__PURE__*/SQLDialect.define({
	    keywords: "add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",
	    types: SQLTypes + "ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",
	    slashComments: true
	});
	/**
	[PL/SQL](https://en.wikipedia.org/wiki/PL/SQL) dialect.
	*/
	const PLSQL = /*@__PURE__*/SQLDialect.define({
	    keywords: SQLKeywords + "abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",
	    builtin: "appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",
	    types: SQLTypes + "ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",
	    operatorChars: "*/+-%<>!=~",
	    doubleQuotedStrings: true,
	    charSetCasts: true,
	    plsqlQuotingMechanism: true
	});

	var index$e = /*#__PURE__*/Object.freeze({
		__proto__: null,
		Cassandra: Cassandra,
		MSSQL: MSSQL,
		MariaSQL: MariaSQL,
		MySQL: MySQL,
		PLSQL: PLSQL,
		PostgreSQL: PostgreSQL,
		SQLDialect: SQLDialect,
		SQLite: SQLite,
		StandardSQL: StandardSQL,
		keywordCompletion: keywordCompletion,
		keywordCompletionSource: keywordCompletionSource,
		schemaCompletion: schemaCompletion,
		schemaCompletionSource: schemaCompletionSource,
		sql: sql$2
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const RawString$1 = 1,
	  templateArgsEndFallback = 2,
	  MacroName = 3;

	const R = 82, L = 76, u = 117, U = 85,
	      a = 97, z = 122, A$1 = 65, Z = 90, Underscore = 95,
	      Zero$1 = 48,
	      Quote$1 = 34,
	      ParenL$1 = 40, ParenR = 41,
	      Space = 32, GreaterThan$1 = 62;

	const rawString = new ExternalTokenizer(input => {
	  // Raw string literals can start with: R, LR, uR, UR, u8R
	  if (input.next == L || input.next == U) {
	    input.advance();
	  } else if (input.next == u) {
	    input.advance();
	    if (input.next == Zero$1 + 8) input.advance();
	  }
	  if (input.next != R) return
	  input.advance();
	  if (input.next != Quote$1) return
	  input.advance();

	  let marker = "";
	  while (input.next != ParenL$1) {
	    if (input.next == Space || input.next <= 13 || input.next == ParenR) return
	    marker += String.fromCharCode(input.next);
	    input.advance();
	  }
	  input.advance();

	  for (;;) {
	    if (input.next < 0)
	      return input.acceptToken(RawString$1)
	    if (input.next == ParenR) {
	      let match = true;
	      for (let i = 0; match && i < marker.length; i++)
	        if (input.peek(i + 1) != marker.charCodeAt(i)) match = false;
	      if (match && input.peek(marker.length + 1) == Quote$1)
	        return input.acceptToken(RawString$1, 2 + marker.length)
	    }
	    input.advance();
	  }
	});

	const fallback = new ExternalTokenizer(input => {
	  if (input.next == GreaterThan$1) {
	    // Provide a template-args-closing token when the next characters
	    // are ">>", in which case the regular tokenizer will only see a
	    // bit shift op.
	    if (input.peek(1) == GreaterThan$1)
	      input.acceptToken(templateArgsEndFallback, 1);
	  } else {
	    // Notice all-uppercase identifiers
	    let sawLetter = false, i = 0;
	    for (;; i++) {
	      if (input.next >= A$1 && input.next <= Z) sawLetter = true;
	      else if (input.next >= a && input.next <= z) return
	      else if (input.next != Underscore && !(input.next >= Zero$1 && input.next <= Zero$1 + 9)) break
	      input.advance();
	    }
	    if (sawLetter && i > 1) input.acceptToken(MacroName);
	  }
	}, {extend: true});

	const cppHighlighting = styleTags({
	  "typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based": tags$1.definitionKeyword,
	  "extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access": tags$1.modifier,
	  "if else switch for while do case default return break continue goto throw try catch": tags$1.controlKeyword,
	  "co_return co_yield co_await": tags$1.controlKeyword,
	  "new sizeof delete static_assert": tags$1.operatorKeyword,
	  "NULL nullptr": tags$1.null,
	  this: tags$1.self,
	  "True False": tags$1.bool,
	  "TypeSize PrimitiveType": tags$1.standard(tags$1.typeName),
	  TypeIdentifier: tags$1.typeName,
	  FieldIdentifier: tags$1.propertyName,
	  "CallExpression/FieldExpression/FieldIdentifier": tags$1.function(tags$1.propertyName),
	  "ModuleName/Identifier": tags$1.namespace,
	  "PartitionName": tags$1.labelName,
	  StatementIdentifier: tags$1.labelName,
	  "Identifier DestructorName": tags$1.variableName,
	  "CallExpression/Identifier": tags$1.function(tags$1.variableName),
	  "CallExpression/ScopedIdentifier/Identifier": tags$1.function(tags$1.variableName),
	  "FunctionDeclarator/Identifier FunctionDeclarator/DestructorName": tags$1.function(tags$1.definition(tags$1.variableName)),
	  NamespaceIdentifier: tags$1.namespace,
	  OperatorName: tags$1.operator,
	  ArithOp: tags$1.arithmeticOperator,
	  LogicOp: tags$1.logicOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  AssignOp: tags$1.definitionOperator,
	  UpdateOp: tags$1.updateOperator,
	  LineComment: tags$1.lineComment,
	  BlockComment: tags$1.blockComment,
	  Number: tags$1.number,
	  String: tags$1.string,
	  "RawString SystemLibString": tags$1.special(tags$1.string),
	  CharLiteral: tags$1.character,
	  EscapeSequence: tags$1.escape,
	  "UserDefinedLiteral/Identifier": tags$1.literal,
	  PreProcArg: tags$1.meta,
	  "PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif": tags$1.processingInstruction,
	  MacroName: tags$1.special(tags$1.name),
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace,
	  "< >": tags$1.angleBracket,
	  ". ->": tags$1.derefOperator,
	  ", ;": tags$1.separator
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$6 = {__proto__:null,bool:34, char:34, int:34, float:34, double:34, void:34, size_t:34, ssize_t:34, intptr_t:34, uintptr_t:34, charptr_t:34, int8_t:34, int16_t:34, int32_t:34, int64_t:34, uint8_t:34, uint16_t:34, uint32_t:34, uint64_t:34, char8_t:34, char16_t:34, char32_t:34, char64_t:34, const:68, volatile:70, restrict:72, _Atomic:74, mutable:76, constexpr:78, constinit:80, consteval:82, struct:86, __declspec:90, final:148, override:148, public:152, private:152, protected:152, virtual:154, extern:160, static:162, register:164, inline:166, thread_local:168, __attribute__:172, __based:178, __restrict:180, __uptr:180, __sptr:180, _unaligned:180, __unaligned:180, noexcept:194, requires:198, TRUE:784, true:784, FALSE:786, false:786, typename:218, class:220, template:234, throw:248, __cdecl:256, __clrcall:256, __stdcall:256, __fastcall:256, __thiscall:256, __vectorcall:256, try:260, catch:264, export:282, import:286, case:296, default:298, if:308, else:314, switch:318, do:322, while:324, for:330, return:334, break:338, continue:342, goto:346, co_return:350, co_yield:354, using:362, typedef:366, namespace:380, new:398, delete:400, co_await:402, concept:406, enum:410, static_assert:414, friend:422, union:424, explicit:430, operator:444, module:456, signed:518, unsigned:518, long:518, short:518, decltype:528, auto:530, sizeof:566, NULL:572, nullptr:586, this:588};
	const spec_ = {__proto__:null,"<":131};
	const spec_templateArgsEnd = {__proto__:null,">":135};
	const spec_scopedIdentifier = {__proto__:null,operator:388, new:576, delete:582};
	const parser$d = LRParser.deserialize({
	  version: 14,
	  states: "$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO<eQUO'#KmO>{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'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|$}%S;W;X;Y<W<X<YQ,b&sQ-x'uQ0Z*Y[0[*`*b;o;p;q;rQ0k*tQ0|+]Q2`,lQ2g,vS2{-_2_U5V0];v;wQ5b0yQ6l2jR8i6gQ+}&aR9Z7iS1q+y.XQ8^5}R8_6P[%^f$f(i)l)r0hR0d*lR+`&UQ+_&UR5h1TS&Xy+xQ*g%XU+f&V0z;xS+m&Y1SW+p&Z1O5a;yQ-j'kQ/h)hS0_*d*fQ1R+]Q1^+eQ4t/mQ5W0^Q5`0yQ5u1jR8X5vR5z1mYvOwx&S*qR&t!gW%gg,l,v-_T*X$g2_T)w$W*q[uOwx!g&S*qQ&}!kQ*y%mQ,p&yQ,t'OQ2d,qQ6b2cQ8d6cQ8l6jQ9n8gQ:X9lQ:[9pQ:e:WQ:g:]R:k:fxlOwx!g!k%m&S&y'O*q,q2c6c6j8g9l9p:W:]:fU$h[&|-^X-`'b-]-a2zQ-['`R2o-TS-X'`-TQ2r-VQ2x-YU6p2p2q2sQ6w2vS8o6q6rR9s8p[rOwx!g&S*qS-q't-wT.h(Q.mR+S%y[sOwx!g&S*qS-s't-wT.i(Q.m[tOwx!g&S*qT.j(Q.mT.T'y.UX%af%k0h1QQ.w([R4_.xR.t(ZR(d#XQ(r#aS/R(j(kR4e/SR/V(lR4g/T",
	  nodeNames: "⚠ RawString > MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",
	  maxTerm: 425,
	  nodeProps: [
	    ["group", -35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],
	    ["isolate", -4,4,5,8,10,""]
	  ],
	  propSources: [cppHighlighting],
	  skippedNodes: [0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],
	  repeatNodeCount: 41,
	  tokenData: "&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!<Yyz!=Tz{!>O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%<g#P#Q%Kz#Q#R%Ms#R#S%6Y#S#T$e#T#i%6Y#i#j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lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",
	  tokenizers: [rawString, fallback, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
	  topRules: {"Program":[0,307]},
	  dynamicPrecedences: {"87":1,"94":1,"119":1,"184":1,"187":-10,"240":-10,"241":1,"244":-1,"246":-10,"247":1,"262":-1,"267":2,"268":2,"306":-10,"365":3,"417":1,"418":3,"419":1,"420":1},
	  specialized: [{term: 356, get: (value) => spec_identifier$6[value] || -1},{term: 32, get: (value) => spec_[value] || -1},{term: 66, get: (value) => spec_templateArgsEnd[value] || -1},{term: 363, get: (value) => spec_scopedIdentifier[value] || -1}],
	  tokenPrec: 24891
	});

	/**
	A language provider based on the [Lezer C++
	parser](https://github.com/lezer-parser/cpp), extended with
	highlighting and indentation information.
	*/
	const cppLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "cpp",
	    parser: /*@__PURE__*/parser$d.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
	                TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|catch)\b/ }),
	                LabeledStatement: flatIndent,
	                CaseStatement: context => context.baseIndent + context.unit,
	                BlockComment: () => null,
	                CompoundStatement: /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                Statement: /*@__PURE__*/continuedIndent({ except: /^{/ })
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList": foldInside,
	                BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
	        indentOnInput: /^\s*(?:case |default:|\{|\})$/,
	        closeBrackets: { stringPrefixes: ["L", "u", "U", "u8", "LR", "UR", "uR", "u8R", "R"] }
	    }
	});
	/**
	Language support for C++.
	*/
	function cpp$1() {
	    return new LanguageSupport(cppLanguage);
	}

	var index$d = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cpp: cpp$1,
		cppLanguage: cppLanguage
	});

	const javaHighlighting = styleTags({
	  null: tags$1.null,
	    instanceof: tags$1.operatorKeyword,
	  this: tags$1.self,
	  "new super assert open to with void": tags$1.keyword,
	  "class interface extends implements enum var": tags$1.definitionKeyword,
	  "module package import": tags$1.moduleKeyword,
	  "switch while for if else case default do break continue return try catch finally throw": tags$1.controlKeyword,
	  ["requires exports opens uses provides public private protected static transitive abstract final " +
	   "strictfp synchronized native transient volatile throws"]: tags$1.modifier,
	  IntegerLiteral: tags$1.integer,
	  FloatingPointLiteral: tags$1.float,
	  "StringLiteral TextBlock": tags$1.string,
	  CharacterLiteral: tags$1.character,
	  LineComment: tags$1.lineComment,
	  BlockComment: tags$1.blockComment,
	  BooleanLiteral: tags$1.bool,
	  PrimitiveType: tags$1.standard(tags$1.typeName),
	  TypeName: tags$1.typeName,
	  Identifier: tags$1.variableName,
	  "MethodName/Identifier": tags$1.function(tags$1.variableName),
	  Definition: tags$1.definition(tags$1.variableName),
	  ArithOp: tags$1.arithmeticOperator,
	  LogicOp: tags$1.logicOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  AssignOp: tags$1.definitionOperator,
	  UpdateOp: tags$1.updateOperator,
	  Asterisk: tags$1.punctuation,
	  Label: tags$1.labelName,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace,
	  ".": tags$1.derefOperator,
	  ", ;": tags$1.separator
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$5 = {__proto__:null,true:34, false:34, null:42, void:46, byte:48, short:48, int:48, long:48, char:48, float:48, double:48, boolean:48, extends:62, super:64, class:76, this:78, new:84, public:100, protected:102, private:104, abstract:106, static:108, final:110, strictfp:112, default:114, synchronized:116, native:118, transient:120, volatile:122, throws:150, implements:160, interface:166, enum:176, instanceof:236, open:265, module:267, requires:272, transitive:274, exports:276, to:278, opens:280, uses:282, provides:284, with:286, package:290, import:294, if:306, else:308, while:312, for:316, var:323, assert:330, switch:334, case:340, do:344, break:348, continue:352, return:356, throw:362, try:366, catch:370, finally:378};
	const parser$c = LRParser.deserialize({
	  version: 14,
	  states: "#!tQ]QPOOQ$wQPOOO(_QQO'#H]O*cQQO'#CbOOQO'#Cb'#CbO*jQPO'#CaO*rOSO'#CpOOQO'#Hb'#HbOOQO'#Cu'#CuO,_QPO'#D_O,xQQO'#HlOOQO'#Hl'#HlO/^QQO'#HgO/eQQO'#HgOOQO'#Hg'#HgOOQO'#Hf'#HfO1iQPO'#DUO1vQPO'#GmO4nQPO'#D_O4uQPO'#DzO*jQPO'#E[O5hQPO'#E[OOQO'#DV'#DVO6vQQO'#H`O8}QQO'#EeO9UQPO'#EdO9ZQPO'#EfOOQO'#Ha'#HaO7^QQO'#HaO:^QQO'#FgO:eQPO'#EwO:jQPO'#E|O:jQPO'#FOOOQO'#H`'#H`OOQO'#HX'#HXOOQO'#Gg'#GgOOQO'#HW'#HWO;zQPO'#FhOOQO'#HV'#HVOOQO'#Gf'#GfQ]QPOOOOQO'#Hr'#HrO<PQPO'#HrO<UQPO'#D{O<UQPO'#EVO<UQPO'#EQO<^QPO'#HoO<oQQO'#EfO*jQPO'#C`O<wQPO'#C`O*jQP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lR%|#Y#zjOcopx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$W$[$i$j$k$l$m$n${%a%h%s&a'g'x'}(O(z({)V)`)y*f*i*}+^+b+c+f+i+m,S,Y-l-n-w-{.a.g/U/X/[/^/h0T0`0eQ#f`Q%{#YQ'S$VU)Q%d'Y'cQ)w&_Q*m'XQ+z(nQ,d)iQ,e)jR.],WQ)h%zR,c)g#|fO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$W$[$i$j$k$l$m$n${%a%h%s&a'g'x'}(O(z({)V)`)y*f*i*}+^+b+c+f+i+m,S,Y-l-n-w-{.a.g/U/X/[/^/h0T0`0eT&m#t,TQ&y#xQ'y$lQ-o+bQ/V-nR/y/X]!nP!o'W*k-W.x#PaOPX`bcx![!f!o!y#_#e#l$[$j$k$l$m$n${%_%a&Y&f'W'_'b'u(O(x(z({*Q*k*x+^+f+m+r,S-U-W-{.x/^U#WY!W'vQ%Q!eU&h#n#s+`Q(i%SS,m)}*tT.m,o-Zj#UY!W!e#n#s%S%t&T)s)}*t,o-ZU&S#`&](wQ)r&XQ+_'vQ+k(YQ-m+`Q-x+lQ/a.QR0O/bQ)c%sQ,a)`R/i.gR,b)``!jP!o'W'b*k*x-W.xT%T!g*vR%Y!hW%R!e%S*t-ZQ(t%ZR,P(uS#d`%_R&^#eQ)R%dT*n'Y'cR*s'_[!lP!o'W*k-W.xR%U!gR#h`R,[)VR)Z%hT-d+V-eQ/P-gR/t/QR/t/R",
	  nodeNames: "⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp BitOp BitOp LogicOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",
	  maxTerm: 275,
	  nodeProps: [
	    ["isolate", -4,1,2,18,19,""],
	    ["group", -26,4,47,76,77,82,87,92,144,146,149,150,152,155,157,160,162,164,166,171,173,175,177,179,180,182,190,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,117,119,121,124,126,129,"Expression",-7,23,24,25,26,27,29,34,"Type"],
	    ["openedBy", 10,"(",44,"{"],
	    ["closedBy", 11,")",45,"}"]
	  ],
	  propSources: [javaHighlighting],
	  skippedNodes: [0,1,2],
	  repeatNodeCount: 28,
	  tokenData: "#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Q;'S;=`&s<%lO%QV# ]V}R&XSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# {Z&}X#cQ&XSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!n#q;'S%Q;'S;=`&s<%lO%QU#!uV#dQ&XSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##cV|R&XSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$PV#tP&XSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",
	  tokenizers: [0, 1, 2, 3],
	  topRules: {"Program":[0,3],"ClassContent":[1,193]},
	  dynamicPrecedences: {"27":1,"231":-1,"242":-1},
	  specialized: [{term: 230, get: (value) => spec_identifier$5[value] || -1}],
	  tokenPrec: 6995
	});

	/**
	A language provider based on the [Lezer Java
	parser](https://github.com/lezer-parser/java), extended with
	highlighting and indentation information.
	*/
	const javaLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "java",
	    parser: /*@__PURE__*/parser$c.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
	                TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|catch|finally)\b/ }),
	                LabeledStatement: flatIndent,
	                SwitchBlock: context => {
	                    let after = context.textAfter, closed = /^\s*\}/.test(after), isCase = /^\s*(case|default)\b/.test(after);
	                    return context.baseIndent + (closed ? 0 : isCase ? 1 : 2) * context.unit;
	                },
	                Block: /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                BlockComment: () => null,
	                Statement: /*@__PURE__*/continuedIndent({ except: /^{/ })
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                ["Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody " +
	                    "ConstructorBody InterfaceBody ArrayInitializer"]: foldInside,
	                BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
	        indentOnInput: /^\s*(?:case |default:|\{|\})$/
	    }
	});
	/**
	Java language support.
	*/
	function java$1() {
	    return new LanguageSupport(javaLanguage);
	}

	var index$c = /*#__PURE__*/Object.freeze({
		__proto__: null,
		java: java$1,
		javaLanguage: javaLanguage
	});

	const jsonHighlighting = styleTags({
	  String: tags$1.string,
	  Number: tags$1.number,
	  "True False": tags$1.bool,
	  PropertyName: tags$1.propertyName,
	  Null: tags$1.null,
	  ",": tags$1.separator,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$b = LRParser.deserialize({
	  version: 14,
	  states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
	  stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
	  goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
	  nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
	  maxTerm: 25,
	  nodeProps: [
	    ["isolate", -2,6,11,""],
	    ["openedBy", 7,"{",12,"["],
	    ["closedBy", 8,"}",13,"]"]
	  ],
	  propSources: [jsonHighlighting],
	  skippedNodes: [0],
	  repeatNodeCount: 2,
	  tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
	  tokenizers: [0],
	  topRules: {"JsonText":[0,1]},
	  tokenPrec: 0
	});

	/**
	Calls
	[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
	on the document and, if that throws an error, reports it as a
	single diagnostic.
	*/
	const jsonParseLinter = () => (view) => {
	    try {
	        JSON.parse(view.state.doc.toString());
	    }
	    catch (e) {
	        if (!(e instanceof SyntaxError))
	            throw e;
	        const pos = getErrorPosition(e, view.state.doc);
	        return [{
	                from: pos,
	                message: e.message,
	                severity: 'error',
	                to: pos
	            }];
	    }
	    return [];
	};
	function getErrorPosition(error, doc) {
	    let m;
	    if (m = error.message.match(/at position (\d+)/))
	        return Math.min(+m[1], doc.length);
	    if (m = error.message.match(/at line (\d+) column (\d+)/))
	        return Math.min(doc.line(+m[1]).from + (+m[2]) - 1, doc.length);
	    return 0;
	}

	/**
	A language provider that provides JSON parsing.
	*/
	const jsonLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "json",
	    parser: /*@__PURE__*/parser$b.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Object: /*@__PURE__*/continuedIndent({ except: /^\s*\}/ }),
	                Array: /*@__PURE__*/continuedIndent({ except: /^\s*\]/ })
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "Object Array": foldInside
	            })
	        ]
	    }),
	    languageData: {
	        closeBrackets: { brackets: ["[", "{", '"'] },
	        indentOnInput: /^\s*[\}\]]$/
	    }
	});
	/**
	JSON language support.
	*/
	function json$1() {
	    return new LanguageSupport(jsonLanguage);
	}

	var index$b = /*#__PURE__*/Object.freeze({
		__proto__: null,
		json: json$1,
		jsonLanguage: jsonLanguage,
		jsonParseLinter: jsonParseLinter
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const descendantOp$1 = 110,
	  Unit$1 = 1,
	  openArgList = 2;

	const space$2 = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197,
	    8198, 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288];
	function isAlpha$1(ch) { return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 161; }
	function isDigit$2(ch) { return ch >= 48 && ch <= 57; }
	const argList = /*@__PURE__*/new ExternalTokenizer((input, stack) => {
	    if (input.next == 40 /* Ch.parenL */) {
	        let prev = input.peek(-1);
	        if (isAlpha$1(prev) || isDigit$2(prev) || prev == 95 /* Ch.underscore */ || prev == 45 /* Ch.dash */)
	            input.acceptToken(openArgList, 1);
	    }
	});
	const descendant$1 = /*@__PURE__*/new ExternalTokenizer(input => {
	    if (space$2.indexOf(input.peek(-1)) > -1) {
	        let { next } = input;
	        if (isAlpha$1(next) || next == 95 /* Ch.underscore */ || next == 35 /* Ch.hash */ || next == 46 /* Ch.period */ ||
	            next == 91 /* Ch.bracketL */ || next == 58 /* Ch.colon */ || next == 45 /* Ch.dash */)
	            input.acceptToken(descendantOp$1);
	    }
	});
	const unitToken$1 = /*@__PURE__*/new ExternalTokenizer(input => {
	    if (space$2.indexOf(input.peek(-1)) < 0) {
	        let { next } = input;
	        if (next == 37 /* Ch.percent */) {
	            input.advance();
	            input.acceptToken(Unit$1);
	        }
	        if (isAlpha$1(next)) {
	            do {
	                input.advance();
	            } while (isAlpha$1(input.next));
	            input.acceptToken(Unit$1);
	        }
	    }
	});

	const lessHighlighting = /*@__PURE__*/styleTags({
	    "import charset namespace keyframes media supports when": tags$1.definitionKeyword,
	    "from to selector": tags$1.keyword,
	    NamespaceName: tags$1.namespace,
	    KeyframeName: tags$1.labelName,
	    TagName: tags$1.tagName,
	    ClassName: tags$1.className,
	    PseudoClassName: /*@__PURE__*/tags$1.constant(tags$1.className),
	    IdName: tags$1.labelName,
	    "FeatureName PropertyName PropertyVariable": tags$1.propertyName,
	    AttributeName: tags$1.attributeName,
	    NumberLiteral: tags$1.number,
	    KeywordQuery: tags$1.keyword,
	    UnaryQueryOp: tags$1.operatorKeyword,
	    "CallTag ValueName": tags$1.atom,
	    VariableName: tags$1.variableName,
	    "AtKeyword Interpolation": /*@__PURE__*/tags$1.special(tags$1.variableName),
	    Callee: tags$1.operatorKeyword,
	    Unit: tags$1.unit,
	    "UniversalSelector NestingSelector": tags$1.definitionOperator,
	    MatchOp: tags$1.compareOperator,
	    "ChildOp SiblingOp, LogicOp": tags$1.logicOperator,
	    BinOp: tags$1.arithmeticOperator,
	    Important: tags$1.modifier,
	    "Comment LineComment": tags$1.blockComment,
	    ColorLiteral: tags$1.color,
	    "ParenthesizedContent StringLiteral": tags$1.string,
	    Escape: /*@__PURE__*/tags$1.special(tags$1.string),
	    ": ...": tags$1.punctuation,
	    "PseudoOp #": tags$1.derefOperator,
	    "; ,": tags$1.separator,
	    "( )": tags$1.paren,
	    "[ ]": tags$1.squareBracket,
	    "{ }": tags$1.brace
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$4 = {__proto__:null,lang:40, "nth-child":40, "nth-last-child":40, "nth-of-type":40, "nth-last-of-type":40, dir:40, "host-context":40, and:244, or:244, not:74, only:74, url:86, "url-prefix":86, domain:86, regexp:86, when:117, selector:142, from:172, to:174};
	const spec_AtKeyword$1 = {__proto__:null,"@import":126, "@plugin":126, "@media":152, "@charset":156, "@namespace":160, "@keyframes":166, "@supports":178};
	const parser$a = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,59xOOQO'#EZ'#EZO.pQ`O,5;oOOQO,5;o,5;oO/OQWO,5:WO/VQWO,5:WOOQS'#Dn'#DnO/rQWO'#DsO/yQ!fO'#FRO0eQWO'#DtOOQS'#FS'#FSO+YQWO,5:eO'bQWO'#DrOOQS'#Cu'#CuO(QQWO'#CwO0jQ!hO'#CyO2^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#YvR%h$gR#g!XQ!_ZQ#e!WQ$x#mR&V%sW![Z!W#m%sQ!m_Q#j!ZQ#t!`Q$w#lR${#pVcOhwSgOwR!sh",
	  nodeNames: "⚠ Unit ( Comment LineComment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName ) ArgList , PseudoClassName ArgList VariableName AtKeyword PropertyVariable ValueName ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral Escape Interpolation BinaryExpression BinOp LogicOp UnaryExpression UnaryQueryOp CallExpression ] SubscriptExpression [ CallLiteral CallTag ParenthesizedContent IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp InterpolatedSelector ; when } { Block ImportStatement import KeywordQuery FeatureQuery FeatureName BinaryQuery UnaryQuery ParenthesizedQuery SelectorQuery selector CallQuery ArgList SubscriptQuery MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList from to SupportsStatement supports DetachedRuleSet PropertyName Declaration Important Inclusion IdSelector ClassSelector Inclusion CallExpression",
	  maxTerm: 133,
	  nodeProps: [
	    ["isolate", -3,3,4,30,""],
	    ["openedBy", 17,"(",59,"{"],
	    ["closedBy", 26,")",60,"}"]
	  ],
	  propSources: [lessHighlighting],
	  skippedNodes: [0,3,4],
	  repeatNodeCount: 10,
	  tokenData: "!2q~R!ZOX$tX^%l^p$tpq%lqr)Ors-xst/ltu6Zuv$tvw8^wx:Uxy;syz<Uz{<Z{|<t|}BQ}!OBc!O!PDo!P!QFY!Q![Jw![!]Kr!]!^Ln!^!_MP!_!`M{!`!aNl!a!b$t!b!c! m!c!}!&R!}#O!'y#O#P$t#P#Q!([#Q#R!(m#R#T$t#T#o!&R#o#p!)S#p#q!(m#q#r!)e#r#s!)v#s#y$t#y#z%l#z$f$t$f$g%l$g#BY$t#BY#BZ%l#BZ$IS$t$IS$I_%l$I_$I|$t$I|$JO%l$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!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",
	  tokenizers: [descendant$1, unitToken$1, argList, 0, 1, 2, 3, 4],
	  topRules: {"StyleSheet":[0,5]},
	  specialized: [{term: 116, get: (value) => spec_identifier$4[value] || -1},{term: 23, get: (value) => spec_AtKeyword$1[value] || -1}],
	  tokenPrec: 2180
	});

	/**
	A language provider for Less style sheets.
	*/
	const lessLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "less",
	    parser: /*@__PURE__*/parser$a.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Declaration: /*@__PURE__*/continuedIndent()
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                Block: foldInside
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "/*", close: "*/" }, line: "//" },
	        indentOnInput: /^\s*\}$/,
	        wordChars: "@-"
	    }
	});
	/**
	Property, variable, @-variable, and value keyword completion
	source.
	*/
	const lessCompletionSource = /*@__PURE__*/defineCSSCompletionSource(node => node.name == "VariableName" || node.name == "AtKeyword");
	/**
	Language support for Less.
	*/
	function less$1() {
	    return new LanguageSupport(lessLanguage, lessLanguage.data.of({ autocomplete: lessCompletionSource }));
	}

	var index$a = /*#__PURE__*/Object.freeze({
		__proto__: null,
		less: less$1,
		lessCompletionSource: lessCompletionSource,
		lessLanguage: lessLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const interpolationStart = 1,
	  tagStart = 2,
	  endTagStart = 3,
	  text$1 = 180,
	  endrawTagStart = 4,
	  rawText = 181,
	  endcommentTagStart = 5,
	  commentText = 182;

	function wordChar(code) {
	    return code >= 65 && code <= 90 || code >= 97 && code <= 122;
	}
	const base$2 = /*@__PURE__*/new ExternalTokenizer(input => {
	    let start = input.pos;
	    for (;;) {
	        let { next } = input;
	        if (next < 0)
	            break;
	        if (next == 123 /* Ch.BraceL */) {
	            let after = input.peek(1);
	            if (after == 123 /* Ch.BraceL */) {
	                if (input.pos > start)
	                    break;
	                input.acceptToken(interpolationStart, 2);
	                return;
	            }
	            else if (after == 37 /* Ch.Percent */) {
	                if (input.pos > start)
	                    break;
	                let scan = 2, size = 2;
	                for (;;) {
	                    let next = input.peek(scan);
	                    if (next == 32 /* Ch.Space */ || next == 10 /* Ch.Newline */) {
	                        ++scan;
	                    }
	                    else if (next == 35 /* Ch.Hash */) {
	                        ++scan;
	                        for (;;) {
	                            let comment = input.peek(scan);
	                            if (comment < 0 || comment == 10 /* Ch.Newline */)
	                                break;
	                            scan++;
	                        }
	                    }
	                    else if (next == 45 /* Ch.Dash */ && size == 2) {
	                        size = ++scan;
	                    }
	                    else {
	                        let end = next == 101 /* Ch.e */ && input.peek(scan + 1) == 110 /* Ch.n */ && input.peek(scan + 2) == 100 /* Ch.d */;
	                        input.acceptToken(end ? endTagStart : tagStart, size);
	                        return;
	                    }
	                }
	            }
	        }
	        input.advance();
	        if (next == 10 /* Ch.Newline */)
	            break;
	    }
	    if (input.pos > start)
	        input.acceptToken(text$1);
	});
	function rawTokenizer(endTag, text, tagStart) {
	    return new ExternalTokenizer(input => {
	        let start = input.pos;
	        for (;;) {
	            let { next } = input;
	            if (next == 123 /* Ch.BraceL */ && input.peek(1) == 37 /* Ch.Percent */) {
	                let scan = 2;
	                for (;; scan++) {
	                    let ch = input.peek(scan);
	                    if (ch != 32 /* Ch.Space */ && ch != 10 /* Ch.Newline */)
	                        break;
	                }
	                let word = "";
	                for (;; scan++) {
	                    let next = input.peek(scan);
	                    if (!wordChar(next))
	                        break;
	                    word += String.fromCharCode(next);
	                }
	                if (word == endTag) {
	                    if (input.pos > start)
	                        break;
	                    input.acceptToken(tagStart, 2);
	                    break;
	                }
	            }
	            else if (next < 0) {
	                break;
	            }
	            input.advance();
	            if (next == 10 /* Ch.Newline */)
	                break;
	        }
	        if (input.pos > start)
	            input.acceptToken(text);
	    });
	}
	const comment = /*@__PURE__*/rawTokenizer("endcomment", commentText, endcommentTagStart);
	const raw = /*@__PURE__*/rawTokenizer("endraw", rawText, endrawTagStart);

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$3 = {__proto__:null,contains:32, or:36, and:36, true:50, false:50, empty:52, forloop:54, tablerowloop:56, continue:58, in:128, with:194, for:196, as:198, if:234, endif:238, unless:244, endunless:248, elsif:252, else:256, case:262, endcase:266, when:270, endfor:278, tablerow:284, endtablerow:288, break:292, cycle:298, echo:302, render:306, include:312, assign:316, capture:322, endcapture:326, increment:330, decrement:334};
	const spec_TagName = {__proto__:null,if:82, endif:86, elsif:90, else:94, unless:100, endunless:104, case:110, endcase:114, when:118, for:126, endfor:136, tablerow:142, endtablerow:146, break:150, continue:154, cycle:158, comment:164, endcomment:170, raw:176, endraw:182, echo:186, render:190, include:202, assign:206, capture:212, endcapture:216, increment:220, decrement:224, liquid:228};
	const parser$9 = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "GYQYOPOOOOOP'#F{'#F{OeOXO'#CdOsQWO'#CfO!bQ`O'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQO'#Cg'#CgO&`QpO,59QO&gQpO'#G^OsQWO'#CsOOQO'#G^'#G^OOOP,59l,59lO)PQWO,59lOsQWO,59pOsQWO,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p ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when , ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render RenderParameter Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
	  maxTerm: 189,
	  nodeProps: [
	    ["closedBy", 1,"}}",-4,2,3,4,5,"%}",22,")"],
	    ["openedBy", 9,"{{",21,"(",38,"{%"],
	    ["group", -12,11,12,15,19,23,25,26,27,28,29,30,31,"Expression"]
	  ],
	  skippedNodes: [0,6],
	  repeatNodeCount: 11,
	  tokenData: ")l~RlXY!yYZ!y]^!ypq!yqr#[rs#gst$Xuv$pwx${xy%hyz%m{|%r|}'^}!O'c!O!P'o!Q![&{![!](P!^!_(U!_!`(^!`!a(U!c!}(f#R#S(f#T#o(f#p#q)[#q#r)a%W;'S(f;'S;:j)U<%lO(f~#OS%O~XY!yYZ!y]^!ypq!y~#_P!_!`#b~#gOa~~#jUOY#gZr#grs#|s;'S#g;'S;=`$R<%lO#g~$ROn~~$UP;=`<%l#g~$^SU~OY$XZ;'S$X;'S;=`$j<%lO$X~$mP;=`<%l$X~$sP#q#r$v~${Ov~~%OUOY${Zw${wx#|x;'S${;'S;=`%b<%lO${~%eP;=`<%l${~%mOf~~%rOe~P%uQ!O!P%{!Q![&{P&OP!Q![&RP&WRoP!Q![&R!g!h&a#X#Y&aP&dR{|&m}!O&m!Q![&sP&pP!Q![&sP&xPoP!Q![&sP'QSoP!O!P%{!Q![&{!g!h&a#X#Y&a~'cO!^~~'fRuv$p!O!P%{!Q![&{~'tQ]S!O!P'z!Q![&R~(POh~~(UOs~~(ZPa~!_!`#b~(cPd~!_!`#b_(oV^WuQ%RT!Q![(f!c!}(f#R#S(f#T#o(f%W;'S(f;'S;:j)U<%lO(f_)XP;=`<%l(f~)aOq~~)dP#q#r)g~)lOX~",
	  tokenizers: [base$2, raw, comment, 0, 1, 2, 3],
	  topRules: {"Template":[0,7]},
	  specialized: [{term: 187, get: (value) => spec_identifier$3[value] || -1},{term: 37, get: (value) => spec_TagName[value] || -1}],
	  tokenPrec: 0
	});

	function completions$1(words, type) {
	    return words.split(" ").map(label => ({ label, type }));
	}
	const Filters = /*@__PURE__*/completions$1("abs append at_least at_most capitalize ceil compact concat date default " +
	    "divided_by downcase escape escape_once first floor join last lstrip map minus modulo " +
	    "newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip " +
	    "size slice sort sort_natural split strip strip_html strip_newlines sum times truncate " +
	    "truncatewords uniq upcase url_decode url_encode where", "function");
	const Tags = /*@__PURE__*/completions$1("cycle comment endcomment raw endraw echo increment decrement liquid if elsif " +
	    "else endif unless endunless case endcase for endfor tablerow endtablerow break continue " +
	    "assign capture endcapture render include", "keyword");
	const Expressions = /*@__PURE__*/completions$1("empty forloop tablerowloop in with as contains", "keyword");
	const forloop = /*@__PURE__*/completions$1("first index index0 last length rindex", "property");
	const tablerowloop = /*@__PURE__*/completions$1("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
	function findContext(context) {
	    var _a;
	    let { state, pos } = context;
	    let node = syntaxTree(state).resolveInner(pos, -1).enterUnfinishedNodesBefore(pos);
	    let before = ((_a = node.childBefore(pos)) === null || _a === void 0 ? void 0 : _a.name) || node.name;
	    if (node.name == "FilterName")
	        return { type: "filter", node };
	    if (context.explicit && before == "|")
	        return { type: "filter" };
	    if (node.name == "TagName")
	        return { type: "tag", node };
	    if (context.explicit && before == "{%")
	        return { type: "tag" };
	    if (node.name == "PropertyName" && node.parent.name == "MemberExpression")
	        return { type: "property", node, target: node.parent };
	    if (node.name == "." && node.parent.name == "MemberExpression")
	        return { type: "property", target: node.parent };
	    if (node.name == "MemberExpression" && before == ".")
	        return { type: "property", target: node };
	    if (node.name == "VariableName")
	        return { type: "expression", from: node.from };
	    let word = context.matchBefore(/[\w\u00c0-\uffff]+$/);
	    if (word)
	        return { type: "expression", from: word.from };
	    if (context.explicit && node.name != "CommentText" && node.name != "StringLiteral" &&
	        node.name != "NumberLiteral" && node.name != "InlineComment")
	        return { type: "expression" };
	    return null;
	}
	function resolveProperties(state, node, context, properties) {
	    let path = [];
	    for (;;) {
	        let obj = node.getChild("Expression");
	        if (!obj)
	            return [];
	        if (obj.name == "forloop") {
	            return path.length ? [] : forloop;
	        }
	        else if (obj.name == "tablerowloop") {
	            return path.length ? [] : tablerowloop;
	        }
	        else if (obj.name == "VariableName") {
	            path.unshift(state.sliceDoc(obj.from, obj.to));
	            break;
	        }
	        else if (obj.name == "MemberExpression") {
	            let name = obj.getChild("PropertyName");
	            if (name)
	                path.unshift(state.sliceDoc(name.from, name.to));
	            node = obj;
	        }
	        else {
	            return [];
	        }
	    }
	    return properties ? properties(path, state, context) : [];
	}
	/**
	Returns a completion source for liquid templates. Optionally takes
	a configuration that adds additional custom completions.
	*/
	function liquidCompletionSource(config = {}) {
	    let filters = config.filters ? config.filters.concat(Filters) : Filters;
	    let tags = config.tags ? config.tags.concat(Tags) : Tags;
	    let exprs = config.variables ? config.variables.concat(Expressions) : Expressions;
	    let { properties } = config;
	    return (context) => {
	        var _a;
	        let cx = findContext(context);
	        if (!cx)
	            return null;
	        let from = (_a = cx.from) !== null && _a !== void 0 ? _a : (cx.node ? cx.node.from : context.pos);
	        let options;
	        if (cx.type == "filter")
	            options = filters;
	        else if (cx.type == "tag")
	            options = tags;
	        else if (cx.type == "expression")
	            options = exprs;
	        else /* property */
	            options = resolveProperties(context.state, cx.target, context, properties);
	        return options.length ? { options, from, validFor: /^[\w\u00c0-\uffff]*$/ } : null;
	    };
	}
	/**
	This extension will, when the user types a `%` between two
	matching braces, insert two percent signs instead and put the
	cursor between them.
	*/
	const closePercentBrace = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text) => {
	    if (text != "%" || from != to || view.state.doc.sliceString(from - 1, to + 1) != "{}")
	        return false;
	    view.dispatch(view.state.changeByRange(range => ({
	        changes: { from: range.from, to: range.to, insert: "%%" },
	        range: EditorSelection.cursor(range.from + 1)
	    })), {
	        scrollIntoView: true,
	        userEvent: "input.type"
	    });
	    return true;
	});

	function directiveIndent(except) {
	    return (context) => {
	        let back = except.test(context.textAfter);
	        return context.lineIndent(context.node.from) + (back ? 0 : context.unit);
	    };
	}
	const tagLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "liquid",
	    parser: /*@__PURE__*/parser$9.configure({
	        props: [
	            /*@__PURE__*/styleTags({
	                "cycle comment endcomment raw endraw echo increment decrement liquid in with as": tags$1.keyword,
	                "empty forloop tablerowloop": tags$1.atom,
	                "if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": tags$1.controlKeyword,
	                "assign capture endcapture": tags$1.definitionKeyword,
	                "contains": tags$1.operatorKeyword,
	                "render include": tags$1.moduleKeyword,
	                VariableName: tags$1.variableName,
	                TagName: tags$1.tagName,
	                FilterName: /*@__PURE__*/tags$1.function(tags$1.variableName),
	                PropertyName: tags$1.propertyName,
	                CompareOp: tags$1.compareOperator,
	                AssignOp: tags$1.definitionOperator,
	                LogicOp: tags$1.logicOperator,
	                NumberLiteral: tags$1.number,
	                StringLiteral: tags$1.string,
	                BooleanLiteral: tags$1.bool,
	                InlineComment: tags$1.lineComment,
	                CommentText: tags$1.blockComment,
	                "{% %} {{ }}": tags$1.brace,
	                "( )": tags$1.paren,
	                ".": tags$1.derefOperator,
	                ", .. : |": tags$1.punctuation
	            }),
	            /*@__PURE__*/indentNodeProp.add({
	                Tag: /*@__PURE__*/delimitedIndent({ closing: "%}" }),
	                "UnlessDirective ForDirective TablerowDirective CaptureDirective": /*@__PURE__*/directiveIndent(/^\s*(\{%-?\s*)?end\w/),
	                IfDirective: /*@__PURE__*/directiveIndent(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
	                CaseDirective: /*@__PURE__*/directiveIndent(/^\s*(\{%-?\s*)?(endcase|when)\b/),
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(tree) {
	                    let first = tree.firstChild, last = tree.lastChild;
	                    if (!first || first.name != "Tag")
	                        return null;
	                    return { from: first.to, to: last.name == "EndTag" ? last.from : tree.to };
	                }
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: "#" },
	        indentOnInput: /^\s*{%-?\s*(?:end|elsif|else|when|)$/
	    }
	});
	const baseHTML$2 = /*@__PURE__*/html();
	function makeLiquid(base) {
	    return tagLanguage.configure({
	        wrap: parseMixed(node => node.type.isTop ? {
	            parser: base.parser,
	            overlay: n => n.name == "Text" || n.name == "RawText"
	        } : null)
	    }, "liquid");
	}
	/**
	A language provider for Liquid templates.
	*/
	const liquidLanguage = /*@__PURE__*/makeLiquid(baseHTML$2.language);
	/**
	Liquid template support.
	*/
	function liquid(config = {}) {
	    let base = config.base || baseHTML$2;
	    let lang = base.language == baseHTML$2.language ? liquidLanguage : makeLiquid(base.language);
	    return new LanguageSupport(lang, [
	        base.support,
	        lang.data.of({ autocomplete: liquidCompletionSource(config) }),
	        base.language.data.of({ closeBrackets: { brackets: ["{"] } }),
	        closePercentBrace
	    ]);
	}

	var index$9 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		closePercentBrace: closePercentBrace,
		liquid: liquid,
		liquidCompletionSource: liquidCompletionSource,
		liquidLanguage: liquidLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const castOpen = 1,
	  HeredocString = 2,
	  interpolatedStringContent = 263,
	  EscapeSequence = 3,
	  afterInterpolation = 264,
	  automaticSemicolon = 265,
	  eof$3 = 266,
	  abstract = 4,
	  and$1 = 5,
	  array = 6,
	  as = 7,
	  Boolean$1 = 8,
	  _break = 9,
	  _case = 10,
	  _catch = 11,
	  clone = 12,
	  _const = 13,
	  _continue = 14,
	  _default = 15,
	  declare = 16,
	  _do = 17,
	  echo = 18,
	  _else = 19,
	  elseif = 20,
	  enddeclare = 21,
	  endfor = 22,
	  endforeach = 23,
	  endif = 24,
	  endswitch = 25,
	  endwhile = 26,
	  _enum = 27,
	  _extends = 28,
	  final = 29,
	  _finally = 30,
	  fn = 31,
	  _for = 32,
	  foreach = 33,
	  from$1 = 34,
	  _function = 35,
	  global = 36,
	  goto = 37,
	  _if = 38,
	  _implements = 39,
	  include = 40,
	  include_once = 41,
	  _instanceof = 42,
	  insteadof = 43,
	  _interface = 44,
	  list = 45,
	  match = 46,
	  namespace = 47,
	  _new = 48,
	  _null = 49,
	  or = 50,
	  print = 51,
	  _require = 52,
	  require_once = 53,
	  _return = 54,
	  _switch = 55,
	  _throw = 56,
	  trait = 57,
	  _try = 58,
	  unset = 59,
	  use = 60,
	  _var = 61,
	  Visibility = 62,
	  _while = 63,
	  xor = 64,
	  _yield = 65;

	const keywordMap = {
	  abstract,
	  and: and$1,
	  array,
	  as,
	  true: Boolean$1,
	  false: Boolean$1,
	  break: _break,
	  case: _case,
	  catch: _catch,
	  clone,
	  const: _const,
	  continue: _continue,
	  declare,
	  default: _default,
	  do: _do,
	  echo,
	  else: _else,
	  elseif,
	  enddeclare,
	  endfor,
	  endforeach,
	  endif,
	  endswitch,
	  endwhile,
	  enum: _enum,
	  extends: _extends,
	  final,
	  finally: _finally,
	  fn,
	  for: _for,
	  foreach,
	  from: from$1,
	  function: _function,
	  global,
	  goto,
	  if: _if,
	  implements: _implements,
	  include,
	  include_once,
	  instanceof: _instanceof,
	  insteadof,
	  interface: _interface,
	  list,
	  match,
	  namespace,
	  new: _new,
	  null: _null,
	  or,
	  print,
	  require: _require,
	  require_once,
	  return: _return,
	  switch: _switch,
	  throw: _throw,
	  trait,
	  try: _try,
	  unset,
	  use,
	  var: _var,
	  public: Visibility,
	  private: Visibility,
	  protected: Visibility,
	  while: _while,
	  xor,
	  yield: _yield,
	  __proto__: null,
	};

	function keywords$G(name) {
	  let found = keywordMap[name.toLowerCase()];
	  return found == null ? -1 : found
	}

	function isSpace$2(ch) {
	  return ch == 9 || ch == 10 || ch == 13 || ch == 32
	}

	function isASCIILetter(ch) {
	  return ch >= 97 && ch <= 122 || ch >= 65 && ch <= 90
	}

	function isIdentifierStart(ch) {
	  return ch == 95 || ch >= 0x80 || isASCIILetter(ch)
	}

	function isHex$1(ch) {
	  return ch >= 48 && ch <= 55 || ch >= 97 && ch <= 102 || ch >= 65 && ch <= 70 /* 0-9, a-f, A-F */
	}

	const castTypes = {
	  int: true, integer: true, bool: true, boolean: true,
	  float: true, double: true, real: true, string: true,
	  array: true, object: true, unset: true,
	  __proto__: null
	};

	const expression$1 = new ExternalTokenizer(input => {
	  if (input.next == 40 /* '(' */) {
	    input.advance();
	    let peek = 0;
	    while (isSpace$2(input.peek(peek))) peek++;
	    let name = "", next;
	    while (isASCIILetter(next = input.peek(peek))) {
	      name += String.fromCharCode(next);
	      peek++;
	    }
	    while (isSpace$2(input.peek(peek))) peek++;
	    if (input.peek(peek) == 41 /* ')' */ && castTypes[name.toLowerCase()])
	      input.acceptToken(castOpen);
	  } else if (input.next == 60 /* '<' */ && input.peek(1) == 60 && input.peek(2) == 60) {
	    for (let i = 0; i < 3; i++) input.advance();
	    while (input.next == 32 /* ' ' */ || input.next == 9 /* '\t' */) input.advance();
	    let quoted = input.next == 39; /* "'" */
	    if (quoted) input.advance();
	    if (!isIdentifierStart(input.next)) return
	    let tag = String.fromCharCode(input.next);
	    for (;;) {
	      input.advance();
	      if (!isIdentifierStart(input.next) && !(input.next >= 48 && input.next <= 55) /* 0-9 */) break
	      tag += String.fromCharCode(input.next);
	    }
	    if (quoted) {
	      if (input.next != 39) return
	      input.advance();
	    }
	    if (input.next != 10 /* '\n' */ && input.next != 13 /* '\r' */) return
	    for (;;) {
	      let lineStart = input.next == 10 || input.next == 13;
	      input.advance();
	      if (input.next < 0) return
	      if (lineStart) {
	        while (input.next == 32 /* ' ' */ || input.next == 9 /* '\t' */) input.advance();
	        let match = true;
	        for (let i = 0; i < tag.length; i++) {
	          if (input.next != tag.charCodeAt(i)) { match = false; break }
	          input.advance();
	        }
	        if (match) return input.acceptToken(HeredocString)
	      }
	    }
	  }
	});

	const eofToken = new ExternalTokenizer(input => {
	  if (input.next < 0) input.acceptToken(eof$3);
	});

	const semicolon = new ExternalTokenizer((input, stack) => {
	  if (input.next == 63 /* '?' */ && stack.canShift(automaticSemicolon) && input.peek(1) == 62 /* '>' */)
	    input.acceptToken(automaticSemicolon);
	});

	function scanEscape(input) {
	  let after = input.peek(1);
	  if (after == 110 /* 'n' */ || after == 114 /* 'r' */ || after == 116 /* 't' */ ||
	      after == 118 /* 'v' */ || after == 101 /* 'e' */ || after == 102 /* 'f' */ ||
	      after == 92 /* '\\' */ || after == 36 /* '"' */ || after == 34 /* '$' */ ||
	      after == 123 /* '{' */)
	    return 2

	  if (after >= 48 && after <= 55 /* '0'-'7' */) {
	    let size = 2, next;
	    while (size < 5 && (next = input.peek(size)) >= 48 && next <= 55) size++;
	    return size
	  }

	  if (after == 120 /* 'x' */ && isHex$1(input.peek(2))) {
	    return isHex$1(input.peek(3)) ? 4 : 3
	  }

	  if (after == 117 /* 'u' */ && input.peek(2) == 123 /* '{' */) {
	    for (let size = 3;; size++) {
	      let next = input.peek(size);
	      if (next == 125 /* '}' */) return size == 2 ? 0 : size + 1
	      if (!isHex$1(next)) break
	    }
	  }

	  return 0
	}

	const interpolated = new ExternalTokenizer((input, stack) => {
	  let content = false;
	  for (;; content = true) {
	    if (input.next == 34 /* '"' */ || input.next < 0 ||
	        input.next == 36 /* '$' */ && (isIdentifierStart(input.peek(1)) || input.peek(1) == 123 /* '{' */) ||
	        input.next == 123 /* '{' */ && input.peek(1) == 36 /* '$' */) {
	      break
	    } else if (input.next == 92 /* '\\' */) {
	      let escaped = scanEscape(input);
	      if (escaped) {
	        if (content) break
	        else return input.acceptToken(EscapeSequence, escaped)
	      }
	    } else if (!content && (
	      input.next == 91 /* '[' */ ||
	      input.next == 45 /* '-' */ && input.peek(1) == 62 /* '>' */ && isIdentifierStart(input.peek(2)) ||
	      input.next == 63 /* '?' */ && input.peek(1) == 45 && input.peek(2) == 62 && isIdentifierStart(input.peek(3))
	    ) && stack.canShift(afterInterpolation)) {
	      break
	    }
	    input.advance();
	  }
	  if (content) input.acceptToken(interpolatedStringContent);
	});

	const phpHighlighting = styleTags({
	  "Visibility abstract final static": tags$1.modifier,
	  "for foreach while do if else elseif switch try catch finally return throw break continue default case": tags$1.controlKeyword,
	  "endif endfor endforeach endswitch endwhile declare enddeclare goto match": tags$1.controlKeyword,
	  "and or xor yield unset clone instanceof insteadof": tags$1.operatorKeyword,
	  "function fn class trait implements extends const enum global interface use var": tags$1.definitionKeyword,
	  "include include_once require require_once namespace": tags$1.moduleKeyword,
	  "new from echo print array list as": tags$1.keyword,
	  null: tags$1.null,
	  Boolean: tags$1.bool,
	  VariableName: tags$1.variableName,
	  "NamespaceName/...": tags$1.namespace,
	  "NamedType/...": tags$1.typeName,
	  Name: tags$1.name,
	  "CallExpression/Name": tags$1.function(tags$1.variableName),
	  "LabelStatement/Name": tags$1.labelName,
	  "MemberExpression/Name": tags$1.propertyName,
	  "MemberExpression/VariableName": tags$1.special(tags$1.propertyName),
	  "ScopedExpression/ClassMemberName/Name": tags$1.propertyName,
	  "ScopedExpression/ClassMemberName/VariableName": tags$1.special(tags$1.propertyName),
	  "CallExpression/MemberExpression/Name": tags$1.function(tags$1.propertyName),
	  "CallExpression/ScopedExpression/ClassMemberName/Name": tags$1.function(tags$1.propertyName),
	  "MethodDeclaration/Name": tags$1.function(tags$1.definition(tags$1.variableName)),
	  "FunctionDefinition/Name": tags$1.function(tags$1.definition(tags$1.variableName)),
	  "ClassDeclaration/Name": tags$1.definition(tags$1.className),
	  UpdateOp: tags$1.updateOperator,
	  ArithOp: tags$1.arithmeticOperator,
	  LogicOp: tags$1.logicOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  ControlOp: tags$1.controlOperator,
	  AssignOp: tags$1.definitionOperator,
	  "$ ConcatOp": tags$1.operator,
	  LineComment: tags$1.lineComment,
	  BlockComment: tags$1.blockComment,
	  Integer: tags$1.integer,
	  Float: tags$1.float,
	  String: tags$1.string,
	  ShellExpression: tags$1.special(tags$1.string),
	  "=> ->": tags$1.punctuation,
	  "( )": tags$1.paren,
	  "#[ [ ]": tags$1.squareBracket,
	  "${ { }": tags$1.brace,
	  "-> ?->": tags$1.derefOperator,
	  ", ; :: : \\": tags$1.separator,
	  "PhpOpen PhpClose": tags$1.processingInstruction,
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_Name = {__proto__:null,static:311, STATIC:311, class:333, CLASS:333};
	const parser$8 = LRParser.deserialize({
	  version: 14,
	  states: "$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]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;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;u<j<k<o<p<q<v<{<|=P=R=S=T=U=Z=m=nR.|,_0w}PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;u<j<k<o<p<q<v<{<|=P=R=S=T=U=Z=m=nT$w{${Q(i%PQ(n%SQ(q%UR1f0iQ%b!]Q(m%RQ,U(lQ.s,TQ.u,VQ0c.tR1c0dQ%q!fR)]%rR)e%p",
	  nodeNames: "⚠ ( HeredocString EscapeSequence abstract LogicOp array as Boolean break case catch clone const continue default declare do echo else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach from function global goto if implements include include_once LogicOp insteadof interface list match namespace new null LogicOp print require require_once return switch throw trait try unset use var Visibility while LogicOp yield LineComment BlockComment TextInterpolation PhpClose Text PhpOpen Template TextInterpolation EmptyStatement ; } { Block : LabelStatement Name ExpressionStatement ConditionalExpression LogicOp MatchExpression ) ( ParenthesizedExpression MatchBlock MatchArm , => AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",
	  maxTerm: 304,
	  nodeProps: [
	    ["group", -36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],
	    ["isolate", -4,66,67,70,191,""],
	    ["openedBy", 69,"phpOpen",76,"{",86,"(",101,"#["],
	    ["closedBy", 71,"phpClose",77,"}",87,")",158,"]"]
	  ],
	  propSources: [phpHighlighting],
	  skippedNodes: [0],
	  repeatNodeCount: 29,
	  tokenData: "!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!<h#Q#R!=U#R#S!7z#S#T!=u#T#U!7z#U#V!9W#V#o!7z#o#p!Co#p#q!D]#q#r!Er#r#s!F`#s$f$z$f$g&^$g&j!7z&j$I_$z$I_$I`&^$I`$KW$z$KW$KX&^$KX;'S$z;'S;=`&W<%l?HT$z?HT?HU&^?HUO$zP%PV&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zP%kO&wPP%nWOY$zYZ%fZ!a$z!b;'S$z;'S;=`&W<%l~$z~O$z~~%fP&ZP;=`<%l$zV&ed&wP&vUOX$zXY&^YZ'sZ]$z]^&^^p$zpq&^q!^$z!^!_%k!_$f$z$f$g&^$g$I_$z$I_$I`&^$I`$KW$z$KW$KX&^$KX;'S$z;'S;=`&W<%l?HT$z?HT?HU&^?HUO$zV'zW&wP&vUXY(dYZ(d]^(dpq(d$f$g(d$I_$I`(d$KW$KX(d?HT?HU(dU(iW&vUXY(dYZ(d]^(dpq(d$f$g(d$I_$I`(d$KW$KX(d?HT?HU(dR)YW$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`;'S$z;'S;=`&W<%lO$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x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",
	  tokenizers: [expression$1, interpolated, semicolon, 0, 1, 2, 3, eofToken],
	  topRules: {"Template":[0,72],"Program":[1,232]},
	  dynamicPrecedences: {"284":1},
	  specialized: [{term: 81, get: (value, stack) => (keywords$G(value) << 1), external: keywords$G},{term: 81, get: (value) => spec_Name[value] || -1}],
	  tokenPrec: 29354
	});

	/**
	A language provider based on the [Lezer PHP
	parser](https://github.com/lezer-parser/php), extended with
	highlighting and indentation information.
	*/
	const phpLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "php",
	    parser: /*@__PURE__*/parser$8.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b|elseif\b|endif\b)/ }),
	                TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
	                SwitchBody: context => {
	                    let after = context.textAfter, closed = /^\s*\}/.test(after), isCase = /^\s*(case|default)\b/.test(after);
	                    return context.baseIndent + (closed ? 0 : isCase ? 1 : 2) * context.unit;
	                },
	                ColonBlock: cx => cx.baseIndent + cx.unit,
	                "Block EnumBody DeclarationList": /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                ArrowFunction: cx => cx.baseIndent + cx.unit,
	                "String BlockComment": () => null,
	                Statement: /*@__PURE__*/continuedIndent({ except: /^({|end(for|foreach|switch|while)\b)/ })
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList": foldInside,
	                ColonBlock(tree) { return { from: tree.from + 1, to: tree.to }; },
	                BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "/*", close: "*/" }, line: "//" },
	        indentOnInput: /^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,
	        wordChars: "$",
	        closeBrackets: { stringPrefixes: ["b", "B"] }
	    }
	});
	/**
	PHP language support.
	*/
	function php(config = {}) {
	    let support = [], base;
	    if (config.baseLanguage === null) ;
	    else if (config.baseLanguage) {
	        base = config.baseLanguage;
	    }
	    else {
	        let htmlSupport = html({ matchClosingTags: false });
	        support.push(htmlSupport.support);
	        base = htmlSupport.language;
	    }
	    return new LanguageSupport(phpLanguage.configure({
	        wrap: base && parseMixed(node => {
	            if (!node.type.isTop)
	                return null;
	            return {
	                parser: base.parser,
	                overlay: node => node.name == "Text"
	            };
	        }),
	        top: config.plain ? "Program" : "Template"
	    }), support);
	}

	var index$8 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		php: php,
		phpLanguage: phpLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const printKeyword = 1,
	  indent$3 = 194,
	  dedent$3 = 195,
	  newline$1 = 196,
	  blankLineStart$1 = 197,
	  newlineBracketed = 198,
	  eof$2 = 199,
	  stringContent = 200,
	  Escape = 2,
	  replacementStart = 3,
	  stringEnd = 201,
	  ParenL = 24,
	  ParenthesizedExpression = 25,
	  TupleExpression = 49,
	  ComprehensionExpression = 50,
	  BracketL$1 = 55,
	  ArrayExpression = 56,
	  ArrayComprehensionExpression = 57,
	  BraceL$1 = 59,
	  DictionaryExpression = 60,
	  DictionaryComprehensionExpression = 61,
	  SetExpression = 62,
	  SetComprehensionExpression = 63,
	  ArgList = 65,
	  subscript = 238,
	  String$1 = 71,
	  stringStart = 241,
	  stringStartD = 242,
	  stringStartL = 243,
	  stringStartLD = 244,
	  stringStartR = 245,
	  stringStartRD = 246,
	  stringStartRL = 247,
	  stringStartRLD = 248,
	  FormatString = 72,
	  stringStartF = 249,
	  stringStartFD = 250,
	  stringStartFL = 251,
	  stringStartFLD = 252,
	  stringStartFR = 253,
	  stringStartFRD = 254,
	  stringStartFRL = 255,
	  stringStartFRLD = 256,
	  FormatReplacement = 73,
	  nestedFormatReplacement = 77,
	  importList = 264,
	  TypeParamList = 112,
	  ParamList = 130,
	  SequencePattern = 151,
	  MappingPattern = 152,
	  PatternArgList = 155;

	const newline$2 = 10, carriageReturn = 13, space$1 = 32, tab = 9, hash$1 = 35, parenOpen = 40, dot = 46,
	      braceOpen = 123, braceClose = 125, singleQuote$1 = 39, doubleQuote$1 = 34, backslash = 92,
	      letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85;

	const bracketed$1 = new Set([
	  ParenthesizedExpression, TupleExpression, ComprehensionExpression, importList, ArgList, ParamList,
	  ArrayExpression, ArrayComprehensionExpression, subscript,
	  SetExpression, SetComprehensionExpression, FormatString, FormatReplacement, nestedFormatReplacement,
	  DictionaryExpression, DictionaryComprehensionExpression,
	  SequencePattern, MappingPattern, PatternArgList, TypeParamList
	]);

	function isLineBreak(ch) {
	  return ch == newline$2 || ch == carriageReturn
	}

	function isHex(ch) {
	  return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
	}

	const newlines$1 = new ExternalTokenizer((input, stack) => {
	  let prev;
	  if (input.next < 0) {
	    input.acceptToken(eof$2);
	  } else if (stack.context.flags & cx_Bracketed) {
	    if (isLineBreak(input.next)) input.acceptToken(newlineBracketed, 1);
	  } else if (((prev = input.peek(-1)) < 0 || isLineBreak(prev)) &&
	             stack.canShift(blankLineStart$1)) {
	    let spaces = 0;
	    while (input.next == space$1 || input.next == tab) { input.advance(); spaces++; }
	    if (input.next == newline$2 || input.next == carriageReturn || input.next == hash$1)
	      input.acceptToken(blankLineStart$1, -spaces);
	  } else if (isLineBreak(input.next)) {
	    input.acceptToken(newline$1, 1);
	  }
	}, {contextual: true});

	const indentation$2 = new ExternalTokenizer((input, stack) => {
	  let context = stack.context;
	  if (context.flags) return
	  let prev = input.peek(-1);
	  if (prev == newline$2 || prev == carriageReturn) {
	    let depth = 0, chars = 0;
	    for (;;) {
	      if (input.next == space$1) depth++;
	      else if (input.next == tab) depth += 8 - (depth % 8);
	      else break
	      input.advance();
	      chars++;
	    }
	    if (depth != context.indent &&
	        input.next != newline$2 && input.next != carriageReturn && input.next != hash$1) {
	      if (depth < context.indent) input.acceptToken(dedent$3, -chars);
	      else input.acceptToken(indent$3);
	    }
	  }
	});

	// Flags used in Context objects
	const cx_Bracketed = 1, cx_String = 2, cx_DoubleQuote = 4, cx_Long = 8, cx_Raw = 16, cx_Format = 32;

	function Context$d(parent, indent, flags) {
	  this.parent = parent;
	  this.indent = indent;
	  this.flags = flags;
	  this.hash = (parent ? parent.hash + parent.hash << 8 : 0) + indent + (indent << 4) + flags + (flags << 6);
	}

	const topIndent$1 = new Context$d(null, 0, 0);

	function countIndent(space) {
	  let depth = 0;
	  for (let i = 0; i < space.length; i++)
	    depth += space.charCodeAt(i) == tab ? 8 - (depth % 8) : 1;
	  return depth
	}

	const stringFlags = new Map([
	  [stringStart, 0],
	  [stringStartD, cx_DoubleQuote],
	  [stringStartL, cx_Long],
	  [stringStartLD, cx_Long | cx_DoubleQuote],
	  [stringStartR, cx_Raw],
	  [stringStartRD, cx_Raw | cx_DoubleQuote],
	  [stringStartRL, cx_Raw | cx_Long],
	  [stringStartRLD, cx_Raw | cx_Long | cx_DoubleQuote],
	  [stringStartF, cx_Format],
	  [stringStartFD, cx_Format | cx_DoubleQuote],
	  [stringStartFL, cx_Format | cx_Long],
	  [stringStartFLD, cx_Format | cx_Long | cx_DoubleQuote],
	  [stringStartFR, cx_Format | cx_Raw],
	  [stringStartFRD, cx_Format | cx_Raw | cx_DoubleQuote],
	  [stringStartFRL, cx_Format | cx_Raw | cx_Long],
	  [stringStartFRLD, cx_Format | cx_Raw | cx_Long | cx_DoubleQuote]
	].map(([term, flags]) => [term, flags | cx_String]));

	const trackIndent$1 = new ContextTracker({
	  start: topIndent$1,
	  reduce(context, term, _, input) {
	    if ((context.flags & cx_Bracketed) && bracketed$1.has(term) ||
	        (term == String$1 || term == FormatString) && (context.flags & cx_String))
	      return context.parent
	    return context
	  },
	  shift(context, term, stack, input) {
	    if (term == indent$3)
	      return new Context$d(context, countIndent(input.read(input.pos, stack.pos)), 0)
	    if (term == dedent$3)
	      return context.parent
	    if (term == ParenL || term == BracketL$1 || term == BraceL$1 || term == replacementStart)
	      return new Context$d(context, 0, cx_Bracketed)
	    if (stringFlags.has(term))
	      return new Context$d(context, 0, stringFlags.get(term) | (context.flags & cx_Bracketed))
	    return context
	  },
	  hash(context) { return context.hash }
	});

	const legacyPrint = new ExternalTokenizer(input => {
	  for (let i = 0; i < 5; i++) {
	    if (input.next != "print".charCodeAt(i)) return
	    input.advance();
	  }
	  if (/\w/.test(String.fromCharCode(input.next))) return
	  for (let off = 0;; off++) {
	    let next = input.peek(off);
	    if (next == space$1 || next == tab) continue
	    if (next != parenOpen && next != dot && next != newline$2 && next != carriageReturn && next != hash$1)
	      input.acceptToken(printKeyword);
	    return
	  }
	});

	const strings$1 = new ExternalTokenizer((input, stack) => {
	  let {flags} = stack.context;
	  let quote = (flags & cx_DoubleQuote) ? doubleQuote$1 : singleQuote$1;
	  let long = (flags & cx_Long) > 0;
	  let escapes = !(flags & cx_Raw);
	  let format = (flags & cx_Format) > 0;

	  let start = input.pos;
	  for (;;) {
	    if (input.next < 0) {
	      break
	    } else if (format && input.next == braceOpen) {
	      if (input.peek(1) == braceOpen) {
	        input.advance(2);
	      } else {
	        if (input.pos == start) {
	          input.acceptToken(replacementStart, 1);
	          return
	        }
	        break
	      }
	    } else if (escapes && input.next == backslash) {
	      if (input.pos == start) {
	        input.advance();
	        let escaped = input.next;
	        if (escaped >= 0) {
	          input.advance();
	          skipEscape(input, escaped);
	        }
	        input.acceptToken(Escape);
	        return
	      }
	      break
	    } else if (input.next == quote && (!long || input.peek(1) == quote && input.peek(2) == quote)) {
	      if (input.pos == start) {
	        input.acceptToken(stringEnd, long ? 3 : 1);
	        return
	      }
	      break
	    } else if (input.next == newline$2) {
	      if (long) {
	        input.advance();
	      } else if (input.pos == start) {
	        input.acceptToken(stringEnd);
	        return
	      }
	      break
	    } else {
	      input.advance();
	    }
	  }
	  if (input.pos > start) input.acceptToken(stringContent);
	});

	function skipEscape(input, ch) {
	  if (ch == letter_o) {
	    for (let i = 0; i < 2 && input.next >= 48 && input.next <= 55; i++) input.advance();
	  } else if (ch == letter_x) {
	    for (let i = 0; i < 2 && isHex(input.next); i++) input.advance();
	  } else if (ch == letter_u) {
	    for (let i = 0; i < 4 && isHex(input.next); i++) input.advance();
	  } else if (ch == letter_U) {
	    for (let i = 0; i < 8 && isHex(input.next); i++) input.advance();
	  } else if (ch == letter_N) {
	    if (input.next == braceOpen) {
	      input.advance();
	      while (input.next >= 0 && input.next != braceClose && input.next != singleQuote$1 &&
	             input.next != doubleQuote$1 && input.next != newline$2) input.advance();
	      if (input.next == braceClose) input.advance();
	    }
	  }
	}

	const pythonHighlighting = styleTags({
	  "async \"*\" \"**\" FormatConversion FormatSpec": tags$1.modifier,
	  "for while if elif else try except finally return raise break continue with pass assert await yield match case": tags$1.controlKeyword,
	  "in not and or is del": tags$1.operatorKeyword,
	  "from def class global nonlocal lambda": tags$1.definitionKeyword,
	  import: tags$1.moduleKeyword,
	  "with as print": tags$1.keyword,
	  Boolean: tags$1.bool,
	  None: tags$1.null,
	  VariableName: tags$1.variableName,
	  "CallExpression/VariableName": tags$1.function(tags$1.variableName),
	  "FunctionDefinition/VariableName": tags$1.function(tags$1.definition(tags$1.variableName)),
	  "ClassDefinition/VariableName": tags$1.definition(tags$1.className),
	  PropertyName: tags$1.propertyName,
	  "CallExpression/MemberExpression/PropertyName": tags$1.function(tags$1.propertyName),
	  Comment: tags$1.lineComment,
	  Number: tags$1.number,
	  String: tags$1.string,
	  FormatString: tags$1.special(tags$1.string),
	  Escape: tags$1.escape,
	  UpdateOp: tags$1.updateOperator,
	  "ArithOp!": tags$1.arithmeticOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  AssignOp: tags$1.definitionOperator,
	  Ellipsis: tags$1.punctuation,
	  At: tags$1.meta,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace,
	  ".": tags$1.derefOperator,
	  ", ;": tags$1.separator
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$2 = {__proto__:null,await:44, or:54, and:56, in:60, not:62, is:64, if:70, else:72, lambda:76, yield:94, from:96, async:102, for:104, None:162, True:164, False:164, del:178, pass:182, break:186, continue:190, return:194, raise:202, import:206, as:208, global:212, nonlocal:214, assert:218, type:223, elif:236, while:240, try:246, except:248, finally:250, with:254, def:258, class:268, match:279, case:285};
	const parser$7 = LRParser.deserialize({
	  version: 14,
	  states: "##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'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f${%Q%[%^%e%j%l%u&X&h&i&p&s&z'R'U'g'h'k'm'n'y(R(X(_(b(u)U)])_)h)r)v*Q*[*_*`*c*i*l*n*q*r*u*|*}+Q+X+[+c,P,Q,T,_,`,a,c,d,g,k,m,o,q,r,v-_-a-h-k.e.f/[0j0k0lQ#qpW%U!o!s0e0oQ%V!pQ%W!qQ%Y!tQ%d0dS'q%X0iQ's0fQ't0gQ,h*jQ-p,iS.h-n/tR0q0sU#uq.j0rR(r&Z[cOn#g$h)l+wZ!xY#[#}$Q+QQ#W[Q#zrR$TxQ%`!yQ%g!}Q%m#RQ'e$yQ(Q%cQ(U%hQ(^%nQ(a%oQ*t(ZQ,^*YQ-o,hQ.l-pR/^.kQ$StQ'|%aR*k'}Q.k-nR0O/tR#QZR#V[R%O!iQ$|!iV*Z'h*[,_!]!lQ!n#c#p$R$b$n$s$t$u$v$w$x%c%h%n%o&^&y'b(l(w)b*g*p+o,n/r0hR%R!kT#]^#_Q%v#[R,s+QQ(h%vS+V(i(jQ,u+WQ-s,sS.m-t-uR/_.nT+R(f+TQ$^}Q&e$QQ)g&zR+s)hQ#khQ$VzQ$Y{R&m$XQ(|&lR+a)PQ(|&lQ+`)OR+a)PR$[|R)Z&rXlOn)l+wQ$d!RR&{$eQ$k!UR&|$fR*P'YQ)}'YV-b,W-c.SQ.c-gQ/Q.]R/R.^U.[-g.].^Q/V.`Q/c.uQ/h.{U/j.}/k/zQ/o/SQ/}/pQ0P/uU0R/v0T0]Q0^0VQ0b0[R0c0_R/U._R/e.u",
	  nodeNames: "⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",
	  maxTerm: 277,
	  context: trackIndent$1,
	  nodeProps: [
	    ["isolate", -5,4,71,72,73,77,""],
	    ["group", -15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],
	    ["openedBy", 23,"(",54,"[",58,"{"],
	    ["closedBy", 24,")",55,"]",59,"}"]
	  ],
	  propSources: [pythonHighlighting],
	  skippedNodes: [0,4],
	  repeatNodeCount: 34,
	  tokenData: "!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#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%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",
	  tokenizers: [legacyPrint, indentation$2, newlines$1, strings$1, 0, 1, 2, 3, 4],
	  topRules: {"Script":[0,5]},
	  specialized: [{term: 221, get: (value) => spec_identifier$2[value] || -1}],
	  tokenPrec: 7646
	});

	const cache = /*@__PURE__*/new NodeWeakMap();
	const ScopeNodes = /*@__PURE__*/new Set([
	    "Script", "Body",
	    "FunctionDefinition", "ClassDefinition", "LambdaExpression",
	    "ForStatement", "MatchClause"
	]);
	function defID(type) {
	    return (node, def, outer) => {
	        if (outer)
	            return false;
	        let id = node.node.getChild("VariableName");
	        if (id)
	            def(id, type);
	        return true;
	    };
	}
	const gatherCompletions = {
	    FunctionDefinition: /*@__PURE__*/defID("function"),
	    ClassDefinition: /*@__PURE__*/defID("class"),
	    ForStatement(node, def, outer) {
	        if (outer)
	            for (let child = node.node.firstChild; child; child = child.nextSibling) {
	                if (child.name == "VariableName")
	                    def(child, "variable");
	                else if (child.name == "in")
	                    break;
	            }
	    },
	    ImportStatement(_node, def) {
	        var _a, _b;
	        let { node } = _node;
	        let isFrom = ((_a = node.firstChild) === null || _a === void 0 ? void 0 : _a.name) == "from";
	        for (let ch = node.getChild("import"); ch; ch = ch.nextSibling) {
	            if (ch.name == "VariableName" && ((_b = ch.nextSibling) === null || _b === void 0 ? void 0 : _b.name) != "as")
	                def(ch, isFrom ? "variable" : "namespace");
	        }
	    },
	    AssignStatement(node, def) {
	        for (let child = node.node.firstChild; child; child = child.nextSibling) {
	            if (child.name == "VariableName")
	                def(child, "variable");
	            else if (child.name == ":" || child.name == "AssignOp")
	                break;
	        }
	    },
	    ParamList(node, def) {
	        for (let prev = null, child = node.node.firstChild; child; child = child.nextSibling) {
	            if (child.name == "VariableName" && (!prev || !/\*|AssignOp/.test(prev.name)))
	                def(child, "variable");
	            prev = child;
	        }
	    },
	    CapturePattern: /*@__PURE__*/defID("variable"),
	    AsPattern: /*@__PURE__*/defID("variable"),
	    __proto__: null
	};
	function getScope(doc, node) {
	    let cached = cache.get(node);
	    if (cached)
	        return cached;
	    let completions = [], top = true;
	    function def(node, type) {
	        let name = doc.sliceString(node.from, node.to);
	        completions.push({ label: name, type });
	    }
	    node.cursor(IterMode.IncludeAnonymous).iterate(node => {
	        if (node.name) {
	            let gather = gatherCompletions[node.name];
	            if (gather && gather(node, def, top) || !top && ScopeNodes.has(node.name))
	                return false;
	            top = false;
	        }
	        else if (node.to - node.from > 8192) {
	            // Allow caching for bigger internal nodes
	            for (let c of getScope(doc, node.node))
	                completions.push(c);
	            return false;
	        }
	    });
	    cache.set(node, completions);
	    return completions;
	}
	const Identifier$2 = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/;
	const dontComplete = ["String", "FormatString", "Comment", "PropertyName"];
	/**
	Completion source that looks up locally defined names in
	Python code.
	*/
	function localCompletionSource(context) {
	    let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
	    if (dontComplete.indexOf(inner.name) > -1)
	        return null;
	    let isWord = inner.name == "VariableName" ||
	        inner.to - inner.from < 20 && Identifier$2.test(context.state.sliceDoc(inner.from, inner.to));
	    if (!isWord && !context.explicit)
	        return null;
	    let options = [];
	    for (let pos = inner; pos; pos = pos.parent) {
	        if (ScopeNodes.has(pos.name))
	            options = options.concat(getScope(context.state.doc, pos));
	    }
	    return {
	        options,
	        from: isWord ? inner.from : context.pos,
	        validFor: Identifier$2
	    };
	}
	const globals = /*@__PURE__*/[
	    "__annotations__", "__builtins__", "__debug__", "__doc__", "__import__", "__name__",
	    "__loader__", "__package__", "__spec__",
	    "False", "None", "True"
	].map(n => ({ label: n, type: "constant" })).concat(/*@__PURE__*/[
	    "ArithmeticError", "AssertionError", "AttributeError", "BaseException", "BlockingIOError",
	    "BrokenPipeError", "BufferError", "BytesWarning", "ChildProcessError", "ConnectionAbortedError",
	    "ConnectionError", "ConnectionRefusedError", "ConnectionResetError", "DeprecationWarning",
	    "EOFError", "Ellipsis", "EncodingWarning", "EnvironmentError", "Exception", "FileExistsError",
	    "FileNotFoundError", "FloatingPointError", "FutureWarning", "GeneratorExit", "IOError",
	    "ImportError", "ImportWarning", "IndentationError", "IndexError", "InterruptedError",
	    "IsADirectoryError", "KeyError", "KeyboardInterrupt", "LookupError", "MemoryError",
	    "ModuleNotFoundError", "NameError", "NotADirectoryError", "NotImplemented", "NotImplementedError",
	    "OSError", "OverflowError", "PendingDeprecationWarning", "PermissionError", "ProcessLookupError",
	    "RecursionError", "ReferenceError", "ResourceWarning", "RuntimeError", "RuntimeWarning",
	    "StopAsyncIteration", "StopIteration", "SyntaxError", "SyntaxWarning", "SystemError",
	    "SystemExit", "TabError", "TimeoutError", "TypeError", "UnboundLocalError", "UnicodeDecodeError",
	    "UnicodeEncodeError", "UnicodeError", "UnicodeTranslateError", "UnicodeWarning", "UserWarning",
	    "ValueError", "Warning", "ZeroDivisionError"
	].map(n => ({ label: n, type: "type" }))).concat(/*@__PURE__*/[
	    "bool", "bytearray", "bytes", "classmethod", "complex", "float", "frozenset", "int", "list",
	    "map", "memoryview", "object", "range", "set", "staticmethod", "str", "super", "tuple", "type"
	].map(n => ({ label: n, type: "class" }))).concat(/*@__PURE__*/[
	    "abs", "aiter", "all", "anext", "any", "ascii", "bin", "breakpoint", "callable", "chr",
	    "compile", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "exec", "exit", "filter",
	    "format", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "isinstance",
	    "issubclass", "iter", "len", "license", "locals", "max", "min", "next", "oct", "open",
	    "ord", "pow", "print", "property", "quit", "repr", "reversed", "round", "setattr", "slice",
	    "sorted", "sum", "vars", "zip"
	].map(n => ({ label: n, type: "function" })));
	const snippets = [
	    /*@__PURE__*/snippetCompletion("def ${name}(${params}):\n\t${}", {
	        label: "def",
	        detail: "function",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("for ${name} in ${collection}:\n\t${}", {
	        label: "for",
	        detail: "loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("while ${}:\n\t${}", {
	        label: "while",
	        detail: "loop",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("try:\n\t${}\nexcept ${error}:\n\t${}", {
	        label: "try",
	        detail: "/ except block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("if ${}:\n\t\n", {
	        label: "if",
	        detail: "block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("if ${}:\n\t${}\nelse:\n\t${}", {
	        label: "if",
	        detail: "/ else block",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}", {
	        label: "class",
	        detail: "definition",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("import ${module}", {
	        label: "import",
	        detail: "statement",
	        type: "keyword"
	    }),
	    /*@__PURE__*/snippetCompletion("from ${module} import ${names}", {
	        label: "from",
	        detail: "import",
	        type: "keyword"
	    })
	];
	/**
	Autocompletion for built-in Python globals and keywords.
	*/
	const globalCompletion = /*@__PURE__*/ifNotIn(dontComplete, /*@__PURE__*/completeFromList(/*@__PURE__*/globals.concat(snippets)));

	function indentBody(context, node) {
	    let base = context.baseIndentFor(node);
	    let line = context.lineAt(context.pos, -1), to = line.from + line.text.length;
	    // Don't consider blank, deindented lines at the end of the
	    // block part of the block
	    if (/^\s*($|#)/.test(line.text) &&
	        context.node.to < to + 100 &&
	        !/\S/.test(context.state.sliceDoc(to, context.node.to)) &&
	        context.lineIndent(context.pos, -1) <= base)
	        return null;
	    // A normally deindenting keyword that appears at a higher
	    // indentation than the block should probably be handled by the next
	    // level
	    if (/^\s*(else:|elif |except |finally:)/.test(context.textAfter) && context.lineIndent(context.pos, -1) > base)
	        return null;
	    return base + context.unit;
	}
	/**
	A language provider based on the [Lezer Python
	parser](https://github.com/lezer-parser/python), extended with
	highlighting and indentation information.
	*/
	const pythonLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "python",
	    parser: /*@__PURE__*/parser$7.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Body: context => { var _a; return (_a = indentBody(context, context.node)) !== null && _a !== void 0 ? _a : context.continue(); },
	                IfStatement: cx => /^\s*(else:|elif )/.test(cx.textAfter) ? cx.baseIndent : cx.continue(),
	                TryStatement: cx => /^\s*(except |finally:|else:)/.test(cx.textAfter) ? cx.baseIndent : cx.continue(),
	                "TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression": /*@__PURE__*/delimitedIndent({ closing: ")" }),
	                "DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression": /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                "ArrayExpression ArrayComprehensionExpression": /*@__PURE__*/delimitedIndent({ closing: "]" }),
	                "String FormatString": () => null,
	                Script: context => {
	                    if (context.pos + /\s*/.exec(context.textAfter)[0].length >= context.node.to) {
	                        let endBody = null;
	                        for (let cur = context.node, to = cur.to;;) {
	                            cur = cur.lastChild;
	                            if (!cur || cur.to != to)
	                                break;
	                            if (cur.type.name == "Body")
	                                endBody = cur;
	                        }
	                        if (endBody) {
	                            let bodyIndent = indentBody(context, endBody);
	                            if (bodyIndent != null)
	                                return bodyIndent;
	                        }
	                    }
	                    return context.continue();
	                }
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "ArrayExpression DictionaryExpression SetExpression TupleExpression": foldInside,
	                Body: (node, state) => ({ from: node.from + 1, to: node.to - (node.to == state.doc.length ? 0 : 1) })
	            })
	        ],
	    }),
	    languageData: {
	        closeBrackets: {
	            brackets: ["(", "[", "{", "'", '"', "'''", '"""'],
	            stringPrefixes: ["f", "fr", "rf", "r", "u", "b", "br", "rb",
	                "F", "FR", "RF", "R", "U", "B", "BR", "RB"]
	        },
	        commentTokens: { line: "#" },
	        indentOnInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/
	    }
	});
	/**
	Python language support.
	*/
	function python$2() {
	    return new LanguageSupport(pythonLanguage, [
	        pythonLanguage.data.of({ autocomplete: localCompletionSource }),
	        pythonLanguage.data.of({ autocomplete: globalCompletion }),
	    ]);
	}

	var index$7 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		globalCompletion: globalCompletion,
		localCompletionSource: localCompletionSource,
		python: python$2,
		pythonLanguage: pythonLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const closureParamDelim = 1,
	  tpOpen = 2,
	  tpClose = 3,
	  RawString = 4,
	  Float = 5;

	const _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48,
	      Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;

	function isNum(ch) { return ch >= 48 && ch <= 57 }
	function isNum_(ch) { return isNum(ch) || ch == 95 }

	const literalTokens = new ExternalTokenizer((input, stack) => {
	  if (isNum(input.next)) {
	    let isFloat = false;
	    do { input.advance(); } while (isNum_(input.next))
	    if (input.next == Dot) {
	      isFloat = true;
	      input.advance();
	      if (isNum(input.next)) {
	        do { input.advance(); } while (isNum_(input.next))
	      } else if (input.next == Dot || input.next > 0x7f || /\w/.test(String.fromCharCode(input.next))) {
	        return
	      }
	    }
	    if (input.next == _e || input.next == _E) {
	      isFloat = true;
	      input.advance();
	      if (input.next == Plus || input.next == Minus) input.advance();
	      if (!isNum_(input.next)) return
	      do { input.advance(); } while (isNum_(input.next))
	    }
	    if (input.next == _f) {
	      let after = input.peek(1);
	      if (after == Zero + 3 && input.peek(2) == Zero + 2 ||
	          after == Zero + 6 && input.peek(2) == Zero + 4) {
	        input.advance(3);
	        isFloat = true;
	      } else {
	        return
	      }
	    }
	    if (isFloat) input.acceptToken(Float);
	  } else if (input.next == _b || input.next == _r) {
	    if (input.next == _b) input.advance();
	    if (input.next != _r) return
	    input.advance();
	    let count = 0;
	    while (input.next == Hash) { count++; input.advance(); }
	    if (input.next != Quote) return
	    input.advance();
	    content: for (;;) {
	      if (input.next < 0) return
	      let isQuote = input.next == Quote;
	      input.advance();
	      if (isQuote) {
	        for (let i = 0; i < count; i++) {
	          if (input.next != Hash) continue content
	          input.advance();
	        }
	        input.acceptToken(RawString);
	        return
	      }
	    }
	  }
	});

	const closureParam = new ExternalTokenizer(input => {
	  if (input.next == Pipe) input.acceptToken(closureParamDelim, 1);
	});

	const tpDelim = new ExternalTokenizer(input => {
	  if (input.next == LessThan) input.acceptToken(tpOpen, 1);
	  else if (input.next == GreaterThan) input.acceptToken(tpClose, 1);
	});

	const rustHighlighting = styleTags({
	  "const macro_rules struct union enum type fn impl trait let static": tags$1.definitionKeyword,
	  "mod use crate": tags$1.moduleKeyword,
	  "pub unsafe async mut extern default move": tags$1.modifier,
	  "for if else loop while match continue break return await": tags$1.controlKeyword,
	  "as in ref": tags$1.operatorKeyword,
	  "where _ crate super dyn": tags$1.keyword,
	  "self": tags$1.self,
	  String: tags$1.string,
	  Char: tags$1.character,
	  RawString: tags$1.special(tags$1.string),
	  Boolean: tags$1.bool,
	  Identifier: tags$1.variableName,
	  "CallExpression/Identifier": tags$1.function(tags$1.variableName),
	  BoundIdentifier: tags$1.definition(tags$1.variableName),
	  "FunctionItem/BoundIdentifier": tags$1.function(tags$1.definition(tags$1.variableName)),
	  LoopLabel: tags$1.labelName,
	  FieldIdentifier: tags$1.propertyName,
	  "CallExpression/FieldExpression/FieldIdentifier": tags$1.function(tags$1.propertyName),
	  Lifetime: tags$1.special(tags$1.variableName),
	  ScopeIdentifier: tags$1.namespace,
	  TypeIdentifier: tags$1.typeName,
	  "MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier": tags$1.macroName,
	  "MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier": tags$1.macroName,
	  "\"!\"": tags$1.macroName,
	  UpdateOp: tags$1.updateOperator,
	  LineComment: tags$1.lineComment,
	  BlockComment: tags$1.blockComment,
	  Integer: tags$1.integer,
	  Float: tags$1.float,
	  ArithOp: tags$1.arithmeticOperator,
	  LogicOp: tags$1.logicOperator,
	  BitOp: tags$1.bitwiseOperator,
	  CompareOp: tags$1.compareOperator,
	  "=": tags$1.definitionOperator,
	  ".. ... => ->": tags$1.punctuation,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace,
	  ". DerefOp": tags$1.derefOperator,
	  "&": tags$1.operator,
	  ", ; ::": tags$1.separator,
	  "Attribute/...": tags$1.meta,
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier$1 = {__proto__:null,self:28, super:32, crate:34, impl:46, true:72, false:72, pub:88, in:92, const:96, unsafe:104, async:108, move:110, if:114, let:118, ref:142, mut:144, _:198, else:200, match:204, as:248, return:252, await:262, break:270, continue:276, while:312, loop:316, for:320, macro_rules:327, mod:334, extern:342, struct:346, where:364, union:379, enum:382, type:390, default:395, fn:396, trait:412, use:420, static:438, dyn:476};
	const parser$6 = LRParser.deserialize({
	  version: 14,
	  states: "$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#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n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",
	  nodeNames: "⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",
	  maxTerm: 359,
	  nodeProps: [
	    ["isolate", -4,4,6,7,33,""],
	    ["group", -42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],
	    ["openedBy", 9,"[",38,"{",47,"("],
	    ["closedBy", 12,"]",39,"}",45,")"]
	  ],
	  propSources: [rustHighlighting],
	  skippedNodes: [0,6,7,240],
	  repeatNodeCount: 32,
	  tokenData: "$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`S'cVOz&[z{&v{!P&[!P!Q'x!Q;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r$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![#MX![!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",
	  tokenizers: [closureParam, tpDelim, literalTokens, 0, 1, 2, 3],
	  topRules: {"SourceFile":[0,8]},
	  specialized: [{term: 281, get: (value) => spec_identifier$1[value] || -1}],
	  tokenPrec: 15596
	});

	/**
	A syntax provider based on the [Lezer Rust
	parser](https://github.com/lezer-parser/rust), extended with
	highlighting and indentation information.
	*/
	const rustLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "rust",
	    parser: /*@__PURE__*/parser$6.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                IfExpression: /*@__PURE__*/continuedIndent({ except: /^\s*({|else\b)/ }),
	                "String BlockComment": () => null,
	                "AttributeItem": cx => cx.continue(),
	                "Statement MatchArm": /*@__PURE__*/continuedIndent()
	            }),
	            /*@__PURE__*/foldNodeProp.add(type => {
	                if (/(Block|edTokens|List)$/.test(type.name))
	                    return foldInside;
	                if (type.name == "BlockComment")
	                    return tree => ({ from: tree.from + 2, to: tree.to - 2 });
	                return undefined;
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
	        indentOnInput: /^\s*(?:\{|\})$/,
	        closeBrackets: { stringPrefixes: ["b", "r", "br"] }
	    }
	});
	/**
	Rust language support
	*/
	function rust() {
	    return new LanguageSupport(rustLanguage);
	}

	var index$6 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		rust: rust,
		rustLanguage: rustLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const indent$2 = 154,
	  dedent$2 = 155,
	  descendantOp = 156,
	  InterpolationEnd = 1,
	  InterpolationContinue = 2,
	  Unit = 3,
	  callee = 157,
	  identifier$2 = 158,
	  VariableName = 4,
	  InterpolationStart = 5,
	  newline = 159,
	  blankLineStart = 160,
	  eof$1 = 161,
	  whitespace$1 = 162,
	  LineComment = 6,
	  Comment = 7,
	  IndentedMixin = 8,
	  IndentedInclude = 9,
	  Dialect_indented = 0;

	/* Hand-written tokenizers for CSS tokens that can't be
	   expressed by Lezer's built-in tokenizer. */

	const space = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197,
	               8198, 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288];
	const colon = 58, parenL = 40, underscore = 95, bracketL = 91, dash = 45, period = 46,
	      hash = 35, percent = 37, braceL = 123, braceR = 125, slash = 47, asterisk$2 = 42,
	      newlineChar = 10, equals = 61, plus = 43, and = 38;

	function isAlpha(ch) { return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 161 }

	function isDigit$1(ch) { return ch >= 48 && ch <= 57 }

	function startOfComment(input) {
	  let next;
	  return input.next == slash && ((next = input.peek(1)) == slash || next == asterisk$2)
	}

	const spaces = new ExternalTokenizer((input, stack) => {
	  if (stack.dialectEnabled(Dialect_indented)) {
	    let prev;
	    if (input.next < 0 && stack.canShift(eof$1)) {
	      input.acceptToken(eof$1);
	    } else if (((prev = input.peek(-1)) == newlineChar || prev < 0) && stack.canShift(blankLineStart)) {
	      let spaces = 0;
	      while (input.next != newlineChar && space.includes(input.next)) { input.advance(); spaces++; }
	      if (input.next == newlineChar || startOfComment(input))
	        input.acceptToken(blankLineStart, -spaces);
	      else if (spaces)
	        input.acceptToken(whitespace$1);
	    } else if (input.next == newlineChar) {
	      input.acceptToken(newline, 1);
	    } else if (space.includes(input.next)) {
	      input.advance();
	      while (input.next != newlineChar && space.includes(input.next)) input.advance();
	      input.acceptToken(whitespace$1);
	    }
	  } else {
	    let length = 0;
	    while (space.includes(input.next)) {
	      input.advance();
	      length++;
	    }
	    if (length) input.acceptToken(whitespace$1);
	  }
	}, {contextual: true});

	const comments = new ExternalTokenizer((input, stack) => {
	  if (!startOfComment(input)) return
	  input.advance();
	  if (stack.dialectEnabled(Dialect_indented)) {
	    let indentedComment = -1;
	    for (let off = 1;; off++) {
	      let prev = input.peek(-off - 1);
	      if (prev == newlineChar || prev < 0) {
	        indentedComment = off + 1;
	        break
	      } else if (!space.includes(prev)) {
	        break
	      }
	    }
	    if (indentedComment > -1) { // Weird indented-style comment
	      let block = input.next == asterisk$2, end = 0;
	      input.advance();
	      while (input.next >= 0) {
	        if (input.next == newlineChar) {
	          input.advance();
	          let indented = 0;
	          while (input.next != newlineChar && space.includes(input.next)) {
	            indented++;
	            input.advance();
	          }
	          if (indented < indentedComment) {
	            end = -indented - 1;
	            break
	          }
	        } else if (block && input.next == asterisk$2 && input.peek(1) == slash) {
	          end = 2;
	          break
	        } else {
	          input.advance();
	        }
	      }
	      input.acceptToken(block ? Comment : LineComment, end);
	      return
	    }
	  }
	  if (input.next == slash) {
	    while (input.next != newlineChar && input.next >= 0) input.advance();
	    input.acceptToken(LineComment);
	  } else {
	    input.advance();
	    while (input.next >= 0) {
	      let {next} = input;
	      input.advance();
	      if (next == asterisk$2 && input.next == slash) {
	        input.advance();
	        break
	      }
	    }
	    input.acceptToken(Comment);
	  }
	});

	const indentedMixins = new ExternalTokenizer((input, stack) => {
	  if ((input.next == plus || input.next == equals) && stack.dialectEnabled(Dialect_indented))
	    input.acceptToken(input.next == equals ? IndentedMixin : IndentedInclude, 1);
	});

	const indentation$1 = new ExternalTokenizer((input, stack) => {
	  if (!stack.dialectEnabled(Dialect_indented)) return
	  let cDepth = stack.context.depth;
	  if (input.next < 0 && cDepth) {
	    input.acceptToken(dedent$2);
	    return
	  }
	  let prev = input.peek(-1);
	  if (prev == newlineChar) {
	    let depth = 0;
	    while (input.next != newlineChar && space.includes(input.next)) {
	      input.advance();
	      depth++;
	    }
	    if (depth != cDepth &&
	        input.next != newlineChar && !startOfComment(input)) {
	      if (depth < cDepth) input.acceptToken(dedent$2, -depth);
	      else input.acceptToken(indent$2);
	    }
	  }
	});

	const identifiers$9 = new ExternalTokenizer((input, stack) => {
	  for (let inside = false, dashes = 0, i = 0;; i++) {
	    let {next} = input;
	    if (isAlpha(next) || next == dash || next == underscore || (inside && isDigit$1(next))) {
	      if (!inside && (next != dash || i > 0)) inside = true;
	      if (dashes === i && next == dash) dashes++;
	      input.advance();
	    } else if (next == hash && input.peek(1) == braceL) {
	      input.acceptToken(InterpolationStart, 2);
	      break
	    } else {
	      if (inside)
	        input.acceptToken(next == parenL ? callee : dashes == 2 && stack.canShift(VariableName) ? VariableName : identifier$2);
	      break
	    }
	  }
	});

	const interpolationEnd = new ExternalTokenizer(input => {
	  if (input.next == braceR) {
	    input.advance();
	    while (isAlpha(input.next) || input.next == dash || input.next == underscore || isDigit$1(input.next))
	      input.advance();
	    if (input.next == hash && input.peek(1) == braceL)
	      input.acceptToken(InterpolationContinue, 2);
	    else
	      input.acceptToken(InterpolationEnd);
	  }
	});

	const descendant = new ExternalTokenizer(input => {
	  if (space.includes(input.peek(-1))) {
	    let {next} = input;
	    if (isAlpha(next) || next == underscore || next == hash || next == period ||
	        next == bracketL || next == colon || next == dash || next == and)
	      input.acceptToken(descendantOp);
	  }
	});

	const unitToken = new ExternalTokenizer(input => {
	  if (!space.includes(input.peek(-1))) {
	    let {next} = input;
	    if (next == percent) { input.advance(); input.acceptToken(Unit); }
	    if (isAlpha(next)) {
	      do { input.advance(); } while (isAlpha(input.next))
	      input.acceptToken(Unit);
	    }
	  }
	});

	function IndentLevel(parent, depth) {
	  this.parent = parent;
	  this.depth = depth;
	  this.hash = (parent ? parent.hash + parent.hash << 8 : 0) + depth + (depth << 4);
	}

	const topIndent = new IndentLevel(null, 0);

	const trackIndent = new ContextTracker({
	  start: topIndent,
	  shift(context, term, stack, input) {
	    if (term == indent$2) return new IndentLevel(context, stack.pos - input.pos)
	    if (term == dedent$2) return context.parent
	    return context
	  },
	  hash(context) { return context.hash }
	});

	const cssHighlighting = styleTags({
	  "AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root": tags$1.definitionKeyword,
	  "Keyword selector": tags$1.keyword,
	  "ControlKeyword": tags$1.controlKeyword,
	  NamespaceName: tags$1.namespace,
	  KeyframeName: tags$1.labelName,
	  TagName: tags$1.tagName,
	  "ClassName Suffix": tags$1.className,
	  PseudoClassName: tags$1.constant(tags$1.className),
	  IdName: tags$1.labelName,
	  "FeatureName PropertyName": tags$1.propertyName,
	  AttributeName: tags$1.attributeName,
	  NumberLiteral: tags$1.number,
	  KeywordQuery: tags$1.keyword,
	  UnaryQueryOp: tags$1.operatorKeyword,
	  "CallTag ValueName": tags$1.atom,
	  VariableName: tags$1.variableName,
	  SassVariableName: tags$1.special(tags$1.variableName),
	  Callee: tags$1.operatorKeyword,
	  Unit: tags$1.unit,
	  "UniversalSelector NestingSelector IndentedMixin IndentedInclude": tags$1.definitionOperator,
	  MatchOp: tags$1.compareOperator,
	  "ChildOp SiblingOp, LogicOp": tags$1.logicOperator,
	  BinOp: tags$1.arithmeticOperator,
	  "Important Global Default": tags$1.modifier,
	  Comment: tags$1.blockComment,
	  LineComment: tags$1.lineComment,
	  ColorLiteral: tags$1.color,
	  "ParenthesizedContent StringLiteral": tags$1.string,
	  "InterpolationStart InterpolationContinue InterpolationEnd": tags$1.meta,
	  ": \"...\"": tags$1.punctuation,
	  "PseudoOp #": tags$1.derefOperator,
	  "; ,": tags$1.separator,
	  "( )": tags$1.paren,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_identifier = {__proto__:null,not:62, only:62, using:179, as:189, with:193, without:193, hide:207, show:207, from:230, to:232, if:245, through:251, in:257};
	const spec_callee = {__proto__:null,url:80, "url-prefix":80, domain:80, regexp:80, lang:94, "nth-child":94, "nth-last-child":94, "nth-of-type":94, "nth-last-of-type":94, dir:94, "host-context":94, selector:172};
	const spec_AtKeyword = {__proto__:null,"@import":156, "@include":176, "@mixin":182, "@function":182, "@use":186, "@extend":196, "@at-root":200, "@forward":204, "@media":210, "@charset":214, "@namespace":218, "@keyframes":224, "@supports":236, "@if":240, "@else":242, "@for":248, "@each":254, "@while":260, "@debug":264, "@warn":264, "@error":264, "@return":264};
	const parser$5 = LRParser.deserialize({
	  version: 14,
	  states: "LvQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#FxO%rQ.jO'#CnO&jQ#dO'#DWO'aQ(pO'#CgO'hQ)OO'#DYO'sQ#dO'#DaO'xQ#dO'#DeO'}Q#dO'#DnOOQ#U'#Fx'#FxO(SQ(pO'#FxO(ZQ(nO'#DrO%rQ.jO'#DzO%rQ.jO'#EVO%rQ.jO'#EYO%rQ.jO'#E[O(`Q)OO'#EaO)QQ)OO'#EcO%rQ.jO'#EeO)_Q)OO'#EhO%rQ.jO'#EjO)yQ)OO'#ElO*UQ#dO'#EoO*ZQ)OO'#EuO*oQ)OO'#FVOOQ&Z'#Fw'#FwOOQ&Y'#FY'#FYO*yQ(nO'#FYQ`Q+tOOO%rQ.jO'#EwO+UQ(nO'#E{O+ZQ)OO'#FOO%rQ.jO'#FRO%rQ.jO'#FTOOQ&Z'#Fa'#FaO+cQ+uO'#GRO+pQ(oO'#GRQOQ#SOOP,UO#SO'#FvPOOO)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edSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName ] AttributeSelector [ AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery UnaryQuery ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList Keyword Keyword SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles",
	  maxTerm: 180,
	  context: trackIndent,
	  nodeProps: [
	    ["openedBy", 1,"InterpolationStart",5,"InterpolationEnd",21,"(",75,"{"],
	    ["isolate", -3,6,7,26,""],
	    ["closedBy", 22,")",67,"}"]
	  ],
	  propSources: [cssHighlighting],
	  skippedNodes: [0,6,7,135],
	  repeatNodeCount: 18,
	  tokenData: "!!p~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}Co}!ODQ!O!PDo!P!QFY!Q![Fk![!]Gf!]!^Hb!^!_Hs!_!`I[!`!aIs!a!b#r!b!cJt!c!}#r!}#OL^#O#P#r#P#QLo#Q#RMQ#R#T#r#T#UMg#U#c#r#c#dNx#d#o#r#o#p! _#p#qMQ#q#r! p#r#s!!R#s;'S#r;'S;=`!!j<%lO#rW#uSOy$Rz;'S$R;'S;=`$d<%lO$RW$WSyWOy$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`$d<%lO$RZGkUtROy$Rz![$R![!]G}!];'S$R;'S;=`$d<%lO$RXHUS}PyWOy$Rz;'S$R;'S;=`$d<%lO$RZHgS!lROy$Rz;'S$R;'S;=`$d<%lO$RYHxUlQOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$R^IaU![SOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$RZIzV!^PlQOy$Rz!_$R!_!`%c!`!aJa!a;'S$R;'S;=`$d<%lO$RXJhS!^PyWOy$Rz;'S$R;'S;=`$d<%lO$RXJwWOy$Rz!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXKh[!oPyWOy$Rz}$R}!OKa!O!Q$R!Q![Ka![!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXLcS!YPOy$Rz;'S$R;'S;=`$d<%lO$R^LtS!WUOy$Rz;'S$R;'S;=`$d<%lO$R[MTUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RZMjUOy$Rz#b$R#b#cM|#c;'S$R;'S;=`$d<%lO$RZNRUyWOy$Rz#W$R#W#XNe#X;'S$R;'S;=`$d<%lO$RZNlSmRyWOy$Rz;'S$R;'S;=`$d<%lO$RZN{UOy$Rz#f$R#f#gNe#g;'S$R;'S;=`$d<%lO$RZ! dS!eROy$Rz;'S$R;'S;=`$d<%lO$RZ! uS!mROy$Rz;'S$R;'S;=`$d<%lO$R]!!WU!aPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!!mP;=`<%l#r",
	  tokenizers: [indentation$1, descendant, interpolationEnd, unitToken, identifiers$9, spaces, comments, indentedMixins, 0, 1, 2, 3],
	  topRules: {"StyleSheet":[0,10],"Styles":[1,134]},
	  dialects: {indented: 0},
	  specialized: [{term: 158, get: (value) => spec_identifier[value] || -1},{term: 157, get: (value) => spec_callee[value] || -1},{term: 77, get: (value) => spec_AtKeyword[value] || -1}],
	  tokenPrec: 3027
	});

	/**
	A language provider based on the [Lezer Sass
	parser](https://github.com/lezer-parser/sass), extended with
	highlighting and indentation information.
	*/
	const sassLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "sass",
	    parser: /*@__PURE__*/parser$5.configure({
	        props: [
	            /*@__PURE__*/foldNodeProp.add({
	                Block: foldInside,
	                Comment(node, state) {
	                    return { from: node.from + 2, to: state.sliceDoc(node.to - 2, node.to) == "*/" ? node.to - 2 : node.to };
	                }
	            }),
	            /*@__PURE__*/indentNodeProp.add({
	                Declaration: /*@__PURE__*/continuedIndent()
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "/*", close: "*/" }, line: "//" },
	        indentOnInput: /^\s*\}$/,
	        wordChars: "$-"
	    }
	});
	const indentedSassLanguage = /*@__PURE__*/sassLanguage.configure({
	    dialect: "indented",
	    props: [
	        /*@__PURE__*/indentNodeProp.add({
	            "Block RuleSet": cx => cx.baseIndent + cx.unit
	        }),
	        /*@__PURE__*/foldNodeProp.add({
	            Block: node => ({ from: node.from, to: node.to })
	        })
	    ]
	});
	/**
	Property, variable, $-variable, and value keyword completion
	source.
	*/
	const sassCompletionSource = /*@__PURE__*/defineCSSCompletionSource(node => node.name == "VariableName" || node.name == "SassVariableName");
	/**
	Language support for CSS.
	*/
	function sass(config) {
	    return new LanguageSupport((config === null || config === void 0 ? void 0 : config.indented) ? indentedSassLanguage : sassLanguage, sassLanguage.data.of({ autocomplete: sassCompletionSource }));
	}

	var index$5 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		sass: sass,
		sassCompletionSource: sassCompletionSource,
		sassLanguage: sassLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const spec_Keyword = {__proto__:null,anyref:34, dataref:34, eqref:34, externref:34, i31ref:34, funcref:34, i8:34, i16:34, i32:34, i64:34, f32:34, f64:34};
	const parser$4 = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
	  stateData: "!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",
	  goto: "xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",
	  nodeNames: "⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",
	  maxTerm: 17,
	  nodeProps: [
	    ["isolate", -3,1,2,11,""],
	    ["openedBy", 4,"("],
	    ["closedBy", 5,")"],
	    ["group", -6,6,7,8,9,10,11,"Expression"]
	  ],
	  skippedNodes: [0,1,2],
	  repeatNodeCount: 1,
	  tokenData: "0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",
	  tokenizers: [0],
	  topRules: {"Module":[0,3]},
	  specialized: [{term: 9, get: (value) => spec_Keyword[value] || -1}],
	  tokenPrec: 0
	});

	const wastLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "wast",
	    parser: /*@__PURE__*/parser$4.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                App: /*@__PURE__*/delimitedIndent({ closing: ")", align: false })
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                App: foldInside,
	                BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
	            }),
	            /*@__PURE__*/styleTags({
	                Keyword: tags$1.keyword,
	                Type: tags$1.typeName,
	                Number: tags$1.number,
	                String: tags$1.string,
	                Identifier: tags$1.variableName,
	                LineComment: tags$1.lineComment,
	                BlockComment: tags$1.blockComment,
	                "( )": tags$1.paren
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: ";;", block: { open: "(;", close: ";)" } },
	        closeBrackets: { brackets: ["(", '"'] }
	    }
	});
	function wast() {
	    return new LanguageSupport(wastLanguage);
	}

	var index$4 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		wast: wast,
		wastLanguage: wastLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const StartTag = 1,
	  StartCloseTag = 2,
	  MissingCloseTag = 3,
	  mismatchedStartCloseTag = 4,
	  incompleteStartCloseTag = 5,
	  commentContent$1 = 35,
	  piContent$1 = 36,
	  cdataContent$1 = 37,
	  Element$1 = 11,
	  OpenTag = 13;

	/* Hand-written tokenizer for XML tag matching. */

	function nameChar(ch) {
	  return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161
	}

	function isSpace$1(ch) {
	  return ch == 9 || ch == 10 || ch == 13 || ch == 32
	}

	let cachedName = null, cachedInput = null, cachedPos = 0;
	function tagNameAfter(input, offset) {
	  let pos = input.pos + offset;
	  if (cachedInput == input && cachedPos == pos) return cachedName
	  while (isSpace$1(input.peek(offset))) offset++;
	  let name = "";
	  for (;;) {
	    let next = input.peek(offset);
	    if (!nameChar(next)) break
	    name += String.fromCharCode(next);
	    offset++;
	  }
	  cachedInput = input; cachedPos = pos;
	  return cachedName = name || null
	}

	function ElementContext(name, parent) {
	  this.name = name;
	  this.parent = parent;
	  this.hash = parent ? parent.hash : 0;
	  for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);
	}

	const elementContext = new ContextTracker({
	  start: null,
	  shift(context, term, stack, input) {
	    return term == StartTag ? new ElementContext(tagNameAfter(input, 1) || "", context) : context
	  },
	  reduce(context, term) {
	    return term == Element$1 && context ? context.parent : context
	  },
	  reuse(context, node, _stack, input) {
	    let type = node.type.id;
	    return type == StartTag || type == OpenTag
	      ? new ElementContext(tagNameAfter(input, 1) || "", context) : context
	  },
	  hash(context) { return context ? context.hash : 0 },
	  strict: false
	});

	const startTag = new ExternalTokenizer((input, stack) => {
	  if (input.next != 60 /* '<' */) return
	  input.advance();
	  if (input.next == 47 /* '/' */) {
	    input.advance();
	    let name = tagNameAfter(input, 0);
	    if (!name) return input.acceptToken(incompleteStartCloseTag)
	    if (stack.context && name == stack.context.name) return input.acceptToken(StartCloseTag)
	    for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return input.acceptToken(MissingCloseTag, -2)
	    input.acceptToken(mismatchedStartCloseTag);
	  } else if (input.next != 33 /* '!' */ && input.next != 63 /* '?' */) {
	    return input.acceptToken(StartTag)
	  }
	}, {contextual: true});

	function scanTo(type, end) {
	  return new ExternalTokenizer(input => {
	    let len = 0, first = end.charCodeAt(0);
	    scan: for (;; input.advance(), len++) {
	      if (input.next < 0) break
	      if (input.next == first) {
	        for (let i = 1; i < end.length; i++)
	          if (input.peek(i) != end.charCodeAt(i)) continue scan
	        break
	      }
	    }
	    if (len) input.acceptToken(type);
	  })
	}

	const commentContent = scanTo(commentContent$1, "-->");
	const piContent = scanTo(piContent$1, "?>");
	const cdataContent = scanTo(cdataContent$1, "]]>");

	const xmlHighlighting = styleTags({
	  Text: tags$1.content,
	  "StartTag StartCloseTag EndTag SelfCloseEndTag": tags$1.angleBracket,
	  TagName: tags$1.tagName,
	  "MismatchedCloseTag/TagName": [tags$1.tagName, tags$1.invalid],
	  AttributeName: tags$1.attributeName,
	  AttributeValue: tags$1.attributeValue,
	  Is: tags$1.definitionOperator,
	  "EntityReference CharacterReference": tags$1.character,
	  Comment: tags$1.blockComment,
	  ProcessingInst: tags$1.processingInstruction,
	  DoctypeDecl: tags$1.documentMeta,
	  Cdata: tags$1.special(tags$1.string)
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$3 = LRParser.deserialize({
	  version: 14,
	  states: ",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOO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uZOwoO~O^qOy^O~O[vO`sOdwOy^O~ORyO~P!SO^{Oy^O~OseO|}O~OthO!O!PO~O^!QOy^O~O[!SOy^O~O[!VO`sOd!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",
	  goto: "%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",
	  nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
	  maxTerm: 47,
	  context: elementContext,
	  nodeProps: [
	    ["closedBy", 1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],
	    ["openedBy", 12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],
	    ["isolate", -6,13,18,19,21,22,24,""]
	  ],
	  propSources: [xmlHighlighting],
	  skippedNodes: [0],
	  repeatNodeCount: 8,
	  tokenData: "Jy~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O,^!O!P$n!P!Q.m!Q![$n![!]0V!]!^$n!^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_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",
	  tokenizers: [startTag, commentContent, piContent, cdataContent, 0, 1, 2, 3],
	  topRules: {"Document":[0,6]},
	  tokenPrec: 0
	});

	function tagName(doc, tag) {
	    let name = tag && tag.getChild("TagName");
	    return name ? doc.sliceString(name.from, name.to) : "";
	}
	function elementName$1(doc, tree) {
	    let tag = tree && tree.firstChild;
	    return !tag || tag.name != "OpenTag" ? "" : tagName(doc, tag);
	}
	function attrName(doc, tag, pos) {
	    let attr = tag && tag.getChildren("Attribute").find(a => a.from <= pos && a.to >= pos);
	    let name = attr && attr.getChild("AttributeName");
	    return name ? doc.sliceString(name.from, name.to) : "";
	}
	function findParentElement(tree) {
	    for (let cur = tree && tree.parent; cur; cur = cur.parent)
	        if (cur.name == "Element")
	            return cur;
	    return null;
	}
	function findLocation(state, pos) {
	    var _a;
	    let at = syntaxTree(state).resolveInner(pos, -1), inTag = null;
	    for (let cur = at; !inTag && cur.parent; cur = cur.parent)
	        if (cur.name == "OpenTag" || cur.name == "CloseTag" || cur.name == "SelfClosingTag" || cur.name == "MismatchedCloseTag")
	            inTag = cur;
	    if (inTag && (inTag.to > pos || inTag.lastChild.type.isError)) {
	        let elt = inTag.parent;
	        if (at.name == "TagName")
	            return inTag.name == "CloseTag" || inTag.name == "MismatchedCloseTag"
	                ? { type: "closeTag", from: at.from, context: elt }
	                : { type: "openTag", from: at.from, context: findParentElement(elt) };
	        if (at.name == "AttributeName")
	            return { type: "attrName", from: at.from, context: inTag };
	        if (at.name == "AttributeValue")
	            return { type: "attrValue", from: at.from, context: inTag };
	        let before = at == inTag || at.name == "Attribute" ? at.childBefore(pos) : at;
	        if ((before === null || before === void 0 ? void 0 : before.name) == "StartTag")
	            return { type: "openTag", from: pos, context: findParentElement(elt) };
	        if ((before === null || before === void 0 ? void 0 : before.name) == "StartCloseTag" && before.to <= pos)
	            return { type: "closeTag", from: pos, context: elt };
	        if ((before === null || before === void 0 ? void 0 : before.name) == "Is")
	            return { type: "attrValue", from: pos, context: inTag };
	        if (before)
	            return { type: "attrName", from: pos, context: inTag };
	        return null;
	    }
	    else if (at.name == "StartCloseTag") {
	        return { type: "closeTag", from: pos, context: at.parent };
	    }
	    while (at.parent && at.to == pos && !((_a = at.lastChild) === null || _a === void 0 ? void 0 : _a.type.isError))
	        at = at.parent;
	    if (at.name == "Element" || at.name == "Text" || at.name == "Document")
	        return { type: "tag", from: pos, context: at.name == "Element" ? at : findParentElement(at) };
	    return null;
	}
	class Element {
	    constructor(spec, attrs, attrValues) {
	        this.attrs = attrs;
	        this.attrValues = attrValues;
	        this.children = [];
	        this.name = spec.name;
	        this.completion = Object.assign(Object.assign({ type: "type" }, spec.completion || {}), { label: this.name });
	        this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name });
	        this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 });
	        this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" });
	        this.text = spec.textContent ? spec.textContent.map(s => ({ label: s, type: "text" })) : [];
	    }
	}
	const Identifier$1 = /^[:\-\.\w\u00b7-\uffff]*$/;
	function attrCompletion(spec) {
	    return Object.assign(Object.assign({ type: "property" }, spec.completion || {}), { label: spec.name });
	}
	function valueCompletion(spec) {
	    return typeof spec == "string" ? { label: `"${spec}"`, type: "constant" }
	        : /^"/.test(spec.label) ? spec
	            : Object.assign(Object.assign({}, spec), { label: `"${spec.label}"` });
	}
	/**
	Create a completion source for the given schema.
	*/
	function completeFromSchema(eltSpecs, attrSpecs) {
	    let allAttrs = [], globalAttrs = [];
	    let attrValues = Object.create(null);
	    for (let s of attrSpecs) {
	        let completion = attrCompletion(s);
	        allAttrs.push(completion);
	        if (s.global)
	            globalAttrs.push(completion);
	        if (s.values)
	            attrValues[s.name] = s.values.map(valueCompletion);
	    }
	    let allElements = [], topElements = [];
	    let byName = Object.create(null);
	    for (let s of eltSpecs) {
	        let attrs = globalAttrs, attrVals = attrValues;
	        if (s.attributes)
	            attrs = attrs.concat(s.attributes.map(s => {
	                if (typeof s == "string")
	                    return allAttrs.find(a => a.label == s) || { label: s, type: "property" };
	                if (s.values) {
	                    if (attrVals == attrValues)
	                        attrVals = Object.create(attrVals);
	                    attrVals[s.name] = s.values.map(valueCompletion);
	                }
	                return attrCompletion(s);
	            }));
	        let elt = new Element(s, attrs, attrVals);
	        byName[elt.name] = elt;
	        allElements.push(elt);
	        if (s.top)
	            topElements.push(elt);
	    }
	    if (!topElements.length)
	        topElements = allElements;
	    for (let i = 0; i < allElements.length; i++) {
	        let s = eltSpecs[i], elt = allElements[i];
	        if (s.children) {
	            for (let ch of s.children)
	                if (byName[ch])
	                    elt.children.push(byName[ch]);
	        }
	        else {
	            elt.children = allElements;
	        }
	    }
	    return cx => {
	        var _a;
	        let { doc } = cx.state, loc = findLocation(cx.state, cx.pos);
	        if (!loc || (loc.type == "tag" && !cx.explicit))
	            return null;
	        let { type, from, context } = loc;
	        if (type == "openTag") {
	            let children = topElements;
	            let parentName = elementName$1(doc, context);
	            if (parentName) {
	                let parent = byName[parentName];
	                children = (parent === null || parent === void 0 ? void 0 : parent.children) || allElements;
	            }
	            return {
	                from,
	                options: children.map(ch => ch.completion),
	                validFor: Identifier$1
	            };
	        }
	        else if (type == "closeTag") {
	            let parentName = elementName$1(doc, context);
	            return parentName ? {
	                from,
	                to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == ">" ? 1 : 0),
	                options: [((_a = byName[parentName]) === null || _a === void 0 ? void 0 : _a.closeNameCompletion) || { label: parentName + ">", type: "type" }],
	                validFor: Identifier$1
	            } : null;
	        }
	        else if (type == "attrName") {
	            let parent = byName[tagName(doc, context)];
	            return {
	                from,
	                options: (parent === null || parent === void 0 ? void 0 : parent.attrs) || globalAttrs,
	                validFor: Identifier$1
	            };
	        }
	        else if (type == "attrValue") {
	            let attr = attrName(doc, context, from);
	            if (!attr)
	                return null;
	            let parent = byName[tagName(doc, context)];
	            let values = ((parent === null || parent === void 0 ? void 0 : parent.attrValues) || attrValues)[attr];
	            if (!values || !values.length)
	                return null;
	            return {
	                from,
	                to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == '"' ? 1 : 0),
	                options: values,
	                validFor: /^"[^"]*"?$/
	            };
	        }
	        else if (type == "tag") {
	            let parentName = elementName$1(doc, context), parent = byName[parentName];
	            let closing = [], last = context && context.lastChild;
	            if (parentName && (!last || last.name != "CloseTag" || tagName(doc, last) != parentName))
	                closing.push(parent ? parent.closeCompletion : { label: "</" + parentName + ">", type: "type", boost: 2 });
	            let options = closing.concat(((parent === null || parent === void 0 ? void 0 : parent.children) || (context ? allElements : topElements)).map(e => e.openCompletion));
	            if (context && (parent === null || parent === void 0 ? void 0 : parent.text.length)) {
	                let openTag = context.firstChild;
	                if (openTag.to > cx.pos - 20 && !/\S/.test(cx.state.sliceDoc(openTag.to, cx.pos)))
	                    options = options.concat(parent.text);
	            }
	            return {
	                from,
	                options,
	                validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
	            };
	        }
	        else {
	            return null;
	        }
	    };
	}

	/**
	A language provider based on the [Lezer XML
	parser](https://github.com/lezer-parser/xml), extended with
	highlighting and indentation information.
	*/
	const xmlLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "xml",
	    parser: /*@__PURE__*/parser$3.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Element(context) {
	                    let closed = /^\s*<\//.test(context.textAfter);
	                    return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);
	                },
	                "OpenTag CloseTag SelfClosingTag"(context) {
	                    return context.column(context.node.from) + context.unit;
	                }
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                Element(subtree) {
	                    let first = subtree.firstChild, last = subtree.lastChild;
	                    if (!first || first.name != "OpenTag")
	                        return null;
	                    return { from: first.to, to: last.name == "CloseTag" ? last.from : subtree.to };
	                }
	            }),
	            /*@__PURE__*/bracketMatchingHandle.add({
	                "OpenTag CloseTag": node => node.getChild("TagName")
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { block: { open: "<!--", close: "-->" } },
	        indentOnInput: /^\s*<\/$/
	    }
	});
	/**
	XML language support. Includes schema-based autocompletion when
	configured.
	*/
	function xml(conf = {}) {
	    let support = [xmlLanguage.data.of({
	            autocomplete: completeFromSchema(conf.elements || [], conf.attributes || [])
	        })];
	    if (conf.autoCloseTags !== false)
	        support.push(autoCloseTags);
	    return new LanguageSupport(xmlLanguage, support);
	}
	function elementName(doc, tree, max = doc.length) {
	    if (!tree)
	        return "";
	    let tag = tree.firstChild;
	    let name = tag && tag.getChild("TagName");
	    return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
	}
	/**
	Extension that will automatically insert close tags when a `>` or
	`/` is typed.
	*/
	const autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
	    if (view.composing || view.state.readOnly || from != to || (text != ">" && text != "/") ||
	        !xmlLanguage.isActiveAt(view.state, from, -1))
	        return false;
	    let base = insertTransaction(), { state } = base;
	    let closeTags = state.changeByRange(range => {
	        var _a, _b, _c;
	        let { head } = range;
	        let didType = state.doc.sliceString(head - 1, head) == text;
	        let after = syntaxTree(state).resolveInner(head, -1), name;
	        if (didType && text == ">" && after.name == "EndTag") {
	            let tag = after.parent;
	            if (((_b = (_a = tag.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" &&
	                (name = elementName(state.doc, tag.parent, head))) {
	                let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
	                let insert = `</${name}>`;
	                return { range, changes: { from: head, to, insert } };
	            }
	        }
	        else if (didType && text == "/" && after.name == "StartCloseTag") {
	            let base = after.parent;
	            if (after.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" &&
	                (name = elementName(state.doc, base, head))) {
	                let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
	                let insert = `${name}>`;
	                return {
	                    range: EditorSelection.cursor(head + insert.length, -1),
	                    changes: { from: head, to, insert }
	                };
	            }
	        }
	        return { range };
	    });
	    if (closeTags.changes.empty)
	        return false;
	    view.dispatch([
	        base,
	        state.update(closeTags, {
	            userEvent: "input.complete",
	            scrollIntoView: true
	        })
	    ]);
	    return true;
	});

	var index$3 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		autoCloseTags: autoCloseTags,
		completeFromSchema: completeFromSchema,
		xml: xml,
		xmlLanguage: xmlLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const blockEnd = 63,
	  eof = 64,
	  DirectiveEnd = 1,
	  DocEnd = 2,
	  sequenceStartMark = 3,
	  sequenceContinueMark = 4,
	  explicitMapStartMark = 5,
	  explicitMapContinueMark = 6,
	  flowMapMark = 7,
	  mapStartMark = 65,
	  mapContinueMark = 66,
	  Literal = 8,
	  QuotedLiteral = 9,
	  Anchor = 10,
	  Alias = 11,
	  Tag = 12,
	  BlockLiteralContent = 13,
	  BracketL = 19,
	  FlowSequence = 20,
	  Colon = 29,
	  BraceL = 33,
	  FlowMapping = 34,
	  BlockLiteralHeader = 47;

	const
	  type_Top = 0, // Top document level
	  type_Seq = 1, // Block sequence
	  type_Map = 2, // Block mapping
	  type_Flow = 3, // Inside flow content
	  type_Lit = 4; // Block literal with explicit indentation

	let Context$c = class Context {
	  constructor(parent, depth, type) {
	    this.parent = parent;
	    this.depth = depth;
	    this.type = type;
	    this.hash = (parent ? parent.hash + parent.hash << 8 : 0) + depth + (depth << 4) + type;
	  }

	  static top = new Context(null, -1, type_Top)
	};

	function findColumn(input, pos) {
	  for (let col = 0, p = pos - input.pos - 1;; p--, col++) {
	    let ch = input.peek(p);
	    if (isBreakSpace(ch) || ch == -1) return col
	  }
	}

	function isNonBreakSpace(ch) {
	  return ch == 32 || ch == 9
	}

	function isBreakSpace(ch) {
	  return ch == 10 || ch == 13
	}

	function isSpace(ch) {
	  return isNonBreakSpace(ch) || isBreakSpace(ch)
	}

	function isSep(ch) {
	  return ch < 0 || isSpace(ch)
	}

	const indentation = new ContextTracker({
	  start: Context$c.top,
	  reduce(context, term) {
	    return context.type == type_Flow && (term == FlowSequence || term == FlowMapping) ? context.parent : context
	  },
	  shift(context, term, stack, input) {
	    if (term == sequenceStartMark)
	      return new Context$c(context, findColumn(input, input.pos), type_Seq)
	    if (term == mapStartMark || term == explicitMapStartMark)
	      return new Context$c(context, findColumn(input, input.pos), type_Map)
	    if (term == blockEnd)
	      return context.parent
	    if (term == BracketL || term == BraceL)
	      return new Context$c(context, 0, type_Flow)
	    if (term == BlockLiteralContent && context.type == type_Lit)
	      return context.parent
	    if (term == BlockLiteralHeader) {
	      let indent = /[1-9]/.exec(input.read(input.pos, stack.pos));
	      if (indent) return new Context$c(context, context.depth + (+indent[0]), type_Lit)
	    }
	    return context
	  },
	  hash(context) { return context.hash }
	});

	function three(input, ch, off = 0) {
	  return input.peek(off) == ch && input.peek(off + 1) == ch && input.peek(off + 2) == ch && isSep(input.peek(off + 3))
	}

	const newlines = new ExternalTokenizer((input, stack) => {
	  if (input.next == -1 && stack.canShift(eof))
	    return input.acceptToken(eof)
	  let prev = input.peek(-1);
	  if ((isBreakSpace(prev) || prev < 0) && stack.context.type != type_Flow) {
	    if (three(input, 45 /* '-' */)) {
	      if (stack.canShift(blockEnd)) input.acceptToken(blockEnd);
	      else return input.acceptToken(DirectiveEnd, 3)
	    }
	    if (three(input, 46 /* '.' */)) {
	      if (stack.canShift(blockEnd)) input.acceptToken(blockEnd);
	      else return input.acceptToken(DocEnd, 3)
	    }
	    let depth = 0;
	    while (input.next == 32 /* ' ' */) { depth++; input.advance(); }
	    if ((depth < stack.context.depth ||
	         depth == stack.context.depth && stack.context.type == type_Seq &&
	         (input.next != 45 /* '-' */ || !isSep(input.peek(1)))) &&
	        // Not blank
	        input.next != -1 && !isBreakSpace(input.next) && input.next != 35 /* '#' */)
	      input.acceptToken(blockEnd, -depth);
	  }
	}, {contextual: true});

	const blockMark = new ExternalTokenizer((input, stack) => {
	  if (stack.context.type == type_Flow) {
	    if (input.next == 63 /* '?' */) {
	      input.advance();
	      if (isSep(input.next)) input.acceptToken(flowMapMark);
	    }
	    return
	  }
	  if (input.next == 45 /* '-' */) {
	    input.advance();
	    if (isSep(input.next))
	      input.acceptToken(stack.context.type == type_Seq && stack.context.depth == findColumn(input, input.pos - 1)
	                        ? sequenceContinueMark : sequenceStartMark);
	  } else if (input.next == 63 /* '?' */) {
	    input.advance();
	    if (isSep(input.next))
	      input.acceptToken(stack.context.type == type_Map && stack.context.depth == findColumn(input, input.pos - 1)
	                        ? explicitMapContinueMark : explicitMapStartMark);
	  } else {
	    let start = input.pos;
	    // Scan over a potential key to see if it is followed by a colon.
	    for (;;) {
	      if (isNonBreakSpace(input.next)) {
	        if (input.pos == start) return
	        input.advance();
	      } else if (input.next == 33 /* '!' */) {
	        readTag(input);
	      } else if (input.next == 38 /* '&' */) {
	        readAnchor(input);
	      } else if (input.next == 42 /* '*' */) {
	        readAnchor(input);
	        break
	      } else if (input.next == 39 /* "'" */ || input.next == 34 /* '"' */) {
	        if (readQuoted$2(input, true)) break
	        return
	      } else if (input.next == 91 /* '[' */ || input.next == 123 /* '{' */) {
	        if (!scanBrackets(input)) return
	        break
	      } else {
	        readPlain(input, true, false, 0);
	        break
	      }
	    }
	    while (isNonBreakSpace(input.next)) input.advance();
	    if (input.next == 58 /* ':' */) {
	      if (input.pos == start && stack.canShift(Colon)) return
	      let after = input.peek(1);
	      if (isSep(after))
	        input.acceptTokenTo(stack.context.type == type_Map && stack.context.depth == findColumn(input, start)
	                            ? mapContinueMark : mapStartMark, start);
	    }
	  }
	}, {contextual: true});

	function uriChar(ch) {
	  return ch > 32 && ch < 127 && ch != 34 && ch != 37 && ch != 44 && ch != 60 &&
	    ch != 62 && ch != 92 && ch != 94 && ch != 96 && ch != 123 && ch != 124 && ch != 125
	}

	function hexChar$1(ch) {
	  return ch >= 48 && ch <= 57 || ch >= 97 && ch <= 102 || ch >= 65 && ch <= 70
	}

	function readUriChar(input, quoted) {
	  if (input.next == 37 /* '%' */) {
	    input.advance();
	    if (hexChar$1(input.next)) input.advance();
	    if (hexChar$1(input.next)) input.advance();
	    return true
	  } else if (uriChar(input.next) || quoted && input.next == 44 /* ',' */) {
	    input.advance();
	    return true
	  }
	  return false
	}

	function readTag(input) {
	  input.advance(); // !
	  if (input.next == 60 /* '<' */) {
	    input.advance();
	    for (;;) {
	      if (!readUriChar(input, true)) {
	        if (input.next == 62 /* '>' */) input.advance();
	        break
	      }
	    }
	  } else {
	    while (readUriChar(input, false)) {}
	  }
	}

	function readAnchor(input) {
	  input.advance();
	  while (!isSep(input.next) && charTag(input.tag) != "f") input.advance();
	}
	  
	function readQuoted$2(input, scan) {
	  let quote = input.next, lineBreak = false, start = input.pos;
	  input.advance();
	  for (;;) {
	    let ch = input.next;
	    if (ch < 0) break
	    input.advance();
	    if (ch == quote) {
	      if (ch == 39 /* "'" */) {
	        if (input.next == 39) input.advance();
	        else break
	      } else {
	        break
	      }
	    } else if (ch == 92 /* "\\" */ && quote == 34 /* '"' */) {
	      if (input.next >= 0) input.advance();
	    } else if (isBreakSpace(ch)) {
	      if (scan) return false
	      lineBreak = true;
	    } else if (scan && input.pos >= start + 1024) {
	      return false
	    }
	  }
	  return !lineBreak
	}

	function scanBrackets(input) {
	  for (let stack = [], end = input.pos + 1024;;) {
	    if (input.next == 91 /* '[' */ || input.next == 123 /* '{' */) {
	      stack.push(input.next);
	      input.advance();
	    } else if (input.next == 39 /* "'" */ || input.next == 34 /* '"' */) {
	      if (!readQuoted$2(input, true)) return false
	    } else if (input.next == 93 /* ']' */ || input.next == 125 /* '}' */) {
	      if (stack[stack.length - 1] != input.next - 2) return false
	      stack.pop();
	      input.advance();
	      if (!stack.length) return true
	    } else if (input.next < 0 || input.pos > end || isBreakSpace(input.next)) {
	      return false
	    } else {
	      input.advance();
	    }
	  }
	}

	// "Safe char" info for char codes 33 to 125. s: safe, i: indicator, f: flow indicator
	const charTable = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";

	function charTag(ch) {
	  if (ch < 33) return "u"
	  if (ch > 125) return "s"
	  return charTable[ch - 33]
	}

	function isSafe(ch, inFlow) {
	  let tag = charTag(ch);
	  return tag != "u" && !(inFlow && tag == "f")
	}

	function readPlain(input, scan, inFlow, indent) {
	  if (charTag(input.next) == "s" ||
	      (input.next == 63 /* '?' */ || input.next == 58 /* ':' */ || input.next == 45 /* '-' */) &&
	      isSafe(input.peek(1), inFlow)) {
	    input.advance();
	  } else {
	    return false
	  }
	  let start = input.pos;
	  for (;;) {
	    let next = input.next, off = 0, lineIndent = indent + 1;
	    while (isSpace(next)) {
	      if (isBreakSpace(next)) {
	        if (scan) return false
	        lineIndent = 0;
	      } else {
	        lineIndent++;
	      }
	      next = input.peek(++off);
	    }
	    let safe = next >= 0 &&
	        (next == 58 /* ':' */ ? isSafe(input.peek(off + 1), inFlow) :
	         next == 35 /* '#' */ ? input.peek(off - 1) != 32 /* ' ' */ :
	         isSafe(next, inFlow));
	    if (!safe || !inFlow && lineIndent <= indent ||
	        lineIndent == 0 && !inFlow && (three(input, 45, off) || three(input, 46, off)))
	      break
	    if (scan && charTag(next) == "f") return false
	    for (let i = off; i >= 0; i--) input.advance();
	    if (scan && input.pos > start + 1024) return false
	  }
	  return true
	}

	const literals = new ExternalTokenizer((input, stack) => {
	  if (input.next == 33 /* '!' */) {
	    readTag(input);
	    input.acceptToken(Tag);
	  } else if (input.next == 38 /* '&' */ || input.next == 42 /* '*' */) {
	    let token = input.next == 38 ? Anchor : Alias;
	    readAnchor(input);
	    input.acceptToken(token);
	  } else if (input.next == 39 /* "'" */ || input.next == 34 /* '"' */) {
	    readQuoted$2(input, false);
	    input.acceptToken(QuotedLiteral);
	  } else if (readPlain(input, false, stack.context.type == type_Flow, stack.context.depth)) {
	    input.acceptToken(Literal);
	  }
	});

	const blockLiteral = new ExternalTokenizer((input, stack) => {
	  let indent = stack.context.type == type_Lit ? stack.context.depth : -1, upto = input.pos;
	  scan: for (;;) {
	    let depth = 0, next = input.next;
	    while (next == 32 /* ' ' */) next = input.peek(++depth);
	    if (!depth && (three(input, 45, depth) || three(input, 46, depth))) break
	    if (!isBreakSpace(next)) {
	      if (indent < 0) indent = Math.max(stack.context.depth + 1, depth);
	      if (depth < indent) break
	    }
	    for (;;) {
	      if (input.next < 0) break scan
	      let isBreak = isBreakSpace(input.next);
	      input.advance();
	      if (isBreak) continue scan
	      upto = input.pos;
	    }
	  }
	  input.acceptTokenTo(BlockLiteralContent, upto);
	});

	const yamlHighlighting = styleTags({
	  DirectiveName: tags$1.keyword,
	  DirectiveContent: tags$1.attributeValue,
	  "DirectiveEnd DocEnd": tags$1.meta,
	  QuotedLiteral: tags$1.string,
	  BlockLiteralHeader: tags$1.special(tags$1.string),
	  BlockLiteralContent: tags$1.content,
	  Literal: tags$1.content,
	  "Key/Literal Key/QuotedLiteral": tags$1.definition(tags$1.propertyName),
	  "Anchor Alias": tags$1.labelName,
	  Tag: tags$1.typeName,
	  Comment: tags$1.lineComment,
	  ": , -": tags$1.separator,
	  "?": tags$1.punctuation,
	  "[ ]": tags$1.squareBracket,
	  "{ }": tags$1.brace
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$2 = LRParser.deserial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ockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",
	  maxTerm: 74,
	  context: indentation,
	  nodeProps: [
	    ["isolate", -3,8,9,14,""],
	    ["openedBy", 18,"[",32,"{"],
	    ["closedBy", 19,"]",33,"}"]
	  ],
	  propSources: [yamlHighlighting],
	  skippedNodes: [0],
	  repeatNodeCount: 6,
	  tokenData: "-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",
	  tokenizers: [newlines, blockMark, literals, blockLiteral, 0, 1],
	  topRules: {"Stream":[0,15]},
	  tokenPrec: 0
	});

	/**
	A language provider based on the [Lezer YAML
	parser](https://github.com/lezer-parser/yaml), extended with
	highlighting and indentation information.
	*/
	const yamlLanguage = /*@__PURE__*/LRLanguage.define({
	    name: "yaml",
	    parser: /*@__PURE__*/parser$2.configure({
	        props: [
	            /*@__PURE__*/indentNodeProp.add({
	                Stream: cx => {
	                    for (let before = cx.node.resolve(cx.pos, -1); before && before.to >= cx.pos; before = before.parent) {
	                        if (before.name == "BlockLiteralContent" && before.from < before.to)
	                            return cx.baseIndentFor(before);
	                        if (before.name == "BlockLiteral")
	                            return cx.baseIndentFor(before) + cx.unit;
	                        if (before.name == "BlockSequence" || before.name == "BlockMapping")
	                            return cx.column(before.from, 1);
	                        if (before.name == "QuotedLiteral")
	                            return null;
	                        if (before.name == "Literal") {
	                            let col = cx.column(before.from, 1);
	                            if (col == cx.lineIndent(before.from, 1))
	                                return col; // Start on own line
	                            if (before.to > cx.pos)
	                                return null;
	                        }
	                    }
	                    return null;
	                },
	                FlowMapping: /*@__PURE__*/delimitedIndent({ closing: "}" }),
	                FlowSequence: /*@__PURE__*/delimitedIndent({ closing: "]" }),
	            }),
	            /*@__PURE__*/foldNodeProp.add({
	                "FlowMapping FlowSequence": foldInside,
	                "BlockSequence BlockMapping BlockLiteral": (node, state) => ({ from: state.doc.lineAt(node.from).to, to: node.to })
	            })
	        ]
	    }),
	    languageData: {
	        commentTokens: { line: "#" },
	        indentOnInput: /^\s*[\]\}]$/,
	    }
	});
	/**
	Language support for YAML.
	*/
	function yaml() {
	    return new LanguageSupport(yamlLanguage);
	}

	var index$2 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		yaml: yaml,
		yamlLanguage: yamlLanguage
	});

	var builtInFuncs = {
	  "+": ["conjugate", "add"],
	  "−": ["negate", "subtract"],
	  "×": ["signOf", "multiply"],
	  "÷": ["reciprocal", "divide"],
	  "⌈": ["ceiling", "greaterOf"],
	  "⌊": ["floor", "lesserOf"],
	  "∣": ["absolute", "residue"],
	  "⍳": ["indexGenerate", "indexOf"],
	  "?": ["roll", "deal"],
	  "⋆": ["exponentiate", "toThePowerOf"],
	  "⍟": ["naturalLog", "logToTheBase"],
	  "○": ["piTimes", "circularFuncs"],
	  "!": ["factorial", "binomial"],
	  "⌹": ["matrixInverse", "matrixDivide"],
	  "<": [null, "lessThan"],
	  "≤": [null, "lessThanOrEqual"],
	  "=": [null, "equals"],
	  ">": [null, "greaterThan"],
	  "≥": [null, "greaterThanOrEqual"],
	  "≠": [null, "notEqual"],
	  "≡": ["depth", "match"],
	  "≢": [null, "notMatch"],
	  "∈": ["enlist", "membership"],
	  "⍷": [null, "find"],
	  "∪": ["unique", "union"],
	  "∩": [null, "intersection"],
	  "∼": ["not", "without"],
	  "∨": [null, "or"],
	  "∧": [null, "and"],
	  "⍱": [null, "nor"],
	  "⍲": [null, "nand"],
	  "⍴": ["shapeOf", "reshape"],
	  ",": ["ravel", "catenate"],
	  "⍪": [null, "firstAxisCatenate"],
	  "⌽": ["reverse", "rotate"],
	  "⊖": ["axis1Reverse", "axis1Rotate"],
	  "⍉": ["transpose", null],
	  "↑": ["first", "take"],
	  "↓": [null, "drop"],
	  "⊂": ["enclose", "partitionWithAxis"],
	  "⊃": ["diclose", "pick"],
	  "⌷": [null, "index"],
	  "⍋": ["gradeUp", null],
	  "⍒": ["gradeDown", null],
	  "⊤": ["encode", null],
	  "⊥": ["decode", null],
	  "⍕": ["format", "formatByExample"],
	  "⍎": ["execute", null],
	  "⊣": ["stop", "left"],
	  "⊢": ["pass", "right"]
	};

	var isOperator = /[\.\/⌿⍀¨⍣]/;
	var isNiladic = /⍬/;
	var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;
	var isArrow = /←/;
	var isComment = /[⍝#].*$/;

	var stringEater = function(type) {
	  var prev;
	  prev = false;
	  return function(c) {
	    prev = c;
	    if (c === type) {
	      return prev === "\\";
	    }
	    return true;
	  };
	};

	const apl = {
	  name: "apl",
	  startState: function() {
	    return {
	      prev: false,
	      func: false,
	      op: false,
	      string: false,
	      escape: false
	    };
	  },
	  token: function(stream, state) {
	    var ch;
	    if (stream.eatSpace()) {
	      return null;
	    }
	    ch = stream.next();
	    if (ch === '"' || ch === "'") {
	      stream.eatWhile(stringEater(ch));
	      stream.next();
	      state.prev = true;
	      return "string";
	    }
	    if (/[\[{\(]/.test(ch)) {
	      state.prev = false;
	      return null;
	    }
	    if (/[\]}\)]/.test(ch)) {
	      state.prev = true;
	      return null;
	    }
	    if (isNiladic.test(ch)) {
	      state.prev = false;
	      return "atom";
	    }
	    if (/[¯\d]/.test(ch)) {
	      if (state.func) {
	        state.func = false;
	        state.prev = false;
	      } else {
	        state.prev = true;
	      }
	      stream.eatWhile(/[\w\.]/);
	      return "number";
	    }
	    if (isOperator.test(ch)) {
	      return "operator"
	    }
	    if (isArrow.test(ch)) {
	      return "operator";
	    }
	    if (isFunction.test(ch)) {
	      state.func = true;
	      state.prev = false;
	      return builtInFuncs[ch] ? "variableName.function.standard" : "variableName.function"
	    }
	    if (isComment.test(ch)) {
	      stream.skipToEnd();
	      return "comment";
	    }
	    if (ch === "∘" && stream.peek() === ".") {
	      stream.next();
	      return "variableName.function";
	    }
	    stream.eatWhile(/[\w\$_]/);
	    state.prev = true;
	    return "keyword";
	  }
	};

	var apl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		apl: apl
	});

	function errorIfNotEmpty(stream) {
	  var nonWS = stream.match(/^\s*\S/);
	  stream.skipToEnd();
	  return nonWS ? "error" : null;
	}

	const asciiArmor = {
	  name: "asciiarmor",
	  token: function(stream, state) {
	    var m;
	    if (state.state == "top") {
	      if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) {
	        state.state = "headers";
	        state.type = m[1];
	        return "tag";
	      }
	      return errorIfNotEmpty(stream);
	    } else if (state.state == "headers") {
	      if (stream.sol() && stream.match(/^\w+:/)) {
	        state.state = "header";
	        return "atom";
	      } else {
	        var result = errorIfNotEmpty(stream);
	        if (result) state.state = "body";
	        return result;
	      }
	    } else if (state.state == "header") {
	      stream.skipToEnd();
	      state.state = "headers";
	      return "string";
	    } else if (state.state == "body") {
	      if (stream.sol() && (m = stream.match(/^-----END (.*)?-----\s*$/))) {
	        if (m[1] != state.type) return "error";
	        state.state = "end";
	        return "tag";
	      } else {
	        if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) {
	          return null;
	        } else {
	          stream.next();
	          return "error";
	        }
	      }
	    } else if (state.state == "end") {
	      return errorIfNotEmpty(stream);
	    }
	  },
	  blankLine: function(state) {
	    if (state.state == "headers") state.state = "body";
	  },
	  startState: function() {
	    return {state: "top", type: null};
	  }
	};

	var asciiarmor = /*#__PURE__*/Object.freeze({
		__proto__: null,
		asciiArmor: asciiArmor
	});

	function words$k(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	const defaults$1 = {
	  keywords: words$k("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION" +
	                  " REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED" +
	                  " WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN" +
	                  " IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS" +
	                  " MINACCESS MAXACCESS REVISION STATUS DESCRIPTION" +
	                  " SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName" +
	                  " ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY" +
	                  " IMPLIED EXPORTS"),
	  cmipVerbs: words$k("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),
	  compareTypes: words$k("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY" +
	                      " MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY" +
	                      " OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL" +
	                      " SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL" +
	                      " TEXTUAL-CONVENTION"),
	  status: words$k("current deprecated mandatory obsolete"),
	  tags: words$k("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS" +
	              " UNIVERSAL"),
	  storage: words$k("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING" +
	                 " UTCTime InterfaceIndex IANAifType CMIP-Attribute" +
	                 " REAL PACKAGE PACKAGES IpAddress PhysAddress" +
	                 " NetworkAddress BITS BMPString TimeStamp TimeTicks" +
	                 " TruthValue RowStatus DisplayString GeneralString" +
	                 " GraphicString IA5String NumericString" +
	                 " PrintableString SnmpAdminString TeletexString" +
	                 " UTF8String VideotexString VisibleString StringStore" +
	                 " ISO646String T61String UniversalString Unsigned32" +
	                 " Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
	  modifier: words$k("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS" +
	                  " GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS" +
	                  " DEFINED"),
	  accessTypes: words$k("not-accessible accessible-for-notify read-only" +
	                     " read-create read-write"),
	  multiLineStrings: true
	};

	function asn1(parserConfig) {
	  var keywords = parserConfig.keywords || defaults$1.keywords,
	      cmipVerbs = parserConfig.cmipVerbs || defaults$1.cmipVerbs,
	      compareTypes = parserConfig.compareTypes || defaults$1.compareTypes,
	      status = parserConfig.status || defaults$1.status,
	      tags = parserConfig.tags || defaults$1.tags,
	      storage = parserConfig.storage || defaults$1.storage,
	      modifier = parserConfig.modifier || defaults$1.modifier,
	      accessTypes = parserConfig.accessTypes|| defaults$1.accessTypes,
	      multiLineStrings = parserConfig.multiLineStrings || defaults$1.multiLineStrings,
	      indentStatements = parserConfig.indentStatements !== false;
	  var isOperatorChar = /[\|\^]/;
	  var curPunc;

	  function tokenBase(stream, state) {
	    var ch = stream.next();
	    if (ch == '"' || ch == "'") {
	      state.tokenize = tokenString(ch);
	      return state.tokenize(stream, state);
	    }
	    if (/[\[\]\(\){}:=,;]/.test(ch)) {
	      curPunc = ch;
	      return "punctuation";
	    }
	    if (ch == "-"){
	      if (stream.eat("-")) {
	        stream.skipToEnd();
	        return "comment";
	      }
	    }
	    if (/\d/.test(ch)) {
	      stream.eatWhile(/[\w\.]/);
	      return "number";
	    }
	    if (isOperatorChar.test(ch)) {
	      stream.eatWhile(isOperatorChar);
	      return "operator";
	    }

	    stream.eatWhile(/[\w\-]/);
	    var cur = stream.current();
	    if (keywords.propertyIsEnumerable(cur)) return "keyword";
	    if (cmipVerbs.propertyIsEnumerable(cur)) return "variableName";
	    if (compareTypes.propertyIsEnumerable(cur)) return "atom";
	    if (status.propertyIsEnumerable(cur)) return "comment";
	    if (tags.propertyIsEnumerable(cur)) return "typeName";
	    if (storage.propertyIsEnumerable(cur)) return "modifier";
	    if (modifier.propertyIsEnumerable(cur)) return "modifier";
	    if (accessTypes.propertyIsEnumerable(cur)) return "modifier";

	    return "variableName";
	  }

	  function tokenString(quote) {
	    return function(stream, state) {
	      var escaped = false, next, end = false;
	      while ((next = stream.next()) != null) {
	        if (next == quote && !escaped){
	          var afterNext = stream.peek();
	          //look if the character if the quote is like the B in '10100010'B
	          if (afterNext){
	            afterNext = afterNext.toLowerCase();
	            if(afterNext == "b" || afterNext == "h" || afterNext == "o")
	              stream.next();
	          }
	          end = true; break;
	        }
	        escaped = !escaped && next == "\\";
	      }
	      if (end || !(escaped || multiLineStrings))
	        state.tokenize = null;
	      return "string";
	    };
	  }

	  function Context(indented, column, type, align, prev) {
	    this.indented = indented;
	    this.column = column;
	    this.type = type;
	    this.align = align;
	    this.prev = prev;
	  }
	  function pushContext(state, col, type) {
	    var indent = state.indented;
	    if (state.context && state.context.type == "statement")
	      indent = state.context.indented;
	    return state.context = new Context(indent, col, type, null, state.context);
	  }
	  function popContext(state) {
	    var t = state.context.type;
	    if (t == ")" || t == "]" || t == "}")
	      state.indented = state.context.indented;
	    return state.context = state.context.prev;
	  }

	  //Interface
	  return {
	    name: "asn1",
	    startState: function() {
	      return {
	        tokenize: null,
	        context: new Context(-2, 0, "top", false),
	        indented: 0,
	        startOfLine: true
	      };
	    },

	    token: function(stream, state) {
	      var ctx = state.context;
	      if (stream.sol()) {
	        if (ctx.align == null) ctx.align = false;
	        state.indented = stream.indentation();
	        state.startOfLine = true;
	      }
	      if (stream.eatSpace()) return null;
	      curPunc = null;
	      var style = (state.tokenize || tokenBase)(stream, state);
	      if (style == "comment") return style;
	      if (ctx.align == null) ctx.align = true;

	      if ((curPunc == ";" || curPunc == ":" || curPunc == ",")
	          && ctx.type == "statement"){
	        popContext(state);
	      }
	      else if (curPunc == "{") pushContext(state, stream.column(), "}");
	      else if (curPunc == "[") pushContext(state, stream.column(), "]");
	      else if (curPunc == "(") pushContext(state, stream.column(), ")");
	      else if (curPunc == "}") {
	        while (ctx.type == "statement") ctx = popContext(state);
	        if (ctx.type == "}") ctx = popContext(state);
	        while (ctx.type == "statement") ctx = popContext(state);
	      }
	      else if (curPunc == ctx.type) popContext(state);
	      else if (indentStatements && (((ctx.type == "}" || ctx.type == "top")
	                                     && curPunc != ';') || (ctx.type == "statement"
	                                                            && curPunc == "newstatement")))
	        pushContext(state, stream.column(), "statement");

	      state.startOfLine = false;
	      return style;
	    },

	    languageData: {
	      indentOnInput: /^\s*[{}]$/,
	      commentTokens: {line: "--"}
	    }
	  };
	}

	var asn1$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		asn1: asn1
	});

	var atoms$f    = ["exten", "same", "include","ignorepat","switch"],
	    dpcmd    = ["#include","#exec"],
	    apps     = [
	      "addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi",
	      "alarmreceiver","amd","answer","authenticate","background","backgrounddetect",
	      "bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent",
	      "changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge",
	      "congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge",
	      "dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility",
	      "datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa",
	      "dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy",
	      "externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif",
	      "goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete",
	      "ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus",
	      "jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme",
	      "meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete",
	      "minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode",
	      "mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish",
	      "originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce",
	      "parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones",
	      "privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten",
	      "readfile","receivefax","receivefax","receivefax","record","removequeuemember",
	      "resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun",
	      "saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax",
	      "sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags",
	      "setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel",
	      "slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground",
	      "speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound",
	      "speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor",
	      "stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec",
	      "trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate",
	      "vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring",
	      "waitforsilence","waitmusiconhold","waituntil","while","zapateller"
	    ];

	function basicToken(stream,state){
	  var cur = '';
	  var ch = stream.next();
	  // comment
	  if (state.blockComment) {
	    if (ch == "-" && stream.match("-;", true)) {
	      state.blockComment = false;
	    } else if (stream.skipTo("--;")) {
	      stream.next();
	      stream.next();
	      stream.next();
	      state.blockComment = false;
	    } else {
	      stream.skipToEnd();
	    }
	    return "comment";
	  }
	  if(ch == ";") {
	    if (stream.match("--", true)) {
	      if (!stream.match("-", false)) {  // Except ;--- is not a block comment
	        state.blockComment = true;
	        return "comment";
	      }
	    }
	    stream.skipToEnd();
	    return "comment";
	  }
	  // context
	  if(ch == '[') {
	    stream.skipTo(']');
	    stream.eat(']');
	    return "header";
	  }
	  // string
	  if(ch == '"') {
	    stream.skipTo('"');
	    return "string";
	  }
	  if(ch == "'") {
	    stream.skipTo("'");
	    return "string.special";
	  }
	  // dialplan commands
	  if(ch == '#') {
	    stream.eatWhile(/\w/);
	    cur = stream.current();
	    if(dpcmd.indexOf(cur) !== -1) {
	      stream.skipToEnd();
	      return "strong";
	    }
	  }
	  // application args
	  if(ch == '$'){
	    var ch1 = stream.peek();
	    if(ch1 == '{'){
	      stream.skipTo('}');
	      stream.eat('}');
	      return "variableName.special";
	    }
	  }
	  // extension
	  stream.eatWhile(/\w/);
	  cur = stream.current();
	  if(atoms$f.indexOf(cur) !== -1) {
	    state.extenStart = true;
	    switch(cur) {
	    case 'same': state.extenSame = true; break;
	    case 'include':
	    case 'switch':
	    case 'ignorepat':
	      state.extenInclude = true;break;
	    }
	    return "atom";
	  }
	}

	const asterisk = {
	  name: "asterisk",
	  startState: function() {
	    return {
	      blockComment: false,
	      extenStart: false,
	      extenSame:  false,
	      extenInclude: false,
	      extenExten: false,
	      extenPriority: false,
	      extenApplication: false
	    };
	  },
	  token: function(stream, state) {

	    var cur = '';
	    if(stream.eatSpace()) return null;
	    // extension started
	    if(state.extenStart){
	      stream.eatWhile(/[^\s]/);
	      cur = stream.current();
	      if(/^=>?$/.test(cur)){
	        state.extenExten = true;
	        state.extenStart = false;
	        return "strong";
	      } else {
	        state.extenStart = false;
	        stream.skipToEnd();
	        return "error";
	      }
	    } else if(state.extenExten) {
	      // set exten and priority
	      state.extenExten = false;
	      state.extenPriority = true;
	      stream.eatWhile(/[^,]/);
	      if(state.extenInclude) {
	        stream.skipToEnd();
	        state.extenPriority = false;
	        state.extenInclude = false;
	      }
	      if(state.extenSame) {
	        state.extenPriority = false;
	        state.extenSame = false;
	        state.extenApplication = true;
	      }
	      return "tag";
	    } else if(state.extenPriority) {
	      state.extenPriority = false;
	      state.extenApplication = true;
	      stream.next(); // get comma
	      if(state.extenSame) return null;
	      stream.eatWhile(/[^,]/);
	      return "number";
	    } else if(state.extenApplication) {
	      stream.eatWhile(/,/);
	      cur = stream.current();
	      if(cur === ',') return null;
	      stream.eatWhile(/\w/);
	      cur = stream.current().toLowerCase();
	      state.extenApplication = false;
	      if(apps.indexOf(cur) !== -1){
	        return "def";
	      }
	    } else {
	      return basicToken(stream,state);
	    }

	    return null;
	  },

	  languageData: {
	    commentTokens: {line: ";", block: {open: ";--", close: "--;"}}
	  }
	};

	var asterisk$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		asterisk: asterisk
	});

	var reserve = "><+-.,[]".split("");
	/*
	  comments can be either:
	  placed behind lines

	  +++    this is a comment

	  where reserved characters cannot be used
	  or in a loop
	  [
	  this is ok to use [ ] and stuff
	  ]
	  or preceded by #
	*/
	const brainfuck = {
	  name: "brainfuck",
	  startState: function() {
	    return {
	      commentLine: false,
	      left: 0,
	      right: 0,
	      commentLoop: false
	    }
	  },
	  token: function(stream, state) {
	    if (stream.eatSpace()) return null
	    if(stream.sol()){
	      state.commentLine = false;
	    }
	    var ch = stream.next().toString();
	    if(reserve.indexOf(ch) !== -1){
	      if(state.commentLine === true){
	        if(stream.eol()){
	          state.commentLine = false;
	        }
	        return "comment";
	      }
	      if(ch === "]" || ch === "["){
	        if(ch === "["){
	          state.left++;
	        }
	        else {
	          state.right++;
	        }
	        return "bracket";
	      }
	      else if(ch === "+" || ch === "-"){
	        return "keyword";
	      }
	      else if(ch === "<" || ch === ">"){
	        return "atom";
	      }
	      else if(ch === "." || ch === ","){
	        return "def";
	      }
	    }
	    else {
	      state.commentLine = true;
	      if(stream.eol()){
	        state.commentLine = false;
	      }
	      return "comment";
	    }
	    if(stream.eol()){
	      state.commentLine = false;
	    }
	  }
	};

	var brainfuck$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		brainfuck: brainfuck
	});

	var BUILTIN$1 = "builtin", COMMENT$1 = "comment", STRING$1 = "string",
	    ATOM$1 = "atom", NUMBER$1 = "number", KEYWORD = "keyword", MODTAG = "header",
	    COBOLLINENUM = "def", PERIOD = "link";
	function makeKeywords$1(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	var atoms$e = makeKeywords$1("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES ");
	var keywords$F = makeKeywords$1(
	  "ACCEPT ACCESS ACQUIRE ADD ADDRESS " +
	    "ADVANCING AFTER ALIAS ALL ALPHABET " +
	    "ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED " +
	    "ALSO ALTER ALTERNATE AND ANY " +
	    "ARE AREA AREAS ARITHMETIC ASCENDING " +
	    "ASSIGN AT ATTRIBUTE AUTHOR AUTO " +
	    "AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS " +
	    "B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP " +
	    "BEFORE BELL BINARY BIT BITS " +
	    "BLANK BLINK BLOCK BOOLEAN BOTTOM " +
	    "BY CALL CANCEL CD CF " +
	    "CH CHARACTER CHARACTERS CLASS CLOCK-UNITS " +
	    "CLOSE COBOL CODE CODE-SET COL " +
	    "COLLATING COLUMN COMMA COMMIT COMMITMENT " +
	    "COMMON COMMUNICATION COMP COMP-0 COMP-1 " +
	    "COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 " +
	    "COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 " +
	    "COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 " +
	    "COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE " +
	    "CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS " +
	    "CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS " +
	    "CONVERTING COPY CORR CORRESPONDING COUNT " +
	    "CRT CRT-UNDER CURRENCY CURRENT CURSOR " +
	    "DATA DATE DATE-COMPILED DATE-WRITTEN DAY " +
	    "DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION " +
	    "DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS " +
	    "DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE " +
	    "DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING " +
	    "DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED " +
	    "DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION " +
	    "DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 " +
	    "DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 " +
	    "DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION " +
	    "DOWN DROP DUPLICATE DUPLICATES DYNAMIC " +
	    "EBCDIC EGI EJECT ELSE EMI " +
	    "EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. " +
	    "END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY " +
	    "END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY " +
	    "END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN " +
	    "END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT " +
	    "END-UNSTRING END-WRITE END-XML ENTER ENTRY " +
	    "ENVIRONMENT EOP EQUAL EQUALS ERASE " +
	    "ERROR ESI EVALUATE EVERY EXCEEDS " +
	    "EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL " +
	    "EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL " +
	    "FILE-STREAM FILES FILLER FINAL FIND " +
	    "FINISH FIRST FOOTING FOR FOREGROUND-COLOR " +
	    "FOREGROUND-COLOUR FORMAT FREE FROM FULL " +
	    "FUNCTION GENERATE GET GIVING GLOBAL " +
	    "GO GOBACK GREATER GROUP HEADING " +
	    "HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL " +
	    "ID IDENTIFICATION IF IN INDEX " +
	    "INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 " +
	    "INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED " +
	    "INDIC INDICATE INDICATOR INDICATORS INITIAL " +
	    "INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT " +
	    "INSTALLATION INTO INVALID INVOKE IS " +
	    "JUST JUSTIFIED KANJI KEEP KEY " +
	    "LABEL LAST LD LEADING LEFT " +
	    "LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY " +
	    "LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER " +
	    "LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE " +
	    "LOCALE LOCALLY LOCK " +
	    "MEMBER MEMORY MERGE MESSAGE METACLASS " +
	    "MODE MODIFIED MODIFY MODULES MOVE " +
	    "MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE " +
	    "NEXT NO NO-ECHO NONE NOT " +
	    "NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER " +
	    "NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS " +
	    "OF OFF OMITTED ON ONLY " +
	    "OPEN OPTIONAL OR ORDER ORGANIZATION " +
	    "OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL " +
	    "PADDING PAGE PAGE-COUNTER PARSE PERFORM " +
	    "PF PH PIC PICTURE PLUS " +
	    "POINTER POSITION POSITIVE PREFIX PRESENT " +
	    "PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES " +
	    "PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID " +
	    "PROMPT PROTECTED PURGE QUEUE QUOTE " +
	    "QUOTES RANDOM RD READ READY " +
	    "REALM RECEIVE RECONNECT RECORD RECORD-NAME " +
	    "RECORDS RECURSIVE REDEFINES REEL REFERENCE " +
	    "REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE " +
	    "REMAINDER REMOVAL RENAMES REPEATED REPLACE " +
	    "REPLACING REPORT REPORTING REPORTS REPOSITORY " +
	    "REQUIRED RERUN RESERVE RESET RETAINING " +
	    "RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO " +
	    "REVERSED REWIND REWRITE RF RH " +
	    "RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED " +
	    "RUN SAME SCREEN SD SEARCH " +
	    "SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT " +
	    "SELECT SEND SENTENCE SEPARATE SEQUENCE " +
	    "SEQUENTIAL SET SHARED SIGN SIZE " +
	    "SKIP1 SKIP2 SKIP3 SORT SORT-MERGE " +
	    "SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL " +
	    "SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 " +
	    "START STARTING STATUS STOP STORE " +
	    "STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA " +
	    "SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS " +
	    "SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT " +
	    "TABLE TALLYING TAPE TENANT TERMINAL " +
	    "TERMINATE TEST TEXT THAN THEN " +
	    "THROUGH THRU TIME TIMES TITLE " +
	    "TO TOP TRAILING TRAILING-SIGN TRANSACTION " +
	    "TYPE TYPEDEF UNDERLINE UNEQUAL UNIT " +
	    "UNSTRING UNTIL UP UPDATE UPON " +
	    "USAGE USAGE-MODE USE USING VALID " +
	    "VALIDATE VALUE VALUES VARYING VLR " +
	    "WAIT WHEN WHEN-COMPILED WITH WITHIN " +
	    "WORDS WORKING-STORAGE WRITE XML XML-CODE " +
	    "XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL " );

	var builtins$9 = makeKeywords$1("- * ** / + < <= = > >= ");
	var tests = {
	  digit: /\d/,
	  digit_or_colon: /[\d:]/,
	  hex: /[0-9a-f]/i,
	  sign: /[+-]/,
	  exponent: /e/i,
	  keyword_char: /[^\s\(\[\;\)\]]/,
	  symbol: /[\w*+\-]/
	};
	function isNumber$1(ch, stream){
	  // hex
	  if ( ch === '0' && stream.eat(/x/i) ) {
	    stream.eatWhile(tests.hex);
	    return true;
	  }
	  // leading sign
	  if ( ( ch == '+' || ch == '-' ) && ( tests.digit.test(stream.peek()) ) ) {
	    stream.eat(tests.sign);
	    ch = stream.next();
	  }
	  if ( tests.digit.test(ch) ) {
	    stream.eat(ch);
	    stream.eatWhile(tests.digit);
	    if ( '.' == stream.peek()) {
	      stream.eat('.');
	      stream.eatWhile(tests.digit);
	    }
	    if ( stream.eat(tests.exponent) ) {
	      stream.eat(tests.sign);
	      stream.eatWhile(tests.digit);
	    }
	    return true;
	  }
	  return false;
	}
	const cobol = {
	  name: "cobol",
	  startState: function () {
	    return {
	      indentStack: null,
	      indentation: 0,
	      mode: false
	    };
	  },
	  token: function (stream, state) {
	    if (state.indentStack == null && stream.sol()) {
	      // update indentation, but only if indentStack is empty
	      state.indentation = 6 ; //stream.indentation();
	    }
	    // skip spaces
	    if (stream.eatSpace()) {
	      return null;
	    }
	    var returnType = null;
	    switch(state.mode){
	    case "string": // multi-line string parsing mode
	      var next = false;
	      while ((next = stream.next()) != null) {
	        if ((next == "\"" || next == "\'") && !stream.match(/['"]/, false)) {
	          state.mode = false;
	          break;
	        }
	      }
	      returnType = STRING$1; // continue on in string mode
	      break;
	    default: // default parsing mode
	      var ch = stream.next();
	      var col = stream.column();
	      if (col >= 0 && col <= 5) {
	        returnType = COBOLLINENUM;
	      } else if (col >= 72 && col <= 79) {
	        stream.skipToEnd();
	        returnType = MODTAG;
	      } else if (ch == "*" && col == 6) { // comment
	        stream.skipToEnd(); // rest of the line is a comment
	        returnType = COMMENT$1;
	      } else if (ch == "\"" || ch == "\'") {
	        state.mode = "string";
	        returnType = STRING$1;
	      } else if (ch == "'" && !( tests.digit_or_colon.test(stream.peek()) )) {
	        returnType = ATOM$1;
	      } else if (ch == ".") {
	        returnType = PERIOD;
	      } else if (isNumber$1(ch,stream)){
	        returnType = NUMBER$1;
	      } else {
	        if (stream.current().match(tests.symbol)) {
	          while (col < 71) {
	            if (stream.eat(tests.symbol) === undefined) {
	              break;
	            } else {
	              col++;
	            }
	          }
	        }
	        if (keywords$F && keywords$F.propertyIsEnumerable(stream.current().toUpperCase())) {
	          returnType = KEYWORD;
	        } else if (builtins$9 && builtins$9.propertyIsEnumerable(stream.current().toUpperCase())) {
	          returnType = BUILTIN$1;
	        } else if (atoms$e && atoms$e.propertyIsEnumerable(stream.current().toUpperCase())) {
	          returnType = ATOM$1;
	        } else returnType = null;
	      }
	    }
	    return returnType;
	  },
	  indent: function (state) {
	    if (state.indentStack == null) return state.indentation;
	    return state.indentStack.indent;
	  }
	};

	var cobol$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cobol: cobol
	});

	function Context$b(indented, column, type, info, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.info = info;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$f(state, col, type, info) {
	  var indent = state.indented;
	  if (state.context && state.context.type == "statement" && type != "statement")
	    indent = state.context.indented;
	  return state.context = new Context$b(indent, col, type, info, null, state.context);
	}
	function popContext$f(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	function typeBefore(stream, state, pos) {
	  if (state.prevToken == "variable" || state.prevToken == "type") return true;
	  if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos))) return true;
	  if (state.typeAtEndOfLine && stream.column() == stream.indentation()) return true;
	}

	function isTopScope(context) {
	  for (;;) {
	    if (!context || context.type == "top") return true;
	    if (context.type == "}" && context.prev.info != "namespace") return false;
	    context = context.prev;
	  }
	}

	function clike(parserConfig) {
	  var statementIndentUnit = parserConfig.statementIndentUnit,
	      dontAlignCalls = parserConfig.dontAlignCalls,
	      keywords = parserConfig.keywords || {},
	      types = parserConfig.types || {},
	      builtin = parserConfig.builtin || {},
	      blockKeywords = parserConfig.blockKeywords || {},
	      defKeywords = parserConfig.defKeywords || {},
	      atoms = parserConfig.atoms || {},
	      hooks = parserConfig.hooks || {},
	      multiLineStrings = parserConfig.multiLineStrings,
	      indentStatements = parserConfig.indentStatements !== false,
	      indentSwitch = parserConfig.indentSwitch !== false,
	      namespaceSeparator = parserConfig.namespaceSeparator,
	      isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/,
	      numberStart = parserConfig.numberStart || /[\d\.]/,
	      number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,
	      isOperatorChar = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/,
	      isIdentifierChar = parserConfig.isIdentifierChar || /[\w\$_\xa1-\uffff]/,
	      // An optional function that takes a {string} token and returns true if it
	      // should be treated as a builtin.
	      isReservedIdentifier = parserConfig.isReservedIdentifier || false;

	  var curPunc, isDefKeyword;

	  function tokenBase(stream, state) {
	    var ch = stream.next();
	    if (hooks[ch]) {
	      var result = hooks[ch](stream, state);
	      if (result !== false) return result;
	    }
	    if (ch == '"' || ch == "'") {
	      state.tokenize = tokenString(ch);
	      return state.tokenize(stream, state);
	    }
	    if (numberStart.test(ch)) {
	      stream.backUp(1);
	      if (stream.match(number)) return "number"
	      stream.next();
	    }
	    if (isPunctuationChar.test(ch)) {
	      curPunc = ch;
	      return null;
	    }
	    if (ch == "/") {
	      if (stream.eat("*")) {
	        state.tokenize = tokenComment;
	        return tokenComment(stream, state);
	      }
	      if (stream.eat("/")) {
	        stream.skipToEnd();
	        return "comment";
	      }
	    }
	    if (isOperatorChar.test(ch)) {
	      while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar)) {}
	      return "operator";
	    }
	    stream.eatWhile(isIdentifierChar);
	    if (namespaceSeparator) while (stream.match(namespaceSeparator))
	      stream.eatWhile(isIdentifierChar);

	    var cur = stream.current();
	    if (contains(keywords, cur)) {
	      if (contains(blockKeywords, cur)) curPunc = "newstatement";
	      if (contains(defKeywords, cur)) isDefKeyword = true;
	      return "keyword";
	    }
	    if (contains(types, cur)) return "type";
	    if (contains(builtin, cur)
	        || (isReservedIdentifier && isReservedIdentifier(cur))) {
	      if (contains(blockKeywords, cur)) curPunc = "newstatement";
	      return "builtin";
	    }
	    if (contains(atoms, cur)) return "atom";
	    return "variable";
	  }

	  function tokenString(quote) {
	    return function(stream, state) {
	      var escaped = false, next, end = false;
	      while ((next = stream.next()) != null) {
	        if (next == quote && !escaped) {end = true; break;}
	        escaped = !escaped && next == "\\";
	      }
	      if (end || !(escaped || multiLineStrings))
	        state.tokenize = null;
	      return "string";
	    };
	  }

	  function tokenComment(stream, state) {
	    var maybeEnd = false, ch;
	    while (ch = stream.next()) {
	      if (ch == "/" && maybeEnd) {
	        state.tokenize = null;
	        break;
	      }
	      maybeEnd = (ch == "*");
	    }
	    return "comment";
	  }

	  function maybeEOL(stream, state) {
	    if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state.context))
	      state.typeAtEndOfLine = typeBefore(stream, state, stream.pos);
	  }

	  // Interface

	  return {
	    name: parserConfig.name,
	    startState: function(indentUnit) {
	      return {
	        tokenize: null,
	        context: new Context$b(-indentUnit, 0, "top", null, false),
	        indented: 0,
	        startOfLine: true,
	        prevToken: null
	      };
	    },

	    token: function(stream, state) {
	      var ctx = state.context;
	      if (stream.sol()) {
	        if (ctx.align == null) ctx.align = false;
	        state.indented = stream.indentation();
	        state.startOfLine = true;
	      }
	      if (stream.eatSpace()) { maybeEOL(stream, state); return null; }
	      curPunc = isDefKeyword = null;
	      var style = (state.tokenize || tokenBase)(stream, state);
	      if (style == "comment" || style == "meta") return style;
	      if (ctx.align == null) ctx.align = true;

	      if (curPunc == ";" || curPunc == ":" || (curPunc == "," && stream.match(/^\s*(?:\/\/.*)?$/, false)))
	        while (state.context.type == "statement") popContext$f(state);
	      else if (curPunc == "{") pushContext$f(state, stream.column(), "}");
	      else if (curPunc == "[") pushContext$f(state, stream.column(), "]");
	      else if (curPunc == "(") pushContext$f(state, stream.column(), ")");
	      else if (curPunc == "}") {
	        while (ctx.type == "statement") ctx = popContext$f(state);
	        if (ctx.type == "}") ctx = popContext$f(state);
	        while (ctx.type == "statement") ctx = popContext$f(state);
	      }
	      else if (curPunc == ctx.type) popContext$f(state);
	      else if (indentStatements &&
	               (((ctx.type == "}" || ctx.type == "top") && curPunc != ";") ||
	                (ctx.type == "statement" && curPunc == "newstatement"))) {
	        pushContext$f(state, stream.column(), "statement", stream.current());
	      }

	      if (style == "variable" &&
	          ((state.prevToken == "def" ||
	            (parserConfig.typeFirstDefinitions && typeBefore(stream, state, stream.start) &&
	             isTopScope(state.context) && stream.match(/^\s*\(/, false)))))
	        style = "def";

	      if (hooks.token) {
	        var result = hooks.token(stream, state, style);
	        if (result !== undefined) style = result;
	      }

	      if (style == "def" && parserConfig.styleDefs === false) style = "variable";

	      state.startOfLine = false;
	      state.prevToken = isDefKeyword ? "def" : style || curPunc;
	      maybeEOL(stream, state);
	      return style;
	    },

	    indent: function(state, textAfter, context) {
	      if (state.tokenize != tokenBase && state.tokenize != null || state.typeAtEndOfLine && isTopScope(state.context))
	        return null;
	      var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
	      var closing = firstChar == ctx.type;
	      if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
	      if (parserConfig.dontIndentStatements)
	        while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info))
	          ctx = ctx.prev;
	      if (hooks.indent) {
	        var hook = hooks.indent(state, ctx, textAfter, context.unit);
	        if (typeof hook == "number") return hook
	      }
	      var switchBlock = ctx.prev && ctx.prev.info == "switch";
	      if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) {
	        while (ctx.type != "top" && ctx.type != "}") ctx = ctx.prev;
	        return ctx.indented
	      }
	      if (ctx.type == "statement")
	        return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || context.unit);
	      if (ctx.align && (!dontAlignCalls || ctx.type != ")"))
	        return ctx.column + (closing ? 0 : 1);
	      if (ctx.type == ")" && !closing)
	        return ctx.indented + (statementIndentUnit || context.unit);

	      return ctx.indented + (closing ? 0 : context.unit) +
	        (!closing && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? context.unit : 0);
	    },

	    languageData: {
	      indentOnInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
	      commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	      autocomplete: Object.keys(keywords).concat(Object.keys(types)).concat(Object.keys(builtin)).concat(Object.keys(atoms)),
	      ...parserConfig.languageData
	    }
	  };
	}
	function words$j(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	function contains(words, word) {
	  if (typeof words === "function") {
	    return words(word);
	  } else {
	    return words.propertyIsEnumerable(word);
	  }
	}
	var cKeywords = "auto if break case register continue return default do sizeof " +
	    "static else struct switch extern typedef union for goto while enum const " +
	    "volatile inline restrict asm fortran";

	// Keywords from https://en.cppreference.com/w/cpp/keyword includes C++20.
	var cppKeywords = "alignas alignof and and_eq audit axiom bitand bitor catch " +
	    "class compl concept constexpr const_cast decltype delete dynamic_cast " +
	    "explicit export final friend import module mutable namespace new noexcept " +
	    "not not_eq operator or or_eq override private protected public " +
	    "reinterpret_cast requires static_assert static_cast template this " +
	    "thread_local throw try typeid typename using virtual xor xor_eq";

	var objCKeywords = "bycopy byref in inout oneway out self super atomic nonatomic retain copy " +
	    "readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd " +
	    "@interface @implementation @end @protocol @encode @property @synthesize @dynamic @class " +
	    "@public @package @private @protected @required @optional @try @catch @finally @import " +
	    "@selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available";

	var objCBuiltins = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION " +
	    " NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER " +
	    "NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION " +
	    "NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT";

	// Do not use this. Use the cTypes function below. This is global just to avoid
	// excessive calls when cTypes is being called multiple times during a parse.
	var basicCTypes = words$j("int long char short double float unsigned signed " +
	                        "void bool");

	// Do not use this. Use the objCTypes function below. This is global just to avoid
	// excessive calls when objCTypes is being called multiple times during a parse.
	var basicObjCTypes = words$j("SEL instancetype id Class Protocol BOOL");

	// Returns true if identifier is a "C" type.
	// C type is defined as those that are reserved by the compiler (basicTypes),
	// and those that end in _t (Reserved by POSIX for types)
	// http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
	function cTypes(identifier) {
	  return contains(basicCTypes, identifier) || /.+_t$/.test(identifier);
	}

	// Returns true if identifier is a "Objective C" type.
	function objCTypes(identifier) {
	  return cTypes(identifier) || contains(basicObjCTypes, identifier);
	}

	var cBlockKeywords = "case do else for if switch while struct enum union";
	var cDefKeywords = "struct enum union";

	function cppHook(stream, state) {
	  if (!state.startOfLine) return false
	  for (var ch, next = null; ch = stream.peek();) {
	    if (ch == "\\" && stream.match(/^.$/)) {
	      next = cppHook;
	      break
	    } else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) {
	      break
	    }
	    stream.next();
	  }
	  state.tokenize = next;
	  return "meta"
	}

	function pointerHook(_stream, state) {
	  if (state.prevToken == "type") return "type";
	  return false;
	}

	// For C and C++ (and ObjC): identifiers starting with __
	// or _ followed by a capital letter are reserved for the compiler.
	function cIsReservedIdentifier(token) {
	  if (!token || token.length < 2) return false;
	  if (token[0] != '_') return false;
	  return (token[1] == '_') || (token[1] !== token[1].toLowerCase());
	}

	function cpp14Literal(stream) {
	  stream.eatWhile(/[\w\.']/);
	  return "number";
	}

	function cpp11StringHook(stream, state) {
	  stream.backUp(1);
	  // Raw strings.
	  if (stream.match(/^(?:R|u8R|uR|UR|LR)/)) {
	    var match = stream.match(/^"([^\s\\()]{0,16})\(/);
	    if (!match) {
	      return false;
	    }
	    state.cpp11RawStringDelim = match[1];
	    state.tokenize = tokenRawString;
	    return tokenRawString(stream, state);
	  }
	  // Unicode strings/chars.
	  if (stream.match(/^(?:u8|u|U|L)/)) {
	    if (stream.match(/^["']/, /* eat */ false)) {
	      return "string";
	    }
	    return false;
	  }
	  // Ignore this hook.
	  stream.next();
	  return false;
	}

	function cppLooksLikeConstructor(word) {
	  var lastTwo = /(\w+)::~?(\w+)$/.exec(word);
	  return lastTwo && lastTwo[1] == lastTwo[2];
	}

	// C#-style strings where "" escapes a quote.
	function tokenAtString(stream, state) {
	  var next;
	  while ((next = stream.next()) != null) {
	    if (next == '"' && !stream.eat('"')) {
	      state.tokenize = null;
	      break;
	    }
	  }
	  return "string";
	}

	// C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
	// <delim> can be a string up to 16 characters long.
	function tokenRawString(stream, state) {
	  // Escape characters that have special regex meanings.
	  var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&');
	  var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
	  if (match)
	    state.tokenize = null;
	  else
	    stream.skipToEnd();
	  return "string";
	}

	const c = clike({
	  name: "c",
	  keywords: words$j(cKeywords),
	  types: cTypes,
	  blockKeywords: words$j(cBlockKeywords),
	  defKeywords: words$j(cDefKeywords),
	  typeFirstDefinitions: true,
	  atoms: words$j("NULL true false"),
	  isReservedIdentifier: cIsReservedIdentifier,
	  hooks: {
	    "#": cppHook,
	    "*": pointerHook,
	  }
	});

	const cpp = clike({
	  name: "cpp",
	  keywords: words$j(cKeywords + " " + cppKeywords),
	  types: cTypes,
	  blockKeywords: words$j(cBlockKeywords + " class try catch"),
	  defKeywords: words$j(cDefKeywords + " class namespace"),
	  typeFirstDefinitions: true,
	  atoms: words$j("true false NULL nullptr"),
	  dontIndentStatements: /^template$/,
	  isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
	  isReservedIdentifier: cIsReservedIdentifier,
	  hooks: {
	    "#": cppHook,
	    "*": pointerHook,
	    "u": cpp11StringHook,
	    "U": cpp11StringHook,
	    "L": cpp11StringHook,
	    "R": cpp11StringHook,
	    "0": cpp14Literal,
	    "1": cpp14Literal,
	    "2": cpp14Literal,
	    "3": cpp14Literal,
	    "4": cpp14Literal,
	    "5": cpp14Literal,
	    "6": cpp14Literal,
	    "7": cpp14Literal,
	    "8": cpp14Literal,
	    "9": cpp14Literal,
	    token: function(stream, state, style) {
	      if (style == "variable" && stream.peek() == "(" &&
	          (state.prevToken == ";" || state.prevToken == null ||
	           state.prevToken == "}") &&
	          cppLooksLikeConstructor(stream.current()))
	        return "def";
	    }
	  },
	  namespaceSeparator: "::"
	});

	const java = clike({
	  name: "java",
	  keywords: words$j("abstract assert break case catch class const continue default " +
	                  "do else enum extends final finally for goto if implements import " +
	                  "instanceof interface native new package private protected public " +
	                  "return static strictfp super switch synchronized this throw throws transient " +
	                  "try volatile while @interface"),
	  types: words$j("var byte short int long float double boolean char void Boolean Byte Character Double Float " +
	               "Integer Long Number Object Short String StringBuffer StringBuilder Void"),
	  blockKeywords: words$j("catch class do else finally for if switch try while"),
	  defKeywords: words$j("class interface enum @interface"),
	  typeFirstDefinitions: true,
	  atoms: words$j("true false null"),
	  number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
	  hooks: {
	    "@": function(stream) {
	      // Don't match the @interface keyword.
	      if (stream.match('interface', false)) return false;

	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    },
	    '"': function(stream, state) {
	      if (!stream.match(/""$/)) return false;
	      state.tokenize = tokenTripleString;
	      return state.tokenize(stream, state);
	    }
	  }
	});

	const csharp = clike({
	  name: "csharp",
	  keywords: words$j("abstract as async await base break case catch checked class const continue" +
	                  " default delegate do else enum event explicit extern finally fixed for" +
	                  " foreach goto if implicit in init interface internal is lock namespace new" +
	                  " operator out override params private protected public readonly record ref required return sealed" +
	                  " sizeof stackalloc static struct switch this throw try typeof unchecked" +
	                  " unsafe using virtual void volatile while add alias ascending descending dynamic from get" +
	                  " global group into join let orderby partial remove select set value var yield"),
	  types: words$j("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func" +
	               " Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32" +
	               " UInt64 bool byte char decimal double short int long object"  +
	               " sbyte float string ushort uint ulong"),
	  blockKeywords: words$j("catch class do else finally for foreach if struct switch try while"),
	  defKeywords: words$j("class interface namespace record struct var"),
	  typeFirstDefinitions: true,
	  atoms: words$j("true false null"),
	  hooks: {
	    "@": function(stream, state) {
	      if (stream.eat('"')) {
	        state.tokenize = tokenAtString;
	        return tokenAtString(stream, state);
	      }
	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    }
	  }
	});

	function tokenTripleString(stream, state) {
	  var escaped = false;
	  while (!stream.eol()) {
	    if (!escaped && stream.match('"""')) {
	      state.tokenize = null;
	      break;
	    }
	    escaped = stream.next() == "\\" && !escaped;
	  }
	  return "string";
	}

	function tokenNestedComment$1(depth) {
	  return function (stream, state) {
	    var ch;
	    while (ch = stream.next()) {
	      if (ch == "*" && stream.eat("/")) {
	        if (depth == 1) {
	          state.tokenize = null;
	          break
	        } else {
	          state.tokenize = tokenNestedComment$1(depth - 1);
	          return state.tokenize(stream, state)
	        }
	      } else if (ch == "/" && stream.eat("*")) {
	        state.tokenize = tokenNestedComment$1(depth + 1);
	        return state.tokenize(stream, state)
	      }
	    }
	    return "comment"
	  }
	}

	const scala = clike({
	  name: "scala",
	  keywords: words$j(
	    /* scala */
	    "abstract case catch class def do else extends final finally for forSome if " +
	      "implicit import lazy match new null object override package private protected return " +
	      "sealed super this throw trait try type val var while with yield _ " +

	    /* package scala */
	    "assert assume require print println printf readLine readBoolean readByte readShort " +
	      "readChar readInt readLong readFloat readDouble"
	  ),
	  types: words$j(
	    "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
	      "Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable " +
	      "Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
	      "Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
	      "StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector " +

	    /* package java.lang */
	    "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
	      "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
	      "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
	      "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
	  ),
	  multiLineStrings: true,
	  blockKeywords: words$j("catch class enum do else finally for forSome if match switch try while"),
	  defKeywords: words$j("class enum def object package trait type val var"),
	  atoms: words$j("true false null"),
	  indentStatements: false,
	  indentSwitch: false,
	  isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
	  hooks: {
	    "@": function(stream) {
	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    },
	    '"': function(stream, state) {
	      if (!stream.match('""')) return false;
	      state.tokenize = tokenTripleString;
	      return state.tokenize(stream, state);
	    },
	    "'": function(stream) {
	      if (stream.match(/^(\\[^'\s]+|[^\\'])'/)) return "character"
	      stream.eatWhile(/[\w\$_\xa1-\uffff]/);
	      return "atom";
	    },
	    "=": function(stream, state) {
	      var cx = state.context;
	      if (cx.type == "}" && cx.align && stream.eat(">")) {
	        state.context = new Context$b(cx.indented, cx.column, cx.type, cx.info, null, cx.prev);
	        return "operator"
	      } else {
	        return false
	      }
	    },

	    "/": function(stream, state) {
	      if (!stream.eat("*")) return false
	      state.tokenize = tokenNestedComment$1(1);
	      return state.tokenize(stream, state)
	    }
	  },
	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', '"""']}
	  }
	});

	function tokenKotlinString(tripleString){
	  return function (stream, state) {
	    var escaped = false, next, end = false;
	    while (!stream.eol()) {
	      if (!tripleString && !escaped && stream.match('"') ) {end = true; break;}
	      if (tripleString && stream.match('"""')) {end = true; break;}
	      next = stream.next();
	      if(!escaped && next == "$" && stream.match('{'))
	        stream.skipTo("}");
	      escaped = !escaped && next == "\\" && !tripleString;
	    }
	    if (end || !tripleString)
	      state.tokenize = null;
	    return "string";
	  }
	}

	const kotlin = clike({
	  name: "kotlin",
	  keywords: words$j(
	    /*keywords*/
	    "package as typealias class interface this super val operator " +
	      "var fun for is in This throw return annotation " +
	      "break continue object if else while do try when !in !is as? " +

	    /*soft keywords*/
	    "file import where by get set abstract enum open inner override private public internal " +
	      "protected catch finally out final vararg reified dynamic companion constructor init " +
	      "sealed field property receiver param sparam lateinit data inline noinline tailrec " +
	      "external annotation crossinline const operator infix suspend actual expect setparam"
	  ),
	  types: words$j(
	    /* package java.lang */
	    "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
	      "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
	      "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
	      "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray " +
	      "ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy " +
	      "LazyThreadSafetyMode LongArray Nothing ShortArray Unit"
	  ),
	  intendSwitch: false,
	  indentStatements: false,
	  multiLineStrings: true,
	  number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
	  blockKeywords: words$j("catch class do else finally for if where try while enum"),
	  defKeywords: words$j("class val var object interface fun"),
	  atoms: words$j("true false null this"),
	  hooks: {
	    "@": function(stream) {
	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    },
	    '*': function(_stream, state) {
	      return state.prevToken == '.' ? 'variable' : 'operator';
	    },
	    '"': function(stream, state) {
	      state.tokenize = tokenKotlinString(stream.match('""'));
	      return state.tokenize(stream, state);
	    },
	    "/": function(stream, state) {
	      if (!stream.eat("*")) return false;
	      state.tokenize = tokenNestedComment$1(1);
	      return state.tokenize(stream, state)
	    },
	    indent: function(state, ctx, textAfter, indentUnit) {
	      var firstChar = textAfter && textAfter.charAt(0);
	      if ((state.prevToken == "}" || state.prevToken == ")") && textAfter == "")
	        return state.indented;
	      if ((state.prevToken == "operator" && textAfter != "}" && state.context.type != "}") ||
	          state.prevToken == "variable" && firstChar == "." ||
	          (state.prevToken == "}" || state.prevToken == ")") && firstChar == ".")
	        return indentUnit * 2 + ctx.indented;
	      if (ctx.align && ctx.type == "}")
	        return ctx.indented + (state.context.type == (textAfter || "").charAt(0) ? 0 : indentUnit);
	    }
	  },
	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', '"""']}
	  }
	});

	const shader = clike({
	  name: "shader",
	  keywords: words$j("sampler1D sampler2D sampler3D samplerCube " +
	                  "sampler1DShadow sampler2DShadow " +
	                  "const attribute uniform varying " +
	                  "break continue discard return " +
	                  "for while do if else struct " +
	                  "in out inout"),
	  types: words$j("float int bool void " +
	               "vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " +
	               "mat2 mat3 mat4"),
	  blockKeywords: words$j("for while do if else struct"),
	  builtin: words$j("radians degrees sin cos tan asin acos atan " +
	                 "pow exp log exp2 sqrt inversesqrt " +
	                 "abs sign floor ceil fract mod min max clamp mix step smoothstep " +
	                 "length distance dot cross normalize ftransform faceforward " +
	                 "reflect refract matrixCompMult " +
	                 "lessThan lessThanEqual greaterThan greaterThanEqual " +
	                 "equal notEqual any all not " +
	                 "texture1D texture1DProj texture1DLod texture1DProjLod " +
	                 "texture2D texture2DProj texture2DLod texture2DProjLod " +
	                 "texture3D texture3DProj texture3DLod texture3DProjLod " +
	                 "textureCube textureCubeLod " +
	                 "shadow1D shadow2D shadow1DProj shadow2DProj " +
	                 "shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " +
	                 "dFdx dFdy fwidth " +
	                 "noise1 noise2 noise3 noise4"),
	  atoms: words$j("true false " +
	               "gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " +
	               "gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " +
	               "gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " +
	               "gl_FogCoord gl_PointCoord " +
	               "gl_Position gl_PointSize gl_ClipVertex " +
	               "gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " +
	               "gl_TexCoord gl_FogFragCoord " +
	               "gl_FragCoord gl_FrontFacing " +
	               "gl_FragData gl_FragDepth " +
	               "gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " +
	               "gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " +
	               "gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " +
	               "gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose " +
	               "gl_ProjectionMatrixInverseTranspose " +
	               "gl_ModelViewProjectionMatrixInverseTranspose " +
	               "gl_TextureMatrixInverseTranspose " +
	               "gl_NormalScale gl_DepthRange gl_ClipPlane " +
	               "gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " +
	               "gl_FrontLightModelProduct gl_BackLightModelProduct " +
	               "gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " +
	               "gl_FogParameters " +
	               "gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " +
	               "gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " +
	               "gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " +
	               "gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " +
	               "gl_MaxDrawBuffers"),
	  indentSwitch: false,
	  hooks: {"#": cppHook}
	});

	const nesC = clike({
	  name: "nesc",
	  keywords: words$j(cKeywords + " as atomic async call command component components configuration event generic " +
	                  "implementation includes interface module new norace nx_struct nx_union post provides " +
	                  "signal task uses abstract extends"),
	  types: cTypes,
	  blockKeywords: words$j(cBlockKeywords),
	  atoms: words$j("null true false"),
	  hooks: {"#": cppHook}
	});

	const objectiveC = clike({
	  name: "objectivec",
	  keywords: words$j(cKeywords + " " + objCKeywords),
	  types: objCTypes,
	  builtin: words$j(objCBuiltins),
	  blockKeywords: words$j(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
	  defKeywords: words$j(cDefKeywords + " @interface @implementation @protocol @class"),
	  dontIndentStatements: /^@.*$/,
	  typeFirstDefinitions: true,
	  atoms: words$j("YES NO NULL Nil nil true false nullptr"),
	  isReservedIdentifier: cIsReservedIdentifier,
	  hooks: {
	    "#": cppHook,
	    "*": pointerHook,
	  }
	});

	const objectiveCpp = clike({
	  name: "objectivecpp",
	  keywords: words$j(cKeywords + " " + objCKeywords + " " + cppKeywords),
	  types: objCTypes,
	  builtin: words$j(objCBuiltins),
	  blockKeywords: words$j(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
	  defKeywords: words$j(cDefKeywords + " @interface @implementation @protocol @class class namespace"),
	  dontIndentStatements: /^@.*$|^template$/,
	  typeFirstDefinitions: true,
	  atoms: words$j("YES NO NULL Nil nil true false nullptr"),
	  isReservedIdentifier: cIsReservedIdentifier,
	  hooks: {
	    "#": cppHook,
	    "*": pointerHook,
	    "u": cpp11StringHook,
	    "U": cpp11StringHook,
	    "L": cpp11StringHook,
	    "R": cpp11StringHook,
	    "0": cpp14Literal,
	    "1": cpp14Literal,
	    "2": cpp14Literal,
	    "3": cpp14Literal,
	    "4": cpp14Literal,
	    "5": cpp14Literal,
	    "6": cpp14Literal,
	    "7": cpp14Literal,
	    "8": cpp14Literal,
	    "9": cpp14Literal,
	    token: function(stream, state, style) {
	      if (style == "variable" && stream.peek() == "(" &&
	          (state.prevToken == ";" || state.prevToken == null ||
	           state.prevToken == "}") &&
	          cppLooksLikeConstructor(stream.current()))
	        return "def";
	    }
	  },
	  namespaceSeparator: "::"
	});

	const squirrel = clike({
	  name: "squirrel",
	  keywords: words$j("base break clone continue const default delete enum extends function in class" +
	                  " foreach local resume return this throw typeof yield constructor instanceof static"),
	  types: cTypes,
	  blockKeywords: words$j("case catch class else for foreach if switch try while"),
	  defKeywords: words$j("function local class"),
	  typeFirstDefinitions: true,
	  atoms: words$j("true false null"),
	  hooks: {"#": cppHook}
	});

	// Ceylon Strings need to deal with interpolation
	var stringTokenizer = null;
	function tokenCeylonString(type) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while (!stream.eol()) {
	      if (!escaped && stream.match('"') &&
	          (type == "single" || stream.match('""'))) {
	        end = true;
	        break;
	      }
	      if (!escaped && stream.match('``')) {
	        stringTokenizer = tokenCeylonString(type);
	        end = true;
	        break;
	      }
	      next = stream.next();
	      escaped = type == "single" && !escaped && next == "\\";
	    }
	    if (end)
	      state.tokenize = null;
	    return "string";
	  }
	}

	const ceylon = clike({
	  name: "ceylon",
	  keywords: words$j("abstracts alias assembly assert assign break case catch class continue dynamic else" +
	                  " exists extends finally for function given if import in interface is let module new" +
	                  " nonempty object of out outer package return satisfies super switch then this throw" +
	                  " try value void while"),
	  types: function(word) {
	    // In Ceylon all identifiers that start with an uppercase are types
	    var first = word.charAt(0);
	    return (first === first.toUpperCase() && first !== first.toLowerCase());
	  },
	  blockKeywords: words$j("case catch class dynamic else finally for function if interface module new object switch try while"),
	  defKeywords: words$j("class dynamic function interface module object package value"),
	  builtin: words$j("abstract actual aliased annotation by default deprecated doc final formal late license" +
	                 " native optional sealed see serializable shared suppressWarnings tagged throws variable"),
	  isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
	  isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
	  numberStart: /[\d#$]/,
	  number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
	  multiLineStrings: true,
	  typeFirstDefinitions: true,
	  atoms: words$j("true false null larger smaller equal empty finished"),
	  indentSwitch: false,
	  styleDefs: false,
	  hooks: {
	    "@": function(stream) {
	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    },
	    '"': function(stream, state) {
	      state.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single");
	      return state.tokenize(stream, state);
	    },
	    '`': function(stream, state) {
	      if (!stringTokenizer || !stream.match('`')) return false;
	      state.tokenize = stringTokenizer;
	      stringTokenizer = null;
	      return state.tokenize(stream, state);
	    },
	    "'": function(stream) {
	      if (stream.match(/^(\\[^'\s]+|[^\\'])'/)) return "string.special"
	      stream.eatWhile(/[\w\$_\xa1-\uffff]/);
	      return "atom";
	    },
	    token: function(_stream, state, style) {
	      if ((style == "variable" || style == "type") &&
	          state.prevToken == ".") {
	        return "variableName.special";
	      }
	    }
	  },
	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', '"""']}
	  }
	});

	function pushInterpolationStack(state) {
	  (state.interpolationStack || (state.interpolationStack = [])).push(state.tokenize);
	}

	function popInterpolationStack(state) {
	  return (state.interpolationStack || (state.interpolationStack = [])).pop();
	}

	function sizeInterpolationStack(state) {
	  return state.interpolationStack ? state.interpolationStack.length : 0;
	}

	function tokenDartString(quote, stream, state, raw) {
	  var tripleQuoted = false;
	  if (stream.eat(quote)) {
	    if (stream.eat(quote)) tripleQuoted = true;
	    else return "string"; //empty string
	  }
	  function tokenStringHelper(stream, state) {
	    var escaped = false;
	    while (!stream.eol()) {
	      if (!raw && !escaped && stream.peek() == "$") {
	        pushInterpolationStack(state);
	        state.tokenize = tokenInterpolation$1;
	        return "string";
	      }
	      var next = stream.next();
	      if (next == quote && !escaped && (!tripleQuoted || stream.match(quote + quote))) {
	        state.tokenize = null;
	        break;
	      }
	      escaped = !raw && !escaped && next == "\\";
	    }
	    return "string";
	  }
	  state.tokenize = tokenStringHelper;
	  return tokenStringHelper(stream, state);
	}

	function tokenInterpolation$1(stream, state) {
	  stream.eat("$");
	  if (stream.eat("{")) {
	    // let clike handle the content of ${...},
	    // we take over again when "}" appears (see hooks).
	    state.tokenize = null;
	  } else {
	    state.tokenize = tokenInterpolationIdentifier;
	  }
	  return null;
	}

	function tokenInterpolationIdentifier(stream, state) {
	  stream.eatWhile(/[\w_]/);
	  state.tokenize = popInterpolationStack(state);
	  return "variable";
	}

	const dart = clike({
	  name: "dart",
	  keywords: words$j("this super static final const abstract class extends external factory " +
	                  "implements mixin get native set typedef with enum throw rethrow assert break case " +
	                  "continue default in return new deferred async await covariant try catch finally " +
	                  "do else for if switch while import library export part of show hide is as extension " +
	                  "on yield late required sealed base interface when inline"),
	  blockKeywords: words$j("try catch finally do else for if switch while"),
	  builtin: words$j("void bool num int double dynamic var String Null Never"),
	  atoms: words$j("true false null"),
	  hooks: {
	    "@": function(stream) {
	      stream.eatWhile(/[\w\$_\.]/);
	      return "meta";
	    },

	    // custom string handling to deal with triple-quoted strings and string interpolation
	    "'": function(stream, state) {
	      return tokenDartString("'", stream, state, false);
	    },
	    "\"": function(stream, state) {
	      return tokenDartString("\"", stream, state, false);
	    },
	    "r": function(stream, state) {
	      var peek = stream.peek();
	      if (peek == "'" || peek == "\"") {
	        return tokenDartString(stream.next(), stream, state, true);
	      }
	      return false;
	    },

	    "}": function(_stream, state) {
	      // "}" is end of interpolation, if interpolation stack is non-empty
	      if (sizeInterpolationStack(state) > 0) {
	        state.tokenize = popInterpolationStack(state);
	        return null;
	      }
	      return false;
	    },

	    "/": function(stream, state) {
	      if (!stream.eat("*")) return false
	      state.tokenize = tokenNestedComment$1(1);
	      return state.tokenize(stream, state)
	    },
	    token: function(stream, _, style) {
	      if (style == "variable") {
	        // Assume uppercase symbols are classes
	        var isUpper = RegExp('^[_$]*[A-Z][a-zA-Z0-9_$]*$','g');
	        if (isUpper.test(stream.current())) {
	          return 'type';
	        }
	      }
	    }
	  }
	});

	var clike$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		c: c,
		ceylon: ceylon,
		clike: clike,
		cpp: cpp,
		csharp: csharp,
		dart: dart,
		java: java,
		kotlin: kotlin,
		nesC: nesC,
		objectiveC: objectiveC,
		objectiveCpp: objectiveCpp,
		scala: scala,
		shader: shader,
		squirrel: squirrel
	});

	var atoms$d = ["false", "nil", "true"];
	var specialForms = [".", "catch", "def", "do", "if", "monitor-enter",
	                    "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"];
	var coreSymbols = ["*", "*'", "*1", "*2", "*3", "*agent*",
	                   "*allow-unresolved-vars*", "*assert*", "*clojure-version*",
	                   "*command-line-args*", "*compile-files*", "*compile-path*",
	                   "*compiler-options*", "*data-readers*", "*default-data-reader-fn*", "*e",
	                   "*err*", "*file*", "*flush-on-newline*", "*fn-loader*", "*in*",
	                   "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*",
	                   "*print-level*", "*print-meta*", "*print-namespace-maps*",
	                   "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*",
	                   "*suppress-read*", "*unchecked-math*", "*use-context-classloader*",
	                   "*verbose-defrecords*", "*warn-on-reflection*", "+", "+'", "-", "-'",
	                   "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode",
	                   "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=",
	                   "=", "==", ">", ">=", "EMPTY-NODE", "Inst", "StackTraceElement->vec",
	                   "Throwable->map", "accessor", "aclone", "add-classpath", "add-watch",
	                   "agent", "agent-error", "agent-errors", "aget", "alength", "alias",
	                   "all-ns", "alter", "alter-meta!", "alter-var-root", "amap", "ancestors",
	                   "and", "any?", "apply", "areduce", "array-map", "as->", "aset",
	                   "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float",
	                   "aset-int", "aset-long", "aset-short", "assert", "assoc", "assoc!",
	                   "assoc-in", "associative?", "atom", "await", "await-for", "await1",
	                   "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and",
	                   "bit-and-not", "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set",
	                   "bit-shift-left", "bit-shift-right", "bit-test", "bit-xor", "boolean",
	                   "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*",
	                   "bound?", "bounded-count", "butlast", "byte", "byte-array", "bytes",
	                   "bytes?", "case", "cast", "cat", "char", "char-array",
	                   "char-escape-string", "char-name-string", "char?", "chars", "chunk",
	                   "chunk-append", "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next",
	                   "chunk-rest", "chunked-seq?", "class", "class?", "clear-agent-errors",
	                   "clojure-version", "coll?", "comment", "commute", "comp", "comparator",
	                   "compare", "compare-and-set!", "compile", "complement", "completing",
	                   "concat", "cond", "cond->", "cond->>", "condp", "conj", "conj!", "cons",
	                   "constantly", "construct-proxy", "contains?", "count", "counted?",
	                   "create-ns", "create-struct", "cycle", "dec", "dec'", "decimal?",
	                   "declare", "dedupe", "default-data-readers", "definline", "definterface",
	                   "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce",
	                   "defprotocol", "defrecord", "defstruct", "deftype", "delay", "delay?",
	                   "deliver", "denominator", "deref", "derive", "descendants", "destructure",
	                   "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall",
	                   "dorun", "doseq", "dosync", "dotimes", "doto", "double", "double-array",
	                   "double?", "doubles", "drop", "drop-last", "drop-while", "eduction",
	                   "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq",
	                   "error-handler", "error-mode", "eval", "even?", "every-pred", "every?",
	                   "ex-data", "ex-info", "extend", "extend-protocol", "extend-type",
	                   "extenders", "extends?", "false?", "ffirst", "file-seq", "filter",
	                   "filterv", "find", "find-keyword", "find-ns", "find-protocol-impl",
	                   "find-protocol-method", "find-var", "first", "flatten", "float",
	                   "float-array", "float?", "floats", "flush", "fn", "fn?", "fnext", "fnil",
	                   "for", "force", "format", "frequencies", "future", "future-call",
	                   "future-cancel", "future-cancelled?", "future-done?", "future?",
	                   "gen-class", "gen-interface", "gensym", "get", "get-in", "get-method",
	                   "get-proxy-class", "get-thread-bindings", "get-validator", "group-by",
	                   "halt-when", "hash", "hash-combine", "hash-map", "hash-ordered-coll",
	                   "hash-set", "hash-unordered-coll", "ident?", "identical?", "identity",
	                   "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'",
	                   "indexed?", "init-proxy", "inst-ms", "inst-ms*", "inst?", "instance?",
	                   "int", "int-array", "int?", "integer?", "interleave", "intern",
	                   "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate",
	                   "iterator-seq", "juxt", "keep", "keep-indexed", "key", "keys", "keyword",
	                   "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq",
	                   "list", "list*", "list?", "load", "load-file", "load-reader",
	                   "load-string", "loaded-libs", "locking", "long", "long-array", "longs",
	                   "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy",
	                   "map", "map-entry?", "map-indexed", "map?", "mapcat", "mapv", "max",
	                   "max-key", "memfn", "memoize", "merge", "merge-with", "meta",
	                   "method-sig", "methods", "min", "min-key", "mix-collection-hash", "mod",
	                   "munge", "name", "namespace", "namespace-munge", "nat-int?", "neg-int?",
	                   "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?",
	                   "not-empty", "not-every?", "not=", "ns", "ns-aliases", "ns-imports",
	                   "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers",
	                   "ns-resolve", "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest",
	                   "num", "number?", "numerator", "object-array", "odd?", "or", "parents",
	                   "partial", "partition", "partition-all", "partition-by", "pcalls", "peek",
	                   "persistent!", "pmap", "pop", "pop!", "pop-thread-bindings", "pos-int?",
	                   "pos?", "pr", "pr-str", "prefer-method", "prefers",
	                   "primitives-classnames", "print", "print-ctor", "print-dup",
	                   "print-method", "print-simple", "print-str", "printf", "println",
	                   "println-str", "prn", "prn-str", "promise", "proxy",
	                   "proxy-call-with-super", "proxy-mappings", "proxy-name", "proxy-super",
	                   "push-thread-bindings", "pvalues", "qualified-ident?",
	                   "qualified-keyword?", "qualified-symbol?", "quot", "rand", "rand-int",
	                   "rand-nth", "random-sample", "range", "ratio?", "rational?",
	                   "rationalize", "re-find", "re-groups", "re-matcher", "re-matches",
	                   "re-pattern", "re-seq", "read", "read-line", "read-string",
	                   "reader-conditional", "reader-conditional?", "realized?", "record?",
	                   "reduce", "reduce-kv", "reduced", "reduced?", "reductions", "ref",
	                   "ref-history-count", "ref-max-history", "ref-min-history", "ref-set",
	                   "refer", "refer-clojure", "reify", "release-pending-sends", "rem",
	                   "remove", "remove-all-methods", "remove-method", "remove-ns",
	                   "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require",
	                   "reset!", "reset-meta!", "reset-vals!", "resolve", "rest",
	                   "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq",
	                   "rsubseq", "run!", "satisfies?", "second", "select-keys", "send",
	                   "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence",
	                   "sequential?", "set", "set-agent-send-executor!",
	                   "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!",
	                   "set-validator!", "set?", "short", "short-array", "shorts", "shuffle",
	                   "shutdown-agents", "simple-ident?", "simple-keyword?", "simple-symbol?",
	                   "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort",
	                   "sort-by", "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by",
	                   "sorted?", "special-symbol?", "spit", "split-at", "split-with", "str",
	                   "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers",
	                   "swap!", "swap-vals!", "symbol", "symbol?", "sync", "tagged-literal",
	                   "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test",
	                   "the-ns", "thread-bound?", "time", "to-array", "to-array-2d",
	                   "trampoline", "transduce", "transient", "tree-seq", "true?", "type",
	                   "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char",
	                   "unchecked-dec", "unchecked-dec-int", "unchecked-divide-int",
	                   "unchecked-double", "unchecked-float", "unchecked-inc",
	                   "unchecked-inc-int", "unchecked-int", "unchecked-long",
	                   "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate",
	                   "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short",
	                   "unchecked-subtract", "unchecked-subtract-int", "underive", "unquote",
	                   "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update",
	                   "update-in", "update-proxy", "uri?", "use", "uuid?", "val", "vals",
	                   "var-get", "var-set", "var?", "vary-meta", "vec", "vector", "vector-of",
	                   "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when",
	                   "when-first", "when-let", "when-not", "when-some", "while",
	                   "with-bindings", "with-bindings*", "with-in-str", "with-loading-context",
	                   "with-local-vars", "with-meta", "with-open", "with-out-str",
	                   "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?",
	                   "zipmap"];
	var haveBodyParameter = [
	  "->", "->>", "as->", "binding", "bound-fn", "case", "catch", "comment",
	  "cond", "cond->", "cond->>", "condp", "def", "definterface", "defmethod",
	  "defn", "defmacro", "defprotocol", "defrecord", "defstruct", "deftype",
	  "do", "doseq", "dotimes", "doto", "extend", "extend-protocol",
	  "extend-type", "fn", "for", "future", "if", "if-let", "if-not", "if-some",
	  "let", "letfn", "locking", "loop", "ns", "proxy", "reify", "struct-map",
	  "some->", "some->>", "try", "when", "when-first", "when-let", "when-not",
	  "when-some", "while", "with-bindings", "with-bindings*", "with-in-str",
	  "with-loading-context", "with-local-vars", "with-meta", "with-open",
	  "with-out-str", "with-precision", "with-redefs", "with-redefs-fn"];

	var atom$2 = createLookupMap(atoms$d);
	var specialForm$1 = createLookupMap(specialForms);
	var coreSymbol = createLookupMap(coreSymbols);
	var hasBodyParameter = createLookupMap(haveBodyParameter);
	var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/;
	var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;
	var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;

	// simple-namespace := /^[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*/
	// simple-symbol    := /^(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)/
	// qualified-symbol := (<simple-namespace>(<.><simple-namespace>)*</>)?<simple-symbol>
	var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;

	function base$1(stream, state) {
	  if (stream.eatSpace() || stream.eat(",")) return ["space", null];
	  if (stream.match(numberLiteral)) return [null, "number"];
	  if (stream.match(characterLiteral)) return [null, "string.special"];
	  if (stream.eat(/^"/)) return (state.tokenize = inString$1)(stream, state);
	  if (stream.eat(/^[(\[{]/)) return ["open", "bracket"];
	  if (stream.eat(/^[)\]}]/)) return ["close", "bracket"];
	  if (stream.eat(/^;/)) {stream.skipToEnd(); return ["space", "comment"];}
	  if (stream.eat(/^[#'@^`~]/)) return [null, "meta"];

	  var matches = stream.match(qualifiedSymbol);
	  var symbol = matches && matches[0];

	  if (!symbol) {
	    // advance stream by at least one character so we don't get stuck.
	    stream.next();
	    stream.eatWhile(function (c) {return !is(c, delimiter);});
	    return [null, "error"];
	  }

	  if (symbol === "comment" && state.lastToken === "(")
	    return (state.tokenize = inComment$1)(stream, state);
	  if (is(symbol, atom$2) || symbol.charAt(0) === ":") return ["symbol", "atom"];
	  if (is(symbol, specialForm$1) || is(symbol, coreSymbol)) return ["symbol", "keyword"];
	  if (state.lastToken === "(") return ["symbol", "builtin"]; // other operator

	  return ["symbol", "variable"];
	}

	function inString$1(stream, state) {
	  var escaped = false, next;

	  while (next = stream.next()) {
	    if (next === "\"" && !escaped) {state.tokenize = base$1; break;}
	    escaped = !escaped && next === "\\";
	  }

	  return [null, "string"];
	}

	function inComment$1(stream, state) {
	  var parenthesisCount = 1;
	  var next;

	  while (next = stream.next()) {
	    if (next === ")") parenthesisCount--;
	    if (next === "(") parenthesisCount++;
	    if (parenthesisCount === 0) {
	      stream.backUp(1);
	      state.tokenize = base$1;
	      break;
	    }
	  }

	  return ["space", "comment"];
	}

	function createLookupMap(words) {
	  var obj = {};

	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;

	  return obj;
	}

	function is(value, test) {
	  if (test instanceof RegExp) return test.test(value);
	  if (test instanceof Object) return test.propertyIsEnumerable(value);
	}

	const clojure = {
	  name: "clojure",
	  startState: function () {
	    return {
	      ctx: {prev: null, start: 0, indentTo: 0},
	      lastToken: null,
	      tokenize: base$1
	    };
	  },

	  token: function (stream, state) {
	    if (stream.sol() && (typeof state.ctx.indentTo !== "number"))
	      state.ctx.indentTo = state.ctx.start + 1;

	    var typeStylePair = state.tokenize(stream, state);
	    var type = typeStylePair[0];
	    var style = typeStylePair[1];
	    var current = stream.current();

	    if (type !== "space") {
	      if (state.lastToken === "(" && state.ctx.indentTo === null) {
	        if (type === "symbol" && is(current, hasBodyParameter))
	          state.ctx.indentTo = state.ctx.start + stream.indentUnit;
	        else state.ctx.indentTo = "next";
	      } else if (state.ctx.indentTo === "next") {
	        state.ctx.indentTo = stream.column();
	      }

	      state.lastToken = current;
	    }

	    if (type === "open")
	      state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null};
	    else if (type === "close") state.ctx = state.ctx.prev || state.ctx;

	    return style;
	  },

	  indent: function (state) {
	    var i = state.ctx.indentTo;

	    return (typeof i === "number") ?
	      i :
	      state.ctx.start + 1;
	  },

	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", '"']},
	    commentTokens: {line: ";;"},
	    autocomplete: [].concat(atoms$d, specialForms, coreSymbols)
	  }
	};

	var clojure$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		clojure: clojure
	});

	function mkCSS(parserConfig) {
	  parserConfig = {...defaults, ...parserConfig};
	  var inline = parserConfig.inline;

	  var tokenHooks = parserConfig.tokenHooks,
	      documentTypes = parserConfig.documentTypes || {},
	      mediaTypes = parserConfig.mediaTypes || {},
	      mediaFeatures = parserConfig.mediaFeatures || {},
	      mediaValueKeywords = parserConfig.mediaValueKeywords || {},
	      propertyKeywords = parserConfig.propertyKeywords || {},
	      nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
	      fontProperties = parserConfig.fontProperties || {},
	      counterDescriptors = parserConfig.counterDescriptors || {},
	      colorKeywords = parserConfig.colorKeywords || {},
	      valueKeywords = parserConfig.valueKeywords || {},
	      allowNested = parserConfig.allowNested,
	      lineComment = parserConfig.lineComment,
	      supportsAtComponent = parserConfig.supportsAtComponent === true,
	      highlightNonStandardPropertyKeywords = parserConfig.highlightNonStandardPropertyKeywords !== false;

	  var type, override;
	  function ret(style, tp) { type = tp; return style; }

	  // Tokenizers

	  function tokenBase(stream, state) {
	    var ch = stream.next();
	    if (tokenHooks[ch]) {
	      var result = tokenHooks[ch](stream, state);
	      if (result !== false) return result;
	    }
	    if (ch == "@") {
	      stream.eatWhile(/[\w\\\-]/);
	      return ret("def", stream.current());
	    } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
	      return ret(null, "compare");
	    } else if (ch == "\"" || ch == "'") {
	      state.tokenize = tokenString(ch);
	      return state.tokenize(stream, state);
	    } else if (ch == "#") {
	      stream.eatWhile(/[\w\\\-]/);
	      return ret("atom", "hash");
	    } else if (ch == "!") {
	      stream.match(/^\s*\w*/);
	      return ret("keyword", "important");
	    } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
	      stream.eatWhile(/[\w.%]/);
	      return ret("number", "unit");
	    } else if (ch === "-") {
	      if (/[\d.]/.test(stream.peek())) {
	        stream.eatWhile(/[\w.%]/);
	        return ret("number", "unit");
	      } else if (stream.match(/^-[\w\\\-]*/)) {
	        stream.eatWhile(/[\w\\\-]/);
	        if (stream.match(/^\s*:/, false))
	          return ret("def", "variable-definition");
	        return ret("variableName", "variable");
	      } else if (stream.match(/^\w+-/)) {
	        return ret("meta", "meta");
	      }
	    } else if (/[,+>*\/]/.test(ch)) {
	      return ret(null, "select-op");
	    } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
	      return ret("qualifier", "qualifier");
	    } else if (/[:;{}\[\]\(\)]/.test(ch)) {
	      return ret(null, ch);
	    } else if (stream.match(/^[\w-.]+(?=\()/)) {
	      if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
	        state.tokenize = tokenParenthesized;
	      }
	      return ret("variableName.function", "variable");
	    } else if (/[\w\\\-]/.test(ch)) {
	      stream.eatWhile(/[\w\\\-]/);
	      return ret("property", "word");
	    } else {
	      return ret(null, null);
	    }
	  }

	  function tokenString(quote) {
	    return function(stream, state) {
	      var escaped = false, ch;
	      while ((ch = stream.next()) != null) {
	        if (ch == quote && !escaped) {
	          if (quote == ")") stream.backUp(1);
	          break;
	        }
	        escaped = !escaped && ch == "\\";
	      }
	      if (ch == quote || !escaped && quote != ")") state.tokenize = null;
	      return ret("string", "string");
	    };
	  }

	  function tokenParenthesized(stream, state) {
	    stream.next(); // Must be '('
	    if (!stream.match(/^\s*[\"\')]/, false))
	      state.tokenize = tokenString(")");
	    else
	      state.tokenize = null;
	    return ret(null, "(");
	  }

	  // Context management

	  function Context(type, indent, prev) {
	    this.type = type;
	    this.indent = indent;
	    this.prev = prev;
	  }

	  function pushContext(state, stream, type, indent) {
	    state.context = new Context(type, stream.indentation() + (indent === false ? 0 : stream.indentUnit), state.context);
	    return type;
	  }

	  function popContext(state) {
	    if (state.context.prev)
	      state.context = state.context.prev;
	    return state.context.type;
	  }

	  function pass(type, stream, state) {
	    return states[state.context.type](type, stream, state);
	  }
	  function popAndPass(type, stream, state, n) {
	    for (var i = n || 1; i > 0; i--)
	      state.context = state.context.prev;
	    return pass(type, stream, state);
	  }

	  // Parser

	  function wordAsValue(stream) {
	    var word = stream.current().toLowerCase();
	    if (valueKeywords.hasOwnProperty(word))
	      override = "atom";
	    else if (colorKeywords.hasOwnProperty(word))
	      override = "keyword";
	    else
	      override = "variable";
	  }

	  var states = {};

	  states.top = function(type, stream, state) {
	    if (type == "{") {
	      return pushContext(state, stream, "block");
	    } else if (type == "}" && state.context.prev) {
	      return popContext(state);
	    } else if (supportsAtComponent && /@component/i.test(type)) {
	      return pushContext(state, stream, "atComponentBlock");
	    } else if (/^@(-moz-)?document$/i.test(type)) {
	      return pushContext(state, stream, "documentTypes");
	    } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
	      return pushContext(state, stream, "atBlock");
	    } else if (/^@(font-face|counter-style)/i.test(type)) {
	      state.stateArg = type;
	      return "restricted_atBlock_before";
	    } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
	      return "keyframes";
	    } else if (type && type.charAt(0) == "@") {
	      return pushContext(state, stream, "at");
	    } else if (type == "hash") {
	      override = "builtin";
	    } else if (type == "word") {
	      override = "tag";
	    } else if (type == "variable-definition") {
	      return "maybeprop";
	    } else if (type == "interpolation") {
	      return pushContext(state, stream, "interpolation");
	    } else if (type == ":") {
	      return "pseudo";
	    } else if (allowNested && type == "(") {
	      return pushContext(state, stream, "parens");
	    }
	    return state.context.type;
	  };

	  states.block = function(type, stream, state) {
	    if (type == "word") {
	      var word = stream.current().toLowerCase();
	      if (propertyKeywords.hasOwnProperty(word)) {
	        override = "property";
	        return "maybeprop";
	      } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
	        override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
	        return "maybeprop";
	      } else if (allowNested) {
	        override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
	        return "block";
	      } else {
	        override = "error";
	        return "maybeprop";
	      }
	    } else if (type == "meta") {
	      return "block";
	    } else if (!allowNested && (type == "hash" || type == "qualifier")) {
	      override = "error";
	      return "block";
	    } else {
	      return states.top(type, stream, state);
	    }
	  };

	  states.maybeprop = function(type, stream, state) {
	    if (type == ":") return pushContext(state, stream, "prop");
	    return pass(type, stream, state);
	  };

	  states.prop = function(type, stream, state) {
	    if (type == ";") return popContext(state);
	    if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
	    if (type == "}" || type == "{") return popAndPass(type, stream, state);
	    if (type == "(") return pushContext(state, stream, "parens");

	    if (type == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {
	      override = "error";
	    } else if (type == "word") {
	      wordAsValue(stream);
	    } else if (type == "interpolation") {
	      return pushContext(state, stream, "interpolation");
	    }
	    return "prop";
	  };

	  states.propBlock = function(type, _stream, state) {
	    if (type == "}") return popContext(state);
	    if (type == "word") { override = "property"; return "maybeprop"; }
	    return state.context.type;
	  };

	  states.parens = function(type, stream, state) {
	    if (type == "{" || type == "}") return popAndPass(type, stream, state);
	    if (type == ")") return popContext(state);
	    if (type == "(") return pushContext(state, stream, "parens");
	    if (type == "interpolation") return pushContext(state, stream, "interpolation");
	    if (type == "word") wordAsValue(stream);
	    return "parens";
	  };

	  states.pseudo = function(type, stream, state) {
	    if (type == "meta") return "pseudo";

	    if (type == "word") {
	      override = "variableName.constant";
	      return state.context.type;
	    }
	    return pass(type, stream, state);
	  };

	  states.documentTypes = function(type, stream, state) {
	    if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
	      override = "tag";
	      return state.context.type;
	    } else {
	      return states.atBlock(type, stream, state);
	    }
	  };

	  states.atBlock = function(type, stream, state) {
	    if (type == "(") return pushContext(state, stream, "atBlock_parens");
	    if (type == "}" || type == ";") return popAndPass(type, stream, state);
	    if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");

	    if (type == "interpolation") return pushContext(state, stream, "interpolation");

	    if (type == "word") {
	      var word = stream.current().toLowerCase();
	      if (word == "only" || word == "not" || word == "and" || word == "or")
	        override = "keyword";
	      else if (mediaTypes.hasOwnProperty(word))
	        override = "attribute";
	      else if (mediaFeatures.hasOwnProperty(word))
	        override = "property";
	      else if (mediaValueKeywords.hasOwnProperty(word))
	        override = "keyword";
	      else if (propertyKeywords.hasOwnProperty(word))
	        override = "property";
	      else if (nonStandardPropertyKeywords.hasOwnProperty(word))
	        override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
	      else if (valueKeywords.hasOwnProperty(word))
	        override = "atom";
	      else if (colorKeywords.hasOwnProperty(word))
	        override = "keyword";
	      else
	        override = "error";
	    }
	    return state.context.type;
	  };

	  states.atComponentBlock = function(type, stream, state) {
	    if (type == "}")
	      return popAndPass(type, stream, state);
	    if (type == "{")
	      return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
	    if (type == "word")
	      override = "error";
	    return state.context.type;
	  };

	  states.atBlock_parens = function(type, stream, state) {
	    if (type == ")") return popContext(state);
	    if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
	    return states.atBlock(type, stream, state);
	  };

	  states.restricted_atBlock_before = function(type, stream, state) {
	    if (type == "{")
	      return pushContext(state, stream, "restricted_atBlock");
	    if (type == "word" && state.stateArg == "@counter-style") {
	      override = "variable";
	      return "restricted_atBlock_before";
	    }
	    return pass(type, stream, state);
	  };

	  states.restricted_atBlock = function(type, stream, state) {
	    if (type == "}") {
	      state.stateArg = null;
	      return popContext(state);
	    }
	    if (type == "word") {
	      if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
	          (state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
	        override = "error";
	      else
	        override = "property";
	      return "maybeprop";
	    }
	    return "restricted_atBlock";
	  };

	  states.keyframes = function(type, stream, state) {
	    if (type == "word") { override = "variable"; return "keyframes"; }
	    if (type == "{") return pushContext(state, stream, "top");
	    return pass(type, stream, state);
	  };

	  states.at = function(type, stream, state) {
	    if (type == ";") return popContext(state);
	    if (type == "{" || type == "}") return popAndPass(type, stream, state);
	    if (type == "word") override = "tag";
	    else if (type == "hash") override = "builtin";
	    return "at";
	  };

	  states.interpolation = function(type, stream, state) {
	    if (type == "}") return popContext(state);
	    if (type == "{" || type == ";") return popAndPass(type, stream, state);
	    if (type == "word") override = "variable";
	    else if (type != "variable" && type != "(" && type != ")") override = "error";
	    return "interpolation";
	  };

	  return {
	    name: parserConfig.name,
	    startState: function() {
	      return {tokenize: null,
	              state: inline ? "block" : "top",
	              stateArg: null,
	              context: new Context(inline ? "block" : "top", 0, null)};
	    },

	    token: function(stream, state) {
	      if (!state.tokenize && stream.eatSpace()) return null;
	      var style = (state.tokenize || tokenBase)(stream, state);
	      if (style && typeof style == "object") {
	        type = style[1];
	        style = style[0];
	      }
	      override = style;
	      if (type != "comment")
	        state.state = states[state.state](type, stream, state);
	      return override;
	    },

	    indent: function(state, textAfter, iCx) {
	      var cx = state.context, ch = textAfter && textAfter.charAt(0);
	      var indent = cx.indent;
	      if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
	      if (cx.prev) {
	        if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
	                          cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
	          // Resume indentation from parent context.
	          cx = cx.prev;
	          indent = cx.indent;
	        } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
	                   ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
	          // Dedent relative to current context.
	          indent = Math.max(0, cx.indent - iCx.unit);
	        }
	      }
	      return indent;
	    },

	    languageData: {
	      indentOnInput: /^\s*\}$/,
	      commentTokens: {line: lineComment, block: {open: "/*", close: "*/"}},
	      autocomplete: allWords
	    }
	  };
	}
	function keySet$1(array) {
	  var keys = {};
	  for (var i = 0; i < array.length; ++i) {
	    keys[array[i].toLowerCase()] = true;
	  }
	  return keys;
	}

	var documentTypes_$1 = [
	  "domain", "regexp", "url", "url-prefix"
	], documentTypes$1 = keySet$1(documentTypes_$1);

	var mediaTypes_$1 = [
	  "all", "aural", "braille", "handheld", "print", "projection", "screen",
	  "tty", "tv", "embossed"
	], mediaTypes$1 = keySet$1(mediaTypes_$1);

	var mediaFeatures_$1 = [
	  "width", "min-width", "max-width", "height", "min-height", "max-height",
	  "device-width", "min-device-width", "max-device-width", "device-height",
	  "min-device-height", "max-device-height", "aspect-ratio",
	  "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
	  "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
	  "max-color", "color-index", "min-color-index", "max-color-index",
	  "monochrome", "min-monochrome", "max-monochrome", "resolution",
	  "min-resolution", "max-resolution", "scan", "grid", "orientation",
	  "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
	  "pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
	  "dynamic-range", "video-dynamic-range"
	], mediaFeatures$1 = keySet$1(mediaFeatures_$1);

	var mediaValueKeywords_ = [
	  "landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
	  "interlace", "progressive",
	  "dark", "light",
	  "standard", "high"
	], mediaValueKeywords = keySet$1(mediaValueKeywords_);

	var propertyKeywords_$1 = [
	  "align-content", "align-items", "align-self", "alignment-adjust",
	  "alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
	  "animation-direction", "animation-duration", "animation-fill-mode",
	  "animation-iteration-count", "animation-name", "animation-play-state",
	  "animation-timing-function", "appearance", "azimuth", "backdrop-filter",
	  "backface-visibility", "background", "background-attachment",
	  "background-blend-mode", "background-clip", "background-color",
	  "background-image", "background-origin", "background-position",
	  "background-position-x", "background-position-y", "background-repeat",
	  "background-size", "baseline-shift", "binding", "bleed", "block-size",
	  "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
	  "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
	  "border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
	  "border-collapse", "border-color", "border-image", "border-image-outset",
	  "border-image-repeat", "border-image-slice", "border-image-source",
	  "border-image-width", "border-left", "border-left-color", "border-left-style",
	  "border-left-width", "border-radius", "border-right", "border-right-color",
	  "border-right-style", "border-right-width", "border-spacing", "border-style",
	  "border-top", "border-top-color", "border-top-left-radius",
	  "border-top-right-radius", "border-top-style", "border-top-width",
	  "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
	  "break-after", "break-before", "break-inside", "caption-side", "caret-color",
	  "clear", "clip", "color", "color-profile", "column-count", "column-fill",
	  "column-gap", "column-rule", "column-rule-color", "column-rule-style",
	  "column-rule-width", "column-span", "column-width", "columns", "contain",
	  "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
	  "cue-before", "cursor", "direction", "display", "dominant-baseline",
	  "drop-initial-after-adjust", "drop-initial-after-align",
	  "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
	  "drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
	  "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
	  "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
	  "font", "font-family", "font-feature-settings", "font-kerning",
	  "font-language-override", "font-optical-sizing", "font-size",
	  "font-size-adjust", "font-stretch", "font-style", "font-synthesis",
	  "font-variant", "font-variant-alternates", "font-variant-caps",
	  "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
	  "font-variant-position", "font-variation-settings", "font-weight", "gap",
	  "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
	  "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
	  "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
	  "grid-template", "grid-template-areas", "grid-template-columns",
	  "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
	  "image-orientation", "image-rendering", "image-resolution", "inline-box-align",
	  "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
	  "inset-inline-end", "inset-inline-start", "isolation", "justify-content",
	  "justify-items", "justify-self", "left", "letter-spacing", "line-break",
	  "line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
	  "line-stacking-shift", "line-stacking-strategy", "list-style",
	  "list-style-image", "list-style-position", "list-style-type", "margin",
	  "margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
	  "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
	  "marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
	  "mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
	  "max-block-size", "max-height", "max-inline-size",
	  "max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
	  "mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
	  "nav-up", "object-fit", "object-position", "offset", "offset-anchor",
	  "offset-distance", "offset-path", "offset-position", "offset-rotate",
	  "opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
	  "outline-style", "outline-width", "overflow", "overflow-style",
	  "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
	  "padding-left", "padding-right", "padding-top", "page", "page-break-after",
	  "page-break-before", "page-break-inside", "page-policy", "pause",
	  "pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
	  "pitch-range", "place-content", "place-items", "place-self", "play-during",
	  "position", "presentation-level", "punctuation-trim", "quotes",
	  "region-break-after", "region-break-before", "region-break-inside",
	  "region-fragment", "rendering-intent", "resize", "rest", "rest-after",
	  "rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
	  "row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
	  "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
	  "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
	  "scroll-margin-inline", "scroll-margin-inline-end",
	  "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
	  "scroll-margin-top", "scroll-padding", "scroll-padding-block",
	  "scroll-padding-block-end", "scroll-padding-block-start",
	  "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
	  "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
	  "scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
	  "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
	  "size", "speak", "speak-as", "speak-header", "speak-numeral",
	  "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
	  "table-layout", "target", "target-name", "target-new", "target-position",
	  "text-align", "text-align-last", "text-combine-upright", "text-decoration",
	  "text-decoration-color", "text-decoration-line", "text-decoration-skip",
	  "text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
	  "text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
	  "text-height", "text-indent", "text-justify", "text-orientation",
	  "text-outline", "text-overflow", "text-rendering", "text-shadow",
	  "text-size-adjust", "text-space-collapse", "text-transform",
	  "text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
	  "transform-style", "transition", "transition-delay", "transition-duration",
	  "transition-property", "transition-timing-function", "translate",
	  "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
	  "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
	  "voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
	  "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
	  // SVG-specific
	  "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
	  "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
	  "color-interpolation", "color-interpolation-filters",
	  "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
	  "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
	  "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
	  "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
	  "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
	  "glyph-orientation-vertical", "text-anchor", "writing-mode",
	], propertyKeywords$1 = keySet$1(propertyKeywords_$1);

	var nonStandardPropertyKeywords_$1 = [
	  "accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
	  "border-block-end-color", "border-block-end-style", "border-block-end-width",
	  "border-block-start", "border-block-start-color", "border-block-start-style",
	  "border-block-start-width", "border-block-style", "border-block-width",
	  "border-inline", "border-inline-color", "border-inline-end",
	  "border-inline-end-color", "border-inline-end-style",
	  "border-inline-end-width", "border-inline-start", "border-inline-start-color",
	  "border-inline-start-style", "border-inline-start-width",
	  "border-inline-style", "border-inline-width", "content-visibility", "margin-block",
	  "margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
	  "margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
	  "padding-block-start", "padding-inline", "padding-inline-end",
	  "padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
	  "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
	  "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
	  "scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
	  "searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
	], nonStandardPropertyKeywords$1 = keySet$1(nonStandardPropertyKeywords_$1);

	var fontProperties_$1 = [
	  "font-display", "font-family", "src", "unicode-range", "font-variant",
	  "font-feature-settings", "font-stretch", "font-weight", "font-style"
	], fontProperties$1 = keySet$1(fontProperties_$1);

	var counterDescriptors_ = [
	  "additive-symbols", "fallback", "negative", "pad", "prefix", "range",
	  "speak-as", "suffix", "symbols", "system"
	], counterDescriptors = keySet$1(counterDescriptors_);

	var colorKeywords_$1 = [
	  "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
	  "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
	  "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
	  "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
	  "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
	  "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
	  "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
	  "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
	  "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
	  "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
	  "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
	  "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
	  "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
	  "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
	  "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
	  "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
	  "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
	  "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
	  "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
	  "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
	  "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
	  "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
	  "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
	  "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
	  "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
	  "whitesmoke", "yellow", "yellowgreen"
	], colorKeywords$1 = keySet$1(colorKeywords_$1);

	var valueKeywords_$1 = [
	  "above", "absolute", "activeborder", "additive", "activecaption", "afar",
	  "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
	  "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
	  "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
	  "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
	  "bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
	  "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button",
	  "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
	  "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
	  "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
	  "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
	  "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
	  "compact", "condensed", "conic-gradient", "contain", "content", "contents",
	  "content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
	  "cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
	  "decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
	  "destination-in", "destination-out", "destination-over", "devanagari", "difference",
	  "disc", "discard", "disclosure-closed", "disclosure-open", "document",
	  "dot-dash", "dot-dot-dash",
	  "dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
	  "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
	  "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
	  "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
	  "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
	  "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
	  "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
	  "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
	  "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
	  "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
	  "forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
	  "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
	  "help", "hidden", "hide", "higher", "highlight", "highlighttext",
	  "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
	  "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
	  "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
	  "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
	  "italic", "japanese-formal", "japanese-informal", "justify", "kannada",
	  "katakana", "katakana-iroha", "keep-all", "khmer",
	  "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
	  "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
	  "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
	  "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
	  "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
	  "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
	  "media-play-button", "media-slider", "media-sliderthumb",
	  "media-volume-slider", "media-volume-sliderthumb", "medium",
	  "menu", "menulist", "menulist-button",
	  "menutext", "message-box", "middle", "min-intrinsic",
	  "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
	  "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
	  "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
	  "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
	  "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
	  "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
	  "painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
	  "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
	  "progress", "push-button", "radial-gradient", "radio", "read-only",
	  "read-write", "read-write-plaintext-only", "rectangle", "region",
	  "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
	  "repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
	  "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
	  "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
	  "s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
	  "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
	  "searchfield-cancel-button", "searchfield-decoration",
	  "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
	  "semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
	  "simp-chinese-formal", "simp-chinese-informal", "single",
	  "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
	  "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
	  "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
	  "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
	  "square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
	  "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
	  "table-caption", "table-cell", "table-column", "table-column-group",
	  "table-footer-group", "table-header-group", "table-row", "table-row-group",
	  "tamil",
	  "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
	  "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
	  "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
	  "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
	  "trad-chinese-formal", "trad-chinese-informal", "transform",
	  "translate", "translate3d", "translateX", "translateY", "translateZ",
	  "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
	  "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
	  "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
	  "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
	  "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
	  "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
	  "xx-large", "xx-small"
	], valueKeywords$1 = keySet$1(valueKeywords_$1);

	var allWords = documentTypes_$1.concat(mediaTypes_$1).concat(mediaFeatures_$1).concat(mediaValueKeywords_)
	    .concat(propertyKeywords_$1).concat(nonStandardPropertyKeywords_$1).concat(colorKeywords_$1)
	    .concat(valueKeywords_$1);

	const keywords$E = {properties: propertyKeywords_$1, colors: colorKeywords_$1,
	                         fonts: fontProperties_$1, values: valueKeywords_$1, all: allWords};

	const defaults = {
	  documentTypes: documentTypes$1,
	  mediaTypes: mediaTypes$1,
	  mediaFeatures: mediaFeatures$1,
	  mediaValueKeywords: mediaValueKeywords,
	  propertyKeywords: propertyKeywords$1,
	  nonStandardPropertyKeywords: nonStandardPropertyKeywords$1,
	  fontProperties: fontProperties$1,
	  counterDescriptors: counterDescriptors,
	  colorKeywords: colorKeywords$1,
	  valueKeywords: valueKeywords$1,
	  tokenHooks: {
	    "/": function(stream, state) {
	      if (!stream.eat("*")) return false;
	      state.tokenize = tokenCComment$3;
	      return tokenCComment$3(stream, state);
	    }
	  }
	};

	const css = mkCSS({name: "css"});

	function tokenCComment$3(stream, state) {
	  var maybeEnd = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (maybeEnd && ch == "/") {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return ["comment", "comment"];
	}

	const sCSS = mkCSS({
	  name: "scss",
	  mediaTypes: mediaTypes$1,
	  mediaFeatures: mediaFeatures$1,
	  mediaValueKeywords: mediaValueKeywords,
	  propertyKeywords: propertyKeywords$1,
	  nonStandardPropertyKeywords: nonStandardPropertyKeywords$1,
	  colorKeywords: colorKeywords$1,
	  valueKeywords: valueKeywords$1,
	  fontProperties: fontProperties$1,
	  allowNested: true,
	  lineComment: "//",
	  tokenHooks: {
	    "/": function(stream, state) {
	      if (stream.eat("/")) {
	        stream.skipToEnd();
	        return ["comment", "comment"];
	      } else if (stream.eat("*")) {
	        state.tokenize = tokenCComment$3;
	        return tokenCComment$3(stream, state);
	      } else {
	        return ["operator", "operator"];
	      }
	    },
	    ":": function(stream) {
	      if (stream.match(/^\s*\{/, false))
	        return [null, null]
	      return false;
	    },
	    "$": function(stream) {
	      stream.match(/^[\w-]+/);
	      if (stream.match(/^\s*:/, false))
	        return ["def", "variable-definition"];
	      return ["variableName.special", "variable"];
	    },
	    "#": function(stream) {
	      if (!stream.eat("{")) return false;
	      return [null, "interpolation"];
	    }
	  }
	});

	const less = mkCSS({
	  name: "less",
	  mediaTypes: mediaTypes$1,
	  mediaFeatures: mediaFeatures$1,
	  mediaValueKeywords: mediaValueKeywords,
	  propertyKeywords: propertyKeywords$1,
	  nonStandardPropertyKeywords: nonStandardPropertyKeywords$1,
	  colorKeywords: colorKeywords$1,
	  valueKeywords: valueKeywords$1,
	  fontProperties: fontProperties$1,
	  allowNested: true,
	  lineComment: "//",
	  tokenHooks: {
	    "/": function(stream, state) {
	      if (stream.eat("/")) {
	        stream.skipToEnd();
	        return ["comment", "comment"];
	      } else if (stream.eat("*")) {
	        state.tokenize = tokenCComment$3;
	        return tokenCComment$3(stream, state);
	      } else {
	        return ["operator", "operator"];
	      }
	    },
	    "@": function(stream) {
	      if (stream.eat("{")) return [null, "interpolation"];
	      if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
	      stream.eatWhile(/[\w\\\-]/);
	      if (stream.match(/^\s*:/, false))
	        return ["def", "variable-definition"];
	      return ["variableName", "variable"];
	    },
	    "&": function() {
	      return ["atom", "atom"];
	    }
	  }
	});

	const gss = mkCSS({
	  name: "gss",
	  documentTypes: documentTypes$1,
	  mediaTypes: mediaTypes$1,
	  mediaFeatures: mediaFeatures$1,
	  propertyKeywords: propertyKeywords$1,
	  nonStandardPropertyKeywords: nonStandardPropertyKeywords$1,
	  fontProperties: fontProperties$1,
	  counterDescriptors: counterDescriptors,
	  colorKeywords: colorKeywords$1,
	  valueKeywords: valueKeywords$1,
	  supportsAtComponent: true,
	  tokenHooks: {
	    "/": function(stream, state) {
	      if (!stream.eat("*")) return false;
	      state.tokenize = tokenCComment$3;
	      return tokenCComment$3(stream, state);
	    }
	  }
	});

	var css$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		css: css,
		gss: gss,
		keywords: keywords$E,
		less: less,
		mkCSS: mkCSS,
		sCSS: sCSS
	});

	var variable_regex$1 = /({)?[a-zA-Z0-9_]+(})?/;

	function tokenString$r(stream, state) {
	  var current, prev, found_var = false;
	  while (!stream.eol() && (current = stream.next()) != state.pending) {
	    if (current === '$' && prev != '\\' && state.pending == '"') {
	      found_var = true;
	      break;
	    }
	    prev = current;
	  }
	  if (found_var) {
	    stream.backUp(1);
	  }
	  if (current == state.pending) {
	    state.continueString = false;
	  } else {
	    state.continueString = true;
	  }
	  return "string";
	}

	function tokenize$4(stream, state) {
	  var ch = stream.next();

	  // Have we found a variable?
	  if (ch === '$') {
	    if (stream.match(variable_regex$1)) {
	      return 'variableName.special';
	    }
	    return 'variable';
	  }
	  // Should we still be looking for the end of a string?
	  if (state.continueString) {
	    // If so, go through the loop again
	    stream.backUp(1);
	    return tokenString$r(stream, state);
	  }
	  // Do we just have a function on our hands?
	  // In 'cmake_minimum_required (VERSION 2.8.8)', 'cmake_minimum_required' is matched
	  if (stream.match(/(\s+)?\w+\(/) || stream.match(/(\s+)?\w+\ \(/)) {
	    stream.backUp(1);
	    return 'def';
	  }
	  if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  }
	  // Have we found a string?
	  if (ch == "'" || ch == '"') {
	    // Store the type (single or double)
	    state.pending = ch;
	    // Perform the looping function to find the end
	    return tokenString$r(stream, state);
	  }
	  if (ch == '(' || ch == ')') {
	    return 'bracket';
	  }
	  if (ch.match(/[0-9]/)) {
	    return 'number';
	  }
	  stream.eatWhile(/[\w-]/);
	  return null;
	}
	const cmake = {
	  name: "cmake",
	  startState: function () {
	    var state = {};
	    state.inDefinition = false;
	    state.inInclude = false;
	    state.continueString = false;
	    state.pending = false;
	    return state;
	  },
	  token: function (stream, state) {
	    if (stream.eatSpace()) return null;
	    return tokenize$4(stream, state);
	  }
	};

	var cmake$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cmake: cmake
	});

	var ERRORCLASS$1 = "error";

	function wordRegexp$e(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}

	var operators$6 = /^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/;
	var delimiters$1 = /^(?:[()\[\]{},:`=;]|\.\.?\.?)/;
	var identifiers$8 = /^[_A-Za-z$][_A-Za-z$0-9]*/;
	var atProp = /^@[_A-Za-z$][_A-Za-z$0-9]*/;

	var wordOperators$3 = wordRegexp$e(["and", "or", "not",
	                                "is", "isnt", "in",
	                                "instanceof", "typeof"]);
	var indentKeywords$1 = ["for", "while", "loop", "if", "unless", "else",
	                      "switch", "try", "catch", "finally", "class"];
	var commonKeywords$5 = ["break", "by", "continue", "debugger", "delete",
	                      "do", "in", "of", "new", "return", "then",
	                      "this", "@", "throw", "when", "until", "extends"];

	var keywords$D = wordRegexp$e(indentKeywords$1.concat(commonKeywords$5));

	indentKeywords$1 = wordRegexp$e(indentKeywords$1);


	var stringPrefixes$2 = /^('{3}|\"{3}|['\"])/;
	var regexPrefixes = /^(\/{3}|\/)/;
	var commonConstants = ["Infinity", "NaN", "undefined", "null", "true", "false", "on", "off", "yes", "no"];
	var constants = wordRegexp$e(commonConstants);

	// Tokenizers
	function tokenBase$J(stream, state) {
	  // Handle scope changes
	  if (stream.sol()) {
	    if (state.scope.align === null) state.scope.align = false;
	    var scopeOffset = state.scope.offset;
	    if (stream.eatSpace()) {
	      var lineOffset = stream.indentation();
	      if (lineOffset > scopeOffset && state.scope.type == "coffee") {
	        return "indent";
	      } else if (lineOffset < scopeOffset) {
	        return "dedent";
	      }
	      return null;
	    } else {
	      if (scopeOffset > 0) {
	        dedent$1(stream, state);
	      }
	    }
	  }
	  if (stream.eatSpace()) {
	    return null;
	  }

	  var ch = stream.peek();

	  // Handle docco title comment (single line)
	  if (stream.match("####")) {
	    stream.skipToEnd();
	    return "comment";
	  }

	  // Handle multi line comments
	  if (stream.match("###")) {
	    state.tokenize = longComment;
	    return state.tokenize(stream, state);
	  }

	  // Single line comment
	  if (ch === "#") {
	    stream.skipToEnd();
	    return "comment";
	  }

	  // Handle number literals
	  if (stream.match(/^-?[0-9\.]/, false)) {
	    var floatLiteral = false;
	    // Floats
	    if (stream.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)) {
	      floatLiteral = true;
	    }
	    if (stream.match(/^-?\d+\.\d*/)) {
	      floatLiteral = true;
	    }
	    if (stream.match(/^-?\.\d+/)) {
	      floatLiteral = true;
	    }

	    if (floatLiteral) {
	      // prevent from getting extra . on 1..
	      if (stream.peek() == "."){
	        stream.backUp(1);
	      }
	      return "number";
	    }
	    // Integers
	    var intLiteral = false;
	    // Hex
	    if (stream.match(/^-?0x[0-9a-f]+/i)) {
	      intLiteral = true;
	    }
	    // Decimal
	    if (stream.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)) {
	      intLiteral = true;
	    }
	    // Zero by itself with no other piece of number.
	    if (stream.match(/^-?0(?![\dx])/i)) {
	      intLiteral = true;
	    }
	    if (intLiteral) {
	      return "number";
	    }
	  }

	  // Handle strings
	  if (stream.match(stringPrefixes$2)) {
	    state.tokenize = tokenFactory(stream.current(), false, "string");
	    return state.tokenize(stream, state);
	  }
	  // Handle regex literals
	  if (stream.match(regexPrefixes)) {
	    if (stream.current() != "/" || stream.match(/^.*\//, false)) { // prevent highlight of division
	      state.tokenize = tokenFactory(stream.current(), true, "string.special");
	      return state.tokenize(stream, state);
	    } else {
	      stream.backUp(1);
	    }
	  }



	  // Handle operators and delimiters
	  if (stream.match(operators$6) || stream.match(wordOperators$3)) {
	    return "operator";
	  }
	  if (stream.match(delimiters$1)) {
	    return "punctuation";
	  }

	  if (stream.match(constants)) {
	    return "atom";
	  }

	  if (stream.match(atProp) || state.prop && stream.match(identifiers$8)) {
	    return "property";
	  }

	  if (stream.match(keywords$D)) {
	    return "keyword";
	  }

	  if (stream.match(identifiers$8)) {
	    return "variable";
	  }

	  // Handle non-detected items
	  stream.next();
	  return ERRORCLASS$1;
	}

	function tokenFactory(delimiter, singleline, outclass) {
	  return function(stream, state) {
	    while (!stream.eol()) {
	      stream.eatWhile(/[^'"\/\\]/);
	      if (stream.eat("\\")) {
	        stream.next();
	        if (singleline && stream.eol()) {
	          return outclass;
	        }
	      } else if (stream.match(delimiter)) {
	        state.tokenize = tokenBase$J;
	        return outclass;
	      } else {
	        stream.eat(/['"\/]/);
	      }
	    }
	    if (singleline) {
	      state.tokenize = tokenBase$J;
	    }
	    return outclass;
	  };
	}

	function longComment(stream, state) {
	  while (!stream.eol()) {
	    stream.eatWhile(/[^#]/);
	    if (stream.match("###")) {
	      state.tokenize = tokenBase$J;
	      break;
	    }
	    stream.eatWhile("#");
	  }
	  return "comment";
	}

	function indent$1(stream, state, type = "coffee") {
	  var offset = 0, align = false, alignOffset = null;
	  for (var scope = state.scope; scope; scope = scope.prev) {
	    if (scope.type === "coffee" || scope.type == "}") {
	      offset = scope.offset + stream.indentUnit;
	      break;
	    }
	  }
	  if (type !== "coffee") {
	    align = null;
	    alignOffset = stream.column() + stream.current().length;
	  } else if (state.scope.align) {
	    state.scope.align = false;
	  }
	  state.scope = {
	    offset: offset,
	    type: type,
	    prev: state.scope,
	    align: align,
	    alignOffset: alignOffset
	  };
	}

	function dedent$1(stream, state) {
	  if (!state.scope.prev) return;
	  if (state.scope.type === "coffee") {
	    var _indent = stream.indentation();
	    var matched = false;
	    for (var scope = state.scope; scope; scope = scope.prev) {
	      if (_indent === scope.offset) {
	        matched = true;
	        break;
	      }
	    }
	    if (!matched) {
	      return true;
	    }
	    while (state.scope.prev && state.scope.offset !== _indent) {
	      state.scope = state.scope.prev;
	    }
	    return false;
	  } else {
	    state.scope = state.scope.prev;
	    return false;
	  }
	}

	function tokenLexer$1(stream, state) {
	  var style = state.tokenize(stream, state);
	  var current = stream.current();

	  // Handle scope changes.
	  if (current === "return") {
	    state.dedent = true;
	  }
	  if (((current === "->" || current === "=>") && stream.eol())
	      || style === "indent") {
	    indent$1(stream, state);
	  }
	  var delimiter_index = "[({".indexOf(current);
	  if (delimiter_index !== -1) {
	    indent$1(stream, state, "])}".slice(delimiter_index, delimiter_index+1));
	  }
	  if (indentKeywords$1.exec(current)){
	    indent$1(stream, state);
	  }
	  if (current == "then"){
	    dedent$1(stream, state);
	  }


	  if (style === "dedent") {
	    if (dedent$1(stream, state)) {
	      return ERRORCLASS$1;
	    }
	  }
	  delimiter_index = "])}".indexOf(current);
	  if (delimiter_index !== -1) {
	    while (state.scope.type == "coffee" && state.scope.prev)
	      state.scope = state.scope.prev;
	    if (state.scope.type == current)
	      state.scope = state.scope.prev;
	  }
	  if (state.dedent && stream.eol()) {
	    if (state.scope.type == "coffee" && state.scope.prev)
	      state.scope = state.scope.prev;
	    state.dedent = false;
	  }

	  return style == "indent" || style == "dedent" ? null : style;
	}

	const coffeeScript = {
	  name: "coffeescript",
	  startState: function() {
	    return {
	      tokenize: tokenBase$J,
	      scope: {offset: 0, type:"coffee", prev: null, align: false},
	      prop: false,
	      dedent: 0
	    };
	  },

	  token: function(stream, state) {
	    var fillAlign = state.scope.align === null && state.scope;
	    if (fillAlign && stream.sol()) fillAlign.align = false;

	    var style = tokenLexer$1(stream, state);
	    if (style && style != "comment") {
	      if (fillAlign) fillAlign.align = true;
	      state.prop = style == "punctuation" && stream.current() == ".";
	    }

	    return style;
	  },

	  indent: function(state, text) {
	    if (state.tokenize != tokenBase$J) return 0;
	    var scope = state.scope;
	    var closer = text && "])}".indexOf(text.charAt(0)) > -1;
	    if (closer) while (scope.type == "coffee" && scope.prev) scope = scope.prev;
	    var closes = closer && scope.type === text.charAt(0);
	    if (scope.align)
	      return scope.alignOffset - (closes ? 1 : 0);
	    else
	      return (closes ? scope.prev : scope).offset;
	  },

	  languageData: {
	    commentTokens: {line: "#"}
	  }
	};

	var coffeescript = /*#__PURE__*/Object.freeze({
		__proto__: null,
		coffeeScript: coffeeScript
	});

	var specialForm = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;
	var assumeBody = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;
	var numLiteral = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;
	var symbol$2 = /[^\s'`,@()\[\]";]/;
	var type$5;

	function readSym(stream) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch == "\\") stream.next();
	    else if (!symbol$2.test(ch)) { stream.backUp(1); break; }
	  }
	  return stream.current();
	}

	function base(stream, state) {
	  if (stream.eatSpace()) {type$5 = "ws"; return null;}
	  if (stream.match(numLiteral)) return "number";
	  var ch = stream.next();
	  if (ch == "\\") ch = stream.next();

	  if (ch == '"') return (state.tokenize = inString)(stream, state);
	  else if (ch == "(") { type$5 = "open"; return "bracket"; }
	  else if (ch == ")" || ch == "]") { type$5 = "close"; return "bracket"; }
	  else if (ch == ";") { stream.skipToEnd(); type$5 = "ws"; return "comment"; }
	  else if (/['`,@]/.test(ch)) return null;
	  else if (ch == "|") {
	    if (stream.skipTo("|")) { stream.next(); return "variableName"; }
	    else { stream.skipToEnd(); return "error"; }
	  } else if (ch == "#") {
	    var ch = stream.next();
	    if (ch == "(") { type$5 = "open"; return "bracket"; }
	    else if (/[+\-=\.']/.test(ch)) return null;
	    else if (/\d/.test(ch) && stream.match(/^\d*#/)) return null;
	    else if (ch == "|") return (state.tokenize = inComment)(stream, state);
	    else if (ch == ":") { readSym(stream); return "meta"; }
	    else if (ch == "\\") { stream.next(); readSym(stream); return "string.special" }
	    else return "error";
	  } else {
	    var name = readSym(stream);
	    if (name == ".") return null;
	    type$5 = "symbol";
	    if (name == "nil" || name == "t" || name.charAt(0) == ":") return "atom";
	    if (state.lastType == "open" && (specialForm.test(name) || assumeBody.test(name))) return "keyword";
	    if (name.charAt(0) == "&") return "variableName.special";
	    return "variableName";
	  }
	}

	function inString(stream, state) {
	  var escaped = false, next;
	  while (next = stream.next()) {
	    if (next == '"' && !escaped) { state.tokenize = base; break; }
	    escaped = !escaped && next == "\\";
	  }
	  return "string";
	}

	function inComment(stream, state) {
	  var next, last;
	  while (next = stream.next()) {
	    if (next == "#" && last == "|") { state.tokenize = base; break; }
	    last = next;
	  }
	  type$5 = "ws";
	  return "comment";
	}

	const commonLisp = {
	  name: "commonlisp",
	  startState: function () {
	    return {ctx: {prev: null, start: 0, indentTo: 0}, lastType: null, tokenize: base};
	  },

	  token: function (stream, state) {
	    if (stream.sol() && typeof state.ctx.indentTo != "number")
	      state.ctx.indentTo = state.ctx.start + 1;

	    type$5 = null;
	    var style = state.tokenize(stream, state);
	    if (type$5 != "ws") {
	      if (state.ctx.indentTo == null) {
	        if (type$5 == "symbol" && assumeBody.test(stream.current()))
	          state.ctx.indentTo = state.ctx.start + stream.indentUnit;
	        else
	          state.ctx.indentTo = "next";
	      } else if (state.ctx.indentTo == "next") {
	        state.ctx.indentTo = stream.column();
	      }
	      state.lastType = type$5;
	    }
	    if (type$5 == "open") state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null};
	    else if (type$5 == "close") state.ctx = state.ctx.prev || state.ctx;
	    return style;
	  },

	  indent: function (state) {
	    var i = state.ctx.indentTo;
	    return typeof i == "number" ? i : state.ctx.start + 1;
	  },

	  languageData: {
	    commentTokens: {line: ";;", block: {open: "#|", close: "|#"}},
	    closeBrackets: {brackets: ["(", "[", "{", '"']}
	  }
	};

	var commonlisp = /*#__PURE__*/Object.freeze({
		__proto__: null,
		commonLisp: commonLisp
	});

	var wordRegexp$d = function(words) {
	  return new RegExp("^(?:" + words.join("|") + ")$", "i");
	};

	var tokenBase$I = function(stream/*, state*/) {
	  curPunc$c = null;
	  var ch = stream.next();
	  if (ch ==='"') {
	    stream.match(/^.*?"/);
	    return "string";
	  }
	  if (ch === "'") {
	    stream.match(/^.*?'/);
	    return "string";
	  }
	  if (/[{}\(\),\.;\[\]]/.test(ch)) {
	    curPunc$c = ch;
	    return "punctuation";
	  } else if (ch === "/" && stream.eat("/")) {
	    stream.skipToEnd();
	    return "comment";
	  } else if (operatorChars$2.test(ch)) {
	    stream.eatWhile(operatorChars$2);
	    return null;
	  } else {
	    stream.eatWhile(/[_\w\d]/);
	    if (stream.eat(":")) {
	      stream.eatWhile(/[\w\d_\-]/);
	      return "atom";
	    }
	    var word = stream.current();
	    if (funcs.test(word)) return "builtin";
	    if (preds.test(word)) return "def";
	    if (keywords$C.test(word) || systemKeywords.test(word)) return "keyword";
	    return "variable";
	  }
	};
	var pushContext$e = function(state, type, col) {
	  return state.context = {
	    prev: state.context,
	    indent: state.indent,
	    col: col,
	    type: type
	  };
	};
	var popContext$e = function(state) {
	  state.indent = state.context.indent;
	  return state.context = state.context.prev;
	};
	var curPunc$c;
	var funcs = wordRegexp$d(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]);
	var preds = wordRegexp$d(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]);
	var keywords$C = wordRegexp$d(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]);
	var systemKeywords = wordRegexp$d(["access", "active", "assign", "all", "alter", "as", "catalog", "change", "copy", "create", "constraint", "constraints", "current", "database", "databases", "dbms", "default", "deny", "drop", "element", "elements", "exists", "from", "grant", "graph", "graphs", "if", "index", "indexes", "label", "labels", "management", "match", "name", "names", "new", "node", "nodes", "not", "of", "on", "or", "password", "populated", "privileges", "property", "read", "relationship", "relationships", "remove", "replace", "required", "revoke", "role", "roles", "set", "show", "start", "status", "stop", "suspended", "to", "traverse", "type", "types", "user", "users", "with", "write"]);
	var operatorChars$2 = /[*+\-<>=&|~%^]/;

	const cypher = {
	  name: "cypher",
	  startState: function() {
	    return {
	      tokenize: tokenBase$I,
	      context: null,
	      indent: 0,
	      col: 0
	    };
	  },
	  token: function(stream, state) {
	    if (stream.sol()) {
	      if (state.context && (state.context.align == null)) {
	        state.context.align = false;
	      }
	      state.indent = stream.indentation();
	    }
	    if (stream.eatSpace()) {
	      return null;
	    }
	    var style = state.tokenize(stream, state);
	    if (style !== "comment" && state.context && (state.context.align == null) && state.context.type !== "pattern") {
	      state.context.align = true;
	    }
	    if (curPunc$c === "(") {
	      pushContext$e(state, ")", stream.column());
	    } else if (curPunc$c === "[") {
	      pushContext$e(state, "]", stream.column());
	    } else if (curPunc$c === "{") {
	      pushContext$e(state, "}", stream.column());
	    } else if (/[\]\}\)]/.test(curPunc$c)) {
	      while (state.context && state.context.type === "pattern") {
	        popContext$e(state);
	      }
	      if (state.context && curPunc$c === state.context.type) {
	        popContext$e(state);
	      }
	    } else if (curPunc$c === "." && state.context && state.context.type === "pattern") {
	      popContext$e(state);
	    } else if (/atom|string|variable/.test(style) && state.context) {
	      if (/[\}\]]/.test(state.context.type)) {
	        pushContext$e(state, "pattern", stream.column());
	      } else if (state.context.type === "pattern" && !state.context.align) {
	        state.context.align = true;
	        state.context.col = stream.column();
	      }
	    }
	    return style;
	  },
	  indent: function(state, textAfter, cx) {
	    var firstChar = textAfter && textAfter.charAt(0);
	    var context = state.context;
	    if (/[\]\}]/.test(firstChar)) {
	      while (context && context.type === "pattern") {
	        context = context.prev;
	      }
	    }
	    var closing = context && firstChar === context.type;
	    if (!context) return 0;
	    if (context.type === "keywords") return null
	    if (context.align) return context.col + (closing ? 0 : 1);
	    return context.indent + (closing ? 0 : cx.unit);
	  }
	};

	var cypher$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cypher: cypher
	});

	function wordRegexp$c(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}

	var wordOperators$2 = wordRegexp$c(["and", "or", "not", "is"]);
	var commonKeywords$4 = ["as", "assert", "break", "class", "continue",
	                      "def", "del", "elif", "else", "except", "finally",
	                      "for", "from", "global", "if", "import",
	                      "lambda", "pass", "raise", "return",
	                      "try", "while", "with", "yield", "in", "False", "True"];
	var commonBuiltins$1 = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr",
	                      "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod",
	                      "enumerate", "eval", "filter", "float", "format", "frozenset",
	                      "getattr", "globals", "hasattr", "hash", "help", "hex", "id",
	                      "input", "int", "isinstance", "issubclass", "iter", "len",
	                      "list", "locals", "map", "max", "memoryview", "min", "next",
	                      "object", "oct", "open", "ord", "pow", "property", "range",
	                      "repr", "reversed", "round", "set", "setattr", "slice",
	                      "sorted", "staticmethod", "str", "sum", "super", "tuple",
	                      "type", "vars", "zip", "__import__", "NotImplemented",
	                      "Ellipsis", "__debug__"];

	function top(state) {
	  return state.scopes[state.scopes.length - 1];
	}

	function mkPython(parserConf) {
	  var ERRORCLASS = "error";

	  var delimiters = parserConf.delimiters || parserConf.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.\\]/;
	  //               (Backwards-compatibility with old, cumbersome config system)
	  var operators = [parserConf.singleOperators, parserConf.doubleOperators, parserConf.doubleDelimiters, parserConf.tripleDelimiters,
	                   parserConf.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/];
	  for (var i = 0; i < operators.length; i++) if (!operators[i]) operators.splice(i--, 1);

	  var hangingIndent = parserConf.hangingIndent;

	  var myKeywords = commonKeywords$4, myBuiltins = commonBuiltins$1;
	  if (parserConf.extra_keywords != undefined)
	    myKeywords = myKeywords.concat(parserConf.extra_keywords);

	  if (parserConf.extra_builtins != undefined)
	    myBuiltins = myBuiltins.concat(parserConf.extra_builtins);

	  var py3 = !(parserConf.version && Number(parserConf.version) < 3);
	  if (py3) {
	    // since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator
	    var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
	    myKeywords = myKeywords.concat(["nonlocal", "None", "aiter", "anext", "async", "await", "breakpoint", "match", "case"]);
	    myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]);
	    var stringPrefixes = new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i");
	  } else {
	    var identifiers = parserConf.identifiers|| /^[_A-Za-z][_A-Za-z0-9]*/;
	    myKeywords = myKeywords.concat(["exec", "print"]);
	    myBuiltins = myBuiltins.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile",
	                                    "file", "intern", "long", "raw_input", "reduce", "reload",
	                                    "unichr", "unicode", "xrange", "None"]);
	    var stringPrefixes = new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i");
	  }
	  var keywords = wordRegexp$c(myKeywords);
	  var builtins = wordRegexp$c(myBuiltins);

	  // tokenizers
	  function tokenBase(stream, state) {
	    var sol = stream.sol() && state.lastToken != "\\";
	    if (sol) state.indent = stream.indentation();
	    // Handle scope changes
	    if (sol && top(state).type == "py") {
	      var scopeOffset = top(state).offset;
	      if (stream.eatSpace()) {
	        var lineOffset = stream.indentation();
	        if (lineOffset > scopeOffset)
	          pushPyScope(stream, state);
	        else if (lineOffset < scopeOffset && dedent(stream, state) && stream.peek() != "#")
	          state.errorToken = true;
	        return null;
	      } else {
	        var style = tokenBaseInner(stream, state);
	        if (scopeOffset > 0 && dedent(stream, state))
	          style += " " + ERRORCLASS;
	        return style;
	      }
	    }
	    return tokenBaseInner(stream, state);
	  }

	  function tokenBaseInner(stream, state, inFormat) {
	    if (stream.eatSpace()) return null;

	    // Handle Comments
	    if (!inFormat && stream.match(/^#.*/)) return "comment";

	    // Handle Number Literals
	    if (stream.match(/^[0-9\.]/, false)) {
	      var floatLiteral = false;
	      // Floats
	      if (stream.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; }
	      if (stream.match(/^[\d_]+\.\d*/)) { floatLiteral = true; }
	      if (stream.match(/^\.\d+/)) { floatLiteral = true; }
	      if (floatLiteral) {
	        // Float literals may be "imaginary"
	        stream.eat(/J/i);
	        return "number";
	      }
	      // Integers
	      var intLiteral = false;
	      // Hex
	      if (stream.match(/^0x[0-9a-f_]+/i)) intLiteral = true;
	      // Binary
	      if (stream.match(/^0b[01_]+/i)) intLiteral = true;
	      // Octal
	      if (stream.match(/^0o[0-7_]+/i)) intLiteral = true;
	      // Decimal
	      if (stream.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)) {
	        // Decimal literals may be "imaginary"
	        stream.eat(/J/i);
	        // TODO - Can you have imaginary longs?
	        intLiteral = true;
	      }
	      // Zero by itself with no other piece of number.
	      if (stream.match(/^0(?![\dx])/i)) intLiteral = true;
	      if (intLiteral) {
	        // Integer literals may be "long"
	        stream.eat(/L/i);
	        return "number";
	      }
	    }

	    // Handle Strings
	    if (stream.match(stringPrefixes)) {
	      var isFmtString = stream.current().toLowerCase().indexOf('f') !== -1;
	      if (!isFmtString) {
	        state.tokenize = tokenStringFactory(stream.current(), state.tokenize);
	        return state.tokenize(stream, state);
	      } else {
	        state.tokenize = formatStringFactory(stream.current(), state.tokenize);
	        return state.tokenize(stream, state);
	      }
	    }

	    for (var i = 0; i < operators.length; i++)
	      if (stream.match(operators[i])) return "operator"

	    if (stream.match(delimiters)) return "punctuation";

	    if (state.lastToken == "." && stream.match(identifiers))
	      return "property";

	    if (stream.match(keywords) || stream.match(wordOperators$2))
	      return "keyword";

	    if (stream.match(builtins))
	      return "builtin";

	    if (stream.match(/^(self|cls)\b/))
	      return "self";

	    if (stream.match(identifiers)) {
	      if (state.lastToken == "def" || state.lastToken == "class")
	        return "def";
	      return "variable";
	    }

	    // Handle non-detected items
	    stream.next();
	    return inFormat ? null :ERRORCLASS;
	  }

	  function formatStringFactory(delimiter, tokenOuter) {
	    while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
	      delimiter = delimiter.substr(1);

	    var singleline = delimiter.length == 1;
	    var OUTCLASS = "string";

	    function tokenNestedExpr(depth) {
	      return function(stream, state) {
	        var inner = tokenBaseInner(stream, state, true);
	        if (inner == "punctuation") {
	          if (stream.current() == "{") {
	            state.tokenize = tokenNestedExpr(depth + 1);
	          } else if (stream.current() == "}") {
	            if (depth > 1) state.tokenize = tokenNestedExpr(depth - 1);
	            else state.tokenize = tokenString;
	          }
	        }
	        return inner
	      }
	    }

	    function tokenString(stream, state) {
	      while (!stream.eol()) {
	        stream.eatWhile(/[^'"\{\}\\]/);
	        if (stream.eat("\\")) {
	          stream.next();
	          if (singleline && stream.eol())
	            return OUTCLASS;
	        } else if (stream.match(delimiter)) {
	          state.tokenize = tokenOuter;
	          return OUTCLASS;
	        } else if (stream.match('{{')) {
	          // ignore {{ in f-str
	          return OUTCLASS;
	        } else if (stream.match('{', false)) {
	          // switch to nested mode
	          state.tokenize = tokenNestedExpr(0);
	          if (stream.current()) return OUTCLASS;
	          else return state.tokenize(stream, state)
	        } else if (stream.match('}}')) {
	          return OUTCLASS;
	        } else if (stream.match('}')) {
	          // single } in f-string is an error
	          return ERRORCLASS;
	        } else {
	          stream.eat(/['"]/);
	        }
	      }
	      if (singleline) {
	        if (parserConf.singleLineStringErrors)
	          return ERRORCLASS;
	        else
	          state.tokenize = tokenOuter;
	      }
	      return OUTCLASS;
	    }
	    tokenString.isString = true;
	    return tokenString;
	  }

	  function tokenStringFactory(delimiter, tokenOuter) {
	    while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
	      delimiter = delimiter.substr(1);

	    var singleline = delimiter.length == 1;
	    var OUTCLASS = "string";

	    function tokenString(stream, state) {
	      while (!stream.eol()) {
	        stream.eatWhile(/[^'"\\]/);
	        if (stream.eat("\\")) {
	          stream.next();
	          if (singleline && stream.eol())
	            return OUTCLASS;
	        } else if (stream.match(delimiter)) {
	          state.tokenize = tokenOuter;
	          return OUTCLASS;
	        } else {
	          stream.eat(/['"]/);
	        }
	      }
	      if (singleline) {
	        if (parserConf.singleLineStringErrors)
	          return ERRORCLASS;
	        else
	          state.tokenize = tokenOuter;
	      }
	      return OUTCLASS;
	    }
	    tokenString.isString = true;
	    return tokenString;
	  }

	  function pushPyScope(stream, state) {
	    while (top(state).type != "py") state.scopes.pop();
	    state.scopes.push({offset: top(state).offset + stream.indentUnit,
	                       type: "py",
	                       align: null});
	  }

	  function pushBracketScope(stream, state, type) {
	    var align = stream.match(/^[\s\[\{\(]*(?:#|$)/, false) ? null : stream.column() + 1;
	    state.scopes.push({offset: state.indent + (hangingIndent || stream.indentUnit),
	                       type: type,
	                       align: align});
	  }

	  function dedent(stream, state) {
	    var indented = stream.indentation();
	    while (state.scopes.length > 1 && top(state).offset > indented) {
	      if (top(state).type != "py") return true;
	      state.scopes.pop();
	    }
	    return top(state).offset != indented;
	  }

	  function tokenLexer(stream, state) {
	    if (stream.sol()) {
	      state.beginningOfLine = true;
	      state.dedent = false;
	    }

	    var style = state.tokenize(stream, state);
	    var current = stream.current();

	    // Handle decorators
	    if (state.beginningOfLine && current == "@")
	      return stream.match(identifiers, false) ? "meta" : py3 ? "operator" : ERRORCLASS;

	    if (/\S/.test(current)) state.beginningOfLine = false;

	    if ((style == "variable" || style == "builtin")
	        && state.lastToken == "meta")
	      style = "meta";

	    // Handle scope changes.
	    if (current == "pass" || current == "return")
	      state.dedent = true;

	    if (current == "lambda") state.lambda = true;
	    if (current == ":" && !state.lambda && top(state).type == "py" && stream.match(/^\s*(?:#|$)/, false))
	      pushPyScope(stream, state);

	    if (current.length == 1 && !/string|comment/.test(style)) {
	      var delimiter_index = "[({".indexOf(current);
	      if (delimiter_index != -1)
	        pushBracketScope(stream, state, "])}".slice(delimiter_index, delimiter_index+1));

	      delimiter_index = "])}".indexOf(current);
	      if (delimiter_index != -1) {
	        if (top(state).type == current) state.indent = state.scopes.pop().offset - (hangingIndent || stream.indentUnit);
	        else return ERRORCLASS;
	      }
	    }
	    if (state.dedent && stream.eol() && top(state).type == "py" && state.scopes.length > 1)
	      state.scopes.pop();

	    return style;
	  }

	  return {
	    name: "python",

	    startState: function() {
	      return {
	        tokenize: tokenBase,
	        scopes: [{offset: 0, type: "py", align: null}],
	        indent: 0,
	        lastToken: null,
	        lambda: false,
	        dedent: 0
	      };
	    },

	    token: function(stream, state) {
	      var addErr = state.errorToken;
	      if (addErr) state.errorToken = false;
	      var style = tokenLexer(stream, state);

	      if (style && style != "comment")
	        state.lastToken = (style == "keyword" || style == "punctuation") ? stream.current() : style;
	      if (style == "punctuation") style = null;

	      if (stream.eol() && state.lambda)
	        state.lambda = false;
	      return addErr ? ERRORCLASS : style;
	    },

	    indent: function(state, textAfter, cx) {
	      if (state.tokenize != tokenBase)
	        return state.tokenize.isString ? null : 0;

	      var scope = top(state);
	      var closing = scope.type == textAfter.charAt(0) ||
	          scope.type == "py" && !state.dedent && /^(else:|elif |except |finally:)/.test(textAfter);
	      if (scope.align != null)
	        return scope.align - (closing ? 1 : 0)
	      else
	        return scope.offset - (closing ? hangingIndent || cx.unit : 0)
	    },

	    languageData: {
	      autocomplete: commonKeywords$4.concat(commonBuiltins$1).concat(["exec", "print"]),
	      indentOnInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/,
	      commentTokens: {line: "#"},
	      closeBrackets: {brackets: ["(", "[", "{", "'", '"', "'''", '"""']}
	    }
	  };
	}
	var words$i = function(str) { return str.split(" "); };

	const python = mkPython({});

	const cython = mkPython({
	  extra_keywords: words$i("by cdef cimport cpdef ctypedef enum except "+
	                        "extern gil include nogil property public "+
	                        "readonly struct union DEF IF ELIF ELSE")
	});

	var python$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cython: cython,
		mkPython: mkPython,
		python: python
	});

	function wordRegExp(words, end) {
	  return new RegExp((end ? "" : "^") + "(?:" + words.join("|") + ")" + (end ? "$" : "\\b"));
	}

	function chain$a(tokenize, stream, state) {
	  state.tokenize.push(tokenize);
	  return tokenize(stream, state);
	}

	var operators$5 = /^(?:[-+/%|&^]|\*\*?|[<>]{2})/;
	var conditionalOperators = /^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/;
	var indexingOperators = /^(?:\[\][?=]?)/;
	var anotherOperators = /^(?:\.(?:\.{2})?|->|[?:])/;
	var idents = /^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;
	var types$5 = /^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;
	var keywords$B = wordRegExp([
	  "abstract", "alias", "as", "asm", "begin", "break", "case", "class", "def", "do",
	  "else", "elsif", "end", "ensure", "enum", "extend", "for", "fun", "if",
	  "include", "instance_sizeof", "lib", "macro", "module", "next", "of", "out", "pointerof",
	  "private", "protected", "rescue", "return", "require", "select", "sizeof", "struct",
	  "super", "then", "type", "typeof", "uninitialized", "union", "unless", "until", "when", "while", "with",
	  "yield", "__DIR__", "__END_LINE__", "__FILE__", "__LINE__"
	]);
	var atomWords = wordRegExp(["true", "false", "nil", "self"]);
	var indentKeywordsArray = [
	  "def", "fun", "macro",
	  "class", "module", "struct", "lib", "enum", "union",
	  "do", "for"
	];
	var indentKeywords = wordRegExp(indentKeywordsArray);
	var indentExpressionKeywordsArray = ["if", "unless", "case", "while", "until", "begin", "then"];
	var indentExpressionKeywords = wordRegExp(indentExpressionKeywordsArray);
	var dedentKeywordsArray = ["end", "else", "elsif", "rescue", "ensure"];
	var dedentKeywords = wordRegExp(dedentKeywordsArray);
	var dedentPunctualsArray = ["\\)", "\\}", "\\]"];
	var dedentPunctuals = new RegExp("^(?:" + dedentPunctualsArray.join("|") + ")$");
	var nextTokenizer = {
	  "def": tokenFollowIdent, "fun": tokenFollowIdent, "macro": tokenMacroDef,
	  "class": tokenFollowType, "module": tokenFollowType, "struct": tokenFollowType,
	  "lib": tokenFollowType, "enum": tokenFollowType, "union": tokenFollowType
	};
	var matching = {"[": "]", "{": "}", "(": ")", "<": ">"};

	function tokenBase$H(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  // Macros
	  if (state.lastToken != "\\" && stream.match("{%", false)) {
	    return chain$a(tokenMacro("%", "%"), stream, state);
	  }

	  if (state.lastToken != "\\" && stream.match("{{", false)) {
	    return chain$a(tokenMacro("{", "}"), stream, state);
	  }

	  // Comments
	  if (stream.peek() == "#") {
	    stream.skipToEnd();
	    return "comment";
	  }

	  // Variables and keywords
	  var matched;
	  if (stream.match(idents)) {
	    stream.eat(/[?!]/);

	    matched = stream.current();
	    if (stream.eat(":")) {
	      return "atom";
	    } else if (state.lastToken == ".") {
	      return "property";
	    } else if (keywords$B.test(matched)) {
	      if (indentKeywords.test(matched)) {
	        if (!(matched == "fun" && state.blocks.indexOf("lib") >= 0) && !(matched == "def" && state.lastToken == "abstract")) {
	          state.blocks.push(matched);
	          state.currentIndent += 1;
	        }
	      } else if ((state.lastStyle == "operator" || !state.lastStyle) && indentExpressionKeywords.test(matched)) {
	        state.blocks.push(matched);
	        state.currentIndent += 1;
	      } else if (matched == "end") {
	        state.blocks.pop();
	        state.currentIndent -= 1;
	      }

	      if (nextTokenizer.hasOwnProperty(matched)) {
	        state.tokenize.push(nextTokenizer[matched]);
	      }

	      return "keyword";
	    } else if (atomWords.test(matched)) {
	      return "atom";
	    }

	    return "variable";
	  }

	  // Class variables and instance variables
	  // or attributes
	  if (stream.eat("@")) {
	    if (stream.peek() == "[") {
	      return chain$a(tokenNest("[", "]", "meta"), stream, state);
	    }

	    stream.eat("@");
	    stream.match(idents) || stream.match(types$5);
	    return "propertyName";
	  }

	  // Constants and types
	  if (stream.match(types$5)) {
	    return "tag";
	  }

	  // Symbols or ':' operator
	  if (stream.eat(":")) {
	    if (stream.eat("\"")) {
	      return chain$a(tokenQuote("\"", "atom", false), stream, state);
	    } else if (stream.match(idents) || stream.match(types$5) ||
	               stream.match(operators$5) || stream.match(conditionalOperators) || stream.match(indexingOperators)) {
	      return "atom";
	    }
	    stream.eat(":");
	    return "operator";
	  }

	  // Strings
	  if (stream.eat("\"")) {
	    return chain$a(tokenQuote("\"", "string", true), stream, state);
	  }

	  // Strings or regexps or macro variables or '%' operator
	  if (stream.peek() == "%") {
	    var style = "string";
	    var embed = true;
	    var delim;

	    if (stream.match("%r")) {
	      // Regexps
	      style = "string.special";
	      delim = stream.next();
	    } else if (stream.match("%w")) {
	      embed = false;
	      delim = stream.next();
	    } else if (stream.match("%q")) {
	      embed = false;
	      delim = stream.next();
	    } else {
	      if(delim = stream.match(/^%([^\w\s=])/)) {
	        delim = delim[1];
	      } else if (stream.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)) {
	        // Macro variables
	        return "meta";
	      } else if (stream.eat('%')) {
	        // '%' operator
	        return "operator";
	      }
	    }

	    if (matching.hasOwnProperty(delim)) {
	      delim = matching[delim];
	    }
	    return chain$a(tokenQuote(delim, style, embed), stream, state);
	  }

	  // Here Docs
	  if (matched = stream.match(/^<<-('?)([A-Z]\w*)\1/)) {
	    return chain$a(tokenHereDoc(matched[2], !matched[1]), stream, state)
	  }

	  // Characters
	  if (stream.eat("'")) {
	    stream.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/);
	    stream.eat("'");
	    return "atom";
	  }

	  // Numbers
	  if (stream.eat("0")) {
	    if (stream.eat("x")) {
	      stream.match(/^[0-9a-fA-F_]+/);
	    } else if (stream.eat("o")) {
	      stream.match(/^[0-7_]+/);
	    } else if (stream.eat("b")) {
	      stream.match(/^[01_]+/);
	    }
	    return "number";
	  }

	  if (stream.eat(/^\d/)) {
	    stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/);
	    return "number";
	  }

	  // Operators
	  if (stream.match(operators$5)) {
	    stream.eat("="); // Operators can follow assign symbol.
	    return "operator";
	  }

	  if (stream.match(conditionalOperators) || stream.match(anotherOperators)) {
	    return "operator";
	  }

	  // Parens and braces
	  if (matched = stream.match(/[({[]/, false)) {
	    matched = matched[0];
	    return chain$a(tokenNest(matched, matching[matched], null), stream, state);
	  }

	  // Escapes
	  if (stream.eat("\\")) {
	    stream.next();
	    return "meta";
	  }

	  stream.next();
	  return null;
	}

	function tokenNest(begin, end, style, started) {
	  return function (stream, state) {
	    if (!started && stream.match(begin)) {
	      state.tokenize[state.tokenize.length - 1] = tokenNest(begin, end, style, true);
	      state.currentIndent += 1;
	      return style;
	    }

	    var nextStyle = tokenBase$H(stream, state);
	    if (stream.current() === end) {
	      state.tokenize.pop();
	      state.currentIndent -= 1;
	      nextStyle = style;
	    }

	    return nextStyle;
	  };
	}

	function tokenMacro(begin, end, started) {
	  return function (stream, state) {
	    if (!started && stream.match("{" + begin)) {
	      state.currentIndent += 1;
	      state.tokenize[state.tokenize.length - 1] = tokenMacro(begin, end, true);
	      return "meta";
	    }

	    if (stream.match(end + "}")) {
	      state.currentIndent -= 1;
	      state.tokenize.pop();
	      return "meta";
	    }

	    return tokenBase$H(stream, state);
	  };
	}

	function tokenMacroDef(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  var matched;
	  if (matched = stream.match(idents)) {
	    if (matched == "def") {
	      return "keyword";
	    }
	    stream.eat(/[?!]/);
	  }

	  state.tokenize.pop();
	  return "def";
	}

	function tokenFollowIdent(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  if (stream.match(idents)) {
	    stream.eat(/[!?]/);
	  } else {
	    stream.match(operators$5) || stream.match(conditionalOperators) || stream.match(indexingOperators);
	  }
	  state.tokenize.pop();
	  return "def";
	}

	function tokenFollowType(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  stream.match(types$5);
	  state.tokenize.pop();
	  return "def";
	}

	function tokenQuote(end, style, embed) {
	  return function (stream, state) {
	    var escaped = false;

	    while (stream.peek()) {
	      if (!escaped) {
	        if (stream.match("{%", false)) {
	          state.tokenize.push(tokenMacro("%", "%"));
	          return style;
	        }

	        if (stream.match("{{", false)) {
	          state.tokenize.push(tokenMacro("{", "}"));
	          return style;
	        }

	        if (embed && stream.match("#{", false)) {
	          state.tokenize.push(tokenNest("#{", "}", "meta"));
	          return style;
	        }

	        var ch = stream.next();

	        if (ch == end) {
	          state.tokenize.pop();
	          return style;
	        }

	        escaped = embed && ch == "\\";
	      } else {
	        stream.next();
	        escaped = false;
	      }
	    }

	    return style;
	  };
	}

	function tokenHereDoc(phrase, embed) {
	  return function (stream, state) {
	    if (stream.sol()) {
	      stream.eatSpace();
	      if (stream.match(phrase)) {
	        state.tokenize.pop();
	        return "string";
	      }
	    }

	    var escaped = false;
	    while (stream.peek()) {
	      if (!escaped) {
	        if (stream.match("{%", false)) {
	          state.tokenize.push(tokenMacro("%", "%"));
	          return "string";
	        }

	        if (stream.match("{{", false)) {
	          state.tokenize.push(tokenMacro("{", "}"));
	          return "string";
	        }

	        if (embed && stream.match("#{", false)) {
	          state.tokenize.push(tokenNest("#{", "}", "meta"));
	          return "string";
	        }

	        escaped = embed && stream.next() == "\\";
	      } else {
	        stream.next();
	        escaped = false;
	      }
	    }

	    return "string";
	  }
	}

	const crystal = {
	  name: "crystal",
	  startState: function () {
	    return {
	      tokenize: [tokenBase$H],
	      currentIndent: 0,
	      lastToken: null,
	      lastStyle: null,
	      blocks: []
	    };
	  },

	  token: function (stream, state) {
	    var style = state.tokenize[state.tokenize.length - 1](stream, state);
	    var token = stream.current();

	    if (style && style != "comment") {
	      state.lastToken = token;
	      state.lastStyle = style;
	    }

	    return style;
	  },

	  indent: function (state, textAfter, cx) {
	    textAfter = textAfter.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g, "");

	    if (dedentKeywords.test(textAfter) || dedentPunctuals.test(textAfter)) {
	      return cx.unit * (state.currentIndent - 1);
	    }

	    return cx.unit * state.currentIndent;
	  },

	  languageData: {
	    indentOnInput: wordRegExp(dedentPunctualsArray.concat(dedentKeywordsArray), true),
	    commentTokens: {line: "#"}
	  }
	};

	var crystal$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		crystal: crystal
	});

	function words$h(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var blockKeywordsStr = "body catch class do else enum for foreach foreach_reverse if in interface mixin " +
	    "out scope struct switch try union unittest version while with";

	const parserConfig$2 = {
	  keywords: words$h("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue " +
	                  "debug default delegate delete deprecated export extern final finally function goto immutable " +
	                  "import inout invariant is lazy macro module new nothrow override package pragma private " +
	                  "protected public pure ref return shared short static super synchronized template this " +
	                  "throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters " +
	                  blockKeywordsStr),
	  blockKeywords: words$h(blockKeywordsStr),
	  builtin: words$h("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte " +
	                 "ucent uint ulong ushort wchar wstring void size_t sizediff_t"),
	  atoms: words$h("exit failure success true false null"),
	  hooks: {
	    "@": function(stream, _state) {
	      stream.eatWhile(/[\w\$_]/);
	      return "meta";
	    }
	  }
	};

	var statementIndentUnit = parserConfig$2.statementIndentUnit,
	    keywords$A = parserConfig$2.keywords,
	    builtin$3 = parserConfig$2.builtin,
	    blockKeywords$4 = parserConfig$2.blockKeywords,
	    atoms$c = parserConfig$2.atoms,
	    hooks$2 = parserConfig$2.hooks,
	    multiLineStrings$3 = parserConfig$2.multiLineStrings;
	var isOperatorChar$e = /[+\-*&%=<>!?|\/]/;

	var curPunc$b;

	function tokenBase$G(stream, state) {
	  var ch = stream.next();
	  if (hooks$2[ch]) {
	    var result = hooks$2[ch](stream, state);
	    if (result !== false) return result;
	  }
	  if (ch == '"' || ch == "'" || ch == "`") {
	    state.tokenize = tokenString$q(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    curPunc$b = ch;
	    return null;
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (ch == "/") {
	    if (stream.eat("+")) {
	      state.tokenize = tokenNestedComment;
	      return tokenNestedComment(stream, state);
	    }
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$j;
	      return tokenComment$j(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$e.test(ch)) {
	    stream.eatWhile(isOperatorChar$e);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_\xa1-\uffff]/);
	  var cur = stream.current();
	  if (keywords$A.propertyIsEnumerable(cur)) {
	    if (blockKeywords$4.propertyIsEnumerable(cur)) curPunc$b = "newstatement";
	    return "keyword";
	  }
	  if (builtin$3.propertyIsEnumerable(cur)) {
	    if (blockKeywords$4.propertyIsEnumerable(cur)) curPunc$b = "newstatement";
	    return "builtin";
	  }
	  if (atoms$c.propertyIsEnumerable(cur)) return "atom";
	  return "variable";
	}

	function tokenString$q(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !(escaped || multiLineStrings$3))
	      state.tokenize = null;
	    return "string";
	  };
	}

	function tokenComment$j(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenNestedComment(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "+");
	  }
	  return "comment";
	}

	function Context$a(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$d(state, col, type) {
	  var indent = state.indented;
	  if (state.context && state.context.type == "statement")
	    indent = state.context.indented;
	  return state.context = new Context$a(indent, col, type, null, state.context);
	}
	function popContext$d(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface

	const d$1 = {
	  name: "d",
	  startState: function(indentUnit) {
	    return {
	      tokenize: null,
	      context: new Context$a(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$b = null;
	    var style = (state.tokenize || tokenBase$G)(stream, state);
	    if (style == "comment" || style == "meta") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc$b == ";" || curPunc$b == ":" || curPunc$b == ",") && ctx.type == "statement") popContext$d(state);
	    else if (curPunc$b == "{") pushContext$d(state, stream.column(), "}");
	    else if (curPunc$b == "[") pushContext$d(state, stream.column(), "]");
	    else if (curPunc$b == "(") pushContext$d(state, stream.column(), ")");
	    else if (curPunc$b == "}") {
	      while (ctx.type == "statement") ctx = popContext$d(state);
	      if (ctx.type == "}") ctx = popContext$d(state);
	      while (ctx.type == "statement") ctx = popContext$d(state);
	    }
	    else if (curPunc$b == ctx.type) popContext$d(state);
	    else if (((ctx.type == "}" || ctx.type == "top") && curPunc$b != ';') || (ctx.type == "statement" && curPunc$b == "newstatement"))
	      pushContext$d(state, stream.column(), "statement");
	    state.startOfLine = false;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$G && state.tokenize != null) return null;
	    var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
	    if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
	    var closing = firstChar == ctx.type;
	    if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || cx.unit);
	    else if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
	  }
	};

	var d$2 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		d: d$1
	});

	var TOKEN_NAMES = {
	  '+': 'inserted',
	  '-': 'deleted',
	  '@': 'meta'
	};

	const diff = {
	  name: "diff",
	  token: function(stream) {
	    var tw_pos = stream.string.search(/[\t ]+?$/);

	    if (!stream.sol() || tw_pos === 0) {
	      stream.skipToEnd();
	      return ("error " + (
	        TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
	    }

	    var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();

	    if (tw_pos === -1) {
	      stream.skipToEnd();
	    } else {
	      stream.pos = tw_pos;
	    }

	    return token_name;
	  }
	};

	var diff$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		diff: diff
	});

	function simpleMode(states) {
	  ensureState(states, "start");
	  var states_ = {}, meta = states.languageData || {}, hasIndentation = false;
	  for (var state in states) if (state != meta && states.hasOwnProperty(state)) {
	    var list = states_[state] = [], orig = states[state];
	    for (var i = 0; i < orig.length; i++) {
	      var data = orig[i];
	      list.push(new Rule(data, states));
	      if (data.indent || data.dedent) hasIndentation = true;
	    }
	  }
	  return {
	    name: meta.name,
	    startState: function() {
	      return {state: "start", pending: null, indent: hasIndentation ? [] : null};
	    },
	    copyState: function(state) {
	      var s = {state: state.state, pending: state.pending, indent: state.indent && state.indent.slice(0)};
	      if (state.stack)
	        s.stack = state.stack.slice(0);
	      return s;
	    },
	    token: tokenFunction(states_),
	    indent: indentFunction(states_, meta),
	    languageData: meta
	  }
	}
	function ensureState(states, name) {
	  if (!states.hasOwnProperty(name))
	    throw new Error("Undefined state " + name + " in simple mode");
	}

	function toRegex(val, caret) {
	  if (!val) return /(?:)/;
	  var flags = "";
	  if (val instanceof RegExp) {
	    if (val.ignoreCase) flags = "i";
	    val = val.source;
	  } else {
	    val = String(val);
	  }
	  return new RegExp((caret === false ? "" : "^") + "(?:" + val + ")", flags);
	}

	function asToken(val) {
	  if (!val) return null;
	  if (val.apply) return val
	  if (typeof val == "string") return val.replace(/\./g, " ");
	  var result = [];
	  for (var i = 0; i < val.length; i++)
	    result.push(val[i] && val[i].replace(/\./g, " "));
	  return result;
	}

	function Rule(data, states) {
	  if (data.next || data.push) ensureState(states, data.next || data.push);
	  this.regex = toRegex(data.regex);
	  this.token = asToken(data.token);
	  this.data = data;
	}

	function tokenFunction(states) {
	  return function(stream, state) {
	    if (state.pending) {
	      var pend = state.pending.shift();
	      if (state.pending.length == 0) state.pending = null;
	      stream.pos += pend.text.length;
	      return pend.token;
	    }

	    var curState = states[state.state];
	    for (var i = 0; i < curState.length; i++) {
	      var rule = curState[i];
	      var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);
	      if (matches) {
	        if (rule.data.next) {
	          state.state = rule.data.next;
	        } else if (rule.data.push) {
	          (state.stack || (state.stack = [])).push(state.state);
	          state.state = rule.data.push;
	        } else if (rule.data.pop && state.stack && state.stack.length) {
	          state.state = state.stack.pop();
	        }

	        if (rule.data.indent)
	          state.indent.push(stream.indentation() + stream.indentUnit);
	        if (rule.data.dedent)
	          state.indent.pop();
	        var token = rule.token;
	        if (token && token.apply) token = token(matches);
	        if (matches.length > 2 && rule.token && typeof rule.token != "string") {
	          state.pending = [];
	          for (var j = 2; j < matches.length; j++)
	            if (matches[j])
	              state.pending.push({text: matches[j], token: rule.token[j - 1]});
	          stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));
	          return token[0];
	        } else if (token && token.join) {
	          return token[0];
	        } else {
	          return token;
	        }
	      }
	    }
	    stream.next();
	    return null;
	  };
	}

	function indentFunction(states, meta) {
	  return function(state, textAfter) {
	    if (state.indent == null || meta.dontIndentStates && meta.doneIndentState.indexOf(state.state) > -1)
	      return null

	    var pos = state.indent.length - 1, rules = states[state.state];
	    scan: for (;;) {
	      for (var i = 0; i < rules.length; i++) {
	        var rule = rules[i];
	        if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {
	          var m = rule.regex.exec(textAfter);
	          if (m && m[0]) {
	            pos--;
	            if (rule.next || rule.push) rules = states[rule.next || rule.push];
	            textAfter = textAfter.slice(m[0].length);
	            continue scan;
	          }
	        }
	      }
	      break;
	    }
	    return pos < 0 ? 0 : state.indent[pos];
	  };
	}

	var from = "from";
	var fromRegex = new RegExp("^(\\s*)\\b(" + from + ")\\b", "i");

	var shells = ["run", "cmd", "entrypoint", "shell"];
	var shellsAsArrayRegex = new RegExp("^(\\s*)(" + shells.join('|') + ")(\\s+\\[)", "i");

	var expose = "expose";
	var exposeRegex = new RegExp("^(\\s*)(" + expose + ")(\\s+)", "i");

	var others = [
	  "arg", "from", "maintainer", "label", "env",
	  "add", "copy", "volume", "user",
	  "workdir", "onbuild", "stopsignal", "healthcheck", "shell"
	];

	// Collect all Dockerfile directives
	var instructions = [from, expose].concat(shells).concat(others),
	    instructionRegex = "(" + instructions.join('|') + ")",
	    instructionOnlyLine = new RegExp("^(\\s*)" + instructionRegex + "(\\s*)(#.*)?$", "i"),
	    instructionWithArguments = new RegExp("^(\\s*)" + instructionRegex + "(\\s+)", "i");

	const dockerFile = simpleMode({
	  start: [
	    // Block comment: This is a line starting with a comment
	    {
	      regex: /^\s*#.*$/,
	      sol: true,
	      token: "comment"
	    },
	    {
	      regex: fromRegex,
	      token: [null, "keyword"],
	      sol: true,
	      next: "from"
	    },
	    // Highlight an instruction without any arguments (for convenience)
	    {
	      regex: instructionOnlyLine,
	      token: [null, "keyword", null, "error"],
	      sol: true
	    },
	    {
	      regex: shellsAsArrayRegex,
	      token: [null, "keyword", null],
	      sol: true,
	      next: "array"
	    },
	    {
	      regex: exposeRegex,
	      token: [null, "keyword", null],
	      sol: true,
	      next: "expose"
	    },
	    // Highlight an instruction followed by arguments
	    {
	      regex: instructionWithArguments,
	      token: [null, "keyword", null],
	      sol: true,
	      next: "arguments"
	    },
	    {
	      regex: /./,
	      token: null
	    }
	  ],
	  from: [
	    {
	      regex: /\s*$/,
	      token: null,
	      next: "start"
	    },
	    {
	      // Line comment without instruction arguments is an error
	      regex: /(\s*)(#.*)$/,
	      token: [null, "error"],
	      next: "start"
	    },
	    {
	      regex: /(\s*\S+\s+)(as)/i,
	      token: [null, "keyword"],
	      next: "start"
	    },
	    // Fail safe return to start
	    {
	      token: null,
	      next: "start"
	    }
	  ],
	  single: [
	    {
	      regex: /(?:[^\\']|\\.)/,
	      token: "string"
	    },
	    {
	      regex: /'/,
	      token: "string",
	      pop: true
	    }
	  ],
	  double: [
	    {
	      regex: /(?:[^\\"]|\\.)/,
	      token: "string"
	    },
	    {
	      regex: /"/,
	      token: "string",
	      pop: true
	    }
	  ],
	  array: [
	    {
	      regex: /\]/,
	      token: null,
	      next: "start"
	    },
	    {
	      regex: /"(?:[^\\"]|\\.)*"?/,
	      token: "string"
	    }
	  ],
	  expose: [
	    {
	      regex: /\d+$/,
	      token: "number",
	      next: "start"
	    },
	    {
	      regex: /[^\d]+$/,
	      token: null,
	      next: "start"
	    },
	    {
	      regex: /\d+/,
	      token: "number"
	    },
	    {
	      regex: /[^\d]+/,
	      token: null
	    },
	    // Fail safe return to start
	    {
	      token: null,
	      next: "start"
	    }
	  ],
	  arguments: [
	    {
	      regex: /^\s*#.*$/,
	      sol: true,
	      token: "comment"
	    },
	    {
	      regex: /"(?:[^\\"]|\\.)*"?$/,
	      token: "string",
	      next: "start"
	    },
	    {
	      regex: /"/,
	      token: "string",
	      push: "double"
	    },
	    {
	      regex: /'(?:[^\\']|\\.)*'?$/,
	      token: "string",
	      next: "start"
	    },
	    {
	      regex: /'/,
	      token: "string",
	      push: "single"
	    },
	    {
	      regex: /[^#"']+[\\`]$/,
	      token: null
	    },
	    {
	      regex: /[^#"']+$/,
	      token: null,
	      next: "start"
	    },
	    {
	      regex: /[^#"']+/,
	      token: null
	    },
	    // Fail safe return to start
	    {
	      token: null,
	      next: "start"
	    }
	  ],
	  languageData: {
	    commentTokens: {line: "#"}
	  }
	});

	var dockerfile = /*#__PURE__*/Object.freeze({
		__proto__: null,
		dockerFile: dockerFile
	});

	var type$4;
	function ret$2(style, tp) {type$4 = tp; return style;}

	function tokenBase$F(stream, state) {
	  var ch = stream.next();

	  if (ch == "<" && stream.eat("!") ) {
	    if (stream.eatWhile(/[\-]/)) {
	      state.tokenize = tokenSGMLComment$1;
	      return tokenSGMLComment$1(stream, state);
	    } else if (stream.eatWhile(/[\w]/)) return ret$2("keyword", "doindent");
	  } else if (ch == "<" && stream.eat("?")) { //xml declaration
	    state.tokenize = inBlock$1("meta", "?>");
	    return ret$2("meta", ch);
	  } else if (ch == "#" && stream.eatWhile(/[\w]/)) return ret$2("atom", "tag");
	  else if (ch == "|") return ret$2("keyword", "separator");
	  else if (ch.match(/[\(\)\[\]\-\.,\+\?>]/)) return ret$2(null, ch);//if(ch === ">") return ret(null, "endtag"); else
	  else if (ch.match(/[\[\]]/)) return ret$2("rule", ch);
	  else if (ch == "\"" || ch == "'") {
	    state.tokenize = tokenString$p(ch);
	    return state.tokenize(stream, state);
	  } else if (stream.eatWhile(/[a-zA-Z\?\+\d]/)) {
	    var sc = stream.current();
	    if( sc.substr(sc.length-1,sc.length).match(/\?|\+/) !== null )stream.backUp(1);
	    return ret$2("tag", "tag");
	  } else if (ch == "%" || ch == "*" ) return ret$2("number", "number");
	  else {
	    stream.eatWhile(/[\w\\\-_%.{,]/);
	    return ret$2(null, null);
	  }
	}

	function tokenSGMLComment$1(stream, state) {
	  var dashes = 0, ch;
	  while ((ch = stream.next()) != null) {
	    if (dashes >= 2 && ch == ">") {
	      state.tokenize = tokenBase$F;
	      break;
	    }
	    dashes = (ch == "-") ? dashes + 1 : 0;
	  }
	  return ret$2("comment", "comment");
	}

	function tokenString$p(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped) {
	        state.tokenize = tokenBase$F;
	        break;
	      }
	      escaped = !escaped && ch == "\\";
	    }
	    return ret$2("string", "tag");
	  };
	}

	function inBlock$1(style, terminator) {
	  return function(stream, state) {
	    while (!stream.eol()) {
	      if (stream.match(terminator)) {
	        state.tokenize = tokenBase$F;
	        break;
	      }
	      stream.next();
	    }
	    return style;
	  };
	}

	const dtd = {
	  name: "dtd",
	  startState: function() {
	    return {tokenize: tokenBase$F,
	            baseIndent: 0,
	            stack: []};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);

	    var context = state.stack[state.stack.length-1];
	    if (stream.current() == "[" || type$4 === "doindent" || type$4 == "[") state.stack.push("rule");
	    else if (type$4 === "endtag") state.stack[state.stack.length-1] = "endtag";
	    else if (stream.current() == "]" || type$4 == "]" || (type$4 == ">" && context == "rule")) state.stack.pop();
	    else if (type$4 == "[") state.stack.push("[");
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var n = state.stack.length;

	    if( textAfter.charAt(0) === ']' )n--;
	    else if(textAfter.substr(textAfter.length-1, textAfter.length) === ">"){
	      if(textAfter.substr(0,1) === "<") ;
	      else if( type$4 == "doindent" && textAfter.length > 1 ) ;
	      else if( type$4 == "doindent")n--;
	      else if( type$4 == ">" && textAfter.length > 1) ;
	      else if( type$4 == "tag" && textAfter !== ">") ;
	      else if( type$4 == "tag" && state.stack[state.stack.length-1] == "rule")n--;
	      else if( type$4 == "tag")n++;
	      else if( textAfter === ">" && state.stack[state.stack.length-1] == "rule" && type$4 === ">")n--;
	      else if( textAfter === ">" && state.stack[state.stack.length-1] == "rule") ;
	      else if( textAfter.substr(0,1) !== "<" && textAfter.substr(0,1) === ">" )n=n-1;
	      else if( textAfter === ">") ;
	      else n=n-1;
	      //over rule them all
	      if(type$4 == null || type$4 == "]")n--;
	    }

	    return state.baseIndent + n * cx.unit;
	  },

	  languageData: {
	    indentOnInput: /^\s*[\]>]$/
	  }
	};

	var dtd$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		dtd: dtd
	});

	function forEach(arr, f) {
	  for (var i = 0; i < arr.length; i++) f(arr[i], i);
	}
	function some(arr, f) {
	  for (var i = 0; i < arr.length; i++) if (f(arr[i], i)) return true
	  return false
	}

	// Words
	var words$g = {
	  // Words that introduce unnamed definitions like "define interface"
	  unnamedDefinition: ["interface"],

	  // Words that introduce simple named definitions like "define library"
	  namedDefinition: ["module", "library", "macro",
	                    "C-struct", "C-union",
	                    "C-function", "C-callable-wrapper"
	                   ],

	  // Words that introduce type definitions like "define class".
	  // These are also parameterized like "define method" and are
	  // appended to otherParameterizedDefinitionWords
	  typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"],

	  // Words that introduce trickier definitions like "define method".
	  // These require special definitions to be added to startExpressions
	  otherParameterizedDefinition: ["method", "function",
	                                 "C-variable", "C-address"
	                                ],

	  // Words that introduce module constant definitions.
	  // These must also be simple definitions and are
	  // appended to otherSimpleDefinitionWords
	  constantSimpleDefinition: ["constant"],

	  // Words that introduce module variable definitions.
	  // These must also be simple definitions and are
	  // appended to otherSimpleDefinitionWords
	  variableSimpleDefinition: ["variable"],

	  // Other words that introduce simple definitions
	  // (without implicit bodies).
	  otherSimpleDefinition: ["generic", "domain",
	                          "C-pointer-type",
	                          "table"
	                         ],

	  // Words that begin statements with implicit bodies.
	  statement: ["if", "block", "begin", "method", "case",
	              "for", "select", "when", "unless", "until",
	              "while", "iterate", "profiling", "dynamic-bind"
	             ],

	  // Patterns that act as separators in compound statements.
	  // This may include any general pattern that must be indented
	  // specially.
	  separator: ["finally", "exception", "cleanup", "else",
	              "elseif", "afterwards"
	             ],

	  // Keywords that do not require special indentation handling,
	  // but which should be highlighted
	  other: ["above", "below", "by", "from", "handler", "in",
	          "instance", "let", "local", "otherwise", "slot",
	          "subclass", "then", "to", "keyed-by", "virtual"
	         ],

	  // Condition signaling function calls
	  signalingCalls: ["signal", "error", "cerror",
	                   "break", "check-type", "abort"
	                  ]
	};

	words$g["otherDefinition"] =
	  words$g["unnamedDefinition"]
	  .concat(words$g["namedDefinition"])
	  .concat(words$g["otherParameterizedDefinition"]);

	words$g["definition"] =
	  words$g["typeParameterizedDefinition"]
	  .concat(words$g["otherDefinition"]);

	words$g["parameterizedDefinition"] =
	  words$g["typeParameterizedDefinition"]
	  .concat(words$g["otherParameterizedDefinition"]);

	words$g["simpleDefinition"] =
	  words$g["constantSimpleDefinition"]
	  .concat(words$g["variableSimpleDefinition"])
	  .concat(words$g["otherSimpleDefinition"]);

	words$g["keyword"] =
	  words$g["statement"]
	  .concat(words$g["separator"])
	  .concat(words$g["other"]);

	// Patterns
	var symbolPattern = "[-_a-zA-Z?!*@<>$%]+";
	var symbol$1 = new RegExp("^" + symbolPattern);
	var patterns = {
	  // Symbols with special syntax
	  symbolKeyword: symbolPattern + ":",
	  symbolClass: "<" + symbolPattern + ">",
	  symbolGlobal: "\\*" + symbolPattern + "\\*",
	  symbolConstant: "\\$" + symbolPattern
	};
	var patternStyles = {
	  symbolKeyword: "atom",
	  symbolClass: "tag",
	  symbolGlobal: "variableName.standard",
	  symbolConstant: "variableName.constant"
	};

	// Compile all patterns to regular expressions
	for (var patternName in patterns)
	  if (patterns.hasOwnProperty(patternName))
	    patterns[patternName] = new RegExp("^" + patterns[patternName]);

	// Names beginning "with-" and "without-" are commonly
	// used as statement macro
	patterns["keyword"] = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];

	var styles = {};
	styles["keyword"] = "keyword";
	styles["definition"] = "def";
	styles["simpleDefinition"] = "def";
	styles["signalingCalls"] = "builtin";

	// protected words lookup table
	var wordLookup = {};
	var styleLookup = {};

	forEach([
	  "keyword",
	  "definition",
	  "simpleDefinition",
	  "signalingCalls"
	], function(type) {
	  forEach(words$g[type], function(word) {
	    wordLookup[word] = type;
	    styleLookup[word] = styles[type];
	  });
	});


	function chain$9(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}

	function tokenBase$E(stream, state) {
	  // String
	  var ch = stream.peek();
	  if (ch == "'" || ch == '"') {
	    stream.next();
	    return chain$9(stream, state, tokenString$o(ch, "string"));
	  }
	  // Comment
	  else if (ch == "/") {
	    stream.next();
	    if (stream.eat("*")) {
	      return chain$9(stream, state, tokenComment$i);
	    } else if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	    stream.backUp(1);
	  }
	  // Decimal
	  else if (/[+\-\d\.]/.test(ch)) {
	    if (stream.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) ||
	        stream.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) ||
	        stream.match(/^[+-]?\d+/)) {
	      return "number";
	    }
	  }
	  // Hash
	  else if (ch == "#") {
	    stream.next();
	    // Symbol with string syntax
	    ch = stream.peek();
	    if (ch == '"') {
	      stream.next();
	      return chain$9(stream, state, tokenString$o('"', "string"));
	    }
	    // Binary number
	    else if (ch == "b") {
	      stream.next();
	      stream.eatWhile(/[01]/);
	      return "number";
	    }
	    // Hex number
	    else if (ch == "x") {
	      stream.next();
	      stream.eatWhile(/[\da-f]/i);
	      return "number";
	    }
	    // Octal number
	    else if (ch == "o") {
	      stream.next();
	      stream.eatWhile(/[0-7]/);
	      return "number";
	    }
	    // Token concatenation in macros
	    else if (ch == '#') {
	      stream.next();
	      return "punctuation";
	    }
	    // Sequence literals
	    else if ((ch == '[') || (ch == '(')) {
	      stream.next();
	      return "bracket";
	      // Hash symbol
	    } else if (stream.match(/f|t|all-keys|include|key|next|rest/i)) {
	      return "atom";
	    } else {
	      stream.eatWhile(/[-a-zA-Z]/);
	      return "error";
	    }
	  } else if (ch == "~") {
	    stream.next();
	    ch = stream.peek();
	    if (ch == "=") {
	      stream.next();
	      ch = stream.peek();
	      if (ch == "=") {
	        stream.next();
	        return "operator";
	      }
	      return "operator";
	    }
	    return "operator";
	  } else if (ch == ":") {
	    stream.next();
	    ch = stream.peek();
	    if (ch == "=") {
	      stream.next();
	      return "operator";
	    } else if (ch == ":") {
	      stream.next();
	      return "punctuation";
	    }
	  } else if ("[](){}".indexOf(ch) != -1) {
	    stream.next();
	    return "bracket";
	  } else if (".,".indexOf(ch) != -1) {
	    stream.next();
	    return "punctuation";
	  } else if (stream.match("end")) {
	    return "keyword";
	  }
	  for (var name in patterns) {
	    if (patterns.hasOwnProperty(name)) {
	      var pattern = patterns[name];
	      if ((pattern instanceof Array && some(pattern, function(p) {
	        return stream.match(p);
	      })) || stream.match(pattern))
	        return patternStyles[name];
	    }
	  }
	  if (/[+\-*\/^=<>&|]/.test(ch)) {
	    stream.next();
	    return "operator";
	  }
	  if (stream.match("define")) {
	    return "def";
	  } else {
	    stream.eatWhile(/[\w\-]/);
	    // Keyword
	    if (wordLookup.hasOwnProperty(stream.current())) {
	      return styleLookup[stream.current()];
	    } else if (stream.current().match(symbol$1)) {
	      return "variable";
	    } else {
	      stream.next();
	      return "variableName.standard";
	    }
	  }
	}

	function tokenComment$i(stream, state) {
	  var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
	  while ((ch = stream.next())) {
	    if (ch == "/" && maybeEnd) {
	      if (nestedCount > 0) {
	        nestedCount--;
	      } else {
	        state.tokenize = tokenBase$E;
	        break;
	      }
	    } else if (ch == "*" && maybeNested) {
	      nestedCount++;
	    }
	    maybeEnd = (ch == "*");
	    maybeNested = (ch == "/");
	  }
	  return "comment";
	}

	function tokenString$o(quote, style) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        end = true;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped) {
	      state.tokenize = tokenBase$E;
	    }
	    return style;
	  };
	}

	// Interface
	const dylan = {
	  name: "dylan",
	  startState: function() {
	    return {
	      tokenize: tokenBase$E,
	      currentIndent: 0
	    };
	  },
	  token: function(stream, state) {
	    if (stream.eatSpace())
	      return null;
	    var style = state.tokenize(stream, state);
	    return style;
	  },
	  languageData: {
	    commentTokens: {block: {open: "/*", close: "*/"}}
	  }
	};

	var dylan$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		dylan: dylan
	});

	var commentType = {slash: 0, parenthesis: 1};
	var stateType = {comment: 0, _string: 1, characterClass: 2};

	const ebnf = {
	  name: "ebnf",
	  startState: function () {
	    return {
	      stringType: null,
	      commentType: null,
	      braced: 0,
	      lhs: true,
	      localState: null,
	      stack: [],
	      inDefinition: false
	    };
	  },
	  token: function (stream, state) {
	    if (!stream) return;

	    //check for state changes
	    if (state.stack.length === 0) {
	      //strings
	      if ((stream.peek() == '"') || (stream.peek() == "'")) {
	        state.stringType = stream.peek();
	        stream.next(); // Skip quote
	        state.stack.unshift(stateType._string);
	      } else if (stream.match('/*')) { //comments starting with /*
	        state.stack.unshift(stateType.comment);
	        state.commentType = commentType.slash;
	      } else if (stream.match('(*')) { //comments starting with (*
	        state.stack.unshift(stateType.comment);
	        state.commentType = commentType.parenthesis;
	      }
	    }

	    //return state
	    //stack has
	    switch (state.stack[0]) {
	    case stateType._string:
	      while (state.stack[0] === stateType._string && !stream.eol()) {
	        if (stream.peek() === state.stringType) {
	          stream.next(); // Skip quote
	          state.stack.shift(); // Clear flag
	        } else if (stream.peek() === "\\") {
	          stream.next();
	          stream.next();
	        } else {
	          stream.match(/^.[^\\\"\']*/);
	        }
	      }
	      return state.lhs ? "property" : "string"; // Token style

	    case stateType.comment:
	      while (state.stack[0] === stateType.comment && !stream.eol()) {
	        if (state.commentType === commentType.slash && stream.match('*/')) {
	          state.stack.shift(); // Clear flag
	          state.commentType = null;
	        } else if (state.commentType === commentType.parenthesis && stream.match('*)')) {
	          state.stack.shift(); // Clear flag
	          state.commentType = null;
	        } else {
	          stream.match(/^.[^\*]*/);
	        }
	      }
	      return "comment";

	    case stateType.characterClass:
	      while (state.stack[0] === stateType.characterClass && !stream.eol()) {
	        if (!(stream.match(/^[^\]\\]+/) || stream.match('.'))) {
	          state.stack.shift();
	        }
	      }
	      return "operator";
	    }

	    var peek = stream.peek();

	    //no stack
	    switch (peek) {
	    case "[":
	      stream.next();
	      state.stack.unshift(stateType.characterClass);
	      return "bracket";
	    case ":":
	    case "|":
	    case ";":
	      stream.next();
	      return "operator";
	    case "%":
	      if (stream.match("%%")) {
	        return "header";
	      } else if (stream.match(/[%][A-Za-z]+/)) {
	        return "keyword";
	      } else if (stream.match(/[%][}]/)) {
	        return "bracket";
	      }
	      break;
	    case "/":
	      if (stream.match(/[\/][A-Za-z]+/)) {
	        return "keyword";
	      }
	    case "\\":
	      if (stream.match(/[\][a-z]+/)) {
	        return "string.special";
	      }
	    case ".":
	      if (stream.match(".")) {
	        return "atom";
	      }
	    case "*":
	    case "-":
	    case "+":
	    case "^":
	      if (stream.match(peek)) {
	        return "atom";
	      }
	    case "$":
	      if (stream.match("$$")) {
	        return "builtin";
	      } else if (stream.match(/[$][0-9]+/)) {
	        return "variableName.special";
	      }
	    case "<":
	      if (stream.match(/<<[a-zA-Z_]+>>/)) {
	        return "builtin";
	      }
	    }

	    if (stream.match('//')) {
	      stream.skipToEnd();
	      return "comment";
	    } else if (stream.match('return')) {
	      return "operator";
	    } else if (stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)) {
	      if (stream.match(/(?=[\(.])/)) {
	        return "variable";
	      } else if (stream.match(/(?=[\s\n]*[:=])/)) {
	        return "def";
	      }
	      return "variableName.special";
	    } else if (["[", "]", "(", ")"].indexOf(stream.peek()) != -1) {
	      stream.next();
	      return "bracket";
	    } else if (!stream.eatSpace()) {
	      stream.next();
	    }
	    return null;
	  }
	};

	var ebnf$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ebnf: ebnf
	});

	function words$f(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	function metaHook$1(stream, state) {
	  if (!state.startOfLine) return false;
	  stream.skipToEnd();
	  return "meta";
	}

	var keyword = words$f("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode");
	var variable = words$f("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait");
	var variable_2 = words$f("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath");
	var variable_3 = words$f("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode");
	var builtin$2 = words$f("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when");
	var blockKeywords$3 = words$f("catch class do else finally for if switch try while");
	var atoms$b = words$f("true false null");
	var hooks$1 = {"#": metaHook$1};
	var isOperatorChar$d = /[+\-*&%=<>!?|\/]/;

	var curPunc$a;

	function tokenBase$D(stream, state) {
	  var ch = stream.next();
	  if (hooks$1[ch]) {
	    var result = hooks$1[ch](stream, state);
	    if (result !== false) return result;
	  }
	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$n(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    curPunc$a = ch;
	    return null;
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (ch == "/") {
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$h;
	      return tokenComment$h(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$d.test(ch)) {
	    stream.eatWhile(isOperatorChar$d);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_]/);
	  var cur = stream.current().toLowerCase();
	  if (keyword.propertyIsEnumerable(cur)) {
	    if (blockKeywords$3.propertyIsEnumerable(cur)) curPunc$a = "newstatement";
	    return "keyword";
	  } else if (variable.propertyIsEnumerable(cur)) {
	    if (blockKeywords$3.propertyIsEnumerable(cur)) curPunc$a = "newstatement";
	    return "variable";
	  } else if (variable_2.propertyIsEnumerable(cur)) {
	    if (blockKeywords$3.propertyIsEnumerable(cur)) curPunc$a = "newstatement";
	    return "modifier";
	  } else if (variable_3.propertyIsEnumerable(cur)) {
	    if (blockKeywords$3.propertyIsEnumerable(cur)) curPunc$a = "newstatement";
	    return "type";
	  } else if (builtin$2.propertyIsEnumerable(cur)) {
	    if (blockKeywords$3.propertyIsEnumerable(cur)) curPunc$a = "newstatement";
	    return "builtin";
	  } else { //Data types are of from KEYWORD##
	    var i = cur.length - 1;
	    while(i >= 0 && (!isNaN(cur[i]) || cur[i] == '_'))
	      --i;

	    if (i > 0) {
	      var cur2 = cur.substr(0, i + 1);
	      if (variable_3.propertyIsEnumerable(cur2)) {
	        if (blockKeywords$3.propertyIsEnumerable(cur2)) curPunc$a = "newstatement";
	        return "type";
	      }
	    }
	  }
	  if (atoms$b.propertyIsEnumerable(cur)) return "atom";
	  return null;
	}

	function tokenString$n(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped)
	      state.tokenize = tokenBase$D;
	    return "string";
	  };
	}

	function tokenComment$h(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$D;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function Context$9(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$c(state, col, type) {
	  return state.context = new Context$9(state.indented, col, type, null, state.context);
	}
	function popContext$c(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface

	const ecl = {
	  name: "ecl",
	  startState: function(indentUnit) {
	    return {
	      tokenize: null,
	      context: new Context$9(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$a = null;
	    var style = (state.tokenize || tokenBase$D)(stream, state);
	    if (style == "comment" || style == "meta") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc$a == ";" || curPunc$a == ":") && ctx.type == "statement") popContext$c(state);
	    else if (curPunc$a == "{") pushContext$c(state, stream.column(), "}");
	    else if (curPunc$a == "[") pushContext$c(state, stream.column(), "]");
	    else if (curPunc$a == "(") pushContext$c(state, stream.column(), ")");
	    else if (curPunc$a == "}") {
	      while (ctx.type == "statement") ctx = popContext$c(state);
	      if (ctx.type == "}") ctx = popContext$c(state);
	      while (ctx.type == "statement") ctx = popContext$c(state);
	    }
	    else if (curPunc$a == ctx.type) popContext$c(state);
	    else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc$a == "newstatement"))
	      pushContext$c(state, stream.column(), "statement");
	    state.startOfLine = false;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$D && state.tokenize != null) return 0;
	    var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
	    if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
	    var closing = firstChar == ctx.type;
	    if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : cx.unit);
	    else if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/
	  }
	};

	var ecl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ecl: ecl
	});

	function wordObj$2(words) {
	  var o = {};
	  for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true;
	  return o;
	}
	var keywords$z = wordObj$2([
	  'note',
	  'across',
	  'when',
	  'variant',
	  'until',
	  'unique',
	  'undefine',
	  'then',
	  'strip',
	  'select',
	  'retry',
	  'rescue',
	  'require',
	  'rename',
	  'reference',
	  'redefine',
	  'prefix',
	  'once',
	  'old',
	  'obsolete',
	  'loop',
	  'local',
	  'like',
	  'is',
	  'inspect',
	  'infix',
	  'include',
	  'if',
	  'frozen',
	  'from',
	  'external',
	  'export',
	  'ensure',
	  'end',
	  'elseif',
	  'else',
	  'do',
	  'creation',
	  'create',
	  'check',
	  'alias',
	  'agent',
	  'separate',
	  'invariant',
	  'inherit',
	  'indexing',
	  'feature',
	  'expanded',
	  'deferred',
	  'class',
	  'Void',
	  'True',
	  'Result',
	  'Precursor',
	  'False',
	  'Current',
	  'create',
	  'attached',
	  'detachable',
	  'as',
	  'and',
	  'implies',
	  'not',
	  'or'
	]);
	var operators$4 = wordObj$2([":=", "and then","and", "or","<<",">>"]);

	function chain$8(newtok, stream, state) {
	  state.tokenize.push(newtok);
	  return newtok(stream, state);
	}

	function tokenBase$C(stream, state) {
	  if (stream.eatSpace()) return null;
	  var ch = stream.next();
	  if (ch == '"'||ch == "'") {
	    return chain$8(readQuoted$1(ch, "string"), stream, state);
	  } else if (ch == "-"&&stream.eat("-")) {
	    stream.skipToEnd();
	    return "comment";
	  } else if (ch == ":"&&stream.eat("=")) {
	    return "operator";
	  } else if (/[0-9]/.test(ch)) {
	    stream.eatWhile(/[xXbBCc0-9\.]/);
	    stream.eat(/[\?\!]/);
	    return "variable";
	  } else if (/[a-zA-Z_0-9]/.test(ch)) {
	    stream.eatWhile(/[a-zA-Z_0-9]/);
	    stream.eat(/[\?\!]/);
	    return "variable";
	  } else if (/[=+\-\/*^%<>~]/.test(ch)) {
	    stream.eatWhile(/[=+\-\/*^%<>~]/);
	    return "operator";
	  } else {
	    return null;
	  }
	}

	function readQuoted$1(quote, style,  unescaped) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && (unescaped || !escaped)) {
	        state.tokenize.pop();
	        break;
	      }
	      escaped = !escaped && ch == "%";
	    }
	    return style;
	  };
	}

	const eiffel = {
	  name: "eiffel",
	  startState: function() {
	    return {tokenize: [tokenBase$C]};
	  },

	  token: function(stream, state) {
	    var style = state.tokenize[state.tokenize.length-1](stream, state);
	    if (style == "variable") {
	      var word = stream.current();
	      style = keywords$z.propertyIsEnumerable(stream.current()) ? "keyword"
	        : operators$4.propertyIsEnumerable(stream.current()) ? "operator"
	        : /^[A-Z][A-Z_0-9]*$/g.test(word) ? "tag"
	        : /^0[bB][0-1]+$/g.test(word) ? "number"
	        : /^0[cC][0-7]+$/g.test(word) ? "number"
	        : /^0[xX][a-fA-F0-9]+$/g.test(word) ? "number"
	        : /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(word) ? "number"
	        : /^[0-9]+$/g.test(word) ? "number"
	        : "variable";
	    }
	    return style;
	  },
	  languageData: {
	    commentTokens: {line: "--"}
	  }
	};

	var eiffel$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		eiffel: eiffel
	});

	function switchState$1(source, setState, f)
	{
	  setState(f);
	  return f(source, setState);
	}

	var lowerRE = /[a-z]/;
	var upperRE = /[A-Z]/;
	var innerRE = /[a-zA-Z0-9_]/;

	var digitRE$1 = /[0-9]/;
	var hexRE = /[0-9A-Fa-f]/;
	var symbolRE$1 = /[-&*+.\\/<>=?^|:]/;
	var specialRE$1 = /[(),[\]{}]/;
	var spacesRE = /[ \v\f]/; // newlines are handled in tokenizer

	function normal$2()
	{
	  return function(source, setState)
	  {
	    if (source.eatWhile(spacesRE))
	    {
	      return null;
	    }

	    var char = source.next();

	    if (specialRE$1.test(char))
	    {
	      return (char === '{' && source.eat('-'))
	        ? switchState$1(source, setState, chompMultiComment(1))
	        : (char === '[' && source.match('glsl|'))
	        ? switchState$1(source, setState, chompGlsl)
	        : 'builtin';
	    }

	    if (char === '\'')
	    {
	      return switchState$1(source, setState, chompChar);
	    }

	    if (char === '"')
	    {
	      return source.eat('"')
	        ? source.eat('"')
	        ? switchState$1(source, setState, chompMultiString)
	        : 'string'
	      : switchState$1(source, setState, chompSingleString);
	    }

	    if (upperRE.test(char))
	    {
	      source.eatWhile(innerRE);
	      return 'type';
	    }

	    if (lowerRE.test(char))
	    {
	      var isDef = source.pos === 1;
	      source.eatWhile(innerRE);
	      return isDef ? "def" : "variable";
	    }

	    if (digitRE$1.test(char))
	    {
	      if (char === '0')
	      {
	        if (source.eat(/[xX]/))
	        {
	          source.eatWhile(hexRE); // should require at least 1
	          return "number";
	        }
	      }
	      else
	      {
	        source.eatWhile(digitRE$1);
	      }
	      if (source.eat('.'))
	      {
	        source.eatWhile(digitRE$1); // should require at least 1
	      }
	      if (source.eat(/[eE]/))
	      {
	        source.eat(/[-+]/);
	        source.eatWhile(digitRE$1); // should require at least 1
	      }
	      return "number";
	    }

	    if (symbolRE$1.test(char))
	    {
	      if (char === '-' && source.eat('-'))
	      {
	        source.skipToEnd();
	        return "comment";
	      }
	      source.eatWhile(symbolRE$1);
	      return "keyword";
	    }

	    if (char === '_')
	    {
	      return "keyword";
	    }

	    return "error";
	  }
	}

	function chompMultiComment(nest)
	{
	  if (nest == 0)
	  {
	    return normal$2();
	  }
	  return function(source, setState)
	  {
	    while (!source.eol())
	    {
	      var char = source.next();
	      if (char == '{' && source.eat('-'))
	      {
	        ++nest;
	      }
	      else if (char == '-' && source.eat('}'))
	      {
	        --nest;
	        if (nest === 0)
	        {
	          setState(normal$2());
	          return 'comment';
	        }
	      }
	    }
	    setState(chompMultiComment(nest));
	    return 'comment';
	  }
	}

	function chompMultiString(source, setState)
	{
	  while (!source.eol())
	  {
	    var char = source.next();
	    if (char === '"' && source.eat('"') && source.eat('"'))
	    {
	      setState(normal$2());
	      return 'string';
	    }
	  }
	  return 'string';
	}

	function chompSingleString(source, setState)
	{
	  while (source.skipTo('\\"')) { source.next(); source.next(); }
	  if (source.skipTo('"'))
	  {
	    source.next();
	    setState(normal$2());
	    return 'string';
	  }
	  source.skipToEnd();
	  setState(normal$2());
	  return 'error';
	}

	function chompChar(source, setState)
	{
	  while (source.skipTo("\\'")) { source.next(); source.next(); }
	  if (source.skipTo("'"))
	  {
	    source.next();
	    setState(normal$2());
	    return 'string';
	  }
	  source.skipToEnd();
	  setState(normal$2());
	  return 'error';
	}

	function chompGlsl(source, setState)
	{
	  while (!source.eol())
	  {
	    var char = source.next();
	    if (char === '|' && source.eat(']'))
	    {
	      setState(normal$2());
	      return 'string';
	    }
	  }
	  return 'string';
	}

	var wellKnownWords$1 = {
	  case: 1,
	  of: 1,
	  as: 1,
	  if: 1,
	  then: 1,
	  else: 1,
	  let: 1,
	    in: 1,
	  type: 1,
	  alias: 1,
	  module: 1,
	  where: 1,
	  import: 1,
	  exposing: 1,
	  port: 1
	};

	const elm = {
	  name: "elm",
	  startState: function ()  { return { f: normal$2() }; },
	  copyState:  function (s) { return { f: s.f }; },

	  token: function(stream, state) {
	    var type = state.f(stream, function(s) { state.f = s; });
	    var word = stream.current();
	    return (wellKnownWords$1.hasOwnProperty(word)) ? 'keyword' : type;
	  },

	  languageData: {
	    commentTokens: {line: "--"}
	  }
	};

	var elm$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		elm: elm
	});

	/////////////////////////////////////////////////////////////////////////////
	// constants

	var typeWords = [
	  "-type", "-spec", "-export_type", "-opaque"];

	var keywordWords = [
	  "after","begin","catch","case","cond","end","fun","if",
	  "let","of","query","receive","try","when"];

	var separatorRE    = /[\->,;]/;
	var separatorWords = [
	  "->",";",","];

	var operatorAtomWords = [
	  "and","andalso","band","bnot","bor","bsl","bsr","bxor",
	  "div","not","or","orelse","rem","xor"];

	var operatorSymbolRE    = /[\+\-\*\/<>=\|:!]/;
	var operatorSymbolWords = [
	  "=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"];

	var openParenRE    = /[<\(\[\{]/;
	var openParenWords = [
	  "<<","(","[","{"];

	var closeParenRE    = /[>\)\]\}]/;
	var closeParenWords = [
	  "}","]",")",">>"];

	var guardWords = [
	  "is_atom","is_binary","is_bitstring","is_boolean","is_float",
	  "is_function","is_integer","is_list","is_number","is_pid",
	  "is_port","is_record","is_reference","is_tuple",
	  "atom","binary","bitstring","boolean","function","integer","list",
	  "number","pid","port","record","reference","tuple"];

	var bifWords = [
	  "abs","adler32","adler32_combine","alive","apply","atom_to_binary",
	  "atom_to_list","binary_to_atom","binary_to_existing_atom",
	  "binary_to_list","binary_to_term","bit_size","bitstring_to_list",
	  "byte_size","check_process_code","contact_binary","crc32",
	  "crc32_combine","date","decode_packet","delete_module",
	  "disconnect_node","element","erase","exit","float","float_to_list",
	  "garbage_collect","get","get_keys","group_leader","halt","hd",
	  "integer_to_list","internal_bif","iolist_size","iolist_to_binary",
	  "is_alive","is_atom","is_binary","is_bitstring","is_boolean",
	  "is_float","is_function","is_integer","is_list","is_number","is_pid",
	  "is_port","is_process_alive","is_record","is_reference","is_tuple",
	  "length","link","list_to_atom","list_to_binary","list_to_bitstring",
	  "list_to_existing_atom","list_to_float","list_to_integer",
	  "list_to_pid","list_to_tuple","load_module","make_ref","module_loaded",
	  "monitor_node","node","node_link","node_unlink","nodes","notalive",
	  "now","open_port","pid_to_list","port_close","port_command",
	  "port_connect","port_control","pre_loaded","process_flag",
	  "process_info","processes","purge_module","put","register",
	  "registered","round","self","setelement","size","spawn","spawn_link",
	  "spawn_monitor","spawn_opt","split_binary","statistics",
	  "term_to_binary","time","throw","tl","trunc","tuple_size",
	  "tuple_to_list","unlink","unregister","whereis"];

	// upper case: [A-Z] [Ø-Þ] [À-Ö]
	// lower case: [a-z] [ß-ö] [ø-ÿ]
	var anumRE       = /[\w@Ø-ÞÀ-Öß-öø-ÿ]/;
	var escapesRE    =
	    /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;

	/////////////////////////////////////////////////////////////////////////////
	// tokenizer

	function tokenizer(stream,state) {
	  // in multi-line string
	  if (state.in_string) {
	    state.in_string = (!doubleQuote(stream));
	    return rval(state,stream,"string");
	  }

	  // in multi-line atom
	  if (state.in_atom) {
	    state.in_atom = (!singleQuote(stream));
	    return rval(state,stream,"atom");
	  }

	  // whitespace
	  if (stream.eatSpace()) {
	    return rval(state,stream,"whitespace");
	  }

	  // attributes and type specs
	  if (!peekToken(state) &&
	      stream.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/)) {
	    if (is_member(stream.current(),typeWords)) {
	      return rval(state,stream,"type");
	    }else {
	      return rval(state,stream,"attribute");
	    }
	  }

	  var ch = stream.next();

	  // comment
	  if (ch == '%') {
	    stream.skipToEnd();
	    return rval(state,stream,"comment");
	  }

	  // colon
	  if (ch == ":") {
	    return rval(state,stream,"colon");
	  }

	  // macro
	  if (ch == '?') {
	    stream.eatSpace();
	    stream.eatWhile(anumRE);
	    return rval(state,stream,"macro");
	  }

	  // record
	  if (ch == "#") {
	    stream.eatSpace();
	    stream.eatWhile(anumRE);
	    return rval(state,stream,"record");
	  }

	  // dollar escape
	  if (ch == "$") {
	    if (stream.next() == "\\" && !stream.match(escapesRE)) {
	      return rval(state,stream,"error");
	    }
	    return rval(state,stream,"number");
	  }

	  // dot
	  if (ch == ".") {
	    return rval(state,stream,"dot");
	  }

	  // quoted atom
	  if (ch == '\'') {
	    if (!(state.in_atom = (!singleQuote(stream)))) {
	      if (stream.match(/\s*\/\s*[0-9]/,false)) {
	        stream.match(/\s*\/\s*[0-9]/,true);
	        return rval(state,stream,"fun");      // 'f'/0 style fun
	      }
	      if (stream.match(/\s*\(/,false) || stream.match(/\s*:/,false)) {
	        return rval(state,stream,"function");
	      }
	    }
	    return rval(state,stream,"atom");
	  }

	  // string
	  if (ch == '"') {
	    state.in_string = (!doubleQuote(stream));
	    return rval(state,stream,"string");
	  }

	  // variable
	  if (/[A-Z_Ø-ÞÀ-Ö]/.test(ch)) {
	    stream.eatWhile(anumRE);
	    return rval(state,stream,"variable");
	  }

	  // atom/keyword/BIF/function
	  if (/[a-z_ß-öø-ÿ]/.test(ch)) {
	    stream.eatWhile(anumRE);

	    if (stream.match(/\s*\/\s*[0-9]/,false)) {
	      stream.match(/\s*\/\s*[0-9]/,true);
	      return rval(state,stream,"fun");      // f/0 style fun
	    }

	    var w = stream.current();

	    if (is_member(w,keywordWords)) {
	      return rval(state,stream,"keyword");
	    }else if (is_member(w,operatorAtomWords)) {
	      return rval(state,stream,"operator");
	    }else if (stream.match(/\s*\(/,false)) {
	      // 'put' and 'erlang:put' are bifs, 'foo:put' is not
	      if (is_member(w,bifWords) &&
	          ((peekToken(state).token != ":") ||
	           (peekToken(state,2).token == "erlang"))) {
	        return rval(state,stream,"builtin");
	      }else if (is_member(w,guardWords)) {
	        return rval(state,stream,"guard");
	      }else {
	        return rval(state,stream,"function");
	      }
	    }else if (lookahead(stream) == ":") {
	      if (w == "erlang") {
	        return rval(state,stream,"builtin");
	      } else {
	        return rval(state,stream,"function");
	      }
	    }else if (is_member(w,["true","false"])) {
	      return rval(state,stream,"boolean");
	    }else {
	      return rval(state,stream,"atom");
	    }
	  }

	  // number
	  var digitRE      = /[0-9]/;
	  var radixRE      = /[0-9a-zA-Z]/;         // 36#zZ style int
	  if (digitRE.test(ch)) {
	    stream.eatWhile(digitRE);
	    if (stream.eat('#')) {                // 36#aZ  style integer
	      if (!stream.eatWhile(radixRE)) {
	        stream.backUp(1);                 //"36#" - syntax error
	      }
	    } else if (stream.eat('.')) {       // float
	      if (!stream.eatWhile(digitRE)) {
	        stream.backUp(1);        // "3." - probably end of function
	      } else {
	        if (stream.eat(/[eE]/)) {        // float with exponent
	          if (stream.eat(/[-+]/)) {
	            if (!stream.eatWhile(digitRE)) {
	              stream.backUp(2);            // "2e-" - syntax error
	            }
	          } else {
	            if (!stream.eatWhile(digitRE)) {
	              stream.backUp(1);            // "2e" - syntax error
	            }
	          }
	        }
	      }
	    }
	    return rval(state,stream,"number");   // normal integer
	  }

	  // open parens
	  if (nongreedy(stream,openParenRE,openParenWords)) {
	    return rval(state,stream,"open_paren");
	  }

	  // close parens
	  if (nongreedy(stream,closeParenRE,closeParenWords)) {
	    return rval(state,stream,"close_paren");
	  }

	  // separators
	  if (greedy(stream,separatorRE,separatorWords)) {
	    return rval(state,stream,"separator");
	  }

	  // operators
	  if (greedy(stream,operatorSymbolRE,operatorSymbolWords)) {
	    return rval(state,stream,"operator");
	  }

	  return rval(state,stream,null);
	}

	/////////////////////////////////////////////////////////////////////////////
	// utilities
	function nongreedy(stream,re,words) {
	  if (stream.current().length == 1 && re.test(stream.current())) {
	    stream.backUp(1);
	    while (re.test(stream.peek())) {
	      stream.next();
	      if (is_member(stream.current(),words)) {
	        return true;
	      }
	    }
	    stream.backUp(stream.current().length-1);
	  }
	  return false;
	}

	function greedy(stream,re,words) {
	  if (stream.current().length == 1 && re.test(stream.current())) {
	    while (re.test(stream.peek())) {
	      stream.next();
	    }
	    while (0 < stream.current().length) {
	      if (is_member(stream.current(),words)) {
	        return true;
	      }else {
	        stream.backUp(1);
	      }
	    }
	    stream.next();
	  }
	  return false;
	}

	function doubleQuote(stream) {
	  return quote(stream, '"', '\\');
	}

	function singleQuote(stream) {
	  return quote(stream,'\'','\\');
	}

	function quote(stream,quoteChar,escapeChar) {
	  while (!stream.eol()) {
	    var ch = stream.next();
	    if (ch == quoteChar) {
	      return true;
	    }else if (ch == escapeChar) {
	      stream.next();
	    }
	  }
	  return false;
	}

	function lookahead(stream) {
	  var m = stream.match(/^\s*([^\s%])/, false);
	  return m ? m[1] : "";
	}

	function is_member(element,list) {
	  return (-1 < list.indexOf(element));
	}

	function rval(state,stream,type) {

	  // parse stack
	  pushToken(state,realToken(type,stream));

	  // map erlang token type to CodeMirror style class
	  //     erlang             -> CodeMirror tag
	  switch (type) {
	  case "atom":        return "atom";
	  case "attribute":   return "attribute";
	  case "boolean":     return "atom";
	  case "builtin":     return "builtin";
	  case "close_paren": return null;
	  case "colon":       return null;
	  case "comment":     return "comment";
	  case "dot":         return null;
	  case "error":       return "error";
	  case "fun":         return "meta";
	  case "function":    return "tag";
	  case "guard":       return "property";
	  case "keyword":     return "keyword";
	  case "macro":       return "macroName";
	  case "number":      return "number";
	  case "open_paren":  return null;
	  case "operator":    return "operator";
	  case "record":      return "bracket";
	  case "separator":   return null;
	  case "string":      return "string";
	  case "type":        return "def";
	  case "variable":    return "variable";
	  default:            return null;
	  }
	}

	function aToken(tok,col,ind,typ) {
	  return {token:  tok,
	          column: col,
	          indent: ind,
	          type:   typ};
	}

	function realToken(type,stream) {
	  return aToken(stream.current(),
	                stream.column(),
	                stream.indentation(),
	                type);
	}

	function fakeToken(type) {
	  return aToken(type,0,0,type);
	}

	function peekToken(state,depth) {
	  var len = state.tokenStack.length;
	  var dep = (depth ? depth : 1);

	  if (len < dep) {
	    return false;
	  }else {
	    return state.tokenStack[len-dep];
	  }
	}

	function pushToken(state,token) {

	  if (!(token.type == "comment" || token.type == "whitespace")) {
	    state.tokenStack = maybe_drop_pre(state.tokenStack,token);
	    state.tokenStack = maybe_drop_post(state.tokenStack);
	  }
	}

	function maybe_drop_pre(s,token) {
	  var last = s.length-1;

	  if (0 < last && s[last].type === "record" && token.type === "dot") {
	    s.pop();
	  }else if (0 < last && s[last].type === "group") {
	    s.pop();
	    s.push(token);
	  }else {
	    s.push(token);
	  }
	  return s;
	}

	function maybe_drop_post(s) {
	  if (!s.length) return s
	  var last = s.length-1;

	  if (s[last].type === "dot") {
	    return [];
	  }
	  if (last > 1 && s[last].type === "fun" && s[last-1].token === "fun") {
	    return s.slice(0,last-1);
	  }
	  switch (s[last].token) {
	  case "}":    return d(s,{g:["{"]});
	  case "]":    return d(s,{i:["["]});
	  case ")":    return d(s,{i:["("]});
	  case ">>":   return d(s,{i:["<<"]});
	  case "end":  return d(s,{i:["begin","case","fun","if","receive","try"]});
	  case ",":    return d(s,{e:["begin","try","when","->",
	                              ",","(","[","{","<<"]});
	  case "->":   return d(s,{r:["when"],
	                           m:["try","if","case","receive"]});
	  case ";":    return d(s,{E:["case","fun","if","receive","try","when"]});
	  case "catch":return d(s,{e:["try"]});
	  case "of":   return d(s,{e:["case"]});
	  case "after":return d(s,{e:["receive","try"]});
	  default:     return s;
	  }
	}

	function d(stack,tt) {
	  // stack is a stack of Token objects.
	  // tt is an object; {type:tokens}
	  // type is a char, tokens is a list of token strings.
	  // The function returns (possibly truncated) stack.
	  // It will descend the stack, looking for a Token such that Token.token
	  //  is a member of tokens. If it does not find that, it will normally (but
	  //  see "E" below) return stack. If it does find a match, it will remove
	  //  all the Tokens between the top and the matched Token.
	  // If type is "m", that is all it does.
	  // If type is "i", it will also remove the matched Token and the top Token.
	  // If type is "g", like "i", but add a fake "group" token at the top.
	  // If type is "r", it will remove the matched Token, but not the top Token.
	  // If type is "e", it will keep the matched Token but not the top Token.
	  // If type is "E", it behaves as for type "e", except if there is no match,
	  //  in which case it will return an empty stack.

	  for (var type in tt) {
	    var len = stack.length-1;
	    var tokens = tt[type];
	    for (var i = len-1; -1 < i ; i--) {
	      if (is_member(stack[i].token,tokens)) {
	        var ss = stack.slice(0,i);
	        switch (type) {
	        case "m": return ss.concat(stack[i]).concat(stack[len]);
	        case "r": return ss.concat(stack[len]);
	        case "i": return ss;
	        case "g": return ss.concat(fakeToken("group"));
	        case "E": return ss.concat(stack[i]);
	        case "e": return ss.concat(stack[i]);
	        }
	      }
	    }
	  }
	  return (type == "E" ? [] : stack);
	}

	/////////////////////////////////////////////////////////////////////////////
	// indenter

	function indenter$1(state, textAfter, cx) {
	  var t;
	  var wordAfter = wordafter(textAfter);
	  var currT = peekToken(state,1);
	  var prevT = peekToken(state,2);

	  if (state.in_string || state.in_atom) {
	    return null;
	  }else if (!prevT) {
	    return 0;
	  }else if (currT.token == "when") {
	    return currT.column + cx.unit;
	  }else if (wordAfter === "when" && prevT.type === "function") {
	    return prevT.indent+cx.unit;
	  }else if (wordAfter === "(" && currT.token === "fun") {
	    return  currT.column+3;
	  }else if (wordAfter === "catch" && (t = getToken(state,["try"]))) {
	    return t.column;
	  }else if (is_member(wordAfter,["end","after","of"])) {
	    t = getToken(state,["begin","case","fun","if","receive","try"]);
	    return t ? t.column : null;
	  }else if (is_member(wordAfter,closeParenWords)) {
	    t = getToken(state,openParenWords);
	    return t ? t.column : null;
	  }else if (is_member(currT.token,[",","|","||"]) ||
	            is_member(wordAfter,[",","|","||"])) {
	    t = postcommaToken(state);
	    return t ? t.column+t.token.length : cx.unit;
	  }else if (currT.token == "->") {
	    if (is_member(prevT.token, ["receive","case","if","try"])) {
	      return prevT.column+cx.unit+cx.unit;
	    }else {
	      return prevT.column+cx.unit;
	    }
	  }else if (is_member(currT.token,openParenWords)) {
	    return currT.column+currT.token.length;
	  }else {
	    t = defaultToken(state);
	    return truthy(t) ? t.column+cx.unit : 0;
	  }
	}

	function wordafter(str) {
	  var m = str.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);

	  return truthy(m) && (m.index === 0) ? m[0] : "";
	}

	function postcommaToken(state) {
	  var objs = state.tokenStack.slice(0,-1);
	  var i = getTokenIndex(objs,"type",["open_paren"]);

	  return truthy(objs[i]) ? objs[i] : false;
	}

	function defaultToken(state) {
	  var objs = state.tokenStack;
	  var stop = getTokenIndex(objs,"type",["open_paren","separator","keyword"]);
	  var oper = getTokenIndex(objs,"type",["operator"]);

	  if (truthy(stop) && truthy(oper) && stop < oper) {
	    return objs[stop+1];
	  } else if (truthy(stop)) {
	    return objs[stop];
	  } else {
	    return false;
	  }
	}

	function getToken(state,tokens) {
	  var objs = state.tokenStack;
	  var i = getTokenIndex(objs,"token",tokens);

	  return truthy(objs[i]) ? objs[i] : false;
	}

	function getTokenIndex(objs,propname,propvals) {

	  for (var i = objs.length-1; -1 < i ; i--) {
	    if (is_member(objs[i][propname],propvals)) {
	      return i;
	    }
	  }
	  return false;
	}

	function truthy(x) {
	  return (x !== false) && (x != null);
	}

	/////////////////////////////////////////////////////////////////////////////
	// this object defines the mode

	const erlang = {
	  name: "erlang",
	  startState() {
	    return {tokenStack: [],
	            in_string:  false,
	            in_atom:    false};
	  },

	  token: tokenizer,

	  indent: indenter$1,

	  languageData: {
	    commentTokens: {line: "%"}
	  }
	};

	var erlang$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		erlang: erlang
	});

	function sql(parserConfig) {
	  var client         = parserConfig.client || {},
	      atoms          = parserConfig.atoms || {"false": true, "true": true, "null": true},
	      builtin        = parserConfig.builtin || set(defaultBuiltin),
	      keywords       = parserConfig.keywords || set(sqlKeywords),
	      operatorChars  = parserConfig.operatorChars || /^[*+\-%<>!=&|~^\/]/,
	      support        = parserConfig.support || {},
	      hooks          = parserConfig.hooks || {},
	      dateSQL        = parserConfig.dateSQL || {"date" : true, "time" : true, "timestamp" : true},
	      backslashStringEscapes = parserConfig.backslashStringEscapes !== false,
	      brackets       = parserConfig.brackets || /^[\{}\(\)\[\]]/,
	      punctuation    = parserConfig.punctuation || /^[;.,:]/;

	  function tokenBase(stream, state) {
	    var ch = stream.next();

	    // call hooks from the mime type
	    if (hooks[ch]) {
	      var result = hooks[ch](stream, state);
	      if (result !== false) return result;
	    }

	    if (support.hexNumber &&
	      ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/))
	      || (ch == "x" || ch == "X") && stream.match(/^'[0-9a-fA-F]*'/))) {
	      // hex
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/hexadecimal-literals.html
	      return "number";
	    } else if (support.binaryNumber &&
	      (((ch == "b" || ch == "B") && stream.match(/^'[01]+'/))
	      || (ch == "0" && stream.match(/^b[01]*/)))) {
	      // bitstring
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/bit-field-literals.html
	      return "number";
	    } else if (ch.charCodeAt(0) > 47 && ch.charCodeAt(0) < 58) {
	      // numbers
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/number-literals.html
	      stream.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/);
	      support.decimallessFloat && stream.match(/^\.(?!\.)/);
	      return "number";
	    } else if (ch == "?" && (stream.eatSpace() || stream.eol() || stream.eat(";"))) {
	      // placeholders
	      return "macroName";
	    } else if (ch == "'" || (ch == '"' && support.doubleQuote)) {
	      // strings
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
	      state.tokenize = tokenLiteral(ch);
	      return state.tokenize(stream, state);
	    } else if ((((support.nCharCast && (ch == "n" || ch == "N"))
	        || (support.charsetCast && ch == "_" && stream.match(/[a-z][a-z0-9]*/i)))
	        && (stream.peek() == "'" || stream.peek() == '"'))) {
	      // charset casting: _utf8'str', N'str', n'str'
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
	      return "keyword";
	    } else if (support.escapeConstant && (ch == "e" || ch == "E")
	        && (stream.peek() == "'" || (stream.peek() == '"' && support.doubleQuote))) {
	      // escape constant: E'str', e'str'
	      // ref: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE
	      state.tokenize = function(stream, state) {
	        return (state.tokenize = tokenLiteral(stream.next(), true))(stream, state);
	      };
	      return "keyword";
	    } else if (support.commentSlashSlash && ch == "/" && stream.eat("/")) {
	      // 1-line comment
	      stream.skipToEnd();
	      return "comment";
	    } else if ((support.commentHash && ch == "#")
	        || (ch == "-" && stream.eat("-") && (!support.commentSpaceRequired || stream.eat(" ")))) {
	      // 1-line comments
	      // ref: https://kb.askmonty.org/en/comment-syntax/
	      stream.skipToEnd();
	      return "comment";
	    } else if (ch == "/" && stream.eat("*")) {
	      // multi-line comments
	      // ref: https://kb.askmonty.org/en/comment-syntax/
	      state.tokenize = tokenComment(1);
	      return state.tokenize(stream, state);
	    } else if (ch == ".") {
	      // .1 for 0.1
	      if (support.zerolessFloat && stream.match(/^(?:\d+(?:e[+-]?\d+)?)/i))
	        return "number";
	      if (stream.match(/^\.+/))
	        return null
	      // .table_name (ODBC)
	      // // ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html
	      if (support.ODBCdotTable && stream.match(/^[\w\d_$#]+/))
	        return "type";
	    } else if (operatorChars.test(ch)) {
	      // operators
	      stream.eatWhile(operatorChars);
	      return "operator";
	    } else if (brackets.test(ch)) {
	      // brackets
	      return "bracket";
	    } else if (punctuation.test(ch)) {
	      // punctuation
	      stream.eatWhile(punctuation);
	      return "punctuation";
	    } else if (ch == '{' &&
	        (stream.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/) || stream.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))) {
	      // dates (weird ODBC syntax)
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html
	      return "number";
	    } else {
	      stream.eatWhile(/^[_\w\d]/);
	      var word = stream.current().toLowerCase();
	      // dates (standard SQL syntax)
	      // ref: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html
	      if (dateSQL.hasOwnProperty(word) && (stream.match(/^( )+'[^']*'/) || stream.match(/^( )+"[^"]*"/)))
	        return "number";
	      if (atoms.hasOwnProperty(word)) return "atom";
	      if (builtin.hasOwnProperty(word)) return "type";
	      if (keywords.hasOwnProperty(word)) return "keyword";
	      if (client.hasOwnProperty(word)) return "builtin";
	      return null;
	    }
	  }

	  // 'string', with char specified in quote escaped by '\'
	  function tokenLiteral(quote, backslashEscapes) {
	    return function(stream, state) {
	      var escaped = false, ch;
	      while ((ch = stream.next()) != null) {
	        if (ch == quote && !escaped) {
	          state.tokenize = tokenBase;
	          break;
	        }
	        escaped = (backslashStringEscapes || backslashEscapes) && !escaped && ch == "\\";
	      }
	      return "string";
	    };
	  }
	  function tokenComment(depth) {
	    return function(stream, state) {
	      var m = stream.match(/^.*?(\/\*|\*\/)/);
	      if (!m) stream.skipToEnd();
	      else if (m[1] == "/*") state.tokenize = tokenComment(depth + 1);
	      else if (depth > 1) state.tokenize = tokenComment(depth - 1);
	      else state.tokenize = tokenBase;
	      return "comment"
	    }
	  }

	  function pushContext(stream, state, type) {
	    state.context = {
	      prev: state.context,
	      indent: stream.indentation(),
	      col: stream.column(),
	      type: type
	    };
	  }

	  function popContext(state) {
	    state.indent = state.context.indent;
	    state.context = state.context.prev;
	  }

	  return {
	    name: "sql",

	    startState: function() {
	      return {tokenize: tokenBase, context: null};
	    },

	    token: function(stream, state) {
	      if (stream.sol()) {
	        if (state.context && state.context.align == null)
	          state.context.align = false;
	      }
	      if (state.tokenize == tokenBase && stream.eatSpace()) return null;

	      var style = state.tokenize(stream, state);
	      if (style == "comment") return style;

	      if (state.context && state.context.align == null)
	        state.context.align = true;

	      var tok = stream.current();
	      if (tok == "(")
	        pushContext(stream, state, ")");
	      else if (tok == "[")
	        pushContext(stream, state, "]");
	      else if (state.context && state.context.type == tok)
	        popContext(state);
	      return style;
	    },

	    indent: function(state, textAfter, iCx) {
	      var cx = state.context;
	      if (!cx) return null;
	      var closing = textAfter.charAt(0) == cx.type;
	      if (cx.align) return cx.col + (closing ? 0 : 1);
	      else return cx.indent + (closing ? 0 : iCx.unit);
	    },

	    languageData: {
	      commentTokens: {
	        line: support.commentSlashSlash ? "//" : support.commentHash ? "#" : "--",
	        block: {open: "/*", close: "*/"}
	      },
	      closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]}
	    }
	  };
	}
	// `identifier`
	function hookIdentifier(stream) {
	  // MySQL/MariaDB identifiers
	  // ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html
	  var ch;
	  while ((ch = stream.next()) != null) {
	    if (ch == "`" && !stream.eat("`")) return "string.special";
	  }
	  stream.backUp(stream.current().length - 1);
	  return stream.eatWhile(/\w/) ? "string.special" : null;
	}

	// "identifier"
	function hookIdentifierDoublequote(stream) {
	  // Standard SQL /SQLite identifiers
	  // ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier
	  // ref: http://sqlite.org/lang_keywords.html
	  var ch;
	  while ((ch = stream.next()) != null) {
	    if (ch == "\"" && !stream.eat("\"")) return "string.special";
	  }
	  stream.backUp(stream.current().length - 1);
	  return stream.eatWhile(/\w/) ? "string.special" : null;
	}

	// variable token
	function hookVar(stream) {
	  // variables
	  // @@prefix.varName @varName
	  // varName can be quoted with ` or ' or "
	  // ref: http://dev.mysql.com/doc/refman/5.5/en/user-variables.html
	  if (stream.eat("@")) {
	    stream.match('session.');
	    stream.match('local.');
	    stream.match('global.');
	  }

	  if (stream.eat("'")) {
	    stream.match(/^.*'/);
	    return "string.special";
	  } else if (stream.eat('"')) {
	    stream.match(/^.*"/);
	    return "string.special";
	  } else if (stream.eat("`")) {
	    stream.match(/^.*`/);
	    return "string.special";
	  } else if (stream.match(/^[0-9a-zA-Z$\.\_]+/)) {
	    return "string.special";
	  }
	  return null;
	}
	// short client keyword token
	function hookClient(stream) {
	  // \N means NULL
	  // ref: http://dev.mysql.com/doc/refman/5.5/en/null-values.html
	  if (stream.eat("N")) {
	    return "atom";
	  }
	  // \g, etc
	  // ref: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html
	  return stream.match(/^[a-zA-Z.#!?]/) ? "string.special" : null;
	}

	// these keywords are used by all SQL dialects (however, a mode can still overwrite it)
	var sqlKeywords = "alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";

	// turn a space-separated list into an array
	function set(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var defaultBuiltin = "bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";

	// A generic SQL Mode. It's not a standard, it just try to support what is generally supported
	const standardSQL = sql({
	  keywords: set(sqlKeywords + "begin"),
	  builtin: set(defaultBuiltin),
	  atoms: set("false true null unknown"),
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable doubleQuote binaryNumber hexNumber")
	});

	const msSQL = sql({
	  client: set("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),
	  keywords: set(sqlKeywords + "begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),
	  builtin: set("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),
	  atoms: set("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),
	  operatorChars: /^[*+\-%<>!=^\&|\/]/,
	  brackets: /^[\{}\(\)]/,
	  punctuation: /^[;.,:/]/,
	  backslashStringEscapes: false,
	  dateSQL: set("date datetimeoffset datetime2 smalldatetime datetime time"),
	  hooks: {
	    "@":   hookVar
	  }
	});

	const mySQL = sql({
	  client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
	  keywords: set(sqlKeywords + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
	  builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
	  atoms: set("false true null unknown"),
	  operatorChars: /^[*+\-%<>!=&|^]/,
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
	  hooks: {
	    "@":   hookVar,
	    "`":   hookIdentifier,
	    "\\":  hookClient
	  }
	});

	const mariaDB = sql({
	  client: set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
	  keywords: set(sqlKeywords + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
	  builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
	  atoms: set("false true null unknown"),
	  operatorChars: /^[*+\-%<>!=&|^]/,
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
	  hooks: {
	    "@":   hookVar,
	    "`":   hookIdentifier,
	    "\\":  hookClient
	  }
	});

	// provided by the phpLiteAdmin project - phpliteadmin.org
	const sqlite = sql({
	  // commands of the official SQLite client, ref: https://www.sqlite.org/cli.html#dotcmd
	  client: set("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),
	  // ref: http://sqlite.org/lang_keywords.html
	  keywords: set(sqlKeywords + "abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),
	  // SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
	  builtin: set("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),
	  // ref: http://sqlite.org/syntax/literal-value.html
	  atoms: set("null current_date current_time current_timestamp"),
	  // ref: http://sqlite.org/lang_expr.html#binaryops
	  operatorChars: /^[*+\-%<>!=&|/~]/,
	  // SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
	  dateSQL: set("date time timestamp datetime"),
	  support: set("decimallessFloat zerolessFloat"),
	  identifierQuote: "\"",  //ref: http://sqlite.org/lang_keywords.html
	  hooks: {
	    // bind-parameters ref:http://sqlite.org/lang_expr.html#varparam
	    "@":   hookVar,
	    ":":   hookVar,
	    "?":   hookVar,
	    "$":   hookVar,
	    // The preferred way to escape Identifiers is using double quotes, ref: http://sqlite.org/lang_keywords.html
	    "\"":   hookIdentifierDoublequote,
	    // there is also support for backticks, ref: http://sqlite.org/lang_keywords.html
	    "`":   hookIdentifier
	  }
	});

	// the query language used by Apache Cassandra is called CQL, but this mime type
	// is called Cassandra to avoid confusion with Contextual Query Language
	const cassandra = sql({
	  client: { },
	  keywords: set("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),
	  builtin: set("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),
	  atoms: set("false true infinity NaN"),
	  operatorChars: /^[<>=]/,
	  dateSQL: { },
	  support: set("commentSlashSlash decimallessFloat"),
	  hooks: { }
	});

	// this is based on Peter Raganitsch's 'plsql' mode
	const plSQL = sql({
	  client:     set("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),
	  keywords:   set("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),
	  builtin:    set("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),
	  operatorChars: /^[*\/+\-%<>!=~]/,
	  dateSQL:    set("date time timestamp"),
	  support:    set("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")
	});

	// Created to support specific hive keywords
	const hive = sql({
	  keywords: set("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),
	  builtin: set("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),
	  atoms: set("false true null unknown"),
	  operatorChars: /^[*+\-%<>!=]/,
	  dateSQL: set("date timestamp"),
	  support: set("ODBCdotTable doubleQuote binaryNumber hexNumber")
	});

	const pgSQL = sql({
	  client: set("source"),
	  // For PostgreSQL - https://www.postgresql.org/docs/11/sql-keywords-appendix.html
	  // For pl/pgsql lang - https://github.com/postgres/postgres/blob/REL_11_2/src/pl/plpgsql/src/pl_scanner.c
	  keywords: set(sqlKeywords + "a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),
	  // https://www.postgresql.org/docs/11/datatype.html
	  builtin: set("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
	  atoms: set("false true null unknown"),
	  operatorChars: /^[*\/+\-%<>!=&|^\/#@?~]/,
	  backslashStringEscapes: false,
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")
	});

	// Google's SQL-like query language, GQL
	const gql = sql({
	  keywords: set("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),
	  atoms: set("false true"),
	  builtin: set("blob datetime first key __key__ string integer double boolean null"),
	  operatorChars: /^[*+\-%<>!=]/
	});

	// Greenplum
	const gpSQL = sql({
	  client: set("source"),
	  //https://github.com/greenplum-db/gpdb/blob/master/src/include/parser/kwlist.h
	  keywords: set("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),
	  builtin: set("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
	  atoms: set("false true null unknown"),
	  operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")
	});

	// Spark SQL
	const sparkSQL = sql({
	  keywords: set("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),
	  builtin: set("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),
	  atoms: set("false true null"),
	  operatorChars: /^[*\/+\-%<>!=~&|^]/,
	  dateSQL: set("date time timestamp"),
	  support: set("ODBCdotTable doubleQuote zerolessFloat")
	});

	// Esper
	const esper = sql({
	  client: set("source"),
	  // http://www.espertech.com/esper/release-5.5.0/esper-reference/html/appendix_keywords.html
	  keywords: set("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),
	  builtin: {},
	  atoms: set("false true null"),
	  operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
	  dateSQL: set("time"),
	  support: set("decimallessFloat zerolessFloat binaryNumber hexNumber")
	});

	/*
	  How options are used by SQL Mode
	  =================================================

	  keywords:
	    A list of keywords you want to be highlighted.
	  builtin:
	    A list of builtin types you want to be highlighted (if you want types to be of class "builtin" instead of "keyword").
	  operatorChars:
	    All characters that must be handled as operators.
	  client:
	    Commands parsed and executed by the client (not the server).
	  support:
	    A list of supported syntaxes which are not common, but are supported by more than 1 DBMS.
	    * ODBCdotTable: .tableName
	    * zerolessFloat: .1
	    * doubleQuote
	    * nCharCast: N'string'
	    * charsetCast: _utf8'string'
	    * commentHash: use # char for comments
	    * commentSlashSlash: use // for comments
	    * commentSpaceRequired: require a space after -- for comments
	  atoms:
	    Keywords that must be highlighted as atoms,. Some DBMS's support more atoms than others:
	    UNKNOWN, INFINITY, UNDERFLOW, NaN...
	  dateSQL:
	    Used for date/time SQL standard syntax, because not all DBMS's support same temporal types.
	*/

	var sql$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		cassandra: cassandra,
		esper: esper,
		gpSQL: gpSQL,
		gql: gql,
		hive: hive,
		mariaDB: mariaDB,
		msSQL: msSQL,
		mySQL: mySQL,
		pgSQL: pgSQL,
		plSQL: plSQL,
		sparkSQL: sparkSQL,
		sql: sql,
		sqlite: sqlite,
		standardSQL: standardSQL
	});

	const factor = simpleMode({
	    start: [
	      // comments
	      {regex: /#?!.*/, token: "comment"},
	      // strings """, multiline --> state
	      {regex: /"""/, token: "string", next: "string3"},
	      {regex: /(STRING:)(\s)/, token: ["keyword", null], next: "string2"},
	      {regex: /\S*?"/, token: "string", next: "string"},
	      // numbers: dec, hex, unicode, bin, fractional, complex
	      {regex: /(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/, token: "number"},
	      //{regex: /[+-]?/} //fractional
	      // definition: defining word, defined word, etc
	      {regex: /((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/, token: ["keyword", null, "def", null, "bracket"], next: "stack"},
	      // method definition: defining word, type, defined word, etc
	      {regex: /(M\:)(\s+)(\S+)(\s+)(\S+)/, token: ["keyword", null, "def", null, "tag"]},
	      // vocabulary using --> state
	      {regex: /USING\:/, token: "keyword", next: "vocabulary"},
	      // vocabulary definition/use
	      {regex: /(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "tag"]},
	      // definition: a defining word, defined word
	      {regex: /(\S+\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "def"]},
	      // "keywords", incl. ; t f . [ ] { } defining words
	      {regex: /(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/, token: "keyword"},
	      // <constructors> and the like
	      {regex: /\S+[\)>\.\*\?]+(?=\s|$)/, token: "builtin"},
	      {regex: /[\)><]+\S+(?=\s|$)/, token: "builtin"},
	      // operators
	      {regex: /(?:[\+\-\=\/\*<>])(?=\s|$)/, token: "keyword"},
	      // any id (?)
	      {regex: /\S+/, token: "variable"},
	      {regex: /\s+|./, token: null}
	    ],
	    vocabulary: [
	      {regex: /;/, token: "keyword", next: "start"},
	      {regex: /\S+/, token: "tag"},
	      {regex: /\s+|./, token: null}
	    ],
	    string: [
	      {regex: /(?:[^\\]|\\.)*?"/, token: "string", next: "start"},
	      {regex: /.*/, token: "string"}
	    ],
	    string2: [
	      {regex: /^;/, token: "keyword", next: "start"},
	      {regex: /.*/, token: "string"}
	    ],
	    string3: [
	      {regex: /(?:[^\\]|\\.)*?"""/, token: "string", next: "start"},
	      {regex: /.*/, token: "string"}
	    ],
	    stack: [
	      {regex: /\)/, token: "bracket", next: "start"},
	      {regex: /--/, token: "bracket"},
	      {regex: /\S+/, token: "meta"},
	      {regex: /\s+|./, token: null}
	    ],
	    languageData: {
	      name: "factor",
	      dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"],
	      commentTokens: {line: "!"}
	    }
	  });

	var factor$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		factor: factor
	});

	var keywords$y = {
	  "term": true,
	  "method": true, "accu": true,
	  "rule": true, "then": true, "is": true, "and": true, "or": true,
	  "if": true, "default": true
	};

	var start_blocks = {
	  "var_input": true,
	  "var_output": true,
	  "fuzzify": true,
	  "defuzzify": true,
	  "function_block": true,
	  "ruleblock": true
	};

	var end_blocks = {
	  "end_ruleblock": true,
	  "end_defuzzify": true,
	  "end_function_block": true,
	  "end_fuzzify": true,
	  "end_var": true
	};

	var atoms$a = {
	  "true": true, "false": true, "nan": true,
	  "real": true, "min": true, "max": true, "cog": true, "cogs": true
	};

	var isOperatorChar$c = /[+\-*&^%:=<>!|\/]/;

	function tokenBase$B(stream, state) {
	  var ch = stream.next();

	  if (/[\d\.]/.test(ch)) {
	    if (ch == ".") {
	      stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);
	    } else if (ch == "0") {
	      stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/);
	    } else {
	      stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);
	    }
	    return "number";
	  }

	  if (ch == "/" || ch == "(") {
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$g;
	      return tokenComment$g(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$c.test(ch)) {
	    stream.eatWhile(isOperatorChar$c);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_\xa1-\uffff]/);

	  var cur = stream.current().toLowerCase();
	  if (keywords$y.propertyIsEnumerable(cur) ||
	      start_blocks.propertyIsEnumerable(cur) ||
	      end_blocks.propertyIsEnumerable(cur)) {
	    return "keyword";
	  }
	  if (atoms$a.propertyIsEnumerable(cur)) return "atom";
	  return "variable";
	}


	function tokenComment$g(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if ((ch == "/" || ch == ")") && maybeEnd) {
	      state.tokenize = tokenBase$B;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function Context$8(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}

	function pushContext$b(state, col, type) {
	  return state.context = new Context$8(state.indented, col, type, null, state.context);
	}

	function popContext$b(state) {
	  if (!state.context.prev) return;
	  var t = state.context.type;
	  if (t == "end_block")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface

	const fcl = {
	  name: "fcl",
	  startState: function(indentUnit) {
	    return {
	      tokenize: null,
	      context: new Context$8(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;

	    var style = (state.tokenize || tokenBase$B)(stream, state);
	    if (style == "comment") return style;
	    if (ctx.align == null) ctx.align = true;

	    var cur = stream.current().toLowerCase();

	    if (start_blocks.propertyIsEnumerable(cur)) pushContext$b(state, stream.column(), "end_block");
	    else if (end_blocks.propertyIsEnumerable(cur))  popContext$b(state);

	    state.startOfLine = false;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$B && state.tokenize != null) return 0;
	    var ctx = state.context;

	    var closing = end_blocks.propertyIsEnumerable(textAfter);
	    if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    commentTokens: {line: "//", block: {open: "(*", close: "*)"}}
	  }
	};

	var fcl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		fcl: fcl
	});

	function toWordList(words) {
	  var ret = [];
	  words.split(' ').forEach(function(e){
	    ret.push({name: e});
	  });
	  return ret;
	}

	var coreWordList = toWordList(
	  'INVERT AND OR XOR\
 2* 2/ LSHIFT RSHIFT\
 0= = 0< < > U< MIN MAX\
 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP\
 >R R> R@\
 + - 1+ 1- ABS NEGATE\
 S>D * M* UM*\
 FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD\
 HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2!\
 ALIGN ALIGNED +! ALLOT\
 CHAR [CHAR] [ ] BL\
 FIND EXECUTE IMMEDIATE COUNT LITERAL STATE\
 ; DOES> >BODY\
 EVALUATE\
 SOURCE >IN\
 <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL\
 FILL MOVE\
 . CR EMIT SPACE SPACES TYPE U. .R U.R\
 ACCEPT\
 TRUE FALSE\
 <> U> 0<> 0>\
 NIP TUCK ROLL PICK\
 2>R 2R@ 2R>\
 WITHIN UNUSED MARKER\
 I J\
 TO\
 COMPILE, [COMPILE]\
 SAVE-INPUT RESTORE-INPUT\
 PAD ERASE\
 2LITERAL DNEGATE\
 D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS\
 M+ M*/ D. D.R 2ROT DU<\
 CATCH THROW\
 FREE RESIZE ALLOCATE\
 CS-PICK CS-ROLL\
 GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER\
 PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER\
 -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL');

	var immediateWordList = toWordList('IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE');

	function searchWordList (wordList, word) {
	  var i;
	  for (i = wordList.length - 1; i >= 0; i--) {
	    if (wordList[i].name === word.toUpperCase()) {
	      return wordList[i];
	    }
	  }
	  return undefined;
	}
	const forth = {
	  name: "forth",
	  startState: function() {
	    return {
	      state: '',
	      base: 10,
	      coreWordList: coreWordList,
	      immediateWordList: immediateWordList,
	      wordList: []
	    };
	  },
	  token: function (stream, stt) {
	    var mat;
	    if (stream.eatSpace()) {
	      return null;
	    }
	    if (stt.state === '') { // interpretation
	      if (stream.match(/^(\]|:NONAME)(\s|$)/i)) {
	        stt.state = ' compilation';
	        return 'builtin';
	      }
	      mat = stream.match(/^(\:)\s+(\S+)(\s|$)+/);
	      if (mat) {
	        stt.wordList.push({name: mat[2].toUpperCase()});
	        stt.state = ' compilation';
	        return 'def';
	      }
	      mat = stream.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i);
	      if (mat) {
	        stt.wordList.push({name: mat[2].toUpperCase()});
	        return 'def';
	      }
	      mat = stream.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/);
	      if (mat) {
	        return 'builtin'
	      }
	    } else { // compilation
	      // ; [
	      if (stream.match(/^(\;|\[)(\s)/)) {
	        stt.state = '';
	        stream.backUp(1);
	        return 'builtin';
	      }
	      if (stream.match(/^(\;|\[)($)/)) {
	        stt.state = '';
	        return 'builtin';
	      }
	      if (stream.match(/^(POSTPONE)\s+\S+(\s|$)+/)) {
	        return 'builtin';
	      }
	    }

	    // dynamic wordlist
	    mat = stream.match(/^(\S+)(\s+|$)/);
	    if (mat) {
	      if (searchWordList(stt.wordList, mat[1]) !== undefined) {
	        return 'variable';
	      }

	      // comments
	      if (mat[1] === '\\') {
	        stream.skipToEnd();
	        return 'comment';
	      }

	      // core words
	      if (searchWordList(stt.coreWordList, mat[1]) !== undefined) {
	        return 'builtin';
	      }
	      if (searchWordList(stt.immediateWordList, mat[1]) !== undefined) {
	        return 'keyword';
	      }

	      if (mat[1] === '(') {
	        stream.eatWhile(function (s) { return s !== ')'; });
	        stream.eat(')');
	        return 'comment';
	      }

	      // // strings
	      if (mat[1] === '.(') {
	        stream.eatWhile(function (s) { return s !== ')'; });
	        stream.eat(')');
	        return 'string';
	      }
	      if (mat[1] === 'S"' || mat[1] === '."' || mat[1] === 'C"') {
	        stream.eatWhile(function (s) { return s !== '"'; });
	        stream.eat('"');
	        return 'string';
	      }

	      // numbers
	      if (mat[1] - 0xfffffffff) {
	        return 'number';
	      }
	      // if (mat[1].match(/^[-+]?[0-9]+\.[0-9]*/)) {
	      //     return 'number';
	      // }

	      return 'atom';
	    }
	  }
	};

	var forth$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		forth: forth
	});

	function words$e(array) {
	  var keys = {};
	  for (var i = 0; i < array.length; ++i) {
	    keys[array[i]] = true;
	  }
	  return keys;
	}

	var keywords$x = words$e([
	  "abstract", "accept", "allocatable", "allocate",
	  "array", "assign", "asynchronous", "backspace",
	  "bind", "block", "byte", "call", "case",
	  "class", "close", "common", "contains",
	  "continue", "cycle", "data", "deallocate",
	  "decode", "deferred", "dimension", "do",
	  "elemental", "else", "encode", "end",
	  "endif", "entry", "enumerator", "equivalence",
	  "exit", "external", "extrinsic", "final",
	  "forall", "format", "function", "generic",
	  "go", "goto", "if", "implicit", "import", "include",
	  "inquire", "intent", "interface", "intrinsic",
	  "module", "namelist", "non_intrinsic",
	  "non_overridable", "none", "nopass",
	  "nullify", "open", "optional", "options",
	  "parameter", "pass", "pause", "pointer",
	  "print", "private", "program", "protected",
	  "public", "pure", "read", "recursive", "result",
	  "return", "rewind", "save", "select", "sequence",
	  "stop", "subroutine", "target", "then", "to", "type",
	  "use", "value", "volatile", "where", "while",
	  "write"]);
	var builtins$8 = words$e(["abort", "abs", "access", "achar", "acos",
	                      "adjustl", "adjustr", "aimag", "aint", "alarm",
	                      "all", "allocated", "alog", "amax", "amin",
	                      "amod", "and", "anint", "any", "asin",
	                      "associated", "atan", "besj", "besjn", "besy",
	                      "besyn", "bit_size", "btest", "cabs", "ccos",
	                      "ceiling", "cexp", "char", "chdir", "chmod",
	                      "clog", "cmplx", "command_argument_count",
	                      "complex", "conjg", "cos", "cosh", "count",
	                      "cpu_time", "cshift", "csin", "csqrt", "ctime",
	                      "c_funloc", "c_loc", "c_associated", "c_null_ptr",
	                      "c_null_funptr", "c_f_pointer", "c_null_char",
	                      "c_alert", "c_backspace", "c_form_feed",
	                      "c_new_line", "c_carriage_return",
	                      "c_horizontal_tab", "c_vertical_tab", "dabs",
	                      "dacos", "dasin", "datan", "date_and_time",
	                      "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy",
	                      "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf",
	                      "derfc", "dexp", "digits", "dim", "dint", "dlog",
	                      "dlog", "dmax", "dmin", "dmod", "dnint",
	                      "dot_product", "dprod", "dsign", "dsinh",
	                      "dsin", "dsqrt", "dtanh", "dtan", "dtime",
	                      "eoshift", "epsilon", "erf", "erfc", "etime",
	                      "exit", "exp", "exponent", "extends_type_of",
	                      "fdate", "fget", "fgetc", "float", "floor",
	                      "flush", "fnum", "fputc", "fput", "fraction",
	                      "fseek", "fstat", "ftell", "gerror", "getarg",
	                      "get_command", "get_command_argument",
	                      "get_environment_variable", "getcwd",
	                      "getenv", "getgid", "getlog", "getpid",
	                      "getuid", "gmtime", "hostnm", "huge", "iabs",
	                      "iachar", "iand", "iargc", "ibclr", "ibits",
	                      "ibset", "ichar", "idate", "idim", "idint",
	                      "idnint", "ieor", "ierrno", "ifix", "imag",
	                      "imagpart", "index", "int", "ior", "irand",
	                      "isatty", "ishft", "ishftc", "isign",
	                      "iso_c_binding", "is_iostat_end", "is_iostat_eor",
	                      "itime", "kill", "kind", "lbound", "len", "len_trim",
	                      "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc",
	                      "log", "logical", "long", "lshift", "lstat", "ltime",
	                      "matmul", "max", "maxexponent", "maxloc", "maxval",
	                      "mclock", "merge", "move_alloc", "min", "minexponent",
	                      "minloc", "minval", "mod", "modulo", "mvbits",
	                      "nearest", "new_line", "nint", "not", "or", "pack",
	                      "perror", "precision", "present", "product", "radix",
	                      "rand", "random_number", "random_seed", "range",
	                      "real", "realpart", "rename", "repeat", "reshape",
	                      "rrspacing", "rshift", "same_type_as", "scale",
	                      "scan", "second", "selected_int_kind",
	                      "selected_real_kind", "set_exponent", "shape",
	                      "short", "sign", "signal", "sinh", "sin", "sleep",
	                      "sngl", "spacing", "spread", "sqrt", "srand", "stat",
	                      "sum", "symlnk", "system", "system_clock", "tan",
	                      "tanh", "time", "tiny", "transfer", "transpose",
	                      "trim", "ttynam", "ubound", "umask", "unlink",
	                      "unpack", "verify", "xor", "zabs", "zcos", "zexp",
	                      "zlog", "zsin", "zsqrt"]);

	var dataTypes =  words$e(["c_bool", "c_char", "c_double", "c_double_complex",
	                        "c_float", "c_float_complex", "c_funptr", "c_int",
	                        "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t",
	                        "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t",
	                        "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t",
	                        "c_int_least64_t", "c_int_least8_t", "c_intmax_t",
	                        "c_intptr_t", "c_long", "c_long_double",
	                        "c_long_double_complex", "c_long_long", "c_ptr",
	                        "c_short", "c_signed_char", "c_size_t", "character",
	                        "complex", "double", "integer", "logical", "real"]);
	var isOperatorChar$b = /[+\-*&=<>\/\:]/;
	var litOperator = /^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;

	function tokenBase$A(stream, state) {

	  if (stream.match(litOperator)){
	    return 'operator';
	  }

	  var ch = stream.next();
	  if (ch == "!") {
	    stream.skipToEnd();
	    return "comment";
	  }
	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$m(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\[\]\(\),]/.test(ch)) {
	    return null;
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (isOperatorChar$b.test(ch)) {
	    stream.eatWhile(isOperatorChar$b);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_]/);
	  var word = stream.current().toLowerCase();

	  if (keywords$x.hasOwnProperty(word)){
	    return 'keyword';
	  }
	  if (builtins$8.hasOwnProperty(word) || dataTypes.hasOwnProperty(word)) {
	    return 'builtin';
	  }
	  return "variable";
	}

	function tokenString$m(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        end = true;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped) state.tokenize = null;
	    return "string";
	  };
	}

	// Interface

	const fortran = {
	  name: "fortran",
	  startState: function() {
	    return {tokenize: null};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = (state.tokenize || tokenBase$A)(stream, state);
	    if (style == "comment" || style == "meta") return style;
	    return style;
	  }
	};

	var fortran$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		fortran: fortran
	});

	function mlLike(parserConfig) {
	  var words = {
	    'as': 'keyword',
	    'do': 'keyword',
	    'else': 'keyword',
	    'end': 'keyword',
	    'exception': 'keyword',
	    'fun': 'keyword',
	    'functor': 'keyword',
	    'if': 'keyword',
	    'in': 'keyword',
	    'include': 'keyword',
	    'let': 'keyword',
	    'of': 'keyword',
	    'open': 'keyword',
	    'rec': 'keyword',
	    'struct': 'keyword',
	    'then': 'keyword',
	    'type': 'keyword',
	    'val': 'keyword',
	    'while': 'keyword',
	    'with': 'keyword'
	  };

	  var extraWords = parserConfig.extraWords || {};
	  for (var prop in extraWords) {
	    if (extraWords.hasOwnProperty(prop)) {
	      words[prop] = parserConfig.extraWords[prop];
	    }
	  }
	  var hintWords = [];
	  for (var k in words) { hintWords.push(k); }

	  function tokenBase(stream, state) {
	    var ch = stream.next();

	    if (ch === '"') {
	      state.tokenize = tokenString;
	      return state.tokenize(stream, state);
	    }
	    if (ch === '{') {
	      if (stream.eat('|')) {
	        state.longString = true;
	        state.tokenize = tokenLongString;
	        return state.tokenize(stream, state);
	      }
	    }
	    if (ch === '(') {
	      if (stream.match(/^\*(?!\))/)) {
	        state.commentLevel++;
	        state.tokenize = tokenComment;
	        return state.tokenize(stream, state);
	      }
	    }
	    if (ch === '~' || ch === '?') {
	      stream.eatWhile(/\w/);
	      return 'variableName.special';
	    }
	    if (ch === '`') {
	      stream.eatWhile(/\w/);
	      return 'quote';
	    }
	    if (ch === '/' && parserConfig.slashComments && stream.eat('/')) {
	      stream.skipToEnd();
	      return 'comment';
	    }
	    if (/\d/.test(ch)) {
	      if (ch === '0' && stream.eat(/[bB]/)) {
	        stream.eatWhile(/[01]/);
	      } if (ch === '0' && stream.eat(/[xX]/)) {
	        stream.eatWhile(/[0-9a-fA-F]/);
	      } if (ch === '0' && stream.eat(/[oO]/)) {
	        stream.eatWhile(/[0-7]/);
	      } else {
	        stream.eatWhile(/[\d_]/);
	        if (stream.eat('.')) {
	          stream.eatWhile(/[\d]/);
	        }
	        if (stream.eat(/[eE]/)) {
	          stream.eatWhile(/[\d\-+]/);
	        }
	      }
	      return 'number';
	    }
	    if ( /[+\-*&%=<>!?|@\.~:]/.test(ch)) {
	      return 'operator';
	    }
	    if (/[\w\xa1-\uffff]/.test(ch)) {
	      stream.eatWhile(/[\w\xa1-\uffff]/);
	      var cur = stream.current();
	      return words.hasOwnProperty(cur) ? words[cur] : 'variable';
	    }
	    return null
	  }

	  function tokenString(stream, state) {
	    var next, end = false, escaped = false;
	    while ((next = stream.next()) != null) {
	      if (next === '"' && !escaped) {
	        end = true;
	        break;
	      }
	      escaped = !escaped && next === '\\';
	    }
	    if (end && !escaped) {
	      state.tokenize = tokenBase;
	    }
	    return 'string';
	  }
	  function tokenComment(stream, state) {
	    var prev, next;
	    while(state.commentLevel > 0 && (next = stream.next()) != null) {
	      if (prev === '(' && next === '*') state.commentLevel++;
	      if (prev === '*' && next === ')') state.commentLevel--;
	      prev = next;
	    }
	    if (state.commentLevel <= 0) {
	      state.tokenize = tokenBase;
	    }
	    return 'comment';
	  }

	  function tokenLongString(stream, state) {
	    var prev, next;
	    while (state.longString && (next = stream.next()) != null) {
	      if (prev === '|' && next === '}') state.longString = false;
	      prev = next;
	    }
	    if (!state.longString) {
	      state.tokenize = tokenBase;
	    }
	    return 'string';
	  }

	  return {
	    startState: function() {return {tokenize: tokenBase, commentLevel: 0, longString: false};},
	    token: function(stream, state) {
	      if (stream.eatSpace()) return null;
	      return state.tokenize(stream, state);
	    },

	    languageData: {
	      autocomplete: hintWords,
	      commentTokens: {
	        line: parserConfig.slashComments ? "//" : undefined,
	        block: {open: "(*", close: "*)"}
	      }
	    }
	  };
	}
	const oCaml = mlLike({
	  name: "ocaml",
	  extraWords: {
	    'and': 'keyword',
	    'assert': 'keyword',
	    'begin': 'keyword',
	    'class': 'keyword',
	    'constraint': 'keyword',
	    'done': 'keyword',
	    'downto': 'keyword',
	    'external': 'keyword',
	    'function': 'keyword',
	    'initializer': 'keyword',
	    'lazy': 'keyword',
	    'match': 'keyword',
	    'method': 'keyword',
	    'module': 'keyword',
	    'mutable': 'keyword',
	    'new': 'keyword',
	    'nonrec': 'keyword',
	    'object': 'keyword',
	    'private': 'keyword',
	    'sig': 'keyword',
	    'to': 'keyword',
	    'try': 'keyword',
	    'value': 'keyword',
	    'virtual': 'keyword',
	    'when': 'keyword',

	    // builtins
	    'raise': 'builtin',
	    'failwith': 'builtin',
	    'true': 'builtin',
	    'false': 'builtin',

	    // Pervasives builtins
	    'asr': 'builtin',
	    'land': 'builtin',
	    'lor': 'builtin',
	    'lsl': 'builtin',
	    'lsr': 'builtin',
	    'lxor': 'builtin',
	    'mod': 'builtin',
	    'or': 'builtin',

	    // More Pervasives
	    'raise_notrace': 'builtin',
	    'trace': 'builtin',
	    'exit': 'builtin',
	    'print_string': 'builtin',
	    'print_endline': 'builtin',

	     'int': 'type',
	     'float': 'type',
	     'bool': 'type',
	     'char': 'type',
	     'string': 'type',
	     'unit': 'type',

	     // Modules
	     'List': 'builtin'
	  }
	});

	const fSharp = mlLike({
	  name: "fsharp",
	  extraWords: {
	    'abstract': 'keyword',
	    'assert': 'keyword',
	    'base': 'keyword',
	    'begin': 'keyword',
	    'class': 'keyword',
	    'default': 'keyword',
	    'delegate': 'keyword',
	    'do!': 'keyword',
	    'done': 'keyword',
	    'downcast': 'keyword',
	    'downto': 'keyword',
	    'elif': 'keyword',
	    'extern': 'keyword',
	    'finally': 'keyword',
	    'for': 'keyword',
	    'function': 'keyword',
	    'global': 'keyword',
	    'inherit': 'keyword',
	    'inline': 'keyword',
	    'interface': 'keyword',
	    'internal': 'keyword',
	    'lazy': 'keyword',
	    'let!': 'keyword',
	    'match': 'keyword',
	    'member': 'keyword',
	    'module': 'keyword',
	    'mutable': 'keyword',
	    'namespace': 'keyword',
	    'new': 'keyword',
	    'null': 'keyword',
	    'override': 'keyword',
	    'private': 'keyword',
	    'public': 'keyword',
	    'return!': 'keyword',
	    'return': 'keyword',
	    'select': 'keyword',
	    'static': 'keyword',
	    'to': 'keyword',
	    'try': 'keyword',
	    'upcast': 'keyword',
	    'use!': 'keyword',
	    'use': 'keyword',
	    'void': 'keyword',
	    'when': 'keyword',
	    'yield!': 'keyword',
	    'yield': 'keyword',

	    // Reserved words
	    'atomic': 'keyword',
	    'break': 'keyword',
	    'checked': 'keyword',
	    'component': 'keyword',
	    'const': 'keyword',
	    'constraint': 'keyword',
	    'constructor': 'keyword',
	    'continue': 'keyword',
	    'eager': 'keyword',
	    'event': 'keyword',
	    'external': 'keyword',
	    'fixed': 'keyword',
	    'method': 'keyword',
	    'mixin': 'keyword',
	    'object': 'keyword',
	    'parallel': 'keyword',
	    'process': 'keyword',
	    'protected': 'keyword',
	    'pure': 'keyword',
	    'sealed': 'keyword',
	    'tailcall': 'keyword',
	    'trait': 'keyword',
	    'virtual': 'keyword',
	    'volatile': 'keyword',

	    // builtins
	    'List': 'builtin',
	    'Seq': 'builtin',
	    'Map': 'builtin',
	    'Set': 'builtin',
	    'Option': 'builtin',
	    'int': 'builtin',
	    'string': 'builtin',
	    'not': 'builtin',
	    'true': 'builtin',
	    'false': 'builtin',

	    'raise': 'builtin',
	    'failwith': 'builtin'
	  },
	  slashComments: true
	});

	const sml = mlLike({
	  name: "sml",
	  extraWords: {
	    'abstype': 'keyword',
	    'and': 'keyword',
	    'andalso': 'keyword',
	    'case': 'keyword',
	    'datatype': 'keyword',
	    'fn': 'keyword',
	    'handle': 'keyword',
	    'infix': 'keyword',
	    'infixr': 'keyword',
	    'local': 'keyword',
	    'nonfix': 'keyword',
	    'op': 'keyword',
	    'orelse': 'keyword',
	    'raise': 'keyword',
	    'withtype': 'keyword',
	    'eqtype': 'keyword',
	    'sharing': 'keyword',
	    'sig': 'keyword',
	    'signature': 'keyword',
	    'structure': 'keyword',
	    'where': 'keyword',
	    'true': 'keyword',
	    'false': 'keyword',

	    // types
	    'int': 'builtin',
	    'real': 'builtin',
	    'string': 'builtin',
	    'char': 'builtin',
	    'bool': 'builtin'
	  },
	  slashComments: true
	});

	var mllike = /*#__PURE__*/Object.freeze({
		__proto__: null,
		fSharp: fSharp,
		oCaml: oCaml,
		sml: sml
	});

	function mkGas(arch) {
	  // If an architecture is specified, its initialization function may
	  // populate this array with custom parsing functions which will be
	  // tried in the event that the standard functions do not find a match.
	  var custom = [];

	  // The symbol used to start a line comment changes based on the target
	  // architecture.
	  // If no architecture is pased in "parserConfig" then only multiline
	  // comments will have syntax support.
	  var lineCommentStartSymbol = "";

	  // These directives are architecture independent.
	  // Machine specific directives should go in their respective
	  // architecture initialization function.
	  // Reference:
	  // http://sourceware.org/binutils/docs/as/Pseudo-Ops.html#Pseudo-Ops
	  var directives = {
	    ".abort" : "builtin",
	    ".align" : "builtin",
	    ".altmacro" : "builtin",
	    ".ascii" : "builtin",
	    ".asciz" : "builtin",
	    ".balign" : "builtin",
	    ".balignw" : "builtin",
	    ".balignl" : "builtin",
	    ".bundle_align_mode" : "builtin",
	    ".bundle_lock" : "builtin",
	    ".bundle_unlock" : "builtin",
	    ".byte" : "builtin",
	    ".cfi_startproc" : "builtin",
	    ".comm" : "builtin",
	    ".data" : "builtin",
	    ".def" : "builtin",
	    ".desc" : "builtin",
	    ".dim" : "builtin",
	    ".double" : "builtin",
	    ".eject" : "builtin",
	    ".else" : "builtin",
	    ".elseif" : "builtin",
	    ".end" : "builtin",
	    ".endef" : "builtin",
	    ".endfunc" : "builtin",
	    ".endif" : "builtin",
	    ".equ" : "builtin",
	    ".equiv" : "builtin",
	    ".eqv" : "builtin",
	    ".err" : "builtin",
	    ".error" : "builtin",
	    ".exitm" : "builtin",
	    ".extern" : "builtin",
	    ".fail" : "builtin",
	    ".file" : "builtin",
	    ".fill" : "builtin",
	    ".float" : "builtin",
	    ".func" : "builtin",
	    ".global" : "builtin",
	    ".gnu_attribute" : "builtin",
	    ".hidden" : "builtin",
	    ".hword" : "builtin",
	    ".ident" : "builtin",
	    ".if" : "builtin",
	    ".incbin" : "builtin",
	    ".include" : "builtin",
	    ".int" : "builtin",
	    ".internal" : "builtin",
	    ".irp" : "builtin",
	    ".irpc" : "builtin",
	    ".lcomm" : "builtin",
	    ".lflags" : "builtin",
	    ".line" : "builtin",
	    ".linkonce" : "builtin",
	    ".list" : "builtin",
	    ".ln" : "builtin",
	    ".loc" : "builtin",
	    ".loc_mark_labels" : "builtin",
	    ".local" : "builtin",
	    ".long" : "builtin",
	    ".macro" : "builtin",
	    ".mri" : "builtin",
	    ".noaltmacro" : "builtin",
	    ".nolist" : "builtin",
	    ".octa" : "builtin",
	    ".offset" : "builtin",
	    ".org" : "builtin",
	    ".p2align" : "builtin",
	    ".popsection" : "builtin",
	    ".previous" : "builtin",
	    ".print" : "builtin",
	    ".protected" : "builtin",
	    ".psize" : "builtin",
	    ".purgem" : "builtin",
	    ".pushsection" : "builtin",
	    ".quad" : "builtin",
	    ".reloc" : "builtin",
	    ".rept" : "builtin",
	    ".sbttl" : "builtin",
	    ".scl" : "builtin",
	    ".section" : "builtin",
	    ".set" : "builtin",
	    ".short" : "builtin",
	    ".single" : "builtin",
	    ".size" : "builtin",
	    ".skip" : "builtin",
	    ".sleb128" : "builtin",
	    ".space" : "builtin",
	    ".stab" : "builtin",
	    ".string" : "builtin",
	    ".struct" : "builtin",
	    ".subsection" : "builtin",
	    ".symver" : "builtin",
	    ".tag" : "builtin",
	    ".text" : "builtin",
	    ".title" : "builtin",
	    ".type" : "builtin",
	    ".uleb128" : "builtin",
	    ".val" : "builtin",
	    ".version" : "builtin",
	    ".vtable_entry" : "builtin",
	    ".vtable_inherit" : "builtin",
	    ".warning" : "builtin",
	    ".weak" : "builtin",
	    ".weakref" : "builtin",
	    ".word" : "builtin"
	  };

	  var registers = {};

	  function x86() {
	    lineCommentStartSymbol = "#";

	    registers.al  = "variable";
	    registers.ah  = "variable";
	    registers.ax  = "variable";
	    registers.eax = "variableName.special";
	    registers.rax = "variableName.special";

	    registers.bl  = "variable";
	    registers.bh  = "variable";
	    registers.bx  = "variable";
	    registers.ebx = "variableName.special";
	    registers.rbx = "variableName.special";

	    registers.cl  = "variable";
	    registers.ch  = "variable";
	    registers.cx  = "variable";
	    registers.ecx = "variableName.special";
	    registers.rcx = "variableName.special";

	    registers.dl  = "variable";
	    registers.dh  = "variable";
	    registers.dx  = "variable";
	    registers.edx = "variableName.special";
	    registers.rdx = "variableName.special";

	    registers.si  = "variable";
	    registers.esi = "variableName.special";
	    registers.rsi = "variableName.special";

	    registers.di  = "variable";
	    registers.edi = "variableName.special";
	    registers.rdi = "variableName.special";

	    registers.sp  = "variable";
	    registers.esp = "variableName.special";
	    registers.rsp = "variableName.special";

	    registers.bp  = "variable";
	    registers.ebp = "variableName.special";
	    registers.rbp = "variableName.special";

	    registers.ip  = "variable";
	    registers.eip = "variableName.special";
	    registers.rip = "variableName.special";

	    registers.cs  = "keyword";
	    registers.ds  = "keyword";
	    registers.ss  = "keyword";
	    registers.es  = "keyword";
	    registers.fs  = "keyword";
	    registers.gs  = "keyword";
	  }

	  function armv6() {
	    // Reference:
	    // http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf
	    // http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf
	    lineCommentStartSymbol = "@";
	    directives.syntax = "builtin";

	    registers.r0  = "variable";
	    registers.r1  = "variable";
	    registers.r2  = "variable";
	    registers.r3  = "variable";
	    registers.r4  = "variable";
	    registers.r5  = "variable";
	    registers.r6  = "variable";
	    registers.r7  = "variable";
	    registers.r8  = "variable";
	    registers.r9  = "variable";
	    registers.r10 = "variable";
	    registers.r11 = "variable";
	    registers.r12 = "variable";

	    registers.sp  = "variableName.special";
	    registers.lr  = "variableName.special";
	    registers.pc  = "variableName.special";
	    registers.r13 = registers.sp;
	    registers.r14 = registers.lr;
	    registers.r15 = registers.pc;

	    custom.push(function(ch, stream) {
	      if (ch === '#') {
	        stream.eatWhile(/\w/);
	        return "number";
	      }
	    });
	  }

	  if (arch === "x86") {
	    x86();
	  } else if (arch === "arm" || arch === "armv6") {
	    armv6();
	  }

	  function nextUntilUnescaped(stream, end) {
	    var escaped = false, next;
	    while ((next = stream.next()) != null) {
	      if (next === end && !escaped) {
	        return false;
	      }
	      escaped = !escaped && next === "\\";
	    }
	    return escaped;
	  }

	  function clikeComment(stream, state) {
	    var maybeEnd = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch === "/" && maybeEnd) {
	        state.tokenize = null;
	        break;
	      }
	      maybeEnd = (ch === "*");
	    }
	    return "comment";
	  }

	  return {
	    name: "gas",
	    startState: function() {
	      return {
	        tokenize: null
	      };
	    },

	    token: function(stream, state) {
	      if (state.tokenize) {
	        return state.tokenize(stream, state);
	      }

	      if (stream.eatSpace()) {
	        return null;
	      }

	      var style, cur, ch = stream.next();

	      if (ch === "/") {
	        if (stream.eat("*")) {
	          state.tokenize = clikeComment;
	          return clikeComment(stream, state);
	        }
	      }

	      if (ch === lineCommentStartSymbol) {
	        stream.skipToEnd();
	        return "comment";
	      }

	      if (ch === '"') {
	        nextUntilUnescaped(stream, '"');
	        return "string";
	      }

	      if (ch === '.') {
	        stream.eatWhile(/\w/);
	        cur = stream.current().toLowerCase();
	        style = directives[cur];
	        return style || null;
	      }

	      if (ch === '=') {
	        stream.eatWhile(/\w/);
	        return "tag";
	      }

	      if (ch === '{') {
	        return "bracket";
	      }

	      if (ch === '}') {
	        return "bracket";
	      }

	      if (/\d/.test(ch)) {
	        if (ch === "0" && stream.eat("x")) {
	          stream.eatWhile(/[0-9a-fA-F]/);
	          return "number";
	        }
	        stream.eatWhile(/\d/);
	        return "number";
	      }

	      if (/\w/.test(ch)) {
	        stream.eatWhile(/\w/);
	        if (stream.eat(":")) {
	          return 'tag';
	        }
	        cur = stream.current().toLowerCase();
	        style = registers[cur];
	        return style || null;
	      }

	      for (var i = 0; i < custom.length; i++) {
	        style = custom[i](ch, stream, state);
	        if (style) {
	          return style;
	        }
	      }
	    },

	    languageData: {
	      commentTokens: {
	        line: lineCommentStartSymbol,
	        block: {open: "/*", close: "*/"}
	      }
	    }
	  };
	}
	const gas = mkGas("x86");
	const gasArm = mkGas("arm");

	var gas$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		gas: gas,
		gasArm: gasArm
	});

	const gherkin = {
	  name: "gherkin",
	  startState: function () {
	    return {
	      lineNumber: 0,
	      tableHeaderLine: false,
	      allowFeature: true,
	      allowBackground: false,
	      allowScenario: false,
	      allowSteps: false,
	      allowPlaceholders: false,
	      allowMultilineArgument: false,
	      inMultilineString: false,
	      inMultilineTable: false,
	      inKeywordLine: false
	    };
	  },
	  token: function (stream, state) {
	    if (stream.sol()) {
	      state.lineNumber++;
	      state.inKeywordLine = false;
	      if (state.inMultilineTable) {
	        state.tableHeaderLine = false;
	        if (!stream.match(/\s*\|/, false)) {
	          state.allowMultilineArgument = false;
	          state.inMultilineTable = false;
	        }
	      }
	    }

	    stream.eatSpace();

	    if (state.allowMultilineArgument) {

	      // STRING
	      if (state.inMultilineString) {
	        if (stream.match('"""')) {
	          state.inMultilineString = false;
	          state.allowMultilineArgument = false;
	        } else {
	          stream.match(/.*/);
	        }
	        return "string";
	      }

	      // TABLE
	      if (state.inMultilineTable) {
	        if (stream.match(/\|\s*/)) {
	          return "bracket";
	        } else {
	          stream.match(/[^\|]*/);
	          return state.tableHeaderLine ? "header" : "string";
	        }
	      }

	      // DETECT START
	      if (stream.match('"""')) {
	        // String
	        state.inMultilineString = true;
	        return "string";
	      } else if (stream.match("|")) {
	        // Table
	        state.inMultilineTable = true;
	        state.tableHeaderLine = true;
	        return "bracket";
	      }

	    }

	    // LINE COMMENT
	    if (stream.match(/#.*/)) {
	      return "comment";

	      // TAG
	    } else if (!state.inKeywordLine && stream.match(/@\S+/)) {
	      return "tag";

	      // FEATURE
	    } else if (!state.inKeywordLine && state.allowFeature && stream.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)) {
	      state.allowScenario = true;
	      state.allowBackground = true;
	      state.allowPlaceholders = false;
	      state.allowSteps = false;
	      state.allowMultilineArgument = false;
	      state.inKeywordLine = true;
	      return "keyword";

	      // BACKGROUND
	    } else if (!state.inKeywordLine && state.allowBackground && stream.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)) {
	      state.allowPlaceholders = false;
	      state.allowSteps = true;
	      state.allowBackground = false;
	      state.allowMultilineArgument = false;
	      state.inKeywordLine = true;
	      return "keyword";

	      // SCENARIO OUTLINE
	    } else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)) {
	      state.allowPlaceholders = true;
	      state.allowSteps = true;
	      state.allowMultilineArgument = false;
	      state.inKeywordLine = true;
	      return "keyword";

	      // EXAMPLES
	    } else if (state.allowScenario && stream.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)) {
	      state.allowPlaceholders = false;
	      state.allowSteps = true;
	      state.allowBackground = false;
	      state.allowMultilineArgument = true;
	      return "keyword";

	      // SCENARIO
	    } else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)) {
	      state.allowPlaceholders = false;
	      state.allowSteps = true;
	      state.allowBackground = false;
	      state.allowMultilineArgument = false;
	      state.inKeywordLine = true;
	      return "keyword";

	      // STEPS
	    } else if (!state.inKeywordLine && state.allowSteps && stream.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)) {
	      state.inStep = true;
	      state.allowPlaceholders = true;
	      state.allowMultilineArgument = true;
	      state.inKeywordLine = true;
	      return "keyword";

	      // INLINE STRING
	    } else if (stream.match(/"[^"]*"?/)) {
	      return "string";

	      // PLACEHOLDER
	    } else if (state.allowPlaceholders && stream.match(/<[^>]*>?/)) {
	      return "variable";

	      // Fall through
	    } else {
	      stream.next();
	      stream.eatWhile(/[^@"<#]/);
	      return null;
	    }
	  }
	};

	var gherkin$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		gherkin: gherkin
	});

	var keywords$w = {
	  "break":true, "case":true, "chan":true, "const":true, "continue":true,
	  "default":true, "defer":true, "else":true, "fallthrough":true, "for":true,
	  "func":true, "go":true, "goto":true, "if":true, "import":true,
	  "interface":true, "map":true, "package":true, "range":true, "return":true,
	  "select":true, "struct":true, "switch":true, "type":true, "var":true,
	  "bool":true, "byte":true, "complex64":true, "complex128":true,
	  "float32":true, "float64":true, "int8":true, "int16":true, "int32":true,
	  "int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true,
	  "uint64":true, "int":true, "uint":true, "uintptr":true, "error": true,
	  "rune":true, "any":true, "comparable":true
	};

	var atoms$9 = {
	  "true":true, "false":true, "iota":true, "nil":true, "append":true,
	  "cap":true, "close":true, "complex":true, "copy":true, "delete":true, "imag":true,
	  "len":true, "make":true, "new":true, "panic":true, "print":true,
	  "println":true, "real":true, "recover":true
	};

	var isOperatorChar$a = /[+\-*&^%:=<>!|\/]/;

	var curPunc$9;

	function tokenBase$z(stream, state) {
	  var ch = stream.next();
	  if (ch == '"' || ch == "'" || ch == "`") {
	    state.tokenize = tokenString$l(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\d\.]/.test(ch)) {
	    if (ch == ".") {
	      stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);
	    } else if (ch == "0") {
	      stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/);
	    } else {
	      stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);
	    }
	    return "number";
	  }
	  if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    curPunc$9 = ch;
	    return null;
	  }
	  if (ch == "/") {
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$f;
	      return tokenComment$f(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$a.test(ch)) {
	    stream.eatWhile(isOperatorChar$a);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_\xa1-\uffff]/);
	  var cur = stream.current();
	  if (keywords$w.propertyIsEnumerable(cur)) {
	    if (cur == "case" || cur == "default") curPunc$9 = "case";
	    return "keyword";
	  }
	  if (atoms$9.propertyIsEnumerable(cur)) return "atom";
	  return "variable";
	}

	function tokenString$l(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && quote != "`" && next == "\\";
	    }
	    if (end || !(escaped || quote == "`"))
	      state.tokenize = tokenBase$z;
	    return "string";
	  };
	}

	function tokenComment$f(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$z;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function Context$7(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$a(state, col, type) {
	  return state.context = new Context$7(state.indented, col, type, null, state.context);
	}
	function popContext$a(state) {
	  if (!state.context.prev) return;
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface

	const go = {
	  name: "go",
	  startState: function(indentUnit) {
	    return {
	      tokenize: null,
	      context: new Context$7(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	      if (ctx.type == "case") ctx.type = "}";
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$9 = null;
	    var style = (state.tokenize || tokenBase$z)(stream, state);
	    if (style == "comment") return style;
	    if (ctx.align == null) ctx.align = true;

	    if (curPunc$9 == "{") pushContext$a(state, stream.column(), "}");
	    else if (curPunc$9 == "[") pushContext$a(state, stream.column(), "]");
	    else if (curPunc$9 == "(") pushContext$a(state, stream.column(), ")");
	    else if (curPunc$9 == "case") ctx.type = "case";
	    else if (curPunc$9 == "}" && ctx.type == "}") popContext$a(state);
	    else if (curPunc$9 == ctx.type) popContext$a(state);
	    state.startOfLine = false;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$z && state.tokenize != null) return null;
	    var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
	    if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter)) return ctx.indented;
	    var closing = firstChar == ctx.type;
	    if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s([{}]|case |default\s*:)$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
	  }
	};

	var go$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		go: go
	});

	function words$d(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	var keywords$v = words$d(
	  "abstract as assert boolean break byte case catch char class const continue def default " +
	    "do double else enum extends final finally float for goto if implements import in " +
	    "instanceof int interface long native new package private protected public return " +
	    "short static strictfp super switch synchronized threadsafe throw throws trait transient " +
	    "try void volatile while");
	var blockKeywords$2 = words$d("catch class def do else enum finally for if interface switch trait try while");
	var standaloneKeywords = words$d("return break continue");
	var atoms$8 = words$d("null true false this");

	var curPunc$8;
	function tokenBase$y(stream, state) {
	  var ch = stream.next();
	  if (ch == '"' || ch == "'") {
	    return startString(ch, stream, state);
	  }
	  if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    curPunc$8 = ch;
	    return null;
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    if (stream.eat(/eE/)) { stream.eat(/\+\-/); stream.eatWhile(/\d/); }
	    return "number";
	  }
	  if (ch == "/") {
	    if (stream.eat("*")) {
	      state.tokenize.push(tokenComment$e);
	      return tokenComment$e(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	    if (expectExpression(state.lastToken, false)) {
	      return startString(ch, stream, state);
	    }
	  }
	  if (ch == "-" && stream.eat(">")) {
	    curPunc$8 = "->";
	    return null;
	  }
	  if (/[+\-*&%=<>!?|\/~]/.test(ch)) {
	    stream.eatWhile(/[+\-*&%=<>|~]/);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_]/);
	  if (ch == "@") { stream.eatWhile(/[\w\$_\.]/); return "meta"; }
	  if (state.lastToken == ".") return "property";
	  if (stream.eat(":")) { curPunc$8 = "proplabel"; return "property"; }
	  var cur = stream.current();
	  if (atoms$8.propertyIsEnumerable(cur)) { return "atom"; }
	  if (keywords$v.propertyIsEnumerable(cur)) {
	    if (blockKeywords$2.propertyIsEnumerable(cur)) curPunc$8 = "newstatement";
	    else if (standaloneKeywords.propertyIsEnumerable(cur)) curPunc$8 = "standalone";
	    return "keyword";
	  }
	  return "variable";
	}
	tokenBase$y.isBase = true;

	function startString(quote, stream, state) {
	  var tripleQuoted = false;
	  if (quote != "/" && stream.eat(quote)) {
	    if (stream.eat(quote)) tripleQuoted = true;
	    else return "string";
	  }
	  function t(stream, state) {
	    var escaped = false, next, end = !tripleQuoted;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        if (!tripleQuoted) { break; }
	        if (stream.match(quote + quote)) { end = true; break; }
	      }
	      if (quote == '"' && next == "$" && !escaped) {
	        if (stream.eat("{")) {
	          state.tokenize.push(tokenBaseUntilBrace$1());
	          return "string";
	        } else if (stream.match(/^\w/, false)) {
	          state.tokenize.push(tokenVariableDeref);
	          return "string";
	        }
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end) state.tokenize.pop();
	    return "string";
	  }
	  state.tokenize.push(t);
	  return t(stream, state);
	}

	function tokenBaseUntilBrace$1() {
	  var depth = 1;
	  function t(stream, state) {
	    if (stream.peek() == "}") {
	      depth--;
	      if (depth == 0) {
	        state.tokenize.pop();
	        return state.tokenize[state.tokenize.length-1](stream, state);
	      }
	    } else if (stream.peek() == "{") {
	      depth++;
	    }
	    return tokenBase$y(stream, state);
	  }
	  t.isBase = true;
	  return t;
	}

	function tokenVariableDeref(stream, state) {
	  var next = stream.match(/^(\.|[\w\$_]+)/);
	  if (!next) {
	    state.tokenize.pop();
	    return state.tokenize[state.tokenize.length-1](stream, state)
	  }
	  return next[0] == "." ? null : "variable"
	}

	function tokenComment$e(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize.pop();
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function expectExpression(last, newline) {
	  return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) ||
	    last == "newstatement" || last == "keyword" || last == "proplabel" ||
	    (last == "standalone" && !newline);
	}

	function Context$6(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$9(state, col, type) {
	  return state.context = new Context$6(state.indented, col, type, null, state.context);
	}
	function popContext$9(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface

	const groovy = {
	  name: "groovy",
	  startState: function(indentUnit) {
	    return {
	      tokenize: [tokenBase$y],
	      context: new Context$6(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true,
	      lastToken: null
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	      // Automatic semicolon insertion
	      if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) {
	        popContext$9(state); ctx = state.context;
	      }
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$8 = null;
	    var style = state.tokenize[state.tokenize.length-1](stream, state);
	    if (style == "comment") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc$8 == ";" || curPunc$8 == ":") && ctx.type == "statement") popContext$9(state);
	    // Handle indentation for {x -> \n ... }
	    else if (curPunc$8 == "->" && ctx.type == "statement" && ctx.prev.type == "}") {
	      popContext$9(state);
	      state.context.align = false;
	    }
	    else if (curPunc$8 == "{") pushContext$9(state, stream.column(), "}");
	    else if (curPunc$8 == "[") pushContext$9(state, stream.column(), "]");
	    else if (curPunc$8 == "(") pushContext$9(state, stream.column(), ")");
	    else if (curPunc$8 == "}") {
	      while (ctx.type == "statement") ctx = popContext$9(state);
	      if (ctx.type == "}") ctx = popContext$9(state);
	      while (ctx.type == "statement") ctx = popContext$9(state);
	    }
	    else if (curPunc$8 == ctx.type) popContext$9(state);
	    else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc$8 == "newstatement"))
	      pushContext$9(state, stream.column(), "statement");
	    state.startOfLine = false;
	    state.lastToken = curPunc$8 || style;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (!state.tokenize[state.tokenize.length-1].isBase) return null;
	    var firstChar = textAfter && textAfter.charAt(0), ctx = state.context;
	    if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev;
	    var closing = firstChar == ctx.type;
	    if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : cx.unit);
	    else if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', "'''", '"""']}
	  }
	};

	var groovy$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		groovy: groovy
	});

	function switchState(source, setState, f) {
	  setState(f);
	  return f(source, setState);
	}

	// These should all be Unicode extended, as per the Haskell 2010 report
	var smallRE = /[a-z_]/;
	var largeRE = /[A-Z]/;
	var digitRE = /\d/;
	var hexitRE = /[0-9A-Fa-f]/;
	var octitRE = /[0-7]/;
	var idRE = /[a-z_A-Z0-9'\xa1-\uffff]/;
	var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/;
	var specialRE = /[(),;[\]`{}]/;
	var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer

	function normal$1(source, setState) {
	  if (source.eatWhile(whiteCharRE)) {
	    return null;
	  }

	  var ch = source.next();
	  if (specialRE.test(ch)) {
	    if (ch == '{' && source.eat('-')) {
	      var t = "comment";
	      if (source.eat('#')) {
	        t = "meta";
	      }
	      return switchState(source, setState, ncomment(t, 1));
	    }
	    return null;
	  }

	  if (ch == '\'') {
	    if (source.eat('\\')) {
	      source.next();  // should handle other escapes here
	    }
	    else {
	      source.next();
	    }
	    if (source.eat('\'')) {
	      return "string";
	    }
	    return "error";
	  }

	  if (ch == '"') {
	    return switchState(source, setState, stringLiteral);
	  }

	  if (largeRE.test(ch)) {
	    source.eatWhile(idRE);
	    if (source.eat('.')) {
	      return "qualifier";
	    }
	    return "type";
	  }

	  if (smallRE.test(ch)) {
	    source.eatWhile(idRE);
	    return "variable";
	  }

	  if (digitRE.test(ch)) {
	    if (ch == '0') {
	      if (source.eat(/[xX]/)) {
	        source.eatWhile(hexitRE); // should require at least 1
	        return "integer";
	      }
	      if (source.eat(/[oO]/)) {
	        source.eatWhile(octitRE); // should require at least 1
	        return "number";
	      }
	    }
	    source.eatWhile(digitRE);
	    var t = "number";
	    if (source.match(/^\.\d+/)) {
	      t = "number";
	    }
	    if (source.eat(/[eE]/)) {
	      t = "number";
	      source.eat(/[-+]/);
	      source.eatWhile(digitRE); // should require at least 1
	    }
	    return t;
	  }

	  if (ch == "." && source.eat("."))
	    return "keyword";

	  if (symbolRE.test(ch)) {
	    if (ch == '-' && source.eat(/-/)) {
	      source.eatWhile(/-/);
	      if (!source.eat(symbolRE)) {
	        source.skipToEnd();
	        return "comment";
	      }
	    }
	    source.eatWhile(symbolRE);
	    return "variable"
	  }

	  return "error";
	}

	function ncomment(type, nest) {
	  if (nest == 0) {
	    return normal$1;
	  }
	  return function(source, setState) {
	    var currNest = nest;
	    while (!source.eol()) {
	      var ch = source.next();
	      if (ch == '{' && source.eat('-')) {
	        ++currNest;
	      }
	      else if (ch == '-' && source.eat('}')) {
	        --currNest;
	        if (currNest == 0) {
	          setState(normal$1);
	          return type;
	        }
	      }
	    }
	    setState(ncomment(type, currNest));
	    return type;
	  };
	}

	function stringLiteral(source, setState) {
	  while (!source.eol()) {
	    var ch = source.next();
	    if (ch == '"') {
	      setState(normal$1);
	      return "string";
	    }
	    if (ch == '\\') {
	      if (source.eol() || source.eat(whiteCharRE)) {
	        setState(stringGap);
	        return "string";
	      }
	      if (source.eat('&')) ;
	      else {
	        source.next(); // should handle other escapes here
	      }
	    }
	  }
	  setState(normal$1);
	  return "error";
	}

	function stringGap(source, setState) {
	  if (source.eat('\\')) {
	    return switchState(source, setState, stringLiteral);
	  }
	  source.next();
	  setState(normal$1);
	  return "error";
	}


	var wellKnownWords = (function() {
	  var wkw = {};
	  function setType(t) {
	    return function () {
	      for (var i = 0; i < arguments.length; i++)
	        wkw[arguments[i]] = t;
	    };
	  }

	  setType("keyword")(
	    "case", "class", "data", "default", "deriving", "do", "else", "foreign",
	    "if", "import", "in", "infix", "infixl", "infixr", "instance", "let",
	    "module", "newtype", "of", "then", "type", "where", "_");

	  setType("keyword")(
	    "\.\.", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>");

	  setType("builtin")(
	    "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<*", "<=",
	    "<$>", "<*>", "=<<", "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*",
	    "*>", "**");

	  setType("builtin")(
	    "Applicative", "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum",
	    "Eq", "False", "FilePath", "Float", "Floating", "Fractional", "Functor",
	    "GT", "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left",
	    "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read",
	    "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS",
	    "String", "True");

	  setType("builtin")(
	    "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf",
	    "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling",
	    "compare", "concat", "concatMap", "const", "cos", "cosh", "curry",
	    "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either",
	    "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo",
	    "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter",
	    "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap",
	    "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger",
	    "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents",
	    "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized",
	    "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last",
	    "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map",
	    "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound",
	    "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or",
	    "otherwise", "pi", "pred", "print", "product", "properFraction", "pure",
	    "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile",
	    "readIO", "readList", "readLn", "readParen", "reads", "readsPrec",
	    "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse",
	    "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq",
	    "sequence", "sequence_", "show", "showChar", "showList", "showParen",
	    "showString", "shows", "showsPrec", "significand", "signum", "sin",
	    "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum",
	    "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger",
	    "toRational", "truncate", "uncurry", "undefined", "unlines", "until",
	    "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip",
	    "zip3", "zipWith", "zipWith3");

	  return wkw;
	})();

	const haskell = {
	  name: "haskell",
	  startState: function ()  { return { f: normal$1 }; },
	  copyState:  function (s) { return { f: s.f }; },

	  token: function(stream, state) {
	    var t = state.f(stream, function(s) { state.f = s; });
	    var w = stream.current();
	    return wellKnownWords.hasOwnProperty(w) ? wellKnownWords[w] : t;
	  },

	  languageData: {
	    commentTokens: {line: "--", block: {open: "{-", close: "-}"}}
	  }
	};

	var haskell$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		haskell: haskell
	});

	// Tokenizer

	function kw(type) {return {type: type, style: "keyword"};}
	var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
	var operator$1 = kw("operator"), atom$1 = {type: "atom", style: "atom"}, attribute$1 = {type:"attribute", style: "attribute"};
	var type$3 = kw("typedef");
	var keywords$u = {
	  "if": A, "while": A, "else": B, "do": B, "try": B,
	  "return": C, "break": C, "continue": C, "new": C, "throw": C,
	  "var": kw("var"), "inline":attribute$1, "static": attribute$1, "using":kw("import"),
	  "public": attribute$1, "private": attribute$1, "cast": kw("cast"), "import": kw("import"), "macro": kw("macro"),
	  "function": kw("function"), "catch": kw("catch"), "untyped": kw("untyped"), "callback": kw("cb"),
	  "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
	  "in": operator$1, "never": kw("property_access"), "trace":kw("trace"),
	  "class": type$3, "abstract":type$3, "enum":type$3, "interface":type$3, "typedef":type$3, "extends":type$3, "implements":type$3, "dynamic":type$3,
	  "true": atom$1, "false": atom$1, "null": atom$1
	};

	var isOperatorChar$9 = /[+\-*&%=<>!?|]/;

	function chain$7(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}

	function toUnescaped(stream, end) {
	  var escaped = false, next;
	  while ((next = stream.next()) != null) {
	    if (next == end && !escaped)
	      return true;
	    escaped = !escaped && next == "\\";
	  }
	}

	// Used as scratch variables to communicate multiple values without
	// consing up tons of objects.
	var type$3, content;
	function ret$1(tp, style, cont) {
	  type$3 = tp; content = cont;
	  return style;
	}

	function haxeTokenBase(stream, state) {
	  var ch = stream.next();
	  if (ch == '"' || ch == "'") {
	    return chain$7(stream, state, haxeTokenString(ch));
	  } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    return ret$1(ch);
	  } else if (ch == "0" && stream.eat(/x/i)) {
	    stream.eatWhile(/[\da-f]/i);
	    return ret$1("number", "number");
	  } else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) {
	    stream.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/);
	    return ret$1("number", "number");
	  } else if (state.reAllowed && (ch == "~" && stream.eat(/\//))) {
	    toUnescaped(stream, "/");
	    stream.eatWhile(/[gimsu]/);
	    return ret$1("regexp", "string.special");
	  } else if (ch == "/") {
	    if (stream.eat("*")) {
	      return chain$7(stream, state, haxeTokenComment);
	    } else if (stream.eat("/")) {
	      stream.skipToEnd();
	      return ret$1("comment", "comment");
	    } else {
	      stream.eatWhile(isOperatorChar$9);
	      return ret$1("operator", null, stream.current());
	    }
	  } else if (ch == "#") {
	    stream.skipToEnd();
	    return ret$1("conditional", "meta");
	  } else if (ch == "@") {
	    stream.eat(/:/);
	    stream.eatWhile(/[\w_]/);
	    return ret$1 ("metadata", "meta");
	  } else if (isOperatorChar$9.test(ch)) {
	    stream.eatWhile(isOperatorChar$9);
	    return ret$1("operator", null, stream.current());
	  } else {
	    var word;
	    if(/[A-Z]/.test(ch)) {
	      stream.eatWhile(/[\w_<>]/);
	      word = stream.current();
	      return ret$1("type", "type", word);
	    } else {
	      stream.eatWhile(/[\w_]/);
	      var word = stream.current(), known = keywords$u.propertyIsEnumerable(word) && keywords$u[word];
	      return (known && state.kwAllowed) ? ret$1(known.type, known.style, word) :
	        ret$1("variable", "variable", word);
	    }
	  }
	}

	function haxeTokenString(quote) {
	  return function(stream, state) {
	    if (toUnescaped(stream, quote))
	      state.tokenize = haxeTokenBase;
	    return ret$1("string", "string");
	  };
	}

	function haxeTokenComment(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = haxeTokenBase;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return ret$1("comment", "comment");
	}

	// Parser

	var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true};

	function HaxeLexical(indented, column, type, align, prev, info) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.prev = prev;
	  this.info = info;
	  if (align != null) this.align = align;
	}

	function inScope(state, varname) {
	  for (var v = state.localVars; v; v = v.next)
	    if (v.name == varname) return true;
	}

	function parseHaxe(state, style, type, content, stream) {
	  var cc = state.cc;
	  // Communicate our context to the combinators.
	  // (Less wasteful than consing up a hundred closures on every call.)
	  cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc;

	  if (!state.lexical.hasOwnProperty("align"))
	    state.lexical.align = true;

	  while(true) {
	    var combinator = cc.length ? cc.pop() : statement;
	    if (combinator(type, content)) {
	      while(cc.length && cc[cc.length - 1].lex)
	        cc.pop()();
	      if (cx.marked) return cx.marked;
	      if (type == "variable" && inScope(state, content)) return "variableName.local";
	      if (type == "variable" && imported(state, content)) return "variableName.special";
	      return style;
	    }
	  }
	}

	function imported(state, typename) {
	  if (/[a-z]/.test(typename.charAt(0)))
	    return false;
	  var len = state.importedtypes.length;
	  for (var i = 0; i<len; i++)
	    if(state.importedtypes[i]==typename) return true;
	}

	function registerimport(importname) {
	  var state = cx.state;
	  for (var t = state.importedtypes; t; t = t.next)
	    if(t.name == importname) return;
	  state.importedtypes = { name: importname, next: state.importedtypes };
	}
	// Combinator utils

	var cx = {state: null, column: null, marked: null, cc: null};
	function pass$2() {
	  for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
	}
	function cont$1() {
	  pass$2.apply(null, arguments);
	  return true;
	}
	function inList(name, list) {
	  for (var v = list; v; v = v.next)
	    if (v.name == name) return true;
	  return false;
	}
	function register(varname) {
	  var state = cx.state;
	  if (state.context) {
	    cx.marked = "def";
	    if (inList(varname, state.localVars)) return;
	    state.localVars = {name: varname, next: state.localVars};
	  } else if (state.globalVars) {
	    if (inList(varname, state.globalVars)) return;
	    state.globalVars = {name: varname, next: state.globalVars};
	  }
	}

	// Combinators

	var defaultVars = {name: "this", next: null};
	function pushcontext() {
	  if (!cx.state.context) cx.state.localVars = defaultVars;
	  cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
	}
	function popcontext() {
	  cx.state.localVars = cx.state.context.vars;
	  cx.state.context = cx.state.context.prev;
	}
	popcontext.lex = true;
	function pushlex(type, info) {
	  var result = function() {
	    var state = cx.state;
	    state.lexical = new HaxeLexical(state.indented, cx.stream.column(), type, null, state.lexical, info);
	  };
	  result.lex = true;
	  return result;
	}
	function poplex() {
	  var state = cx.state;
	  if (state.lexical.prev) {
	    if (state.lexical.type == ")")
	      state.indented = state.lexical.indented;
	    state.lexical = state.lexical.prev;
	  }
	}
	poplex.lex = true;

	function expect(wanted) {
	  function f(type) {
	    if (type == wanted) return cont$1();
	    else if (wanted == ";") return pass$2();
	    else return cont$1(f);
	  }
	  return f;
	}

	function statement(type) {
	  if (type == "@") return cont$1(metadef);
	  if (type == "var") return cont$1(pushlex("vardef"), vardef1, expect(";"), poplex);
	  if (type == "keyword a") return cont$1(pushlex("form"), expression, statement, poplex);
	  if (type == "keyword b") return cont$1(pushlex("form"), statement, poplex);
	  if (type == "{") return cont$1(pushlex("}"), pushcontext, block, poplex, popcontext);
	  if (type == ";") return cont$1();
	  if (type == "attribute") return cont$1(maybeattribute);
	  if (type == "function") return cont$1(functiondef);
	  if (type == "for") return cont$1(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"),
	                                 poplex, statement, poplex);
	  if (type == "variable") return cont$1(pushlex("stat"), maybelabel);
	  if (type == "switch") return cont$1(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
	                                    block, poplex, poplex);
	  if (type == "case") return cont$1(expression, expect(":"));
	  if (type == "default") return cont$1(expect(":"));
	  if (type == "catch") return cont$1(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
	                                   statement, poplex, popcontext);
	  if (type == "import") return cont$1(importdef, expect(";"));
	  if (type == "typedef") return cont$1(typedef);
	  return pass$2(pushlex("stat"), expression, expect(";"), poplex);
	}
	function expression(type) {
	  if (atomicTypes.hasOwnProperty(type)) return cont$1(maybeoperator);
	  if (type == "type" ) return cont$1(maybeoperator);
	  if (type == "function") return cont$1(functiondef);
	  if (type == "keyword c") return cont$1(maybeexpression);
	  if (type == "(") return cont$1(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
	  if (type == "operator") return cont$1(expression);
	  if (type == "[") return cont$1(pushlex("]"), commasep(maybeexpression, "]"), poplex, maybeoperator);
	  if (type == "{") return cont$1(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
	  return cont$1();
	}
	function maybeexpression(type) {
	  if (type.match(/[;\}\)\],]/)) return pass$2();
	  return pass$2(expression);
	}

	function maybeoperator(type, value) {
	  if (type == "operator" && /\+\+|--/.test(value)) return cont$1(maybeoperator);
	  if (type == "operator" || type == ":") return cont$1(expression);
	  if (type == ";") return;
	  if (type == "(") return cont$1(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
	  if (type == ".") return cont$1(property$1, maybeoperator);
	  if (type == "[") return cont$1(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
	}

	function maybeattribute(type) {
	  if (type == "attribute") return cont$1(maybeattribute);
	  if (type == "function") return cont$1(functiondef);
	  if (type == "var") return cont$1(vardef1);
	}

	function metadef(type) {
	  if(type == ":") return cont$1(metadef);
	  if(type == "variable") return cont$1(metadef);
	  if(type == "(") return cont$1(pushlex(")"), commasep(metaargs, ")"), poplex, statement);
	}
	function metaargs(type) {
	  if(type == "variable") return cont$1();
	}

	function importdef (type, value) {
	  if(type == "variable" && /[A-Z]/.test(value.charAt(0))) { registerimport(value); return cont$1(); }
	  else if(type == "variable" || type == "property" || type == "." || value == "*") return cont$1(importdef);
	}

	function typedef (type, value)
	{
	  if(type == "variable" && /[A-Z]/.test(value.charAt(0))) { registerimport(value); return cont$1(); }
	  else if (type == "type" && /[A-Z]/.test(value.charAt(0))) { return cont$1(); }
	}

	function maybelabel(type) {
	  if (type == ":") return cont$1(poplex, statement);
	  return pass$2(maybeoperator, expect(";"), poplex);
	}
	function property$1(type) {
	  if (type == "variable") {cx.marked = "property"; return cont$1();}
	}
	function objprop(type) {
	  if (type == "variable") cx.marked = "property";
	  if (atomicTypes.hasOwnProperty(type)) return cont$1(expect(":"), expression);
	}
	function commasep(what, end) {
	  function proceed(type) {
	    if (type == ",") return cont$1(what, proceed);
	    if (type == end) return cont$1();
	    return cont$1(expect(end));
	  }
	  return function(type) {
	    if (type == end) return cont$1();
	    else return pass$2(what, proceed);
	  };
	}
	function block(type) {
	  if (type == "}") return cont$1();
	  return pass$2(statement, block);
	}
	function vardef1(type, value) {
	  if (type == "variable"){register(value); return cont$1(typeuse, vardef2);}
	  return cont$1();
	}
	function vardef2(type, value) {
	  if (value == "=") return cont$1(expression, vardef2);
	  if (type == ",") return cont$1(vardef1);
	}
	function forspec1(type, value) {
	  if (type == "variable") {
	    register(value);
	    return cont$1(forin, expression)
	  } else {
	    return pass$2()
	  }
	}
	function forin(_type, value) {
	  if (value == "in") return cont$1();
	}
	function functiondef(type, value) {
	  //function names starting with upper-case letters are recognised as types, so cludging them together here.
	  if (type == "variable" || type == "type") {register(value); return cont$1(functiondef);}
	  if (value == "new") return cont$1(functiondef);
	  if (type == "(") return cont$1(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, typeuse, statement, popcontext);
	}
	function typeuse(type) {
	  if(type == ":") return cont$1(typestring);
	}
	function typestring(type) {
	  if(type == "type") return cont$1();
	  if(type == "variable") return cont$1();
	  if(type == "{") return cont$1(pushlex("}"), commasep(typeprop, "}"), poplex);
	}
	function typeprop(type) {
	  if(type == "variable") return cont$1(typeuse);
	}
	function funarg(type, value) {
	  if (type == "variable") {register(value); return cont$1(typeuse);}
	}

	// Interface
	const haxe = {
	  name: "haxe",
	  startState: function(indentUnit) {
	    var defaulttypes = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"];
	    var state = {
	      tokenize: haxeTokenBase,
	      reAllowed: true,
	      kwAllowed: true,
	      cc: [],
	      lexical: new HaxeLexical(-indentUnit, 0, "block", false),
	      importedtypes: defaulttypes,
	      context: null,
	      indented: 0
	    };
	    return state;
	  },

	  token: function(stream, state) {
	    if (stream.sol()) {
	      if (!state.lexical.hasOwnProperty("align"))
	        state.lexical.align = false;
	      state.indented = stream.indentation();
	    }
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);
	    if (type$3 == "comment") return style;
	    state.reAllowed = !!(type$3 == "operator" || type$3 == "keyword c" || type$3.match(/^[\[{}\(,;:]$/));
	    state.kwAllowed = type$3 != '.';
	    return parseHaxe(state, style, type$3, content, stream);
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != haxeTokenBase) return 0;
	    var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
	    if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
	    var type = lexical.type, closing = firstChar == type;
	    if (type == "vardef") return lexical.indented + 4;
	    else if (type == "form" && firstChar == "{") return lexical.indented;
	    else if (type == "stat" || type == "form") return lexical.indented + cx.unit;
	    else if (lexical.info == "switch" && !closing)
	      return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx.unit : 2 * cx.unit);
	    else if (lexical.align) return lexical.column + (closing ? 0 : 1);
	    else return lexical.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
	  }
	};

	const hxml = {
	  name: "hxml",
	  startState: function () {
	    return {
	      define: false,
	      inString: false
	    };
	  },
	  token: function (stream, state) {
	    var ch = stream.peek();
	    var sol = stream.sol();

	    ///* comments */
	    if (ch == "#") {
	      stream.skipToEnd();
	      return "comment";
	    }
	    if (sol && ch == "-") {
	      var style = "variable-2";

	      stream.eat(/-/);

	      if (stream.peek() == "-") {
	        stream.eat(/-/);
	        style = "keyword a";
	      }

	      if (stream.peek() == "D") {
	        stream.eat(/[D]/);
	        style = "keyword c";
	        state.define = true;
	      }

	      stream.eatWhile(/[A-Z]/i);
	      return style;
	    }

	    var ch = stream.peek();

	    if (state.inString == false && ch == "'") {
	      state.inString = true;
	      stream.next();
	    }

	    if (state.inString == true) {
	      if (stream.skipTo("'")) ; else {
	        stream.skipToEnd();
	      }

	      if (stream.peek() == "'") {
	        stream.next();
	        state.inString = false;
	      }

	      return "string";
	    }

	    stream.next();
	    return null;
	  },
	  languageData: {
	    commentTokens: {line: "#"}
	  }
	};

	var haxe$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		haxe: haxe,
		hxml: hxml
	});

	function failFirstLine(stream, state) {
	  stream.skipToEnd();
	  state.cur = header$1;
	  return "error";
	}

	function start(stream, state) {
	  if (stream.match(/^HTTP\/\d\.\d/)) {
	    state.cur = responseStatusCode;
	    return "keyword";
	  } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
	    state.cur = requestPath;
	    return "keyword";
	  } else {
	    return failFirstLine(stream, state);
	  }
	}

	function responseStatusCode(stream, state) {
	  var code = stream.match(/^\d+/);
	  if (!code) return failFirstLine(stream, state);

	  state.cur = responseStatusText;
	  var status = Number(code[0]);
	  if (status >= 100 && status < 400) {
	    return "atom";
	  } else {
	    return "error";
	  }
	}

	function responseStatusText(stream, state) {
	  stream.skipToEnd();
	  state.cur = header$1;
	  return null;
	}

	function requestPath(stream, state) {
	  stream.eatWhile(/\S/);
	  state.cur = requestProtocol;
	  return "string.special";
	}

	function requestProtocol(stream, state) {
	  if (stream.match(/^HTTP\/\d\.\d$/)) {
	    state.cur = header$1;
	    return "keyword";
	  } else {
	    return failFirstLine(stream, state);
	  }
	}

	function header$1(stream) {
	  if (stream.sol() && !stream.eat(/[ \t]/)) {
	    if (stream.match(/^.*?:/)) {
	      return "atom";
	    } else {
	      stream.skipToEnd();
	      return "error";
	    }
	  } else {
	    stream.skipToEnd();
	    return "string";
	  }
	}

	function body(stream) {
	  stream.skipToEnd();
	  return null;
	}

	const http = {
	  name: "http",
	  token: function(stream, state) {
	    var cur = state.cur;
	    if (cur != header$1 && cur != body && stream.eatSpace()) return null;
	    return cur(stream, state);
	  },

	  blankLine: function(state) {
	    state.cur = body;
	  },

	  startState: function() {
	    return {cur: start};
	  }
	};

	var http$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		http: http
	});

	function wordRegexp$b(words) {
	  return new RegExp('^((' + words.join(')|(') + '))\\b', 'i');
	}
	var builtinArray$1 = [
	  'a_correlate', 'abs', 'acos', 'adapt_hist_equal', 'alog',
	  'alog2', 'alog10', 'amoeba', 'annotate', 'app_user_dir',
	  'app_user_dir_query', 'arg_present', 'array_equal', 'array_indices',
	  'arrow', 'ascii_template', 'asin', 'assoc', 'atan',
	  'axis', 'axis', 'bandpass_filter', 'bandreject_filter', 'barplot',
	  'bar_plot', 'beseli', 'beselj', 'beselk', 'besely',
	  'beta', 'biginteger', 'bilinear', 'bin_date', 'binary_template',
	  'bindgen', 'binomial', 'bit_ffs', 'bit_population', 'blas_axpy',
	  'blk_con', 'boolarr', 'boolean', 'boxplot', 'box_cursor',
	  'breakpoint', 'broyden', 'bubbleplot', 'butterworth', 'bytarr',
	  'byte', 'byteorder', 'bytscl', 'c_correlate', 'calendar',
	  'caldat', 'call_external', 'call_function', 'call_method',
	  'call_procedure', 'canny', 'catch', 'cd', 'cdf', 'ceil',
	  'chebyshev', 'check_math', 'chisqr_cvf', 'chisqr_pdf', 'choldc',
	  'cholsol', 'cindgen', 'cir_3pnt', 'clipboard', 'close',
	  'clust_wts', 'cluster', 'cluster_tree', 'cmyk_convert', 'code_coverage',
	  'color_convert', 'color_exchange', 'color_quan', 'color_range_map',
	  'colorbar', 'colorize_sample', 'colormap_applicable',
	  'colormap_gradient', 'colormap_rotation', 'colortable',
	  'comfit', 'command_line_args', 'common', 'compile_opt', 'complex',
	  'complexarr', 'complexround', 'compute_mesh_normals', 'cond', 'congrid',
	  'conj', 'constrained_min', 'contour', 'contour', 'convert_coord',
	  'convol', 'convol_fft', 'coord2to3', 'copy_lun', 'correlate',
	  'cos', 'cosh', 'cpu', 'cramer', 'createboxplotdata',
	  'create_cursor', 'create_struct', 'create_view', 'crossp', 'crvlength',
	  'ct_luminance', 'cti_test', 'cursor', 'curvefit', 'cv_coord',
	  'cvttobm', 'cw_animate', 'cw_animate_getp', 'cw_animate_load',
	  'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index',
	  'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel', 'cw_form',
	  'cw_fslider', 'cw_light_editor', 'cw_light_editor_get',
	  'cw_light_editor_set', 'cw_orient', 'cw_palette_editor',
	  'cw_palette_editor_get', 'cw_palette_editor_set', 'cw_pdmenu',
	  'cw_rgbslider', 'cw_tmpl', 'cw_zoom', 'db_exists',
	  'dblarr', 'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key',
	  'define_msgblk', 'define_msgblk_from_file', 'defroi', 'defsysv',
	  'delvar', 'dendro_plot', 'dendrogram', 'deriv', 'derivsig',
	  'determ', 'device', 'dfpmin', 'diag_matrix', 'dialog_dbconnect',
	  'dialog_message', 'dialog_pickfile', 'dialog_printersetup',
	  'dialog_printjob', 'dialog_read_image',
	  'dialog_write_image', 'dictionary', 'digital_filter', 'dilate', 'dindgen',
	  'dissolve', 'dist', 'distance_measure', 'dlm_load', 'dlm_register',
	  'doc_library', 'double', 'draw_roi', 'edge_dog', 'efont',
	  'eigenql', 'eigenvec', 'ellipse', 'elmhes', 'emboss',
	  'empty', 'enable_sysrtn', 'eof', 'eos', 'erase',
	  'erf', 'erfc', 'erfcx', 'erode', 'errorplot',
	  'errplot', 'estimator_filter', 'execute', 'exit', 'exp',
	  'expand', 'expand_path', 'expint', 'extract', 'extract_slice',
	  'f_cvf', 'f_pdf', 'factorial', 'fft', 'file_basename',
	  'file_chmod', 'file_copy', 'file_delete', 'file_dirname',
	  'file_expand_path', 'file_gunzip', 'file_gzip', 'file_info',
	  'file_lines', 'file_link', 'file_mkdir', 'file_move',
	  'file_poll_input', 'file_readlink', 'file_same',
	  'file_search', 'file_tar', 'file_test', 'file_untar', 'file_unzip',
	  'file_which', 'file_zip', 'filepath', 'findgen', 'finite',
	  'fix', 'flick', 'float', 'floor', 'flow3',
	  'fltarr', 'flush', 'format_axis_values', 'forward_function', 'free_lun',
	  'fstat', 'fulstr', 'funct', 'function', 'fv_test',
	  'fx_root', 'fz_roots', 'gamma', 'gamma_ct', 'gauss_cvf',
	  'gauss_pdf', 'gauss_smooth', 'gauss2dfit', 'gaussfit',
	  'gaussian_function', 'gaussint', 'get_drive_list', 'get_dxf_objects',
	  'get_kbrd', 'get_login_info',
	  'get_lun', 'get_screen_size', 'getenv', 'getwindows', 'greg2jul',
	  'grib', 'grid_input', 'grid_tps', 'grid3', 'griddata',
	  'gs_iter', 'h_eq_ct', 'h_eq_int', 'hanning', 'hash',
	  'hdf', 'hdf5', 'heap_free', 'heap_gc', 'heap_nosave',
	  'heap_refcount', 'heap_save', 'help', 'hilbert', 'hist_2d',
	  'hist_equal', 'histogram', 'hls', 'hough', 'hqr',
	  'hsv', 'i18n_multibytetoutf8',
	  'i18n_multibytetowidechar', 'i18n_utf8tomultibyte',
	  'i18n_widechartomultibyte',
	  'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity',
	  'idl_base64', 'idl_container', 'idl_validname',
	  'idlexbr_assistant', 'idlitsys_createtool',
	  'idlunit', 'iellipse', 'igamma', 'igetcurrent', 'igetdata',
	  'igetid', 'igetproperty', 'iimage', 'image', 'image_cont',
	  'image_statistics', 'image_threshold', 'imaginary', 'imap', 'indgen',
	  'int_2d', 'int_3d', 'int_tabulated', 'intarr', 'interpol',
	  'interpolate', 'interval_volume', 'invert', 'ioctl', 'iopen',
	  'ir_filter', 'iplot', 'ipolygon', 'ipolyline', 'iputdata',
	  'iregister', 'ireset', 'iresolve', 'irotate', 'isa',
	  'isave', 'iscale', 'isetcurrent', 'isetproperty', 'ishft',
	  'isocontour', 'isosurface', 'isurface', 'itext', 'itranslate',
	  'ivector', 'ivolume', 'izoom', 'journal', 'json_parse',
	  'json_serialize', 'jul2greg', 'julday', 'keyword_set', 'krig2d',
	  'kurtosis', 'kw_test', 'l64indgen', 'la_choldc', 'la_cholmprove',
	  'la_cholsol', 'la_determ', 'la_eigenproblem', 'la_eigenql', 'la_eigenvec',
	  'la_elmhes', 'la_gm_linear_model', 'la_hqr', 'la_invert',
	  'la_least_square_equality', 'la_least_squares', 'la_linear_equation',
	  'la_ludc', 'la_lumprove', 'la_lusol',
	  'la_svd', 'la_tridc', 'la_trimprove', 'la_triql', 'la_trired',
	  'la_trisol', 'label_date', 'label_region', 'ladfit', 'laguerre',
	  'lambda', 'lambdap', 'lambertw', 'laplacian', 'least_squares_filter',
	  'leefilt', 'legend', 'legendre', 'linbcg', 'lindgen',
	  'linfit', 'linkimage', 'list', 'll_arc_distance', 'lmfit',
	  'lmgr', 'lngamma', 'lnp_test', 'loadct', 'locale_get',
	  'logical_and', 'logical_or', 'logical_true', 'lon64arr', 'lonarr',
	  'long', 'long64', 'lsode', 'lu_complex', 'ludc',
	  'lumprove', 'lusol', 'm_correlate', 'machar', 'make_array',
	  'make_dll', 'make_rt', 'map', 'mapcontinents', 'mapgrid',
	  'map_2points', 'map_continents', 'map_grid', 'map_image', 'map_patch',
	  'map_proj_forward', 'map_proj_image', 'map_proj_info',
	  'map_proj_init', 'map_proj_inverse',
	  'map_set', 'matrix_multiply', 'matrix_power', 'max', 'md_test',
	  'mean', 'meanabsdev', 'mean_filter', 'median', 'memory',
	  'mesh_clip', 'mesh_decimate', 'mesh_issolid',
	  'mesh_merge', 'mesh_numtriangles',
	  'mesh_obj', 'mesh_smooth', 'mesh_surfacearea',
	  'mesh_validate', 'mesh_volume',
	  'message', 'min', 'min_curve_surf', 'mk_html_help', 'modifyct',
	  'moment', 'morph_close', 'morph_distance',
	  'morph_gradient', 'morph_hitormiss',
	  'morph_open', 'morph_thin', 'morph_tophat', 'multi', 'n_elements',
	  'n_params', 'n_tags', 'ncdf', 'newton', 'noise_hurl',
	  'noise_pick', 'noise_scatter', 'noise_slur', 'norm', 'obj_class',
	  'obj_destroy', 'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
	  'objarr', 'on_error', 'on_ioerror', 'online_help', 'openr',
	  'openu', 'openw', 'oplot', 'oploterr', 'orderedhash',
	  'p_correlate', 'parse_url', 'particle_trace', 'path_cache', 'path_sep',
	  'pcomp', 'plot', 'plot3d', 'plot', 'plot_3dbox',
	  'plot_field', 'ploterr', 'plots', 'polar_contour', 'polar_surface',
	  'polyfill', 'polyshade', 'pnt_line', 'point_lun', 'polarplot',
	  'poly', 'poly_2d', 'poly_area', 'poly_fit', 'polyfillv',
	  'polygon', 'polyline', 'polywarp', 'popd', 'powell',
	  'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes',
	  'print', 'printf', 'printd', 'pro', 'product',
	  'profile', 'profiler', 'profiles', 'project_vol', 'ps_show_fonts',
	  'psafm', 'pseudo', 'ptr_free', 'ptr_new', 'ptr_valid',
	  'ptrarr', 'pushd', 'qgrid3', 'qhull', 'qromb',
	  'qromo', 'qsimp', 'query_*', 'query_ascii', 'query_bmp',
	  'query_csv', 'query_dicom', 'query_gif', 'query_image', 'query_jpeg',
	  'query_jpeg2000', 'query_mrsid', 'query_pict', 'query_png', 'query_ppm',
	  'query_srf', 'query_tiff', 'query_video', 'query_wav', 'r_correlate',
	  'r_test', 'radon', 'randomn', 'randomu', 'ranks',
	  'rdpix', 'read', 'readf', 'read_ascii', 'read_binary',
	  'read_bmp', 'read_csv', 'read_dicom', 'read_gif', 'read_image',
	  'read_interfile', 'read_jpeg', 'read_jpeg2000', 'read_mrsid', 'read_pict',
	  'read_png', 'read_ppm', 'read_spr', 'read_srf', 'read_sylk',
	  'read_tiff', 'read_video', 'read_wav', 'read_wave', 'read_x11_bitmap',
	  'read_xwd', 'reads', 'readu', 'real_part', 'rebin',
	  'recall_commands', 'recon3', 'reduce_colors', 'reform', 'region_grow',
	  'register_cursor', 'regress', 'replicate',
	  'replicate_inplace', 'resolve_all',
	  'resolve_routine', 'restore', 'retall', 'return', 'reverse',
	  'rk4', 'roberts', 'rot', 'rotate', 'round',
	  'routine_filepath', 'routine_info', 'rs_test', 's_test', 'save',
	  'savgol', 'scale3', 'scale3d', 'scatterplot', 'scatterplot3d',
	  'scope_level', 'scope_traceback', 'scope_varfetch',
	  'scope_varname', 'search2d',
	  'search3d', 'sem_create', 'sem_delete', 'sem_lock', 'sem_release',
	  'set_plot', 'set_shading', 'setenv', 'sfit', 'shade_surf',
	  'shade_surf_irr', 'shade_volume', 'shift', 'shift_diff', 'shmdebug',
	  'shmmap', 'shmunmap', 'shmvar', 'show3', 'showfont',
	  'signum', 'simplex', 'sin', 'sindgen', 'sinh',
	  'size', 'skewness', 'skip_lun', 'slicer3', 'slide_image',
	  'smooth', 'sobel', 'socket', 'sort', 'spawn',
	  'sph_4pnt', 'sph_scat', 'spher_harm', 'spl_init', 'spl_interp',
	  'spline', 'spline_p', 'sprsab', 'sprsax', 'sprsin',
	  'sprstp', 'sqrt', 'standardize', 'stddev', 'stop',
	  'strarr', 'strcmp', 'strcompress', 'streamline', 'streamline',
	  'stregex', 'stretch', 'string', 'strjoin', 'strlen',
	  'strlowcase', 'strmatch', 'strmessage', 'strmid', 'strpos',
	  'strput', 'strsplit', 'strtrim', 'struct_assign', 'struct_hide',
	  'strupcase', 'surface', 'surface', 'surfr', 'svdc',
	  'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace', 'symbol',
	  'systime', 't_cvf', 't_pdf', 't3d', 'tag_names',
	  'tan', 'tanh', 'tek_color', 'temporary', 'terminal_size',
	  'tetra_clip', 'tetra_surface', 'tetra_volume', 'text', 'thin',
	  'thread', 'threed', 'tic', 'time_test2', 'timegen',
	  'timer', 'timestamp', 'timestamptovalues', 'tm_test', 'toc',
	  'total', 'trace', 'transpose', 'tri_surf', 'triangulate',
	  'trigrid', 'triql', 'trired', 'trisol', 'truncate_lun',
	  'ts_coef', 'ts_diff', 'ts_fcast', 'ts_smooth', 'tv',
	  'tvcrs', 'tvlct', 'tvrd', 'tvscl', 'typename',
	  'uindgen', 'uint', 'uintarr', 'ul64indgen', 'ulindgen',
	  'ulon64arr', 'ulonarr', 'ulong', 'ulong64', 'uniq',
	  'unsharp_mask', 'usersym', 'value_locate', 'variance', 'vector',
	  'vector_field', 'vel', 'velovect', 'vert_t3d', 'voigt',
	  'volume', 'voronoi', 'voxel_proj', 'wait', 'warp_tri',
	  'watershed', 'wdelete', 'wf_draw', 'where', 'widget_base',
	  'widget_button', 'widget_combobox', 'widget_control',
	  'widget_displaycontextmenu', 'widget_draw',
	  'widget_droplist', 'widget_event', 'widget_info',
	  'widget_label', 'widget_list',
	  'widget_propertysheet', 'widget_slider', 'widget_tab',
	  'widget_table', 'widget_text',
	  'widget_tree', 'widget_tree_move', 'widget_window',
	  'wiener_filter', 'window',
	  'window', 'write_bmp', 'write_csv', 'write_gif', 'write_image',
	  'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict', 'write_png',
	  'write_ppm', 'write_spr', 'write_srf', 'write_sylk', 'write_tiff',
	  'write_video', 'write_wav', 'write_wave', 'writeu', 'wset',
	  'wshow', 'wtn', 'wv_applet', 'wv_cwt', 'wv_cw_wavelet',
	  'wv_denoise', 'wv_dwt', 'wv_fn_coiflet',
	  'wv_fn_daubechies', 'wv_fn_gaussian',
	  'wv_fn_haar', 'wv_fn_morlet', 'wv_fn_paul',
	  'wv_fn_symlet', 'wv_import_data',
	  'wv_import_wavelet', 'wv_plot3d_wps', 'wv_plot_multires',
	  'wv_pwt', 'wv_tool_denoise',
	  'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont', 'xinteranimate',
	  'xloadct', 'xmanager', 'xmng_tmpl', 'xmtool', 'xobjview',
	  'xobjview_rotate', 'xobjview_write_image',
	  'xpalette', 'xpcolor', 'xplot3d',
	  'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit',
	  'xvolume', 'xvolume_rotate', 'xvolume_write_image',
	  'xyouts', 'zlib_compress', 'zlib_uncompress', 'zoom', 'zoom_24'
	];
	var builtins$7 = wordRegexp$b(builtinArray$1);

	var keywordArray$2 = [
	  'begin', 'end', 'endcase', 'endfor',
	  'endwhile', 'endif', 'endrep', 'endforeach',
	  'break', 'case', 'continue', 'for',
	  'foreach', 'goto', 'if', 'then', 'else',
	  'repeat', 'until', 'switch', 'while',
	  'do', 'pro', 'function'
	];
	var keywords$t = wordRegexp$b(keywordArray$2);

	var identifiers$7 = new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*', 'i');

	var singleOperators$5 = /[+\-*&=<>\/@#~$]/;
	var boolOperators = new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)', 'i');

	function tokenBase$x(stream) {
	  // whitespaces
	  if (stream.eatSpace()) return null;

	  // Handle one line Comments
	  if (stream.match(';')) {
	    stream.skipToEnd();
	    return 'comment';
	  }

	  // Handle Number Literals
	  if (stream.match(/^[0-9\.+-]/, false)) {
	    if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
	      return 'number';
	    if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
	      return 'number';
	    if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
	      return 'number';
	  }

	  // Handle Strings
	  if (stream.match(/^"([^"]|(""))*"/)) { return 'string'; }
	  if (stream.match(/^'([^']|(''))*'/)) { return 'string'; }

	  // Handle words
	  if (stream.match(keywords$t)) { return 'keyword'; }
	  if (stream.match(builtins$7)) { return 'builtin'; }
	  if (stream.match(identifiers$7)) { return 'variable'; }

	  if (stream.match(singleOperators$5) || stream.match(boolOperators)) {
	    return 'operator'; }

	  // Handle non-detected items
	  stream.next();
	  return null;
	}
	const idl = {
	  name: "idl",
	  token: function(stream) {
	    return tokenBase$x(stream);
	  },
	  languageData: {
	    autocomplete: builtinArray$1.concat(keywordArray$2)
	  }
	};

	var idl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		idl: idl
	});

	function mkJavaScript(parserConfig) {
	  var statementIndent = parserConfig.statementIndent;
	  var jsonldMode = parserConfig.jsonld;
	  var jsonMode = parserConfig.json || jsonldMode;
	  var isTS = parserConfig.typescript;
	  var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;

	  // Tokenizer

	  var keywords = function(){
	    function kw(type) {return {type: type, style: "keyword"};}
	    var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
	    var operator = kw("operator"), atom = {type: "atom", style: "atom"};

	    return {
	      "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
	      "return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
	      "debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
	      "function": kw("function"), "catch": kw("catch"),
	      "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
	      "in": operator, "typeof": operator, "instanceof": operator,
	      "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
	      "this": kw("this"), "class": kw("class"), "super": kw("atom"),
	      "yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
	      "await": C
	    };
	  }();

	  var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
	  var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;

	  function readRegexp(stream) {
	    var escaped = false, next, inSet = false;
	    while ((next = stream.next()) != null) {
	      if (!escaped) {
	        if (next == "/" && !inSet) return;
	        if (next == "[") inSet = true;
	        else if (inSet && next == "]") inSet = false;
	      }
	      escaped = !escaped && next == "\\";
	    }
	  }

	  // Used as scratch variables to communicate multiple values without
	  // consing up tons of objects.
	  var type, content;
	  function ret(tp, style, cont) {
	    type = tp; content = cont;
	    return style;
	  }
	  function tokenBase(stream, state) {
	    var ch = stream.next();
	    if (ch == '"' || ch == "'") {
	      state.tokenize = tokenString(ch);
	      return state.tokenize(stream, state);
	    } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
	      return ret("number", "number");
	    } else if (ch == "." && stream.match("..")) {
	      return ret("spread", "meta");
	    } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	      return ret(ch);
	    } else if (ch == "=" && stream.eat(">")) {
	      return ret("=>", "operator");
	    } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
	      return ret("number", "number");
	    } else if (/\d/.test(ch)) {
	      stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
	      return ret("number", "number");
	    } else if (ch == "/") {
	      if (stream.eat("*")) {
	        state.tokenize = tokenComment;
	        return tokenComment(stream, state);
	      } else if (stream.eat("/")) {
	        stream.skipToEnd();
	        return ret("comment", "comment");
	      } else if (expressionAllowed(stream, state, 1)) {
	        readRegexp(stream);
	        stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
	        return ret("regexp", "string.special");
	      } else {
	        stream.eat("=");
	        return ret("operator", "operator", stream.current());
	      }
	    } else if (ch == "`") {
	      state.tokenize = tokenQuasi;
	      return tokenQuasi(stream, state);
	    } else if (ch == "#" && stream.peek() == "!") {
	      stream.skipToEnd();
	      return ret("meta", "meta");
	    } else if (ch == "#" && stream.eatWhile(wordRE)) {
	      return ret("variable", "property")
	    } else if (ch == "<" && stream.match("!--") ||
	               (ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
	      stream.skipToEnd();
	      return ret("comment", "comment")
	    } else if (isOperatorChar.test(ch)) {
	      if (ch != ">" || !state.lexical || state.lexical.type != ">") {
	        if (stream.eat("=")) {
	          if (ch == "!" || ch == "=") stream.eat("=");
	        } else if (/[<>*+\-|&?]/.test(ch)) {
	          stream.eat(ch);
	          if (ch == ">") stream.eat(ch);
	        }
	      }
	      if (ch == "?" && stream.eat(".")) return ret(".")
	      return ret("operator", "operator", stream.current());
	    } else if (wordRE.test(ch)) {
	      stream.eatWhile(wordRE);
	      var word = stream.current();
	      if (state.lastType != ".") {
	        if (keywords.propertyIsEnumerable(word)) {
	          var kw = keywords[word];
	          return ret(kw.type, kw.style, word)
	        }
	        if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
	          return ret("async", "keyword", word)
	      }
	      return ret("variable", "variable", word)
	    }
	  }

	  function tokenString(quote) {
	    return function(stream, state) {
	      var escaped = false, next;
	      if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
	        state.tokenize = tokenBase;
	        return ret("jsonld-keyword", "meta");
	      }
	      while ((next = stream.next()) != null) {
	        if (next == quote && !escaped) break;
	        escaped = !escaped && next == "\\";
	      }
	      if (!escaped) state.tokenize = tokenBase;
	      return ret("string", "string");
	    };
	  }

	  function tokenComment(stream, state) {
	    var maybeEnd = false, ch;
	    while (ch = stream.next()) {
	      if (ch == "/" && maybeEnd) {
	        state.tokenize = tokenBase;
	        break;
	      }
	      maybeEnd = (ch == "*");
	    }
	    return ret("comment", "comment");
	  }

	  function tokenQuasi(stream, state) {
	    var escaped = false, next;
	    while ((next = stream.next()) != null) {
	      if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
	        state.tokenize = tokenBase;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    return ret("quasi", "string.special", stream.current());
	  }

	  var brackets = "([{}])";
	  // This is a crude lookahead trick to try and notice that we're
	  // parsing the argument patterns for a fat-arrow function before we
	  // actually hit the arrow token. It only works if the arrow is on
	  // the same line as the arguments and there's no strange noise
	  // (comments) in between. Fallback is to only notice when we hit the
	  // arrow, and not declare the arguments as locals for the arrow
	  // body.
	  function findFatArrow(stream, state) {
	    if (state.fatArrowAt) state.fatArrowAt = null;
	    var arrow = stream.string.indexOf("=>", stream.start);
	    if (arrow < 0) return;

	    if (isTS) { // Try to skip TypeScript return type declarations after the arguments
	      var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
	      if (m) arrow = m.index;
	    }

	    var depth = 0, sawSomething = false;
	    for (var pos = arrow - 1; pos >= 0; --pos) {
	      var ch = stream.string.charAt(pos);
	      var bracket = brackets.indexOf(ch);
	      if (bracket >= 0 && bracket < 3) {
	        if (!depth) { ++pos; break; }
	        if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
	      } else if (bracket >= 3 && bracket < 6) {
	        ++depth;
	      } else if (wordRE.test(ch)) {
	        sawSomething = true;
	      } else if (/["'\/`]/.test(ch)) {
	        for (;; --pos) {
	          if (pos == 0) return
	          var next = stream.string.charAt(pos - 1);
	          if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
	        }
	      } else if (sawSomething && !depth) {
	        ++pos;
	        break;
	      }
	    }
	    if (sawSomething && !depth) state.fatArrowAt = pos;
	  }

	  // Parser

	  var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
	                     "regexp": true, "this": true, "import": true, "jsonld-keyword": true};

	  function JSLexical(indented, column, type, align, prev, info) {
	    this.indented = indented;
	    this.column = column;
	    this.type = type;
	    this.prev = prev;
	    this.info = info;
	    if (align != null) this.align = align;
	  }

	  function inScope(state, varname) {
	    for (var v = state.localVars; v; v = v.next)
	      if (v.name == varname) return true;
	    for (var cx = state.context; cx; cx = cx.prev) {
	      for (var v = cx.vars; v; v = v.next)
	        if (v.name == varname) return true;
	    }
	  }

	  function parseJS(state, style, type, content, stream) {
	    var cc = state.cc;
	    // Communicate our context to the combinators.
	    // (Less wasteful than consing up a hundred closures on every call.)
	    cx.state = state; cx.stream = stream; cx.marked = null; cx.cc = cc; cx.style = style;

	    if (!state.lexical.hasOwnProperty("align"))
	      state.lexical.align = true;

	    while(true) {
	      var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
	      if (combinator(type, content)) {
	        while(cc.length && cc[cc.length - 1].lex)
	          cc.pop()();
	        if (cx.marked) return cx.marked;
	        if (type == "variable" && inScope(state, content)) return "variableName.local";
	        return style;
	      }
	    }
	  }

	  // Combinator utils

	  var cx = {state: null, column: null, marked: null, cc: null};
	  function pass() {
	    for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
	  }
	  function cont() {
	    pass.apply(null, arguments);
	    return true;
	  }
	  function inList(name, list) {
	    for (var v = list; v; v = v.next) if (v.name == name) return true
	    return false;
	  }
	  function register(varname) {
	    var state = cx.state;
	    cx.marked = "def";
	    if (state.context) {
	      if (state.lexical.info == "var" && state.context && state.context.block) {
	        // FIXME function decls are also not block scoped
	        var newContext = registerVarScoped(varname, state.context);
	        if (newContext != null) {
	          state.context = newContext;
	          return
	        }
	      } else if (!inList(varname, state.localVars)) {
	        state.localVars = new Var(varname, state.localVars);
	        return
	      }
	    }
	    // Fall through means this is global
	    if (parserConfig.globalVars && !inList(varname, state.globalVars))
	      state.globalVars = new Var(varname, state.globalVars);
	  }
	  function registerVarScoped(varname, context) {
	    if (!context) {
	      return null
	    } else if (context.block) {
	      var inner = registerVarScoped(varname, context.prev);
	      if (!inner) return null
	      if (inner == context.prev) return context
	      return new Context(inner, context.vars, true)
	    } else if (inList(varname, context.vars)) {
	      return context
	    } else {
	      return new Context(context.prev, new Var(varname, context.vars), false)
	    }
	  }

	  function isModifier(name) {
	    return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
	  }

	  // Combinators

	  function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block; }
	  function Var(name, next) { this.name = name; this.next = next; }

	  var defaultVars = new Var("this", new Var("arguments", null));
	  function pushcontext() {
	    cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
	    cx.state.localVars = defaultVars;
	  }
	  function pushblockcontext() {
	    cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
	    cx.state.localVars = null;
	  }
	  pushcontext.lex = pushblockcontext.lex = true;
	  function popcontext() {
	    cx.state.localVars = cx.state.context.vars;
	    cx.state.context = cx.state.context.prev;
	  }
	  popcontext.lex = true;
	  function pushlex(type, info) {
	    var result = function() {
	      var state = cx.state, indent = state.indented;
	      if (state.lexical.type == "stat") indent = state.lexical.indented;
	      else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
	        indent = outer.indented;
	      state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
	    };
	    result.lex = true;
	    return result;
	  }
	  function poplex() {
	    var state = cx.state;
	    if (state.lexical.prev) {
	      if (state.lexical.type == ")")
	        state.indented = state.lexical.indented;
	      state.lexical = state.lexical.prev;
	    }
	  }
	  poplex.lex = true;

	  function expect(wanted) {
	    function exp(type) {
	      if (type == wanted) return cont();
	      else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
	      else return cont(exp);
	    }    return exp;
	  }

	  function statement(type, value) {
	    if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
	    if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
	    if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
	    if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
	    if (type == "debugger") return cont(expect(";"));
	    if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
	    if (type == ";") return cont();
	    if (type == "if") {
	      if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
	        cx.state.cc.pop()();
	      return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
	    }
	    if (type == "function") return cont(functiondef);
	    if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
	    if (type == "class" || (isTS && value == "interface")) {
	      cx.marked = "keyword";
	      return cont(pushlex("form", type == "class" ? type : value), className, poplex)
	    }
	    if (type == "variable") {
	      if (isTS && value == "declare") {
	        cx.marked = "keyword";
	        return cont(statement)
	      } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
	        cx.marked = "keyword";
	        if (value == "enum") return cont(enumdef);
	        else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
	        else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
	      } else if (isTS && value == "namespace") {
	        cx.marked = "keyword";
	        return cont(pushlex("form"), expression, statement, poplex)
	      } else if (isTS && value == "abstract") {
	        cx.marked = "keyword";
	        return cont(statement)
	      } else {
	        return cont(pushlex("stat"), maybelabel);
	      }
	    }
	    if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
	                                      block, poplex, poplex, popcontext);
	    if (type == "case") return cont(expression, expect(":"));
	    if (type == "default") return cont(expect(":"));
	    if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
	    if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
	    if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
	    if (type == "async") return cont(statement)
	    if (value == "@") return cont(expression, statement)
	    return pass(pushlex("stat"), expression, expect(";"), poplex);
	  }
	  function maybeCatchBinding(type) {
	    if (type == "(") return cont(funarg, expect(")"))
	  }
	  function expression(type, value) {
	    return expressionInner(type, value, false);
	  }
	  function expressionNoComma(type, value) {
	    return expressionInner(type, value, true);
	  }
	  function parenExpr(type) {
	    if (type != "(") return pass()
	    return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
	  }
	  function expressionInner(type, value, noComma) {
	    if (cx.state.fatArrowAt == cx.stream.start) {
	      var body = noComma ? arrowBodyNoComma : arrowBody;
	      if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
	      else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
	    }

	    var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
	    if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
	    if (type == "function") return cont(functiondef, maybeop);
	    if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
	    if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
	    if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
	    if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
	    if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
	    if (type == "{") return contCommasep(objprop, "}", null, maybeop);
	    if (type == "quasi") return pass(quasi, maybeop);
	    if (type == "new") return cont(maybeTarget(noComma));
	    return cont();
	  }
	  function maybeexpression(type) {
	    if (type.match(/[;\}\)\],]/)) return pass();
	    return pass(expression);
	  }

	  function maybeoperatorComma(type, value) {
	    if (type == ",") return cont(maybeexpression);
	    return maybeoperatorNoComma(type, value, false);
	  }
	  function maybeoperatorNoComma(type, value, noComma) {
	    var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
	    var expr = noComma == false ? expression : expressionNoComma;
	    if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
	    if (type == "operator") {
	      if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
	      if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
	        return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
	      if (value == "?") return cont(expression, expect(":"), expr);
	      return cont(expr);
	    }
	    if (type == "quasi") { return pass(quasi, me); }
	    if (type == ";") return;
	    if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
	    if (type == ".") return cont(property, me);
	    if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
	    if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
	    if (type == "regexp") {
	      cx.state.lastType = cx.marked = "operator";
	      cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
	      return cont(expr)
	    }
	  }
	  function quasi(type, value) {
	    if (type != "quasi") return pass();
	    if (value.slice(value.length - 2) != "${") return cont(quasi);
	    return cont(maybeexpression, continueQuasi);
	  }
	  function continueQuasi(type) {
	    if (type == "}") {
	      cx.marked = "string.special";
	      cx.state.tokenize = tokenQuasi;
	      return cont(quasi);
	    }
	  }
	  function arrowBody(type) {
	    findFatArrow(cx.stream, cx.state);
	    return pass(type == "{" ? statement : expression);
	  }
	  function arrowBodyNoComma(type) {
	    findFatArrow(cx.stream, cx.state);
	    return pass(type == "{" ? statement : expressionNoComma);
	  }
	  function maybeTarget(noComma) {
	    return function(type) {
	      if (type == ".") return cont(noComma ? targetNoComma : target);
	      else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
	      else return pass(noComma ? expressionNoComma : expression);
	    };
	  }
	  function target(_, value) {
	    if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
	  }
	  function targetNoComma(_, value) {
	    if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
	  }
	  function maybelabel(type) {
	    if (type == ":") return cont(poplex, statement);
	    return pass(maybeoperatorComma, expect(";"), poplex);
	  }
	  function property(type) {
	    if (type == "variable") {cx.marked = "property"; return cont();}
	  }
	  function objprop(type, value) {
	    if (type == "async") {
	      cx.marked = "property";
	      return cont(objprop);
	    } else if (type == "variable" || cx.style == "keyword") {
	      cx.marked = "property";
	      if (value == "get" || value == "set") return cont(getterSetter);
	      var m; // Work around fat-arrow-detection complication for detecting typescript typed arrow params
	      if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
	        cx.state.fatArrowAt = cx.stream.pos + m[0].length;
	      return cont(afterprop);
	    } else if (type == "number" || type == "string") {
	      cx.marked = jsonldMode ? "property" : (cx.style + " property");
	      return cont(afterprop);
	    } else if (type == "jsonld-keyword") {
	      return cont(afterprop);
	    } else if (isTS && isModifier(value)) {
	      cx.marked = "keyword";
	      return cont(objprop)
	    } else if (type == "[") {
	      return cont(expression, maybetype, expect("]"), afterprop);
	    } else if (type == "spread") {
	      return cont(expressionNoComma, afterprop);
	    } else if (value == "*") {
	      cx.marked = "keyword";
	      return cont(objprop);
	    } else if (type == ":") {
	      return pass(afterprop)
	    }
	  }
	  function getterSetter(type) {
	    if (type != "variable") return pass(afterprop);
	    cx.marked = "property";
	    return cont(functiondef);
	  }
	  function afterprop(type) {
	    if (type == ":") return cont(expressionNoComma);
	    if (type == "(") return pass(functiondef);
	  }
	  function commasep(what, end, sep) {
	    function proceed(type, value) {
	      if (sep ? sep.indexOf(type) > -1 : type == ",") {
	        var lex = cx.state.lexical;
	        if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
	        return cont(function(type, value) {
	          if (type == end || value == end) return pass()
	          return pass(what)
	        }, proceed);
	      }
	      if (type == end || value == end) return cont();
	      if (sep && sep.indexOf(";") > -1) return pass(what)
	      return cont(expect(end));
	    }
	    return function(type, value) {
	      if (type == end || value == end) return cont();
	      return pass(what, proceed);
	    };
	  }
	  function contCommasep(what, end, info) {
	    for (var i = 3; i < arguments.length; i++)
	      cx.cc.push(arguments[i]);
	    return cont(pushlex(end, info), commasep(what, end), poplex);
	  }
	  function block(type) {
	    if (type == "}") return cont();
	    return pass(statement, block);
	  }
	  function maybetype(type, value) {
	    if (isTS) {
	      if (type == ":") return cont(typeexpr);
	      if (value == "?") return cont(maybetype);
	    }
	  }
	  function maybetypeOrIn(type, value) {
	    if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
	  }
	  function mayberettype(type) {
	    if (isTS && type == ":") {
	      if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
	      else return cont(typeexpr)
	    }
	  }
	  function isKW(_, value) {
	    if (value == "is") {
	      cx.marked = "keyword";
	      return cont()
	    }
	  }
	  function typeexpr(type, value) {
	    if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
	      cx.marked = "keyword";
	      return cont(value == "typeof" ? expressionNoComma : typeexpr)
	    }
	    if (type == "variable" || value == "void") {
	      cx.marked = "type";
	      return cont(afterType)
	    }
	    if (value == "|" || value == "&") return cont(typeexpr)
	    if (type == "string" || type == "number" || type == "atom") return cont(afterType);
	    if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
	    if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
	    if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
	    if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
	    if (type == "quasi") return pass(quasiType, afterType)
	  }
	  function maybeReturnType(type) {
	    if (type == "=>") return cont(typeexpr)
	  }
	  function typeprops(type) {
	    if (type.match(/[\}\)\]]/)) return cont()
	    if (type == "," || type == ";") return cont(typeprops)
	    return pass(typeprop, typeprops)
	  }
	  function typeprop(type, value) {
	    if (type == "variable" || cx.style == "keyword") {
	      cx.marked = "property";
	      return cont(typeprop)
	    } else if (value == "?" || type == "number" || type == "string") {
	      return cont(typeprop)
	    } else if (type == ":") {
	      return cont(typeexpr)
	    } else if (type == "[") {
	      return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
	    } else if (type == "(") {
	      return pass(functiondecl, typeprop)
	    } else if (!type.match(/[;\}\)\],]/)) {
	      return cont()
	    }
	  }
	  function quasiType(type, value) {
	    if (type != "quasi") return pass();
	    if (value.slice(value.length - 2) != "${") return cont(quasiType);
	    return cont(typeexpr, continueQuasiType);
	  }
	  function continueQuasiType(type) {
	   if (type == "}") {
	      cx.marked = "string.special";
	      cx.state.tokenize = tokenQuasi;
	      return cont(quasiType);
	    }
	  }
	  function typearg(type, value) {
	    if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
	    if (type == ":") return cont(typeexpr)
	    if (type == "spread") return cont(typearg)
	    return pass(typeexpr)
	  }
	  function afterType(type, value) {
	    if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
	    if (value == "|" || type == "." || value == "&") return cont(typeexpr)
	    if (type == "[") return cont(typeexpr, expect("]"), afterType)
	    if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
	    if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
	  }
	  function maybeTypeArgs(_, value) {
	    if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
	  }
	  function typeparam() {
	    return pass(typeexpr, maybeTypeDefault)
	  }
	  function maybeTypeDefault(_, value) {
	    if (value == "=") return cont(typeexpr)
	  }
	  function vardef(_, value) {
	    if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
	    return pass(pattern, maybetype, maybeAssign, vardefCont);
	  }
	  function pattern(type, value) {
	    if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
	    if (type == "variable") { register(value); return cont(); }
	    if (type == "spread") return cont(pattern);
	    if (type == "[") return contCommasep(eltpattern, "]");
	    if (type == "{") return contCommasep(proppattern, "}");
	  }
	  function proppattern(type, value) {
	    if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
	      register(value);
	      return cont(maybeAssign);
	    }
	    if (type == "variable") cx.marked = "property";
	    if (type == "spread") return cont(pattern);
	    if (type == "}") return pass();
	    if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
	    return cont(expect(":"), pattern, maybeAssign);
	  }
	  function eltpattern() {
	    return pass(pattern, maybeAssign)
	  }
	  function maybeAssign(_type, value) {
	    if (value == "=") return cont(expressionNoComma);
	  }
	  function vardefCont(type) {
	    if (type == ",") return cont(vardef);
	  }
	  function maybeelse(type, value) {
	    if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
	  }
	  function forspec(type, value) {
	    if (value == "await") return cont(forspec);
	    if (type == "(") return cont(pushlex(")"), forspec1, poplex);
	  }
	  function forspec1(type) {
	    if (type == "var") return cont(vardef, forspec2);
	    if (type == "variable") return cont(forspec2);
	    return pass(forspec2)
	  }
	  function forspec2(type, value) {
	    if (type == ")") return cont()
	    if (type == ";") return cont(forspec2)
	    if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
	    return pass(expression, forspec2)
	  }
	  function functiondef(type, value) {
	    if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
	    if (type == "variable") {register(value); return cont(functiondef);}
	    if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
	    if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
	  }
	  function functiondecl(type, value) {
	    if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
	    if (type == "variable") {register(value); return cont(functiondecl);}
	    if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
	    if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
	  }
	  function typename(type, value) {
	    if (type == "keyword" || type == "variable") {
	      cx.marked = "type";
	      return cont(typename)
	    } else if (value == "<") {
	      return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
	    }
	  }
	  function funarg(type, value) {
	    if (value == "@") cont(expression, funarg);
	    if (type == "spread") return cont(funarg);
	    if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
	    if (isTS && type == "this") return cont(maybetype, maybeAssign)
	    return pass(pattern, maybetype, maybeAssign);
	  }
	  function classExpression(type, value) {
	    // Class expressions may have an optional name.
	    if (type == "variable") return className(type, value);
	    return classNameAfter(type, value);
	  }
	  function className(type, value) {
	    if (type == "variable") {register(value); return cont(classNameAfter);}
	  }
	  function classNameAfter(type, value) {
	    if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
	    if (value == "extends" || value == "implements" || (isTS && type == ",")) {
	      if (value == "implements") cx.marked = "keyword";
	      return cont(isTS ? typeexpr : expression, classNameAfter);
	    }
	    if (type == "{") return cont(pushlex("}"), classBody, poplex);
	  }
	  function classBody(type, value) {
	    if (type == "async" ||
	        (type == "variable" &&
	         (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
	         cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
	      cx.marked = "keyword";
	      return cont(classBody);
	    }
	    if (type == "variable" || cx.style == "keyword") {
	      cx.marked = "property";
	      return cont(classfield, classBody);
	    }
	    if (type == "number" || type == "string") return cont(classfield, classBody);
	    if (type == "[")
	      return cont(expression, maybetype, expect("]"), classfield, classBody)
	    if (value == "*") {
	      cx.marked = "keyword";
	      return cont(classBody);
	    }
	    if (isTS && type == "(") return pass(functiondecl, classBody)
	    if (type == ";" || type == ",") return cont(classBody);
	    if (type == "}") return cont();
	    if (value == "@") return cont(expression, classBody)
	  }
	  function classfield(type, value) {
	    if (value == "!" || value == "?") return cont(classfield)
	    if (type == ":") return cont(typeexpr, maybeAssign)
	    if (value == "=") return cont(expressionNoComma)
	    var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
	    return pass(isInterface ? functiondecl : functiondef)
	  }
	  function afterExport(type, value) {
	    if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
	    if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
	    if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
	    return pass(statement);
	  }
	  function exportField(type, value) {
	    if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
	    if (type == "variable") return pass(expressionNoComma, exportField);
	  }
	  function afterImport(type) {
	    if (type == "string") return cont();
	    if (type == "(") return pass(expression);
	    if (type == ".") return pass(maybeoperatorComma);
	    return pass(importSpec, maybeMoreImports, maybeFrom);
	  }
	  function importSpec(type, value) {
	    if (type == "{") return contCommasep(importSpec, "}");
	    if (type == "variable") register(value);
	    if (value == "*") cx.marked = "keyword";
	    return cont(maybeAs);
	  }
	  function maybeMoreImports(type) {
	    if (type == ",") return cont(importSpec, maybeMoreImports)
	  }
	  function maybeAs(_type, value) {
	    if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
	  }
	  function maybeFrom(_type, value) {
	    if (value == "from") { cx.marked = "keyword"; return cont(expression); }
	  }
	  function arrayLiteral(type) {
	    if (type == "]") return cont();
	    return pass(commasep(expressionNoComma, "]"));
	  }
	  function enumdef() {
	    return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
	  }
	  function enummember() {
	    return pass(pattern, maybeAssign);
	  }

	  function isContinuedStatement(state, textAfter) {
	    return state.lastType == "operator" || state.lastType == "," ||
	      isOperatorChar.test(textAfter.charAt(0)) ||
	      /[,.]/.test(textAfter.charAt(0));
	  }

	  function expressionAllowed(stream, state, backUp) {
	    return state.tokenize == tokenBase &&
	      /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
	      (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
	  }

	  // Interface

	  return {
	    name: parserConfig.name,

	    startState: function(indentUnit) {
	      var state = {
	        tokenize: tokenBase,
	        lastType: "sof",
	        cc: [],
	        lexical: new JSLexical(-indentUnit, 0, "block", false),
	        localVars: parserConfig.localVars,
	        context: parserConfig.localVars && new Context(null, null, false),
	        indented: 0
	      };
	      if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
	        state.globalVars = parserConfig.globalVars;
	      return state;
	    },

	    token: function(stream, state) {
	      if (stream.sol()) {
	        if (!state.lexical.hasOwnProperty("align"))
	          state.lexical.align = false;
	        state.indented = stream.indentation();
	        findFatArrow(stream, state);
	      }
	      if (state.tokenize != tokenComment && stream.eatSpace()) return null;
	      var style = state.tokenize(stream, state);
	      if (type == "comment") return style;
	      state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
	      return parseJS(state, style, type, content, stream);
	    },

	    indent: function(state, textAfter, cx) {
	      if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
	      if (state.tokenize != tokenBase) return 0;
	      var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
	      // Kludge to prevent 'maybelse' from blocking lexical scope pops
	      if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
	        var c = state.cc[i];
	        if (c == poplex) lexical = lexical.prev;
	        else if (c != maybeelse && c != popcontext) break;
	      }
	      while ((lexical.type == "stat" || lexical.type == "form") &&
	             (firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
	                                   (top == maybeoperatorComma || top == maybeoperatorNoComma) &&
	                                   !/^[,\.=+\-*:?[\(]/.test(textAfter))))
	        lexical = lexical.prev;
	      if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
	        lexical = lexical.prev;
	      var type = lexical.type, closing = firstChar == type;

	      if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
	      else if (type == "form" && firstChar == "{") return lexical.indented;
	      else if (type == "form") return lexical.indented + cx.unit;
	      else if (type == "stat")
	        return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx.unit : 0);
	      else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
	        return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx.unit : 2 * cx.unit);
	      else if (lexical.align) return lexical.column + (closing ? 0 : 1);
	      else return lexical.indented + (closing ? 0 : cx.unit);
	    },

	    languageData: {
	      indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
	      commentTokens: jsonMode ? undefined : {line: "//", block: {open: "/*", close: "*/"}},
	      closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]},
	      wordChars: "$"
	    }
	  };
	}
	const javascript = mkJavaScript({name: "javascript"});
	const json = mkJavaScript({name: "json", json: true});
	const jsonld = mkJavaScript({name: "json", jsonld: true});
	const typescript = mkJavaScript({name: "typescript", typescript: true});

	var javascript$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		javascript: javascript,
		json: json,
		jsonld: jsonld,
		typescript: typescript
	});

	var keywords$s = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif",
	                "extends", "filter", "endfilter", "firstof", "do", "for",
	                "endfor", "if", "endif", "ifchanged", "endifchanged",
	                "ifequal", "endifequal", "ifnotequal", "set", "raw", "endraw",
	                "endifnotequal", "in", "include", "load", "not", "now", "or",
	                "parsed", "regroup", "reversed", "spaceless", "call", "endcall", "macro",
	                "endmacro", "endspaceless", "ssi", "templatetag", "openblock",
	                "closeblock", "openvariable", "closevariable", "without", "context",
	                "openbrace", "closebrace", "opencomment",
	                "closecomment", "widthratio", "url", "with", "endwith",
	                "get_current_language", "trans", "endtrans", "noop", "blocktrans",
	                "endblocktrans", "get_available_languages",
	                "get_current_language_bidi", "pluralize", "autoescape", "endautoescape"],
	    operator = /^[+\-*&%=<>!?|~^]/,
	    sign = /^[:\[\(\{]/,
	    atom = ["true", "false"],
	    number = /^(\d[+\-\*\/])?\d+(\.\d+)?/;

	keywords$s = new RegExp("((" + keywords$s.join(")|(") + "))\\b");
	atom = new RegExp("((" + atom.join(")|(") + "))\\b");

	function tokenBase$w (stream, state) {
	  var ch = stream.peek();

	  //Comment
	  if (state.incomment) {
	    if(!stream.skipTo("#}")) {
	      stream.skipToEnd();
	    } else {
	      stream.eatWhile(/\#|}/);
	      state.incomment = false;
	    }
	    return "comment";
	    //Tag
	  } else if (state.intag) {
	    //After operator
	    if(state.operator) {
	      state.operator = false;
	      if(stream.match(atom)) {
	        return "atom";
	      }
	      if(stream.match(number)) {
	        return "number";
	      }
	    }
	    //After sign
	    if(state.sign) {
	      state.sign = false;
	      if(stream.match(atom)) {
	        return "atom";
	      }
	      if(stream.match(number)) {
	        return "number";
	      }
	    }

	    if(state.instring) {
	      if(ch == state.instring) {
	        state.instring = false;
	      }
	      stream.next();
	      return "string";
	    } else if(ch == "'" || ch == '"') {
	      state.instring = ch;
	      stream.next();
	      return "string";
	    } else if (state.inbraces > 0 && ch ==")") {
	      stream.next();
	      state.inbraces--;
	    }
	    else if (ch == "(") {
	      stream.next();
	      state.inbraces++;
	    }
	    else if (state.inbrackets > 0 && ch =="]") {
	      stream.next();
	      state.inbrackets--;
	    }
	    else if (ch == "[") {
	      stream.next();
	      state.inbrackets++;
	    } else if (!state.lineTag && (stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}"))) {
	      state.intag = false;
	      return "tag";
	    } else if(stream.match(operator)) {
	      state.operator = true;
	      return "operator";
	    } else if(stream.match(sign)) {
	      state.sign = true;
	    } else {
	      if (stream.column() == 1 && state.lineTag && stream.match(keywords$s)) {
	        //allow nospace after tag before the keyword
	        return "keyword";
	      }
	      if(stream.eat(" ") || stream.sol()) {
	        if(stream.match(keywords$s)) {
	          return "keyword";
	        }
	        if(stream.match(atom)) {
	          return "atom";
	        }
	        if(stream.match(number)) {
	          return "number";
	        }
	        if(stream.sol()) {
	          stream.next();
	        }
	      } else {
	        stream.next();
	      }

	    }
	    return "variable";
	  } else if (stream.eat("{")) {
	    if (stream.eat("#")) {
	      state.incomment = true;
	      if(!stream.skipTo("#}")) {
	        stream.skipToEnd();
	      } else {
	        stream.eatWhile(/\#|}/);
	        state.incomment = false;
	      }
	      return "comment";
	      //Open tag
	    } else if (ch = stream.eat(/\{|%/)) {
	      //Cache close tag
	      state.intag = ch;
	      state.inbraces = 0;
	      state.inbrackets = 0;
	      if(ch == "{") {
	        state.intag = "}";
	      }
	      stream.eat("-");
	      return "tag";
	    }
	    //Line statements
	  } else if (stream.eat('#')) {
	    if (stream.peek() == '#') {
	      stream.skipToEnd();
	      return "comment"
	    }
	    else if (!stream.eol()) {
	      state.intag = true;
	      state.lineTag = true;
	      state.inbraces = 0;
	      state.inbrackets = 0;
	      return "tag";
	    }
	  }
	  stream.next();
	}
	const jinja2 = {
	  name: "jinja2",
	  startState: function () {
	    return {tokenize: tokenBase$w, inbrackets: 0, inbraces: 0};
	  },
	  token: function(stream, state) {
	    var style = state.tokenize(stream, state);
	    if (stream.eol() && state.lineTag && !state.instring && state.inbraces == 0 && state.inbrackets == 0) {
	      //Close line statement at the EOL
	      state.intag = false;
	      state.lineTag = false;
	    }
	    return style;
	  },
	  languageData: {
	    commentTokens: {block: {open: "{#", close: "#}", line: "##"}}
	  }
	};

	var jinja2$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		jinja2: jinja2
	});

	function wordRegexp$a(words, end, pre) {
	  if (typeof pre === "undefined") pre = "";
	  if (typeof end === "undefined") { end = "\\b"; }
	  return new RegExp("^" + pre + "((" + words.join(")|(") + "))" + end);
	}

	var octChar = "\\\\[0-7]{1,3}";
	var hexChar = "\\\\x[A-Fa-f0-9]{1,2}";
	var sChar = "\\\\[abefnrtv0%?'\"\\\\]";
	var uChar = "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])";

	var asciiOperatorsList = [
	  "[<>]:", "[<>=]=", "<<=?", ">>>?=?", "=>", "--?>", "<--[->]?", "\\/\\/",
	  "\\.{2,3}", "[\\.\\\\%*+\\-<>!\\/^|&]=?", "\\?", "\\$", "~", ":"
	];
	var operators$3 = wordRegexp$a([
	  "[<>]:", "[<>=]=", "[!=]==", "<<=?", ">>>?=?", "=>?", "--?>", "<--[->]?", "\\/\\/",
	  "[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?", "\\?", "\\$", "~", ":",
	  "\\u00D7", "\\u2208", "\\u2209", "\\u220B", "\\u220C", "\\u2218",
	  "\\u221A", "\\u221B", "\\u2229", "\\u222A", "\\u2260", "\\u2264",
	  "\\u2265", "\\u2286", "\\u2288", "\\u228A", "\\u22C5",
	  "\\b(in|isa)\\b(?!\.?\\()"
	], "");
	var delimiters = /^[;,()[\]{}]/;
	var identifiers$6 = /^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/;

	var chars = wordRegexp$a([octChar, hexChar, sChar, uChar], "'");

	var openersList = ["begin", "function", "type", "struct", "immutable", "let",
	                   "macro", "for", "while", "quote", "if", "else", "elseif", "try",
	                   "finally", "catch", "do"];

	var closersList = ["end", "else", "elseif", "catch", "finally"];

	var keywordsList = ["if", "else", "elseif", "while", "for", "begin", "let",
	                    "end", "do", "try", "catch", "finally", "return", "break", "continue",
	                    "global", "local", "const", "export", "import", "importall", "using",
	                    "function", "where", "macro", "module", "baremodule", "struct", "type",
	                    "mutable", "immutable", "quote", "typealias", "abstract", "primitive",
	                    "bitstype"];

	var builtinsList = ["true", "false", "nothing", "NaN", "Inf"];

	var openers = wordRegexp$a(openersList);
	var closers = wordRegexp$a(closersList);
	var keywords$r = wordRegexp$a(keywordsList);
	var builtins$6 = wordRegexp$a(builtinsList);

	var macro = /^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;
	var symbol = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;
	var stringPrefixes$1 = /^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;

	var macroOperators = wordRegexp$a(asciiOperatorsList, "", "@");
	var symbolOperators$1 = wordRegexp$a(asciiOperatorsList, "", ":");

	function inArray(state) {
	  return (state.nestedArrays > 0);
	}

	function inGenerator(state) {
	  return (state.nestedGenerators > 0);
	}

	function currentScope$1(state, n) {
	  if (typeof(n) === "undefined") { n = 0; }
	  if (state.scopes.length <= n) {
	    return null;
	  }
	  return state.scopes[state.scopes.length - (n + 1)];
	}

	// tokenizers
	function tokenBase$v(stream, state) {
	  // Handle multiline comments
	  if (stream.match('#=', false)) {
	    state.tokenize = tokenComment$d;
	    return state.tokenize(stream, state);
	  }

	  // Handle scope changes
	  var leavingExpr = state.leavingExpr;
	  if (stream.sol()) {
	    leavingExpr = false;
	  }
	  state.leavingExpr = false;

	  if (leavingExpr) {
	    if (stream.match(/^'+/)) {
	      return "operator";
	    }
	  }

	  if (stream.match(/\.{4,}/)) {
	    return "error";
	  } else if (stream.match(/\.{1,3}/)) {
	    return "operator";
	  }

	  if (stream.eatSpace()) {
	    return null;
	  }

	  var ch = stream.peek();

	  // Handle single line comments
	  if (ch === '#') {
	    stream.skipToEnd();
	    return "comment";
	  }

	  if (ch === '[') {
	    state.scopes.push('[');
	    state.nestedArrays++;
	  }

	  if (ch === '(') {
	    state.scopes.push('(');
	    state.nestedGenerators++;
	  }

	  if (inArray(state) && ch === ']') {
	    while (state.scopes.length && currentScope$1(state) !== "[") { state.scopes.pop(); }
	    state.scopes.pop();
	    state.nestedArrays--;
	    state.leavingExpr = true;
	  }

	  if (inGenerator(state) && ch === ')') {
	    while (state.scopes.length && currentScope$1(state) !== "(") { state.scopes.pop(); }
	    state.scopes.pop();
	    state.nestedGenerators--;
	    state.leavingExpr = true;
	  }

	  if (inArray(state)) {
	    if (state.lastToken == "end" && stream.match(':')) {
	      return "operator";
	    }
	    if (stream.match('end')) {
	      return "number";
	    }
	  }

	  var match;
	  if (match = stream.match(openers, false)) {
	    state.scopes.push(match[0]);
	  }

	  if (stream.match(closers, false)) {
	    state.scopes.pop();
	  }

	  // Handle type annotations
	  if (stream.match(/^::(?![:\$])/)) {
	    state.tokenize = tokenAnnotation;
	    return state.tokenize(stream, state);
	  }

	  // Handle symbols
	  if (!leavingExpr && (stream.match(symbol) || stream.match(symbolOperators$1))) {
	    return "builtin";
	  }

	  // Handle parametric types
	  //if (stream.match(/^{[^}]*}(?=\()/)) {
	  //  return "builtin";
	  //}

	  // Handle operators and Delimiters
	  if (stream.match(operators$3)) {
	    return "operator";
	  }

	  // Handle Number Literals
	  if (stream.match(/^\.?\d/, false)) {
	    var imMatcher = RegExp(/^im\b/);
	    var numberLiteral = false;
	    if (stream.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)) { numberLiteral = true; }
	    // Integers
	    if (stream.match(/^0x[0-9a-f_]+/i)) { numberLiteral = true; } // Hex
	    if (stream.match(/^0b[01_]+/i)) { numberLiteral = true; } // Binary
	    if (stream.match(/^0o[0-7_]+/i)) { numberLiteral = true; } // Octal
	    // Floats
	    if (stream.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)) { numberLiteral = true; }
	    if (stream.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)) { numberLiteral = true; } // Decimal
	    if (numberLiteral) {
	      // Integer literals may be "long"
	      stream.match(imMatcher);
	      state.leavingExpr = true;
	      return "number";
	    }
	  }

	  // Handle Chars
	  if (stream.match("'")) {
	    state.tokenize = tokenChar;
	    return state.tokenize(stream, state);
	  }

	  // Handle Strings
	  if (stream.match(stringPrefixes$1)) {
	    state.tokenize = tokenStringFactory$1(stream.current());
	    return state.tokenize(stream, state);
	  }

	  if (stream.match(macro) || stream.match(macroOperators)) {
	    return "meta";
	  }

	  if (stream.match(delimiters)) {
	    return null;
	  }

	  if (stream.match(keywords$r)) {
	    return "keyword";
	  }

	  if (stream.match(builtins$6)) {
	    return "builtin";
	  }

	  var isDefinition = state.isDefinition || state.lastToken == "function" ||
	      state.lastToken == "macro" || state.lastToken == "type" ||
	      state.lastToken == "struct" || state.lastToken == "immutable";

	  if (stream.match(identifiers$6)) {
	    if (isDefinition) {
	      if (stream.peek() === '.') {
	        state.isDefinition = true;
	        return "variable";
	      }
	      state.isDefinition = false;
	      return "def";
	    }
	    state.leavingExpr = true;
	    return "variable";
	  }

	  // Handle non-detected items
	  stream.next();
	  return "error";
	}

	function tokenAnnotation(stream, state) {
	  stream.match(/.*?(?=[,;{}()=\s]|$)/);
	  if (stream.match('{')) {
	    state.nestedParameters++;
	  } else if (stream.match('}') && state.nestedParameters > 0) {
	    state.nestedParameters--;
	  }
	  if (state.nestedParameters > 0) {
	    stream.match(/.*?(?={|})/) || stream.next();
	  } else if (state.nestedParameters == 0) {
	    state.tokenize = tokenBase$v;
	  }
	  return "builtin";
	}

	function tokenComment$d(stream, state) {
	  if (stream.match('#=')) {
	    state.nestedComments++;
	  }
	  if (!stream.match(/.*?(?=(#=|=#))/)) {
	    stream.skipToEnd();
	  }
	  if (stream.match('=#')) {
	    state.nestedComments--;
	    if (state.nestedComments == 0)
	      state.tokenize = tokenBase$v;
	  }
	  return "comment";
	}

	function tokenChar(stream, state) {
	  var isChar = false, match;
	  if (stream.match(chars)) {
	    isChar = true;
	  } else if (match = stream.match(/\\u([a-f0-9]{1,4})(?=')/i)) {
	    var value = parseInt(match[1], 16);
	    if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF)
	      isChar = true;
	      stream.next();
	    }
	  } else if (match = stream.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) {
	    var value = parseInt(match[1], 16);
	    if (value <= 1114111) { // U+10FFFF
	      isChar = true;
	      stream.next();
	    }
	  }
	  if (isChar) {
	    state.leavingExpr = true;
	    state.tokenize = tokenBase$v;
	    return "string";
	  }
	  if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); }
	  if (stream.match("'")) { state.tokenize = tokenBase$v; }
	  return "error";
	}

	function tokenStringFactory$1(delimiter) {
	  if (delimiter.substr(-3) === '"""') {
	    delimiter = '"""';
	  } else if (delimiter.substr(-1) === '"') {
	    delimiter = '"';
	  }
	  function tokenString(stream, state) {
	    if (stream.eat('\\')) {
	      stream.next();
	    } else if (stream.match(delimiter)) {
	      state.tokenize = tokenBase$v;
	      state.leavingExpr = true;
	      return "string";
	    } else {
	      stream.eat(/[`"]/);
	    }
	    stream.eatWhile(/[^\\`"]/);
	    return "string";
	  }
	  return tokenString;
	}

	const julia = {
	  name: "julia",
	  startState: function() {
	    return {
	      tokenize: tokenBase$v,
	      scopes: [],
	      lastToken: null,
	      leavingExpr: false,
	      isDefinition: false,
	      nestedArrays: 0,
	      nestedComments: 0,
	      nestedGenerators: 0,
	      nestedParameters: 0,
	      firstParenPos: -1
	    };
	  },

	  token: function(stream, state) {
	    var style = state.tokenize(stream, state);
	    var current = stream.current();

	    if (current && style) {
	      state.lastToken = current;
	    }

	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var delta = 0;
	    if ( textAfter === ']' || textAfter === ')' || /^end\b/.test(textAfter) ||
	         /^else/.test(textAfter) || /^catch\b/.test(textAfter) || /^elseif\b/.test(textAfter) ||
	         /^finally/.test(textAfter) ) {
	      delta = -1;
	    }
	    return (state.scopes.length + delta) * cx.unit;
	  },

	  languageData: {
	    indentOnInput: /^\s*(end|else|catch|finally)\b$/,
	    commentTokens: {line: "#", block: {open: "#=", close: "=#"}},
	    closeBrackets: {brackets: ["(", "[", "{", '"']},
	    autocomplete: keywordsList.concat(builtinsList)
	  }
	};

	var julia$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		julia: julia
	});

	var tokenBase$u = function(stream, state) {
	  var next_rule = state.next || "start";
	  if (next_rule) {
	    state.next = state.next;
	    var nr = Rules[next_rule];
	    if (nr.splice) {
	      for (var i$ = 0; i$ < nr.length; ++i$) {
	        var r = nr[i$];
	        if (r.regex && stream.match(r.regex)) {
	          state.next = r.next || state.next;
	          return r.token;
	        }
	      }
	      stream.next();
	      return 'error';
	    }
	    if (stream.match(r = Rules[next_rule])) {
	      if (r.regex && stream.match(r.regex)) {
	        state.next = r.next;
	        return r.token;
	      } else {
	        stream.next();
	        return 'error';
	      }
	    }
	  }
	  stream.next();
	  return 'error';
	};

	var identifier$1 = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*';
	var indenter = RegExp('(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*' + identifier$1 + ')?))\\s*$');
	var keywordend = '(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))';
	var stringfill = {
	  token: 'string',
	  regex: '.+'
	};
	var Rules = {
	  start: [
	    {
	      token: 'docComment',
	      regex: '/\\*',
	      next: 'comment'
	    }, {
	      token: 'comment',
	      regex: '#.*'
	    }, {
	      token: 'keyword',
	      regex: '(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)' + keywordend
	    }, {
	      token: 'atom',
	      regex: '(?:true|false|yes|no|on|off|null|void|undefined)' + keywordend
	    }, {
	      token: 'invalid',
	      regex: '(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)' + keywordend
	    }, {
	      token: 'className.standard',
	      regex: '(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)' + keywordend
	    }, {
	      token: 'variableName.function.standard',
	      regex: '(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)' + keywordend
	    }, {
	      token: 'variableName.standard',
	      regex: '(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)' + keywordend
	    }, {
	      token: 'variableName',
	      regex: identifier$1 + '\\s*:(?![:=])'
	    }, {
	      token: 'variableName',
	      regex: identifier$1
	    }, {
	      token: 'operatorKeyword',
	      regex: '(?:\\.{3}|\\s+\\?)'
	    }, {
	      token: 'keyword',
	      regex: '(?:@+|::|\\.\\.)',
	      next: 'key'
	    }, {
	      token: 'operatorKeyword',
	      regex: '\\.\\s*',
	      next: 'key'
	    }, {
	      token: 'string',
	      regex: '\\\\\\S[^\\s,;)}\\]]*'
	    }, {
	      token: 'docString',
	      regex: '\'\'\'',
	      next: 'qdoc'
	    }, {
	      token: 'docString',
	      regex: '"""',
	      next: 'qqdoc'
	    }, {
	      token: 'string',
	      regex: '\'',
	      next: 'qstring'
	    }, {
	      token: 'string',
	      regex: '"',
	      next: 'qqstring'
	    }, {
	      token: 'string',
	      regex: '`',
	      next: 'js'
	    }, {
	      token: 'string',
	      regex: '<\\[',
	      next: 'words'
	    }, {
	      token: 'regexp',
	      regex: '//',
	      next: 'heregex'
	    }, {
	      token: 'regexp',
	      regex: '\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}',
	      next: 'key'
	    }, {
	      token: 'number',
	      regex: '(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)'
	    }, {
	      token: 'paren',
	      regex: '[({[]'
	    }, {
	      token: 'paren',
	      regex: '[)}\\]]',
	      next: 'key'
	    }, {
	      token: 'operatorKeyword',
	      regex: '\\S+'
	    }, {
	      token: 'content',
	      regex: '\\s+'
	    }
	  ],
	  heregex: [
	    {
	      token: 'regexp',
	      regex: '.*?//[gimy$?]{0,4}',
	      next: 'start'
	    }, {
	      token: 'regexp',
	      regex: '\\s*#{'
	    }, {
	      token: 'comment',
	      regex: '\\s+(?:#.*)?'
	    }, {
	      token: 'regexp',
	      regex: '\\S+'
	    }
	  ],
	  key: [
	    {
	      token: 'operatorKeyword',
	      regex: '[.?@!]+'
	    }, {
	      token: 'variableName',
	      regex: identifier$1,
	      next: 'start'
	    }, {
	      token: 'content',
	      regex: '',
	      next: 'start'
	    }
	  ],
	  comment: [
	    {
	      token: 'docComment',
	      regex: '.*?\\*/',
	      next: 'start'
	    }, {
	      token: 'docComment',
	      regex: '.+'
	    }
	  ],
	  qdoc: [
	    {
	      token: 'string',
	      regex: ".*?'''",
	      next: 'key'
	    }, stringfill
	  ],
	  qqdoc: [
	    {
	      token: 'string',
	      regex: '.*?"""',
	      next: 'key'
	    }, stringfill
	  ],
	  qstring: [
	    {
	      token: 'string',
	      regex: '[^\\\\\']*(?:\\\\.[^\\\\\']*)*\'',
	      next: 'key'
	    }, stringfill
	  ],
	  qqstring: [
	    {
	      token: 'string',
	      regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
	      next: 'key'
	    }, stringfill
	  ],
	  js: [
	    {
	      token: 'string',
	      regex: '[^\\\\`]*(?:\\\\.[^\\\\`]*)*`',
	      next: 'key'
	    }, stringfill
	  ],
	  words: [
	    {
	      token: 'string',
	      regex: '.*?\\]>',
	      next: 'key'
	    }, stringfill
	  ]
	};
	for (var idx in Rules) {
	  var r$2 = Rules[idx];
	  if (r$2.splice) {
	    for (var i = 0, len = r$2.length; i < len; ++i) {
	      var rr = r$2[i];
	      if (typeof rr.regex === 'string') {
	        Rules[idx][i].regex = new RegExp('^' + rr.regex);
	      }
	    }
	  } else if (typeof rr.regex === 'string') {
	    Rules[idx].regex = new RegExp('^' + r$2.regex);
	  }
	}

	const liveScript = {
	  name: "livescript",
	  startState: function(){
	    return {
	      next: 'start',
	      lastToken: {style: null, indent: 0, content: ""}
	    };
	  },
	  token: function(stream, state){
	    while (stream.pos == stream.start)
	      var style = tokenBase$u(stream, state);
	    state.lastToken = {
	      style: style,
	      indent: stream.indentation(),
	      content: stream.current()
	    };
	    return style.replace(/\./g, ' ');
	  },
	  indent: function(state){
	    var indentation = state.lastToken.indent;
	    if (state.lastToken.content.match(indenter)) {
	      indentation += 2;
	    }
	    return indentation;
	  }
	};

	var livescript = /*#__PURE__*/Object.freeze({
		__proto__: null,
		liveScript: liveScript
	});

	function prefixRE(words) {
	  return new RegExp("^(?:" + words.join("|") + ")", "i");
	}
	function wordRE(words) {
	  return new RegExp("^(?:" + words.join("|") + ")$", "i");
	}

	// long list of standard functions from lua manual
	var builtins$5 = wordRE([
	  "_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load",
	  "loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require",
	  "select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall",

	  "coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield",

	  "debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable",
	  "debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable",
	  "debug.setupvalue","debug.traceback",

	  "close","flush","lines","read","seek","setvbuf","write",

	  "io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin",
	  "io.stdout","io.tmpfile","io.type","io.write",

	  "math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg",
	  "math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max",
	  "math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh",
	  "math.sqrt","math.tan","math.tanh",

	  "os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale",
	  "os.time","os.tmpname",

	  "package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload",
	  "package.seeall",

	  "string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub",
	  "string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper",

	  "table.concat","table.insert","table.maxn","table.remove","table.sort"
	]);
	var keywords$q = wordRE(["and","break","elseif","false","nil","not","or","return",
	                       "true","function", "end", "if", "then", "else", "do",
	                       "while", "repeat", "until", "for", "in", "local" ]);

	var indentTokens = wordRE(["function", "if","repeat","do", "\\(", "{"]);
	var dedentTokens = wordRE(["end", "until", "\\)", "}"]);
	var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]);

	function readBracket(stream) {
	  var level = 0;
	  while (stream.eat("=")) ++level;
	  stream.eat("[");
	  return level;
	}

	function normal(stream, state) {
	  var ch = stream.next();
	  if (ch == "-" && stream.eat("-")) {
	    if (stream.eat("[") && stream.eat("["))
	      return (state.cur = bracketed(readBracket(stream), "comment"))(stream, state);
	    stream.skipToEnd();
	    return "comment";
	  }
	  if (ch == "\"" || ch == "'")
	    return (state.cur = string(ch))(stream, state);
	  if (ch == "[" && /[\[=]/.test(stream.peek()))
	    return (state.cur = bracketed(readBracket(stream), "string"))(stream, state);
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w.%]/);
	    return "number";
	  }
	  if (/[\w_]/.test(ch)) {
	    stream.eatWhile(/[\w\\\-_.]/);
	    return "variable";
	  }
	  return null;
	}

	function bracketed(level, style) {
	  return function(stream, state) {
	    var curlev = null, ch;
	    while ((ch = stream.next()) != null) {
	      if (curlev == null) {if (ch == "]") curlev = 0;}
	      else if (ch == "=") ++curlev;
	      else if (ch == "]" && curlev == level) { state.cur = normal; break; }
	      else curlev = null;
	    }
	    return style;
	  };
	}

	function string(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped) break;
	      escaped = !escaped && ch == "\\";
	    }
	    if (!escaped) state.cur = normal;
	    return "string";
	  };
	}

	const lua = {
	  name: "lua",

	  startState: function() {
	    return {basecol: 0, indentDepth: 0, cur: normal};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = state.cur(stream, state);
	    var word = stream.current();
	    if (style == "variable") {
	      if (keywords$q.test(word)) style = "keyword";
	      else if (builtins$5.test(word)) style = "builtin";
	    }
	    if ((style != "comment") && (style != "string")){
	      if (indentTokens.test(word)) ++state.indentDepth;
	      else if (dedentTokens.test(word)) --state.indentDepth;
	    }
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var closing = dedentPartial.test(textAfter);
	    return state.basecol + cx.unit * (state.indentDepth - (closing ? 1 : 0));
	  },

	  languageData: {
	    indentOnInput: /^\s*(?:end|until|else|\)|\})$/,
	    commentTokens: {line: "--", block: {open: "--[[", close: "]]--"}}
	  }
	};

	var lua$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		lua: lua
	});

	function parseWords$2(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	var specials$1 = parseWords$2("$! $$ $& $? $+ $abook $abs $active $activecid " +
	                          "$activewid $address $addtok $agent $agentname $agentstat $agentver " +
	                          "$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime " +
	                          "$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind " +
	                          "$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes " +
	                          "$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color " +
	                          "$com $comcall $comchan $comerr $compact $compress $comval $cos $count " +
	                          "$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight " +
	                          "$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress " +
	                          "$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll " +
	                          "$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error " +
	                          "$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir " +
	                          "$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve " +
	                          "$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt " +
	                          "$group $halted $hash $height $hfind $hget $highlight $hnick $hotline " +
	                          "$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil " +
	                          "$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect " +
	                          "$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile " +
	                          "$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive " +
	                          "$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock " +
	                          "$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer " +
	                          "$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext " +
	                          "$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode " +
	                          "$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile " +
	                          "$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly " +
	                          "$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree " +
	                          "$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo " +
	                          "$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex " +
	                          "$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline " +
	                          "$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin " +
	                          "$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname " +
	                          "$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped " +
	                          "$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp " +
	                          "$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel " +
	                          "$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver " +
	                          "$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor");
	var keywords$p = parseWords$2("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice " +
	                          "away background ban bcopy beep bread break breplace bset btrunc bunset bwrite " +
	                          "channel clear clearall cline clipboard close cnick color comclose comopen " +
	                          "comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver " +
	                          "debug dec describe dialog did didtok disable disconnect dlevel dline dll " +
	                          "dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace " +
	                          "drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable " +
	                          "events exit fclose filter findtext finger firewall flash flist flood flush " +
	                          "flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove " +
	                          "gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd " +
	                          "halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear " +
	                          "ialmark identd if ignore iline inc invite iuser join kick linesep links list " +
	                          "load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice " +
	                          "notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice " +
	                          "qme qmsg query queryn quit raw reload remini remote remove rename renwin " +
	                          "reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini " +
	                          "say scid scon server set showmirc signam sline sockaccept sockclose socklist " +
	                          "socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite " +
	                          "sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize " +
	                          "toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho " +
	                          "var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum " +
	                          "isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower " +
	                          "isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs " +
	                          "elseif else goto menu nicklist status title icon size option text edit " +
	                          "button check radio box scroll list combo link tab item");
	var functions$2 = parseWords$2("if elseif else and not or eq ne in ni for foreach while switch");
	var isOperatorChar$8 = /[+\-*&%=<>!?^\/\|]/;
	function chain$6(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}
	function tokenBase$t(stream, state) {
	  var beforeParams = state.beforeParams;
	  state.beforeParams = false;
	  var ch = stream.next();
	  if (/[\[\]{}\(\),\.]/.test(ch)) {
	    if (ch == "(" && beforeParams) state.inParams = true;
	    else if (ch == ")") state.inParams = false;
	    return null;
	  }
	  else if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  else if (ch == "\\") {
	    stream.eat("\\");
	    stream.eat(/./);
	    return "number";
	  }
	  else if (ch == "/" && stream.eat("*")) {
	    return chain$6(stream, state, tokenComment$c);
	  }
	  else if (ch == ";" && stream.match(/ *\( *\(/)) {
	    return chain$6(stream, state, tokenUnparsed$2);
	  }
	  else if (ch == ";" && !state.inParams) {
	    stream.skipToEnd();
	    return "comment";
	  }
	  else if (ch == '"') {
	    stream.eat(/"/);
	    return "keyword";
	  }
	  else if (ch == "$") {
	    stream.eatWhile(/[$_a-z0-9A-Z\.:]/);
	    if (specials$1 && specials$1.propertyIsEnumerable(stream.current().toLowerCase())) {
	      return "keyword";
	    }
	    else {
	      state.beforeParams = true;
	      return "builtin";
	    }
	  }
	  else if (ch == "%") {
	    stream.eatWhile(/[^,\s()]/);
	    state.beforeParams = true;
	    return "string";
	  }
	  else if (isOperatorChar$8.test(ch)) {
	    stream.eatWhile(isOperatorChar$8);
	    return "operator";
	  }
	  else {
	    stream.eatWhile(/[\w\$_{}]/);
	    var word = stream.current().toLowerCase();
	    if (keywords$p && keywords$p.propertyIsEnumerable(word))
	      return "keyword";
	    if (functions$2 && functions$2.propertyIsEnumerable(word)) {
	      state.beforeParams = true;
	      return "keyword";
	    }
	    return null;
	  }
	}
	function tokenComment$c(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$t;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}
	function tokenUnparsed$2(stream, state) {
	  var maybeEnd = 0, ch;
	  while (ch = stream.next()) {
	    if (ch == ";" && maybeEnd == 2) {
	      state.tokenize = tokenBase$t;
	      break;
	    }
	    if (ch == ")")
	      maybeEnd++;
	    else if (ch != " ")
	      maybeEnd = 0;
	  }
	  return "meta";
	}
	const mirc = {
	  name: "mirc",
	  startState: function() {
	    return {
	      tokenize: tokenBase$t,
	      beforeParams: false,
	      inParams: false
	    };
	  },
	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  }
	};

	var mirc$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		mirc: mirc
	});

	// used pattern building blocks
	var Identifier = '[a-zA-Z\\$][a-zA-Z0-9\\$]*';
	var pBase      = "(?:\\d+)";
	var pFloat     = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)";
	var pFloatBase = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)";
	var pPrecision = "(?:`(?:`?"+pFloat+")?)";

	// regular expressions
	var reBaseForm        = new RegExp('(?:'+pBase+'(?:\\^\\^'+pFloatBase+pPrecision+'?(?:\\*\\^[+-]?\\d+)?))');
	var reFloatForm$1       = new RegExp('(?:' + pFloat + pPrecision + '?(?:\\*\\^[+-]?\\d+)?)');
	var reIdInContext     = new RegExp('(?:`?)(?:' + Identifier + ')(?:`(?:' + Identifier + '))*(?:`?)');

	function tokenBase$s(stream, state) {
	  var ch;

	  // get next character
	  ch = stream.next();

	  // string
	  if (ch === '"') {
	    state.tokenize = tokenString$k;
	    return state.tokenize(stream, state);
	  }

	  // comment
	  if (ch === '(') {
	    if (stream.eat('*')) {
	      state.commentLevel++;
	      state.tokenize = tokenComment$b;
	      return state.tokenize(stream, state);
	    }
	  }

	  // go back one character
	  stream.backUp(1);

	  // look for numbers
	  // Numbers in a baseform
	  if (stream.match(reBaseForm, true, false)) {
	    return 'number';
	  }

	  // Mathematica numbers. Floats (1.2, .2, 1.) can have optionally a precision (`float) or an accuracy definition
	  // (``float). Note: while 1.2` is possible 1.2`` is not. At the end an exponent (float*^+12) can follow.
	  if (stream.match(reFloatForm$1, true, false)) {
	    return 'number';
	  }

	  /* In[23] and Out[34] */
	  if (stream.match(/(?:In|Out)\[[0-9]*\]/, true, false)) {
	    return 'atom';
	  }

	  // usage
	  if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/, true, false)) {
	    return 'meta';
	  }

	  // message
	  if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, true, false)) {
	    return 'string.special';
	  }

	  // this makes a look-ahead match for something like variable:{_Integer}
	  // the match is then forwarded to the mma-patterns tokenizer.
	  if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, true, false)) {
	    return 'variableName.special';
	  }

	  // catch variables which are used together with Blank (_), BlankSequence (__) or BlankNullSequence (___)
	  // Cannot start with a number, but can have numbers at any other position. Examples
	  // blub__Integer, a1_, b34_Integer32
	  if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) {
	    return 'variableName.special';
	  }
	  if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, true, false)) {
	    return 'variableName.special';
	  }
	  if (stream.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) {
	    return 'variableName.special';
	  }

	  // Named characters in Mathematica, like \[Gamma].
	  if (stream.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, true, false)) {
	    return 'character';
	  }

	  // Match all braces separately
	  if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) {
	    return 'bracket';
	  }

	  // Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match
	  // only one.
	  if (stream.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, true, false)) {
	    return 'variableName.constant';
	  }

	  // Literals like variables, keywords, functions
	  if (stream.match(reIdInContext, true, false)) {
	    return 'keyword';
	  }

	  // operators. Note that operators like @@ or /; are matched separately for each symbol.
	  if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) {
	    return 'operator';
	  }

	  // everything else is an error
	  stream.next(); // advance the stream.
	  return 'error';
	}

	function tokenString$k(stream, state) {
	  var next, end = false, escaped = false;
	  while ((next = stream.next()) != null) {
	    if (next === '"' && !escaped) {
	      end = true;
	      break;
	    }
	    escaped = !escaped && next === '\\';
	  }
	  if (end && !escaped) {
	    state.tokenize = tokenBase$s;
	  }
	  return 'string';
	}
	function tokenComment$b(stream, state) {
	  var prev, next;
	  while(state.commentLevel > 0 && (next = stream.next()) != null) {
	    if (prev === '(' && next === '*') state.commentLevel++;
	    if (prev === '*' && next === ')') state.commentLevel--;
	    prev = next;
	  }
	  if (state.commentLevel <= 0) {
	    state.tokenize = tokenBase$s;
	  }
	  return 'comment';
	}

	const mathematica = {
	  name: "mathematica",
	  startState: function() {return {tokenize: tokenBase$s, commentLevel: 0};},
	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  },
	  languageData: {
	    commentTokens: {block: {open: "(*", close: "*)"}}
	  }
	};

	var mathematica$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		mathematica: mathematica
	});

	function words$c(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i=0; i<words.length; ++i)
	    obj[words[i]] = true;
	  return obj;
	}

	var keywords$o = words$c("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within");
	var builtin$1 = words$c("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh");
	var atoms$7 = words$c("Real Boolean Integer String");

	var completions = [].concat(Object.keys(keywords$o), Object.keys(builtin$1), Object.keys(atoms$7));

	var isSingleOperatorChar$1 = /[;=\(:\),{}.*<>+\-\/^\[\]]/;
	var isDoubleOperatorChar$1 = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/;
	var isDigit = /[0-9]/;
	var isNonDigit = /[_a-zA-Z]/;

	function tokenLineComment$1(stream, state) {
	  stream.skipToEnd();
	  state.tokenize = null;
	  return "comment";
	}

	function tokenBlockComment$1(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (maybeEnd && ch == "/") {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenString$j(stream, state) {
	  var escaped = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (ch == '"' && !escaped) {
	      state.tokenize = null;
	      state.sol = false;
	      break;
	    }
	    escaped = !escaped && ch == "\\";
	  }

	  return "string";
	}

	function tokenIdent(stream, state) {
	  stream.eatWhile(isDigit);
	  while (stream.eat(isDigit) || stream.eat(isNonDigit)) { }


	  var cur = stream.current();

	  if(state.sol && (cur == "package" || cur == "model" || cur == "when" || cur == "connector")) state.level++;
	  else if(state.sol && cur == "end" && state.level > 0) state.level--;

	  state.tokenize = null;
	  state.sol = false;

	  if (keywords$o.propertyIsEnumerable(cur)) return "keyword";
	  else if (builtin$1.propertyIsEnumerable(cur)) return "builtin";
	  else if (atoms$7.propertyIsEnumerable(cur)) return "atom";
	  else return "variable";
	}

	function tokenQIdent(stream, state) {
	  while (stream.eat(/[^']/)) { }

	  state.tokenize = null;
	  state.sol = false;

	  if(stream.eat("'"))
	    return "variable";
	  else
	    return "error";
	}

	function tokenUnsignedNumber(stream, state) {
	  stream.eatWhile(isDigit);
	  if (stream.eat('.')) {
	    stream.eatWhile(isDigit);
	  }
	  if (stream.eat('e') || stream.eat('E')) {
	    if (!stream.eat('-'))
	      stream.eat('+');
	    stream.eatWhile(isDigit);
	  }

	  state.tokenize = null;
	  state.sol = false;
	  return "number";
	}

	// Interface
	const modelica = {
	  name: "modelica",
	  startState: function() {
	    return {
	      tokenize: null,
	      level: 0,
	      sol: true
	    };
	  },

	  token: function(stream, state) {
	    if(state.tokenize != null) {
	      return state.tokenize(stream, state);
	    }

	    if(stream.sol()) {
	      state.sol = true;
	    }

	    // WHITESPACE
	    if(stream.eatSpace()) {
	      state.tokenize = null;
	      return null;
	    }

	    var ch = stream.next();

	    // LINECOMMENT
	    if(ch == '/' && stream.eat('/')) {
	      state.tokenize = tokenLineComment$1;
	    }
	    // BLOCKCOMMENT
	    else if(ch == '/' && stream.eat('*')) {
	      state.tokenize = tokenBlockComment$1;
	    }
	    // TWO SYMBOL TOKENS
	    else if(isDoubleOperatorChar$1.test(ch+stream.peek())) {
	      stream.next();
	      state.tokenize = null;
	      return "operator";
	    }
	    // SINGLE SYMBOL TOKENS
	    else if(isSingleOperatorChar$1.test(ch)) {
	      state.tokenize = null;
	      return "operator";
	    }
	    // IDENT
	    else if(isNonDigit.test(ch)) {
	      state.tokenize = tokenIdent;
	    }
	    // Q-IDENT
	    else if(ch == "'" && stream.peek() && stream.peek() != "'") {
	      state.tokenize = tokenQIdent;
	    }
	    // STRING
	    else if(ch == '"') {
	      state.tokenize = tokenString$j;
	    }
	    // UNSIGNED_NUMBER
	    else if(isDigit.test(ch)) {
	      state.tokenize = tokenUnsignedNumber;
	    }
	    // ERROR
	    else {
	      state.tokenize = null;
	      return "error";
	    }

	    return state.tokenize(stream, state);
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != null) return null;

	    var level = state.level;
	    if(/(algorithm)/.test(textAfter)) level--;
	    if(/(equation)/.test(textAfter)) level--;
	    if(/(initial algorithm)/.test(textAfter)) level--;
	    if(/(initial equation)/.test(textAfter)) level--;
	    if(/(end)/.test(textAfter)) level--;

	    if(level > 0)
	      return cx.unit*level;
	    else
	      return 0;
	  },

	  languageData: {
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	    autocomplete: completions
	  }
	};

	var modelica$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		modelica: modelica
	});

	function wordRegexp$9(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
	}

	var singleOperators$4 = new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]");
	var doubleOperators$3 = new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))");
	var singleDelimiters$2 = new RegExp("^[\\.,:]");
	var brackets = new RegExp("[()]");
	var identifiers$5 = new RegExp("^[%A-Za-z][A-Za-z0-9]*");
	var commandKeywords = ["break","close","do","else","for","goto", "halt", "hang", "if", "job","kill","lock","merge","new","open", "quit", "read", "set", "tcommit", "trollback", "tstart", "use", "view", "write", "xecute", "b","c","d","e","f","g", "h", "i", "j","k","l","m","n","o", "q", "r", "s", "tc", "tro", "ts", "u", "v", "w", "x"];
	// The following list includes intrinsic functions _and_ special variables
	var intrinsicFuncsWords = ["\\$ascii", "\\$char", "\\$data", "\\$ecode", "\\$estack", "\\$etrap", "\\$extract", "\\$find", "\\$fnumber", "\\$get", "\\$horolog", "\\$io", "\\$increment", "\\$job", "\\$justify", "\\$length", "\\$name", "\\$next", "\\$order", "\\$piece", "\\$qlength", "\\$qsubscript", "\\$query", "\\$quit", "\\$random", "\\$reverse", "\\$select", "\\$stack", "\\$test", "\\$text", "\\$translate", "\\$view", "\\$x", "\\$y", "\\$a", "\\$c", "\\$d", "\\$e", "\\$ec", "\\$es", "\\$et", "\\$f", "\\$fn", "\\$g", "\\$h", "\\$i", "\\$j", "\\$l", "\\$n", "\\$na", "\\$o", "\\$p", "\\$q", "\\$ql", "\\$qs", "\\$r", "\\$re", "\\$s", "\\$st", "\\$t", "\\$tr", "\\$v", "\\$z"];
	var intrinsicFuncs = wordRegexp$9(intrinsicFuncsWords);
	var command = wordRegexp$9(commandKeywords);

	function tokenBase$r(stream, state) {
	  if (stream.sol()) {
	    state.label = true;
	    state.commandMode = 0;
	  }

	  // The <space> character has meaning in MUMPS. Ignoring consecutive
	  // spaces would interfere with interpreting whether the next non-space
	  // character belongs to the command or argument context.

	  // Examine each character and update a mode variable whose interpretation is:
	  //   >0 => command    0 => argument    <0 => command post-conditional
	  var ch = stream.peek();

	  if (ch == " " || ch == "\t") { // Pre-process <space>
	    state.label = false;
	    if (state.commandMode == 0)
	      state.commandMode = 1;
	    else if ((state.commandMode < 0) || (state.commandMode == 2))
	      state.commandMode = 0;
	  } else if ((ch != ".") && (state.commandMode > 0)) {
	    if (ch == ":")
	      state.commandMode = -1;   // SIS - Command post-conditional
	    else
	      state.commandMode = 2;
	  }

	  // Do not color parameter list as line tag
	  if ((ch === "(") || (ch === "\u0009"))
	    state.label = false;

	  // MUMPS comment starts with ";"
	  if (ch === ";") {
	    stream.skipToEnd();
	    return "comment";
	  }

	  // Number Literals // SIS/RLM - MUMPS permits canonic number followed by concatenate operator
	  if (stream.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))
	    return "number";

	  // Handle Strings
	  if (ch == '"') {
	    if (stream.skipTo('"')) {
	      stream.next();
	      return "string";
	    } else {
	      stream.skipToEnd();
	      return "error";
	    }
	  }

	  // Handle operators and Delimiters
	  if (stream.match(doubleOperators$3) || stream.match(singleOperators$4))
	    return "operator";

	  // Prevents leading "." in DO block from falling through to error
	  if (stream.match(singleDelimiters$2))
	    return null;

	  if (brackets.test(ch)) {
	    stream.next();
	    return "bracket";
	  }

	  if (state.commandMode > 0 && stream.match(command))
	    return "controlKeyword";

	  if (stream.match(intrinsicFuncs))
	    return "builtin";

	  if (stream.match(identifiers$5))
	    return "variable";

	  // Detect dollar-sign when not a documented intrinsic function
	  // "^" may introduce a GVN or SSVN - Color same as function
	  if (ch === "$" || ch === "^") {
	    stream.next();
	    return "builtin";
	  }

	  // MUMPS Indirection
	  if (ch === "@") {
	    stream.next();
	    return "string.special";
	  }

	  if (/[\w%]/.test(ch)) {
	    stream.eatWhile(/[\w%]/);
	    return "variable";
	  }

	  // Handle non-detected items
	  stream.next();
	  return "error";
	}

	const mumps = {
	  name: "mumps",
	  startState: function() {
	    return {
	      label: false,
	      commandMode: 0
	    };
	  },

	  token: function(stream, state) {
	    var style = tokenBase$r(stream, state);
	    if (state.label) return "tag";
	    return style;
	  }
	};

	var mumps$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		mumps: mumps
	});

	var rfc2822 = [
	  "From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID",
	  "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To",
	  "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received"
	];
	var rfc2822NoEmail = [
	  "Date", "Subject", "Comments", "Keywords", "Resent-Date"
	];

	var whitespace = /^[ \t]/;
	var separator = /^From /; // See RFC 4155
	var rfc2822Header = new RegExp("^(" + rfc2822.join("|") + "): ");
	var rfc2822HeaderNoEmail = new RegExp("^(" + rfc2822NoEmail.join("|") + "): ");
	var header = /^[^:]+:/; // Optional fields defined in RFC 2822
	var email = /^[^ ]+@[^ ]+/;
	var untilEmail = /^.*?(?=[^ ]+?@[^ ]+)/;
	var bracketedEmail = /^<.*?>/;
	var untilBracketedEmail = /^.*?(?=<.*>)/;

	function styleForHeader(header) {
	  if (header === "Subject") return "header";
	  return "string";
	}

	function readToken$1(stream, state) {
	  if (stream.sol()) {
	    // From last line
	    state.inSeparator = false;
	    if (state.inHeader && stream.match(whitespace)) {
	      // Header folding
	      return null;
	    } else {
	      state.inHeader = false;
	      state.header = null;
	    }

	    if (stream.match(separator)) {
	      state.inHeaders = true;
	      state.inSeparator = true;
	      return "atom";
	    }

	    var match;
	    var emailPermitted = false;
	    if ((match = stream.match(rfc2822HeaderNoEmail)) ||
	        (emailPermitted = true) && (match = stream.match(rfc2822Header))) {
	      state.inHeaders = true;
	      state.inHeader = true;
	      state.emailPermitted = emailPermitted;
	      state.header = match[1];
	      return "atom";
	    }

	    // Use vim's heuristics: recognize custom headers only if the line is in a
	    // block of legitimate headers.
	    if (state.inHeaders && (match = stream.match(header))) {
	      state.inHeader = true;
	      state.emailPermitted = true;
	      state.header = match[1];
	      return "atom";
	    }

	    state.inHeaders = false;
	    stream.skipToEnd();
	    return null;
	  }

	  if (state.inSeparator) {
	    if (stream.match(email)) return "link";
	    if (stream.match(untilEmail)) return "atom";
	    stream.skipToEnd();
	    return "atom";
	  }

	  if (state.inHeader) {
	    var style = styleForHeader(state.header);

	    if (state.emailPermitted) {
	      if (stream.match(bracketedEmail)) return style + " link";
	      if (stream.match(untilBracketedEmail)) return style;
	    }
	    stream.skipToEnd();
	    return style;
	  }

	  stream.skipToEnd();
	  return null;
	}
	const mbox = {
	  name: "mbox",
	  startState: function() {
	    return {
	      // Is in a mbox separator
	      inSeparator: false,
	      // Is in a mail header
	      inHeader: false,
	      // If bracketed email is permitted. Only applicable when inHeader
	      emailPermitted: false,
	      // Name of current header
	      header: null,
	      // Is in a region of mail headers
	      inHeaders: false
	    };
	  },
	  token: readToken$1,
	  blankLine: function(state) {
	    state.inHeaders = state.inSeparator = state.inHeader = false;
	  },
	  languageData: {
	    autocomplete: rfc2822.concat(rfc2822NoEmail)
	  }
	};

	var mbox$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		mbox: mbox
	});

	function words$b(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var keywords$n = words$b(
	  /* ngxDirectiveControl */ "break return rewrite set" +
	    /* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"
	);

	var keywords_block = words$b(
	  /* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map"
	);

	var keywords_important = words$b(
	  /* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"
	);

	var type$2;
	function ret(style, tp) {type$2 = tp; return style;}

	function tokenBase$q(stream, state) {


	  stream.eatWhile(/[\w\$_]/);

	  var cur = stream.current();


	  if (keywords$n.propertyIsEnumerable(cur)) {
	    return "keyword";
	  }
	  else if (keywords_block.propertyIsEnumerable(cur)) {
	    return "controlKeyword";
	  }
	  else if (keywords_important.propertyIsEnumerable(cur)) {
	    return "controlKeyword";
	  }
	  /**/

	  var ch = stream.next();
	  if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
	  else if (ch == "/" && stream.eat("*")) {
	    state.tokenize = tokenCComment$2;
	    return tokenCComment$2(stream, state);
	  }
	  else if (ch == "<" && stream.eat("!")) {
	    state.tokenize = tokenSGMLComment;
	    return tokenSGMLComment(stream, state);
	  }
	  else if (ch == "=") ret(null, "compare");
	  else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
	  else if (ch == "\"" || ch == "'") {
	    state.tokenize = tokenString$i(ch);
	    return state.tokenize(stream, state);
	  }
	  else if (ch == "#") {
	    stream.skipToEnd();
	    return ret("comment", "comment");
	  }
	  else if (ch == "!") {
	    stream.match(/^\s*\w*/);
	    return ret("keyword", "important");
	  }
	  else if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w.%]/);
	    return ret("number", "unit");
	  }
	  else if (/[,.+>*\/]/.test(ch)) {
	    return ret(null, "select-op");
	  }
	  else if (/[;{}:\[\]]/.test(ch)) {
	    return ret(null, ch);
	  }
	  else {
	    stream.eatWhile(/[\w\\\-]/);
	    return ret("variable", "variable");
	  }
	}

	function tokenCComment$2(stream, state) {
	  var maybeEnd = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (maybeEnd && ch == "/") {
	      state.tokenize = tokenBase$q;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return ret("comment", "comment");
	}

	function tokenSGMLComment(stream, state) {
	  var dashes = 0, ch;
	  while ((ch = stream.next()) != null) {
	    if (dashes >= 2 && ch == ">") {
	      state.tokenize = tokenBase$q;
	      break;
	    }
	    dashes = (ch == "-") ? dashes + 1 : 0;
	  }
	  return ret("comment", "comment");
	}

	function tokenString$i(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped)
	        break;
	      escaped = !escaped && ch == "\\";
	    }
	    if (!escaped) state.tokenize = tokenBase$q;
	    return ret("string", "string");
	  };
	}

	const nginx = {
	  name: "nginx",
	  startState: function() {
	    return {tokenize: tokenBase$q,
	            baseIndent: 0,
	            stack: []};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    type$2 = null;
	    var style = state.tokenize(stream, state);

	    var context = state.stack[state.stack.length-1];
	    if (type$2 == "hash" && context == "rule") style = "atom";
	    else if (style == "variable") {
	      if (context == "rule") style = "number";
	      else if (!context || context == "@media{") style = "tag";
	    }

	    if (context == "rule" && /^[\{\};]$/.test(type$2))
	      state.stack.pop();
	    if (type$2 == "{") {
	      if (context == "@media") state.stack[state.stack.length-1] = "@media{";
	      else state.stack.push("{");
	    }
	    else if (type$2 == "}") state.stack.pop();
	    else if (type$2 == "@media") state.stack.push("@media");
	    else if (context == "{" && type$2 != "comment") state.stack.push("rule");
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var n = state.stack.length;
	    if (/^\}/.test(textAfter))
	      n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
	    return state.baseIndent + n * cx.unit;
	  },

	  languageData: {
	    indentOnInput: /^\s*\}$/
	  }
	};

	var nginx$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		nginx: nginx
	});

	const nsis = simpleMode({
	  start:[
	    // Numbers
	    {regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/, token: "number"},

	    // Strings
	    { regex: /"(?:[^\\"]|\\.)*"?/, token: "string" },
	    { regex: /'(?:[^\\']|\\.)*'?/, token: "string" },
	    { regex: /`(?:[^\\`]|\\.)*`?/, token: "string" },

	    // Compile Time Commands
	    {regex: /^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i, token: "keyword"},

	    // Conditional Compilation
	    {regex: /^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i, token: "keyword", indent: true},
	    {regex: /^\s*(?:\!(else|endif|macroend))\b/i, token: "keyword", dedent: true},

	    // Runtime Commands
	    {regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i, token: "keyword"},
	    {regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/i, token: "keyword", indent: true},
	    {regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i, token: "keyword", dedent: true},

	    // Command Options
	    {regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i, token: "atom"},
	    {regex: /\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i, token: "builtin"},

	    // LogicLib.nsh
	    {regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i, token: "variable-2", indent: true},

	    // FileFunc.nsh
	    {regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i, token: "variable-2", dedent: true},

	    // Memento.nsh
	    {regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i, token: "variable-2", dedent: true},

	    // TextFunc.nsh
	    {regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i, token: "variable-2", dedent: true},

	    // WinVer.nsh
	    {regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i, token: "variable", dedent: true},

	    // WordFunc.nsh
	    {regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i, token: "keyword", dedent: true},

	    // x64.nsh
	    {regex: /\$\{(?:RunningX64)\}/i, token: "variable", dedent: true},
	    {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/i, token: "keyword", dedent: true},

	    // Line Comment
	    {regex: /(#|;).*/, token: "comment"},

	    // Block Comment
	    {regex: /\/\*/, token: "comment", next: "comment"},

	    // Operator
	    {regex: /[-+\/*=<>!]+/, token: "operator"},

	    // Variable
	    {regex: /\$\w[\w\.]*/, token: "variable"},

	    // Constant
	    {regex: /\${[\!\w\.:-]+}/, token: "variableName.constant"},

	    // Language String
	    {regex: /\$\([\!\w\.:-]+\)/, token: "atom"}
	  ],
	  comment: [
	    {regex: /.*?\*\//, token: "comment", next: "start"},
	    {regex: /.*/, token: "comment"}
	  ],
	  languageData: {
	    name: "nsis",
	    indentOnInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,
	    commentTokens: {line: "#", block: {open: "/*", close: "*/"}}
	  }
	});

	var nsis$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		nsis: nsis
	});

	var Location = {
	  PRE_SUBJECT         : 0,
	  WRITING_SUB_URI     : 1,
	  WRITING_BNODE_URI   : 2,
	  PRE_PRED            : 3,
	  WRITING_PRED_URI    : 4,
	  PRE_OBJ             : 5,
	  WRITING_OBJ_URI     : 6,
	  WRITING_OBJ_BNODE   : 7,
	  WRITING_OBJ_LITERAL : 8,
	  WRITING_LIT_LANG    : 9,
	  WRITING_LIT_TYPE    : 10,
	  POST_OBJ            : 11,
	  ERROR               : 12
	};
	function transitState(currState, c) {
	  var currLocation = currState.location;
	  var ret;

	  // Opening.
	  if     (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI;
	  else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI;
	  else if(currLocation == Location.PRE_PRED    && c == '<') ret = Location.WRITING_PRED_URI;
	  else if(currLocation == Location.PRE_OBJ     && c == '<') ret = Location.WRITING_OBJ_URI;
	  else if(currLocation == Location.PRE_OBJ     && c == '_') ret = Location.WRITING_OBJ_BNODE;
	  else if(currLocation == Location.PRE_OBJ     && c == '"') ret = Location.WRITING_OBJ_LITERAL;

	  // Closing.
	  else if(currLocation == Location.WRITING_SUB_URI     && c == '>') ret = Location.PRE_PRED;
	  else if(currLocation == Location.WRITING_BNODE_URI   && c == ' ') ret = Location.PRE_PRED;
	  else if(currLocation == Location.WRITING_PRED_URI    && c == '>') ret = Location.PRE_OBJ;
	  else if(currLocation == Location.WRITING_OBJ_URI     && c == '>') ret = Location.POST_OBJ;
	  else if(currLocation == Location.WRITING_OBJ_BNODE   && c == ' ') ret = Location.POST_OBJ;
	  else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '"') ret = Location.POST_OBJ;
	  else if(currLocation == Location.WRITING_LIT_LANG && c == ' ') ret = Location.POST_OBJ;
	  else if(currLocation == Location.WRITING_LIT_TYPE && c == '>') ret = Location.POST_OBJ;

	  // Closing typed and language literal.
	  else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '@') ret = Location.WRITING_LIT_LANG;
	  else if(currLocation == Location.WRITING_OBJ_LITERAL && c == '^') ret = Location.WRITING_LIT_TYPE;

	  // Spaces.
	  else if( c == ' ' &&
	           (
	             currLocation == Location.PRE_SUBJECT ||
	               currLocation == Location.PRE_PRED    ||
	               currLocation == Location.PRE_OBJ     ||
	               currLocation == Location.POST_OBJ
	           )
	         ) ret = currLocation;

	  // Reset.
	  else if(currLocation == Location.POST_OBJ && c == '.') ret = Location.PRE_SUBJECT;

	  // Error
	  else ret = Location.ERROR;

	  currState.location=ret;
	}

	const ntriples = {
	  name: "ntriples",
	  startState: function() {
	    return {
	      location : Location.PRE_SUBJECT,
	      uris     : [],
	      anchors  : [],
	      bnodes   : [],
	      langs    : [],
	      types    : []
	    };
	  },
	  token: function(stream, state) {
	    var ch = stream.next();
	    if(ch == '<') {
	      transitState(state, ch);
	      var parsedURI = '';
	      stream.eatWhile( function(c) { if( c != '#' && c != '>' ) { parsedURI += c; return true; } return false;} );
	      state.uris.push(parsedURI);
	      if( stream.match('#', false) ) return 'variable';
	      stream.next();
	      transitState(state, '>');
	      return 'variable';
	    }
	    if(ch == '#') {
	      var parsedAnchor = '';
	      stream.eatWhile(function(c) { if(c != '>' && c != ' ') { parsedAnchor+= c; return true; } return false;});
	      state.anchors.push(parsedAnchor);
	      return 'url';
	    }
	    if(ch == '>') {
	      transitState(state, '>');
	      return 'variable';
	    }
	    if(ch == '_') {
	      transitState(state, ch);
	      var parsedBNode = '';
	      stream.eatWhile(function(c) { if( c != ' ' ) { parsedBNode += c; return true; } return false;});
	      state.bnodes.push(parsedBNode);
	      stream.next();
	      transitState(state, ' ');
	      return 'builtin';
	    }
	    if(ch == '"') {
	      transitState(state, ch);
	      stream.eatWhile( function(c) { return c != '"'; } );
	      stream.next();
	      if( stream.peek() != '@' && stream.peek() != '^' ) {
	        transitState(state, '"');
	      }
	      return 'string';
	    }
	    if( ch == '@' ) {
	      transitState(state, '@');
	      var parsedLang = '';
	      stream.eatWhile(function(c) { if( c != ' ' ) { parsedLang += c; return true; } return false;});
	      state.langs.push(parsedLang);
	      stream.next();
	      transitState(state, ' ');
	      return 'string.special';
	    }
	    if( ch == '^' ) {
	      stream.next();
	      transitState(state, '^');
	      var parsedType = '';
	      stream.eatWhile(function(c) { if( c != '>' ) { parsedType += c; return true; } return false;} );
	      state.types.push(parsedType);
	      stream.next();
	      transitState(state, '>');
	      return 'variable';
	    }
	    if( ch == ' ' ) {
	      transitState(state, ch);
	    }
	    if( ch == '.' ) {
	      transitState(state, ch);
	    }
	  }
	};

	var ntriples$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ntriples: ntriples
	});

	function wordRegexp$8(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}

	var singleOperators$3 = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
	var singleDelimiters$1 = new RegExp('^[\\(\\[\\{\\},:=;\\.]');
	var doubleOperators$2 = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
	var doubleDelimiters$1 = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
	var tripleDelimiters$1 = new RegExp("^((>>=)|(<<=))");
	var expressionEnd = new RegExp("^[\\]\\)]");
	var identifiers$4 = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");

	var builtins$4 = wordRegexp$8([
	  'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos',
	  'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh',
	  'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones',
	  'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov',
	  'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot',
	  'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str',
	  'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember'
	]);

	var keywords$m = wordRegexp$8([
	  'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction',
	  'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events',
	  'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until',
	  'continue', 'pkg'
	]);


	// tokenizers
	function tokenTranspose(stream, state) {
	  if (!stream.sol() && stream.peek() === '\'') {
	    stream.next();
	    state.tokenize = tokenBase$p;
	    return 'operator';
	  }
	  state.tokenize = tokenBase$p;
	  return tokenBase$p(stream, state);
	}


	function tokenComment$a(stream, state) {
	  if (stream.match(/^.*%}/)) {
	    state.tokenize = tokenBase$p;
	    return 'comment';
	  }  stream.skipToEnd();
	  return 'comment';
	}

	function tokenBase$p(stream, state) {
	  // whitespaces
	  if (stream.eatSpace()) return null;

	  // Handle one line Comments
	  if (stream.match('%{')){
	    state.tokenize = tokenComment$a;
	    stream.skipToEnd();
	    return 'comment';
	  }

	  if (stream.match(/^[%#]/)){
	    stream.skipToEnd();
	    return 'comment';
	  }

	  // Handle Number Literals
	  if (stream.match(/^[0-9\.+-]/, false)) {
	    if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
	      stream.tokenize = tokenBase$p;
	      return 'number'; }    if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }    if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; }  }
	  if (stream.match(wordRegexp$8(['nan','NaN','inf','Inf']))) { return 'number'; }
	  // Handle Strings
	  var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/);
	  if (m) { return m[1] ? 'string' : "error"; }

	  // Handle words
	  if (stream.match(keywords$m)) { return 'keyword'; }  if (stream.match(builtins$4)) { return 'builtin'; }  if (stream.match(identifiers$4)) { return 'variable'; }
	  if (stream.match(singleOperators$3) || stream.match(doubleOperators$2)) { return 'operator'; }  if (stream.match(singleDelimiters$1) || stream.match(doubleDelimiters$1) || stream.match(tripleDelimiters$1)) { return null; }
	  if (stream.match(expressionEnd)) {
	    state.tokenize = tokenTranspose;
	    return null;
	  }

	  // Handle non-detected items
	  stream.next();
	  return 'error';
	}

	const octave = {
	  name: "octave",

	  startState: function() {
	    return {
	      tokenize: tokenBase$p
	    };
	  },

	  token: function(stream, state) {
	    var style = state.tokenize(stream, state);
	    if (style === 'number' || style === 'variable'){
	      state.tokenize = tokenTranspose;
	    }
	    return style;
	  },

	  languageData: {
	    commentTokens: {line: "%"}
	  }
	};

	var octave$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		octave: octave
	});

	function wordRegexp$7(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}

	var singleOperators$2 = /[\^@!\|<>#~\.\*\-\+\\/,=]/;
	var doubleOperators$1 = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/;
	var tripleOperators = /(:::)|(\.\.\.)|(=<:)|(>=:)/;

	var middle$1 = ["in", "then", "else", "of", "elseof", "elsecase", "elseif", "catch",
	              "finally", "with", "require", "prepare", "import", "export", "define", "do"];
	var end = ["end"];

	var atoms$6 = wordRegexp$7(["true", "false", "nil", "unit"]);
	var commonKeywords$3 = wordRegexp$7(["andthen", "at", "attr", "declare", "feat", "from", "lex",
	                                 "mod", "div", "mode", "orelse", "parser", "prod", "prop", "scanner", "self", "syn", "token"]);
	var openingKeywords$1 = wordRegexp$7(["local", "proc", "fun", "case", "class", "if", "cond", "or", "dis",
	                                  "choice", "not", "thread", "try", "raise", "lock", "for", "suchthat", "meth", "functor"]);
	var middleKeywords$1 = wordRegexp$7(middle$1);
	var endKeywords$1 = wordRegexp$7(end);

	// Tokenizers
	function tokenBase$o(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  // Brackets
	  if(stream.match(/[{}]/)) {
	    return "bracket";
	  }

	  // Special [] keyword
	  if (stream.match('[]')) {
	    return "keyword"
	  }

	  // Operators
	  if (stream.match(tripleOperators) || stream.match(doubleOperators$1)) {
	    return "operator";
	  }

	  // Atoms
	  if(stream.match(atoms$6)) {
	    return 'atom';
	  }

	  // Opening keywords
	  var matched = stream.match(openingKeywords$1);
	  if (matched) {
	    if (!state.doInCurrentLine)
	      state.currentIndent++;
	    else
	      state.doInCurrentLine = false;

	    // Special matching for signatures
	    if(matched[0] == "proc" || matched[0] == "fun")
	      state.tokenize = tokenFunProc;
	    else if(matched[0] == "class")
	      state.tokenize = tokenClass;
	    else if(matched[0] == "meth")
	      state.tokenize = tokenMeth;

	    return 'keyword';
	  }

	  // Middle and other keywords
	  if (stream.match(middleKeywords$1) || stream.match(commonKeywords$3)) {
	    return "keyword"
	  }

	  // End keywords
	  if (stream.match(endKeywords$1)) {
	    state.currentIndent--;
	    return 'keyword';
	  }

	  // Eat the next char for next comparisons
	  var ch = stream.next();

	  // Strings
	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$h(ch);
	    return state.tokenize(stream, state);
	  }

	  // Numbers
	  if (/[~\d]/.test(ch)) {
	    if (ch == "~") {
	      if(! /^[0-9]/.test(stream.peek()))
	        return null;
	      else if (( stream.next() == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
	        return "number";
	    }

	    if ((ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
	      return "number";

	    return null;
	  }

	  // Comments
	  if (ch == "%") {
	    stream.skipToEnd();
	    return 'comment';
	  }
	  else if (ch == "/") {
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$9;
	      return tokenComment$9(stream, state);
	    }
	  }

	  // Single operators
	  if(singleOperators$2.test(ch)) {
	    return "operator";
	  }

	  // If nothing match, we skip the entire alphanumerical block
	  stream.eatWhile(/\w/);

	  return "variable";
	}

	function tokenClass(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }
	  stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);
	  state.tokenize = tokenBase$o;
	  return "type"
	}

	function tokenMeth(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }
	  stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);
	  state.tokenize = tokenBase$o;
	  return "def"
	}

	function tokenFunProc(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  if(!state.hasPassedFirstStage && stream.eat("{")) {
	    state.hasPassedFirstStage = true;
	    return "bracket";
	  }
	  else if(state.hasPassedFirstStage) {
	    stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);
	    state.hasPassedFirstStage = false;
	    state.tokenize = tokenBase$o;
	    return "def"
	  }
	  else {
	    state.tokenize = tokenBase$o;
	    return null;
	  }
	}

	function tokenComment$9(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$o;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenString$h(quote) {
	  return function (stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        end = true;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped)
	      state.tokenize = tokenBase$o;
	    return "string";
	  };
	}

	function buildElectricInputRegEx() {
	  // Reindentation should occur on [] or on a match of any of
	  // the block closing keywords, at the end of a line.
	  var allClosings = middle$1.concat(end);
	  return new RegExp("[\\[\\]]|(" + allClosings.join("|") + ")$");
	}

	const oz = {
	  name: "oz",

	  startState: function () {
	    return {
	      tokenize: tokenBase$o,
	      currentIndent: 0,
	      doInCurrentLine: false,
	      hasPassedFirstStage: false
	    };
	  },

	  token: function (stream, state) {
	    if (stream.sol())
	      state.doInCurrentLine = 0;

	    return state.tokenize(stream, state);
	  },

	  indent: function (state, textAfter, cx) {
	    var trueText = textAfter.replace(/^\s+|\s+$/g, '');

	    if (trueText.match(endKeywords$1) || trueText.match(middleKeywords$1) || trueText.match(/(\[])/))
	      return cx.unit * (state.currentIndent - 1);

	    if (state.currentIndent < 0)
	      return 0;

	    return state.currentIndent * cx.unit
	  },

	  languageData: {
	    indentOnInut: buildElectricInputRegEx(),
	    commentTokens: {line: "%", block: {open: "/*", close: "*/"}}
	  }
	};

	var oz$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		oz: oz
	});

	function words$a(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	var keywords$l = words$a(
	  "absolute and array asm begin case const constructor destructor div do " +
	    "downto else end file for function goto if implementation in inherited " +
	    "inline interface label mod nil not object of operator or packed procedure " +
	    "program record reintroduce repeat self set shl shr string then to type " +
	    "unit until uses var while with xor as class dispinterface except exports " +
	    "finalization finally initialization inline is library on out packed " +
	    "property raise resourcestring threadvar try absolute abstract alias " +
	    "assembler bitpacked break cdecl continue cppdecl cvar default deprecated " +
	    "dynamic enumerator experimental export external far far16 forward generic " +
	    "helper implements index interrupt iocheck local message name near " +
	    "nodefault noreturn nostackframe oldfpccall otherwise overload override " +
	    "pascal platform private protected public published read register " +
	    "reintroduce result safecall saveregisters softfloat specialize static " +
	    "stdcall stored strict unaligned unimplemented varargs virtual write");
	var atoms$5 = {"null": true};

	var isOperatorChar$7 = /[+\-*&%=<>!?|\/]/;

	function tokenBase$n(stream, state) {
	  var ch = stream.next();
	  if (ch == "#" && state.startOfLine) {
	    stream.skipToEnd();
	    return "meta";
	  }
	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$g(ch);
	    return state.tokenize(stream, state);
	  }
	  if (ch == "(" && stream.eat("*")) {
	    state.tokenize = tokenComment$8;
	    return tokenComment$8(stream, state);
	  }
	  if (ch == "{") {
	    state.tokenize = tokenCommentBraces;
	    return tokenCommentBraces(stream, state);
	  }
	  if (/[\[\]\(\),;\:\.]/.test(ch)) {
	    return null;
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (ch == "/") {
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$7.test(ch)) {
	    stream.eatWhile(isOperatorChar$7);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_]/);
	  var cur = stream.current();
	  if (keywords$l.propertyIsEnumerable(cur)) return "keyword";
	  if (atoms$5.propertyIsEnumerable(cur)) return "atom";
	  return "variable";
	}

	function tokenString$g(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped) state.tokenize = null;
	    return "string";
	  };
	}

	function tokenComment$8(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == ")" && maybeEnd) {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenCommentBraces(stream, state) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch == "}") {
	      state.tokenize = null;
	      break;
	    }
	  }
	  return "comment";
	}

	// Interface

	const pascal = {
	  name: "pascal",

	  startState: function() {
	    return {tokenize: null};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = (state.tokenize || tokenBase$n)(stream, state);
	    if (style == "comment" || style == "meta") return style;
	    return style;
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {block: {open: "(*", close: "*)"}}
	  }
	};

	var pascal$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		pascal: pascal
	});

	// it's like "peek", but need for look-ahead or look-behind if index < 0
	function look(stream, c){
	  return stream.string.charAt(stream.pos+(c||0));
	}

	// return a part of prefix of current stream from current position
	function prefix(stream, c){
	  if(c){
	    var x=stream.pos-c;
	    return stream.string.substr((x>=0?x:0),c);}
	  else {
	    return stream.string.substr(0,stream.pos-1);
	  }
	}

	// return a part of suffix of current stream from current position
	function suffix(stream, c){
	  var y=stream.string.length;
	  var x=y-stream.pos+1;
	  return stream.string.substr(stream.pos,(c&&c<y?c:x));
	}

	// eating and vomiting a part of stream from current position
	function eatSuffix(stream, c){
	  var x=stream.pos+c;
	  var y;
	  if(x<=0)
	    stream.pos=0;
	  else if(x>=(y=stream.string.length-1))
	    stream.pos=y;
	  else
	    stream.pos=x;
	}

	// http://perldoc.perl.org
	var PERL={                                      //   null - magic touch
	  //   1 - keyword
	  //   2 - def
	  //   3 - atom
	  //   4 - operator
	  //   5 - builtin (predefined)
	  //   [x,y] - x=1,2,3; y=must be defined if x{...}
	  //      PERL operators
	  '->':   4,
	  '++':   4,
	  '--':   4,
	  '**':   4,
	  //   ! ~ \ and unary + and -
	  '=~':   4,
	  '!~':   4,
	  '*':   4,
	  '/':   4,
	  '%':   4,
	  'x':   4,
	  '+':   4,
	  '-':   4,
	  '.':   4,
	  '<<':   4,
	  '>>':   4,
	  //   named unary operators
	  '<':   4,
	  '>':   4,
	  '<=':   4,
	  '>=':   4,
	  'lt':   4,
	  'gt':   4,
	  'le':   4,
	  'ge':   4,
	  '==':   4,
	  '!=':   4,
	  '<=>':   4,
	  'eq':   4,
	  'ne':   4,
	  'cmp':   4,
	  '~~':   4,
	  '&':   4,
	  '|':   4,
	  '^':   4,
	  '&&':   4,
	  '||':   4,
	  '//':   4,
	  '..':   4,
	  '...':   4,
	  '?':   4,
	  ':':   4,
	  '=':   4,
	  '+=':   4,
	  '-=':   4,
	  '*=':   4,  //   etc. ???
	  ',':   4,
	  '=>':   4,
	  '::':   4,
	  //   list operators (rightward)
	  'not':   4,
	  'and':   4,
	  'or':   4,
	  'xor':   4,
	  //      PERL predefined variables (I know, what this is a paranoid idea, but may be needed for people, who learn PERL, and for me as well, ...and may be for you?;)
	  'BEGIN':   [5,1],
	  'END':   [5,1],
	  'PRINT':   [5,1],
	  'PRINTF':   [5,1],
	  'GETC':   [5,1],
	  'READ':   [5,1],
	  'READLINE':   [5,1],
	  'DESTROY':   [5,1],
	  'TIE':   [5,1],
	  'TIEHANDLE':   [5,1],
	  'UNTIE':   [5,1],
	  'STDIN':    5,
	  'STDIN_TOP':    5,
	  'STDOUT':    5,
	  'STDOUT_TOP':    5,
	  'STDERR':    5,
	  'STDERR_TOP':    5,
	  '$ARG':    5,
	  '$_':    5,
	  '@ARG':    5,
	  '@_':    5,
	  '$LIST_SEPARATOR':    5,
	  '$"':    5,
	  '$PROCESS_ID':    5,
	  '$PID':    5,
	  '$$':    5,
	  '$REAL_GROUP_ID':    5,
	  '$GID':    5,
	  '$(':    5,
	  '$EFFECTIVE_GROUP_ID':    5,
	  '$EGID':    5,
	  '$)':    5,
	  '$PROGRAM_NAME':    5,
	  '$0':    5,
	  '$SUBSCRIPT_SEPARATOR':    5,
	  '$SUBSEP':    5,
	  '$;':    5,
	  '$REAL_USER_ID':    5,
	  '$UID':    5,
	  '$<':    5,
	  '$EFFECTIVE_USER_ID':    5,
	  '$EUID':    5,
	  '$>':    5,
	  '$a':    5,
	  '$b':    5,
	  '$COMPILING':    5,
	  '$^C':    5,
	  '$DEBUGGING':    5,
	  '$^D':    5,
	  '${^ENCODING}':    5,
	  '$ENV':    5,
	  '%ENV':    5,
	  '$SYSTEM_FD_MAX':    5,
	  '$^F':    5,
	  '@F':    5,
	  '${^GLOBAL_PHASE}':    5,
	  '$^H':    5,
	  '%^H':    5,
	  '@INC':    5,
	  '%INC':    5,
	  '$INPLACE_EDIT':    5,
	  '$^I':    5,
	  '$^M':    5,
	  '$OSNAME':    5,
	  '$^O':    5,
	  '${^OPEN}':    5,
	  '$PERLDB':    5,
	  '$^P':    5,
	  '$SIG':    5,
	  '%SIG':    5,
	  '$BASETIME':    5,
	  '$^T':    5,
	  '${^TAINT}':    5,
	  '${^UNICODE}':    5,
	  '${^UTF8CACHE}':    5,
	  '${^UTF8LOCALE}':    5,
	  '$PERL_VERSION':    5,
	  '$^V':    5,
	  '${^WIN32_SLOPPY_STAT}':    5,
	  '$EXECUTABLE_NAME':    5,
	  '$^X':    5,
	  '$1':    5, // - regexp $1, $2...
	  '$MATCH':    5,
	  '$&':    5,
	  '${^MATCH}':    5,
	  '$PREMATCH':    5,
	  '$`':    5,
	  '${^PREMATCH}':    5,
	  '$POSTMATCH':    5,
	  "$'":    5,
	  '${^POSTMATCH}':    5,
	  '$LAST_PAREN_MATCH':    5,
	  '$+':    5,
	  '$LAST_SUBMATCH_RESULT':    5,
	  '$^N':    5,
	  '@LAST_MATCH_END':    5,
	  '@+':    5,
	  '%LAST_PAREN_MATCH':    5,
	  '%+':    5,
	  '@LAST_MATCH_START':    5,
	  '@-':    5,
	  '%LAST_MATCH_START':    5,
	  '%-':    5,
	  '$LAST_REGEXP_CODE_RESULT':    5,
	  '$^R':    5,
	  '${^RE_DEBUG_FLAGS}':    5,
	  '${^RE_TRIE_MAXBUF}':    5,
	  '$ARGV':    5,
	  '@ARGV':    5,
	  'ARGV':    5,
	  'ARGVOUT':    5,
	  '$OUTPUT_FIELD_SEPARATOR':    5,
	  '$OFS':    5,
	  '$,':    5,
	  '$INPUT_LINE_NUMBER':    5,
	  '$NR':    5,
	  '$.':    5,
	  '$INPUT_RECORD_SEPARATOR':    5,
	  '$RS':    5,
	  '$/':    5,
	  '$OUTPUT_RECORD_SEPARATOR':    5,
	  '$ORS':    5,
	  '$\\':    5,
	  '$OUTPUT_AUTOFLUSH':    5,
	  '$|':    5,
	  '$ACCUMULATOR':    5,
	  '$^A':    5,
	  '$FORMAT_FORMFEED':    5,
	  '$^L':    5,
	  '$FORMAT_PAGE_NUMBER':    5,
	  '$%':    5,
	  '$FORMAT_LINES_LEFT':    5,
	  '$-':    5,
	  '$FORMAT_LINE_BREAK_CHARACTERS':    5,
	  '$:':    5,
	  '$FORMAT_LINES_PER_PAGE':    5,
	  '$=':    5,
	  '$FORMAT_TOP_NAME':    5,
	  '$^':    5,
	  '$FORMAT_NAME':    5,
	  '$~':    5,
	  '${^CHILD_ERROR_NATIVE}':    5,
	  '$EXTENDED_OS_ERROR':    5,
	  '$^E':    5,
	  '$EXCEPTIONS_BEING_CAUGHT':    5,
	  '$^S':    5,
	  '$WARNING':    5,
	  '$^W':    5,
	  '${^WARNING_BITS}':    5,
	  '$OS_ERROR':    5,
	  '$ERRNO':    5,
	  '$!':    5,
	  '%OS_ERROR':    5,
	  '%ERRNO':    5,
	  '%!':    5,
	  '$CHILD_ERROR':    5,
	  '$?':    5,
	  '$EVAL_ERROR':    5,
	  '$@':    5,
	  '$OFMT':    5,
	  '$#':    5,
	  '$*':    5,
	  '$ARRAY_BASE':    5,
	  '$[':    5,
	  '$OLD_PERL_VERSION':    5,
	  '$]':    5,
	  //      PERL blocks
	  'if':[1,1],
	  elsif:[1,1],
	  'else':[1,1],
	  'while':[1,1],
	  unless:[1,1],
	  'for':[1,1],
	  foreach:[1,1],
	  //      PERL functions
	  'abs':1,     // - absolute value function
	  accept:1,     // - accept an incoming socket connect
	  alarm:1,     // - schedule a SIGALRM
	  'atan2':1,     // - arctangent of Y/X in the range -PI to PI
	  bind:1,     // - binds an address to a socket
	  binmode:1,     // - prepare binary files for I/O
	  bless:1,     // - create an object
	  bootstrap:1,     //
	  'break':1,     // - break out of a "given" block
	  caller:1,     // - get context of the current subroutine call
	  chdir:1,     // - change your current working directory
	  chmod:1,     // - changes the permissions on a list of files
	  chomp:1,     // - remove a trailing record separator from a string
	  chop:1,     // - remove the last character from a string
	  chown:1,     // - change the ownership on a list of files
	  chr:1,     // - get character this number represents
	  chroot:1,     // - make directory new root for path lookups
	  close:1,     // - close file (or pipe or socket) handle
	  closedir:1,     // - close directory handle
	  connect:1,     // - connect to a remote socket
	  'continue':[1,1], // - optional trailing block in a while or foreach
	  'cos':1,     // - cosine function
	  crypt:1,     // - one-way passwd-style encryption
	  dbmclose:1,     // - breaks binding on a tied dbm file
	  dbmopen:1,     // - create binding on a tied dbm file
	  'default':1,     //
	  defined:1,     // - test whether a value, variable, or function is defined
	  'delete':1,     // - deletes a value from a hash
	  die:1,     // - raise an exception or bail out
	  'do':1,     // - turn a BLOCK into a TERM
	  dump:1,     // - create an immediate core dump
	  each:1,     // - retrieve the next key/value pair from a hash
	  endgrent:1,     // - be done using group file
	  endhostent:1,     // - be done using hosts file
	  endnetent:1,     // - be done using networks file
	  endprotoent:1,     // - be done using protocols file
	  endpwent:1,     // - be done using passwd file
	  endservent:1,     // - be done using services file
	  eof:1,     // - test a filehandle for its end
	  'eval':1,     // - catch exceptions or compile and run code
	  'exec':1,     // - abandon this program to run another
	  exists:1,     // - test whether a hash key is present
	  exit:1,     // - terminate this program
	  'exp':1,     // - raise I to a power
	  fcntl:1,     // - file control system call
	  fileno:1,     // - return file descriptor from filehandle
	  flock:1,     // - lock an entire file with an advisory lock
	  fork:1,     // - create a new process just like this one
	  format:1,     // - declare a picture format with use by the write() function
	  formline:1,     // - internal function used for formats
	  getc:1,     // - get the next character from the filehandle
	  getgrent:1,     // - get next group record
	  getgrgid:1,     // - get group record given group user ID
	  getgrnam:1,     // - get group record given group name
	  gethostbyaddr:1,     // - get host record given its address
	  gethostbyname:1,     // - get host record given name
	  gethostent:1,     // - get next hosts record
	  getlogin:1,     // - return who logged in at this tty
	  getnetbyaddr:1,     // - get network record given its address
	  getnetbyname:1,     // - get networks record given name
	  getnetent:1,     // - get next networks record
	  getpeername:1,     // - find the other end of a socket connection
	  getpgrp:1,     // - get process group
	  getppid:1,     // - get parent process ID
	  getpriority:1,     // - get current nice value
	  getprotobyname:1,     // - get protocol record given name
	  getprotobynumber:1,     // - get protocol record numeric protocol
	  getprotoent:1,     // - get next protocols record
	  getpwent:1,     // - get next passwd record
	  getpwnam:1,     // - get passwd record given user login name
	  getpwuid:1,     // - get passwd record given user ID
	  getservbyname:1,     // - get services record given its name
	  getservbyport:1,     // - get services record given numeric port
	  getservent:1,     // - get next services record
	  getsockname:1,     // - retrieve the sockaddr for a given socket
	  getsockopt:1,     // - get socket options on a given socket
	  given:1,     //
	  glob:1,     // - expand filenames using wildcards
	  gmtime:1,     // - convert UNIX time into record or string using Greenwich time
	  'goto':1,     // - create spaghetti code
	  grep:1,     // - locate elements in a list test true against a given criterion
	  hex:1,     // - convert a string to a hexadecimal number
	  'import':1,     // - patch a module's namespace into your own
	  index:1,     // - find a substring within a string
	  'int':1,     // - get the integer portion of a number
	  ioctl:1,     // - system-dependent device control system call
	  'join':1,     // - join a list into a string using a separator
	  keys:1,     // - retrieve list of indices from a hash
	  kill:1,     // - send a signal to a process or process group
	  last:1,     // - exit a block prematurely
	  lc:1,     // - return lower-case version of a string
	  lcfirst:1,     // - return a string with just the next letter in lower case
	  length:1,     // - return the number of bytes in a string
	  'link':1,     // - create a hard link in the filesystem
	  listen:1,     // - register your socket as a server
	  local: 2,    // - create a temporary value for a global variable (dynamic scoping)
	  localtime:1,     // - convert UNIX time into record or string using local time
	  lock:1,     // - get a thread lock on a variable, subroutine, or method
	  'log':1,     // - retrieve the natural logarithm for a number
	  lstat:1,     // - stat a symbolic link
	  m:null,  // - match a string with a regular expression pattern
	  map:1,     // - apply a change to a list to get back a new list with the changes
	  mkdir:1,     // - create a directory
	  msgctl:1,     // - SysV IPC message control operations
	  msgget:1,     // - get SysV IPC message queue
	  msgrcv:1,     // - receive a SysV IPC message from a message queue
	  msgsnd:1,     // - send a SysV IPC message to a message queue
	  my: 2,    // - declare and assign a local variable (lexical scoping)
	  'new':1,     //
	  next:1,     // - iterate a block prematurely
	  no:1,     // - unimport some module symbols or semantics at compile time
	  oct:1,     // - convert a string to an octal number
	  open:1,     // - open a file, pipe, or descriptor
	  opendir:1,     // - open a directory
	  ord:1,     // - find a character's numeric representation
	  our: 2,    // - declare and assign a package variable (lexical scoping)
	  pack:1,     // - convert a list into a binary representation
	  'package':1,     // - declare a separate global namespace
	  pipe:1,     // - open a pair of connected filehandles
	  pop:1,     // - remove the last element from an array and return it
	  pos:1,     // - find or set the offset for the last/next m//g search
	  print:1,     // - output a list to a filehandle
	  printf:1,     // - output a formatted list to a filehandle
	  prototype:1,     // - get the prototype (if any) of a subroutine
	  push:1,     // - append one or more elements to an array
	  q:null,  // - singly quote a string
	  qq:null,  // - doubly quote a string
	  qr:null,  // - Compile pattern
	  quotemeta:null,  // - quote regular expression magic characters
	  qw:null,  // - quote a list of words
	  qx:null,  // - backquote quote a string
	  rand:1,     // - retrieve the next pseudorandom number
	  read:1,     // - fixed-length buffered input from a filehandle
	  readdir:1,     // - get a directory from a directory handle
	  readline:1,     // - fetch a record from a file
	  readlink:1,     // - determine where a symbolic link is pointing
	  readpipe:1,     // - execute a system command and collect standard output
	  recv:1,     // - receive a message over a Socket
	  redo:1,     // - start this loop iteration over again
	  ref:1,     // - find out the type of thing being referenced
	  rename:1,     // - change a filename
	  require:1,     // - load in external functions from a library at runtime
	  reset:1,     // - clear all variables of a given name
	  'return':1,     // - get out of a function early
	  reverse:1,     // - flip a string or a list
	  rewinddir:1,     // - reset directory handle
	  rindex:1,     // - right-to-left substring search
	  rmdir:1,     // - remove a directory
	  s:null,  // - replace a pattern with a string
	  say:1,     // - print with newline
	  scalar:1,     // - force a scalar context
	  seek:1,     // - reposition file pointer for random-access I/O
	  seekdir:1,     // - reposition directory pointer
	  select:1,     // - reset default output or do I/O multiplexing
	  semctl:1,     // - SysV semaphore control operations
	  semget:1,     // - get set of SysV semaphores
	  semop:1,     // - SysV semaphore operations
	  send:1,     // - send a message over a socket
	  setgrent:1,     // - prepare group file for use
	  sethostent:1,     // - prepare hosts file for use
	  setnetent:1,     // - prepare networks file for use
	  setpgrp:1,     // - set the process group of a process
	  setpriority:1,     // - set a process's nice value
	  setprotoent:1,     // - prepare protocols file for use
	  setpwent:1,     // - prepare passwd file for use
	  setservent:1,     // - prepare services file for use
	  setsockopt:1,     // - set some socket options
	  shift:1,     // - remove the first element of an array, and return it
	  shmctl:1,     // - SysV shared memory operations
	  shmget:1,     // - get SysV shared memory segment identifier
	  shmread:1,     // - read SysV shared memory
	  shmwrite:1,     // - write SysV shared memory
	  shutdown:1,     // - close down just half of a socket connection
	  'sin':1,     // - return the sine of a number
	  sleep:1,     // - block for some number of seconds
	  socket:1,     // - create a socket
	  socketpair:1,     // - create a pair of sockets
	  'sort':1,     // - sort a list of values
	  splice:1,     // - add or remove elements anywhere in an array
	  'split':1,     // - split up a string using a regexp delimiter
	  sprintf:1,     // - formatted print into a string
	  'sqrt':1,     // - square root function
	  srand:1,     // - seed the random number generator
	  stat:1,     // - get a file's status information
	  state:1,     // - declare and assign a state variable (persistent lexical scoping)
	  study:1,     // - optimize input data for repeated searches
	  'sub':1,     // - declare a subroutine, possibly anonymously
	  'substr':1,     // - get or alter a portion of a string
	  symlink:1,     // - create a symbolic link to a file
	  syscall:1,     // - execute an arbitrary system call
	  sysopen:1,     // - open a file, pipe, or descriptor
	  sysread:1,     // - fixed-length unbuffered input from a filehandle
	  sysseek:1,     // - position I/O pointer on handle used with sysread and syswrite
	  system:1,     // - run a separate program
	  syswrite:1,     // - fixed-length unbuffered output to a filehandle
	  tell:1,     // - get current seekpointer on a filehandle
	  telldir:1,     // - get current seekpointer on a directory handle
	  tie:1,     // - bind a variable to an object class
	  tied:1,     // - get a reference to the object underlying a tied variable
	  time:1,     // - return number of seconds since 1970
	  times:1,     // - return elapsed time for self and child processes
	  tr:null,  // - transliterate a string
	  truncate:1,     // - shorten a file
	  uc:1,     // - return upper-case version of a string
	  ucfirst:1,     // - return a string with just the next letter in upper case
	  umask:1,     // - set file creation mode mask
	  undef:1,     // - remove a variable or function definition
	  unlink:1,     // - remove one link to a file
	  unpack:1,     // - convert binary structure into normal perl variables
	  unshift:1,     // - prepend more elements to the beginning of a list
	  untie:1,     // - break a tie binding to a variable
	  use:1,     // - load in a module at compile time
	  utime:1,     // - set a file's last access and modify times
	  values:1,     // - return a list of the values in a hash
	  vec:1,     // - test or set particular bits in a string
	  wait:1,     // - wait for any child process to die
	  waitpid:1,     // - wait for a particular child process to die
	  wantarray:1,     // - get void vs scalar vs list context of current subroutine call
	  warn:1,     // - print debugging info
	  when:1,     //
	  write:1,     // - print a picture record
	  y:null}; // - transliterate a string

	var RXstyle="string.special";
	var RXmodifiers=/[goseximacplud]/;              // NOTE: "m", "s", "y" and "tr" need to correct real modifiers for each regexp type

	function tokenChain(stream,state,chain,style,tail){     // NOTE: chain.length > 2 is not working now (it's for s[...][...]geos;)
	  state.chain=null;                               //                                                          12   3tail
	  state.style=null;
	  state.tail=null;
	  state.tokenize=function(stream,state){
	    var e=false,c,i=0;
	    while(c=stream.next()){
	      if(c===chain[i]&&!e){
	        if(chain[++i]!==undefined){
	          state.chain=chain[i];
	          state.style=style;
	          state.tail=tail;}
	        else if(tail)
	          stream.eatWhile(tail);
	        state.tokenize=tokenPerl;
	        return style;}
	      e=!e&&c=="\\";}
	    return style;};
	  return state.tokenize(stream,state);}

	function tokenSOMETHING(stream,state,string){
	  state.tokenize=function(stream,state){
	    if(stream.string==string)
	      state.tokenize=tokenPerl;
	    stream.skipToEnd();
	    return "string";};
	  return state.tokenize(stream,state);}

	function tokenPerl(stream,state){
	  if(stream.eatSpace())
	    return null;
	  if(state.chain)
	    return tokenChain(stream,state,state.chain,state.style,state.tail);
	  if(stream.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))
	    return 'number';
	  if(stream.match(/^<<(?=[_a-zA-Z])/)){                  // NOTE: <<SOMETHING\n...\nSOMETHING\n
	    stream.eatWhile(/\w/);
	    return tokenSOMETHING(stream,state,stream.current().substr(2));}
	  if(stream.sol()&&stream.match(/^\=item(?!\w)/)){// NOTE: \n=item...\n=cut\n
	    return tokenSOMETHING(stream,state,'=cut');}
	  var ch=stream.next();
	  if(ch=='"'||ch=="'"){                           // NOTE: ' or " or <<'SOMETHING'\n...\nSOMETHING\n or <<"SOMETHING"\n...\nSOMETHING\n
	    if(prefix(stream, 3)=="<<"+ch){
	      var p=stream.pos;
	      stream.eatWhile(/\w/);
	      var n=stream.current().substr(1);
	      if(n&&stream.eat(ch))
	        return tokenSOMETHING(stream,state,n);
	      stream.pos=p;}
	    return tokenChain(stream,state,[ch],"string");}
	  if(ch=="q"){
	    var c=look(stream, -2);
	    if(!(c&&/\w/.test(c))){
	      c=look(stream, 0);
	      if(c=="x"){
	        c=look(stream, 1);
	        if(c=="("){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[")"],RXstyle,RXmodifiers);}
	        if(c=="["){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["]"],RXstyle,RXmodifiers);}
	        if(c=="{"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["}"],RXstyle,RXmodifiers);}
	        if(c=="<"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[">"],RXstyle,RXmodifiers);}
	        if(/[\^'"!~\/]/.test(c)){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[stream.eat(c)],RXstyle,RXmodifiers);}}
	      else if(c=="q"){
	        c=look(stream, 1);
	        if(c=="("){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[")"],"string");}
	        if(c=="["){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["]"],"string");}
	        if(c=="{"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["}"],"string");}
	        if(c=="<"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[">"],"string");}
	        if(/[\^'"!~\/]/.test(c)){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[stream.eat(c)],"string");}}
	      else if(c=="w"){
	        c=look(stream, 1);
	        if(c=="("){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[")"],"bracket");}
	        if(c=="["){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["]"],"bracket");}
	        if(c=="{"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["}"],"bracket");}
	        if(c=="<"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[">"],"bracket");}
	        if(/[\^'"!~\/]/.test(c)){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[stream.eat(c)],"bracket");}}
	      else if(c=="r"){
	        c=look(stream, 1);
	        if(c=="("){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[")"],RXstyle,RXmodifiers);}
	        if(c=="["){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["]"],RXstyle,RXmodifiers);}
	        if(c=="{"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,["}"],RXstyle,RXmodifiers);}
	        if(c=="<"){
	          eatSuffix(stream, 2);
	          return tokenChain(stream,state,[">"],RXstyle,RXmodifiers);}
	        if(/[\^'"!~\/]/.test(c)){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[stream.eat(c)],RXstyle,RXmodifiers);}}
	      else if(/[\^'"!~\/(\[{<]/.test(c)){
	        if(c=="("){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[")"],"string");}
	        if(c=="["){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,["]"],"string");}
	        if(c=="{"){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,["}"],"string");}
	        if(c=="<"){
	          eatSuffix(stream, 1);
	          return tokenChain(stream,state,[">"],"string");}
	        if(/[\^'"!~\/]/.test(c)){
	          return tokenChain(stream,state,[stream.eat(c)],"string");}}}}
	  if(ch=="m"){
	    var c=look(stream, -2);
	    if(!(c&&/\w/.test(c))){
	      c=stream.eat(/[(\[{<\^'"!~\/]/);
	      if(c){
	        if(/[\^'"!~\/]/.test(c)){
	          return tokenChain(stream,state,[c],RXstyle,RXmodifiers);}
	        if(c=="("){
	          return tokenChain(stream,state,[")"],RXstyle,RXmodifiers);}
	        if(c=="["){
	          return tokenChain(stream,state,["]"],RXstyle,RXmodifiers);}
	        if(c=="{"){
	          return tokenChain(stream,state,["}"],RXstyle,RXmodifiers);}
	        if(c=="<"){
	          return tokenChain(stream,state,[">"],RXstyle,RXmodifiers);}}}}
	  if(ch=="s"){
	    var c=/[\/>\]})\w]/.test(look(stream, -2));
	    if(!c){
	      c=stream.eat(/[(\[{<\^'"!~\/]/);
	      if(c){
	        if(c=="[")
	          return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers);
	        if(c=="{")
	          return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers);
	        if(c=="<")
	          return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers);
	        if(c=="(")
	          return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers);
	        return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}}
	  if(ch=="y"){
	    var c=/[\/>\]})\w]/.test(look(stream, -2));
	    if(!c){
	      c=stream.eat(/[(\[{<\^'"!~\/]/);
	      if(c){
	        if(c=="[")
	          return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers);
	        if(c=="{")
	          return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers);
	        if(c=="<")
	          return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers);
	        if(c=="(")
	          return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers);
	        return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}}
	  if(ch=="t"){
	    var c=/[\/>\]})\w]/.test(look(stream, -2));
	    if(!c){
	      c=stream.eat("r");if(c){
	        c=stream.eat(/[(\[{<\^'"!~\/]/);
	        if(c){
	          if(c=="[")
	            return tokenChain(stream,state,["]","]"],RXstyle,RXmodifiers);
	          if(c=="{")
	            return tokenChain(stream,state,["}","}"],RXstyle,RXmodifiers);
	          if(c=="<")
	            return tokenChain(stream,state,[">",">"],RXstyle,RXmodifiers);
	          if(c=="(")
	            return tokenChain(stream,state,[")",")"],RXstyle,RXmodifiers);
	          return tokenChain(stream,state,[c,c],RXstyle,RXmodifiers);}}}}
	  if(ch=="`"){
	    return tokenChain(stream,state,[ch],"builtin");}
	  if(ch=="/"){
	    if(!/~\s*$/.test(prefix(stream)))
	      return "operator";
	    else
	      return tokenChain(stream,state,[ch],RXstyle,RXmodifiers);}
	  if(ch=="$"){
	    var p=stream.pos;
	    if(stream.eatWhile(/\d/)||stream.eat("{")&&stream.eatWhile(/\d/)&&stream.eat("}"))
	      return "builtin";
	    else
	      stream.pos=p;}
	  if(/[$@%]/.test(ch)){
	    var p=stream.pos;
	    if(stream.eat("^")&&stream.eat(/[A-Z]/)||!/[@$%&]/.test(look(stream, -2))&&stream.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){
	      var c=stream.current();
	      if(PERL[c])
	        return "builtin";}
	    stream.pos=p;}
	  if(/[$@%&]/.test(ch)){
	    if(stream.eatWhile(/[\w$]/)||stream.eat("{")&&stream.eatWhile(/[\w$]/)&&stream.eat("}")){
	      var c=stream.current();
	      if(PERL[c])
	        return "builtin";
	      else
	        return "variable";}}
	  if(ch=="#"){
	    if(look(stream, -2)!="$"){
	      stream.skipToEnd();
	      return "comment";}}
	  if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(ch)){
	    var p=stream.pos;
	    stream.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/);
	    if(PERL[stream.current()])
	      return "operator";
	    else
	      stream.pos=p;}
	  if(ch=="_"){
	    if(stream.pos==1){
	      if(suffix(stream, 6)=="_END__"){
	        return tokenChain(stream,state,['\0'],"comment");}
	      else if(suffix(stream, 7)=="_DATA__"){
	        return tokenChain(stream,state,['\0'],"builtin");}
	      else if(suffix(stream, 7)=="_C__"){
	        return tokenChain(stream,state,['\0'],"string");}}}
	  if(/\w/.test(ch)){
	    var p=stream.pos;
	    if(look(stream, -2)=="{"&&(look(stream, 0)=="}"||stream.eatWhile(/\w/)&&look(stream, 0)=="}"))
	      return "string";
	    else
	      stream.pos=p;}
	  if(/[A-Z]/.test(ch)){
	    var l=look(stream, -2);
	    var p=stream.pos;
	    stream.eatWhile(/[A-Z_]/);
	    if(/[\da-z]/.test(look(stream, 0))){
	      stream.pos=p;}
	    else {
	      var c=PERL[stream.current()];
	      if(!c)
	        return "meta";
	      if(c[1])
	        c=c[0];
	      if(l!=":"){
	        if(c==1)
	          return "keyword";
	        else if(c==2)
	          return "def";
	        else if(c==3)
	          return "atom";
	        else if(c==4)
	          return "operator";
	        else if(c==5)
	          return "builtin";
	        else
	          return "meta";}
	      else
	        return "meta";}}
	  if(/[a-zA-Z_]/.test(ch)){
	    var l=look(stream, -2);
	    stream.eatWhile(/\w/);
	    var c=PERL[stream.current()];
	    if(!c)
	      return "meta";
	    if(c[1])
	      c=c[0];
	    if(l!=":"){
	      if(c==1)
	        return "keyword";
	      else if(c==2)
	        return "def";
	      else if(c==3)
	        return "atom";
	      else if(c==4)
	        return "operator";
	      else if(c==5)
	        return "builtin";
	      else
	        return "meta";}
	    else
	      return "meta";}
	  return null;}

	const perl = {
	  name: "perl",

	  startState: function() {
	    return {
	      tokenize: tokenPerl,
	      chain: null,
	      style: null,
	      tail: null
	    };
	  },
	  token: function(stream, state) {
	    return (state.tokenize || tokenPerl)(stream, state);
	  },
	  languageData: {
	    commentTokens: {line: "#"},
	    wordChars: "$"
	  }
	};

	var perl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		perl: perl
	});

	function words$9(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	// builtin funcs taken from trunk revision 1303237
	var pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL "
	    + "CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS "
	    + "DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG "
	    + "FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN "
	    + "INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER "
	    + "ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS "
	    + "LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA  "
	    + "PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE "
	    + "SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG "
	    + "TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ";

	// taken from QueryLexer.g
	var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP "
	    + "JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL "
	    + "PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE "
	    + "SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE "
	    + "NEQ MATCHES TRUE FALSE DUMP";

	// data types
	var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";

	var builtins$3 = words$9(pBuiltins), keywords$k = words$9(pKeywords), types$4 = words$9(pTypes);

	var isOperatorChar$6 = /[*+\-%<>=&?:\/!|]/;

	function chain$5(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}

	function tokenComment$7(stream, state) {
	  var isEnd = false;
	  var ch;
	  while(ch = stream.next()) {
	    if(ch == "/" && isEnd) {
	      state.tokenize = tokenBase$m;
	      break;
	    }
	    isEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenString$f(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        end = true; break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !escaped)
	      state.tokenize = tokenBase$m;
	    return "error";
	  };
	}


	function tokenBase$m(stream, state) {
	  var ch = stream.next();

	  // is a start of string?
	  if (ch == '"' || ch == "'")
	    return chain$5(stream, state, tokenString$f(ch));
	  // is it one of the special chars
	  else if(/[\[\]{}\(\),;\.]/.test(ch))
	    return null;
	  // is it a number?
	  else if(/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  // multi line comment or operator
	  else if (ch == "/") {
	    if (stream.eat("*")) {
	      return chain$5(stream, state, tokenComment$7);
	    }
	    else {
	      stream.eatWhile(isOperatorChar$6);
	      return "operator";
	    }
	  }
	  // single line comment or operator
	  else if (ch=="-") {
	    if(stream.eat("-")){
	      stream.skipToEnd();
	      return "comment";
	    }
	    else {
	      stream.eatWhile(isOperatorChar$6);
	      return "operator";
	    }
	  }
	  // is it an operator
	  else if (isOperatorChar$6.test(ch)) {
	    stream.eatWhile(isOperatorChar$6);
	    return "operator";
	  }
	  else {
	    // get the while word
	    stream.eatWhile(/[\w\$_]/);
	    // is it one of the listed keywords?
	    if (keywords$k && keywords$k.propertyIsEnumerable(stream.current().toUpperCase())) {
	      //keywords can be used as variables like flatten(group), group.$0 etc..
	      if (!stream.eat(")") && !stream.eat("."))
	        return "keyword";
	    }
	    // is it one of the builtin functions?
	    if (builtins$3 && builtins$3.propertyIsEnumerable(stream.current().toUpperCase()))
	      return "builtin";
	    // is it one of the listed types?
	    if (types$4 && types$4.propertyIsEnumerable(stream.current().toUpperCase()))
	      return "type";
	    // default is a 'variable'
	    return "variable";
	  }
	}

	// Interface
	const pig = {
	  name: "pig",

	  startState: function() {
	    return {
	      tokenize: tokenBase$m,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    if(stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);
	    return style;
	  },

	  languageData: {
	    autocomplete: (pBuiltins + pTypes + pKeywords).split(" ")
	  }
	};

	var pig$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		pig: pig
	});

	function buildRegexp(patterns, options) {
	  options = options || {};
	  var prefix = options.prefix !== undefined ? options.prefix : '^';
	  var suffix = options.suffix !== undefined ? options.suffix : '\\b';

	  for (var i = 0; i < patterns.length; i++) {
	    if (patterns[i] instanceof RegExp) {
	      patterns[i] = patterns[i].source;
	    }
	    else {
	      patterns[i] = patterns[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
	    }
	  }

	  return new RegExp(prefix + '(' + patterns.join('|') + ')' + suffix, 'i');
	}

	var notCharacterOrDash = '(?=[^A-Za-z\\d\\-_]|$)';
	var varNames = /[\w\-:]/;
	var keywords$j = buildRegexp([
	  /begin|break|catch|continue|data|default|do|dynamicparam/,
	  /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
	  /param|process|return|switch|throw|trap|try|until|where|while/
	], { suffix: notCharacterOrDash });

	var punctuation = /[\[\]{},;`\\\.]|@[({]/;
	var wordOperators$1 = buildRegexp([
	  'f',
	  /b?not/,
	  /[ic]?split/, 'join',
	  /is(not)?/, 'as',
	  /[ic]?(eq|ne|[gl][te])/,
	  /[ic]?(not)?(like|match|contains)/,
	  /[ic]?replace/,
	  /b?(and|or|xor)/
	], { prefix: '-' });
	var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/;
	var operators$2 = buildRegexp([wordOperators$1, symbolOperators], { suffix: '' });

	var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i;

	var identifiers$3 = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/;

	var symbolBuiltins = /[A-Z]:|%|\?/i;
	var namedBuiltins = buildRegexp([
	  /Add-(Computer|Content|History|Member|PSSnapin|Type)/,
	  /Checkpoint-Computer/,
	  /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
	  /Compare-Object/,
	  /Complete-Transaction/,
	  /Connect-PSSession/,
	  /ConvertFrom-(Csv|Json|SecureString|StringData)/,
	  /Convert-Path/,
	  /ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
	  /Copy-Item(Property)?/,
	  /Debug-Process/,
	  /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
	  /Disconnect-PSSession/,
	  /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
	  /(Enter|Exit)-PSSession/,
	  /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
	  /ForEach-Object/,
	  /Format-(Custom|List|Table|Wide)/,
	  new RegExp('Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential'
	             + '|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job'
	             + '|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration'
	             + '|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)'),
	  /Group-Object/,
	  /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
	  /ImportSystemModules/,
	  /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
	  /Join-Path/,
	  /Limit-EventLog/,
	  /Measure-(Command|Object)/,
	  /Move-Item(Property)?/,
	  new RegExp('New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile'
	             + '|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)'),
	  /Out-(Default|File|GridView|Host|Null|Printer|String)/,
	  /Pause/,
	  /(Pop|Push)-Location/,
	  /Read-Host/,
	  /Receive-(Job|PSSession)/,
	  /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
	  /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
	  /Rename-(Computer|Item(Property)?)/,
	  /Reset-ComputerMachinePassword/,
	  /Resolve-Path/,
	  /Restart-(Computer|Service)/,
	  /Restore-Computer/,
	  /Resume-(Job|Service)/,
	  /Save-Help/,
	  /Select-(Object|String|Xml)/,
	  /Send-MailMessage/,
	  new RegExp('Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug' +
	             '|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)'),
	  /Show-(Command|ControlPanelItem|EventLog)/,
	  /Sort-Object/,
	  /Split-Path/,
	  /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
	  /Stop-(Computer|Job|Process|Service|Transcript)/,
	  /Suspend-(Job|Service)/,
	  /TabExpansion2/,
	  /Tee-Object/,
	  /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
	  /Trace-Command/,
	  /Unblock-File/,
	  /Undo-Transaction/,
	  /Unregister-(Event|PSSessionConfiguration)/,
	  /Update-(FormatData|Help|List|TypeData)/,
	  /Use-Transaction/,
	  /Wait-(Event|Job|Process)/,
	  /Where-Object/,
	  /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
	  /cd|help|mkdir|more|oss|prompt/,
	  /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
	  /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
	  /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
	  /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
	  /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
	  /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
	], { prefix: '', suffix: '' });
	var variableBuiltins = buildRegexp([
	  /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
	  /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
	  /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
	  /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
	  /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
	  /WarningPreference|WhatIfPreference/,

	  /Event|EventArgs|EventSubscriber|Sender/,
	  /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
	  /true|false|null/
	], { prefix: '\\$', suffix: '' });

	var builtins$2 = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash });

	var grammar = {
	  keyword: keywords$j,
	  number: numbers,
	  operator: operators$2,
	  builtin: builtins$2,
	  punctuation: punctuation,
	  variable: identifiers$3
	};

	// tokenizers
	function tokenBase$l(stream, state) {
	  // Handle Comments
	  //var ch = stream.peek();

	  var parent = state.returnStack[state.returnStack.length - 1];
	  if (parent && parent.shouldReturnFrom(state)) {
	    state.tokenize = parent.tokenize;
	    state.returnStack.pop();
	    return state.tokenize(stream, state);
	  }

	  if (stream.eatSpace()) {
	    return null;
	  }

	  if (stream.eat('(')) {
	    state.bracketNesting += 1;
	    return 'punctuation';
	  }

	  if (stream.eat(')')) {
	    state.bracketNesting -= 1;
	    return 'punctuation';
	  }

	  for (var key in grammar) {
	    if (stream.match(grammar[key])) {
	      return key;
	    }
	  }

	  var ch = stream.next();

	  // single-quote string
	  if (ch === "'") {
	    return tokenSingleQuoteString(stream, state);
	  }

	  if (ch === '$') {
	    return tokenVariable$1(stream, state);
	  }

	  // double-quote string
	  if (ch === '"') {
	    return tokenDoubleQuoteString(stream, state);
	  }

	  if (ch === '<' && stream.eat('#')) {
	    state.tokenize = tokenComment$6;
	    return tokenComment$6(stream, state);
	  }

	  if (ch === '#') {
	    stream.skipToEnd();
	    return 'comment';
	  }

	  if (ch === '@') {
	    var quoteMatch = stream.eat(/["']/);
	    if (quoteMatch && stream.eol()) {
	      state.tokenize = tokenMultiString;
	      state.startQuote = quoteMatch[0];
	      return tokenMultiString(stream, state);
	    } else if (stream.eol()) {
	      return 'error';
	    } else if (stream.peek().match(/[({]/)) {
	      return 'punctuation';
	    } else if (stream.peek().match(varNames)) {
	      // splatted variable
	      return tokenVariable$1(stream, state);
	    }
	  }
	  return 'error';
	}

	function tokenSingleQuoteString(stream, state) {
	  var ch;
	  while ((ch = stream.peek()) != null) {
	    stream.next();

	    if (ch === "'" && !stream.eat("'")) {
	      state.tokenize = tokenBase$l;
	      return 'string';
	    }
	  }

	  return 'error';
	}

	function tokenDoubleQuoteString(stream, state) {
	  var ch;
	  while ((ch = stream.peek()) != null) {
	    if (ch === '$') {
	      state.tokenize = tokenStringInterpolation;
	      return 'string';
	    }

	    stream.next();
	    if (ch === '`') {
	      stream.next();
	      continue;
	    }

	    if (ch === '"' && !stream.eat('"')) {
	      state.tokenize = tokenBase$l;
	      return 'string';
	    }
	  }

	  return 'error';
	}

	function tokenStringInterpolation(stream, state) {
	  return tokenInterpolation(stream, state, tokenDoubleQuoteString);
	}

	function tokenMultiStringReturn(stream, state) {
	  state.tokenize = tokenMultiString;
	  state.startQuote = '"';
	  return tokenMultiString(stream, state);
	}

	function tokenHereStringInterpolation(stream, state) {
	  return tokenInterpolation(stream, state, tokenMultiStringReturn);
	}

	function tokenInterpolation(stream, state, parentTokenize) {
	  if (stream.match('$(')) {
	    var savedBracketNesting = state.bracketNesting;
	    state.returnStack.push({
	      /*jshint loopfunc:true */
	      shouldReturnFrom: function(state) {
	        return state.bracketNesting === savedBracketNesting;
	      },
	      tokenize: parentTokenize
	    });
	    state.tokenize = tokenBase$l;
	    state.bracketNesting += 1;
	    return 'punctuation';
	  } else {
	    stream.next();
	    state.returnStack.push({
	      shouldReturnFrom: function() { return true; },
	      tokenize: parentTokenize
	    });
	    state.tokenize = tokenVariable$1;
	    return state.tokenize(stream, state);
	  }
	}

	function tokenComment$6(stream, state) {
	  var maybeEnd = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (maybeEnd && ch == '>') {
	      state.tokenize = tokenBase$l;
	      break;
	    }
	    maybeEnd = (ch === '#');
	  }
	  return 'comment';
	}

	function tokenVariable$1(stream, state) {
	  var ch = stream.peek();
	  if (stream.eat('{')) {
	    state.tokenize = tokenVariableWithBraces;
	    return tokenVariableWithBraces(stream, state);
	  } else if (ch != undefined && ch.match(varNames)) {
	    stream.eatWhile(varNames);
	    state.tokenize = tokenBase$l;
	    return 'variable';
	  } else {
	    state.tokenize = tokenBase$l;
	    return 'error';
	  }
	}

	function tokenVariableWithBraces(stream, state) {
	  var ch;
	  while ((ch = stream.next()) != null) {
	    if (ch === '}') {
	      state.tokenize = tokenBase$l;
	      break;
	    }
	  }
	  return 'variable';
	}

	function tokenMultiString(stream, state) {
	  var quote = state.startQuote;
	  if (stream.sol() && stream.match(new RegExp(quote + '@'))) {
	    state.tokenize = tokenBase$l;
	  }
	  else if (quote === '"') {
	    while (!stream.eol()) {
	      var ch = stream.peek();
	      if (ch === '$') {
	        state.tokenize = tokenHereStringInterpolation;
	        return 'string';
	      }

	      stream.next();
	      if (ch === '`') {
	        stream.next();
	      }
	    }
	  }
	  else {
	    stream.skipToEnd();
	  }

	  return 'string';
	}

	const powerShell = {
	  name: "powershell",

	  startState: function() {
	    return {
	      returnStack: [],
	      bracketNesting: 0,
	      tokenize: tokenBase$l
	    };
	  },

	  token: function(stream, state) {
	    return state.tokenize(stream, state);
	  },

	  languageData: {
	    commentTokens: {line: "#", block: {open: "<#", close: "#>"}}
	  }
	};

	var powershell = /*#__PURE__*/Object.freeze({
		__proto__: null,
		powerShell: powerShell
	});

	const properties = {
	  name: "properties",

	  token: function(stream, state) {
	    var sol = stream.sol() || state.afterSection;
	    var eol = stream.eol();

	    state.afterSection = false;

	    if (sol) {
	      if (state.nextMultiline) {
	        state.inMultiline = true;
	        state.nextMultiline = false;
	      } else {
	        state.position = "def";
	      }
	    }

	    if (eol && ! state.nextMultiline) {
	      state.inMultiline = false;
	      state.position = "def";
	    }

	    if (sol) {
	      while(stream.eatSpace()) {}
	    }

	    var ch = stream.next();

	    if (sol && (ch === "#" || ch === "!" || ch === ";")) {
	      state.position = "comment";
	      stream.skipToEnd();
	      return "comment";
	    } else if (sol && ch === "[") {
	      state.afterSection = true;
	      stream.skipTo("]"); stream.eat("]");
	      return "header";
	    } else if (ch === "=" || ch === ":") {
	      state.position = "quote";
	      return null;
	    } else if (ch === "\\" && state.position === "quote") {
	      if (stream.eol()) {  // end of line?
	        // Multiline value
	        state.nextMultiline = true;
	      }
	    }

	    return state.position;
	  },

	  startState: function() {
	    return {
	      position : "def",       // Current position, "def", "quote" or "comment"
	      nextMultiline : false,  // Is the next line multiline value
	      inMultiline : false,    // Is the current line a multiline value
	      afterSection : false    // Did we just open a section
	    };
	  }

	};

	var properties$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		properties: properties
	});

	function wordRegexp$6(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
	}
	var keywordArray$1 = [
	  "package", "message", "import", "syntax",
	  "required", "optional", "repeated", "reserved", "default", "extensions", "packed",
	  "bool", "bytes", "double", "enum", "float", "string",
	  "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64",
	  "option", "service", "rpc", "returns"
	];
	var keywords$i = wordRegexp$6(keywordArray$1);

	var identifiers$2 = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");

	function tokenBase$k(stream) {
	  // whitespaces
	  if (stream.eatSpace()) return null;

	  // Handle one line Comments
	  if (stream.match("//")) {
	    stream.skipToEnd();
	    return "comment";
	  }

	  // Handle Number Literals
	  if (stream.match(/^[0-9\.+-]/, false)) {
	    if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
	      return "number";
	    if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
	      return "number";
	    if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
	      return "number";
	  }

	  // Handle Strings
	  if (stream.match(/^"([^"]|(""))*"/)) { return "string"; }
	  if (stream.match(/^'([^']|(''))*'/)) { return "string"; }

	  // Handle words
	  if (stream.match(keywords$i)) { return "keyword"; }
	  if (stream.match(identifiers$2)) { return "variable"; }
	  // Handle non-detected items
	  stream.next();
	  return null;
	}
	const protobuf = {
	  name: "protobuf",
	  token: tokenBase$k,
	  languageData: {
	    autocomplete: keywordArray$1
	  }
	};

	var protobuf$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		protobuf: protobuf
	});

	// Stores the words from the define method
	var words$8 = {};
	// Taken, mostly, from the Puppet official variable standards regex
	var variable_regex = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;

	// Takes a string of words separated by spaces and adds them as
	// keys with the value of the first argument 'style'
	function define$2(style, string) {
	  var split = string.split(' ');
	  for (var i = 0; i < split.length; i++) {
	    words$8[split[i]] = style;
	  }
	}

	// Takes commonly known puppet types/words and classifies them to a style
	define$2('keyword', 'class define site node include import inherits');
	define$2('keyword', 'case if else in and elsif default or');
	define$2('atom', 'false true running present absent file directory undef');
	define$2('builtin', 'action augeas burst chain computer cron destination dport exec ' +
	       'file filebucket group host icmp iniface interface jump k5login limit log_level ' +
	       'log_prefix macauthorization mailalias maillist mcx mount nagios_command ' +
	       'nagios_contact nagios_contactgroup nagios_host nagios_hostdependency ' +
	       'nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service ' +
	       'nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo ' +
	       'nagios_servicegroup nagios_timeperiod name notify outiface package proto reject ' +
	       'resources router schedule scheduled_task selboolean selmodule service source ' +
	       'sport ssh_authorized_key sshkey stage state table tidy todest toports tosource ' +
	       'user vlan yumrepo zfs zone zpool');

	// After finding a start of a string ('|") this function attempts to find the end;
	// If a variable is encountered along the way, we display it differently when it
	// is encapsulated in a double-quoted string.
	function tokenString$e(stream, state) {
	  var current, prev, found_var = false;
	  while (!stream.eol() && (current = stream.next()) != state.pending) {
	    if (current === '$' && prev != '\\' && state.pending == '"') {
	      found_var = true;
	      break;
	    }
	    prev = current;
	  }
	  if (found_var) {
	    stream.backUp(1);
	  }
	  if (current == state.pending) {
	    state.continueString = false;
	  } else {
	    state.continueString = true;
	  }
	  return "string";
	}

	// Main function
	function tokenize$3(stream, state) {
	  // Matches one whole word
	  var word = stream.match(/[\w]+/, false);
	  // Matches attributes (i.e. ensure => present ; 'ensure' would be matched)
	  var attribute = stream.match(/(\s+)?\w+\s+=>.*/, false);
	  // Matches non-builtin resource declarations
	  // (i.e. "apache::vhost {" or "mycustomclasss {" would be matched)
	  var resource = stream.match(/(\s+)?[\w:_]+(\s+)?{/, false);
	  // Matches virtual and exported resources (i.e. @@user { ; and the like)
	  var special_resource = stream.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, false);

	  // Finally advance the stream
	  var ch = stream.next();

	  // Have we found a variable?
	  if (ch === '$') {
	    if (stream.match(variable_regex)) {
	      // If so, and its in a string, assign it a different color
	      return state.continueString ? 'variableName.special' : 'variable';
	    }
	    // Otherwise return an invalid variable
	    return "error";
	  }
	  // Should we still be looking for the end of a string?
	  if (state.continueString) {
	    // If so, go through the loop again
	    stream.backUp(1);
	    return tokenString$e(stream, state);
	  }
	  // Are we in a definition (class, node, define)?
	  if (state.inDefinition) {
	    // If so, return def (i.e. for 'class myclass {' ; 'myclass' would be matched)
	    if (stream.match(/(\s+)?[\w:_]+(\s+)?/)) {
	      return 'def';
	    }
	    // Match the rest it the next time around
	    stream.match(/\s+{/);
	    state.inDefinition = false;
	  }
	  // Are we in an 'include' statement?
	  if (state.inInclude) {
	    // Match and return the included class
	    stream.match(/(\s+)?\S+(\s+)?/);
	    state.inInclude = false;
	    return 'def';
	  }
	  // Do we just have a function on our hands?
	  // In 'ensure_resource("myclass")', 'ensure_resource' is matched
	  if (stream.match(/(\s+)?\w+\(/)) {
	    stream.backUp(1);
	    return 'def';
	  }
	  // Have we matched the prior attribute regex?
	  if (attribute) {
	    stream.match(/(\s+)?\w+/);
	    return 'tag';
	  }
	  // Do we have Puppet specific words?
	  if (word && words$8.hasOwnProperty(word)) {
	    // Negates the initial next()
	    stream.backUp(1);
	    // rs move the stream
	    stream.match(/[\w]+/);
	    // We want to process these words differently
	    // do to the importance they have in Puppet
	    if (stream.match(/\s+\S+\s+{/, false)) {
	      state.inDefinition = true;
	    }
	    if (word == 'include') {
	      state.inInclude = true;
	    }
	    // Returns their value as state in the prior define methods
	    return words$8[word];
	  }
	  // Is there a match on a reference?
	  if (/(^|\s+)[A-Z][\w:_]+/.test(word)) {
	    // Negate the next()
	    stream.backUp(1);
	    // Match the full reference
	    stream.match(/(^|\s+)[A-Z][\w:_]+/);
	    return 'def';
	  }
	  // Have we matched the prior resource regex?
	  if (resource) {
	    stream.match(/(\s+)?[\w:_]+/);
	    return 'def';
	  }
	  // Have we matched the prior special_resource regex?
	  if (special_resource) {
	    stream.match(/(\s+)?[@]{1,2}/);
	    return 'atom';
	  }
	  // Match all the comments. All of them.
	  if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  }
	  // Have we found a string?
	  if (ch == "'" || ch == '"') {
	    // Store the type (single or double)
	    state.pending = ch;
	    // Perform the looping function to find the end
	    return tokenString$e(stream, state);
	  }
	  // Match all the brackets
	  if (ch == '{' || ch == '}') {
	    return 'bracket';
	  }
	  // Match characters that we are going to assume
	  // are trying to be regex
	  if (ch == '/') {
	    stream.match(/^[^\/]*\//);
	    return 'string.special';
	  }
	  // Match all the numbers
	  if (ch.match(/[0-9]/)) {
	    stream.eatWhile(/[0-9]+/);
	    return 'number';
	  }
	  // Match the '=' and '=>' operators
	  if (ch == '=') {
	    if (stream.peek() == '>') {
	      stream.next();
	    }
	    return "operator";
	  }
	  // Keep advancing through all the rest
	  stream.eatWhile(/[\w-]/);
	  // Return a blank line for everything else
	  return null;
	}
	// Start it all
	const puppet = {
	  name: "puppet",

	  startState: function () {
	    var state = {};
	    state.inDefinition = false;
	    state.inInclude = false;
	    state.continueString = false;
	    state.pending = false;
	    return state;
	  },
	  token: function (stream, state) {
	    // Strip the spaces, but regex will account for them eitherway
	    if (stream.eatSpace()) return null;
	    // Go through the main process
	    return tokenize$3(stream, state);
	  }
	};

	var puppet$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		puppet: puppet
	});

	var curPunc$7,
	    keywords$h=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),
	    E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;
	function buildRE(w){return new RegExp("^("+w.join("|")+")$");}
	function tokenBase$j(stream,state){
	  var sol=stream.sol(),c=stream.next();
	  curPunc$7=null;
	  if(sol)
	    if(c=="/")
	      return (state.tokenize=tokenLineComment)(stream,state);
	  else if(c=="\\"){
	    if(stream.eol()||/\s/.test(stream.peek()))
	      return stream.skipToEnd(),/^\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream):state.tokenize=tokenBase$j,"comment";
	    else
	      return state.tokenize=tokenBase$j,"builtin";
	  }
	  if(/\s/.test(c))
	    return stream.peek()=="/"?(stream.skipToEnd(),"comment"):"null";
	  if(c=='"')
	    return (state.tokenize=tokenString$d)(stream,state);
	  if(c=='`')
	    return stream.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";
	  if(("."==c&&/\d/.test(stream.peek()))||/\d/.test(c)){
	    var t=null;
	    stream.backUp(1);
	    if(stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)
	       || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)
	       || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)
	       || stream.match(/^\d+[ptuv]{1}/))
	      t="temporal";
	    else if(stream.match(/^0[NwW]{1}/)
	            || stream.match(/^0x[\da-fA-F]*/)
	            || stream.match(/^[01]+[b]{1}/)
	            || stream.match(/^\d+[chijn]{1}/)
	            || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))
	      t="number";
	    return (t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),"error");
	  }
	  if(/[A-Za-z]|\./.test(c))
	    return stream.eatWhile(/[A-Za-z._\d]/),keywords$h.test(stream.current())?"keyword":"variable";
	  if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c))
	    return null;
	  if(/[{}\(\[\]\)]/.test(c))
	    return null;
	  return "error";
	}
	function tokenLineComment(stream,state){
	  return stream.skipToEnd(),/\/\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase$j),"comment";
	}
	function tokenBlockComment(stream,state){
	  var f=stream.sol()&&stream.peek()=="\\";
	  stream.skipToEnd();
	  if(f&&/^\\\s*$/.test(stream.current()))
	    state.tokenize=tokenBase$j;
	  return "comment";
	}
	function tokenCommentToEOF(stream){return stream.skipToEnd(),"comment";}
	function tokenString$d(stream,state){
	  var escaped=false,next,end=false;
	  while((next=stream.next())){
	    if(next=="\""&&!escaped){end=true;break;}
	    escaped=!escaped&&next=="\\";
	  }
	  if(end)state.tokenize=tokenBase$j;
	  return "string";
	}
	function pushContext$8(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};}
	function popContext$8(state){state.indent=state.context.indent;state.context=state.context.prev;}
	const q = {
	  name: "q",
	  startState:function(){
	    return {tokenize:tokenBase$j,
	           context:null,
	           indent:0,
	           col:0};
	  },
	  token:function(stream,state){
	    if(stream.sol()){
	      if(state.context&&state.context.align==null)
	        state.context.align=false;
	      state.indent=stream.indentation();
	    }
	    //if (stream.eatSpace()) return null;
	    var style=state.tokenize(stream,state);
	    if(style!="comment"&&state.context&&state.context.align==null&&state.context.type!="pattern"){
	      state.context.align=true;
	    }
	    if(curPunc$7=="(")pushContext$8(state,")",stream.column());
	    else if(curPunc$7=="[")pushContext$8(state,"]",stream.column());
	    else if(curPunc$7=="{")pushContext$8(state,"}",stream.column());
	    else if(/[\]\}\)]/.test(curPunc$7)){
	      while(state.context&&state.context.type=="pattern")popContext$8(state);
	      if(state.context&&curPunc$7==state.context.type)popContext$8(state);
	    }
	    else if(curPunc$7=="."&&state.context&&state.context.type=="pattern")popContext$8(state);
	    else if(/atom|string|variable/.test(style)&&state.context){
	      if(/[\}\]]/.test(state.context.type))
	        pushContext$8(state,"pattern",stream.column());
	      else if(state.context.type=="pattern"&&!state.context.align){
	        state.context.align=true;
	        state.context.col=stream.column();
	      }
	    }
	    return style;
	  },
	  indent:function(state,textAfter,cx){
	    var firstChar=textAfter&&textAfter.charAt(0);
	    var context=state.context;
	    if(/[\]\}]/.test(firstChar))
	      while (context&&context.type=="pattern")context=context.prev;
	    var closing=context&&firstChar==context.type;
	    if(!context)
	      return 0;
	    else if(context.type=="pattern")
	      return context.col;
	    else if(context.align)
	      return context.col+(closing?0:1);
	    else
	      return context.indent+(closing?0:cx.unit);
	  }
	};

	var q$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		q: q
	});

	function wordObj$1(words) {
	  var res = {};
	  for (var i = 0; i < words.length; ++i) res[words[i]] = true;
	  return res;
	}
	var commonAtoms$2 = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"];
	var commonBuiltins = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"];
	var commonKeywords$2 = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"];
	var commonBlockKeywords = ["if", "else", "repeat", "while", "function", "for"];

	var atoms$4 = wordObj$1(commonAtoms$2);
	var builtins$1 = wordObj$1(commonBuiltins);
	var keywords$g = wordObj$1(commonKeywords$2);
	var blockkeywords = wordObj$1(commonBlockKeywords);
	var opChars = /[+\-*\/^<>=!&|~$:]/;
	var curPunc$6;

	function tokenBase$i(stream, state) {
	  curPunc$6 = null;
	  var ch = stream.next();
	  if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  } else if (ch == "0" && stream.eat("x")) {
	    stream.eatWhile(/[\da-f]/i);
	    return "number";
	  } else if (ch == "." && stream.eat(/\d/)) {
	    stream.match(/\d*(?:e[+\-]?\d+)?/);
	    return "number";
	  } else if (/\d/.test(ch)) {
	    stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);
	    return "number";
	  } else if (ch == "'" || ch == '"') {
	    state.tokenize = tokenString$c(ch);
	    return "string";
	  } else if (ch == "`") {
	    stream.match(/[^`]+`/);
	    return "string.special";
	  } else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) {
	    return "keyword";
	  } else if (/[a-zA-Z\.]/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    var word = stream.current();
	    if (atoms$4.propertyIsEnumerable(word)) return "atom";
	    if (keywords$g.propertyIsEnumerable(word)) {
	      // Block keywords start new blocks, except 'else if', which only starts
	      // one new block for the 'if', no block for the 'else'.
	      if (blockkeywords.propertyIsEnumerable(word) &&
	          !stream.match(/\s*if(\s+|$)/, false))
	        curPunc$6 = "block";
	      return "keyword";
	    }
	    if (builtins$1.propertyIsEnumerable(word)) return "builtin";
	    return "variable";
	  } else if (ch == "%") {
	    if (stream.skipTo("%")) stream.next();
	    return "variableName.special";
	  } else if (
	    (ch == "<" && stream.eat("-")) ||
	      (ch == "<" && stream.match("<-")) ||
	      (ch == "-" && stream.match(/>>?/))
	  ) {
	    return "operator";
	  } else if (ch == "=" && state.ctx.argList) {
	    return "operator";
	  } else if (opChars.test(ch)) {
	    if (ch == "$") return "operator";
	    stream.eatWhile(opChars);
	    return "operator";
	  } else if (/[\(\){}\[\];]/.test(ch)) {
	    curPunc$6 = ch;
	    if (ch == ";") return "punctuation";
	    return null;
	  } else {
	    return null;
	  }
	}

	function tokenString$c(quote) {
	  return function(stream, state) {
	    if (stream.eat("\\")) {
	      var ch = stream.next();
	      if (ch == "x") stream.match(/^[a-f0-9]{2}/i);
	      else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next();
	      else if (ch == "u") stream.match(/^[a-f0-9]{4}/i);
	      else if (ch == "U") stream.match(/^[a-f0-9]{8}/i);
	      else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/);
	      return "string.special";
	    } else {
	      var next;
	      while ((next = stream.next()) != null) {
	        if (next == quote) { state.tokenize = tokenBase$i; break; }
	        if (next == "\\") { stream.backUp(1); break; }
	      }
	      return "string";
	    }
	  };
	}

	var ALIGN_YES = 1, ALIGN_NO = 2, BRACELESS = 4;

	function push(state, type, stream) {
	  state.ctx = {type: type,
	               indent: state.indent,
	               flags: 0,
	               column: stream.column(),
	               prev: state.ctx};
	}
	function setFlag(state, flag) {
	  var ctx = state.ctx;
	  state.ctx = {type: ctx.type,
	               indent: ctx.indent,
	               flags: ctx.flags | flag,
	               column: ctx.column,
	               prev: ctx.prev};
	}
	function pop(state) {
	  state.indent = state.ctx.indent;
	  state.ctx = state.ctx.prev;
	}

	const r = {
	  name: "r",
	  startState: function(indentUnit) {
	    return {tokenize: tokenBase$i,
	            ctx: {type: "top",
	                  indent: -indentUnit,
	                  flags: ALIGN_NO},
	            indent: 0,
	            afterIdent: false};
	  },

	  token: function(stream, state) {
	    if (stream.sol()) {
	      if ((state.ctx.flags & 3) == 0) state.ctx.flags |= ALIGN_NO;
	      if (state.ctx.flags & BRACELESS) pop(state);
	      state.indent = stream.indentation();
	    }
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);
	    if (style != "comment" && (state.ctx.flags & ALIGN_NO) == 0) setFlag(state, ALIGN_YES);

	    if ((curPunc$6 == ";" || curPunc$6 == "{" || curPunc$6 == "}") && state.ctx.type == "block") pop(state);
	    if (curPunc$6 == "{") push(state, "}", stream);
	    else if (curPunc$6 == "(") {
	      push(state, ")", stream);
	      if (state.afterIdent) state.ctx.argList = true;
	    }
	    else if (curPunc$6 == "[") push(state, "]", stream);
	    else if (curPunc$6 == "block") push(state, "block", stream);
	    else if (curPunc$6 == state.ctx.type) pop(state);
	    else if (state.ctx.type == "block" && style != "comment") setFlag(state, BRACELESS);
	    state.afterIdent = style == "variable" || style == "keyword";
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$i) return 0;
	    var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx,
	        closing = firstChar == ctx.type;
	    if (ctx.flags & BRACELESS) ctx = ctx.prev;
	    if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : cx.unit);
	    else if (ctx.flags & ALIGN_YES) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indent + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    wordChars: ".",
	    commentTokens: {line: "#"},
	    autocomplete: commonAtoms$2.concat(commonBuiltins, commonKeywords$2)
	  }
	};

	var r$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		r: r
	});

	var headerSeparator = /^-+$/;
	var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)  ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;
	var simpleEmail = /^[\w+.-]+@[\w.-]+/;

	const rpmChanges = {
	  name: "rpmchanges",
	  token: function(stream) {
	    if (stream.sol()) {
	      if (stream.match(headerSeparator)) { return 'tag'; }
	      if (stream.match(headerLine)) { return 'tag'; }
	    }
	    if (stream.match(simpleEmail)) { return 'string'; }
	    stream.next();
	    return null;
	  }
	};

	// Quick and dirty spec file highlighting

	var arch = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;

	var preamble = /^[a-zA-Z0-9()]+:/;
	var section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/;
	var control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros
	var control_flow_simple = /^%(else|endif)/; // rpm control flow macros
	var operators$1 = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/; // operators in control flow macros

	const rpmSpec = {
	  name: "rpmspec",
	  startState: function () {
	    return {
	      controlFlow: false,
	      macroParameters: false,
	      section: false
	    };
	  },
	  token: function (stream, state) {
	    var ch = stream.peek();
	    if (ch == "#") { stream.skipToEnd(); return "comment"; }

	    if (stream.sol()) {
	      if (stream.match(preamble)) { return "header"; }
	      if (stream.match(section)) { return "atom"; }
	    }

	    if (stream.match(/^\$\w+/)) { return "def"; } // Variables like '$RPM_BUILD_ROOT'
	    if (stream.match(/^\$\{\w+\}/)) { return "def"; } // Variables like '${RPM_BUILD_ROOT}'

	    if (stream.match(control_flow_simple)) { return "keyword"; }
	    if (stream.match(control_flow_complex)) {
	      state.controlFlow = true;
	      return "keyword";
	    }
	    if (state.controlFlow) {
	      if (stream.match(operators$1)) { return "operator"; }
	      if (stream.match(/^(\d+)/)) { return "number"; }
	      if (stream.eol()) { state.controlFlow = false; }
	    }

	    if (stream.match(arch)) {
	      if (stream.eol()) { state.controlFlow = false; }
	      return "number";
	    }

	    // Macros like '%make_install' or '%attr(0775,root,root)'
	    if (stream.match(/^%[\w]+/)) {
	      if (stream.match('(')) { state.macroParameters = true; }
	      return "keyword";
	    }
	    if (state.macroParameters) {
	      if (stream.match(/^\d+/)) { return "number";}
	      if (stream.match(')')) {
	        state.macroParameters = false;
	        return "keyword";
	      }
	    }

	    // Macros like '%{defined fedora}'
	    if (stream.match(/^%\{\??[\w \-\:\!]+\}/)) {
	      if (stream.eol()) { state.controlFlow = false; }
	      return "def";
	    }

	    stream.next();
	    return null;
	  }
	};

	var rpm = /*#__PURE__*/Object.freeze({
		__proto__: null,
		rpmChanges: rpmChanges,
		rpmSpec: rpmSpec
	});

	function wordObj(words) {
	  var o = {};
	  for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true;
	  return o;
	}

	var keywordList = [
	  "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else",
	  "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or",
	  "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless",
	  "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc",
	  "caller", "lambda", "proc", "public", "protected", "private", "require", "load",
	  "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__"
	], keywords$f = wordObj(keywordList);

	var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module",
	                           "catch", "loop", "proc", "begin"]);
	var dedentWords = wordObj(["end", "until"]);
	var opening$1 = {"[": "]", "{": "}", "(": ")"};
	var closing$1 = {"]": "[", "}": "{", ")": "("};

	var curPunc$5;

	function chain$4(newtok, stream, state) {
	  state.tokenize.push(newtok);
	  return newtok(stream, state);
	}

	function tokenBase$h(stream, state) {
	  if (stream.sol() && stream.match("=begin") && stream.eol()) {
	    state.tokenize.push(readBlockComment);
	    return "comment";
	  }
	  if (stream.eatSpace()) return null;
	  var ch = stream.next(), m;
	  if (ch == "`" || ch == "'" || ch == '"') {
	    return chain$4(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state);
	  } else if (ch == "/") {
	    if (regexpAhead(stream))
	      return chain$4(readQuoted(ch, "string.special", true), stream, state);
	    else
	      return "operator";
	  } else if (ch == "%") {
	    var style = "string", embed = true;
	    if (stream.eat("s")) style = "atom";
	    else if (stream.eat(/[WQ]/)) style = "string";
	    else if (stream.eat(/[r]/)) style = "string.special";
	    else if (stream.eat(/[wxq]/)) { style = "string"; embed = false; }
	    var delim = stream.eat(/[^\w\s=]/);
	    if (!delim) return "operator";
	    if (opening$1.propertyIsEnumerable(delim)) delim = opening$1[delim];
	    return chain$4(readQuoted(delim, style, embed, true), stream, state);
	  } else if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  } else if (ch == "<" && (m = stream.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) {
	    return chain$4(readHereDoc(m[2], m[1]), stream, state);
	  } else if (ch == "0") {
	    if (stream.eat("x")) stream.eatWhile(/[\da-fA-F]/);
	    else if (stream.eat("b")) stream.eatWhile(/[01]/);
	    else stream.eatWhile(/[0-7]/);
	    return "number";
	  } else if (/\d/.test(ch)) {
	    stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/);
	    return "number";
	  } else if (ch == "?") {
	    while (stream.match(/^\\[CM]-/)) {}
	    if (stream.eat("\\")) stream.eatWhile(/\w/);
	    else stream.next();
	    return "string";
	  } else if (ch == ":") {
	    if (stream.eat("'")) return chain$4(readQuoted("'", "atom", false), stream, state);
	    if (stream.eat('"')) return chain$4(readQuoted('"', "atom", true), stream, state);

	    // :> :>> :< :<< are valid symbols
	    if (stream.eat(/[\<\>]/)) {
	      stream.eat(/[\<\>]/);
	      return "atom";
	    }

	    // :+ :- :/ :* :| :& :! are valid symbols
	    if (stream.eat(/[\+\-\*\/\&\|\:\!]/)) {
	      return "atom";
	    }

	    // Symbols can't start by a digit
	    if (stream.eat(/[a-zA-Z$@_\xa1-\uffff]/)) {
	      stream.eatWhile(/[\w$\xa1-\uffff]/);
	      // Only one ? ! = is allowed and only as the last character
	      stream.eat(/[\?\!\=]/);
	      return "atom";
	    }
	    return "operator";
	  } else if (ch == "@" && stream.match(/^@?[a-zA-Z_\xa1-\uffff]/)) {
	    stream.eat("@");
	    stream.eatWhile(/[\w\xa1-\uffff]/);
	    return "propertyName";
	  } else if (ch == "$") {
	    if (stream.eat(/[a-zA-Z_]/)) {
	      stream.eatWhile(/[\w]/);
	    } else if (stream.eat(/\d/)) {
	      stream.eat(/\d/);
	    } else {
	      stream.next(); // Must be a special global like $: or $!
	    }
	    return "variableName.special";
	  } else if (/[a-zA-Z_\xa1-\uffff]/.test(ch)) {
	    stream.eatWhile(/[\w\xa1-\uffff]/);
	    stream.eat(/[\?\!]/);
	    if (stream.eat(":")) return "atom";
	    return "variable";
	  } else if (ch == "|" && (state.varList || state.lastTok == "{" || state.lastTok == "do")) {
	    curPunc$5 = "|";
	    return null;
	  } else if (/[\(\)\[\]{}\\;]/.test(ch)) {
	    curPunc$5 = ch;
	    return null;
	  } else if (ch == "-" && stream.eat(">")) {
	    return "operator";
	  } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) {
	    var more = stream.eatWhile(/[=+\-\/*:\.^%<>~|]/);
	    if (ch == "." && !more) curPunc$5 = ".";
	    return "operator";
	  } else {
	    return null;
	  }
	}

	function regexpAhead(stream) {
	  var start = stream.pos, depth = 0, next, found = false, escaped = false;
	  while ((next = stream.next()) != null) {
	    if (!escaped) {
	      if ("[{(".indexOf(next) > -1) {
	        depth++;
	      } else if ("]})".indexOf(next) > -1) {
	        depth--;
	        if (depth < 0) break
	      } else if (next == "/" && depth == 0) {
	        found = true;
	        break
	      }
	      escaped = next == "\\";
	    } else {
	      escaped = false;
	    }
	  }
	  stream.backUp(stream.pos - start);
	  return found
	}

	function tokenBaseUntilBrace(depth) {
	  if (!depth) depth = 1;
	  return function(stream, state) {
	    if (stream.peek() == "}") {
	      if (depth == 1) {
	        state.tokenize.pop();
	        return state.tokenize[state.tokenize.length-1](stream, state);
	      } else {
	        state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth - 1);
	      }
	    } else if (stream.peek() == "{") {
	      state.tokenize[state.tokenize.length - 1] = tokenBaseUntilBrace(depth + 1);
	    }
	    return tokenBase$h(stream, state);
	  };
	}
	function tokenBaseOnce() {
	  var alreadyCalled = false;
	  return function(stream, state) {
	    if (alreadyCalled) {
	      state.tokenize.pop();
	      return state.tokenize[state.tokenize.length-1](stream, state);
	    }
	    alreadyCalled = true;
	    return tokenBase$h(stream, state);
	  };
	}
	function readQuoted(quote, style, embed, unescaped) {
	  return function(stream, state) {
	    var escaped = false, ch;

	    if (state.context.type === 'read-quoted-paused') {
	      state.context = state.context.prev;
	      stream.eat("}");
	    }

	    while ((ch = stream.next()) != null) {
	      if (ch == quote && (unescaped || !escaped)) {
	        state.tokenize.pop();
	        break;
	      }
	      if (embed && ch == "#" && !escaped) {
	        if (stream.eat("{")) {
	          if (quote == "}") {
	            state.context = {prev: state.context, type: 'read-quoted-paused'};
	          }
	          state.tokenize.push(tokenBaseUntilBrace());
	          break;
	        } else if (/[@\$]/.test(stream.peek())) {
	          state.tokenize.push(tokenBaseOnce());
	          break;
	        }
	      }
	      escaped = !escaped && ch == "\\";
	    }
	    return style;
	  };
	}
	function readHereDoc(phrase, mayIndent) {
	  return function(stream, state) {
	    if (mayIndent) stream.eatSpace();
	    if (stream.match(phrase)) state.tokenize.pop();
	    else stream.skipToEnd();
	    return "string";
	  };
	}
	function readBlockComment(stream, state) {
	  if (stream.sol() && stream.match("=end") && stream.eol())
	    state.tokenize.pop();
	  stream.skipToEnd();
	  return "comment";
	}

	const ruby = {
	  name: "ruby",
	  startState: function(indentUnit) {
	    return {tokenize: [tokenBase$h],
	            indented: 0,
	            context: {type: "top", indented: -indentUnit},
	            continuedLine: false,
	            lastTok: null,
	            varList: false};
	  },

	  token: function(stream, state) {
	    curPunc$5 = null;
	    if (stream.sol()) state.indented = stream.indentation();
	    var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype;
	    var thisTok = curPunc$5;
	    if (style == "variable") {
	      var word = stream.current();
	      style = state.lastTok == "." ? "property"
	        : keywords$f.propertyIsEnumerable(stream.current()) ? "keyword"
	        : /^[A-Z]/.test(word) ? "tag"
	        : (state.lastTok == "def" || state.lastTok == "class" || state.varList) ? "def"
	        : "variable";
	      if (style == "keyword") {
	        thisTok = word;
	        if (indentWords.propertyIsEnumerable(word)) kwtype = "indent";
	        else if (dedentWords.propertyIsEnumerable(word)) kwtype = "dedent";
	        else if ((word == "if" || word == "unless") && stream.column() == stream.indentation())
	          kwtype = "indent";
	        else if (word == "do" && state.context.indented < state.indented)
	          kwtype = "indent";
	      }
	    }
	    if (curPunc$5 || (style && style != "comment")) state.lastTok = thisTok;
	    if (curPunc$5 == "|") state.varList = !state.varList;

	    if (kwtype == "indent" || /[\(\[\{]/.test(curPunc$5))
	      state.context = {prev: state.context, type: curPunc$5 || style, indented: state.indented};
	    else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc$5)) && state.context.prev)
	      state.context = state.context.prev;

	    if (stream.eol())
	      state.continuedLine = (curPunc$5 == "\\" || style == "operator");
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize[state.tokenize.length-1] != tokenBase$h) return null;
	    var firstChar = textAfter && textAfter.charAt(0);
	    var ct = state.context;
	    var closed = ct.type == closing$1[firstChar] ||
	        ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter);
	    return ct.indented + (closed ? 0 : cx.unit) +
	      (state.continuedLine ? cx.unit : 0);
	  },

	  languageData: {
	    indentOnInput: /^\s*(?:end|rescue|elsif|else|\})$/,
	    commentTokens: {line: "#"},
	    autocomplete: keywordList
	  }
	};

	var ruby$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ruby: ruby
	});

	var words$7 = {};
	var isDoubleOperatorSym = {
	  eq: 'operator',
	  lt: 'operator',
	  le: 'operator',
	  gt: 'operator',
	  ge: 'operator',
	  "in": 'operator',
	  ne: 'operator',
	  or: 'operator'
	};
	var isDoubleOperatorChar = /(<=|>=|!=|<>)/;
	var isSingleOperatorChar = /[=\(:\),{}.*<>+\-\/^\[\]]/;

	// Takes a string of words separated by spaces and adds them as
	// keys with the value of the first argument 'style'
	function define$1(style, string, context) {
	  if (context) {
	    var split = string.split(' ');
	    for (var i = 0; i < split.length; i++) {
	      words$7[split[i]] = {style: style, state: context};
	    }
	  }
	}
	//datastep
	define$1('def', 'stack pgm view source debug nesting nolist', ['inDataStep']);
	define$1('def', 'if while until for do do; end end; then else cancel', ['inDataStep']);
	define$1('def', 'label format _n_ _error_', ['inDataStep']);
	define$1('def', 'ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME', ['inDataStep']);
	define$1('def', 'filevar finfo finv fipname fipnamel fipstate first firstobs floor', ['inDataStep']);
	define$1('def', 'varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday', ['inDataStep']);
	define$1('def', 'zipfips zipname zipnamel zipstate', ['inDataStep']);
	define$1('def', 'put putc putn', ['inDataStep']);
	define$1('builtin', 'data run', ['inDataStep']);


	//proc
	define$1('def', 'data', ['inProc']);

	// flow control for macros
	define$1('def', '%if %end %end; %else %else; %do %do; %then', ['inMacro']);

	//everywhere
	define$1('builtin', 'proc run; quit; libname filename %macro %mend option options', ['ALL']);

	define$1('def', 'footnote title libname ods', ['ALL']);
	define$1('def', '%let %put %global %sysfunc %eval ', ['ALL']);
	// automatic macro variables http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a003167023.htm
	define$1('variable', '&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext', ['ALL']);

	//footnote[1-9]? title[1-9]?

	//options statement
	define$1('def', 'source2 nosource2 page pageno pagesize', ['ALL']);

	//proc and datastep
	define$1('def', '_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref  fmterr fmtsearch fnonct fnote font fontalias  fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib  library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit  nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs  on open     order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2  paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps  pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex  spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv  tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var  weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq  min max', ['inDataStep', 'inProc']);
	define$1('operator', 'and not ', ['inDataStep', 'inProc']);

	// Main function
	function tokenize$2(stream, state) {
	  // Finally advance the stream
	  var ch = stream.next();

	  // BLOCKCOMMENT
	  if (ch === '/' && stream.eat('*')) {
	    state.continueComment = true;
	    return "comment";
	  } else if (state.continueComment === true) { // in comment block
	    //comment ends at the beginning of the line
	    if (ch === '*' && stream.peek() === '/') {
	      stream.next();
	      state.continueComment = false;
	    } else if (stream.skipTo('*')) { //comment is potentially later in line
	      stream.skipTo('*');
	      stream.next();
	      if (stream.eat('/'))
	        state.continueComment = false;
	    } else {
	      stream.skipToEnd();
	    }
	    return "comment";
	  }

	  if (ch == "*" && stream.column() == stream.indentation()) {
	    stream.skipToEnd();
	    return "comment"
	  }

	  // DoubleOperator match
	  var doubleOperator = ch + stream.peek();

	  if ((ch === '"' || ch === "'") && !state.continueString) {
	    state.continueString = ch;
	    return "string"
	  } else if (state.continueString) {
	    if (state.continueString == ch) {
	      state.continueString = null;
	    } else if (stream.skipTo(state.continueString)) {
	      // quote found on this line
	      stream.next();
	      state.continueString = null;
	    } else {
	      stream.skipToEnd();
	    }
	    return "string";
	  } else if (state.continueString !== null && stream.eol()) {
	    stream.skipTo(state.continueString) || stream.skipToEnd();
	    return "string";
	  } else if (/[\d\.]/.test(ch)) { //find numbers
	    if (ch === ".")
	      stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);
	    else if (ch === "0")
	      stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/);
	    else
	      stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);
	    return "number";
	  } else if (isDoubleOperatorChar.test(ch + stream.peek())) { // TWO SYMBOL TOKENS
	    stream.next();
	    return "operator";
	  } else if (isDoubleOperatorSym.hasOwnProperty(doubleOperator)) {
	    stream.next();
	    if (stream.peek() === ' ')
	      return isDoubleOperatorSym[doubleOperator.toLowerCase()];
	  } else if (isSingleOperatorChar.test(ch)) { // SINGLE SYMBOL TOKENS
	    return "operator";
	  }

	  // Matches one whole word -- even if the word is a character
	  var word;
	  if (stream.match(/[%&;\w]+/, false) != null) {
	    word = ch + stream.match(/[%&;\w]+/, true);
	    if (/&/.test(word)) return 'variable'
	  } else {
	    word = ch;
	  }
	  // the word after DATA PROC or MACRO
	  if (state.nextword) {
	    stream.match(/[\w]+/);
	    // match memname.libname
	    if (stream.peek() === '.') stream.skipTo(' ');
	    state.nextword = false;
	    return 'variableName.special';
	  }

	  word = word.toLowerCase();
	  // Are we in a DATA Step?
	  if (state.inDataStep) {
	    if (word === 'run;' || stream.match(/run\s;/)) {
	      state.inDataStep = false;
	      return 'builtin';
	    }
	    // variable formats
	    if ((word) && stream.next() === '.') {
	      //either a format or libname.memname
	      if (/\w/.test(stream.peek())) return 'variableName.special';
	      else return 'variable';
	    }
	    // do we have a DATA Step keyword
	    if (word && words$7.hasOwnProperty(word) &&
	        (words$7[word].state.indexOf("inDataStep") !== -1 ||
	         words$7[word].state.indexOf("ALL") !== -1)) {
	      //backup to the start of the word
	      if (stream.start < stream.pos)
	        stream.backUp(stream.pos - stream.start);
	      //advance the length of the word and return
	      for (var i = 0; i < word.length; ++i) stream.next();
	      return words$7[word].style;
	    }
	  }
	  // Are we in an Proc statement?
	  if (state.inProc) {
	    if (word === 'run;' || word === 'quit;') {
	      state.inProc = false;
	      return 'builtin';
	    }
	    // do we have a proc keyword
	    if (word && words$7.hasOwnProperty(word) &&
	        (words$7[word].state.indexOf("inProc") !== -1 ||
	         words$7[word].state.indexOf("ALL") !== -1)) {
	      stream.match(/[\w]+/);
	      return words$7[word].style;
	    }
	  }
	  // Are we in a Macro statement?
	  if (state.inMacro) {
	    if (word === '%mend') {
	      if (stream.peek() === ';') stream.next();
	      state.inMacro = false;
	      return 'builtin';
	    }
	    if (word && words$7.hasOwnProperty(word) &&
	        (words$7[word].state.indexOf("inMacro") !== -1 ||
	         words$7[word].state.indexOf("ALL") !== -1)) {
	      stream.match(/[\w]+/);
	      return words$7[word].style;
	    }

	    return 'atom';
	  }
	  // Do we have Keywords specific words?
	  if (word && words$7.hasOwnProperty(word)) {
	    // Negates the initial next()
	    stream.backUp(1);
	    // Actually move the stream
	    stream.match(/[\w]+/);
	    if (word === 'data' && /=/.test(stream.peek()) === false) {
	      state.inDataStep = true;
	      state.nextword = true;
	      return 'builtin';
	    }
	    if (word === 'proc') {
	      state.inProc = true;
	      state.nextword = true;
	      return 'builtin';
	    }
	    if (word === '%macro') {
	      state.inMacro = true;
	      state.nextword = true;
	      return 'builtin';
	    }
	    if (/title[1-9]/.test(word)) return 'def';

	    if (word === 'footnote') {
	      stream.eat(/[1-9]/);
	      return 'def';
	    }

	    // Returns their value as state in the prior define methods
	    if (state.inDataStep === true && words$7[word].state.indexOf("inDataStep") !== -1)
	      return words$7[word].style;
	    if (state.inProc === true && words$7[word].state.indexOf("inProc") !== -1)
	      return words$7[word].style;
	    if (state.inMacro === true && words$7[word].state.indexOf("inMacro") !== -1)
	      return words$7[word].style;
	    if (words$7[word].state.indexOf("ALL") !== -1)
	      return words$7[word].style;
	    return null;
	  }
	  // Unrecognized syntax
	  return null;
	}

	const sas = {
	  name: "sas",
	  startState: function () {
	    return {
	      inDataStep: false,
	      inProc: false,
	      inMacro: false,
	      nextword: false,
	      continueString: null,
	      continueComment: false
	    };
	  },
	  token: function (stream, state) {
	    // Strip the spaces, but regex will account for them either way
	    if (stream.eatSpace()) return null;
	    // Go through the main process
	    return tokenize$2(stream, state);
	  },

	  languageData: {
	    commentTokens: {block: {open: "/*", close: "*/"}}
	  }
	};

	var sas$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		sas: sas
	});

	var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
	    SYMBOL = "symbol", ATOM = "atom", NUMBER = "number", BRACKET = "bracket";
	var INDENT_WORD_SKIP = 2;

	function makeKeywords(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var keywords$e = makeKeywords("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?");
	var indentKeys = makeKeywords("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");

	function stateStack(indent, type, prev) { // represents a state stack object
	  this.indent = indent;
	  this.type = type;
	  this.prev = prev;
	}

	function pushStack(state, indent, type) {
	  state.indentStack = new stateStack(indent, type, state.indentStack);
	}

	function popStack(state) {
	  state.indentStack = state.indentStack.prev;
	}

	var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i);
	var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i);
	var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i);
	var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);

	function isBinaryNumber (stream) {
	  return stream.match(binaryMatcher);
	}

	function isOctalNumber (stream) {
	  return stream.match(octalMatcher);
	}

	function isDecimalNumber (stream, backup) {
	  if (backup === true) {
	    stream.backUp(1);
	  }
	  return stream.match(decimalMatcher);
	}

	function isHexNumber (stream) {
	  return stream.match(hexMatcher);
	}

	function processEscapedSequence(stream, options) {
	  var next, escaped = false;
	  while ((next = stream.next()) != null) {
	    if (next == options.token && !escaped) {
	      options.state.mode = false;
	      break;
	    }
	    escaped = !escaped && next == "\\";
	  }
	}

	const scheme = {
	  name: "scheme",
	  startState: function () {
	    return {
	      indentStack: null,
	      indentation: 0,
	      mode: false,
	      sExprComment: false,
	      sExprQuote: false
	    };
	  },

	  token: function (stream, state) {
	    if (state.indentStack == null && stream.sol()) {
	      // update indentation, but only if indentStack is empty
	      state.indentation = stream.indentation();
	    }

	    // skip spaces
	    if (stream.eatSpace()) {
	      return null;
	    }
	    var returnType = null;

	    switch(state.mode){
	    case "string": // multi-line string parsing mode
	      processEscapedSequence(stream, {
	        token: "\"",
	        state: state
	      });
	      returnType = STRING; // continue on in scheme-string mode
	      break;
	    case "symbol": // escape symbol
	      processEscapedSequence(stream, {
	        token: "|",
	        state: state
	      });
	      returnType = SYMBOL; // continue on in scheme-symbol mode
	      break;
	    case "comment": // comment parsing mode
	      var next, maybeEnd = false;
	      while ((next = stream.next()) != null) {
	        if (next == "#" && maybeEnd) {

	          state.mode = false;
	          break;
	        }
	        maybeEnd = (next == "|");
	      }
	      returnType = COMMENT;
	      break;
	    case "s-expr-comment": // s-expr commenting mode
	      state.mode = false;
	      if(stream.peek() == "(" || stream.peek() == "["){
	        // actually start scheme s-expr commenting mode
	        state.sExprComment = 0;
	      }else {
	        // if not we just comment the entire of the next token
	        stream.eatWhile(/[^\s\(\)\[\]]/); // eat symbol atom
	        returnType = COMMENT;
	        break;
	      }
	    default: // default parsing mode
	      var ch = stream.next();

	      if (ch == "\"") {
	        state.mode = "string";
	        returnType = STRING;

	      } else if (ch == "'") {
	        if (stream.peek() == "(" || stream.peek() == "["){
	          if (typeof state.sExprQuote != "number") {
	            state.sExprQuote = 0;
	          } // else already in a quoted expression
	          returnType = ATOM;
	        } else {
	          stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);
	          returnType = ATOM;
	        }
	      } else if (ch == '|') {
	        state.mode = "symbol";
	        returnType = SYMBOL;
	      } else if (ch == '#') {
	        if (stream.eat("|")) {                    // Multi-line comment
	          state.mode = "comment"; // toggle to comment mode
	          returnType = COMMENT;
	        } else if (stream.eat(/[tf]/i)) {            // #t/#f (atom)
	          returnType = ATOM;
	        } else if (stream.eat(';')) {                // S-Expr comment
	          state.mode = "s-expr-comment";
	          returnType = COMMENT;
	        } else {
	          var numTest = null, hasExactness = false, hasRadix = true;
	          if (stream.eat(/[ei]/i)) {
	            hasExactness = true;
	          } else {
	            stream.backUp(1);       // must be radix specifier
	          }
	          if (stream.match(/^#b/i)) {
	            numTest = isBinaryNumber;
	          } else if (stream.match(/^#o/i)) {
	            numTest = isOctalNumber;
	          } else if (stream.match(/^#x/i)) {
	            numTest = isHexNumber;
	          } else if (stream.match(/^#d/i)) {
	            numTest = isDecimalNumber;
	          } else if (stream.match(/^[-+0-9.]/, false)) {
	            hasRadix = false;
	            numTest = isDecimalNumber;
	            // re-consume the initial # if all matches failed
	          } else if (!hasExactness) {
	            stream.eat('#');
	          }
	          if (numTest != null) {
	            if (hasRadix && !hasExactness) {
	              // consume optional exactness after radix
	              stream.match(/^#[ei]/i);
	            }
	            if (numTest(stream))
	              returnType = NUMBER;
	          }
	        }
	      } else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal
	        returnType = NUMBER;
	      } else if (ch == ";") { // comment
	        stream.skipToEnd(); // rest of the line is a comment
	        returnType = COMMENT;
	      } else if (ch == "(" || ch == "[") {
	        var keyWord = ''; var indentTemp = stream.column(), letter;
	        /**
	           Either
	           (indent-word ..
	           (non-indent-word ..
	           (;something else, bracket, etc.
	        */

	        while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) {
	          keyWord += letter;
	        }

	        if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word

	          pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);
	        } else { // non-indent word
	          // we continue eating the spaces
	          stream.eatSpace();
	          if (stream.eol() || stream.peek() == ";") {
	            // nothing significant after
	            // we restart indentation 1 space after
	            pushStack(state, indentTemp + 1, ch);
	          } else {
	            pushStack(state, indentTemp + stream.current().length, ch); // else we match
	          }
	        }
	        stream.backUp(stream.current().length - 1); // undo all the eating

	        if(typeof state.sExprComment == "number") state.sExprComment++;
	        if(typeof state.sExprQuote == "number") state.sExprQuote++;

	        returnType = BRACKET;
	      } else if (ch == ")" || ch == "]") {
	        returnType = BRACKET;
	        if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) {
	          popStack(state);

	          if(typeof state.sExprComment == "number"){
	            if(--state.sExprComment == 0){
	              returnType = COMMENT; // final closing bracket
	              state.sExprComment = false; // turn off s-expr commenting mode
	            }
	          }
	          if(typeof state.sExprQuote == "number"){
	            if(--state.sExprQuote == 0){
	              returnType = ATOM; // final closing bracket
	              state.sExprQuote = false; // turn off s-expr quote mode
	            }
	          }
	        }
	      } else {
	        stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);

	        if (keywords$e && keywords$e.propertyIsEnumerable(stream.current())) {
	          returnType = BUILTIN;
	        } else returnType = "variable";
	      }
	    }
	    return (typeof state.sExprComment == "number") ? COMMENT : ((typeof state.sExprQuote == "number") ? ATOM : returnType);
	  },

	  indent: function (state) {
	    if (state.indentStack == null) return state.indentation;
	    return state.indentStack.indent;
	  },

	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", '"']},
	    commentTokens: {line: ";;"}
	  }
	};

	var scheme$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		scheme: scheme
	});

	var words$6 = {};
	function define(style, dict) {
	  for(var i = 0; i < dict.length; i++) {
	    words$6[dict[i]] = style;
	  }
	}
	var commonAtoms$1 = ["true", "false"];
	var commonKeywords$1 = ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi",
	                      "fin", "fil", "done", "exit", "set", "unset", "export", "function"];
	var commonCommands = ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear",
	                      "cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall",
	                      "ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "nl", "node", "npm", "ping", "ps", "restart", "rm",
	                      "rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop",
	                      "su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write",
	                      "yes", "zsh"];

	define('atom', commonAtoms$1);
	define('keyword', commonKeywords$1);
	define('builtin', commonCommands);

	function tokenBase$g(stream, state) {
	  if (stream.eatSpace()) return null;

	  var sol = stream.sol();
	  var ch = stream.next();

	  if (ch === '\\') {
	    stream.next();
	    return null;
	  }
	  if (ch === '\'' || ch === '"' || ch === '`') {
	    state.tokens.unshift(tokenString$b(ch, ch === "`" ? "quote" : "string"));
	    return tokenize$1(stream, state);
	  }
	  if (ch === '#') {
	    if (sol && stream.eat('!')) {
	      stream.skipToEnd();
	      return 'meta'; // 'comment'?
	    }
	    stream.skipToEnd();
	    return 'comment';
	  }
	  if (ch === '$') {
	    state.tokens.unshift(tokenDollar);
	    return tokenize$1(stream, state);
	  }
	  if (ch === '+' || ch === '=') {
	    return 'operator';
	  }
	  if (ch === '-') {
	    stream.eat('-');
	    stream.eatWhile(/\w/);
	    return 'attribute';
	  }
	  if (ch == "<") {
	    if (stream.match("<<")) return "operator"
	    var heredoc = stream.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
	    if (heredoc) {
	      state.tokens.unshift(tokenHeredoc(heredoc[1] || heredoc[2]));
	      return 'string.special'
	    }
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/\d/);
	    if(stream.eol() || !/\w/.test(stream.peek())) {
	      return 'number';
	    }
	  }
	  stream.eatWhile(/[\w-]/);
	  var cur = stream.current();
	  if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
	  return words$6.hasOwnProperty(cur) ? words$6[cur] : null;
	}

	function tokenString$b(quote, style) {
	  var close = quote == "(" ? ")" : quote == "{" ? "}" : quote;
	  return function(stream, state) {
	    var next, escaped = false;
	    while ((next = stream.next()) != null) {
	      if (next === close && !escaped) {
	        state.tokens.shift();
	        break;
	      } else if (next === '$' && !escaped && quote !== "'" && stream.peek() != close) {
	        escaped = true;
	        stream.backUp(1);
	        state.tokens.unshift(tokenDollar);
	        break;
	      } else if (!escaped && quote !== close && next === quote) {
	        state.tokens.unshift(tokenString$b(quote, style));
	        return tokenize$1(stream, state)
	      } else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
	        state.tokens.unshift(tokenStringStart(next, "string"));
	        stream.backUp(1);
	        break;
	      }
	      escaped = !escaped && next === '\\';
	    }
	    return style;
	  };
	}
	function tokenStringStart(quote, style) {
	  return function(stream, state) {
	    state.tokens[0] = tokenString$b(quote, style);
	    stream.next();
	    return tokenize$1(stream, state)
	  }
	}

	var tokenDollar = function(stream, state) {
	  if (state.tokens.length > 1) stream.eat('$');
	  var ch = stream.next();
	  if (/['"({]/.test(ch)) {
	    state.tokens[0] = tokenString$b(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
	    return tokenize$1(stream, state);
	  }
	  if (!/\d/.test(ch)) stream.eatWhile(/\w/);
	  state.tokens.shift();
	  return 'def';
	};

	function tokenHeredoc(delim) {
	  return function(stream, state) {
	    if (stream.sol() && stream.string == delim) state.tokens.shift();
	    stream.skipToEnd();
	    return "string.special"
	  }
	}

	function tokenize$1(stream, state) {
	  return (state.tokens[0] || tokenBase$g) (stream, state);
	}
	const shell = {
	  name: "shell",
	  startState: function() {return {tokens:[]};},
	  token: function(stream, state) {
	    return tokenize$1(stream, state);
	  },
	  languageData: {
	    autocomplete: commonAtoms$1.concat(commonKeywords$1, commonCommands),
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]},
	    commentTokens: {line: "#"}
	  }
	};

	var shell$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		shell: shell
	});

	function words$5(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var keywords$d = words$5("if elsif else stop require");
	var atoms$3 = words$5("true false not");

	function tokenBase$f(stream, state) {

	  var ch = stream.next();
	  if (ch == "/" && stream.eat("*")) {
	    state.tokenize = tokenCComment$1;
	    return tokenCComment$1(stream, state);
	  }

	  if (ch === '#') {
	    stream.skipToEnd();
	    return "comment";
	  }

	  if (ch == "\"") {
	    state.tokenize = tokenString$a(ch);
	    return state.tokenize(stream, state);
	  }

	  if (ch == "(") {
	    state._indent.push("(");
	    // add virtual angel wings so that editor behaves...
	    // ...more sane incase of broken brackets
	    state._indent.push("{");
	    return null;
	  }

	  if (ch === "{") {
	    state._indent.push("{");
	    return null;
	  }

	  if (ch == ")")  {
	    state._indent.pop();
	    state._indent.pop();
	  }

	  if (ch === "}") {
	    state._indent.pop();
	    return null;
	  }

	  if (ch == ",")
	    return null;

	  if (ch == ";")
	    return null;


	  if (/[{}\(\),;]/.test(ch))
	    return null;

	  // 1*DIGIT "K" / "M" / "G"
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\d]/);
	    stream.eat(/[KkMmGg]/);
	    return "number";
	  }

	  // ":" (ALPHA / "_") *(ALPHA / DIGIT / "_")
	  if (ch == ":") {
	    stream.eatWhile(/[a-zA-Z_]/);
	    stream.eatWhile(/[a-zA-Z0-9_]/);

	    return "operator";
	  }

	  stream.eatWhile(/\w/);
	  var cur = stream.current();

	  // "text:" *(SP / HTAB) (hash-comment / CRLF)
	  // *(multiline-literal / multiline-dotstart)
	  // "." CRLF
	  if ((cur == "text") && stream.eat(":"))
	  {
	    state.tokenize = tokenMultiLineString;
	    return "string";
	  }

	  if (keywords$d.propertyIsEnumerable(cur))
	    return "keyword";

	  if (atoms$3.propertyIsEnumerable(cur))
	    return "atom";

	  return null;
	}

	function tokenMultiLineString(stream, state)
	{
	  state._multiLineString = true;
	  // the first line is special it may contain a comment
	  if (!stream.sol()) {
	    stream.eatSpace();

	    if (stream.peek() == "#") {
	      stream.skipToEnd();
	      return "comment";
	    }

	    stream.skipToEnd();
	    return "string";
	  }

	  if ((stream.next() == ".")  && (stream.eol()))
	  {
	    state._multiLineString = false;
	    state.tokenize = tokenBase$f;
	  }

	  return "string";
	}

	function tokenCComment$1(stream, state) {
	  var maybeEnd = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (maybeEnd && ch == "/") {
	      state.tokenize = tokenBase$f;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenString$a(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped)
	        break;
	      escaped = !escaped && ch == "\\";
	    }
	    if (!escaped) state.tokenize = tokenBase$f;
	    return "string";
	  };
	}

	const sieve = {
	  name: "sieve",
	  startState: function(base) {
	    return {tokenize: tokenBase$f,
	            baseIndent: base || 0,
	            _indent: []};
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace())
	      return null;

	    return (state.tokenize || tokenBase$f)(stream, state);
	  },

	  indent: function(state, _textAfter, cx) {
	    var length = state._indent.length;
	    if (_textAfter && (_textAfter[0] == "}"))
	      length--;

	    if (length <0)
	      length = 0;

	    return length * cx.unit;
	  },

	  languageData: {
	    indentOnInput: /^\s*\}$/
	  }
	};

	var sieve$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		sieve: sieve
	});

	var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/;
	var keywords$c = /true|false|nil|self|super|thisContext/;

	var Context$5 = function(tokenizer, parent) {
	  this.next = tokenizer;
	  this.parent = parent;
	};

	var Token = function(name, context, eos) {
	  this.name = name;
	  this.context = context;
	  this.eos = eos;
	};

	var State = function() {
	  this.context = new Context$5(next, null);
	  this.expectVariable = true;
	  this.indentation = 0;
	  this.userIndentationDelta = 0;
	};

	State.prototype.userIndent = function(indentation, indentUnit) {
	  this.userIndentationDelta = indentation > 0 ? (indentation / indentUnit - this.indentation) : 0;
	};

	var next = function(stream, context, state) {
	  var token = new Token(null, context, false);
	  var aChar = stream.next();

	  if (aChar === '"') {
	    token = nextComment(stream, new Context$5(nextComment, context));

	  } else if (aChar === '\'') {
	    token = nextString(stream, new Context$5(nextString, context));

	  } else if (aChar === '#') {
	    if (stream.peek() === '\'') {
	      stream.next();
	      token = nextSymbol(stream, new Context$5(nextSymbol, context));
	    } else {
	      if (stream.eatWhile(/[^\s.{}\[\]()]/))
	        token.name = 'string.special';
	      else
	        token.name = 'meta';
	    }

	  } else if (aChar === '$') {
	    if (stream.next() === '<') {
	      stream.eatWhile(/[^\s>]/);
	      stream.next();
	    }
	    token.name = 'string.special';

	  } else if (aChar === '|' && state.expectVariable) {
	    token.context = new Context$5(nextTemporaries, context);

	  } else if (/[\[\]{}()]/.test(aChar)) {
	    token.name = 'bracket';
	    token.eos = /[\[{(]/.test(aChar);

	    if (aChar === '[') {
	      state.indentation++;
	    } else if (aChar === ']') {
	      state.indentation = Math.max(0, state.indentation - 1);
	    }

	  } else if (specialChars.test(aChar)) {
	    stream.eatWhile(specialChars);
	    token.name = 'operator';
	    token.eos = aChar !== ';'; // ; cascaded message expression

	  } else if (/\d/.test(aChar)) {
	    stream.eatWhile(/[\w\d]/);
	    token.name = 'number';

	  } else if (/[\w_]/.test(aChar)) {
	    stream.eatWhile(/[\w\d_]/);
	    token.name = state.expectVariable ? (keywords$c.test(stream.current()) ? 'keyword' : 'variable') : null;

	  } else {
	    token.eos = state.expectVariable;
	  }

	  return token;
	};

	var nextComment = function(stream, context) {
	  stream.eatWhile(/[^"]/);
	  return new Token('comment', stream.eat('"') ? context.parent : context, true);
	};

	var nextString = function(stream, context) {
	  stream.eatWhile(/[^']/);
	  return new Token('string', stream.eat('\'') ? context.parent : context, false);
	};

	var nextSymbol = function(stream, context) {
	  stream.eatWhile(/[^']/);
	  return new Token('string.special', stream.eat('\'') ? context.parent : context, false);
	};

	var nextTemporaries = function(stream, context) {
	  var token = new Token(null, context, false);
	  var aChar = stream.next();

	  if (aChar === '|') {
	    token.context = context.parent;
	    token.eos = true;

	  } else {
	    stream.eatWhile(/[^|]/);
	    token.name = 'variable';
	  }

	  return token;
	};

	const smalltalk = {
	  name: "smalltalk",

	  startState: function() {
	    return new State;
	  },

	  token: function(stream, state) {
	    state.userIndent(stream.indentation(), stream.indentUnit);

	    if (stream.eatSpace()) {
	      return null;
	    }

	    var token = state.context.next(stream, state.context, state);
	    state.context = token.context;
	    state.expectVariable = token.eos;

	    return token.name;
	  },

	  blankLine: function(state, indentUnit) {
	    state.userIndent(0, indentUnit);
	  },

	  indent: function(state, textAfter, cx) {
	    var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta;
	    return (state.indentation + i) * cx.unit;
	  },

	  languageData: {
	    indentOnInput: /^\s*\]$/
	  }
	};

	var smalltalk$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		smalltalk: smalltalk
	});

	var isStringChar = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/;
	var isOperatorChar$5 = /[\|\!\+\-\*\?\~\^\&]/;
	var isOperatorString = /^(OR|AND|NOT|TO)$/i;

	function isNumber(word) {
	  return parseFloat(word).toString() === word;
	}

	function tokenString$9(quote) {
	  return function(stream, state) {
	    var escaped = false, next;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) break;
	      escaped = !escaped && next == "\\";
	    }

	    if (!escaped) state.tokenize = tokenBase$e;
	    return "string";
	  };
	}

	function tokenOperator(operator) {
	  return function(stream, state) {
	    if (operator == "|")
	      stream.eat(/\|/);
	    else if (operator == "&")
	      stream.eat(/\&/);

	    state.tokenize = tokenBase$e;
	    return "operator";
	  };
	}

	function tokenWord(ch) {
	  return function(stream, state) {
	    var word = ch;
	    while ((ch = stream.peek()) && ch.match(isStringChar) != null) {
	      word += stream.next();
	    }

	    state.tokenize = tokenBase$e;
	    if (isOperatorString.test(word))
	      return "operator";
	    else if (isNumber(word))
	      return "number";
	    else if (stream.peek() == ":")
	      return "propertyName";
	    else
	      return "string";
	  };
	}

	function tokenBase$e(stream, state) {
	  var ch = stream.next();
	  if (ch == '"')
	    state.tokenize = tokenString$9(ch);
	  else if (isOperatorChar$5.test(ch))
	    state.tokenize = tokenOperator(ch);
	  else if (isStringChar.test(ch))
	    state.tokenize = tokenWord(ch);

	  return (state.tokenize != tokenBase$e) ? state.tokenize(stream, state) : null;
	}

	const solr = {
	  name: "solr",

	  startState: function() {
	    return {
	      tokenize: tokenBase$e
	    };
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  }
	};

	var solr$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		solr: solr
	});

	var curPunc$4;

	function wordRegexp$5(words) {
	  return new RegExp("^(?:" + words.join("|") + ")$", "i");
	}
	var ops = wordRegexp$5(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri",
	                      "iri", "uri", "bnode", "count", "sum", "min", "max", "avg", "sample",
	                      "group_concat", "rand", "abs", "ceil", "floor", "round", "concat", "substr", "strlen",
	                      "replace", "ucase", "lcase", "encode_for_uri", "contains", "strstarts", "strends",
	                      "strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds",
	                      "timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384",
	                      "sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists",
	                      "isblank", "isliteral", "a", "bind"]);
	var keywords$b = wordRegexp$5(["base", "prefix", "select", "distinct", "reduced", "construct", "describe",
	                           "ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional",
	                           "graph", "by", "asc", "desc", "as", "having", "undef", "values", "group",
	                           "minus", "in", "not", "service", "silent", "using", "insert", "delete", "union",
	                           "true", "false", "with",
	                           "data", "copy", "to", "move", "add", "create", "drop", "clear", "load", "into"]);
	var operatorChars$1 = /[*+\-<>=&|\^\/!\?]/;
	var PN_CHARS = "[A-Za-z_\\-0-9]";
	var PREFIX_START = new RegExp("[A-Za-z]");
	var PREFIX_REMAINDER = new RegExp("((" + PN_CHARS + "|\\.)*(" + PN_CHARS + "))?:");

	function tokenBase$d(stream, state) {
	  var ch = stream.next();
	  curPunc$4 = null;
	  if (ch == "$" || ch == "?") {
	    if(ch == "?" && stream.match(/\s/, false)){
	      return "operator";
	    }
	    stream.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/);
	    return "variableName.local";
	  }
	  else if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) {
	    stream.match(/^[^\s\u00a0>]*>?/);
	    return "atom";
	  }
	  else if (ch == "\"" || ch == "'") {
	    state.tokenize = tokenLiteral$1(ch);
	    return state.tokenize(stream, state);
	  }
	  else if (/[{}\(\),\.;\[\]]/.test(ch)) {
	    curPunc$4 = ch;
	    return "bracket";
	  }
	  else if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  }
	  else if (operatorChars$1.test(ch)) {
	    return "operator";
	  }
	  else if (ch == ":") {
	    eatPnLocal(stream);
	    return "atom";
	  }
	  else if (ch == "@") {
	    stream.eatWhile(/[a-z\d\-]/i);
	    return "meta";
	  }
	  else if (PREFIX_START.test(ch) && stream.match(PREFIX_REMAINDER)) {
	    eatPnLocal(stream);
	    return "atom";
	  }
	  stream.eatWhile(/[_\w\d]/);
	  var word = stream.current();
	  if (ops.test(word))
	    return "builtin";
	  else if (keywords$b.test(word))
	    return "keyword";
	  else
	    return "variable";
	}

	function eatPnLocal(stream) {
	  stream.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i);
	}

	function tokenLiteral$1(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped) {
	        state.tokenize = tokenBase$d;
	        break;
	      }
	      escaped = !escaped && ch == "\\";
	    }
	    return "string";
	  };
	}

	function pushContext$7(state, type, col) {
	  state.context = {prev: state.context, indent: state.indent, col: col, type: type};
	}
	function popContext$7(state) {
	  state.indent = state.context.indent;
	  state.context = state.context.prev;
	}

	const sparql = {
	  name: "sparql",

	  startState: function() {
	    return {tokenize: tokenBase$d,
	            context: null,
	            indent: 0,
	            col: 0};
	  },

	  token: function(stream, state) {
	    if (stream.sol()) {
	      if (state.context && state.context.align == null) state.context.align = false;
	      state.indent = stream.indentation();
	    }
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);

	    if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") {
	      state.context.align = true;
	    }

	    if (curPunc$4 == "(") pushContext$7(state, ")", stream.column());
	    else if (curPunc$4 == "[") pushContext$7(state, "]", stream.column());
	    else if (curPunc$4 == "{") pushContext$7(state, "}", stream.column());
	    else if (/[\]\}\)]/.test(curPunc$4)) {
	      while (state.context && state.context.type == "pattern") popContext$7(state);
	      if (state.context && curPunc$4 == state.context.type) {
	        popContext$7(state);
	        if (curPunc$4 == "}" && state.context && state.context.type == "pattern")
	          popContext$7(state);
	      }
	    }
	    else if (curPunc$4 == "." && state.context && state.context.type == "pattern") popContext$7(state);
	    else if (/atom|string|variable/.test(style) && state.context) {
	      if (/[\}\]]/.test(state.context.type))
	        pushContext$7(state, "pattern", stream.column());
	      else if (state.context.type == "pattern" && !state.context.align) {
	        state.context.align = true;
	        state.context.col = stream.column();
	      }
	    }

	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var firstChar = textAfter && textAfter.charAt(0);
	    var context = state.context;
	    if (/[\]\}]/.test(firstChar))
	      while (context && context.type == "pattern") context = context.prev;

	    var closing = context && firstChar == context.type;
	    if (!context)
	      return 0;
	    else if (context.type == "pattern")
	      return context.col;
	    else if (context.align)
	      return context.col + (closing ? 0 : 1);
	    else
	      return context.indent + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    commentTokens: {line: "#"}
	  }
	};

	var sparql$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		sparql: sparql
	});

	const spreadsheet = {
	  name: "spreadsheet",

	  startState: function () {
	    return {
	      stringType: null,
	      stack: []
	    };
	  },
	  token: function (stream, state) {
	    if (!stream) return;

	    //check for state changes
	    if (state.stack.length === 0) {
	      //strings
	      if ((stream.peek() == '"') || (stream.peek() == "'")) {
	        state.stringType = stream.peek();
	        stream.next(); // Skip quote
	        state.stack.unshift("string");
	      }
	    }

	    //return state
	    //stack has
	    switch (state.stack[0]) {
	    case "string":
	      while (state.stack[0] === "string" && !stream.eol()) {
	        if (stream.peek() === state.stringType) {
	          stream.next(); // Skip quote
	          state.stack.shift(); // Clear flag
	        } else if (stream.peek() === "\\") {
	          stream.next();
	          stream.next();
	        } else {
	          stream.match(/^.[^\\\"\']*/);
	        }
	      }
	      return "string";

	    case "characterClass":
	      while (state.stack[0] === "characterClass" && !stream.eol()) {
	        if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./)))
	          state.stack.shift();
	      }
	      return "operator";
	    }

	    var peek = stream.peek();

	    //no stack
	    switch (peek) {
	    case "[":
	      stream.next();
	      state.stack.unshift("characterClass");
	      return "bracket";
	    case ":":
	      stream.next();
	      return "operator";
	    case "\\":
	      if (stream.match(/\\[a-z]+/)) return "string.special";
	      else {
	        stream.next();
	        return "atom";
	      }
	    case ".":
	    case ",":
	    case ";":
	    case "*":
	    case "-":
	    case "+":
	    case "^":
	    case "<":
	    case "/":
	    case "=":
	      stream.next();
	      return "atom";
	    case "$":
	      stream.next();
	      return "builtin";
	    }

	    if (stream.match(/\d+/)) {
	      if (stream.match(/^\w+/)) return "error";
	      return "number";
	    } else if (stream.match(/^[a-zA-Z_]\w*/)) {
	      if (stream.match(/(?=[\(.])/, false)) return "keyword";
	      return "variable";
	    } else if (["[", "]", "(", ")", "{", "}"].indexOf(peek) != -1) {
	      stream.next();
	      return "bracket";
	    } else if (!stream.eatSpace()) {
	      stream.next();
	    }
	    return null;
	  }
	};

	var spreadsheet$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		spreadsheet: spreadsheet
	});

	// developer.mozilla.org/en-US/docs/Web/HTML/Element
	var tagKeywords_ = ["a","abbr","address","area","article","aside","audio", "b", "base","bdi", "bdo","bgsound","blockquote","body","br","button","canvas","caption","cite", "code","col","colgroup","data","datalist","dd","del","details","dfn","div", "dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1", "h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe", "img","input","ins","kbd","keygen","label","legend","li","link","main","map", "mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes", "noscript","object","ol","optgroup","option","output","p","param","pre", "progress","q","rp","rt","ruby","s","samp","script","section","select", "small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track", "u","ul","var","video"];

	// github.com/codemirror/CodeMirror/blob/master/mode/css/css.js
	// Note, "url-prefix" should precede "url" in order to match correctly in documentTypesRegexp
	var documentTypes_ = ["domain", "regexp", "url-prefix", "url"];
	var mediaTypes_ = ["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"];
	var mediaFeatures_ = ["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"];
	var propertyKeywords_ = ["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"];
	var nonStandardPropertyKeywords_ = ["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"];
	var fontProperties_ = ["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"];
	var colorKeywords_ = ["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"];
	var valueKeywords_ = ["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around", "unset"];

	var wordOperatorKeywords_ = ["in","and","or","not","is not","is a","is","isnt","defined","if unless"],
	    blockKeywords_ = ["for","if","else","unless", "from", "to"],
	    commonAtoms_ = ["null","true","false","href","title","type","not-allowed","readonly","disabled"],
	    commonDef_ = ["@font-face", "@keyframes", "@media", "@viewport", "@page", "@host", "@supports", "@block", "@css"];

	var hintWords = tagKeywords_.concat(documentTypes_,mediaTypes_,mediaFeatures_,
	                                    propertyKeywords_,nonStandardPropertyKeywords_,
	                                    colorKeywords_,valueKeywords_,fontProperties_,
	                                    wordOperatorKeywords_,blockKeywords_,
	                                    commonAtoms_,commonDef_);

	function wordRegexp$4(words) {
	  words = words.sort(function(a,b){return b > a;});
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}

	function keySet(array) {
	  var keys = {};
	  for (var i = 0; i < array.length; ++i) keys[array[i]] = true;
	  return keys;
	}

	function escapeRegExp(text) {
	  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
	}

	var tagKeywords = keySet(tagKeywords_),
	    tagVariablesRegexp = /^(a|b|i|s|col|em)$/i,
	    propertyKeywords = keySet(propertyKeywords_),
	    nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_),
	    valueKeywords = keySet(valueKeywords_),
	    colorKeywords = keySet(colorKeywords_),
	    documentTypes = keySet(documentTypes_),
	    documentTypesRegexp = wordRegexp$4(documentTypes_),
	    mediaFeatures = keySet(mediaFeatures_),
	    mediaTypes = keySet(mediaTypes_),
	    fontProperties = keySet(fontProperties_),
	    operatorsRegexp = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,
	    wordOperatorKeywordsRegexp = wordRegexp$4(wordOperatorKeywords_),
	    blockKeywords$1 = keySet(blockKeywords_),
	    vendorPrefixesRegexp = new RegExp(/^\-(moz|ms|o|webkit)-/i),
	    commonAtoms = keySet(commonAtoms_),
	    firstWordMatch = "",
	    states = {},
	    ch,
	    style,
	    type$1,
	    override;

	/**
	 * Tokenizers
	 */
	function tokenBase$c(stream, state) {
	  firstWordMatch = stream.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);
	  state.context.line.firstWord = firstWordMatch ? firstWordMatch[0].replace(/^\s*/, "") : "";
	  state.context.line.indent = stream.indentation();
	  ch = stream.peek();

	  // Line comment
	  if (stream.match("//")) {
	    stream.skipToEnd();
	    return ["comment", "comment"];
	  }
	  // Block comment
	  if (stream.match("/*")) {
	    state.tokenize = tokenCComment;
	    return tokenCComment(stream, state);
	  }
	  // String
	  if (ch == "\"" || ch == "'") {
	    stream.next();
	    state.tokenize = tokenString$8(ch);
	    return state.tokenize(stream, state);
	  }
	  // Def
	  if (ch == "@") {
	    stream.next();
	    stream.eatWhile(/[\w\\-]/);
	    return ["def", stream.current()];
	  }
	  // ID selector or Hex color
	  if (ch == "#") {
	    stream.next();
	    // Hex color
	    if (stream.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)) {
	      return ["atom", "atom"];
	    }
	    // ID selector
	    if (stream.match(/^[a-z][\w-]*/i)) {
	      return ["builtin", "hash"];
	    }
	  }
	  // Vendor prefixes
	  if (stream.match(vendorPrefixesRegexp)) {
	    return ["meta", "vendor-prefixes"];
	  }
	  // Numbers
	  if (stream.match(/^-?[0-9]?\.?[0-9]/)) {
	    stream.eatWhile(/[a-z%]/i);
	    return ["number", "unit"];
	  }
	  // !important|optional
	  if (ch == "!") {
	    stream.next();
	    return [stream.match(/^(important|optional)/i) ? "keyword": "operator", "important"];
	  }
	  // Class
	  if (ch == "." && stream.match(/^\.[a-z][\w-]*/i)) {
	    return ["qualifier", "qualifier"];
	  }
	  // url url-prefix domain regexp
	  if (stream.match(documentTypesRegexp)) {
	    if (stream.peek() == "(") state.tokenize = tokenParenthesized;
	    return ["property", "word"];
	  }
	  // Mixins / Functions
	  if (stream.match(/^[a-z][\w-]*\(/i)) {
	    stream.backUp(1);
	    return ["keyword", "mixin"];
	  }
	  // Block mixins
	  if (stream.match(/^(\+|-)[a-z][\w-]*\(/i)) {
	    stream.backUp(1);
	    return ["keyword", "block-mixin"];
	  }
	  // Parent Reference BEM naming
	  if (stream.string.match(/^\s*&/) && stream.match(/^[-_]+[a-z][\w-]*/)) {
	    return ["qualifier", "qualifier"];
	  }
	  // / Root Reference & Parent Reference
	  if (stream.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)) {
	    stream.backUp(1);
	    return ["variableName.special", "reference"];
	  }
	  if (stream.match(/^&{1}\s*$/)) {
	    return ["variableName.special", "reference"];
	  }
	  // Word operator
	  if (stream.match(wordOperatorKeywordsRegexp)) {
	    return ["operator", "operator"];
	  }
	  // Word
	  if (stream.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)) {
	    // Variable
	    if (stream.match(/^(\.|\[)[\w-\'\"\]]+/i, false)) {
	      if (!wordIsTag(stream.current())) {
	        stream.match('.');
	        return ["variable", "variable-name"];
	      }
	    }
	    return ["variable", "word"];
	  }
	  // Operators
	  if (stream.match(operatorsRegexp)) {
	    return ["operator", stream.current()];
	  }
	  // Delimiters
	  if (/[:;,{}\[\]\(\)]/.test(ch)) {
	    stream.next();
	    return [null, ch];
	  }
	  // Non-detected items
	  stream.next();
	  return [null, null];
	}

	/**
	 * Token comment
	 */
	function tokenCComment(stream, state) {
	  var maybeEnd = false, ch;
	  while ((ch = stream.next()) != null) {
	    if (maybeEnd && ch == "/") {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return ["comment", "comment"];
	}

	/**
	 * Token string
	 */
	function tokenString$8(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped) {
	        if (quote == ")") stream.backUp(1);
	        break;
	      }
	      escaped = !escaped && ch == "\\";
	    }
	    if (ch == quote || !escaped && quote != ")") state.tokenize = null;
	    return ["string", "string"];
	  };
	}

	/**
	 * Token parenthesized
	 */
	function tokenParenthesized(stream, state) {
	  stream.next(); // Must be "("
	  if (!stream.match(/\s*[\"\')]/, false))
	    state.tokenize = tokenString$8(")");
	  else
	    state.tokenize = null;
	  return [null, "("];
	}

	/**
	 * Context management
	 */
	function Context$4(type, indent, prev, line) {
	  this.type = type;
	  this.indent = indent;
	  this.prev = prev;
	  this.line = line || {firstWord: "", indent: 0};
	}

	function pushContext$6(state, stream, type, indent) {
	  indent = indent >= 0 ? indent : stream.indentUnit;
	  state.context = new Context$4(type, stream.indentation() + indent, state.context);
	  return type;
	}

	function popContext$6(state, stream, currentIndent) {
	  var contextIndent = state.context.indent - stream.indentUnit;
	  currentIndent = currentIndent || false;
	  state.context = state.context.prev;
	  if (currentIndent) state.context.indent = contextIndent;
	  return state.context.type;
	}

	function pass$1(type, stream, state) {
	  return states[state.context.type](type, stream, state);
	}

	function popAndPass(type, stream, state, n) {
	  for (var i = n || 1; i > 0; i--)
	    state.context = state.context.prev;
	  return pass$1(type, stream, state);
	}


	/**
	 * Parser
	 */
	function wordIsTag(word) {
	  return word.toLowerCase() in tagKeywords;
	}

	function wordIsProperty(word) {
	  word = word.toLowerCase();
	  return word in propertyKeywords || word in fontProperties;
	}

	function wordIsBlock(word) {
	  return word.toLowerCase() in blockKeywords$1;
	}

	function wordIsVendorPrefix(word) {
	  return word.toLowerCase().match(vendorPrefixesRegexp);
	}

	function wordAsValue(word) {
	  var wordLC = word.toLowerCase();
	  var override = "variable";
	  if (wordIsTag(word)) override = "tag";
	  else if (wordIsBlock(word)) override = "block-keyword";
	  else if (wordIsProperty(word)) override = "property";
	  else if (wordLC in valueKeywords || wordLC in commonAtoms) override = "atom";
	  else if (wordLC == "return" || wordLC in colorKeywords) override = "keyword";

	  // Font family
	  else if (word.match(/^[A-Z]/)) override = "string";
	  return override;
	}

	function typeIsBlock(type, stream) {
	  return ((endOfLine(stream) && (type == "{" || type == "]" || type == "hash" || type == "qualifier")) || type == "block-mixin");
	}

	function typeIsInterpolation(type, stream) {
	  return type == "{" && stream.match(/^\s*\$?[\w-]+/i, false);
	}

	function typeIsPseudo(type, stream) {
	  return type == ":" && stream.match(/^[a-z-]+/, false);
	}

	function startOfLine(stream) {
	  return stream.sol() || stream.string.match(new RegExp("^\\s*" + escapeRegExp(stream.current())));
	}

	function endOfLine(stream) {
	  return stream.eol() || stream.match(/^\s*$/, false);
	}

	function firstWordOfLine(line) {
	  var re = /^\s*[-_]*[a-z0-9]+[\w-]*/i;
	  var result = typeof line == "string" ? line.match(re) : line.string.match(re);
	  return result ? result[0].replace(/^\s*/, "") : "";
	}


	/**
	 * Block
	 */
	states.block = function(type, stream, state) {
	  if ((type == "comment" && startOfLine(stream)) ||
	      (type == "," && endOfLine(stream)) ||
	      type == "mixin") {
	    return pushContext$6(state, stream, "block", 0);
	  }
	  if (typeIsInterpolation(type, stream)) {
	    return pushContext$6(state, stream, "interpolation");
	  }
	  if (endOfLine(stream) && type == "]") {
	    if (!/^\s*(\.|#|:|\[|\*|&)/.test(stream.string) && !wordIsTag(firstWordOfLine(stream))) {
	      return pushContext$6(state, stream, "block", 0);
	    }
	  }
	  if (typeIsBlock(type, stream)) {
	    return pushContext$6(state, stream, "block");
	  }
	  if (type == "}" && endOfLine(stream)) {
	    return pushContext$6(state, stream, "block", 0);
	  }
	  if (type == "variable-name") {
	    if (stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || wordIsBlock(firstWordOfLine(stream))) {
	      return pushContext$6(state, stream, "variableName");
	    }
	    else {
	      return pushContext$6(state, stream, "variableName", 0);
	    }
	  }
	  if (type == "=") {
	    if (!endOfLine(stream) && !wordIsBlock(firstWordOfLine(stream))) {
	      return pushContext$6(state, stream, "block", 0);
	    }
	    return pushContext$6(state, stream, "block");
	  }
	  if (type == "*") {
	    if (endOfLine(stream) || stream.match(/\s*(,|\.|#|\[|:|{)/,false)) {
	      override = "tag";
	      return pushContext$6(state, stream, "block");
	    }
	  }
	  if (typeIsPseudo(type, stream)) {
	    return pushContext$6(state, stream, "pseudo");
	  }
	  if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) {
	    return pushContext$6(state, stream, endOfLine(stream) ? "block" : "atBlock");
	  }
	  if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
	    return pushContext$6(state, stream, "keyframes");
	  }
	  if (/@extends?/.test(type)) {
	    return pushContext$6(state, stream, "extend", 0);
	  }
	  if (type && type.charAt(0) == "@") {

	    // Property Lookup
	    if (stream.indentation() > 0 && wordIsProperty(stream.current().slice(1))) {
	      override = "variable";
	      return "block";
	    }
	    if (/(@import|@require|@charset)/.test(type)) {
	      return pushContext$6(state, stream, "block", 0);
	    }
	    return pushContext$6(state, stream, "block");
	  }
	  if (type == "reference" && endOfLine(stream)) {
	    return pushContext$6(state, stream, "block");
	  }
	  if (type == "(") {
	    return pushContext$6(state, stream, "parens");
	  }

	  if (type == "vendor-prefixes") {
	    return pushContext$6(state, stream, "vendorPrefixes");
	  }
	  if (type == "word") {
	    var word = stream.current();
	    override = wordAsValue(word);

	    if (override == "property") {
	      if (startOfLine(stream)) {
	        return pushContext$6(state, stream, "block", 0);
	      } else {
	        override = "atom";
	        return "block";
	      }
	    }

	    if (override == "tag") {

	      // tag is a css value
	      if (/embed|menu|pre|progress|sub|table/.test(word)) {
	        if (wordIsProperty(firstWordOfLine(stream))) {
	          override = "atom";
	          return "block";
	        }
	      }

	      // tag is an attribute
	      if (stream.string.match(new RegExp("\\[\\s*" + word + "|" + word +"\\s*\\]"))) {
	        override = "atom";
	        return "block";
	      }

	      // tag is a variable
	      if (tagVariablesRegexp.test(word)) {
	        if ((startOfLine(stream) && stream.string.match(/=/)) ||
	            (!startOfLine(stream) &&
	             !stream.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) &&
	             !wordIsTag(firstWordOfLine(stream)))) {
	          override = "variable";
	          if (wordIsBlock(firstWordOfLine(stream)))  return "block";
	          return pushContext$6(state, stream, "block", 0);
	        }
	      }

	      if (endOfLine(stream)) return pushContext$6(state, stream, "block");
	    }
	    if (override == "block-keyword") {
	      override = "keyword";

	      // Postfix conditionals
	      if (stream.current(/(if|unless)/) && !startOfLine(stream)) {
	        return "block";
	      }
	      return pushContext$6(state, stream, "block");
	    }
	    if (word == "return") return pushContext$6(state, stream, "block", 0);

	    // Placeholder selector
	    if (override == "variable" && stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)) {
	      return pushContext$6(state, stream, "block");
	    }
	  }
	  return state.context.type;
	};


	/**
	 * Parens
	 */
	states.parens = function(type, stream, state) {
	  if (type == "(") return pushContext$6(state, stream, "parens");
	  if (type == ")") {
	    if (state.context.prev.type == "parens") {
	      return popContext$6(state, stream);
	    }
	    if ((stream.string.match(/^[a-z][\w-]*\(/i) && endOfLine(stream)) ||
	        wordIsBlock(firstWordOfLine(stream)) ||
	        /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(firstWordOfLine(stream)) ||
	        (!stream.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) &&
	         wordIsTag(firstWordOfLine(stream)))) {
	      return pushContext$6(state, stream, "block");
	    }
	    if (stream.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) ||
	        stream.string.match(/^\s*(\(|\)|[0-9])/) ||
	        stream.string.match(/^\s+[a-z][\w-]*\(/i) ||
	        stream.string.match(/^\s+[\$-]?[a-z]/i)) {
	      return pushContext$6(state, stream, "block", 0);
	    }
	    if (endOfLine(stream)) return pushContext$6(state, stream, "block");
	    else return pushContext$6(state, stream, "block", 0);
	  }
	  if (type && type.charAt(0) == "@" && wordIsProperty(stream.current().slice(1))) {
	    override = "variable";
	  }
	  if (type == "word") {
	    var word = stream.current();
	    override = wordAsValue(word);
	    if (override == "tag" && tagVariablesRegexp.test(word)) {
	      override = "variable";
	    }
	    if (override == "property" || word == "to") override = "atom";
	  }
	  if (type == "variable-name") {
	    return pushContext$6(state, stream, "variableName");
	  }
	  if (typeIsPseudo(type, stream)) {
	    return pushContext$6(state, stream, "pseudo");
	  }
	  return state.context.type;
	};


	/**
	 * Vendor prefixes
	 */
	states.vendorPrefixes = function(type, stream, state) {
	  if (type == "word") {
	    override = "property";
	    return pushContext$6(state, stream, "block", 0);
	  }
	  return popContext$6(state, stream);
	};


	/**
	 * Pseudo
	 */
	states.pseudo = function(type, stream, state) {
	  if (!wordIsProperty(firstWordOfLine(stream.string))) {
	    stream.match(/^[a-z-]+/);
	    override = "variableName.special";
	    if (endOfLine(stream)) return pushContext$6(state, stream, "block");
	    return popContext$6(state, stream);
	  }
	  return popAndPass(type, stream, state);
	};


	/**
	 * atBlock
	 */
	states.atBlock = function(type, stream, state) {
	  if (type == "(") return pushContext$6(state, stream, "atBlock_parens");
	  if (typeIsBlock(type, stream)) {
	    return pushContext$6(state, stream, "block");
	  }
	  if (typeIsInterpolation(type, stream)) {
	    return pushContext$6(state, stream, "interpolation");
	  }
	  if (type == "word") {
	    var word = stream.current().toLowerCase();
	    if (/^(only|not|and|or)$/.test(word))
	      override = "keyword";
	    else if (documentTypes.hasOwnProperty(word))
	      override = "tag";
	    else if (mediaTypes.hasOwnProperty(word))
	      override = "attribute";
	    else if (mediaFeatures.hasOwnProperty(word))
	      override = "property";
	    else if (nonStandardPropertyKeywords.hasOwnProperty(word))
	      override = "string.special";
	    else override = wordAsValue(stream.current());
	    if (override == "tag" && endOfLine(stream)) {
	      return pushContext$6(state, stream, "block");
	    }
	  }
	  if (type == "operator" && /^(not|and|or)$/.test(stream.current())) {
	    override = "keyword";
	  }
	  return state.context.type;
	};

	states.atBlock_parens = function(type, stream, state) {
	  if (type == "{" || type == "}") return state.context.type;
	  if (type == ")") {
	    if (endOfLine(stream)) return pushContext$6(state, stream, "block");
	    else return pushContext$6(state, stream, "atBlock");
	  }
	  if (type == "word") {
	    var word = stream.current().toLowerCase();
	    override = wordAsValue(word);
	    if (/^(max|min)/.test(word)) override = "property";
	    if (override == "tag") {
	      tagVariablesRegexp.test(word) ? override = "variable" : override = "atom";
	    }
	    return state.context.type;
	  }
	  return states.atBlock(type, stream, state);
	};


	/**
	 * Keyframes
	 */
	states.keyframes = function(type, stream, state) {
	  if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
	                                      || type == "qualifier" || wordIsTag(stream.current()))) {
	    return popAndPass(type, stream, state);
	  }
	  if (type == "{") return pushContext$6(state, stream, "keyframes");
	  if (type == "}") {
	    if (startOfLine(stream)) return popContext$6(state, stream, true);
	    else return pushContext$6(state, stream, "keyframes");
	  }
	  if (type == "unit" && /^[0-9]+\%$/.test(stream.current())) {
	    return pushContext$6(state, stream, "keyframes");
	  }
	  if (type == "word") {
	    override = wordAsValue(stream.current());
	    if (override == "block-keyword") {
	      override = "keyword";
	      return pushContext$6(state, stream, "keyframes");
	    }
	  }
	  if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) {
	    return pushContext$6(state, stream, endOfLine(stream) ? "block" : "atBlock");
	  }
	  if (type == "mixin") {
	    return pushContext$6(state, stream, "block", 0);
	  }
	  return state.context.type;
	};


	/**
	 * Interpolation
	 */
	states.interpolation = function(type, stream, state) {
	  if (type == "{") popContext$6(state, stream) && pushContext$6(state, stream, "block");
	  if (type == "}") {
	    if (stream.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) ||
	        (stream.string.match(/^\s*[a-z]/i) && wordIsTag(firstWordOfLine(stream)))) {
	      return pushContext$6(state, stream, "block");
	    }
	    if (!stream.string.match(/^(\{|\s*\&)/) ||
	        stream.match(/\s*[\w-]/,false)) {
	      return pushContext$6(state, stream, "block", 0);
	    }
	    return pushContext$6(state, stream, "block");
	  }
	  if (type == "variable-name") {
	    return pushContext$6(state, stream, "variableName", 0);
	  }
	  if (type == "word") {
	    override = wordAsValue(stream.current());
	    if (override == "tag") override = "atom";
	  }
	  return state.context.type;
	};


	/**
	 * Extend/s
	 */
	states.extend = function(type, stream, state) {
	  if (type == "[" || type == "=") return "extend";
	  if (type == "]") return popContext$6(state, stream);
	  if (type == "word") {
	    override = wordAsValue(stream.current());
	    return "extend";
	  }
	  return popContext$6(state, stream);
	};


	/**
	 * Variable name
	 */
	states.variableName = function(type, stream, state) {
	  if (type == "string" || type == "[" || type == "]" || stream.current().match(/^(\.|\$)/)) {
	    if (stream.current().match(/^\.[\w-]+/i)) override = "variable";
	    return "variableName";
	  }
	  return popAndPass(type, stream, state);
	};

	const stylus = {
	  name: "stylus",
	  startState: function() {
	    return {
	      tokenize: null,
	      state: "block",
	      context: new Context$4("block", 0, null)
	    };
	  },
	  token: function(stream, state) {
	    if (!state.tokenize && stream.eatSpace()) return null;
	    style = (state.tokenize || tokenBase$c)(stream, state);
	    if (style && typeof style == "object") {
	      type$1 = style[1];
	      style = style[0];
	    }
	    override = style;
	    state.state = states[state.state](type$1, stream, state);
	    return override;
	  },
	  indent: function(state, textAfter, iCx) {
	    var cx = state.context,
	        ch = textAfter && textAfter.charAt(0),
	        indent = cx.indent,
	        lineFirstWord = firstWordOfLine(textAfter),
	        lineIndent = iCx.lineIndent(iCx.pos),
	        prevLineFirstWord = state.context.prev ? state.context.prev.line.firstWord : "",
	        prevLineIndent = state.context.prev ? state.context.prev.line.indent : lineIndent;

	    if (cx.prev &&
	        (ch == "}" && (cx.type == "block" || cx.type == "atBlock" || cx.type == "keyframes") ||
	         ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
	         ch == "{" && (cx.type == "at"))) {
	      indent = cx.indent - iCx.unit;
	    } else if (!(/(\})/.test(ch))) {
	      if (/@|\$|\d/.test(ch) ||
	          /^\{/.test(textAfter) ||
	/^\s*\/(\/|\*)/.test(textAfter) ||
	          /^\s*\/\*/.test(prevLineFirstWord) ||
	          /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(textAfter) ||
	/^(\+|-)?[a-z][\w-]*\(/i.test(textAfter) ||
	/^return/.test(textAfter) ||
	              wordIsBlock(lineFirstWord)) {
	            indent = lineIndent;
	          } else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) {
	        if (/\,\s*$/.test(prevLineFirstWord)) {
	          indent = prevLineIndent;
	        } else if (!state.sol() && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord))) {
	          indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + iCx.unit;
	        } else {
	          indent = lineIndent;
	        }
	      } else if (!/,\s*$/.test(textAfter) && (wordIsVendorPrefix(lineFirstWord) || wordIsProperty(lineFirstWord))) {
	        if (wordIsBlock(prevLineFirstWord)) {
	          indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + iCx.unit;
	        } else if (/^\{/.test(prevLineFirstWord)) {
	          indent = lineIndent <= prevLineIndent ? lineIndent : prevLineIndent + iCx.unit;
	        } else if (wordIsVendorPrefix(prevLineFirstWord) || wordIsProperty(prevLineFirstWord)) {
	          indent = lineIndent >= prevLineIndent ? prevLineIndent : lineIndent;
	        } else if (/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(prevLineFirstWord) ||
	                   /=\s*$/.test(prevLineFirstWord) ||
	                   wordIsTag(prevLineFirstWord) ||
	                   /^\$[\w-\.\[\]\'\"]/.test(prevLineFirstWord)) {
	          indent = prevLineIndent + iCx.unit;
	        } else {
	          indent = lineIndent;
	        }
	      }
	    }
	    return indent;
	  },
	  languageData: {
	    indentOnInput: /^\s*\}$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	    autocomplete: hintWords
	  }
	};

	var stylus$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		stylus: stylus
	});

	function wordSet(words) {
	  var set = {};
	  for (var i = 0; i < words.length; i++) set[words[i]] = true;
	  return set
	}

	var keywords$a = wordSet(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype",
	                        "open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super",
	                        "convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is",
	                        "break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while",
	                        "defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet",
	                        "assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right",
	                        "Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]);
	var definingKeywords = wordSet(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]);
	var atoms$2 = wordSet(["true","false","nil","self","super","_"]);
	var types$3 = wordSet(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String",
	                     "UInt8","UInt16","UInt32","UInt64","Void"]);
	var operators = "+-/*%=|&<>~^?!";
	var punc = ":;,.(){}[]";
	var binary = /^\-?0b[01][01_]*/;
	var octal = /^\-?0o[0-7][0-7_]*/;
	var hexadecimal = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/;
	var decimal = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/;
	var identifier = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/;
	var property = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
	var instruction = /^\#[A-Za-z]+/;
	var attribute = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
	//var regexp = /^\/(?!\s)(?:\/\/)?(?:\\.|[^\/])+\//

	function tokenBase$b(stream, state, prev) {
	  if (stream.sol()) state.indented = stream.indentation();
	  if (stream.eatSpace()) return null

	  var ch = stream.peek();
	  if (ch == "/") {
	    if (stream.match("//")) {
	      stream.skipToEnd();
	      return "comment"
	    }
	    if (stream.match("/*")) {
	      state.tokenize.push(tokenComment$5);
	      return tokenComment$5(stream, state)
	    }
	  }
	  if (stream.match(instruction)) return "builtin"
	  if (stream.match(attribute)) return "attribute"
	  if (stream.match(binary)) return "number"
	  if (stream.match(octal)) return "number"
	  if (stream.match(hexadecimal)) return "number"
	  if (stream.match(decimal)) return "number"
	  if (stream.match(property)) return "property"
	  if (operators.indexOf(ch) > -1) {
	    stream.next();
	    return "operator"
	  }
	  if (punc.indexOf(ch) > -1) {
	    stream.next();
	    stream.match("..");
	    return "punctuation"
	  }
	  var stringMatch;
	  if (stringMatch = stream.match(/("""|"|')/)) {
	    var tokenize = tokenString$7.bind(null, stringMatch[0]);
	    state.tokenize.push(tokenize);
	    return tokenize(stream, state)
	  }

	  if (stream.match(identifier)) {
	    var ident = stream.current();
	    if (types$3.hasOwnProperty(ident)) return "type"
	    if (atoms$2.hasOwnProperty(ident)) return "atom"
	    if (keywords$a.hasOwnProperty(ident)) {
	      if (definingKeywords.hasOwnProperty(ident))
	        state.prev = "define";
	      return "keyword"
	    }
	    if (prev == "define") return "def"
	    return "variable"
	  }

	  stream.next();
	  return null
	}

	function tokenUntilClosingParen() {
	  var depth = 0;
	  return function(stream, state, prev) {
	    var inner = tokenBase$b(stream, state, prev);
	    if (inner == "punctuation") {
	      if (stream.current() == "(") ++depth;
	      else if (stream.current() == ")") {
	        if (depth == 0) {
	          stream.backUp(1);
	          state.tokenize.pop();
	          return state.tokenize[state.tokenize.length - 1](stream, state)
	        }
	        else --depth;
	      }
	    }
	    return inner
	  }
	}

	function tokenString$7(openQuote, stream, state) {
	  var singleLine = openQuote.length == 1;
	  var ch, escaped = false;
	  while (ch = stream.peek()) {
	    if (escaped) {
	      stream.next();
	      if (ch == "(") {
	        state.tokenize.push(tokenUntilClosingParen());
	        return "string"
	      }
	      escaped = false;
	    } else if (stream.match(openQuote)) {
	      state.tokenize.pop();
	      return "string"
	    } else {
	      stream.next();
	      escaped = ch == "\\";
	    }
	  }
	  if (singleLine) {
	    state.tokenize.pop();
	  }
	  return "string"
	}

	function tokenComment$5(stream, state) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch === "/" && stream.eat("*")) {
	      state.tokenize.push(tokenComment$5);
	    } else if (ch === "*" && stream.eat("/")) {
	      state.tokenize.pop();
	      break
	    }
	  }
	  return "comment"
	}

	function Context$3(prev, align, indented) {
	  this.prev = prev;
	  this.align = align;
	  this.indented = indented;
	}

	function pushContext$5(state, stream) {
	  var align = stream.match(/^\s*($|\/[\/\*]|[)}\]])/, false) ? null : stream.column() + 1;
	  state.context = new Context$3(state.context, align, state.indented);
	}

	function popContext$5(state) {
	  if (state.context) {
	    state.indented = state.context.indented;
	    state.context = state.context.prev;
	  }
	}

	const swift = {
	  name: "swift",
	  startState: function() {
	    return {
	      prev: null,
	      context: null,
	      indented: 0,
	      tokenize: []
	    }
	  },

	  token: function(stream, state) {
	    var prev = state.prev;
	    state.prev = null;
	    var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase$b;
	    var style = tokenize(stream, state, prev);
	    if (!style || style == "comment") state.prev = prev;
	    else if (!state.prev) state.prev = style;

	    if (style == "punctuation") {
	      var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current());
	      if (bracket) (bracket[1] ? popContext$5 : pushContext$5)(state, stream);
	    }

	    return style
	  },

	  indent: function(state, textAfter, iCx) {
	    var cx = state.context;
	    if (!cx) return 0
	    var closing = /^[\]\}\)]/.test(textAfter);
	    if (cx.align != null) return cx.align - (closing ? 1 : 0)
	    return cx.indented + (closing ? 0 : iCx.unit)
	  },

	  languageData: {
	    indentOnInput: /^\s*[\)\}\]]$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	    closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]}
	  }
	};

	var swift$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		swift: swift
	});

	function mkStex(mathMode) {
	  function pushCommand(state, command) {
	    state.cmdState.push(command);
	  }

	  function peekCommand(state) {
	    if (state.cmdState.length > 0) {
	      return state.cmdState[state.cmdState.length - 1];
	    } else {
	      return null;
	    }
	  }

	  function popCommand(state) {
	    var plug = state.cmdState.pop();
	    if (plug) {
	      plug.closeBracket();
	    }
	  }

	  // returns the non-default plugin closest to the end of the list
	  function getMostPowerful(state) {
	    var context = state.cmdState;
	    for (var i = context.length - 1; i >= 0; i--) {
	      var plug = context[i];
	      if (plug.name == "DEFAULT") {
	        continue;
	      }
	      return plug;
	    }
	    return { styleIdentifier: function() { return null; } };
	  }

	  function addPluginPattern(pluginName, cmdStyle, styles) {
	    return function () {
	      this.name = pluginName;
	      this.bracketNo = 0;
	      this.style = cmdStyle;
	      this.styles = styles;
	      this.argument = null;   // \begin and \end have arguments that follow. These are stored in the plugin

	      this.styleIdentifier = function() {
	        return this.styles[this.bracketNo - 1] || null;
	      };
	      this.openBracket = function() {
	        this.bracketNo++;
	        return "bracket";
	      };
	      this.closeBracket = function() {};
	    };
	  }

	  var plugins = {};

	  plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]);
	  plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]);
	  plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]);
	  plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]);
	  plugins["end"] = addPluginPattern("end", "tag", ["atom"]);

	  plugins["label"    ] = addPluginPattern("label"    , "tag", ["atom"]);
	  plugins["ref"      ] = addPluginPattern("ref"      , "tag", ["atom"]);
	  plugins["eqref"    ] = addPluginPattern("eqref"    , "tag", ["atom"]);
	  plugins["cite"     ] = addPluginPattern("cite"     , "tag", ["atom"]);
	  plugins["bibitem"  ] = addPluginPattern("bibitem"  , "tag", ["atom"]);
	  plugins["Bibitem"  ] = addPluginPattern("Bibitem"  , "tag", ["atom"]);
	  plugins["RBibitem" ] = addPluginPattern("RBibitem" , "tag", ["atom"]);

	  plugins["DEFAULT"] = function () {
	    this.name = "DEFAULT";
	    this.style = "tag";

	    this.styleIdentifier = this.openBracket = this.closeBracket = function() {};
	  };

	  function setState(state, f) {
	    state.f = f;
	  }

	  // called when in a normal (no environment) context
	  function normal(source, state) {
	    var plug;
	    // Do we look like '\command' ?  If so, attempt to apply the plugin 'command'
	    if (source.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)) {
	      var cmdName = source.current().slice(1);
	      plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins["DEFAULT"];
	      plug = new plug();
	      pushCommand(state, plug);
	      setState(state, beginParams);
	      return plug.style;
	    }

	    // escape characters
	    if (source.match(/^\\[$&%#{}_]/)) {
	      return "tag";
	    }

	    // white space control characters
	    if (source.match(/^\\[,;!\/\\]/)) {
	      return "tag";
	    }

	    // find if we're starting various math modes
	    if (source.match("\\[")) {
	      setState(state, function(source, state){ return inMathMode(source, state, "\\]"); });
	      return "keyword";
	    }
	    if (source.match("\\(")) {
	      setState(state, function(source, state){ return inMathMode(source, state, "\\)"); });
	      return "keyword";
	    }
	    if (source.match("$$")) {
	      setState(state, function(source, state){ return inMathMode(source, state, "$$"); });
	      return "keyword";
	    }
	    if (source.match("$")) {
	      setState(state, function(source, state){ return inMathMode(source, state, "$"); });
	      return "keyword";
	    }

	    var ch = source.next();
	    if (ch == "%") {
	      source.skipToEnd();
	      return "comment";
	    } else if (ch == '}' || ch == ']') {
	      plug = peekCommand(state);
	      if (plug) {
	        plug.closeBracket(ch);
	        setState(state, beginParams);
	      } else {
	        return "error";
	      }
	      return "bracket";
	    } else if (ch == '{' || ch == '[') {
	      plug = plugins["DEFAULT"];
	      plug = new plug();
	      pushCommand(state, plug);
	      return "bracket";
	    } else if (/\d/.test(ch)) {
	      source.eatWhile(/[\w.%]/);
	      return "atom";
	    } else {
	      source.eatWhile(/[\w\-_]/);
	      plug = getMostPowerful(state);
	      if (plug.name == 'begin') {
	        plug.argument = source.current();
	      }
	      return plug.styleIdentifier();
	    }
	  }

	  function inMathMode(source, state, endModeSeq) {
	    if (source.eatSpace()) {
	      return null;
	    }
	    if (endModeSeq && source.match(endModeSeq)) {
	      setState(state, normal);
	      return "keyword";
	    }
	    if (source.match(/^\\[a-zA-Z@]+/)) {
	      return "tag";
	    }
	    if (source.match(/^[a-zA-Z]+/)) {
	      return "variableName.special";
	    }
	    // escape characters
	    if (source.match(/^\\[$&%#{}_]/)) {
	      return "tag";
	    }
	    // white space control characters
	    if (source.match(/^\\[,;!\/]/)) {
	      return "tag";
	    }
	    // special math-mode characters
	    if (source.match(/^[\^_&]/)) {
	      return "tag";
	    }
	    // non-special characters
	    if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) {
	      return null;
	    }
	    if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) {
	      return "number";
	    }
	    var ch = source.next();
	    if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") {
	      return "bracket";
	    }

	    if (ch == "%") {
	      source.skipToEnd();
	      return "comment";
	    }
	    return "error";
	  }

	  function beginParams(source, state) {
	    var ch = source.peek(), lastPlug;
	    if (ch == '{' || ch == '[') {
	      lastPlug = peekCommand(state);
	      lastPlug.openBracket(ch);
	      source.eat(ch);
	      setState(state, normal);
	      return "bracket";
	    }
	    if (/[ \t\r]/.test(ch)) {
	      source.eat(ch);
	      return null;
	    }
	    setState(state, normal);
	    popCommand(state);

	    return normal(source, state);
	  }

	  return {
	    name: "stex",
	    startState: function() {
	      var f = mathMode ? function(source, state){ return inMathMode(source, state); } : normal;
	      return {
	        cmdState: [],
	        f: f
	      };
	    },
	    copyState: function(s) {
	      return {
	        cmdState: s.cmdState.slice(),
	        f: s.f
	      };
	    },
	    token: function(stream, state) {
	      return state.f(stream, state);
	    },
	    blankLine: function(state) {
	      state.f = normal;
	      state.cmdState.length = 0;
	    },
	    languageData: {
	      commentTokens: {line: "%"}
	    }
	  };
	}
	const stex = mkStex(false);
	const stexMath = mkStex(true);

	var stex$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		stex: stex,
		stexMath: stexMath
	});

	function mkVerilog(parserConfig) {

	  var statementIndentUnit = parserConfig.statementIndentUnit,
	      dontAlignCalls = parserConfig.dontAlignCalls,
	      noIndentKeywords = parserConfig.noIndentKeywords || [],
	      multiLineStrings = parserConfig.multiLineStrings,
	      hooks = parserConfig.hooks || {};

	  function words(str) {
	    var obj = {}, words = str.split(" ");
	    for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	    return obj;
	  }

	  /**
	   * Keywords from IEEE 1800-2012
	   */
	  var keywords = words(
	    "accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind " +
	      "bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config " +
	      "const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable " +
	      "dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup " +
	      "endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask " +
	      "enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin " +
	      "function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import " +
	      "incdir include initial inout input inside instance int integer interconnect interface intersect join join_any " +
	      "join_none large let liblist library local localparam logic longint macromodule matches medium modport module " +
	      "nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed " +
	      "parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup " +
	      "pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg " +
	      "reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime " +
	      "s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify " +
	      "specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on " +
	      "table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior " +
	      "trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void " +
	      "wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor");

	  /** Operators from IEEE 1800-2012
	      unary_operator ::=
	      + | - | ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~
	      binary_operator ::=
	      + | - | * | / | % | == | != | === | !== | ==? | !=? | && | || | **
	      | < | <= | > | >= | & | | | ^ | ^~ | ~^ | >> | << | >>> | <<<
	      | -> | <->
	      inc_or_dec_operator ::= ++ | --
	      unary_module_path_operator ::=
	      ! | ~ | & | ~& | | | ~| | ^ | ~^ | ^~
	      binary_module_path_operator ::=
	      == | != | && | || | & | | | ^ | ^~ | ~^
	  */
	  var isOperatorChar = /[\+\-\*\/!~&|^%=?:]/;
	  var isBracketChar = /[\[\]{}()]/;

	  var unsignedNumber = /\d[0-9_]*/;
	  var decimalLiteral = /\d*\s*'s?d\s*\d[0-9_]*/i;
	  var binaryLiteral = /\d*\s*'s?b\s*[xz01][xz01_]*/i;
	  var octLiteral = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i;
	  var hexLiteral = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i;
	  var realLiteral = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i;

	  var closingBracketOrWord = /^((\w+)|[)}\]])/;
	  var closingBracket = /[)}\]]/;

	  var curPunc;
	  var curKeyword;

	  // Block openings which are closed by a matching keyword in the form of ("end" + keyword)
	  // E.g. "task" => "endtask"
	  var blockKeywords = words(
	    "case checker class clocking config function generate interface module package " +
	      "primitive program property specify sequence table task"
	  );

	  // Opening/closing pairs
	  var openClose = {};
	  for (var keyword in blockKeywords) {
	    openClose[keyword] = "end" + keyword;
	  }
	  openClose["begin"] = "end";
	  openClose["casex"] = "endcase";
	  openClose["casez"] = "endcase";
	  openClose["do"   ] = "while";
	  openClose["fork" ] = "join;join_any;join_none";
	  openClose["covergroup"] = "endgroup";

	  for (var i in noIndentKeywords) {
	    var keyword = noIndentKeywords[i];
	    if (openClose[keyword]) {
	      openClose[keyword] = undefined;
	    }
	  }

	  // Keywords which open statements that are ended with a semi-colon
	  var statementKeywords = words("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");

	  function tokenBase(stream, state) {
	    var ch = stream.peek(), style;
	    if (hooks[ch] && (style = hooks[ch](stream, state)) != false) return style;
	    if (hooks.tokenBase && (style = hooks.tokenBase(stream, state)) != false)
	      return style;

	    if (/[,;:\.]/.test(ch)) {
	      curPunc = stream.next();
	      return null;
	    }
	    if (isBracketChar.test(ch)) {
	      curPunc = stream.next();
	      return "bracket";
	    }
	    // Macros (tick-defines)
	    if (ch == '`') {
	      stream.next();
	      if (stream.eatWhile(/[\w\$_]/)) {
	        return "def";
	      } else {
	        return null;
	      }
	    }
	    // System calls
	    if (ch == '$') {
	      stream.next();
	      if (stream.eatWhile(/[\w\$_]/)) {
	        return "meta";
	      } else {
	        return null;
	      }
	    }
	    // Time literals
	    if (ch == '#') {
	      stream.next();
	      stream.eatWhile(/[\d_.]/);
	      return "def";
	    }
	    // Strings
	    if (ch == '"') {
	      stream.next();
	      state.tokenize = tokenString(ch);
	      return state.tokenize(stream, state);
	    }
	    // Comments
	    if (ch == "/") {
	      stream.next();
	      if (stream.eat("*")) {
	        state.tokenize = tokenComment;
	        return tokenComment(stream, state);
	      }
	      if (stream.eat("/")) {
	        stream.skipToEnd();
	        return "comment";
	      }
	      stream.backUp(1);
	    }

	    // Numeric literals
	    if (stream.match(realLiteral) ||
	        stream.match(decimalLiteral) ||
	        stream.match(binaryLiteral) ||
	        stream.match(octLiteral) ||
	        stream.match(hexLiteral) ||
	        stream.match(unsignedNumber) ||
	        stream.match(realLiteral)) {
	      return "number";
	    }

	    // Operators
	    if (stream.eatWhile(isOperatorChar)) {
	      return "meta";
	    }

	    // Keywords / plain variables
	    if (stream.eatWhile(/[\w\$_]/)) {
	      var cur = stream.current();
	      if (keywords[cur]) {
	        if (openClose[cur]) {
	          curPunc = "newblock";
	        }
	        if (statementKeywords[cur]) {
	          curPunc = "newstatement";
	        }
	        curKeyword = cur;
	        return "keyword";
	      }
	      return "variable";
	    }

	    stream.next();
	    return null;
	  }

	  function tokenString(quote) {
	    return function(stream, state) {
	      var escaped = false, next, end = false;
	      while ((next = stream.next()) != null) {
	        if (next == quote && !escaped) {end = true; break;}
	        escaped = !escaped && next == "\\";
	      }
	      if (end || !(escaped || multiLineStrings))
	        state.tokenize = tokenBase;
	      return "string";
	    };
	  }

	  function tokenComment(stream, state) {
	    var maybeEnd = false, ch;
	    while (ch = stream.next()) {
	      if (ch == "/" && maybeEnd) {
	        state.tokenize = tokenBase;
	        break;
	      }
	      maybeEnd = (ch == "*");
	    }
	    return "comment";
	  }

	  function Context(indented, column, type, align, prev) {
	    this.indented = indented;
	    this.column = column;
	    this.type = type;
	    this.align = align;
	    this.prev = prev;
	  }
	  function pushContext(state, col, type) {
	    var indent = state.indented;
	    var c = new Context(indent, col, type, null, state.context);
	    return state.context = c;
	  }
	  function popContext(state) {
	    var t = state.context.type;
	    if (t == ")" || t == "]" || t == "}") {
	      state.indented = state.context.indented;
	    }
	    return state.context = state.context.prev;
	  }

	  function isClosing(text, contextClosing) {
	    if (text == contextClosing) {
	      return true;
	    } else {
	      // contextClosing may be multiple keywords separated by ;
	      var closingKeywords = contextClosing.split(";");
	      for (var i in closingKeywords) {
	        if (text == closingKeywords[i]) {
	          return true;
	        }
	      }
	      return false;
	    }
	  }

	  function buildElectricInputRegEx() {
	    // Reindentation should occur on any bracket char: {}()[]
	    // or on a match of any of the block closing keywords, at
	    // the end of a line
	    var allClosings = [];
	    for (var i in openClose) {
	      if (openClose[i]) {
	        var closings = openClose[i].split(";");
	        for (var j in closings) {
	          allClosings.push(closings[j]);
	        }
	      }
	    }
	    var re = new RegExp("[{}()\\[\\]]|(" + allClosings.join("|") + ")$");
	    return re;
	  }

	  // Interface
	  return {
	    name: "verilog",

	    startState: function(indentUnit) {
	      var state = {
	        tokenize: null,
	        context: new Context(-indentUnit, 0, "top", false),
	        indented: 0,
	        startOfLine: true
	      };
	      if (hooks.startState) hooks.startState(state);
	      return state;
	    },

	    token: function(stream, state) {
	      var ctx = state.context;
	      if (stream.sol()) {
	        if (ctx.align == null) ctx.align = false;
	        state.indented = stream.indentation();
	        state.startOfLine = true;
	      }
	      if (hooks.token) {
	        // Call hook, with an optional return value of a style to override verilog styling.
	        var style = hooks.token(stream, state);
	        if (style !== undefined) {
	          return style;
	        }
	      }
	      if (stream.eatSpace()) return null;
	      curPunc = null;
	      curKeyword = null;
	      var style = (state.tokenize || tokenBase)(stream, state);
	      if (style == "comment" || style == "meta" || style == "variable") return style;
	      if (ctx.align == null) ctx.align = true;

	      if (curPunc == ctx.type) {
	        popContext(state);
	      } else if ((curPunc == ";" && ctx.type == "statement") ||
	                 (ctx.type && isClosing(curKeyword, ctx.type))) {
	        ctx = popContext(state);
	        while (ctx && ctx.type == "statement") ctx = popContext(state);
	      } else if (curPunc == "{") {
	        pushContext(state, stream.column(), "}");
	      } else if (curPunc == "[") {
	        pushContext(state, stream.column(), "]");
	      } else if (curPunc == "(") {
	        pushContext(state, stream.column(), ")");
	      } else if (ctx && ctx.type == "endcase" && curPunc == ":") {
	        pushContext(state, stream.column(), "statement");
	      } else if (curPunc == "newstatement") {
	        pushContext(state, stream.column(), "statement");
	      } else if (curPunc == "newblock") {
	        if (curKeyword == "function" && ctx && (ctx.type == "statement" || ctx.type == "endgroup")) ; else if (curKeyword == "task" && ctx && ctx.type == "statement") ; else {
	          var close = openClose[curKeyword];
	          pushContext(state, stream.column(), close);
	        }
	      }

	      state.startOfLine = false;
	      return style;
	    },

	    indent: function(state, textAfter, cx) {
	      if (state.tokenize != tokenBase && state.tokenize != null) return null;
	      if (hooks.indent) {
	        var fromHook = hooks.indent(state);
	        if (fromHook >= 0) return fromHook;
	      }
	      var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
	      if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
	      var closing = false;
	      var possibleClosing = textAfter.match(closingBracketOrWord);
	      if (possibleClosing)
	        closing = isClosing(possibleClosing[0], ctx.type);
	      if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || cx.unit);
	      else if (closingBracket.test(ctx.type) && ctx.align && !dontAlignCalls) return ctx.column + (closing ? 0 : 1);
	      else if (ctx.type == ")" && !closing) return ctx.indented + (statementIndentUnit || cx.unit);
	      else return ctx.indented + (closing ? 0 : cx.unit);
	    },

	    languageData: {
	      indentOnInput: buildElectricInputRegEx(),
	      commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
	    }
	  };
	}
	const verilog = mkVerilog({});

	// TL-Verilog mode.
	// See tl-x.org for language spec.
	// See the mode in action at makerchip.com.
	// Contact: steve.hoover@redwoodeda.com

	// TLV Identifier prefixes.
	// Note that sign is not treated separately, so "+/-" versions of numeric identifiers
	// are included.
	var tlvIdentifierStyle = {
	  "|": "link",
	  ">": "property",  // Should condition this off for > TLV 1c.
	  "$": "variable",
	  "$$": "variable",
	  "?$": "qualifier",
	  "?*": "qualifier",
	  "-": "contentSeparator",
	  "/": "property",
	  "/-": "property",
	  "@": "variableName.special",
	  "@-": "variableName.special",
	  "@++": "variableName.special",
	  "@+=": "variableName.special",
	  "@+=-": "variableName.special",
	  "@--": "variableName.special",
	  "@-=": "variableName.special",
	  "%+": "tag",
	  "%-": "tag",
	  "%": "tag",
	  ">>": "tag",
	  "<<": "tag",
	  "<>": "tag",
	  "#": "tag",  // Need to choose a style for this.
	  "^": "attribute",
	  "^^": "attribute",
	  "^!": "attribute",
	  "*": "variable",
	  "**": "variable",
	  "\\": "keyword",
	  "\"": "comment"
	};

	// Lines starting with these characters define scope (result in indentation).
	var tlvScopePrefixChars = {
	  "/": "beh-hier",
	  ">": "beh-hier",
	  "-": "phys-hier",
	  "|": "pipe",
	  "?": "when",
	  "@": "stage",
	  "\\": "keyword"
	};
	var tlvIndentUnit = 3;
	var tlvIdentMatch = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/;  // Matches an identifier.
	// Note that ':' is excluded, because of it's use in [:].
	var tlvLineIndentationMatch = /^[! ] */;
	var tlvCommentMatch = /^\/[\/\*]/;

	const tlv = mkVerilog({
	  hooks: {
	    electricInput: false,

	    // Return undefined for verilog tokenizing, or style for TLV token (null not used).
	    // Standard CM styles are used for most formatting, but some TL-Verilog-specific highlighting
	    // can be enabled with the definition of cm-tlv-* styles, including highlighting for:
	    //   - M4 tokens
	    //   - TLV scope indentation
	    //   - Statement delimitation (enabled by tlvTrackStatements)
	    token: function(stream, state) {
	      var style = undefined;
	      var match;  // Return value of pattern matches.

	      // Set highlighting mode based on code region (TLV or SV).
	      if (stream.sol() && ! state.tlvInBlockComment) {
	        // Process region.
	        if (stream.peek() == '\\') {
	          style = "def";
	          stream.skipToEnd();
	          if (stream.string.match(/\\SV/)) {
	            state.tlvCodeActive = false;
	          } else if (stream.string.match(/\\TLV/)){
	            state.tlvCodeActive = true;
	          }
	        }
	        // Correct indentation in the face of a line prefix char.
	        if (state.tlvCodeActive && stream.pos == 0 &&
	            (state.indented == 0) && (match = stream.match(tlvLineIndentationMatch, false))) {
	          state.indented = match[0].length;
	        }

	        // Compute indentation state:
	        //   o Auto indentation on next line
	        //   o Indentation scope styles
	        var indented = state.indented;
	        var depth = indented / tlvIndentUnit;
	        if (depth <= state.tlvIndentationStyle.length) {
	          // not deeper than current scope

	          var blankline = stream.string.length == indented;
	          var chPos = depth * tlvIndentUnit;
	          if (chPos < stream.string.length) {
	            var bodyString = stream.string.slice(chPos);
	            var ch = bodyString[0];
	            if (tlvScopePrefixChars[ch] && ((match = bodyString.match(tlvIdentMatch)) &&
	                                            tlvIdentifierStyle[match[1]])) {
	              // This line begins scope.
	              // Next line gets indented one level.
	              indented += tlvIndentUnit;
	              // Style the next level of indentation (except non-region keyword identifiers,
	              //   which are statements themselves)
	              if (!(ch == "\\" && chPos > 0)) {
	                state.tlvIndentationStyle[depth] = tlvScopePrefixChars[ch];
	                depth++;
	              }
	            }
	          }
	          // Clear out deeper indentation levels unless line is blank.
	          if (!blankline) {
	            while (state.tlvIndentationStyle.length > depth) {
	              state.tlvIndentationStyle.pop();
	            }
	          }
	        }
	        // Set next level of indentation.
	        state.tlvNextIndent = indented;
	      }

	      if (state.tlvCodeActive) {

	        var match;
	        if (style !== undefined) ; else if (state.tlvInBlockComment) {
	          // In a block comment.
	          if (stream.match(/^.*?\*\//)) {
	            // Exit block comment.
	            state.tlvInBlockComment = false;
	          } else {
	            stream.skipToEnd();
	          }
	          style = "comment";
	        } else if ((match = stream.match(tlvCommentMatch)) && !state.tlvInBlockComment) {
	          // Start comment.
	          if (match[0] == "//") {
	            // Line comment.
	            stream.skipToEnd();
	          } else {
	            // Block comment.
	            state.tlvInBlockComment = true;
	          }
	          style = "comment";
	        } else if (match = stream.match(tlvIdentMatch)) {
	          // looks like an identifier (or identifier prefix)
	          var prefix = match[1];
	          var mnemonic = match[2];
	          if (// is identifier prefix
	            tlvIdentifierStyle.hasOwnProperty(prefix) &&
	              // has mnemonic or we're at the end of the line (maybe it hasn't been typed yet)
	            (mnemonic.length > 0 || stream.eol())) {
	            style = tlvIdentifierStyle[prefix];
	          } else {
	            // Just swallow one character and try again.
	            // This enables subsequent identifier match with preceding symbol character, which
	            //   is legal within a statement.  (Eg, !$reset).  It also enables detection of
	            //   comment start with preceding symbols.
	            stream.backUp(stream.current().length - 1);
	          }
	        } else if (stream.match(/^\t+/)) {
	          // Highlight tabs, which are illegal.
	          style = "invalid";
	        } else if (stream.match(/^[\[\]{}\(\);\:]+/)) {
	          // [:], (), {}, ;.
	          style = "meta";
	        } else if (match = stream.match(/^[mM]4([\+_])?[\w\d_]*/)) {
	          // m4 pre proc
	          style = (match[1] == "+") ? "keyword.special" : "keyword";
	        } else if (stream.match(/^ +/)){
	          // Skip over spaces.
	          if (stream.eol()) {
	            // Trailing spaces.
	            style = "error";
	          }
	        } else if (stream.match(/^[\w\d_]+/)) {
	          // alpha-numeric token.
	          style = "number";
	        } else {
	          // Eat the next char w/ no formatting.
	          stream.next();
	        }
	      } else {
	        if (stream.match(/^[mM]4([\w\d_]*)/)) {
	          // m4 pre proc
	          style = "keyword";
	        }
	      }
	      return style;
	    },

	    indent: function(state) {
	      return (state.tlvCodeActive == true) ? state.tlvNextIndent : -1;
	    },

	    startState: function(state) {
	      state.tlvIndentationStyle = [];  // Styles to use for each level of indentation.
	      state.tlvCodeActive = true;  // True when we're in a TLV region (and at beginning of file).
	      state.tlvNextIndent = -1;    // The number of spaces to autoindent the next line if tlvCodeActive.
	      state.tlvInBlockComment = false;  // True inside /**/ comment.
	    }

	  }
	});

	var verilog$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		tlv: tlv,
		verilog: verilog
	});

	function parseWords$1(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}
	var keywords$9 = parseWords$1("Tcl safe after append array auto_execok auto_import auto_load " +
	                          "auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror " +
	                          "binary break catch cd close concat continue dde eof encoding error " +
	                          "eval exec exit expr fblocked fconfigure fcopy file fileevent filename " +
	                          "filename flush for foreach format gets glob global history http if " +
	                          "incr info interp join lappend lindex linsert list llength load lrange " +
	                          "lreplace lsearch lset lsort memory msgcat namespace open package parray " +
	                          "pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp " +
	                          "registry regsub rename resource return scan seek set socket source split " +
	                          "string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord " +
	                          "tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest " +
	                          "tclvars tell time trace unknown unset update uplevel upvar variable " +
	                          "vwait");
	var functions$1 = parseWords$1("if elseif else and not or eq ne in ni for foreach while switch");
	var isOperatorChar$4 = /[+\-*&%=<>!?^\/\|]/;
	function chain$3(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}
	function tokenBase$a(stream, state) {
	  var beforeParams = state.beforeParams;
	  state.beforeParams = false;
	  var ch = stream.next();
	  if ((ch == '"' || ch == "'") && state.inParams) {
	    return chain$3(stream, state, tokenString$6(ch));
	  } else if (/[\[\]{}\(\),;\.]/.test(ch)) {
	    if (ch == "(" && beforeParams) state.inParams = true;
	    else if (ch == ")") state.inParams = false;
	    return null;
	  } else if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  } else if (ch == "#") {
	    if (stream.eat("*"))
	      return chain$3(stream, state, tokenComment$4);
	    if (ch == "#" && stream.match(/ *\[ *\[/))
	      return chain$3(stream, state, tokenUnparsed$1);
	    stream.skipToEnd();
	    return "comment";
	  } else if (ch == '"') {
	    stream.skipTo(/"/);
	    return "comment";
	  } else if (ch == "$") {
	    stream.eatWhile(/[$_a-z0-9A-Z\.{:]/);
	    stream.eatWhile(/}/);
	    state.beforeParams = true;
	    return "builtin";
	  } else if (isOperatorChar$4.test(ch)) {
	    stream.eatWhile(isOperatorChar$4);
	    return "comment";
	  } else {
	    stream.eatWhile(/[\w\$_{}\xa1-\uffff]/);
	    var word = stream.current().toLowerCase();
	    if (keywords$9 && keywords$9.propertyIsEnumerable(word))
	      return "keyword";
	    if (functions$1 && functions$1.propertyIsEnumerable(word)) {
	      state.beforeParams = true;
	      return "keyword";
	    }
	    return null;
	  }
	}
	function tokenString$6(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {
	        end = true;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end) state.tokenize = tokenBase$a;
	    return "string";
	  };
	}
	function tokenComment$4(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "#" && maybeEnd) {
	      state.tokenize = tokenBase$a;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}
	function tokenUnparsed$1(stream, state) {
	  var maybeEnd = 0, ch;
	  while (ch = stream.next()) {
	    if (ch == "#" && maybeEnd == 2) {
	      state.tokenize = tokenBase$a;
	      break;
	    }
	    if (ch == "]")
	      maybeEnd++;
	    else if (ch != " ")
	      maybeEnd = 0;
	  }
	  return "meta";
	}
	const tcl = {
	  name: "tcl",
	  startState: function() {
	    return {
	      tokenize: tokenBase$a,
	      beforeParams: false,
	      inParams: false
	    };
	  },
	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  },
	  languageData: {
	    commentTokens: {line: "#"}
	  }
	};

	var tcl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		tcl: tcl
	});

	var TOKEN_STYLES = {
	  addition: "inserted",
	  attributes: "propertyName",
	  bold: "strong",
	  cite: "keyword",
	  code: "monospace",
	  definitionList: "list",
	  deletion: "deleted",
	  div: "punctuation",
	  em: "emphasis",
	  footnote: "variable",
	  footCite: "qualifier",
	  header: "heading",
	  html: "comment",
	  image: "atom",
	  italic: "emphasis",
	  link: "link",
	  linkDefinition: "link",
	  list1: "list",
	  list2: "list.special",
	  list3: "list",
	  notextile: "string.special",
	  pre: "operator",
	  p: "content",
	  quote: "bracket",
	  span: "quote",
	  specialChar: "character",
	  strong: "strong",
	  sub: "content.special",
	  sup: "content.special",
	  table: "variableName.special",
	  tableHeading: "operator"
	};

	function startNewLine(stream, state) {
	  state.mode = Modes.newLayout;
	  state.tableHeading = false;

	  if (state.layoutType === "definitionList" && state.spanningLayout &&
	      stream.match(RE("definitionListEnd"), false))
	    state.spanningLayout = false;
	}

	function handlePhraseModifier(stream, state, ch) {
	  if (ch === "_") {
	    if (stream.eat("_"))
	      return togglePhraseModifier(stream, state, "italic", /__/, 2);
	    else
	      return togglePhraseModifier(stream, state, "em", /_/, 1);
	  }

	  if (ch === "*") {
	    if (stream.eat("*")) {
	      return togglePhraseModifier(stream, state, "bold", /\*\*/, 2);
	    }
	    return togglePhraseModifier(stream, state, "strong", /\*/, 1);
	  }

	  if (ch === "[") {
	    if (stream.match(/\d+\]/)) state.footCite = true;
	    return tokenStyles(state);
	  }

	  if (ch === "(") {
	    var spec = stream.match(/^(r|tm|c)\)/);
	    if (spec)
	      return TOKEN_STYLES.specialChar
	  }

	  if (ch === "<" && stream.match(/(\w+)[^>]+>[^<]+<\/\1>/))
	    return TOKEN_STYLES.html

	  if (ch === "?" && stream.eat("?"))
	    return togglePhraseModifier(stream, state, "cite", /\?\?/, 2);

	  if (ch === "=" && stream.eat("="))
	    return togglePhraseModifier(stream, state, "notextile", /==/, 2);

	  if (ch === "-" && !stream.eat("-"))
	    return togglePhraseModifier(stream, state, "deletion", /-/, 1);

	  if (ch === "+")
	    return togglePhraseModifier(stream, state, "addition", /\+/, 1);

	  if (ch === "~")
	    return togglePhraseModifier(stream, state, "sub", /~/, 1);

	  if (ch === "^")
	    return togglePhraseModifier(stream, state, "sup", /\^/, 1);

	  if (ch === "%")
	    return togglePhraseModifier(stream, state, "span", /%/, 1);

	  if (ch === "@")
	    return togglePhraseModifier(stream, state, "code", /@/, 1);

	  if (ch === "!") {
	    var type = togglePhraseModifier(stream, state, "image", /(?:\([^\)]+\))?!/, 1);
	    stream.match(/^:\S+/); // optional Url portion
	    return type;
	  }
	  return tokenStyles(state);
	}

	function togglePhraseModifier(stream, state, phraseModifier, closeRE, openSize) {
	  var charBefore = stream.pos > openSize ? stream.string.charAt(stream.pos - openSize - 1) : null;
	  var charAfter = stream.peek();
	  if (state[phraseModifier]) {
	    if ((!charAfter || /\W/.test(charAfter)) && charBefore && /\S/.test(charBefore)) {
	      var type = tokenStyles(state);
	      state[phraseModifier] = false;
	      return type;
	    }
	  } else if ((!charBefore || /\W/.test(charBefore)) && charAfter && /\S/.test(charAfter) &&
	             stream.match(new RegExp("^.*\\S" + closeRE.source + "(?:\\W|$)"), false)) {
	    state[phraseModifier] = true;
	    state.mode = Modes.attributes;
	  }
	  return tokenStyles(state);
	}
	function tokenStyles(state) {
	  var disabled = textileDisabled(state);
	  if (disabled) return disabled;

	  var styles = [];
	  if (state.layoutType) styles.push(TOKEN_STYLES[state.layoutType]);

	  styles = styles.concat(activeStyles(
	    state, "addition", "bold", "cite", "code", "deletion", "em", "footCite",
	    "image", "italic", "link", "span", "strong", "sub", "sup", "table", "tableHeading"));

	  if (state.layoutType === "header")
	    styles.push(TOKEN_STYLES.header + "-" + state.header);

	  return styles.length ? styles.join(" ") : null;
	}

	function textileDisabled(state) {
	  var type = state.layoutType;

	  switch(type) {
	  case "notextile":
	  case "code":
	  case "pre":
	    return TOKEN_STYLES[type];
	  default:
	    if (state.notextile)
	      return TOKEN_STYLES.notextile + (type ? (" " + TOKEN_STYLES[type]) : "");
	    return null;
	  }
	}

	function activeStyles(state) {
	  var styles = [];
	  for (var i = 1; i < arguments.length; ++i) {
	    if (state[arguments[i]])
	      styles.push(TOKEN_STYLES[arguments[i]]);
	  }
	  return styles;
	}

	function blankLine(state) {
	  var spanningLayout = state.spanningLayout, type = state.layoutType;

	  for (var key in state) if (state.hasOwnProperty(key))
	    delete state[key];

	  state.mode = Modes.newLayout;
	  if (spanningLayout) {
	    state.layoutType = type;
	    state.spanningLayout = true;
	  }
	}

	var REs = {
	  cache: {},
	  single: {
	    bc: "bc",
	    bq: "bq",
	    definitionList: /- .*?:=+/,
	    definitionListEnd: /.*=:\s*$/,
	    div: "div",
	    drawTable: /\|.*\|/,
	    foot: /fn\d+/,
	    header: /h[1-6]/,
	    html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,
	    link: /[^"]+":\S/,
	    linkDefinition: /\[[^\s\]]+\]\S+/,
	    list: /(?:#+|\*+)/,
	    notextile: "notextile",
	    para: "p",
	    pre: "pre",
	    table: "table",
	    tableCellAttributes: /[\/\\]\d+/,
	    tableHeading: /\|_\./,
	    tableText: /[^"_\*\[\(\?\+~\^%@|-]+/,
	    text: /[^!"_=\*\[\(<\?\+~\^%@-]+/
	  },
	  attributes: {
	    align: /(?:<>|<|>|=)/,
	    selector: /\([^\(][^\)]+\)/,
	    lang: /\[[^\[\]]+\]/,
	    pad: /(?:\(+|\)+){1,2}/,
	    css: /\{[^\}]+\}/
	  },
	  createRe: function(name) {
	    switch (name) {
	    case "drawTable":
	      return REs.makeRe("^", REs.single.drawTable, "$");
	    case "html":
	      return REs.makeRe("^", REs.single.html, "(?:", REs.single.html, ")*", "$");
	    case "linkDefinition":
	      return REs.makeRe("^", REs.single.linkDefinition, "$");
	    case "listLayout":
	      return REs.makeRe("^", REs.single.list, RE("allAttributes"), "*\\s+");
	    case "tableCellAttributes":
	      return REs.makeRe("^", REs.choiceRe(REs.single.tableCellAttributes,
	                                          RE("allAttributes")), "+\\.");
	    case "type":
	      return REs.makeRe("^", RE("allTypes"));
	    case "typeLayout":
	      return REs.makeRe("^", RE("allTypes"), RE("allAttributes"),
	                        "*\\.\\.?", "(\\s+|$)");
	    case "attributes":
	      return REs.makeRe("^", RE("allAttributes"), "+");

	    case "allTypes":
	      return REs.choiceRe(REs.single.div, REs.single.foot,
	                          REs.single.header, REs.single.bc, REs.single.bq,
	                          REs.single.notextile, REs.single.pre, REs.single.table,
	                          REs.single.para);

	    case "allAttributes":
	      return REs.choiceRe(REs.attributes.selector, REs.attributes.css,
	                          REs.attributes.lang, REs.attributes.align, REs.attributes.pad);

	    default:
	      return REs.makeRe("^", REs.single[name]);
	    }
	  },
	  makeRe: function() {
	    var pattern = "";
	    for (var i = 0; i < arguments.length; ++i) {
	      var arg = arguments[i];
	      pattern += (typeof arg === "string") ? arg : arg.source;
	    }
	    return new RegExp(pattern);
	  },
	  choiceRe: function() {
	    var parts = [arguments[0]];
	    for (var i = 1; i < arguments.length; ++i) {
	      parts[i * 2 - 1] = "|";
	      parts[i * 2] = arguments[i];
	    }

	    parts.unshift("(?:");
	    parts.push(")");
	    return REs.makeRe.apply(null, parts);
	  }
	};

	function RE(name) {
	  return (REs.cache[name] || (REs.cache[name] = REs.createRe(name)));
	}

	var Modes = {
	  newLayout: function(stream, state) {
	    if (stream.match(RE("typeLayout"), false)) {
	      state.spanningLayout = false;
	      return (state.mode = Modes.blockType)(stream, state);
	    }
	    var newMode;
	    if (!textileDisabled(state)) {
	      if (stream.match(RE("listLayout"), false))
	        newMode = Modes.list;
	      else if (stream.match(RE("drawTable"), false))
	        newMode = Modes.table;
	      else if (stream.match(RE("linkDefinition"), false))
	        newMode = Modes.linkDefinition;
	      else if (stream.match(RE("definitionList")))
	        newMode = Modes.definitionList;
	      else if (stream.match(RE("html"), false))
	        newMode = Modes.html;
	    }
	    return (state.mode = (newMode || Modes.text))(stream, state);
	  },

	  blockType: function(stream, state) {
	    var match, type;
	    state.layoutType = null;

	    if (match = stream.match(RE("type")))
	      type = match[0];
	    else
	      return (state.mode = Modes.text)(stream, state);

	    if (match = type.match(RE("header"))) {
	      state.layoutType = "header";
	      state.header = parseInt(match[0][1]);
	    } else if (type.match(RE("bq"))) {
	      state.layoutType = "quote";
	    } else if (type.match(RE("bc"))) {
	      state.layoutType = "code";
	    } else if (type.match(RE("foot"))) {
	      state.layoutType = "footnote";
	    } else if (type.match(RE("notextile"))) {
	      state.layoutType = "notextile";
	    } else if (type.match(RE("pre"))) {
	      state.layoutType = "pre";
	    } else if (type.match(RE("div"))) {
	      state.layoutType = "div";
	    } else if (type.match(RE("table"))) {
	      state.layoutType = "table";
	    }

	    state.mode = Modes.attributes;
	    return tokenStyles(state);
	  },

	  text: function(stream, state) {
	    if (stream.match(RE("text"))) return tokenStyles(state);

	    var ch = stream.next();
	    if (ch === '"')
	      return (state.mode = Modes.link)(stream, state);
	    return handlePhraseModifier(stream, state, ch);
	  },

	  attributes: function(stream, state) {
	    state.mode = Modes.layoutLength;

	    if (stream.match(RE("attributes")))
	      return TOKEN_STYLES.attributes
	    else
	      return tokenStyles(state);
	  },

	  layoutLength: function(stream, state) {
	    if (stream.eat(".") && stream.eat("."))
	      state.spanningLayout = true;

	    state.mode = Modes.text;
	    return tokenStyles(state);
	  },

	  list: function(stream, state) {
	    var match = stream.match(RE("list"));
	    state.listDepth = match[0].length;
	    var listMod = (state.listDepth - 1) % 3;
	    if (!listMod)
	      state.layoutType = "list1";
	    else if (listMod === 1)
	      state.layoutType = "list2";
	    else
	      state.layoutType = "list3";

	    state.mode = Modes.attributes;
	    return tokenStyles(state);
	  },

	  link: function(stream, state) {
	    state.mode = Modes.text;
	    if (stream.match(RE("link"))) {
	      stream.match(/\S+/);
	      return TOKEN_STYLES.link
	    }
	    return tokenStyles(state);
	  },

	  linkDefinition: function(stream) {
	    stream.skipToEnd();
	    return TOKEN_STYLES.linkDefinition
	  },

	  definitionList: function(stream, state) {
	    stream.match(RE("definitionList"));

	    state.layoutType = "definitionList";

	    if (stream.match(/\s*$/))
	      state.spanningLayout = true;
	    else
	      state.mode = Modes.attributes;

	    return tokenStyles(state);
	  },

	  html: function(stream) {
	    stream.skipToEnd();
	    return TOKEN_STYLES.html
	  },

	  table: function(stream, state) {
	    state.layoutType = "table";
	    return (state.mode = Modes.tableCell)(stream, state);
	  },

	  tableCell: function(stream, state) {
	    if (stream.match(RE("tableHeading")))
	      state.tableHeading = true;
	    else
	      stream.eat("|");

	    state.mode = Modes.tableCellAttributes;
	    return tokenStyles(state);
	  },

	  tableCellAttributes: function(stream, state) {
	    state.mode = Modes.tableText;

	    if (stream.match(RE("tableCellAttributes")))
	      return TOKEN_STYLES.attributes
	    else
	      return tokenStyles(state);
	  },

	  tableText: function(stream, state) {
	    if (stream.match(RE("tableText")))
	      return tokenStyles(state);

	    if (stream.peek() === "|") { // end of cell
	      state.mode = Modes.tableCell;
	      return tokenStyles(state);
	    }
	    return handlePhraseModifier(stream, state, stream.next());
	  }
	};

	const textile = {
	  name: "textile",
	  startState: function() {
	    return { mode: Modes.newLayout };
	  },
	  token: function(stream, state) {
	    if (stream.sol()) startNewLine(stream, state);
	    return state.mode(stream, state);
	  },
	  blankLine: blankLine
	};

	var textile$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		textile: textile
	});

	// Tokenizer
	var textwords = {};

	var keywords$8 = {
	  "allTags": true, "closeAll": true, "list": true,
	  "newJournal": true, "newTiddler": true,
	  "permaview": true, "saveChanges": true,
	  "search": true, "slider": true, "tabs": true,
	  "tag": true, "tagging": true, "tags": true,
	  "tiddler": true, "timeline": true,
	  "today": true, "version": true, "option": true,
	  "with": true, "filter": true
	};

	var isSpaceName = /[\w_\-]/i,
	    reHR = /^\-\-\-\-+$/,                                 // <hr>
	    reWikiCommentStart = /^\/\*\*\*$/,            // /***
	    reWikiCommentStop = /^\*\*\*\/$/,             // ***/
	    reBlockQuote = /^<<<$/,

	    reJsCodeStart = /^\/\/\{\{\{$/,                       // //{{{ js block start
	    reJsCodeStop = /^\/\/\}\}\}$/,                        // //}}} js stop
	    reXmlCodeStart = /^<!--\{\{\{-->$/,           // xml block start
	    reXmlCodeStop = /^<!--\}\}\}-->$/,            // xml stop

	    reCodeBlockStart = /^\{\{\{$/,                        // {{{ TW text div block start
	    reCodeBlockStop = /^\}\}\}$/,                 // }}} TW text stop

	    reUntilCodeStop = /.*?\}\}\}/;

	function chain$2(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}

	function tokenBase$9(stream, state) {
	  var sol = stream.sol(), ch = stream.peek();

	  state.block = false;        // indicates the start of a code block.

	  // check start of  blocks
	  if (sol && /[<\/\*{}\-]/.test(ch)) {
	    if (stream.match(reCodeBlockStart)) {
	      state.block = true;
	      return chain$2(stream, state, twTokenCode);
	    }
	    if (stream.match(reBlockQuote))
	      return 'quote';
	    if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop))
	      return 'comment';
	    if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop))
	      return 'comment';
	    if (stream.match(reHR))
	      return 'contentSeparator';
	  }

	  stream.next();
	  if (sol && /[\/\*!#;:>|]/.test(ch)) {
	    if (ch == "!") { // tw header
	      stream.skipToEnd();
	      return "header";
	    }
	    if (ch == "*") { // tw list
	      stream.eatWhile('*');
	      return "comment";
	    }
	    if (ch == "#") { // tw numbered list
	      stream.eatWhile('#');
	      return "comment";
	    }
	    if (ch == ";") { // definition list, term
	      stream.eatWhile(';');
	      return "comment";
	    }
	    if (ch == ":") { // definition list, description
	      stream.eatWhile(':');
	      return "comment";
	    }
	    if (ch == ">") { // single line quote
	      stream.eatWhile(">");
	      return "quote";
	    }
	    if (ch == '|')
	      return 'header';
	  }

	  if (ch == '{' && stream.match('{{'))
	    return chain$2(stream, state, twTokenCode);

	  // rudimentary html:// file:// link matching. TW knows much more ...
	  if (/[hf]/i.test(ch) &&
	      /[ti]/i.test(stream.peek()) &&
	      stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))
	    return "link";

	  // just a little string indicator, don't want to have the whole string covered
	  if (ch == '"')
	    return 'string';

	  if (ch == '~')    // _no_ CamelCase indicator should be bold
	    return 'brace';

	  if (/[\[\]]/.test(ch) && stream.match(ch)) // check for [[..]]
	    return 'brace';

	  if (ch == "@") {    // check for space link. TODO fix @@...@@ highlighting
	    stream.eatWhile(isSpaceName);
	    return "link";
	  }

	  if (/\d/.test(ch)) {        // numbers
	    stream.eatWhile(/\d/);
	    return "number";
	  }

	  if (ch == "/") { // tw invisible comment
	    if (stream.eat("%")) {
	      return chain$2(stream, state, twTokenComment);
	    } else if (stream.eat("/")) { //
	      return chain$2(stream, state, twTokenEm);
	    }
	  }

	  if (ch == "_" && stream.eat("_")) // tw underline
	    return chain$2(stream, state, twTokenUnderline);

	  // strikethrough and mdash handling
	  if (ch == "-" && stream.eat("-")) {
	    // if strikethrough looks ugly, change CSS.
	    if (stream.peek() != ' ')
	      return chain$2(stream, state, twTokenStrike);
	    // mdash
	    if (stream.peek() == ' ')
	      return 'brace';
	  }

	  if (ch == "'" && stream.eat("'")) // tw bold
	    return chain$2(stream, state, twTokenStrong);

	  if (ch == "<" && stream.eat("<")) // tw macro
	    return chain$2(stream, state, twTokenMacro);

	  // core macro handling
	  stream.eatWhile(/[\w\$_]/);
	  return textwords.propertyIsEnumerable(stream.current()) ? "keyword" : null
	}

	// tw invisible comment
	function twTokenComment(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$9;
	      break;
	    }
	    maybeEnd = (ch == "%");
	  }
	  return "comment";
	}

	// tw strong / bold
	function twTokenStrong(stream, state) {
	  var maybeEnd = false,
	      ch;
	  while (ch = stream.next()) {
	    if (ch == "'" && maybeEnd) {
	      state.tokenize = tokenBase$9;
	      break;
	    }
	    maybeEnd = (ch == "'");
	  }
	  return "strong";
	}

	// tw code
	function twTokenCode(stream, state) {
	  var sb = state.block;

	  if (sb && stream.current()) {
	    return "comment";
	  }

	  if (!sb && stream.match(reUntilCodeStop)) {
	    state.tokenize = tokenBase$9;
	    return "comment";
	  }

	  if (sb && stream.sol() && stream.match(reCodeBlockStop)) {
	    state.tokenize = tokenBase$9;
	    return "comment";
	  }

	  stream.next();
	  return "comment";
	}

	// tw em / italic
	function twTokenEm(stream, state) {
	  var maybeEnd = false,
	      ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = tokenBase$9;
	      break;
	    }
	    maybeEnd = (ch == "/");
	  }
	  return "emphasis";
	}

	// tw underlined text
	function twTokenUnderline(stream, state) {
	  var maybeEnd = false,
	      ch;
	  while (ch = stream.next()) {
	    if (ch == "_" && maybeEnd) {
	      state.tokenize = tokenBase$9;
	      break;
	    }
	    maybeEnd = (ch == "_");
	  }
	  return "link";
	}

	// tw strike through text looks ugly
	// change CSS if needed
	function twTokenStrike(stream, state) {
	  var maybeEnd = false, ch;

	  while (ch = stream.next()) {
	    if (ch == "-" && maybeEnd) {
	      state.tokenize = tokenBase$9;
	      break;
	    }
	    maybeEnd = (ch == "-");
	  }
	  return "deleted";
	}

	// macro
	function twTokenMacro(stream, state) {
	  if (stream.current() == '<<') {
	    return 'meta';
	  }

	  var ch = stream.next();
	  if (!ch) {
	    state.tokenize = tokenBase$9;
	    return null;
	  }
	  if (ch == ">") {
	    if (stream.peek() == '>') {
	      stream.next();
	      state.tokenize = tokenBase$9;
	      return "meta";
	    }
	  }

	  stream.eatWhile(/[\w\$_]/);
	  return keywords$8.propertyIsEnumerable(stream.current()) ? "keyword" : null
	}

	// Interface
	const tiddlyWiki = {
	  name: "tiddlywiki",

	  startState: function () {
	    return {tokenize: tokenBase$9};
	  },

	  token: function (stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);
	    return style;
	  }
	};

	var tiddlywiki = /*#__PURE__*/Object.freeze({
		__proto__: null,
		tiddlyWiki: tiddlyWiki
	});

	function inBlock(style, terminator, returnTokenizer) {
	  return function(stream, state) {
	    while (!stream.eol()) {
	      if (stream.match(terminator)) {
	        state.tokenize = inText;
	        break;
	      }
	      stream.next();
	    }

	    if (returnTokenizer) state.tokenize = returnTokenizer;

	    return style;
	  };
	}

	function inLine(style) {
	  return function(stream, state) {
	    while(!stream.eol()) {
	      stream.next();
	    }
	    state.tokenize = inText;
	    return style;
	  };
	}

	function inText(stream, state) {
	  function chain(parser) {
	    state.tokenize = parser;
	    return parser(stream, state);
	  }

	  var sol = stream.sol();
	  var ch = stream.next();

	  //non start of line
	  switch (ch) { //switch is generally much faster than if, so it is used here
	  case "{": //plugin
	    stream.eat("/");
	    stream.eatSpace();
	    stream.eatWhile(/[^\s\u00a0=\"\'\/?(}]/);
	    state.tokenize = inPlugin;
	    return "tag";
	  case "_": //bold
	    if (stream.eat("_"))
	      return chain(inBlock("strong", "__", inText));
	    break;
	  case "'": //italics
	    if (stream.eat("'"))
	      return chain(inBlock("em", "''", inText));
	    break;
	  case "(":// Wiki Link
	    if (stream.eat("("))
	      return chain(inBlock("link", "))", inText));
	    break;
	  case "[":// Weblink
	    return chain(inBlock("url", "]", inText));
	  case "|": //table
	    if (stream.eat("|"))
	      return chain(inBlock("comment", "||"));
	    break;
	  case "-":
	    if (stream.eat("=")) {//titleBar
	      return chain(inBlock("header string", "=-", inText));
	    } else if (stream.eat("-")) {//deleted
	      return chain(inBlock("error tw-deleted", "--", inText));
	    }
	    break;
	  case "=": //underline
	    if (stream.match("=="))
	      return chain(inBlock("tw-underline", "===", inText));
	    break;
	  case ":":
	    if (stream.eat(":"))
	      return chain(inBlock("comment", "::"));
	    break;
	  case "^": //box
	    return chain(inBlock("tw-box", "^"));
	  case "~": //np
	    if (stream.match("np~"))
	      return chain(inBlock("meta", "~/np~"));
	    break;
	  }

	  //start of line types
	  if (sol) {
	    switch (ch) {
	    case "!": //header at start of line
	      if (stream.match('!!!!!')) {
	        return chain(inLine("header string"));
	      } else if (stream.match('!!!!')) {
	        return chain(inLine("header string"));
	      } else if (stream.match('!!!')) {
	        return chain(inLine("header string"));
	      } else if (stream.match('!!')) {
	        return chain(inLine("header string"));
	      } else {
	        return chain(inLine("header string"));
	      }
	    case "*": //unordered list line item, or <li /> at start of line
	    case "#": //ordered list line item, or <li /> at start of line
	    case "+": //ordered list line item, or <li /> at start of line
	      return chain(inLine("tw-listitem bracket"));
	    }
	  }

	  //stream.eatWhile(/[&{]/); was eating up plugins, turned off to act less like html and more like tiki
	  return null;
	}

	// Return variables for tokenizers
	var pluginName, type;
	function inPlugin(stream, state) {
	  var ch = stream.next();
	  var peek = stream.peek();

	  if (ch == "}") {
	    state.tokenize = inText;
	    //type = ch == ")" ? "endPlugin" : "selfclosePlugin"; inPlugin
	    return "tag";
	  } else if (ch == "(" || ch == ")") {
	    return "bracket";
	  } else if (ch == "=") {
	    type = "equals";

	    if (peek == ">") {
	      stream.next();
	      peek = stream.peek();
	    }

	    //here we detect values directly after equal character with no quotes
	    if (!/[\'\"]/.test(peek)) {
	      state.tokenize = inAttributeNoQuote();
	    }
	    //end detect values

	    return "operator";
	  } else if (/[\'\"]/.test(ch)) {
	    state.tokenize = inAttribute(ch);
	    return state.tokenize(stream, state);
	  } else {
	    stream.eatWhile(/[^\s\u00a0=\"\'\/?]/);
	    return "keyword";
	  }
	}

	function inAttribute(quote) {
	  return function(stream, state) {
	    while (!stream.eol()) {
	      if (stream.next() == quote) {
	        state.tokenize = inPlugin;
	        break;
	      }
	    }
	    return "string";
	  };
	}

	function inAttributeNoQuote() {
	  return function(stream, state) {
	    while (!stream.eol()) {
	      var ch = stream.next();
	      var peek = stream.peek();
	      if (ch == " " || ch == "," || /[ )}]/.test(peek)) {
	        state.tokenize = inPlugin;
	        break;
	      }
	    }
	    return "string";
	  };
	}

	var curState, setStyle;
	function pass() {
	  for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]);
	}

	function cont() {
	  pass.apply(null, arguments);
	  return true;
	}

	function pushContext$4(pluginName, startOfLine) {
	  var noIndent = curState.context && curState.context.noIndent;
	  curState.context = {
	    prev: curState.context,
	    pluginName: pluginName,
	    indent: curState.indented,
	    startOfLine: startOfLine,
	    noIndent: noIndent
	  };
	}

	function popContext$4() {
	  if (curState.context) curState.context = curState.context.prev;
	}

	function element(type) {
	  if (type == "openPlugin") {curState.pluginName = pluginName; return cont(attributes, endplugin(curState.startOfLine));}
	  else if (type == "closePlugin") {
	    var err = false;
	    if (curState.context) {
	      err = curState.context.pluginName != pluginName;
	      popContext$4();
	    } else {
	      err = true;
	    }
	    if (err) setStyle = "error";
	    return cont(endcloseplugin(err));
	  }
	  else if (type == "string") {
	    if (!curState.context || curState.context.name != "!cdata") pushContext$4("!cdata");
	    if (curState.tokenize == inText) popContext$4();
	    return cont();
	  }
	  else return cont();
	}

	function endplugin(startOfLine) {
	  return function(type) {
	    if (
	      type == "selfclosePlugin" ||
	        type == "endPlugin"
	    )
	      return cont();
	    if (type == "endPlugin") {pushContext$4(curState.pluginName, startOfLine); return cont();}
	    return cont();
	  };
	}

	function endcloseplugin(err) {
	  return function(type) {
	    if (err) setStyle = "error";
	    if (type == "endPlugin") return cont();
	    return pass();
	  };
	}

	function attributes(type) {
	  if (type == "keyword") {setStyle = "attribute"; return cont(attributes);}
	  if (type == "equals") return cont(attvalue, attributes);
	  return pass();
	}
	function attvalue(type) {
	  if (type == "keyword") {setStyle = "string"; return cont();}
	  if (type == "string") return cont(attvaluemaybe);
	  return pass();
	}
	function attvaluemaybe(type) {
	  if (type == "string") return cont(attvaluemaybe);
	  else return pass();
	}
	const tiki = {
	  name: "tiki",
	  startState: function() {
	    return {tokenize: inText, cc: [], indented: 0, startOfLine: true, pluginName: null, context: null};
	  },
	  token: function(stream, state) {
	    if (stream.sol()) {
	      state.startOfLine = true;
	      state.indented = stream.indentation();
	    }
	    if (stream.eatSpace()) return null;

	    setStyle = type = pluginName = null;
	    var style = state.tokenize(stream, state);
	    if ((style || type) && style != "comment") {
	      curState = state;
	      while (true) {
	        var comb = state.cc.pop() || element;
	        if (comb(type || style)) break;
	      }
	    }
	    state.startOfLine = false;
	    return setStyle || style;
	  },
	  indent: function(state, textAfter, cx) {
	    var context = state.context;
	    if (context && context.noIndent) return 0;
	    if (context && /^{\//.test(textAfter))
	      context = context.prev;
	    while (context && !context.startOfLine)
	      context = context.prev;
	    if (context) return context.indent + cx.unit;
	    else return 0;
	  }
	};

	var tiki$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		tiki: tiki
	});

	const toml = {
	  name: "toml",
	  startState: function () {
	    return {
	      inString: false,
	      stringType: "",
	      lhs: true,
	      inArray: 0
	    };
	  },
	  token: function (stream, state) {
	    //check for state changes
	    if (!state.inString && ((stream.peek() == '"') || (stream.peek() == "'"))) {
	      state.stringType = stream.peek();
	      stream.next(); // Skip quote
	      state.inString = true; // Update state
	    }
	    if (stream.sol() && state.inArray === 0) {
	      state.lhs = true;
	    }
	    //return state
	    if (state.inString) {
	      while (state.inString && !stream.eol()) {
	        if (stream.peek() === state.stringType) {
	          stream.next(); // Skip quote
	          state.inString = false; // Clear flag
	        } else if (stream.peek() === '\\') {
	          stream.next();
	          stream.next();
	        } else {
	          stream.match(/^.[^\\\"\']*/);
	        }
	      }
	      return state.lhs ? "property" : "string"; // Token style
	    } else if (state.inArray && stream.peek() === ']') {
	      stream.next();
	      state.inArray--;
	      return 'bracket';
	    } else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) {
	      stream.next();//skip closing ]
	      // array of objects has an extra open & close []
	      if (stream.peek() === ']') stream.next();
	      return "atom";
	    } else if (stream.peek() === "#") {
	      stream.skipToEnd();
	      return "comment";
	    } else if (stream.eatSpace()) {
	      return null;
	    } else if (state.lhs && stream.eatWhile(function (c) { return c != '=' && c != ' '; })) {
	      return "property";
	    } else if (state.lhs && stream.peek() === "=") {
	      stream.next();
	      state.lhs = false;
	      return null;
	    } else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) {
	      return 'atom'; //date
	    } else if (!state.lhs && (stream.match('true') || stream.match('false'))) {
	      return 'atom';
	    } else if (!state.lhs && stream.peek() === '[') {
	      state.inArray++;
	      stream.next();
	      return 'bracket';
	    } else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) {
	      return 'number';
	    } else if (!stream.eatSpace()) {
	      stream.next();
	    }
	    return null;
	  },
	  languageData: {
	    commentTokens: { line: '#' },
	  },
	};

	var toml$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		toml: toml
	});

	var words$4 = {};

	function tokenBase$8(stream) {
	  if (stream.eatSpace()) return null;

	  var sol = stream.sol();
	  var ch = stream.next();

	  if (ch === '\\') {
	    if (stream.match('fB') || stream.match('fR') || stream.match('fI') ||
	        stream.match('u')  || stream.match('d')  ||
	        stream.match('%')  || stream.match('&')) {
	      return 'string';
	    }
	    if (stream.match('m[')) {
	      stream.skipTo(']');
	      stream.next();
	      return 'string';
	    }
	    if (stream.match('s+') || stream.match('s-')) {
	      stream.eatWhile(/[\d-]/);
	      return 'string';
	    }
	    if (stream.match('\(') || stream.match('*\(')) {
	      stream.eatWhile(/[\w-]/);
	      return 'string';
	    }
	    return 'string';
	  }
	  if (sol && (ch === '.' || ch === '\'')) {
	    if (stream.eat('\\') && stream.eat('\"')) {
	      stream.skipToEnd();
	      return 'comment';
	    }
	  }
	  if (sol && ch === '.') {
	    if (stream.match('B ') || stream.match('I ') || stream.match('R ')) {
	      return 'attribute';
	    }
	    if (stream.match('TH ') || stream.match('SH ') || stream.match('SS ') || stream.match('HP ')) {
	      stream.skipToEnd();
	      return 'quote';
	    }
	    if ((stream.match(/[A-Z]/) && stream.match(/[A-Z]/)) || (stream.match(/[a-z]/) && stream.match(/[a-z]/))) {
	      return 'attribute';
	    }
	  }
	  stream.eatWhile(/[\w-]/);
	  var cur = stream.current();
	  return words$4.hasOwnProperty(cur) ? words$4[cur] : null;
	}

	function tokenize(stream, state) {
	  return (state.tokens[0] || tokenBase$8) (stream, state);
	}
	const troff = {
	  name: "troff",
	  startState: function() {return {tokens:[]};},
	  token: function(stream, state) {
	    return tokenize(stream, state);
	  }
	};

	var troff$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		troff: troff
	});

	function words$3(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	const parserConfig$1 = {
	  name: "ttcn",
	  keywords: words$3("activate address alive all alt altstep and and4b any" +
	                  " break case component const continue control deactivate" +
	                  " display do else encode enumerated except exception" +
	                  " execute extends extension external for from function" +
	                  " goto group if import in infinity inout interleave" +
	                  " label language length log match message mixed mod" +
	                  " modifies module modulepar mtc noblock not not4b nowait" +
	                  " of on optional or or4b out override param pattern port" +
	                  " procedure record recursive rem repeat return runs select" +
	                  " self sender set signature system template testcase to" +
	                  " type union value valueof var variant while with xor xor4b"),
	  builtin: words$3("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue" +
	                 " decomp decvalue float2int float2str hex2bit hex2int" +
	                 " hex2oct hex2str int2bit int2char int2float int2hex" +
	                 " int2oct int2str int2unichar isbound ischosen ispresent" +
	                 " isvalue lengthof log2str oct2bit oct2char oct2hex oct2int" +
	                 " oct2str regexp replace rnd sizeof str2bit str2float" +
	                 " str2hex str2int str2oct substr unichar2int unichar2char" +
	                 " enum2int"),
	  types: words$3("anytype bitstring boolean char charstring default float" +
	               " hexstring integer objid octetstring universal verdicttype timer"),
	  timerOps: words$3("read running start stop timeout"),
	  portOps: words$3("call catch check clear getcall getreply halt raise receive" +
	                 " reply send trigger"),
	  configOps: words$3("create connect disconnect done kill killed map unmap"),
	  verdictOps: words$3("getverdict setverdict"),
	  sutOps: words$3("action"),
	  functionOps: words$3("apply derefers refers"),

	  verdictConsts: words$3("error fail inconc none pass"),
	  booleanConsts: words$3("true false"),
	  otherConsts: words$3("null NULL omit"),

	  visibilityModifiers: words$3("private public friend"),
	  templateMatch: words$3("complement ifpresent subset superset permutation"),
	  multiLineStrings: true
	};

	var wordList = [];
	function add(obj) {
	  if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
	    wordList.push(prop);
	}
	add(parserConfig$1.keywords);
	add(parserConfig$1.builtin);
	add(parserConfig$1.timerOps);
	add(parserConfig$1.portOps);

	var keywords$7 = parserConfig$1.keywords || {},
	    builtin = parserConfig$1.builtin || {},
	    timerOps = parserConfig$1.timerOps || {},
	    portOps  = parserConfig$1.portOps || {},
	    configOps = parserConfig$1.configOps || {},
	    verdictOps = parserConfig$1.verdictOps || {},
	    sutOps = parserConfig$1.sutOps || {},
	    functionOps = parserConfig$1.functionOps || {},

	    verdictConsts = parserConfig$1.verdictConsts || {},
	    booleanConsts = parserConfig$1.booleanConsts || {},
	    otherConsts   = parserConfig$1.otherConsts || {},

	    types$2 = parserConfig$1.types || {},
	    visibilityModifiers = parserConfig$1.visibilityModifiers || {},
	    templateMatch = parserConfig$1.templateMatch || {},
	    multiLineStrings$2 = parserConfig$1.multiLineStrings,
	    indentStatements$1 = parserConfig$1.indentStatements !== false;
	var isOperatorChar$3 = /[+\-*&@=<>!\/]/;
	var curPunc$3;

	function tokenBase$7(stream, state) {
	  var ch = stream.next();

	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$5(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\[\]{}\(\),;\\:\?\.]/.test(ch)) {
	    curPunc$3 = ch;
	    return "punctuation";
	  }
	  if (ch == "#"){
	    stream.skipToEnd();
	    return "atom";
	  }
	  if (ch == "%"){
	    stream.eatWhile(/\b/);
	    return "atom";
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (ch == "/") {
	    if (stream.eat("*")) {
	      state.tokenize = tokenComment$3;
	      return tokenComment$3(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar$3.test(ch)) {
	    if(ch == "@"){
	      if(stream.match("try") || stream.match("catch")
	         || stream.match("lazy")){
	        return "keyword";
	      }
	    }
	    stream.eatWhile(isOperatorChar$3);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_\xa1-\uffff]/);
	  var cur = stream.current();

	  if (keywords$7.propertyIsEnumerable(cur)) return "keyword";
	  if (builtin.propertyIsEnumerable(cur)) return "builtin";

	  if (timerOps.propertyIsEnumerable(cur)) return "def";
	  if (configOps.propertyIsEnumerable(cur)) return "def";
	  if (verdictOps.propertyIsEnumerable(cur)) return "def";
	  if (portOps.propertyIsEnumerable(cur)) return "def";
	  if (sutOps.propertyIsEnumerable(cur)) return "def";
	  if (functionOps.propertyIsEnumerable(cur)) return "def";

	  if (verdictConsts.propertyIsEnumerable(cur)) return "string";
	  if (booleanConsts.propertyIsEnumerable(cur)) return "string";
	  if (otherConsts.propertyIsEnumerable(cur)) return "string";

	  if (types$2.propertyIsEnumerable(cur)) return "typeName.standard";
	  if (visibilityModifiers.propertyIsEnumerable(cur))
	    return "modifier";
	  if (templateMatch.propertyIsEnumerable(cur)) return "atom";

	  return "variable";
	}

	function tokenString$5(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped){
	        var afterQuote = stream.peek();
	        //look if the character after the quote is like the B in '10100010'B
	        if (afterQuote){
	          afterQuote = afterQuote.toLowerCase();
	          if(afterQuote == "b" || afterQuote == "h" || afterQuote == "o")
	            stream.next();
	        }
	        end = true; break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !(escaped || multiLineStrings$2))
	      state.tokenize = null;
	    return "string";
	  };
	}

	function tokenComment$3(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "/" && maybeEnd) {
	      state.tokenize = null;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function Context$2(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}

	function pushContext$3(state, col, type) {
	  var indent = state.indented;
	  if (state.context && state.context.type == "statement")
	    indent = state.context.indented;
	  return state.context = new Context$2(indent, col, type, null, state.context);
	}

	function popContext$3(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	//Interface
	const ttcn = {
	  name: "ttcn",
	  startState: function() {
	    return {
	      tokenize: null,
	      context: new Context$2(0, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$3 = null;
	    var style = (state.tokenize || tokenBase$7)(stream, state);
	    if (style == "comment") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc$3 == ";" || curPunc$3 == ":" || curPunc$3 == ",")
	        && ctx.type == "statement"){
	      popContext$3(state);
	    }
	    else if (curPunc$3 == "{") pushContext$3(state, stream.column(), "}");
	    else if (curPunc$3 == "[") pushContext$3(state, stream.column(), "]");
	    else if (curPunc$3 == "(") pushContext$3(state, stream.column(), ")");
	    else if (curPunc$3 == "}") {
	      while (ctx.type == "statement") ctx = popContext$3(state);
	      if (ctx.type == "}") ctx = popContext$3(state);
	      while (ctx.type == "statement") ctx = popContext$3(state);
	    }
	    else if (curPunc$3 == ctx.type) popContext$3(state);
	    else if (indentStatements$1 &&
	             (((ctx.type == "}" || ctx.type == "top") && curPunc$3 != ';') ||
	              (ctx.type == "statement" && curPunc$3 == "newstatement")))
	      pushContext$3(state, stream.column(), "statement");

	    state.startOfLine = false;

	    return style;
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
	    autocomplete: wordList
	  }
	};

	var ttcn$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ttcn: ttcn
	});

	function words$2(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i)
	    obj[words[i]] = true;
	  return obj;
	}

	const parserConfig = {
	  name: "ttcn-cfg",
	  keywords: words$2("Yes No LogFile FileMask ConsoleMask AppendFile" +
	                  " TimeStampFormat LogEventTypes SourceInfoFormat" +
	                  " LogEntityName LogSourceInfo DiskFullAction" +
	                  " LogFileNumber LogFileSize MatchingHints Detailed" +
	                  " Compact SubCategories Stack Single None Seconds" +
	                  " DateTime Time Stop Error Retry Delete TCPPort KillTimer" +
	                  " NumHCs UnixSocketsEnabled LocalAddress"),
	  fileNCtrlMaskOptions: words$2("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING" +
	                              " TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP" +
	                              " TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION" +
	                              " TTCN_USER TTCN_FUNCTION TTCN_STATISTICS" +
	                              " TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG" +
	                              " EXECUTOR ERROR WARNING PORTEVENT TIMEROP" +
	                              " VERDICTOP DEFAULTOP TESTCASE ACTION USER" +
	                              " FUNCTION STATISTICS PARALLEL MATCHING DEBUG" +
	                              " LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED" +
	                              " DEBUG_ENCDEC DEBUG_TESTPORT" +
	                              " DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE" +
	                              " DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT" +
	                              " DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED" +
	                              " EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA" +
	                              " EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS" +
	                              " EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED" +
	                              " FUNCTION_RND FUNCTION_UNQUALIFIED" +
	                              " MATCHING_DONE MATCHING_MCSUCCESS" +
	                              " MATCHING_MCUNSUCC MATCHING_MMSUCCESS" +
	                              " MATCHING_MMUNSUCC MATCHING_PCSUCCESS" +
	                              " MATCHING_PCUNSUCC MATCHING_PMSUCCESS" +
	                              " MATCHING_PMUNSUCC MATCHING_PROBLEM" +
	                              " MATCHING_TIMEOUT MATCHING_UNQUALIFIED" +
	                              " PARALLEL_PORTCONN PARALLEL_PORTMAP" +
	                              " PARALLEL_PTC PARALLEL_UNQUALIFIED" +
	                              " PORTEVENT_DUALRECV PORTEVENT_DUALSEND" +
	                              " PORTEVENT_MCRECV PORTEVENT_MCSEND" +
	                              " PORTEVENT_MMRECV PORTEVENT_MMSEND" +
	                              " PORTEVENT_MQUEUE PORTEVENT_PCIN" +
	                              " PORTEVENT_PCOUT PORTEVENT_PMIN" +
	                              " PORTEVENT_PMOUT PORTEVENT_PQUEUE" +
	                              " PORTEVENT_STATE PORTEVENT_UNQUALIFIED" +
	                              " STATISTICS_UNQUALIFIED STATISTICS_VERDICT" +
	                              " TESTCASE_FINISH TESTCASE_START" +
	                              " TESTCASE_UNQUALIFIED TIMEROP_GUARD" +
	                              " TIMEROP_READ TIMEROP_START TIMEROP_STOP" +
	                              " TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED" +
	                              " USER_UNQUALIFIED VERDICTOP_FINAL" +
	                              " VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT" +
	                              " VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
	  externalCommands: words$2("BeginControlPart EndControlPart BeginTestCase" +
	                          " EndTestCase"),
	  multiLineStrings: true
	};

	var keywords$6 = parserConfig.keywords,
	    fileNCtrlMaskOptions = parserConfig.fileNCtrlMaskOptions,
	    externalCommands = parserConfig.externalCommands,
	    multiLineStrings$1 = parserConfig.multiLineStrings,
	    indentStatements = parserConfig.indentStatements !== false;
	var isOperatorChar$2 = /[\|]/;
	var curPunc$2;

	function tokenBase$6(stream, state) {
	  var ch = stream.next();
	  if (ch == '"' || ch == "'") {
	    state.tokenize = tokenString$4(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[:=]/.test(ch)) {
	    curPunc$2 = ch;
	    return "punctuation";
	  }
	  if (ch == "#"){
	    stream.skipToEnd();
	    return "comment";
	  }
	  if (/\d/.test(ch)) {
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  if (isOperatorChar$2.test(ch)) {
	    stream.eatWhile(isOperatorChar$2);
	    return "operator";
	  }
	  if (ch == "["){
	    stream.eatWhile(/[\w_\]]/);
	    return "number";
	  }

	  stream.eatWhile(/[\w\$_]/);
	  var cur = stream.current();
	  if (keywords$6.propertyIsEnumerable(cur)) return "keyword";
	  if (fileNCtrlMaskOptions.propertyIsEnumerable(cur))
	    return "atom";
	  if (externalCommands.propertyIsEnumerable(cur)) return "deleted";

	  return "variable";
	}

	function tokenString$4(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped){
	        var afterNext = stream.peek();
	        //look if the character if the quote is like the B in '10100010'B
	        if (afterNext){
	          afterNext = afterNext.toLowerCase();
	          if(afterNext == "b" || afterNext == "h" || afterNext == "o")
	            stream.next();
	        }
	        end = true; break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end || !(escaped || multiLineStrings$1))
	      state.tokenize = null;
	    return "string";
	  };
	}

	function Context$1(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext$2(state, col, type) {
	  var indent = state.indented;
	  if (state.context && state.context.type == "statement")
	    indent = state.context.indented;
	  return state.context = new Context$1(indent, col, type, null, state.context);
	}
	function popContext$2(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	//Interface
	const ttcnCfg = {
	  name: "ttcn",
	  startState: function() {
	    return {
	      tokenize: null,
	      context: new Context$1(0, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;
	    curPunc$2 = null;
	    var style = (state.tokenize || tokenBase$6)(stream, state);
	    if (style == "comment") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc$2 == ";" || curPunc$2 == ":" || curPunc$2 == ",")
	        && ctx.type == "statement"){
	      popContext$2(state);
	    }
	    else if (curPunc$2 == "{") pushContext$2(state, stream.column(), "}");
	    else if (curPunc$2 == "[") pushContext$2(state, stream.column(), "]");
	    else if (curPunc$2 == "(") pushContext$2(state, stream.column(), ")");
	    else if (curPunc$2 == "}") {
	      while (ctx.type == "statement") ctx = popContext$2(state);
	      if (ctx.type == "}") ctx = popContext$2(state);
	      while (ctx.type == "statement") ctx = popContext$2(state);
	    }
	    else if (curPunc$2 == ctx.type) popContext$2(state);
	    else if (indentStatements && (((ctx.type == "}" || ctx.type == "top")
	                                   && curPunc$2 != ';') || (ctx.type == "statement"
	                                                          && curPunc$2 == "newstatement")))
	      pushContext$2(state, stream.column(), "statement");
	    state.startOfLine = false;
	    return style;
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "#"}
	  }
	};

	var ttcnCfg$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ttcnCfg: ttcnCfg
	});

	var curPunc$1;

	function wordRegexp$3(words) {
	  return new RegExp("^(?:" + words.join("|") + ")$", "i");
	}
	wordRegexp$3([]);
	var keywords$5 = wordRegexp$3(["@prefix", "@base", "a"]);
	var operatorChars = /[*+\-<>=&|]/;

	function tokenBase$5(stream, state) {
	  var ch = stream.next();
	  curPunc$1 = null;
	  if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) {
	    stream.match(/^[^\s\u00a0>]*>?/);
	    return "atom";
	  }
	  else if (ch == "\"" || ch == "'") {
	    state.tokenize = tokenLiteral(ch);
	    return state.tokenize(stream, state);
	  }
	  else if (/[{}\(\),\.;\[\]]/.test(ch)) {
	    curPunc$1 = ch;
	    return null;
	  }
	  else if (ch == "#") {
	    stream.skipToEnd();
	    return "comment";
	  }
	  else if (operatorChars.test(ch)) {
	    stream.eatWhile(operatorChars);
	    return null;
	  }
	  else if (ch == ":") {
	    return "operator";
	  } else {
	    stream.eatWhile(/[_\w\d]/);
	    if(stream.peek() == ":") {
	      return "variableName.special";
	    } else {
	      var word = stream.current();

	      if(keywords$5.test(word)) {
	        return "meta";
	      }

	      if(ch >= "A" && ch <= "Z") {
	        return "comment";
	      } else {
	        return "keyword";
	      }
	    }
	    var word = stream.current();
	  }
	}

	function tokenLiteral(quote) {
	  return function(stream, state) {
	    var escaped = false, ch;
	    while ((ch = stream.next()) != null) {
	      if (ch == quote && !escaped) {
	        state.tokenize = tokenBase$5;
	        break;
	      }
	      escaped = !escaped && ch == "\\";
	    }
	    return "string";
	  };
	}

	function pushContext$1(state, type, col) {
	  state.context = {prev: state.context, indent: state.indent, col: col, type: type};
	}
	function popContext$1(state) {
	  state.indent = state.context.indent;
	  state.context = state.context.prev;
	}

	const turtle = {
	  name: "turtle",
	  startState: function() {
	    return {tokenize: tokenBase$5,
	            context: null,
	            indent: 0,
	            col: 0};
	  },

	  token: function(stream, state) {
	    if (stream.sol()) {
	      if (state.context && state.context.align == null) state.context.align = false;
	      state.indent = stream.indentation();
	    }
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);

	    if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") {
	      state.context.align = true;
	    }

	    if (curPunc$1 == "(") pushContext$1(state, ")", stream.column());
	    else if (curPunc$1 == "[") pushContext$1(state, "]", stream.column());
	    else if (curPunc$1 == "{") pushContext$1(state, "}", stream.column());
	    else if (/[\]\}\)]/.test(curPunc$1)) {
	      while (state.context && state.context.type == "pattern") popContext$1(state);
	      if (state.context && curPunc$1 == state.context.type) popContext$1(state);
	    }
	    else if (curPunc$1 == "." && state.context && state.context.type == "pattern") popContext$1(state);
	    else if (/atom|string|variable/.test(style) && state.context) {
	      if (/[\}\]]/.test(state.context.type))
	        pushContext$1(state, "pattern", stream.column());
	      else if (state.context.type == "pattern" && !state.context.align) {
	        state.context.align = true;
	        state.context.col = stream.column();
	      }
	    }

	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var firstChar = textAfter && textAfter.charAt(0);
	    var context = state.context;
	    if (/[\]\}]/.test(firstChar))
	      while (context && context.type == "pattern") context = context.prev;

	    var closing = context && firstChar == context.type;
	    if (!context)
	      return 0;
	    else if (context.type == "pattern")
	      return context.col;
	    else if (context.align)
	      return context.col + (closing ? 0 : 1);
	    else
	      return context.indent + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    commentTokens: {line: "#"}
	  }
	};

	var turtle$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		turtle: turtle
	});

	function wordRegexp$2(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b");
	}
	var builtinArray = [
	  "Clamp",
	  "Constructor",
	  "EnforceRange",
	  "Exposed",
	  "ImplicitThis",
	  "Global", "PrimaryGlobal",
	  "LegacyArrayClass",
	  "LegacyUnenumerableNamedProperties",
	  "LenientThis",
	  "NamedConstructor",
	  "NewObject",
	  "NoInterfaceObject",
	  "OverrideBuiltins",
	  "PutForwards",
	  "Replaceable",
	  "SameObject",
	  "TreatNonObjectAsNull",
	  "TreatNullAs",
	    "EmptyString",
	  "Unforgeable",
	  "Unscopeable"
	];
	var builtins = wordRegexp$2(builtinArray);

	var typeArray = [
	  "unsigned", "short", "long",                  // UnsignedIntegerType
	  "unrestricted", "float", "double",            // UnrestrictedFloatType
	  "boolean", "byte", "octet",                   // Rest of PrimitiveType
	  "Promise",                                    // PromiseType
	  "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array",
	  "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray",
	  "Float32Array", "Float64Array",               // BufferRelatedType
	  "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp",
	  "Error", "DOMException", "FrozenArray",       // Rest of NonAnyType
	  "any",                                        // Rest of SingleType
	  "void"                                        // Rest of ReturnType
	];
	var types$1 = wordRegexp$2(typeArray);

	var keywordArray = [
	  "attribute", "callback", "const", "deleter", "dictionary", "enum", "getter",
	  "implements", "inherit", "interface", "iterable", "legacycaller", "maplike",
	  "partial", "required", "serializer", "setlike", "setter", "static",
	  "stringifier", "typedef",                     // ArgumentNameKeyword except
	                                                // "unrestricted"
	  "optional", "readonly", "or"
	];
	var keywords$4 = wordRegexp$2(keywordArray);

	var atomArray = [
	  "true", "false",                              // BooleanLiteral
	  "Infinity", "NaN",                            // FloatLiteral
	  "null"                                        // Rest of ConstValue
	];
	var atoms$1 = wordRegexp$2(atomArray);

	var startDefArray = ["callback", "dictionary", "enum", "interface"];
	var startDefs = wordRegexp$2(startDefArray);

	var endDefArray = ["typedef"];
	var endDefs = wordRegexp$2(endDefArray);

	var singleOperators$1 = /^[:<=>?]/;
	var integers = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/;
	var floats = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/;
	var identifiers$1 = /^_?[A-Za-z][0-9A-Z_a-z-]*/;
	var identifiersEnd = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/;
	var strings = /^"[^"]*"/;
	var multilineComments = /^\/\*.*?\*\//;
	var multilineCommentsStart = /^\/\*.*/;
	var multilineCommentsEnd = /^.*?\*\//;

	function readToken(stream, state) {
	  // whitespace
	  if (stream.eatSpace()) return null;

	  // comment
	  if (state.inComment) {
	    if (stream.match(multilineCommentsEnd)) {
	      state.inComment = false;
	      return "comment";
	    }
	    stream.skipToEnd();
	    return "comment";
	  }
	  if (stream.match("//")) {
	    stream.skipToEnd();
	    return "comment";
	  }
	  if (stream.match(multilineComments)) return "comment";
	  if (stream.match(multilineCommentsStart)) {
	    state.inComment = true;
	    return "comment";
	  }

	  // integer and float
	  if (stream.match(/^-?[0-9\.]/, false)) {
	    if (stream.match(integers) || stream.match(floats)) return "number";
	  }

	  // string
	  if (stream.match(strings)) return "string";

	  // identifier
	  if (state.startDef && stream.match(identifiers$1)) return "def";

	  if (state.endDef && stream.match(identifiersEnd)) {
	    state.endDef = false;
	    return "def";
	  }

	  if (stream.match(keywords$4)) return "keyword";

	  if (stream.match(types$1)) {
	    var lastToken = state.lastToken;
	    var nextToken = (stream.match(/^\s*(.+?)\b/, false) || [])[1];

	    if (lastToken === ":" || lastToken === "implements" ||
	        nextToken === "implements" || nextToken === "=") {
	      // Used as identifier
	      return "builtin";
	    } else {
	      // Used as type
	      return "type";
	    }
	  }

	  if (stream.match(builtins)) return "builtin";
	  if (stream.match(atoms$1)) return "atom";
	  if (stream.match(identifiers$1)) return "variable";

	  // other
	  if (stream.match(singleOperators$1)) return "operator";

	  // unrecognized
	  stream.next();
	  return null;
	}
	const webIDL = {
	  name: "webidl",
	  startState: function() {
	    return {
	      // Is in multiline comment
	      inComment: false,
	      // Last non-whitespace, matched token
	      lastToken: "",
	      // Next token is a definition
	      startDef: false,
	      // Last token of the statement is a definition
	      endDef: false
	    };
	  },
	  token: function(stream, state) {
	    var style = readToken(stream, state);

	    if (style) {
	      var cur = stream.current();
	      state.lastToken = cur;
	      if (style === "keyword") {
	        state.startDef = startDefs.test(cur);
	        state.endDef = state.endDef || endDefs.test(cur);
	      } else {
	        state.startDef = false;
	      }
	    }

	    return style;
	  },

	  languageData: {
	    autocomplete: builtinArray.concat(typeArray).concat(keywordArray).concat(atomArray)
	  }
	};

	var webidl = /*#__PURE__*/Object.freeze({
		__proto__: null,
		webIDL: webIDL
	});

	var ERRORCLASS = 'error';

	function wordRegexp$1(words) {
	  return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
	}

	var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]");
	var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');
	var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");
	var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");
	var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");
	var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");

	var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try', 'structure', 'synclock', 'using', 'with'];
	var middleKeywords = ['else','elseif','case', 'catch', 'finally'];
	var endKeywords = ['next','loop'];

	var operatorKeywords = ['and', "andalso", 'or', 'orelse', 'xor', 'in', 'not', 'is', 'isnot', 'like'];
	var wordOperators = wordRegexp$1(operatorKeywords);

	var commonKeywords = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"];

	var commontypes = ['object', 'boolean', 'char', 'string', 'byte', 'sbyte', 'short', 'ushort', 'int16', 'uint16', 'integer', 'uinteger', 'int32', 'uint32', 'long', 'ulong', 'int64', 'uint64', 'decimal', 'single', 'double', 'float', 'date', 'datetime', 'intptr', 'uintptr'];

	var keywords$3 = wordRegexp$1(commonKeywords);
	var types = wordRegexp$1(commontypes);
	var stringPrefixes = '"';

	var opening = wordRegexp$1(openingKeywords);
	var middle = wordRegexp$1(middleKeywords);
	var closing = wordRegexp$1(endKeywords);
	var doubleClosing = wordRegexp$1(['end']);
	var doOpening = wordRegexp$1(['do']);

	function indent(_stream, state) {
	  state.currentIndent++;
	}

	function dedent(_stream, state) {
	  state.currentIndent--;
	}
	// tokenizers
	function tokenBase$4(stream, state) {
	  if (stream.eatSpace()) {
	    return null;
	  }

	  var ch = stream.peek();

	  // Handle Comments
	  if (ch === "'") {
	    stream.skipToEnd();
	    return 'comment';
	  }


	  // Handle Number Literals
	  if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) {
	    var floatLiteral = false;
	    // Floats
	    if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; }
	    else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; }
	    else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; }

	    if (floatLiteral) {
	      // Float literals may be "imaginary"
	      stream.eat(/J/i);
	      return 'number';
	    }
	    // Integers
	    var intLiteral = false;
	    // Hex
	    if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; }
	    // Octal
	    else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; }
	    // Decimal
	    else if (stream.match(/^[1-9]\d*F?/)) {
	      // Decimal literals may be "imaginary"
	      stream.eat(/J/i);
	      // TODO - Can you have imaginary longs?
	      intLiteral = true;
	    }
	    // Zero by itself with no other piece of number.
	    else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; }
	    if (intLiteral) {
	      // Integer literals may be "long"
	      stream.eat(/L/i);
	      return 'number';
	    }
	  }

	  // Handle Strings
	  if (stream.match(stringPrefixes)) {
	    state.tokenize = tokenStringFactory(stream.current());
	    return state.tokenize(stream, state);
	  }

	  // Handle operators and Delimiters
	  if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) {
	    return null;
	  }
	  if (stream.match(doubleOperators)
	      || stream.match(singleOperators)
	      || stream.match(wordOperators)) {
	    return 'operator';
	  }
	  if (stream.match(singleDelimiters)) {
	    return null;
	  }
	  if (stream.match(doOpening)) {
	    indent(stream,state);
	    state.doInCurrentLine = true;
	    return 'keyword';
	  }
	  if (stream.match(opening)) {
	    if (! state.doInCurrentLine)
	      indent(stream,state);
	    else
	      state.doInCurrentLine = false;
	    return 'keyword';
	  }
	  if (stream.match(middle)) {
	    return 'keyword';
	  }

	  if (stream.match(doubleClosing)) {
	    dedent(stream,state);
	    dedent(stream,state);
	    return 'keyword';
	  }
	  if (stream.match(closing)) {
	    dedent(stream,state);
	    return 'keyword';
	  }

	  if (stream.match(types)) {
	    return 'keyword';
	  }

	  if (stream.match(keywords$3)) {
	    return 'keyword';
	  }

	  if (stream.match(identifiers)) {
	    return 'variable';
	  }

	  // Handle non-detected items
	  stream.next();
	  return ERRORCLASS;
	}

	function tokenStringFactory(delimiter) {
	  var singleline = delimiter.length == 1;
	  var OUTCLASS = 'string';

	  return function(stream, state) {
	    while (!stream.eol()) {
	      stream.eatWhile(/[^'"]/);
	      if (stream.match(delimiter)) {
	        state.tokenize = tokenBase$4;
	        return OUTCLASS;
	      } else {
	        stream.eat(/['"]/);
	      }
	    }
	    if (singleline) {
	      state.tokenize = tokenBase$4;
	    }
	    return OUTCLASS;
	  };
	}


	function tokenLexer(stream, state) {
	  var style = state.tokenize(stream, state);
	  var current = stream.current();

	  // Handle '.' connected identifiers
	  if (current === '.') {
	    style = state.tokenize(stream, state);
	    if (style === 'variable') {
	      return 'variable';
	    } else {
	      return ERRORCLASS;
	    }
	  }


	  var delimiter_index = '[({'.indexOf(current);
	  if (delimiter_index !== -1) {
	    indent(stream, state );
	  }
	  delimiter_index = '])}'.indexOf(current);
	  if (delimiter_index !== -1) {
	    if (dedent(stream, state)) {
	      return ERRORCLASS;
	    }
	  }

	  return style;
	}

	const vb = {
	  name: "vb",

	  startState: function() {
	    return {
	      tokenize: tokenBase$4,
	      lastToken: null,
	      currentIndent: 0,
	      nextLineIndent: 0,
	      doInCurrentLine: false


	    };
	  },

	  token: function(stream, state) {
	    if (stream.sol()) {
	      state.currentIndent += state.nextLineIndent;
	      state.nextLineIndent = 0;
	      state.doInCurrentLine = 0;
	    }
	    var style = tokenLexer(stream, state);

	    state.lastToken = {style:style, content: stream.current()};



	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    var trueText = textAfter.replace(/^\s+|\s+$/g, '') ;
	    if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return cx.unit*(state.currentIndent-1);
	    if(state.currentIndent < 0) return 0;
	    return state.currentIndent * cx.unit;
	  },

	  languageData: {
	    closeBrackets: {brackets: ["(", "[", "{", '"']},
	    commentTokens: {line: "'"},
	    autocomplete: openingKeywords.concat(middleKeywords).concat(endKeywords)
	      .concat(operatorKeywords).concat(commonKeywords).concat(commontypes)
	  }
	};

	var vb$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		vb: vb
	});

	function mkVBScript(parserConf) {
	    var ERRORCLASS = 'error';

	    function wordRegexp(words) {
	        return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
	    }

	    var singleOperators = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");
	    var doubleOperators = new RegExp("^((<>)|(<=)|(>=))");
	    var singleDelimiters = new RegExp('^[\\.,]');
	    var brackets = new RegExp('^[\\(\\)]');
	    var identifiers = new RegExp("^[A-Za-z][_A-Za-z0-9]*");

	    var openingKeywords = ['class','sub','select','while','if','function', 'property', 'with', 'for'];
	    var middleKeywords = ['else','elseif','case'];
	    var endKeywords = ['next','loop','wend'];

	    var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'is', 'mod', 'eqv', 'imp']);
	    var commonkeywords = ['dim', 'redim', 'then',  'until', 'randomize',
	                          'byval','byref','new','property', 'exit', 'in',
	                          'const','private', 'public',
	                          'get','set','let', 'stop', 'on error resume next', 'on error goto 0', 'option explicit', 'call', 'me'];

	    //This list was from: http://msdn.microsoft.com/en-us/library/f8tbc79x(v=vs.84).aspx
	    var atomWords = ['true', 'false', 'nothing', 'empty', 'null'];
	    //This list was from: http://msdn.microsoft.com/en-us/library/3ca8tfek(v=vs.84).aspx
	    var builtinFuncsWords = ['abs', 'array', 'asc', 'atn', 'cbool', 'cbyte', 'ccur', 'cdate', 'cdbl', 'chr', 'cint', 'clng', 'cos', 'csng', 'cstr', 'date', 'dateadd', 'datediff', 'datepart',
	                        'dateserial', 'datevalue', 'day', 'escape', 'eval', 'execute', 'exp', 'filter', 'formatcurrency', 'formatdatetime', 'formatnumber', 'formatpercent', 'getlocale', 'getobject',
	                        'getref', 'hex', 'hour', 'inputbox', 'instr', 'instrrev', 'int', 'fix', 'isarray', 'isdate', 'isempty', 'isnull', 'isnumeric', 'isobject', 'join', 'lbound', 'lcase', 'left',
	                        'len', 'loadpicture', 'log', 'ltrim', 'rtrim', 'trim', 'maths', 'mid', 'minute', 'month', 'monthname', 'msgbox', 'now', 'oct', 'replace', 'rgb', 'right', 'rnd', 'round',
	                        'scriptengine', 'scriptenginebuildversion', 'scriptenginemajorversion', 'scriptengineminorversion', 'second', 'setlocale', 'sgn', 'sin', 'space', 'split', 'sqr', 'strcomp',
	                        'string', 'strreverse', 'tan', 'time', 'timer', 'timeserial', 'timevalue', 'typename', 'ubound', 'ucase', 'unescape', 'vartype', 'weekday', 'weekdayname', 'year'];

	    //This list was from: http://msdn.microsoft.com/en-us/library/ydz4cfk3(v=vs.84).aspx
	    var builtinConsts = ['vbBlack', 'vbRed', 'vbGreen', 'vbYellow', 'vbBlue', 'vbMagenta', 'vbCyan', 'vbWhite', 'vbBinaryCompare', 'vbTextCompare',
	                         'vbSunday', 'vbMonday', 'vbTuesday', 'vbWednesday', 'vbThursday', 'vbFriday', 'vbSaturday', 'vbUseSystemDayOfWeek', 'vbFirstJan1', 'vbFirstFourDays', 'vbFirstFullWeek',
	                         'vbGeneralDate', 'vbLongDate', 'vbShortDate', 'vbLongTime', 'vbShortTime', 'vbObjectError',
	                         'vbOKOnly', 'vbOKCancel', 'vbAbortRetryIgnore', 'vbYesNoCancel', 'vbYesNo', 'vbRetryCancel', 'vbCritical', 'vbQuestion', 'vbExclamation', 'vbInformation', 'vbDefaultButton1', 'vbDefaultButton2',
	                         'vbDefaultButton3', 'vbDefaultButton4', 'vbApplicationModal', 'vbSystemModal', 'vbOK', 'vbCancel', 'vbAbort', 'vbRetry', 'vbIgnore', 'vbYes', 'vbNo',
	                         'vbCr', 'VbCrLf', 'vbFormFeed', 'vbLf', 'vbNewLine', 'vbNullChar', 'vbNullString', 'vbTab', 'vbVerticalTab', 'vbUseDefault', 'vbTrue', 'vbFalse',
	                         'vbEmpty', 'vbNull', 'vbInteger', 'vbLong', 'vbSingle', 'vbDouble', 'vbCurrency', 'vbDate', 'vbString', 'vbObject', 'vbError', 'vbBoolean', 'vbVariant', 'vbDataObject', 'vbDecimal', 'vbByte', 'vbArray'];
	    //This list was from: http://msdn.microsoft.com/en-us/library/hkc375ea(v=vs.84).aspx
	    var builtinObjsWords = ['WScript', 'err', 'debug', 'RegExp'];
	    var knownProperties = ['description', 'firstindex', 'global', 'helpcontext', 'helpfile', 'ignorecase', 'length', 'number', 'pattern', 'source', 'value', 'count'];
	    var knownMethods = ['clear', 'execute', 'raise', 'replace', 'test', 'write', 'writeline', 'close', 'open', 'state', 'eof', 'update', 'addnew', 'end', 'createobject', 'quit'];

	    var aspBuiltinObjsWords = ['server', 'response', 'request', 'session', 'application'];
	    var aspKnownProperties = ['buffer', 'cachecontrol', 'charset', 'contenttype', 'expires', 'expiresabsolute', 'isclientconnected', 'pics', 'status', //response
	                              'clientcertificate', 'cookies', 'form', 'querystring', 'servervariables', 'totalbytes', //request
	                              'contents', 'staticobjects', //application
	                              'codepage', 'lcid', 'sessionid', 'timeout', //session
	                              'scripttimeout']; //server
	    var aspKnownMethods = ['addheader', 'appendtolog', 'binarywrite', 'end', 'flush', 'redirect', //response
	                           'binaryread', //request
	                           'remove', 'removeall', 'lock', 'unlock', //application
	                           'abandon', //session
	                           'getlasterror', 'htmlencode', 'mappath', 'transfer', 'urlencode']; //server

	    var knownWords = knownMethods.concat(knownProperties);

	    builtinObjsWords = builtinObjsWords.concat(builtinConsts);

	    if (parserConf.isASP){
	        builtinObjsWords = builtinObjsWords.concat(aspBuiltinObjsWords);
	        knownWords = knownWords.concat(aspKnownMethods, aspKnownProperties);
	    }
	    var keywords = wordRegexp(commonkeywords);
	    var atoms = wordRegexp(atomWords);
	    var builtinFuncs = wordRegexp(builtinFuncsWords);
	    var builtinObjs = wordRegexp(builtinObjsWords);
	    var known = wordRegexp(knownWords);
	    var stringPrefixes = '"';

	    var opening = wordRegexp(openingKeywords);
	    var middle = wordRegexp(middleKeywords);
	    var closing = wordRegexp(endKeywords);
	    var doubleClosing = wordRegexp(['end']);
	    var doOpening = wordRegexp(['do']);
	    var noIndentWords = wordRegexp(['on error resume next', 'exit']);
	    var comment = wordRegexp(['rem']);


	    function indent(_stream, state) {
	      state.currentIndent++;
	    }

	    function dedent(_stream, state) {
	      state.currentIndent--;
	    }
	    // tokenizers
	    function tokenBase(stream, state) {
	        if (stream.eatSpace()) {
	            return null
	            //return null;
	        }

	        var ch = stream.peek();

	        // Handle Comments
	        if (ch === "'") {
	            stream.skipToEnd();
	            return 'comment';
	        }
	        if (stream.match(comment)){
	            stream.skipToEnd();
	            return 'comment';
	        }


	        // Handle Number Literals
	        if (stream.match(/^((&H)|(&O))?[0-9\.]/i, false) && !stream.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, false)) {
	            var floatLiteral = false;
	            // Floats
	            if (stream.match(/^\d*\.\d+/i)) { floatLiteral = true; }
	            else if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; }
	            else if (stream.match(/^\.\d+/)) { floatLiteral = true; }

	            if (floatLiteral) {
	                // Float literals may be "imaginary"
	                stream.eat(/J/i);
	                return 'number';
	            }
	            // Integers
	            var intLiteral = false;
	            // Hex
	            if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; }
	            // Octal
	            else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; }
	            // Decimal
	            else if (stream.match(/^[1-9]\d*F?/)) {
	                // Decimal literals may be "imaginary"
	                stream.eat(/J/i);
	                // TODO - Can you have imaginary longs?
	                intLiteral = true;
	            }
	            // Zero by itself with no other piece of number.
	            else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; }
	            if (intLiteral) {
	                // Integer literals may be "long"
	                stream.eat(/L/i);
	                return 'number';
	            }
	        }

	        // Handle Strings
	        if (stream.match(stringPrefixes)) {
	            state.tokenize = tokenStringFactory(stream.current());
	            return state.tokenize(stream, state);
	        }

	        // Handle operators and Delimiters
	        if (stream.match(doubleOperators)
	            || stream.match(singleOperators)
	            || stream.match(wordOperators)) {
	            return 'operator';
	        }
	        if (stream.match(singleDelimiters)) {
	            return null;
	        }

	        if (stream.match(brackets)) {
	            return "bracket";
	        }

	        if (stream.match(noIndentWords)) {
	            state.doInCurrentLine = true;

	            return 'keyword';
	        }

	        if (stream.match(doOpening)) {
	            indent(stream,state);
	            state.doInCurrentLine = true;

	            return 'keyword';
	        }
	        if (stream.match(opening)) {
	            if (! state.doInCurrentLine)
	              indent(stream,state);
	            else
	              state.doInCurrentLine = false;

	            return 'keyword';
	        }
	        if (stream.match(middle)) {
	            return 'keyword';
	        }


	        if (stream.match(doubleClosing)) {
	            dedent(stream,state);
	            dedent(stream,state);

	            return 'keyword';
	        }
	        if (stream.match(closing)) {
	            if (! state.doInCurrentLine)
	              dedent(stream,state);
	            else
	              state.doInCurrentLine = false;

	            return 'keyword';
	        }

	        if (stream.match(keywords)) {
	            return 'keyword';
	        }

	        if (stream.match(atoms)) {
	            return 'atom';
	        }

	        if (stream.match(known)) {
	            return 'variableName.special';
	        }

	        if (stream.match(builtinFuncs)) {
	            return 'builtin';
	        }

	        if (stream.match(builtinObjs)){
	            return 'builtin';
	        }

	        if (stream.match(identifiers)) {
	            return 'variable';
	        }

	        // Handle non-detected items
	        stream.next();
	        return ERRORCLASS;
	    }

	    function tokenStringFactory(delimiter) {
	        var singleline = delimiter.length == 1;
	        var OUTCLASS = 'string';

	        return function(stream, state) {
	            while (!stream.eol()) {
	                stream.eatWhile(/[^'"]/);
	                if (stream.match(delimiter)) {
	                    state.tokenize = tokenBase;
	                    return OUTCLASS;
	                } else {
	                    stream.eat(/['"]/);
	                }
	            }
	            if (singleline) {
	              state.tokenize = tokenBase;
	            }
	            return OUTCLASS;
	        };
	    }


	    function tokenLexer(stream, state) {
	        var style = state.tokenize(stream, state);
	        var current = stream.current();

	        // Handle '.' connected identifiers
	        if (current === '.') {
	            style = state.tokenize(stream, state);

	            current = stream.current();
	            if (style && (style.substr(0, 8) === 'variable' || style==='builtin' || style==='keyword')){//|| knownWords.indexOf(current.substring(1)) > -1) {
	                if (style === 'builtin' || style === 'keyword') style='variable';
	                if (knownWords.indexOf(current.substr(1)) > -1) style='keyword';

	                return style;
	            } else {
	                return ERRORCLASS;
	            }
	        }

	        return style;
	    }

	    return {
	        name: "vbscript",
	        startState: function() {
	            return {
	              tokenize: tokenBase,
	              lastToken: null,
	              currentIndent: 0,
	              nextLineIndent: 0,
	              doInCurrentLine: false,
	              ignoreKeyword: false


	          };
	        },

	        token: function(stream, state) {
	            if (stream.sol()) {
	              state.currentIndent += state.nextLineIndent;
	              state.nextLineIndent = 0;
	              state.doInCurrentLine = 0;
	            }
	            var style = tokenLexer(stream, state);

	            state.lastToken = {style:style, content: stream.current()};

	            if (style===null) style=null;

	            return style;
	        },

	        indent: function(state, textAfter, cx) {
	            var trueText = textAfter.replace(/^\s+|\s+$/g, '') ;
	            if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return cx.unit*(state.currentIndent-1);
	            if(state.currentIndent < 0) return 0;
	            return state.currentIndent * cx.unit
	        }

	    };
	}
	const vbScript = mkVBScript({});
	const vbScriptASP = mkVBScript({isASP: true});

	var vbscript = /*#__PURE__*/Object.freeze({
		__proto__: null,
		vbScript: vbScript,
		vbScriptASP: vbScriptASP
	});

	function parseWords(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var keywords$2 = parseWords("#end #else #break #stop #[[ #]] " +
	                          "#{end} #{else} #{break} #{stop}");
	var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate " +
	                           "#{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}");
	var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent");
	var isOperatorChar$1 = /[+\-*&%=<>!?:\/|]/;

	function chain$1(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}
	function tokenBase$3(stream, state) {
	  var beforeParams = state.beforeParams;
	  state.beforeParams = false;
	  var ch = stream.next();
	  // start of unparsed string?
	  if ((ch == "'") && !state.inString && state.inParams) {
	    state.lastTokenWasBuiltin = false;
	    return chain$1(stream, state, tokenString$3(ch));
	  }
	  // start of parsed string?
	  else if ((ch == '"')) {
	    state.lastTokenWasBuiltin = false;
	    if (state.inString) {
	      state.inString = false;
	      return "string";
	    }
	    else if (state.inParams)
	      return chain$1(stream, state, tokenString$3(ch));
	  }
	  // is it one of the special signs []{}().,;? Separator?
	  else if (/[\[\]{}\(\),;\.]/.test(ch)) {
	    if (ch == "(" && beforeParams)
	      state.inParams = true;
	    else if (ch == ")") {
	      state.inParams = false;
	      state.lastTokenWasBuiltin = true;
	    }
	    return null;
	  }
	  // start of a number value?
	  else if (/\d/.test(ch)) {
	    state.lastTokenWasBuiltin = false;
	    stream.eatWhile(/[\w\.]/);
	    return "number";
	  }
	  // multi line comment?
	  else if (ch == "#" && stream.eat("*")) {
	    state.lastTokenWasBuiltin = false;
	    return chain$1(stream, state, tokenComment$2);
	  }
	  // unparsed content?
	  else if (ch == "#" && stream.match(/ *\[ *\[/)) {
	    state.lastTokenWasBuiltin = false;
	    return chain$1(stream, state, tokenUnparsed);
	  }
	  // single line comment?
	  else if (ch == "#" && stream.eat("#")) {
	    state.lastTokenWasBuiltin = false;
	    stream.skipToEnd();
	    return "comment";
	  }
	  // variable?
	  else if (ch == "$") {
	    stream.eat("!");
	    stream.eatWhile(/[\w\d\$_\.{}-]/);
	    // is it one of the specials?
	    if (specials && specials.propertyIsEnumerable(stream.current())) {
	      return "keyword";
	    }
	    else {
	      state.lastTokenWasBuiltin = true;
	      state.beforeParams = true;
	      return "builtin";
	    }
	  }
	  // is it a operator?
	  else if (isOperatorChar$1.test(ch)) {
	    state.lastTokenWasBuiltin = false;
	    stream.eatWhile(isOperatorChar$1);
	    return "operator";
	  }
	  else {
	    // get the whole word
	    stream.eatWhile(/[\w\$_{}@]/);
	    var word = stream.current();
	    // is it one of the listed keywords?
	    if (keywords$2 && keywords$2.propertyIsEnumerable(word))
	      return "keyword";
	    // is it one of the listed functions?
	    if (functions && functions.propertyIsEnumerable(word) ||
	        (stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek()=="(") &&
	        !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) {
	      state.beforeParams = true;
	      state.lastTokenWasBuiltin = false;
	      return "keyword";
	    }
	    if (state.inString) {
	      state.lastTokenWasBuiltin = false;
	      return "string";
	    }
	    if (stream.pos > word.length && stream.string.charAt(stream.pos-word.length-1)=="." && state.lastTokenWasBuiltin)
	      return "builtin";
	    // default: just a "word"
	    state.lastTokenWasBuiltin = false;
	    return null;
	  }
	}

	function tokenString$3(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if ((next == quote) && !escaped) {
	        end = true;
	        break;
	      }
	      if (quote=='"' && stream.peek() == '$' && !escaped) {
	        state.inString = true;
	        end = true;
	        break;
	      }
	      escaped = !escaped && next == "\\";
	    }
	    if (end) state.tokenize = tokenBase$3;
	    return "string";
	  };
	}

	function tokenComment$2(stream, state) {
	  var maybeEnd = false, ch;
	  while (ch = stream.next()) {
	    if (ch == "#" && maybeEnd) {
	      state.tokenize = tokenBase$3;
	      break;
	    }
	    maybeEnd = (ch == "*");
	  }
	  return "comment";
	}

	function tokenUnparsed(stream, state) {
	  var maybeEnd = 0, ch;
	  while (ch = stream.next()) {
	    if (ch == "#" && maybeEnd == 2) {
	      state.tokenize = tokenBase$3;
	      break;
	    }
	    if (ch == "]")
	      maybeEnd++;
	    else if (ch != " ")
	      maybeEnd = 0;
	  }
	  return "meta";
	}
	// Interface

	const velocity = {
	  name: "velocity",

	  startState: function() {
	    return {
	      tokenize: tokenBase$3,
	      beforeParams: false,
	      inParams: false,
	      inString: false,
	      lastTokenWasBuiltin: false
	    };
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  },
	  languageData: {
	    commentTokens: {line: "##", block: {open: "#*", close: "*#"}}
	  }
	};

	var velocity$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		velocity: velocity
	});

	function words$1(str) {
	  var obj = {}, words = str.split(",");
	  for (var i = 0; i < words.length; ++i) {
	    var allCaps = words[i].toUpperCase();
	    var firstCap = words[i].charAt(0).toUpperCase() + words[i].slice(1);
	    obj[words[i]] = true;
	    obj[allCaps] = true;
	    obj[firstCap] = true;
	  }
	  return obj;
	}

	function metaHook(stream) {
	  stream.eatWhile(/[\w\$_]/);
	  return "meta";
	}

	var atoms = words$1("null"),
	    hooks = {"`": metaHook, "$": metaHook},
	    multiLineStrings = false;

	var keywords$1 = words$1("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block," +
	                     "body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case," +
	                     "end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for," +
	                     "function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage," +
	                     "literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map," +
	                     "postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal," +
	                     "sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor");

	var blockKeywords = words$1("architecture,entity,begin,case,port,else,elsif,end,for,function,if");

	var isOperatorChar = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;
	var curPunc;

	function tokenBase$2(stream, state) {
	  var ch = stream.next();
	  if (hooks[ch]) {
	    var result = hooks[ch](stream, state);
	    if (result !== false) return result;
	  }
	  if (ch == '"') {
	    state.tokenize = tokenString2(ch);
	    return state.tokenize(stream, state);
	  }
	  if (ch == "'") {
	    state.tokenize = tokenString$2(ch);
	    return state.tokenize(stream, state);
	  }
	  if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
	    curPunc = ch;
	    return null;
	  }
	  if (/[\d']/.test(ch)) {
	    stream.eatWhile(/[\w\.']/);
	    return "number";
	  }
	  if (ch == "-") {
	    if (stream.eat("-")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }
	  if (isOperatorChar.test(ch)) {
	    stream.eatWhile(isOperatorChar);
	    return "operator";
	  }
	  stream.eatWhile(/[\w\$_]/);
	  var cur = stream.current();
	  if (keywords$1.propertyIsEnumerable(cur.toLowerCase())) {
	    if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
	    return "keyword";
	  }
	  if (atoms.propertyIsEnumerable(cur)) return "atom";
	  return "variable";
	}

	function tokenString$2(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && next == "--";
	    }
	    if (end || !(escaped || multiLineStrings))
	      state.tokenize = tokenBase$2;
	    return "string";
	  };
	}
	function tokenString2(quote) {
	  return function(stream, state) {
	    var escaped = false, next, end = false;
	    while ((next = stream.next()) != null) {
	      if (next == quote && !escaped) {end = true; break;}
	      escaped = !escaped && next == "--";
	    }
	    if (end || !(escaped || multiLineStrings))
	      state.tokenize = tokenBase$2;
	    return "string.special";
	  };
	}

	function Context(indented, column, type, align, prev) {
	  this.indented = indented;
	  this.column = column;
	  this.type = type;
	  this.align = align;
	  this.prev = prev;
	}
	function pushContext(state, col, type) {
	  return state.context = new Context(state.indented, col, type, null, state.context);
	}
	function popContext(state) {
	  var t = state.context.type;
	  if (t == ")" || t == "]" || t == "}")
	    state.indented = state.context.indented;
	  return state.context = state.context.prev;
	}

	// Interface
	const vhdl = {
	  name: "vhdl",
	  startState: function(indentUnit) {
	    return {
	      tokenize: null,
	      context: new Context(-indentUnit, 0, "top", false),
	      indented: 0,
	      startOfLine: true
	    };
	  },

	  token: function(stream, state) {
	    var ctx = state.context;
	    if (stream.sol()) {
	      if (ctx.align == null) ctx.align = false;
	      state.indented = stream.indentation();
	      state.startOfLine = true;
	    }
	    if (stream.eatSpace()) return null;
	    curPunc = null;
	    var style = (state.tokenize || tokenBase$2)(stream, state);
	    if (style == "comment" || style == "meta") return style;
	    if (ctx.align == null) ctx.align = true;

	    if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
	    else if (curPunc == "{") pushContext(state, stream.column(), "}");
	    else if (curPunc == "[") pushContext(state, stream.column(), "]");
	    else if (curPunc == "(") pushContext(state, stream.column(), ")");
	    else if (curPunc == "}") {
	      while (ctx.type == "statement") ctx = popContext(state);
	      if (ctx.type == "}") ctx = popContext(state);
	      while (ctx.type == "statement") ctx = popContext(state);
	    }
	    else if (curPunc == ctx.type) popContext(state);
	    else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
	      pushContext(state, stream.column(), "statement");
	    state.startOfLine = false;
	    return style;
	  },

	  indent: function(state, textAfter, cx) {
	    if (state.tokenize != tokenBase$2 && state.tokenize != null) return 0;
	    var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type;
	    if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : cx.unit);
	    else if (ctx.align) return ctx.column + (closing ? 0 : 1);
	    else return ctx.indented + (closing ? 0 : cx.unit);
	  },

	  languageData: {
	    indentOnInput: /^\s*[{}]$/,
	    commentTokens: {line: "--"}
	  }
	};

	var vhdl$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		vhdl: vhdl
	});

	// The keywords object is set to the result of this self executing
	// function. Each keyword is a property of the keywords object whose
	// value is {type: atype, style: astyle}
	var keywords = function(){
	  // convenience functions used to build keywords object
	  function kw(type) {return {type: type, style: "keyword"};}
	  var operator = kw("operator")
	  , atom = {type: "atom", style: "atom"}
	  , punctuation = {type: "punctuation", style: null}
	  , qualifier = {type: "axis_specifier", style: "qualifier"};

	  // kwObj is what is return from this function at the end
	  var kwObj = {
	    ',': punctuation
	  };

	  // a list of 'basic' keywords. For each add a property to kwObj with the value of
	  // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"}
	  var basic = ['after', 'all', 'allowing', 'ancestor', 'ancestor-or-self', 'any', 'array', 'as',
	               'ascending', 'at', 'attribute', 'base-uri', 'before', 'boundary-space', 'by', 'case', 'cast',
	               'castable', 'catch', 'child', 'collation', 'comment', 'construction', 'contains', 'content',
	               'context', 'copy', 'copy-namespaces', 'count', 'decimal-format', 'declare', 'default', 'delete',
	               'descendant', 'descendant-or-self', 'descending', 'diacritics', 'different', 'distance',
	               'document', 'document-node', 'element', 'else', 'empty', 'empty-sequence', 'encoding', 'end',
	               'entire', 'every', 'exactly', 'except', 'external', 'first', 'following', 'following-sibling',
	               'for', 'from', 'ftand', 'ftnot', 'ft-option', 'ftor', 'function', 'fuzzy', 'greatest', 'group',
	               'if', 'import', 'in', 'inherit', 'insensitive', 'insert', 'instance', 'intersect', 'into',
	               'invoke', 'is', 'item', 'language', 'last', 'lax', 'least', 'let', 'levels', 'lowercase', 'map',
	               'modify', 'module', 'most', 'namespace', 'next', 'no', 'node', 'nodes', 'no-inherit',
	               'no-preserve', 'not', 'occurs', 'of', 'only', 'option', 'order', 'ordered', 'ordering',
	               'paragraph', 'paragraphs', 'parent', 'phrase', 'preceding', 'preceding-sibling', 'preserve',
	               'previous', 'processing-instruction', 'relationship', 'rename', 'replace', 'return',
	               'revalidation', 'same', 'satisfies', 'schema', 'schema-attribute', 'schema-element', 'score',
	               'self', 'sensitive', 'sentence', 'sentences', 'sequence', 'skip', 'sliding', 'some', 'stable',
	               'start', 'stemming', 'stop', 'strict', 'strip', 'switch', 'text', 'then', 'thesaurus', 'times',
	               'to', 'transform', 'treat', 'try', 'tumbling', 'type', 'typeswitch', 'union', 'unordered',
	               'update', 'updating', 'uppercase', 'using', 'validate', 'value', 'variable', 'version',
	               'weight', 'when', 'where', 'wildcards', 'window', 'with', 'without', 'word', 'words', 'xquery'];
	  for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);}
	  // a list of types. For each add a property to kwObj with the value of
	  // {type: "atom", style: "atom"}
	  var types = ['xs:anyAtomicType', 'xs:anySimpleType', 'xs:anyType', 'xs:anyURI',
	               'xs:base64Binary', 'xs:boolean', 'xs:byte', 'xs:date', 'xs:dateTime', 'xs:dateTimeStamp',
	               'xs:dayTimeDuration', 'xs:decimal', 'xs:double', 'xs:duration', 'xs:ENTITIES', 'xs:ENTITY',
	               'xs:float', 'xs:gDay', 'xs:gMonth', 'xs:gMonthDay', 'xs:gYear', 'xs:gYearMonth', 'xs:hexBinary',
	               'xs:ID', 'xs:IDREF', 'xs:IDREFS', 'xs:int', 'xs:integer', 'xs:item', 'xs:java', 'xs:language',
	               'xs:long', 'xs:Name', 'xs:NCName', 'xs:negativeInteger', 'xs:NMTOKEN', 'xs:NMTOKENS',
	               'xs:nonNegativeInteger', 'xs:nonPositiveInteger', 'xs:normalizedString', 'xs:NOTATION',
	               'xs:numeric', 'xs:positiveInteger', 'xs:precisionDecimal', 'xs:QName', 'xs:short', 'xs:string',
	               'xs:time', 'xs:token', 'xs:unsignedByte', 'xs:unsignedInt', 'xs:unsignedLong',
	               'xs:unsignedShort', 'xs:untyped', 'xs:untypedAtomic', 'xs:yearMonthDuration'];
	  for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;}
	  // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"}
	  var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-'];
	  for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;}
	  // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"}
	  var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::",
	                         "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"];
	  for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; }
	  return kwObj;
	}();

	function chain(stream, state, f) {
	  state.tokenize = f;
	  return f(stream, state);
	}

	// the primary mode tokenizer
	function tokenBase$1(stream, state) {
	  var ch = stream.next(),
	      mightBeFunction = false,
	      isEQName = isEQNameAhead(stream);

	  // an XML tag (if not in some sub, chained tokenizer)
	  if (ch == "<") {
	    if(stream.match("!--", true))
	      return chain(stream, state, tokenXMLComment);

	    if(stream.match("![CDATA", false)) {
	      state.tokenize = tokenCDATA;
	      return "tag";
	    }

	    if(stream.match("?", false)) {
	      return chain(stream, state, tokenPreProcessing);
	    }

	    var isclose = stream.eat("/");
	    stream.eatSpace();
	    var tagName = "", c;
	    while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;

	    return chain(stream, state, tokenTag(tagName, isclose));
	  }
	  // start code block
	  else if(ch == "{") {
	    pushStateStack(state, { type: "codeblock"});
	    return null;
	  }
	  // end code block
	  else if(ch == "}") {
	    popStateStack(state);
	    return null;
	  }
	  // if we're in an XML block
	  else if(isInXmlBlock(state)) {
	    if(ch == ">")
	      return "tag";
	    else if(ch == "/" && stream.eat(">")) {
	      popStateStack(state);
	      return "tag";
	    }
	    else
	      return "variable";
	  }
	  // if a number
	  else if (/\d/.test(ch)) {
	    stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);
	    return "atom";
	  }
	  // comment start
	  else if (ch === "(" && stream.eat(":")) {
	    pushStateStack(state, { type: "comment"});
	    return chain(stream, state, tokenComment$1);
	  }
	  // quoted string
	  else if (!isEQName && (ch === '"' || ch === "'"))
	    return chain(stream, state, tokenString$1(ch));
	  // variable
	  else if(ch === "$") {
	    return chain(stream, state, tokenVariable);
	  }
	  // assignment
	  else if(ch ===":" && stream.eat("=")) {
	    return "keyword";
	  }
	  // open paren
	  else if(ch === "(") {
	    pushStateStack(state, { type: "paren"});
	    return null;
	  }
	  // close paren
	  else if(ch === ")") {
	    popStateStack(state);
	    return null;
	  }
	  // open paren
	  else if(ch === "[") {
	    pushStateStack(state, { type: "bracket"});
	    return null;
	  }
	  // close paren
	  else if(ch === "]") {
	    popStateStack(state);
	    return null;
	  }
	  else {
	    var known = keywords.propertyIsEnumerable(ch) && keywords[ch];

	    // if there's a EQName ahead, consume the rest of the string portion, it's likely a function
	    if(isEQName && ch === '\"') while(stream.next() !== '"'){}
	    if(isEQName && ch === '\'') while(stream.next() !== '\''){}

	    // gobble up a word if the character is not known
	    if(!known) stream.eatWhile(/[\w\$_-]/);

	    // gobble a colon in the case that is a lib func type call fn:doc
	    var foundColon = stream.eat(":");

	    // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier
	    // which should get matched as a keyword
	    if(!stream.eat(":") && foundColon) {
	      stream.eatWhile(/[\w\$_-]/);
	    }
	    // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort)
	    if(stream.match(/^[ \t]*\(/, false)) {
	      mightBeFunction = true;
	    }
	    // is the word a keyword?
	    var word = stream.current();
	    known = keywords.propertyIsEnumerable(word) && keywords[word];

	    // if we think it's a function call but not yet known,
	    // set style to variable for now for lack of something better
	    if(mightBeFunction && !known) known = {type: "function_call", style: "def"};

	    // if the previous word was element, attribute, axis specifier, this word should be the name of that
	    if(isInXmlConstructor(state)) {
	      popStateStack(state);
	      return "variable";
	    }
	    // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and
	    // push the stack so we know to look for it on the next word
	    if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"});

	    // if the word is known, return the details of that else just call this a generic 'word'
	    return known ? known.style : "variable";
	  }
	}

	// handle comments, including nested
	function tokenComment$1(stream, state) {
	  var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
	  while (ch = stream.next()) {
	    if (ch == ")" && maybeEnd) {
	      if(nestedCount > 0)
	        nestedCount--;
	      else {
	        popStateStack(state);
	        break;
	      }
	    }
	    else if(ch == ":" && maybeNested) {
	      nestedCount++;
	    }
	    maybeEnd = (ch == ":");
	    maybeNested = (ch == "(");
	  }

	  return "comment";
	}

	// tokenizer for string literals
	// optionally pass a tokenizer function to set state.tokenize back to when finished
	function tokenString$1(quote, f) {
	  return function(stream, state) {
	    var ch;

	    if(isInString(state) && stream.current() == quote) {
	      popStateStack(state);
	      if(f) state.tokenize = f;
	      return "string";
	    }

	    pushStateStack(state, { type: "string", name: quote, tokenize: tokenString$1(quote, f) });

	    // if we're in a string and in an XML block, allow an embedded code block
	    if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
	      state.tokenize = tokenBase$1;
	      return "string";
	    }


	    while (ch = stream.next()) {
	      if (ch ==  quote) {
	        popStateStack(state);
	        if(f) state.tokenize = f;
	        break;
	      }
	      else {
	        // if we're in a string and in an XML block, allow an embedded code block in an attribute
	        if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
	          state.tokenize = tokenBase$1;
	          return "string";
	        }

	      }
	    }

	    return "string";
	  };
	}

	// tokenizer for variables
	function tokenVariable(stream, state) {
	  var isVariableChar = /[\w\$_-]/;

	  // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote
	  if(stream.eat("\"")) {
	    while(stream.next() !== '\"'){}    stream.eat(":");
	  } else {
	    stream.eatWhile(isVariableChar);
	    if(!stream.match(":=", false)) stream.eat(":");
	  }
	  stream.eatWhile(isVariableChar);
	  state.tokenize = tokenBase$1;
	  return "variable";
	}

	// tokenizer for XML tags
	function tokenTag(name, isclose) {
	  return function(stream, state) {
	    stream.eatSpace();
	    if(isclose && stream.eat(">")) {
	      popStateStack(state);
	      state.tokenize = tokenBase$1;
	      return "tag";
	    }
	    // self closing tag without attributes?
	    if(!stream.eat("/"))
	      pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase$1});
	    if(!stream.eat(">")) {
	      state.tokenize = tokenAttribute;
	      return "tag";
	    }
	    else {
	      state.tokenize = tokenBase$1;
	    }
	    return "tag";
	  };
	}

	// tokenizer for XML attributes
	function tokenAttribute(stream, state) {
	  var ch = stream.next();

	  if(ch == "/" && stream.eat(">")) {
	    if(isInXmlAttributeBlock(state)) popStateStack(state);
	    if(isInXmlBlock(state)) popStateStack(state);
	    return "tag";
	  }
	  if(ch == ">") {
	    if(isInXmlAttributeBlock(state)) popStateStack(state);
	    return "tag";
	  }
	  if(ch == "=")
	    return null;
	  // quoted string
	  if (ch == '"' || ch == "'")
	    return chain(stream, state, tokenString$1(ch, tokenAttribute));

	  if(!isInXmlAttributeBlock(state))
	    pushStateStack(state, { type: "attribute", tokenize: tokenAttribute});

	  stream.eat(/[a-zA-Z_:]/);
	  stream.eatWhile(/[-a-zA-Z0-9_:.]/);
	  stream.eatSpace();

	  // the case where the attribute has not value and the tag was closed
	  if(stream.match(">", false) || stream.match("/", false)) {
	    popStateStack(state);
	    state.tokenize = tokenBase$1;
	  }

	  return "attribute";
	}

	// handle comments, including nested
	function tokenXMLComment(stream, state) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch == "-" && stream.match("->", true)) {
	      state.tokenize = tokenBase$1;
	      return "comment";
	    }
	  }
	}


	// handle CDATA
	function tokenCDATA(stream, state) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch == "]" && stream.match("]", true)) {
	      state.tokenize = tokenBase$1;
	      return "comment";
	    }
	  }
	}

	// handle preprocessing instructions
	function tokenPreProcessing(stream, state) {
	  var ch;
	  while (ch = stream.next()) {
	    if (ch == "?" && stream.match(">", true)) {
	      state.tokenize = tokenBase$1;
	      return "processingInstruction";
	    }
	  }
	}


	// functions to test the current context of the state
	function isInXmlBlock(state) { return isIn(state, "tag"); }
	function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); }
	function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); }
	function isInString(state) { return isIn(state, "string"); }

	function isEQNameAhead(stream) {
	  // assume we've already eaten a quote (")
	  if(stream.current() === '"')
	    return stream.match(/^[^\"]+\"\:/, false);
	  else if(stream.current() === '\'')
	    return stream.match(/^[^\"]+\'\:/, false);
	  else
	    return false;
	}

	function isIn(state, type) {
	  return (state.stack.length && state.stack[state.stack.length - 1].type == type);
	}

	function pushStateStack(state, newState) {
	  state.stack.push(newState);
	}

	function popStateStack(state) {
	  state.stack.pop();
	  var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize;
	  state.tokenize = reinstateTokenize || tokenBase$1;
	}

	// the interface for the mode API
	const xQuery = {
	  name: "xquery",
	  startState: function() {
	    return {
	      tokenize: tokenBase$1,
	      cc: [],
	      stack: []
	    };
	  },

	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    var style = state.tokenize(stream, state);
	    return style;
	  },

	  languageData: {
	    commentTokens: {block: {open: "(:", close: ":)"}}
	  }
	};

	var xquery = /*#__PURE__*/Object.freeze({
		__proto__: null,
		xQuery: xQuery
	});

	function words(str) {
	  var obj = {}, words = str.split(" ");
	  for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
	  return obj;
	}

	var bodiedOps = words("Assert BackQuote D Defun Deriv For ForEach FromFile " +
	                      "FromString Function Integrate InverseTaylor Limit " +
	                      "LocalSymbols Macro MacroRule MacroRulePattern " +
	                      "NIntegrate Rule RulePattern Subst TD TExplicitSum " +
	                      "TSum Taylor Taylor1 Taylor2 Taylor3 ToFile " +
	                      "ToStdout ToString TraceRule Until While");

	// patterns
	var pFloatForm  = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)";
	var pIdentifier = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)";

	// regular expressions
	var reFloatForm    = new RegExp(pFloatForm);
	var reIdentifier   = new RegExp(pIdentifier);
	var rePattern      = new RegExp(pIdentifier + "?_" + pIdentifier);
	var reFunctionLike = new RegExp(pIdentifier + "\\s*\\(");

	function tokenBase(stream, state) {
	  var ch;

	  // get next character
	  ch = stream.next();

	  // string
	  if (ch === '"') {
	    state.tokenize = tokenString;
	    return state.tokenize(stream, state);
	  }

	  // comment
	  if (ch === '/') {
	    if (stream.eat('*')) {
	      state.tokenize = tokenComment;
	      return state.tokenize(stream, state);
	    }
	    if (stream.eat("/")) {
	      stream.skipToEnd();
	      return "comment";
	    }
	  }

	  // go back one character
	  stream.backUp(1);

	  // update scope info
	  var m = stream.match(/^(\w+)\s*\(/, false);
	  if (m !== null && bodiedOps.hasOwnProperty(m[1]))
	    state.scopes.push('bodied');

	  var scope = currentScope(state);

	  if (scope === 'bodied' && ch === '[')
	    state.scopes.pop();

	  if (ch === '[' || ch === '{' || ch === '(')
	    state.scopes.push(ch);

	  scope = currentScope(state);

	  if (scope === '[' && ch === ']' ||
	      scope === '{' && ch === '}' ||
	      scope === '(' && ch === ')')
	    state.scopes.pop();

	  if (ch === ';') {
	    while (scope === 'bodied') {
	      state.scopes.pop();
	      scope = currentScope(state);
	    }
	  }

	  // look for ordered rules
	  if (stream.match(/\d+ *#/, true, false)) {
	    return 'qualifier';
	  }

	  // look for numbers
	  if (stream.match(reFloatForm, true, false)) {
	    return 'number';
	  }

	  // look for placeholders
	  if (stream.match(rePattern, true, false)) {
	    return 'variableName.special';
	  }

	  // match all braces separately
	  if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) {
	    return 'bracket';
	  }

	  // literals looking like function calls
	  if (stream.match(reFunctionLike, true, false)) {
	    stream.backUp(1);
	    return 'variableName.function';
	  }

	  // all other identifiers
	  if (stream.match(reIdentifier, true, false)) {
	    return 'variable';
	  }

	  // operators; note that operators like @@ or /; are matched separately for each symbol.
	  if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, true, false)) {
	    return 'operator';
	  }

	  // everything else is an error
	  return 'error';
	}

	function tokenString(stream, state) {
	  var next, end = false, escaped = false;
	  while ((next = stream.next()) != null) {
	    if (next === '"' && !escaped) {
	      end = true;
	      break;
	    }
	    escaped = !escaped && next === '\\';
	  }
	  if (end && !escaped) {
	    state.tokenize = tokenBase;
	  }
	  return 'string';
	}
	function tokenComment(stream, state) {
	  var prev, next;
	  while((next = stream.next()) != null) {
	    if (prev === '*' && next === '/') {
	      state.tokenize = tokenBase;
	      break;
	    }
	    prev = next;
	  }
	  return 'comment';
	}

	function currentScope(state) {
	  var scope = null;
	  if (state.scopes.length > 0)
	    scope = state.scopes[state.scopes.length - 1];
	  return scope;
	}

	const yacas = {
	  name: "yacas",
	  startState: function() {
	    return {
	      tokenize: tokenBase,
	      scopes: []
	    };
	  },
	  token: function(stream, state) {
	    if (stream.eatSpace()) return null;
	    return state.tokenize(stream, state);
	  },
	  indent: function(state, textAfter, cx) {
	    if (state.tokenize !== tokenBase && state.tokenize !== null)
	      return null;

	    var delta = 0;
	    if (textAfter === ']' || textAfter === '];' ||
	        textAfter === '}' || textAfter === '};' ||
	        textAfter === ');')
	      delta = -1;

	    return (state.scopes.length + delta) * cx.unit;
	  },

	  languageData: {
	    electricInput: /[{}\[\]()\;]/,
	    commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
	  }
	};

	var yacas$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		yacas: yacas
	});

	function mkZ80(ez80) {
	  var keywords1, keywords2;
	  if (ez80) {
	    keywords1 = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i;
	    keywords2 = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i;
	  } else {
	    keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i;
	    keywords2 = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i;
	  }

	  var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i;
	  var variables2 = /^(n?[zc]|p[oe]?|m)\b/i;
	  var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i;
	  var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;

	  return {
	    name: "z80",
	    startState: function() {
	      return {
	        context: 0
	      };
	    },
	    token: function(stream, state) {
	      if (!stream.column())
	        state.context = 0;

	      if (stream.eatSpace())
	        return null;

	      var w;

	      if (stream.eatWhile(/\w/)) {
	        if (ez80 && stream.eat('.')) {
	          stream.eatWhile(/\w/);
	        }
	        w = stream.current();

	        if (stream.indentation()) {
	          if ((state.context == 1 || state.context == 4) && variables1.test(w)) {
	            state.context = 4;
	            return 'variable';
	          }

	          if (state.context == 2 && variables2.test(w)) {
	            state.context = 4;
	            return 'variableName.special';
	          }

	          if (keywords1.test(w)) {
	            state.context = 1;
	            return 'keyword';
	          } else if (keywords2.test(w)) {
	            state.context = 2;
	            return 'keyword';
	          } else if (state.context == 4 && numbers.test(w)) {
	            return 'number';
	          }

	          if (errors.test(w))
	            return 'error';
	        } else if (stream.match(numbers)) {
	          return 'number';
	        } else {
	          return null;
	        }
	      } else if (stream.eat(';')) {
	        stream.skipToEnd();
	        return 'comment';
	      } else if (stream.eat('"')) {
	        while (w = stream.next()) {
	          if (w == '"')
	            break;

	          if (w == '\\')
	            stream.next();
	        }
	        return 'string';
	      } else if (stream.eat('\'')) {
	        if (stream.match(/\\?.'/))
	          return 'number';
	      } else if (stream.eat('.') || stream.sol() && stream.eat('#')) {
	        state.context = 5;

	        if (stream.eatWhile(/\w/))
	          return 'def';
	      } else if (stream.eat('$')) {
	        if (stream.eatWhile(/[\da-f]/i))
	          return 'number';
	      } else if (stream.eat('%')) {
	        if (stream.eatWhile(/[01]/))
	          return 'number';
	      } else {
	        stream.next();
	      }
	      return null;
	    }
	  };
	}
	const z80 = mkZ80(false);
	const ez80 = mkZ80(true);

	var z80$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		ez80: ez80,
		z80: z80
	});

	function mkParser(lang) {
	  return {
	    name: "mscgen",
	    startState: startStateFn,
	    copyState: copyStateFn,
	    token: produceTokenFunction(lang),
	    languageData: {
	      commentTokens: {line: "#", block: {open: "/*", close: "*/"}}
	    }
	  }
	}

	const mscgen = mkParser({
	  "keywords" : ["msc"],
	  "options" : ["hscale", "width", "arcgradient", "wordwraparcs"],
	  "constants" : ["true", "false", "on", "off"],
	  "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"],
	  "brackets" : ["\\{", "\\}"], // [ and  ] are brackets too, but these get handled in with lists
	  "arcsWords" : ["note", "abox", "rbox", "box"],
	  "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
	  "singlecomment" : ["//", "#"],
	  "operators" : ["="]
	});

	const msgenny = mkParser({
	  "keywords" : null,
	  "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
	  "constants" : ["true", "false", "on", "off", "auto"],
	  "attributes" : null,
	  "brackets" : ["\\{", "\\}"],
	  "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
	  "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
	  "singlecomment" : ["//", "#"],
	  "operators" : ["="]
	});

	const xu = mkParser({
	  "keywords" : ["msc", "xu"],
	  "options" : ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
	  "constants" : ["true", "false", "on", "off", "auto"],
	  "attributes" : ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip", "title", "deactivate", "activate", "activation"],
	  "brackets" : ["\\{", "\\}"],  // [ and  ] are brackets too, but these get handled in with lists
	  "arcsWords" : ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
	  "arcsOthers" : ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
	  "singlecomment" : ["//", "#"],
	  "operators" : ["="]
	});

	function wordRegexpBoundary(pWords) {
	  return new RegExp("^\\b(" + pWords.join("|") + ")\\b", "i");
	}

	function wordRegexp(pWords) {
	  return new RegExp("^(?:" + pWords.join("|") + ")", "i");
	}

	function startStateFn() {
	  return {
	    inComment : false,
	    inString : false,
	    inAttributeList : false,
	    inScript : false
	  };
	}

	function copyStateFn(pState) {
	  return {
	    inComment : pState.inComment,
	    inString : pState.inString,
	    inAttributeList : pState.inAttributeList,
	    inScript : pState.inScript
	  };
	}

	function produceTokenFunction(pConfig) {
	  return function(pStream, pState) {
	    if (pStream.match(wordRegexp(pConfig.brackets), true, true)) {
	      return "bracket";
	    }
	    /* comments */
	    if (!pState.inComment) {
	      if (pStream.match(/\/\*[^\*\/]*/, true, true)) {
	        pState.inComment = true;
	        return "comment";
	      }
	      if (pStream.match(wordRegexp(pConfig.singlecomment), true, true)) {
	        pStream.skipToEnd();
	        return "comment";
	      }
	    }
	    if (pState.inComment) {
	      if (pStream.match(/[^\*\/]*\*\//, true, true))
	        pState.inComment = false;
	      else
	        pStream.skipToEnd();
	      return "comment";
	    }
	    /* strings */
	    if (!pState.inString && pStream.match(/\"(\\\"|[^\"])*/, true, true)) {
	      pState.inString = true;
	      return "string";
	    }
	    if (pState.inString) {
	      if (pStream.match(/[^\"]*\"/, true, true))
	        pState.inString = false;
	      else
	        pStream.skipToEnd();
	      return "string";
	    }
	    /* keywords & operators */
	    if (!!pConfig.keywords && pStream.match(wordRegexpBoundary(pConfig.keywords), true, true))
	      return "keyword";

	    if (pStream.match(wordRegexpBoundary(pConfig.options), true, true))
	      return "keyword";

	    if (pStream.match(wordRegexpBoundary(pConfig.arcsWords), true, true))
	      return "keyword";

	    if (pStream.match(wordRegexp(pConfig.arcsOthers), true, true))
	      return "keyword";

	    if (!!pConfig.operators && pStream.match(wordRegexp(pConfig.operators), true, true))
	      return "operator";

	    if (!!pConfig.constants && pStream.match(wordRegexp(pConfig.constants), true, true))
	      return "variable";

	    /* attribute lists */
	    if (!pConfig.inAttributeList && !!pConfig.attributes && pStream.match('[', true, true)) {
	      pConfig.inAttributeList = true;
	      return "bracket";
	    }
	    if (pConfig.inAttributeList) {
	      if (pConfig.attributes !== null && pStream.match(wordRegexpBoundary(pConfig.attributes), true, true)) {
	        return "attribute";
	      }
	      if (pStream.match(']', true, true)) {
	        pConfig.inAttributeList = false;
	        return "bracket";
	      }
	    }

	    pStream.next();
	    return null
	  };
	}

	var mscgen$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		mscgen: mscgen,
		msgenny: msgenny,
		xu: xu
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser$1 = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
	  stateData: "$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",
	  goto: "!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",
	  nodeNames: "⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",
	  maxTerm: 36,
	  nodeProps: [
	    ["isolate", -3,3,13,17,""]
	  ],
	  skippedNodes: [0],
	  repeatNodeCount: 4,
	  tokenData: "'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",
	  tokenizers: [6, 7, /*@__PURE__*/new LocalTokenGroup("b~RP#q#rU~XP#q#r[~aOT~~", 17, 4), /*@__PURE__*/new LocalTokenGroup("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~", 72, 2), /*@__PURE__*/new LocalTokenGroup("[~RPwxU~ZOp~~", 11, 15), /*@__PURE__*/new LocalTokenGroup("[~RPrsU~ZOn~~", 11, 14), /*@__PURE__*/new LocalTokenGroup("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~", 66, 35), /*@__PURE__*/new LocalTokenGroup("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~", 66, 33)],
	  topRules: {"Content":[0,1],"Attribute":[1,7]},
	  tokenPrec: 157
	});

	const exprParser$1 = /*@__PURE__*/javascriptLanguage.parser.configure({
	    top: "SingleExpression"
	});
	const baseParser$1 = /*@__PURE__*/parser$1.configure({
	    props: [
	        /*@__PURE__*/styleTags({
	            Text: tags$1.content,
	            Is: tags$1.definitionOperator,
	            AttributeName: tags$1.attributeName,
	            VueAttributeName: tags$1.keyword,
	            Identifier: tags$1.variableName,
	            "AttributeValue ScriptAttributeValue": tags$1.attributeValue,
	            Entity: tags$1.character,
	            "{{ }}": tags$1.brace,
	            "@ :": tags$1.punctuation
	        })
	    ]
	});
	const exprMixed$1 = { parser: exprParser$1 };
	const textParser$1 = /*@__PURE__*/baseParser$1.configure({
	    wrap: /*@__PURE__*/parseMixed((node, input) => node.name == "InterpolationContent" ? exprMixed$1 : null),
	});
	const attrParser$1 = /*@__PURE__*/baseParser$1.configure({
	    wrap: /*@__PURE__*/parseMixed((node, input) => node.name == "AttributeScript" ? exprMixed$1 : null),
	    top: "Attribute"
	});
	const textMixed$1 = { parser: textParser$1 }, attrMixed$1 = { parser: attrParser$1 };
	const baseHTML$1 = /*@__PURE__*/html();
	function makeVue(base) {
	    return base.configure({
	        dialect: "selfClosing",
	        wrap: parseMixed(mixVue)
	    }, "vue");
	}
	/**
	A language provider for Vue templates.
	*/
	const vueLanguage = /*@__PURE__*/makeVue(baseHTML$1.language);
	function mixVue(node, input) {
	    switch (node.name) {
	        case "Attribute":
	            return /^(@|:|v-)/.test(input.read(node.from, node.from + 2)) ? attrMixed$1 : null;
	        case "Text":
	            return textMixed$1;
	    }
	    return null;
	}
	/**
	Vue template support.
	*/
	function vue(config = {}) {
	    let base = baseHTML$1;
	    if (config.base) {
	        if (config.base.language.name != "html" || !(config.base.language instanceof LRLanguage))
	            throw new RangeError("The base option must be the result of calling html(...)");
	        base = config.base;
	    }
	    return new LanguageSupport(base.language == baseHTML$1.language ? vueLanguage : makeVue(base.language), [
	        base.support,
	        base.language.data.of({ closeBrackets: { brackets: ["{", '"'] } })
	    ]);
	}

	var index$1 = /*#__PURE__*/Object.freeze({
		__proto__: null,
		vue: vue,
		vueLanguage: vueLanguage
	});

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const Text = 1,
	  attributeContentSingle = 33,
	  attributeContentDouble = 34,
	  scriptAttributeContentSingle = 35,
	  scriptAttributeContentDouble = 36;

	const text = /*@__PURE__*/new ExternalTokenizer(input => {
	    let start = input.pos;
	    for (;;) {
	        if (input.next == 10 /* Ch.Newline */) {
	            input.advance();
	            break;
	        }
	        else if (input.next == 123 /* Ch.BraceL */ && input.peek(1) == 123 /* Ch.BraceL */ || input.next < 0) {
	            break;
	        }
	        input.advance();
	    }
	    if (input.pos > start)
	        input.acceptToken(Text);
	});
	function attrContent(quote, token, script) {
	    return new ExternalTokenizer(input => {
	        let start = input.pos;
	        while (input.next != quote && input.next >= 0 &&
	            (script || input.next != 38 /* Ch.Ampersand */ && (input.next != 123 /* Ch.BraceL */ || input.peek(1) != 123 /* Ch.BraceL */)))
	            input.advance();
	        if (input.pos > start)
	            input.acceptToken(token);
	    });
	}
	const attrSingle = /*@__PURE__*/attrContent(39 /* Ch.SingleQuote */, attributeContentSingle, false);
	const attrDouble = /*@__PURE__*/attrContent(34 /* Ch.DoubleQuote */, attributeContentDouble, false);
	const scriptAttrSingle = /*@__PURE__*/attrContent(39 /* Ch.SingleQuote */, scriptAttributeContentSingle, true);
	const scriptAttrDouble = /*@__PURE__*/attrContent(34 /* Ch.DoubleQuote */, scriptAttributeContentDouble, true);

	// This file was generated by lezer-generator. You probably shouldn't edit it.
	const parser = /*@__PURE__*/LRParser.deserialize({
	  version: 14,
	  states: "(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<<GrOOQO<<Gr<<GrOOQO1G/[1G/[OOOS-E6x-E6xOOQO1G.}1G.}OOOQ-E6y-E6yOOQOAN=^AN=^",
	  stateData: "&d~OvOS~OPROSQOVROWRO~OZTO[XO^VOaUOhWO~OR]OU^O~O[`O^aO~O[bO~O[cO~O[dO~ObeO~ObfO~ObgO~ORhO~O]kOwiO~O[lO~O_mO~OynOzoO~OysOztO~O[uO~O]wOwiO~O_yOwiO~OtzO~Os|O~OSQOV!OOW!OOr!OOy!QO~OSQOV!ROW!ROq!ROz!QO~O_!TOwiO~O]!UO~Oy!VO~Oz!VO~OSQOV!OOW!OOr!OOy!XO~OSQOV!ROW!ROq!ROz!XO~O]!ZO~O",
	  goto: "#dyPPPPPzPPPP!WPPPPP!WPP!Z!^!a!d!dP!g!j!m!p!v#Q#WPPPPPPPP#^SROSS!Os!PT!Rt!SRYPRqeR{nR}oRZPRqfR[PRqgQSOR_SQj`SvjxRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",
	  nodeNames: "⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue",
	  maxTerm: 42,
	  nodeProps: [
	    ["openedBy", 3,"{{",15,"("],
	    ["closedBy", 4,"}}",14,")"],
	    ["isolate", -4,5,19,25,27,""]
	  ],
	  skippedNodes: [0],
	  repeatNodeCount: 4,
	  tokenData: "0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}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S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",
	  tokenizers: [text, attrSingle, attrDouble, scriptAttrSingle, scriptAttrDouble, 0, 1],
	  topRules: {"Content":[0,2],"Attribute":[1,9]},
	  tokenPrec: 0
	});

	const exprParser = /*@__PURE__*/javascriptLanguage.parser.configure({
	    top: "SingleExpression"
	});
	const baseParser = /*@__PURE__*/parser.configure({
	    props: [
	        /*@__PURE__*/styleTags({
	            Text: tags$1.content,
	            Is: tags$1.definitionOperator,
	            AttributeName: tags$1.attributeName,
	            "AttributeValue ExpressionAttributeValue StatementAttributeValue": tags$1.attributeValue,
	            Entity: tags$1.character,
	            InvalidEntity: tags$1.invalid,
	            "BoundAttributeName/Identifier": tags$1.attributeName,
	            "EventName/Identifier": /*@__PURE__*/tags$1.special(tags$1.attributeName),
	            "ReferenceName/Identifier": tags$1.variableName,
	            "DirectiveName/Identifier": tags$1.keyword,
	            "{{ }}": tags$1.brace,
	            "( )": tags$1.paren,
	            "[ ]": tags$1.bracket,
	            "# '*'": tags$1.punctuation
	        })
	    ]
	});
	const exprMixed = { parser: exprParser }, statementMixed = { parser: javascriptLanguage.parser };
	const textParser = /*@__PURE__*/baseParser.configure({
	    wrap: /*@__PURE__*/parseMixed((node, input) => node.name == "InterpolationContent" ? exprMixed : null),
	});
	const attrParser = /*@__PURE__*/baseParser.configure({
	    wrap: /*@__PURE__*/parseMixed((node, input) => {
	        var _a;
	        return node.name == "InterpolationContent" ? exprMixed
	            : node.name != "AttributeInterpolation" ? null
	                : ((_a = node.node.parent) === null || _a === void 0 ? void 0 : _a.name) == "StatementAttributeValue" ? statementMixed : exprMixed;
	    }),
	    top: "Attribute"
	});
	const textMixed = { parser: textParser }, attrMixed = { parser: attrParser };
	const baseHTML = /*@__PURE__*/html();
	function mkAngular(language) {
	    return language.configure({ wrap: parseMixed(mixAngular) }, "angular");
	}
	/**
	A language provider for Angular Templates.
	*/
	const angularLanguage = /*@__PURE__*/mkAngular(baseHTML.language);
	function mixAngular(node, input) {
	    switch (node.name) {
	        case "Attribute":
	            return /^[*#(\[]|\{\{/.test(input.read(node.from, node.to)) ? attrMixed : null;
	        case "Text":
	            return textMixed;
	    }
	    return null;
	}
	/**
	Angular Template language support.
	*/
	function angular(config = {}) {
	    let base = baseHTML;
	    if (config.base) {
	        if (config.base.language.name != "html" || !(config.base.language instanceof LRLanguage))
	            throw new RangeError("The base option must be the result of calling html(...)");
	        base = config.base;
	    }
	    return new LanguageSupport(base.language == baseHTML.language ? angularLanguage : mkAngular(base.language), [base.support, base.language.data.of({
	            closeBrackets: { brackets: ["[", "{", '"'] },
	            indentOnInput: /^\s*[\}\]]$/
	        })]);
	}

	var index = /*#__PURE__*/Object.freeze({
		__proto__: null,
		angular: angular,
		angularLanguage: angularLanguage
	});

	exports.MODULE_NAME = MODULE_NAME;
	exports.MODULE_VERSION = MODULE_VERSION;
	exports.WidgetModel = WidgetModel;
	exports.WidgetView = WidgetView;

}));
