/*
		*	attributes
		*/

/*
		*	cdata
		*/

/*
		*	comments
		*/

/*
		*	declarations
		*/

/*
		*	processing instructions
		*/

/*
		* entities
		*/

/*
		* script
		*/

/*
		* special tags
		*/

/*
		* style
		*/

/*
	Callbacks:

	oncdataend,
	oncdatastart,
	onclosetag,
	oncomment,
	oncommentend,
	onerror,
	onopentag,
	onprocessinginstruction,
	onreset,
	ontext
*/

/*
	Options:

	xmlMode: Disables the special behavior for script/style tags (false by default)
	lowerCaseAttributeNames: call .toLowerCase for each attribute name (true if xmlMode is `false`)
	lowerCaseTags: call .toLowerCase for each tag name (true if xmlMode is `false`)
*/

/*
         * ## Move above the path
         *
         * If move node forward to the deeper
         *
         * ```js
         * path       = [1,0]
         * op.path    = [1]
         * op.newPath = [2,0]
         * ```
         *
         * 1. move new path to the left at op.path's level:    [2,0] -> [1,0]
         * 2. link sub path to the path:                       [1,0] + [0] -> [1,0,0]
         *
         * ```txt
         *         [  ]                                     [ ]
         *      __/ | \__                                __/  |__
         *   [0]   [1]  [2]    --- transform -->      [0]        [1]
         *         /     /                                       / \
         *    *[1,0]*  [2,0]                                [1,0]  [1,1]
         *              /                                    /      /
         *           [2,0,0]                          *[1,0,0]*   [1,1,0]
         * ```
         *
         * Else
         *
         * ```js
         * path       = [1,0]
         * op.path    = [1]
         * op.newPath = [0]
         * ```
         *
         * link sub path to new path:                                [0] + [0] -> [0,0]
         *
         * ```
         *         []                                         []
         *      __/ \__                                    __/ |__
         *   [0]       [1]       --- transform -->      [0]       [1]
         *              /                                /
         *          *[1,0]*                           *[0,0]*
         * ```
         */

/*
         * ## Move at the path
         *
         * If move forward to the deeper
         *
         * ```js
         * path       = [1]
         * op.path    = [1]
         * op.newPath = [2,0]
         * ```
         *
         * 1. move new path backward at op.path's level:      [2,0] -> [1,0]
         * 2. move path to the new path:                         [1]   -> [1,0]
         *
         * ```txt
         *         [  ]                                         []
         *      __/ | \__                                      / \
         *   [0]  *[1]*  [2]    --- transform -->           [0]  [1]
         *               /                                       /  \
         *            [2,0]                                 *[1,0]*  [1,1]
         * ```
         *
         * Else
         *
         * ```js
         * path       = [1,0]
         * op.path    = [1,0]
         * op.newPath = [2,0]
         * ```
         *
         * move path to new path:                               [1,0] -> [2,0]
         *
         * ```txt
         *         [  ]                                         [ ]
         *      __/ | \__                                    __/ | \__
         *   [0]   [1]   [2]    --- transform -->         [0]   [1]   [2]
         *          /     /                                          /  \
         *      *[1,0]* [2,0]                                  *[2,0]* [2,1]
         * ```
         */

/*
         * ## Move to path.
         *
         * ```js
         * path       = [1]
         * op.path    = [2]
         * op.newPath = [1]
         * ```
         *
         * move path to the right at op.newPath's level:      [1] -> [2]
         *
         * ```txt
         *        [ ]                                    [ ]
         *     __/ | \__                              __/ | \__
         *  [0]  *[1]*  [2]   --- transform -->     [0]  [1]   *[2]*
         * ```
         *
         * ## Move to path's younger.
         *
         * ```js
         * path       = [1,0]
         * op.path    = [1,1]
         * op.newPath = [0]
         * ```
         *
         * move path to the right at op.newPath's level:      [1,0] -> [2,0]
         *
         * ```txt
         *        [ ]                                  [ ]
         *     __/  \__                             __/ | \__
         *  [0]      [1]    --- transform -->    [0]   [1]   [2]
         *           /  \                                     /
         *      *[1,0]* [1,1]                             *[2,0]*
         * ```
         *
         * ## Move to path's ancestor.
         *
         * ```js
         * path       = [1,0]
         * op.path    = [0,0]
         * op.newPath = [1]
         * ```
         *
         * move path to the right at op.newPath's level:      [1,0] -> [2,0]
         *
         * ```txt
         *        [ ]                                    [ ]
         *     __/  \__                               __/ | \__
         *  [0]        [1]    --- transform -->    [0]   [1]   [2]
         *   /          /                                       /
         * [0,0]    *[1,0]*                                 *[2,0]*
         * ```
         *
         */

/*
         * ## Split above
         *
         * If split happened before the path at op.path's level
         *
         * ```js
         * path        = [1,0,2]
         * op.path     = [1,0]
         * op.position = 1
         * ```
         *
         * 1. move path foward at op.path's level: [1,0,2] -> [1,1,2]
         * 2. move path backward to the split position:    [1,1,2] -> [1,1,1]
         *
         * ```txt
         *              []                                          []
         *           __/ \__                                     __/  \__
         *        [0]       [1]      --- transform -->        [0]        [1]
         *                   /                                        __/   \__
         *                [1,0]                                  [1,0]         [1,1]
         *            ____/ | \____                                /           /   \
         *     [1,0,0] s [1,0,1]   *[1,0,2]*                  [1,0,0]   [1,1,0]    *[1,1,1]*
         * ```
         */

/*
    if (nIdx > 0 && (nIdx * 4 / 3) % 76 === 0) { sB64Enc += "\r\n"; }
    */

/*
   * Flattens a rule set into valid CSS
   * Hashes it, wraps the whole chunk in a .hash1234 {}
   * Returns the hash to be injected on render()
   * */

/*
  Format attributes
*/

/*
  Module dependencies
*/

/*
  Self-enclosing tags (stolen from node-htmlparser)
*/

/*
  connect is a facade over connectAdvanced. It turns its args into a compatible
  selectorFactory, which has the signature:

    (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
  
  connect passes its args to connectAdvanced as options, which will in turn pass them to
  selectorFactory each time a Connect component instance is instantiated or hot reloaded.

  selectorFactory returns a final props selector from its mapStateToProps,
  mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
  mergePropsFactories, and pure args.

  The resulting final props selector is called by the Connect component instance whenever
  it receives new props or store state.
 */

/*
  selectorFactory is a func that is responsible for returning the selector function used to
  compute new props from state, props, and dispatch. For example:
      export default connectAdvanced((dispatch, options) => (state, props) => ({
      thing: state.things[props.thingId],
      saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
    }))(YourComponent)
    Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
  outside of their selector as an optimization. Options passed to connectAdvanced are passed to
  the selectorFactory, along with displayName and WrappedComponent, as the second argument.
    Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
  props. Do not use connectAdvanced directly without memoizing results between calls to your
  selector, otherwise the Connect component will re-render on every state or props change.
*/

/*
 * Need to make sure that buffer isn't trying to write out of bounds.
 */

/*
 ComponentStyle is all the CSS-specific stuff, not
 the React-specific stuff.
 */

/*
var TERMINATOR_RE = /[\n!#$%&*+\-:<=>@[\\\]^_`{}~]/;

module.exports = function text(state, silent) {
  var pos = state.pos,
      idx = state.src.slice(pos).search(TERMINATOR_RE);

  // first char is terminator -> empty text
  if (idx === 0) { return false; }

  // no terminator -> text till end of string
  if (idx < 0) {
    if (!silent) { state.pending += state.src.slice(pos); }
    state.pos = state.src.length;
    return true;
  }

  if (!silent) { state.pending += state.src.slice(pos, pos + idx); }

  state.pos += idx;

  return true;
};*/

/* ! */

/* " */

/* # */

/* #__PURE__ */

/* #endregion */

/* #region  actionTypes */

/* #region  actions */

/* $ */

/* % */

/* & */

/* ' */

/* ( */

/* (nPart - 252 << 30) may be not so safe in ECMAScript! So...: */

/* ) */

/* * */

/* + */

/* , */

/* - */

/* -------------------- *
 * -- initialization -- *
 * -------------------- */

/* ---------------------- *
 * -- decode functions -- *
 * ---------------------- */

/* ----------------------- *
 * -- utility functions -- *
 * ----------------------- */

/* ----------------------------- *
 * -- block inflate functions -- *
 * ----------------------------- */

/* --------------------------------------------------- *
 * -- uninitialized global data (static structures) -- *
 * --------------------------------------------------- */

/* . */

/* .APPLICATION_CANGJIE_FRAGMENT */

/* .APPLICATION_DING_SHEET */

/* .APPLICATION_GOOGLE_DOCS_CLIP */

/* .APPLICATION_SLATE_FRAGMENT */

/* .APPLICATION_VSCODE */

/* .Block */

/* .Block.DEFAULT_TYPE */

/* .Block.create */

/* .Block.isBlock */

/* .BlockquoteWrapper */

/* .BorderStyleEnum */

/* .CONTAINERS.includes */

/* .CanPreviewFileTypes.includes */

/* .CardContainer */

/* .CardContentWrapper */

/* .CardIconWrapper */

/* .CardLayoutContainer */

/* .CardPlaceholderContainer */

/* .Commands.focus */

/* .Commands.insertNodeByKey */

/* .Commands.moveNodeByKey */

/* .Commands.moveToStartOfNode */

/* .Commands.removeNodeByKey */

/* .Commands.replaceNodeByKey */

/* .Container */

/* .Container.TYPE */

/* .Container.createContainer */

/* .Container.isContainer */

/* .ContentDesc */

/* .ContentHeader */

/* .DATA_CLIPBORAD_CANGJIE */

/* .DEFAULT_LANG */

/* .Document.create */

/* .Document.isDocument */

/* .EToolBoxLayout.Horizontal */

/* .EToolBoxLayout.Single */

/* .EToolBoxLayout.Vertical */

/* .EToolbarMode.doubleLine */

/* .EToolbarMode.singleLine */

/* .EXTRA_PADDING */

/* .EditorContent */

/* .EditorFooter */

/* .EditorWrapper */

/* .Element.isElement */

/* .FileTypeMap */

/* .GroupWrapperContext */

/* .HTML_OPEN_CLOSE_TAG_RE */

/* .HTML_TAG_RE */

/* .INDENT_SIZE */

/* .IconButton */

/* .IconButtonDefaultProps */

/* .IconUrlMap */

/* .IconUrlMap.app */

/* .IndUtil.fromBlock */

/* .Injection.create */

/* .Injection.injectIntoNode */

/* .Inline */

/* .Inline.isInline */

/* .InlineToolbarContext.Provider */

/* .ItemInput */

/* .ItemRadio */

/* .LIST_GROUP_TYPE */

/* .MAPPING */

/* .Mark.create */

/* .Mark.isMark */

/* .MobileCardContentInnerWrapper */

/* .MobileEmbedCardWrapper */

/* .NoSupportPlaceholder */

/* .OverLayContext */

/* .PreviewIconWrapper */

/* .ROMAN_EXTRA_INDENT */

/* .ROMAN_FORMAT.includes */

/* .RadioWrapper */

/* .RemoveButton */

/* .SINGLE */

/* .SPRITE */

/* .SYMBOL_CONTENT_SPACING */

/* .SaveButton */

/* .ScrollableContainerContext */

/* .ScrollableContentContext */

/* .SpacingUtil.getLineHeightFromSpacing */

/* .SpacingUtil.toStyle */

/* .StringDecoder */

/* .SzUtil.fromHeadingType */

/* .TASK_BOX_WIDTH */

/* .TEXT_HTML */

/* .TEXT_PLAIN */

/* .TableColsWidthContext */

/* .TemplateButton.isTemplateButton */

/* .TemplateButton.isVoid */

/* .Text.create */

/* .Text.isEmptyText */

/* .Text.isText */

/* .Text.isTextList */

/* .TextMeasure.measureTextWidth */

/* .Toolbar */

/* .ToolbarBox */

/* .ToolbarContext */

/* .URLLinkCard */

/* .adjustColsWidth */

/* .attrsToMarks */

/* .blocks */

/* .cardFactory */

/* .convertSymbolStyle */

/* .createDict */

/* .createMarksPlugin */

/* .document.normalize */

/* .domUtils.findDOMNode */

/* .domUtils.splitRows */

/* .environment.IS_MOBILE */

/* .environment.IS_SAFARI */

/* .environment.getChromeVersion */

/* .fontSize.DEFAULT */

/* .fontSize.MAX */

/* .fontSize.MIN */

/* .fontSize.PARTICLE */

/* .formatSize */

/* .generateSymbol */

/* .getData */

/* .getFileTypeForRead */

/* .getHeadingAncestors */

/* .getInnerWidth */

/* .getMinTableColWidthForBlockLinkCard */

/* .getMo */

/* .headTypeConvert */

/* .inlines */

/* .isEmptyObject */

/* .isFirstFoldNode */

/* .isFoldGroupNode */

/* .isInListGroup */

/* .isInline */

/* .isJustCreated */

/* .isListGroupAvailable */

/* .isNaN */

/* .isText */

/* .lineHeight.ACTUAL_MAP */

/* .lineHeight.DEFAULT */

/* .marksToAttrs */

/* .marksToStyle */

/* .normalizeLink */

/* .openLink */

/* .parseJsonMLToValue */

/* .postProcess */

/* .setJustCreated */

/* .setStyleWithMark */

/* .tokenize */

/* .unitsConverter.toPT */

/* .unitsConverter.toPX */

/* .useZoom */

/* .uuid */

/* / */

/* 0 */

/* 1 */

/* 1em quad */

/* 9 */

/* : */

/* ; */

/* < */

/* = */

/* > */

/* ? */

/* @ */

/* APPLICATION_CANGJIE_FRAGMENT */

/* APPLICATION_SLATE_FRAGMENT */

/* APPLICATION_VSCODE */

/* AbstractSmallIcon */

/* AddLinkButton */

/* Block */

/* Block.DEFAULT_TYPE */

/* Block.create */

/* Block.isBlock */

/* Block.isLeafBlock */

/* BorderStyleEnum */

/* Built-in method references for those with the same name as other `lodash` methods. */

/* Built-in method references that are verified to be native. */

/* CARET_HEIGHT */

/* CangjieDataTransfer */

/* CangjieDataTransfer.create */

/* CangjieSelectEvent */

/* CardContainer */

/* CardContentInnerWrapper */

/* CardContentWrapper */

/* CardLayout */

/* CardToolbarWrapper */

/* CardWrapper */

/* ChildrenBoxSize */

/* Circle */

/* ClipboardErrorEnum.PASTE_FAILED */

/* ClipboardErrorEnum.PASTE_TIME_OUT */

/* ColorBlocks */

/* ColorBlocks.SUB_TYPE */

/* Commands.addMarkAtRange */

/* Commands.addMarkByKey */

/* Commands.blur */

/* Commands.focus */

/* Commands.insertBlock */

/* Commands.insertEmptyBlock */

/* Commands.insertFragment */

/* Commands.insertInline */

/* Commands.insertInlineAtRange */

/* Commands.insertNodeByKey */

/* Commands.insertNodeByPath */

/* Commands.insertText */

/* Commands.moveAnchorBackward */

/* Commands.moveAnchorToStartOfNode */

/* Commands.moveFocusToEndOfNode */

/* Commands.moveForward */

/* Commands.moveNodeByKey */

/* Commands.moveNodeByPath */

/* Commands.moveToEnd */

/* Commands.moveToEndOfInline */

/* Commands.moveToEndOfNode */

/* Commands.moveToEndOfPreviousText */

/* Commands.moveToFocus */

/* Commands.moveToRangeOfNode */

/* Commands.moveToStartOfNextBlock */

/* Commands.moveToStartOfNextText */

/* Commands.moveToStartOfNode */

/* Commands.removeNodeByKey */

/* Commands.removeNodeByPath */

/* Commands.replaceNodeByKey */

/* Commands.select */

/* Commands.setNodeByKey */

/* Commands.setNodeByPath */

/* Commands.splitDescendantsByKey */

/* Commands.unwrapInline */

/* Commands.wrapInline */

/* CommonFormatUtil.getDefaultHeadStyle */

/* CommonFormatUtil.replaceObject */

/* Container */

/* Container.TYPE */

/* Container.isContainer */

/* ContainerWidthResizeContext.Provider */

/* Content */

/* ContentDesc */

/* ContentHeader */

/* ContextMenu.ACTION_COPY */

/* Controller.create */

/* Controller.useController */

/* DATA_CLIPBORAD_CANGJIE */

/* DATA_LINK_HREF_CANGJIE */

/* DEFAULT_BULLET_LIST_ARRAY */

/* DEFAULT_BULLET_LIST_ARRAY.0 */

/* DEFAULT_LANGUAGE */

/* DEFAULT_NUMBER_LIST_ARRAY */

/* DEFAULT_NUMBER_LIST_ARRAY.0 */

/* DEFAULT_NUMBER_LIST_ARRAY.2 */

/* DEFAULT_PASTE_MODES */

/* DEFAULT_STICKERS */

/* DEFAULT_SZ */

/* DEFAULT_THEME */

/* DOCUMENT */

/* DataMark.create */

/* DataMark.isDataMark */

/* Decoration.create */

/* Decoration.fromJSON */

/* DeleteLinkButton */

/* DisableWrap */

/* Document.create */

/* Document.isDocument */

/* DoubleLineToolbar */

/* EToolbarMode.doubleLine */

/* EToolbarMode.singleLine */

/* EXTRA_PADDING */

/* EdgePoint.AFTER */

/* EdgePoint.BEFORE */

/* Either execute or defer the function */

/* Element.isElement */

/* EmojiMenuButton */

/* ErrorDesc */

/* FileIconMap */

/* FileTypeMap */

/* FileTypeMap.Audio */

/* FileTypeMap.DingDoc */

/* FileTypeMap.DingSheet */

/* FileTypeMap.WhiteBoard */

/* Format: eventname: number of arguments */

/* GRADIENT_COLOR_STYLE */

/* GroupWrapperContext.Provider */

/* Handle objects */

/* Handle other components */

/* INDENT_SIZE */

/* IconBox */

/* IconButton */

/* IconButtonDefaultProps */

/* IconMenu */

/* IconSelect */

/* IconSelectDefaultProps */

/* If config methods are called, wrap up a new template function and merge options */

/* Injection */

/* Injection.create */

/* Injection.injectIntoNode */

/* Inline.create */

/* Inline.fromJSON */

/* Inline.isInline */

/* InlineToolbar */

/* InlineToolbarContext */

/* InlineToolbarContext.Consumer */

/* LETTER_LIST */

/* LIST_GROUP_TYPE */

/* Link */

/* LinkCardWrapper */

/* LinkHref */

/* LinkHrefWrapper */

/* MAPPING */

/* MARKDOWN_GRAMMER_REGEXP.test */

/* MATCH_FORMAT */

/* MAX_HEIGHT */

/* MIN_COL_WIDTH */

/* MS_OFFICES.includes */

/* MS_WORD */

/* Mark.create */

/* Mark.fromJSON */

/* Mark.isMark */

/* MarksOptionContext.Provider */

/* MenuFoldedContentContainer */

/* Modify/inject new props at runtime */

/* MoreMenuIconContainer */

/* Node.ELEMENT_TYPE */

/* Node.js helper references. */

/* OverLayContext */

/* OverLayContext.Provider */

/* PASTE_DECORATION */

/* PASTE_MODES.markdownToDoc */

/* PageBorderDisplay */

/* PageBorderOffsetFrom */

/* PageBorderZOrder */

/* PastePanel */

/* Path.compare */

/* Path.increment */

/* Path.isAfter */

/* Path.isBefore */

/* PlaceholderWrapper */

/* PluginRoles.comment */

/* PluginRoles.link */

/* PluginRoles.linkDelete */

/* PluginRoles.sticker */

/* Point.create */

/* Point.createFromParams */

/* PreviewSmallIcon */

/* Provider */

/* Queries */

/* Queries.pointAtDistance */

/* Queries.pointAtEndOfNode */

/* Queries.pointAtStartOfNode */

/* ROMAN_EXTRA_INDENT */

/* RangeSelection.create */

/* RangeSelection.fromJSON */

/* RangeSelection.selectWordAtPoint */

/* RefBlockStatus */

/* RefBlockStatus.deleted */

/* RefBlockStatus.forbidden */

/* RefBlockStatus.loading */

/* RefBlockStatus.normal */

/* RefBlockStatus.readOnly */

/* SOURCE_FROMAT */

/* SYMBOL_STYLE */

/* ScrollableContainerContext.Provider */

/* ScrollableContentContext.Provider */

/* SelectGalleryBox */

/* Selection.create */

/* Selection.isValidRangeSelection */

/* SelectionSlot */

/* SingleLineToolbar */

/* SpacingUtil.fromHtml */

/* SpacingUtil.toStyle */

/* StyleIcon */

/* StyleSelectFontBox */

/* StyleSelectIconContainer */

/* SzUtil.FONTSIZE_BIGGER */

/* SzUtil.fromHeadingType */

/* SzUtil.fromMark */

/* SzUtil.toPt */

/* TABLE_ADJUST_COLS_WIDTH */

/* TABLE_SET_MIN_COLS_WIDTH_DATA */

/* TEXT_FORMAT */

/* TEXT_HTML */

/* TEXT_PLAIN */

/* TOOL_SIZE.LARGE */

/* TOOL_SIZE.MEDIUM */

/* TOOL_SIZE.SMALL */

/* TagWrapper */

/* TemplateButton */

/* Text.create */

/* Text.isEmptyText */

/* Text.isText */

/* Text.isTextList */

/* TextMeasure.measureTextWidth */

/* TextPoint.create */

/* TextSmallIcon */

/* This is callable directly as a template function */

/* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
 * counterparts */

/* ToolBox */

/* ToolBoxLayoutMode */

/* ToolBoxLayoutMode.single */

/* ToolBoxLayoutMode.vertical */

/* ToolGroup */

/* ToolLine */

/* Toolbar */

/* ToolbarContainer */

/* ToolbarContext */

/* ToolbarContext.Provider */

/* ToolbarDivider */

/* ToolbarIconWrapper */

/* ToolbarMode */

/* ToolbarMode.double */

/* ToolbarMode.inline */

/* ToolbarMode.single */

/* ToolbarWrapper */

/* URLLinkCard */

/* Uncomment the following line in order to split the output in lines 76-character long: */

/* Value.create */

/* ViewMark.create */

/* ViewMark.isViewMark */

/* We depend on components having unique IDs */

/* YUQUE */

/* Z+1 */

/* [ */

/* ["default"] */

/* ["default"].Buffer */

/* ["default"].DEFAULT_SHD_STYLES */

/* ["default"].Date.now */

/* ["default"].Heading1.TYPE */

/* ["default"].Heading1.create */

/* ["default"].Heading2.TYPE */

/* ["default"].Heading2.create */

/* ["default"].Heading3.TYPE */

/* ["default"].Heading3.create */

/* ["default"].Heading4.TYPE */

/* ["default"].Heading4.create */

/* ["default"].Heading5.TYPE */

/* ["default"].Heading5.create */

/* ["default"].Heading6.TYPE */

/* ["default"].Heading6.create */

/* ["default"].PLACEHOLDER_LINK_PADDING_HORIZONTAL */

/* ["default"].PLACEHOLDER_LINK_PADDING_VERTICAL */

/* ["default"].TYPE */

/* ["default"].TYPES */

/* ["default"].TableCell.TYPE */

/* ["default"].TableCell.isTableCell */

/* ["default"].TableRow.TYPE */

/* ["default"].TableRow.isTableRow */

/* ["default"].actions.LINK_CARD_COPY_LINK */

/* ["default"].actions.copyBlockLinkCard */

/* ["default"].create */

/* ["default"].defaultAfterAutospacing */

/* ["default"].error */

/* ["default"].filterChildren */

/* ["default"].fromRatio */

/* ["default"].get */

/* ["default"].hr.height */

/* ["default"].isBold */

/* ["default"].isCard */

/* ["default"].isCode */

/* ["default"].isColor */

/* ["default"].isConcatSpreadable */

/* ["default"].isDstrike */

/* ["default"].isEm */

/* ["default"].isEmbed */

/* ["default"].isFonts */

/* ["default"].isHeading */

/* ["default"].isHighlight */

/* ["default"].isHr */

/* ["default"].isImage */

/* ["default"].isInlineCode */

/* ["default"].isInlinePlaceholder */

/* ["default"].isItalic */

/* ["default"].isKern */

/* ["default"].isLink */

/* ["default"].isMention */

/* ["default"].isOnlineVideo */

/* ["default"].isParagraph */

/* ["default"].isPlaceholder */

/* ["default"].isRefBlock */

/* ["default"].isRefer */

/* ["default"].isShd */

/* ["default"].isSpacing */

/* ["default"].isSticker */

/* ["default"].isStrike */

/* ["default"].isSz */

/* ["default"].isTable */

/* ["default"].isTag */

/* ["default"].isText */

/* ["default"].isUnderline */

/* ["default"].isVertAlign */

/* ["default"].isVoid */

/* ["default"].keys */

/* ["default"].keys.IE_PROTO */

/* ["default"].link */

/* ["default"].link.locale */

/* ["default"].process */

/* ["default"].prototype */

/* ["default"].set */

/* ["default"].spacing.defaultAfterAutospacing */

/* ["default"].spacing.defaultBeforeAutospacing */

/* ["default"].spacing.defaultLinePitch */

/* ["default"].transformShd */

/* ["default"].utils.copyLink */

/* ["default"]["margin-left"] */

/* ["default"]["margin-right"] */

/* \ */

/* \n */

/* ] */

/* ^ */

/* _ */

/* ` */

/* a */

/* attrsToMarks */

/* binding */

/* blockTypes */

/* build base table */

/* build bits table */

/* build code length tree */

/* build dynamic trees */

/* build extra bits and base tables */

/* build fixed distance tree */

/* build fixed huffman trees */

/* build fixed length tree */

/* build the fixed huffman trees */

/* calcBackgroundWidth */

/* calcFoldBoxPosition */

/* calcMultibarPosition */

/* calcuSize */

/* check for end of block */

/* check if tag is empty */

/* check length */

/* classnames */

/* clear code length count table */

/* compute offset table for distribution sort */

/* constants.MIME_TYPES */

/* constants.Selector */

/* constants.Selector.content */

/* constants.Selector.key */

/* constants.Selector.leafBlock */

/* constants.Selector.nonSelect */

/* constants.Z_INDEX_CONTEXTMENU */

/* convertBorderToData */

/* convertSymbolStyle */

/* copy block */

/* copy match */

/* copy previous code length 3-6 times (read 2 bits) */

/* create code->symbol translation table (symbols sorted by code) */

/* createDict */

/* createEmptyParagraph */

/* createEmptyText */

/* createInjectToNode */

/* createStrictSchema */

/* createTextWithString */

/* cssBorderParse */

/* debounce */

/* decode code lengths for the dynamic trees */

/* decompress block */

/* decompress block with dynamic huffman trees */

/* decompress block with fixed huffman trees */

/* decompress uncompressed block */

/* default */

/* default.DEFAULT_SHD_STYLES */

/* default.Heading1 */

/* default.Heading2 */

/* default.Heading3 */

/* default.Heading4 */

/* default.Heading5 */

/* default.Heading6 */

/* default.TYPE */

/* default.VERSION */

/* default.add */

/* default.after */

/* default.apply */

/* default.ary */

/* default.assign */

/* default.assignIn */

/* default.assignInWith */

/* default.assignWith */

/* default.at */

/* default.attempt */

/* default.background-color */

/* default.before */

/* default.bind */

/* default.bindAll */

/* default.bindKey */

/* default.blockquote */

/* default.border */

/* default.border-radius */

/* default.camelCase */

/* default.capitalize */

/* default.castArray */

/* default.ceil */

/* default.chain */

/* default.chunk */

/* default.clamp */

/* default.clone */

/* default.cloneDeep */

/* default.cloneDeepWith */

/* default.cloneWith */

/* default.code */

/* default.code.margin-bottom */

/* default.code.margin-left */

/* default.code.margin-right */

/* default.code.margin-top */

/* default.compact */

/* default.concat */

/* default.cond */

/* default.conforms */

/* default.conformsTo */

/* default.constant */

/* default.constants.DEFAULT_PAGE_WIDTH */

/* default.countBy */

/* default.create */

/* default.curry */

/* default.curryRight */

/* default.debounce */

/* default.deburr */

/* default.defaultAfterAutospacing */

/* default.defaultKeyTypographyStyle */

/* default.defaultTo */

/* default.defaults */

/* default.defaultsDeep */

/* default.defer */

/* default.delay */

/* default.difference */

/* default.differenceBy */

/* default.differenceWith */

/* default.div */

/* default.divide */

/* default.drop */

/* default.dropRight */

/* default.dropRightWhile */

/* default.dropWhile */

/* default.each */

/* default.eachRight */

/* default.embed.previewHeight */

/* default.endsWith */

/* default.entries */

/* default.entriesIn */

/* default.eq */

/* default.equals */

/* default.error */

/* default.escape */

/* default.escapeRegExp */

/* default.every */

/* default.extend */

/* default.extendWith */

/* default.fill */

/* default.filter */

/* default.find */

/* default.findIndex */

/* default.findKey */

/* default.findLast */

/* default.findLastIndex */

/* default.findLastKey */

/* default.first */

/* default.flatMap */

/* default.flatMapDeep */

/* default.flatMapDepth */

/* default.flatten */

/* default.flattenDeep */

/* default.flattenDepth */

/* default.flip */

/* default.floor */

/* default.flow */

/* default.flowRight */

/* default.font-family */

/* default.fontSize.DEFAULT */

/* default.forEach */

/* default.forEachRight */

/* default.forIn */

/* default.forInRight */

/* default.forOwn */

/* default.forOwnRight */

/* default.fromPairs */

/* default.functions */

/* default.functionsIn */

/* default.get */

/* default.getClipboardPad */

/* default.getFontFallback */

/* default.getRectOfNodeFirstText */

/* default.globalStyle.font-size */

/* default.groupBy */

/* default.gt */

/* default.gte */

/* default.has */

/* default.hasIn */

/* default.head */

/* default.heading-1 */

/* default.heading-2 */

/* default.heading-3 */

/* default.heading-4 */

/* default.heading-5 */

/* default.heading-6 */

/* default.identity */

/* default.inRange */

/* default.includes */

/* default.indexOf */

/* default.info */

/* default.initial */

/* default.inlineCode */

/* default.inlinePlaceholder */

/* default.intersection */

/* default.intersectionBy */

/* default.intersectionWith */

/* default.invert */

/* default.invertBy */

/* default.invoke */

/* default.invokeMap */

/* default.isArguments */

/* default.isArray */

/* default.isArrayBuffer */

/* default.isArrayLike */

/* default.isArrayLikeObject */

/* default.isBoolean */

/* default.isBuffer */

/* default.isCard */

/* default.isCode */

/* default.isDate */

/* default.isElement */

/* default.isEmpty */

/* default.isEqual */

/* default.isEqualWith */

/* default.isError */

/* default.isFinite */

/* default.isFunction */

/* default.isHeading */

/* default.isHr */

/* default.isImage */

/* default.isInline */

/* default.isInteger */

/* default.isLength */

/* default.isLink */

/* default.isMap */

/* default.isMatch */

/* default.isMatchWith */

/* default.isNaN */

/* default.isNative */

/* default.isNil */

/* default.isNull */

/* default.isNumber */

/* default.isObject */

/* default.isObjectLike */

/* default.isParagraph */

/* default.isPlainObject */

/* default.isRefBlock */

/* default.isRegExp */

/* default.isSafeInteger */

/* default.isSet */

/* default.isSticker */

/* default.isString */

/* default.isSymbol */

/* default.isTable */

/* default.isTableCell */

/* default.isTableRow */

/* default.isTag */

/* default.isText */

/* default.isTypedArray */

/* default.isUndefined */

/* default.isWeakMap */

/* default.isWeakSet */

/* default.iteratee */

/* default.iterator */

/* default.join */

/* default.kebabCase */

/* default.keyBy */

/* default.keys */

/* default.keysIn */

/* default.last */

/* default.lastIndexOf */

/* default.line-height */

/* default.link */

/* default.link.locale */

/* default.lowerCase */

/* default.lowerFirst */

/* default.lt */

/* default.lte */

/* default.map */

/* default.mapKeys */

/* default.mapValues */

/* default.margin */

/* default.margin-bottom */

/* default.margin-left */

/* default.margin-right */

/* default.margin-top */

/* default.matches */

/* default.matchesProperty */

/* default.max */

/* default.maxBy */

/* default.mean */

/* default.meanBy */

/* default.memoize */

/* default.merge */

/* default.mergeWith */

/* default.method */

/* default.methodOf */

/* default.min */

/* default.minBy */

/* default.mixin */

/* default.multiply */

/* default.negate */

/* default.noop */

/* default.now */

/* default.nth */

/* default.nthArg */

/* default.omit */

/* default.omitBy */

/* default.once */

/* default.orderBy */

/* default.over */

/* default.overArgs */

/* default.overEvery */

/* default.overSome */

/* default.pad */

/* default.padEnd */

/* default.padStart */

/* default.padding */

/* default.padding-left */

/* default.padding-right */

/* default.paragraph */

/* default.parseInt */

/* default.partial */

/* default.partialRight */

/* default.partition */

/* default.perf */

/* default.pick */

/* default.pickBy */

/* default.placeholder */

/* default.property */

/* default.propertyOf */

/* default.prototype */

/* default.prototype.at */

/* default.prototype.chain */

/* default.prototype.clone */

/* default.prototype.commit */

/* default.prototype.compact */

/* default.prototype.find */

/* default.prototype.findLast */

/* default.prototype.first */

/* default.prototype.head */

/* default.prototype.invokeMap */

/* default.prototype.next */

/* default.prototype.plant */

/* default.prototype.reject */

/* default.prototype.reverse */

/* default.prototype.slice */

/* default.prototype.takeRightWhile */

/* default.prototype.thru */

/* default.prototype.toArray */

/* default.prototype.toJSON */

/* default.prototype.value */

/* default.prototype.valueOf */

/* default.pull */

/* default.pullAll */

/* default.pullAllBy */

/* default.pullAllWith */

/* default.pullAt */

/* default.random */

/* default.range */

/* default.rangeRight */

/* default.rearg */

/* default.reduce */

/* default.reduceRight */

/* default.reject */

/* default.remove */

/* default.repeat */

/* default.replace */

/* default.rest */

/* default.result */

/* default.reverse */

/* default.round */

/* default.sample */

/* default.sampleSize */

/* default.sanitizeUrl */

/* default.set */

/* default.setWith */

/* default.shuffle */

/* default.size */

/* default.slice */

/* default.snakeCase */

/* default.some */

/* default.sortBy */

/* default.sortedIndex */

/* default.sortedIndexBy */

/* default.sortedIndexOf */

/* default.sortedLastIndex */

/* default.sortedLastIndexBy */

/* default.sortedLastIndexOf */

/* default.sortedUniq */

/* default.sortedUniqBy */

/* default.split */

/* default.spread */

/* default.startCase */

/* default.startsWith */

/* default.stubArray */

/* default.stubFalse */

/* default.stubObject */

/* default.stubString */

/* default.stubTrue */

/* default.subtract */

/* default.sum */

/* default.sumBy */

/* default.tail */

/* default.take */

/* default.takeRight */

/* default.takeRightWhile */

/* default.takeWhile */

/* default.tap */

/* default.template */

/* default.templateSettings */

/* default.throttle */

/* default.thru */

/* default.times */

/* default.toArray */

/* default.toFinite */

/* default.toInteger */

/* default.toLength */

/* default.toLower */

/* default.toNumber */

/* default.toPairs */

/* default.toPairsIn */

/* default.toPath */

/* default.toPlainObject */

/* default.toSafeInteger */

/* default.toString */

/* default.toUpper */

/* default.transform */

/* default.transformShd */

/* default.trim */

/* default.trimEnd */

/* default.trimStart */

/* default.truncate */

/* default.unary */

/* default.unescape */

/* default.union */

/* default.unionBy */

/* default.unionWith */

/* default.uniq */

/* default.uniqBy */

/* default.uniqWith */

/* default.uniqueId */

/* default.unset */

/* default.unzip */

/* default.unzipWith */

/* default.update */

/* default.updateWith */

/* default.upperCase */

/* default.upperFirst */

/* default.values */

/* default.valuesIn */

/* default.without */

/* default.word-break */

/* default.words */

/* default.wrap */

/* default.xor */

/* default.xorBy */

/* default.xorWith */

/* default.zip */

/* default.zipObject */

/* default.zipObjectDeep */

/* default.zipWith */

/* defaultSpacing */

/* domUtils.findCaretPosition */

/* domUtils.findDOMNode */

/* domUtils.findDOMNodeSafely */

/* domUtils.findScrollableContainer */

/* domUtils.findSelectionSlot */

/* domUtils.fitRows */

/* domUtils.getCaretDom */

/* domUtils.getScrollableContainerInfo */

/* domUtils.mergeRects */

/* domUtils.splitRows */

/* dynamic length/symbol tree */

/* environment.IS_ANDROID */

/* environment.IS_IOS */

/* environment.IS_MAC */

/* environment.IS_MOBILE */

/* eslint-disable */

/* eslint-disable @typescript-eslint/ban-ts-comment */

/* eslint-disable @typescript-eslint/explicit-function-return-type */

/* eslint-disable @typescript-eslint/indent */

/* eslint-disable @typescript-eslint/no-explicit-any */

/* eslint-disable arrow-body-style */

/* eslint-disable consistent-return */

/* eslint-disable default-case */

/* eslint-disable guard-for-in */

/* eslint-disable import/prefer-default-export */

/* eslint-disable max-len */

/* eslint-disable max-lines-per-function */

/* eslint-disable no-bitwise */

/* eslint-disable no-console */

/* eslint-disable no-continue */

/* eslint-disable no-control-regex */

/* eslint-disable no-empty */

/* eslint-disable no-nested-ternary */

/* eslint-disable no-param-reassign */

/* eslint-disable no-proto */

/* eslint-disable no-restricted-syntax */

/* eslint-disable no-script-url */

/* eslint-disable no-shadow */

/* eslint-disable no-unused-expressions */

/* eslint-disable node/no-deprecated-api */

/* eslint-disable prefer-arrow-callback */

/* eslint-disable prefer-destructuring */

/* eslint-disable radix */

/* eslint-disable react-hooks/exhaustive-deps */

/* eslint-disable react/jsx-no-target-blank */

/* eslint-disable react/no-array-index-key */

/* eslint-disable react/no-did-mount-set-state */

/* eslint-disable react/no-find-dom-node */

/* eslint-disable react/static-property-placement */

/* eslint-enable */

/* eslint-enable guard-for-in */

/* eslint-enable no-console */

/* eslint-enable no-empty */

/* eslint-enable no-script-url */

/* eslint-enable no-unused-expressions */

/* eslint-env browser */

/* exit foreign mode at integration points */

/* filterFragment */

/* five bytes */

/* fix a special case */

/* fix up mixed-case attribute names */

/* fix up mixed-case element names */

/* fontSize */

/* fontSize.DEFAULT */

/* formatSize */

/* four bytes */

/* generateSymbol */

/* get 3 bits code length (0-7) */

/* get 4 bits HCLEN (4-19) */

/* get 5 bits HDIST (1-32) */

/* get 5 bits HLIT (257-286) */

/* get a char and divide by alphabet-length */

/* get length */

/* get more bits while code value is above sum */

/* get one bit from source stream */

/* getAttributes */

/* getClosestContainerBlock */

/* getData */

/* getDefaultHeadStyle */

/* getFileTypeForRead */

/* getHeadingAncestors */

/* getHeadingParent */

/* getHtmlFrom */

/* getIcon */

/* getInnerWidth */

/* getKatexString */

/* getMinTableColWidthForBlockLinkCard */

/* getMinTableColWidthForMobile */

/* getMo */

/* getPositionTopLeft */

/* getPositionTopRight */

/* getSizeofClipboardData */

/* getSymbolByListOrder */

/* given a data stream and a tree, decode a symbol */

/* given a data stream, decode dynamic trees from it */

/* given a stream and two trees, inflate a block of data */

/* given an array of code lengths, build a tree */

/* global $Call */

/* groupFactory */

/* harmony default export */

/* harmony export */

/* harmony import */

/* harmony reexport (unknown) */

/* hasImage */

/* hasTextHtml */

/* hotkeys.isDeleteBackward */

/* hotkeys.isDeleteForward */

/* hotkeys.isEnter */

/* https://github.com/component/raf */

/* import() */

/* inflate an uncompressed block of data */

/* inflate stream from source to dest */

/* inlineTypes */

/* input a number, usually a hash and convert it to base-52 */

/* isCSSAbsoluteLength */

/* isDingDocs */

/* isDingSheet */

/* isDocumentValue */

/* isElementValue */

/* isEmptyObject */

/* isFirstFoldNode */

/* isFoldGroupNode */

/* isGoogleDocs */

/* isGoogleSheet */

/* isGradientColor */

/* isIMEmoji */

/* isInContainer */

/* isInListGroup */

/* isInUnlistGroupContainer */

/* isInline */

/* isKeyHotkey */

/* isLinkCardNode */

/* isLinkNode */

/* isList */

/* isListGroupAvailable */

/* isListValue */

/* isMentionValue */

/* isMicrosoftExcel */

/* isMicrosoftOffice */

/* isMicrosoftPowerPoint */

/* isMicrosoftWord */

/* isMicrosoftWordOrExcel */

/* isNormalGroupNode */

/* isNumeric */

/* isPureParagraphValue */

/* isSameGroupFrom */

/* isShimoDocs */

/* isTableCellValue */

/* isTableRowValue */

/* isTableValue */

/* isText */

/* isTransparent */

/* isVsCode */

/* isWhite */

/* isYuqueDocs */

/* lineHeight */

/* load next tag */

/* make sure we start next block on a byte boundary */

/* mapping */

/* mapping... */

/* markToAttr */

/* marksToAttrs */

/* module decorator */

/* n */

/* normalizeChildren */

/* normalizeFragment */

/* normalizeLink */

/* o */

/* offsetY */

/* one byte */

/* openLink */

/* paragraphTags */

/* paragraphTags.h2 */

/* parseCSSAbsoluteLength */

/* parseCSSMargin */

/* parseJsonMLToValue */

/* possibly get more bits from distance code */

/* possibly get more bits from length code */

/* praseCSSBackground */

/* read a num bit value from a stream and add base */

/* read code lengths for code length alphabet */

/* read final block flag */

/* reexport */

/* reexport safe */

/* repeat code length 0 for 11-138 times (read 7 bits) */

/* repeat code length 0 for 3-10 times (read 3 bits) */

/* runtime-dependent pure expression or super */

/* scan symbol lengths, and sum code length counts */

/* setGradientStyle */

/* setJustCreated */

/* setStyleWithMark */

/* setTableMinColsWidthData */

/* shift bit out of tag */

/* shouldDegradeGradient */

/* six bytes */

/* space */

/* symbol_text_microsoft */

/* symbol_type_miscrosoft */

/* tab */

/* table of code length counts */

/* tagFactory */

/* three bytes */

/* transferUtils.decodeFragment */

/* transferUtils.encodeFragment */

/* tryGetSelectedLinkPlaceholder */

/* tslint:disable:no-console */

/* two bytes */

/* unitsConverter.toPT */

/* unitsConverter.toPX */

/* unread from bitbuffer */

/* unused harmony export CodeWrapper */

/* unused harmony export HEIGHT_PADDING */

/* unused harmony export KEY_CODES */

/* unused harmony export ROMA_LIST */

/* unused harmony export parseValueToJsonML */

/* unused harmony export toPx */

/* unused harmony export useContainerWidthResize */

/* unused harmony exports CONTENT_MARGIN, FORMULA_PLACEHOLDER_WIDTH, FORMULA_PLACEHOLDER_HEIGHT, FORMULA_PREVIEW_MIN_WIDTH, FORMULA_PREVIEW_MIN_HEIGHT, createPlaceholderSize, getValue, measureFormula */

/* unused harmony exports DROPDOWN_STYLE, ICON_CHECK_STYLE, ICON_PASTE_STYLE, SPLIT_BUTTON_STYLE */

/* unused harmony exports GRADIENT_FLAG, GRADIENT_STYLE_FLAG, transferGradientColor, notSupportClipText */

/* unused harmony exports MS_EXCEL, MS_OFFICE, isMicrosoftWord, isMicrosoftExcel, isMicrosoftOffice, isYuqueDocs */

/* unused harmony exports PlaceholerLink, LinkText */

/* unused harmony exports ProgressBar, ProgressBarInner */

/* unused harmony exports SYMBOL_FONT, SYMBOL_SZ, TASK_EXTRA_BUTTONS_WIDTH, TASK_PADDING, TASK_BORDER_LEFT_WIDTH */

/* unused harmony exports SelectDropdownContainer, SelectDropdownTitle */

/* unused harmony exports TEXT_RTF, TEXT_LINK, APPLICATION_GOOGLE_SHEET_CLIP, APPLICATION_CANGJIE_DRAG_FRAGMENT */

/* unused harmony exports TOP_SPACING, SCROLL_BAR_HEIGHT, TOOLBAR_ITEM_SIZE */

/* unused harmony exports TextIcon, CardIcon, AbstractIcon, PreviewIcon, CardSmallIcon */

/* unused harmony exports convertMarkToSymbolStyle, getSymbolStyle, getSymbolStyleByKey, parseSymbolMarks */

/* unused harmony exports createListCountContext, getListOrderDataById, getListOrder, getListOrderData, injectToNode */

/* unused harmony exports getClosestContainerBlockFromViewModel, getClosestContainerBlockFromNative */

/* unused harmony exports getDefaultMarks, replaceObject */

/* unused harmony exports isCssLength, isWidth, isBorderStyle, parseCSSSides, parseCSSPadding, isCSSPercent, parseCSSPercent */

/* unused harmony exports isList, isOrderedList, isTaskList, isUnorderedList, getInnerFullWidth, getInnerWidthFromDOM */

/* unused harmony exports isTextJsonML, isInlineJsonML, isTextValue, isInlineValue, isBlockValue, isParagraphValue */

/* unused harmony exports runNextTime, pick, omit, throttle, uniq, uniqBy, typeOf, isEqual, camelCase, getAlignPointsAndOffsets, get */

/* use as a simple dictionary */

/* useLeafBlockResizer */

/* useTableColsWidth */

/* useZoom */

/* useZoomContainer */

/* uuid */

/* values 0-15 represent the actual code lengths */

/* z */

/* { */

/* | */

/* } */

/* ~ */

/* ’ */

/* “”‘’ */

/* 当前的顶层窗口 */

/* 当前窗口是否在顶层（不在iframe里面） */

/* 当有外部传入固定position时，优先采用position */

/* 把api集合与已有的集合做合并（非覆盖） */

/* 提取一个api（保留了api原来的类型） */

/* 设置为同域，才能从windown上读值 */

/* 默认兜底空api */

/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */

/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */

/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*#__PURE__*/

/**
	 * A string representing the current Punycode.js version number.
	 * @memberOf punycode
	 * @type String
	 */

/**
	 * An object of methods to convert from JavaScript's internal character
	 * representation (UCS-2) to Unicode code points, and back.
	 * @see <https://mathiasbynens.be/notes/javascript-encoding>
	 * @memberOf punycode
	 * @type Object
	 */

/**
	* Coerce `val`.
	*
	* @param {Mixed} val
	* @return {Mixed}
	* @api private
	*/

/**
	* Convert regexp to namespace
	*
	* @param {RegExp} regxep
	* @return {String} namespace
	* @api private
	*/

/**
	* Create a debugger with the given `namespace`.
	*
	* @param {String} namespace
	* @return {Function}
	* @api public
	*/

/**
	* Disable debug output.
	*
	* @return {String} namespaces
	* @api public
	*/

/**
	* Enables a debug mode by namespaces. This can include modes
	* separated by a colon and wildcards.
	*
	* @param {String} namespaces
	* @api public
	*/

/**
	* Map of special "%n" handling functions, for the debug "format" argument.
	*
	* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
	*/

/**
	* Returns true if the given mode name is enabled, false otherwise.
	*
	* @param {String} name
	* @return {Boolean}
	* @api public
	*/

/**
	* Selects a color for a debug namespace
	* @param {String} namespace The namespace string for the debug instance to be colored
	* @return {Number|String} An ANSI color code for the given namespace
	* @api private
	*/

/**
	* The currently active debug mode names, and names to skip.
	*/

/**
	* XXX DO NOT USE. This is a temporary stub function.
	* XXX It WILL be removed in the next major release.
	*/

/**
         *
         * ## Merge above the path
         *
         * ```js
         * path        = [1,0]
         * op.path     = [1]
         * op.position = 2
         * ```
         *
         * 1. move path forward at op.path's level    [1,0] -> [0,0]
         * 2. move sub path to the position               [0,0] -> [0,2]
         *
         * ```
         *            []                                                []
         *         __/ \__                                           __/
         *      [0]  <-- [1]                                      [0]
         *     /  \       /             ---- transform -->     __/ | \__
         * [0,0] [0,1] *[1,0]*                            [0,0] [0, 1]  *[0,2]*
         *          ___/  |  \___                                    ___/  |  \___
         *   [1,0,0]   [1,0,1]   [1,0,2]                      [0,2,0]   [0,2,1]   [0,2,2]
         * ```
         */

/**
         * ## Insert at the path
         *
         * ```js
         * path    = [1,0]
         * op.path = [1,0]
         * ```
         *
         * move path forward at op.path's level           [1,0] --> [1,1]
         *
         * ```txt
         *         []                                               []
         *      __/ \__                                          __/ \__
         *   [0]       [1]             --- transform -->      [0]       [1]
         *             /                                                / |
         *          *[1,0]*                                        [1,0]  *[1,1]*
         * ```
         *
         * ## Insert above the path
         *
         * ```js
         * path    = [1,0]
         * op.path = [1]
         * ```
         *
         * move path forward at op.path's level           [1,0] --> [2,0]
         *
         * ```txt
         *         []                                               [ ]
         *      __/ \__                                          __/ | \__
         *   [0]       [1]           --- transform -->        [0]   [1]   [2]
         *             /                                                  /
         *         *[1,0]*                                            *[2,0]*
         * ```
         *
         * ## Insert at younger
         *
         * ```js
         * path    = [1]
         * op.path = [0]
         * ```
         *
         * move path forward at op.path's level           [1] --> [2]
         *
         * ```txt
         *          [ ]                                             [ ]
         *         /  |                                          __/ | \__
         *       [0] *[1]*           --- transform -->        [0]   [1]   *[2]*
         * ```
         */

/**
         * ## Merge at the path
         *
         * ```js
         * path         = [1]
         * op.path      = [1]
         * op.position  = 2
         * ```
         *
         * move path forward at op.path's level                 [0,1] -> [0]
         *
         * ```txt
         *            []                                                []
         *         __/ \__                                           __/ \__
         *      [0]      *[1]*                                    *[0]*
         *     /  \       /             ---- transform -->      __/  |  \__
         * [0,0] [0,1]  [1,0]                              [0,0]   [0,1]  [0,2]
         * ```
         *
         * ## Merge at younger
         *
         * ```js
         * path         = [1,0,2,0]
         * op.path      = [1,0,1]
         * op.position  = 1
         * ```
         *
         * move path forward at op.path's level         [1,0,2,0] -> [1,0,1,0]
         *
         *```txt
         *            []                                                []
         *         __/ \__                                           __/ \__
         *      [0]       [1]                                     [0]       [1]
         *     /  \       /             ---- transform -->        / \        /
         * [0,0] [0,1]  [1,0]                                 [0,0] [0,1]  [1,0]
         *          ___/  |  \___                                          /  \
         * [1,0,0] <-- [1,0,1]   [1,0,2]                            [1,0,0]   [1,0,1]
         *                         /                                             /
         *                   *[1,0,2,0]*                                    *[1,0,1,0]*
         *```
         */

/**
         * ## Move younger to the right of the path.
         *
         * ```js
         * path       = [1,0]
         * op.path    = [0]
         * op.newPath = [1,1]
         * ```
         *
         * move path backward at op.path's level:          [1,0] -> [0,0]
         *
         * ```txt
         *         []                                       []
         *        / \                                      /
         *     [0]  [1]       --- transform -->          [0]
         *         /   \                                 / \
         *    *[1,0]*  [1,1]                       *[0,0]* [0,1]
         * ```
         *
         * ```js
         * path       = [1]
         * op.path    = [0]
         * op.newPath = [2,0]
         * ```
         *
         * move path backward at op.path's level:          [1] -> [0]
         *
         * ```txt
         *         [ ]                                       []
         *      __/ | \__                                   / \
         *   [0]  *[1]*  [2]     --- transform -->      *[0]*  [1]
         *               /                                     / \
         *            [2,0]                                [1,0] [1,1]
         * ```
         *
         * ## Move younger below the path.
         *
         * ```js
         * path       = [1,0]
         * op.path    = [0]
         * op.newPath = [1,1]
         * ```
         *
         * move path backward at op.path's level:          [1,0] -> [0,0]
         *
         * ```txt
         *         []                                       []
         *        / \                                      /
         *     [0]  [1]       --- transform -->          [0]
         *         /   \                                 / \
         *    *[1,0]*  [1,1]                       *[0,0]* [0,1]
         * ```
         */

/**
         * ## Remove at the path
         *
         * ```js
         * path    = [1,0]
         * op.path = [1,0]
         * ```
         *
         * path is removed           [1,0] --> removed
         *
         * ```txt
         *         []                                               []
         *      __/ \__                                          __/ \__
         *   [0]       [1]             --- transform -->      [0]       [1]
         *             /
         *          *[1,0]*
         * ```
         *
         * ## Remove above the path
         *
         * ```js
         * path    = [1,0]
         * op.path = [1]
         * ```
         *
         * path is removed           [1,0] --> removed
         *
         * ```txt
         *         []                                               [ ]
         *      __/ \__                                          __/  \__
         *   [0]       [1]           --- transform -->        [0]        [1]
         *             /
         *         *[1,0]*
         * ```
         *
         */

/**
         * ## Remove at younger
         *
         * ```js
         * path    = [1,0]
         * op.path = [0]
         * ```
         *
         * move path forward at op.path's level           [1,0] --> [0,0]
         *
         * ```txt
         *         []                                               [ ]
         *      __/ \__                                          __/ | \__
         *   [0]       [1]           --- transform -->        [0]   [1]   [2]
         *             /                                      /
         *         *[1,0]*                                 *[0,0]*
         * ```
         */

/**
         * ## Split at the path
         *
         * ```js
         * path        = [1]
         * op.path     = [1]
         * op.position = 1
         * ```
         *
         * split path into 2 paths:  [1] -> [1], [2]
         *
         * ```
         *         []                                          [ ]
         *      __/ \__                                     __/ | \__
         *   [0]      *[1]*      --- transform -->       [0]  *[1]*  *[2]*
         *            /  \                                     /      /
         *       [1,0] s [1,1]                              [1,0]   [2,0]
         * ```
         */

/**
         * ## Split at younger
         *
         * ```js
         * path        = [1,0,0]
         * op.path     = [0]
         * op.position = 1
         * ```
         *
         * move path foward at op.path's level: [1,0,0] -> [2,0,0]
         *
         * ```txt
         *              []                                          [ ]
         *           __/ \__                                     __/ | \__
         *        [0]       [1]      --- transform -->       [0]   [1]    [2]
         *       /  \       /                                /      /     /
         *  [0,0] s [0,1] [1,0]                           [0,0]  [1,0] [2,0]
         *                 /                                            /
         *             *[1,0,0]*                                   *[2,0,0]*
         * ```
         */

/**
         * 1. Use promise as the first priority.
         * 2. If promise not exist, use callback with warning instead
         */

/**
         * In case field with `preserve = false` nest deps like:
         * - A = 1 => show B
         * - B = 1 => show C
         * - Reset A, need clean B, C
         */

/**
         * 下面的提交为了修复演示模式切页问题，阻止了冒泡。但是会导致移动端 touchEnd 不触发，引发跳转后选区异常
         * https://gitlab.alibaba-inc.com/alidocs/we-editor/commit/d870afb4bf623a9b3422bd4fe7c29b6515d720c2
         */

/**
         * 从 Excel 中复制表格，纯文本粘贴会附带 \t,当 \t 足够多时会造成渲染性能问题。
         * https://notes.dingtalk.com/doc/E0Vzg7l3wnjKAzJe?orgId=16872003&dd_progress=false&showmenu=false
         * */

/**
         * 优先处理zhi的list
         * 避免使用原来的listId, 导致页面出现不期望的连续段落列表, ol情况下
         * 但是保留原来的level属性
         * TODO
         * 1. 如果复制到已有列表当中, 则需要拿到上下文数据.
         * 2. 需要补全 Bi => ASL => Zhi => Copy HTML => Bi 的链路测试, 保证
         * 预览模式下的插件复制到编辑模式下行为一致.
         */

/**
         * 对 Code 的特殊处理。
         * TODO：Code 插件重构后，移除这里。
         */

/**
       * @experimental
       */

/**
       * @param {DOMRect|ClientRect} boundingClientRect
       * @param {DOMRect|ClientRect} intersectionRect
       */

/**
       * Clean up current node.
       */

/**
       * Fill errors since `fields` may be replaced by controlled fields
       */

/**
       * Recursive validate if configured.
       * TODO: perf improvement @zombieJ
       */

/**
       * The minimal observable subscription method.
       * @param {Object} observer Any object that can be used as an observer.
       * The observer object should have a `next` method.
       * @returns {subscription} An object with an `unsubscribe` method that can
       * be used to unsubscribe the observable from the store, and prevent further
       * emission of values from the observable.
       */

/**
       * 如果 Text 节点非空，decorations 校验会过滤掉。
       */

/**
       * 支持异步读取 native event 对象上的数据
       * React 16 及更早版本需要调用 event.persist 方法， 参考：https://reactjs.org/docs/legacy-event-pooling.html
       * React 17 以上版本 event pool 被移除，默认支持异步读取， 参考：https://reactjs.org/blog/2020/08/10/react-v17-rc.html#no-event-pooling
       */

/**
       * 这个场景是在垂直模式下，首次鼠标hover到二级菜单的时候，不展开二级菜单
       * 这个问题的原因是这个时候dropdownTrigger为click，触发了mouseenter，然后isHotkeyType被置为false
       * dropdownTrigger会变成hover，但是不会触发handleVisibleChange，导致不会展开二级菜单
       * 这个解法的改动影响最小
       */

/**
     *  兼容至 ios 10 以上
     *  https://stackoverflow.com/questions/34045777/copy-to-clipboard-using-javascript-in-ios
     * */

/**
     * 1. 仓颉内容不作 markdown 语法校验
     * 2. 如果仅有 text/plain 内容 或 text 内容符合 markdown 语法，则可能为 Markdown 文本
     * 3. 属于特殊情况，则可能为 Markdown 文本：
     *   a. VSCode：MimeType === vscode-editor-data && mode === 'markdown'
     */

/**
     * @TODO 列表的缩进完全由 ind 来排版，不由 level 而定
     */

/**
     * A reference to the `lodash` function.
     *
     * @memberOf _.templateSettings.imports
     * @type {Function}
     */

/**
     * Effects 1: 若光标 focus 进入到折叠议题区域内，需要自动展开议题
     * @description 此处需求是由于在内容折叠情况下，若用户光标选区进入，则无法看到鼠标聚焦区域，所以需要自动展开
     */

/**
     * Effects 2: 若选区跨越议题范围，则需要扩展选区范围至整个议题
     * @description 此处需求源于产品设计，议题标题不能被随意删除，由于标题的特例处理比较困难，因此我们通过扩展选区的方法使得用户
     * 会选择整个议题，这样使得用户在操作时能有明显的预期
     */

/**
     * Generate maps
     * Can use cache to save perf if user report performance issue with this
     */

/**
     * Some android devices scroll to the HiddenTextArea after drag, it
     * use 'anchor' point for positioning. So we make sure the user always
     * drag the 'anchor' point here.
     */

/**
     * TODO(xunyi): 这里包装了一层，否则会有 warning
     * figure out why
     */

/**
     * document 变化，延迟刷新
     *
     * 一些场景比如（折叠标题），有动画延迟，等一会儿再更新，不然会闪烁
     */

/**
     * linkcard 是一个伪 void 节点。
     * 在 cangjie 的 onClick 事件中，针对 void 节点，会将光标移至节点末尾 packages/cangjie/src/plugins/core.tsx 200:1
     * 导致在 copy 过程中，selection 是 isCollapsed 的，复制的 fragment 获得的是没有 text 内容的片段。
     * 从而用户复制的 linkcard，会丢失标题。
     * 这里覆盖默认 copy 逻辑，将真实的 fragment 注入
     */

/**
     * 从 Excel 中复制表格，纯文本粘贴会附带 \t,当 \t 足够多时会造成渲染性能问题。
     * https://notes.dingtalk.com/doc/E0Vzg7l3wnjKAzJe?orgId=16872003&dd_progress=false&showmenu=false
     * */

/**
     * 以下情况不交替图片占位
     * 1. 图片加载失败
     * 2. 宽高未落库的图片来回切换占位符时会有问题, 不交替占位
     * 3. 图片的自然宽高乘积小于 LAZY_LOAD_LIMIT
     */

/**
     * 右键菜单操作
     */

/**
     * 如果多个实例（比如多个评论内容单独展示），这里会消耗 O(n) 的 layout 性能
     * 使用 RAF 函数，可以降低至 O(1)
     */

/**
     * 展开收起动画
     */

/**
     * 当前的选区
     */

/**
     * 文档的数据[[Value]]对象，参照[[ControllerProperties]]
     */

/**
     * 是否是blur状态
     */

/**
     * 更新
     *
     * @param {Pick<P, keyof P>}
     * @return {void}
     */

/**
     * 点击处理
     */

/**
     * 缩放模式下，也要允许设置侧边栏是否可见。不然设置无效，返回后，会出现重叠。
     */

/**
     * 获取对应的文本string
     */

/**
     * 获取当前的历史operations
     */

/**
     * 获取当前选中位置对应的marks。
     * 如果用户设置了正在编辑的样式，返回用户的设置Marks；否则返回当前文字的Marks。
     */

/**
     * 获取当前选中的anchor位置对应的inline
     */

/**
     * 获取当前选中的anchor位置对应的text
     */

/**
     * 获取当前选中的end位置对应的block
     */

/**
     * 获取当前选中的end位置对应的inline
     */

/**
     * 获取当前选中的end位置对应的text
     */

/**
     * 获取当前选中的focus位置对应的block
     */

/**
     * 获取当前选中的focus位置对应的inline
     */

/**
     * 获取当前选中的focus位置对应的text
     */

/**
     * 获取当前选中的inlines
     */

/**
     * 获取当前选中的start位置对应的block
     */

/**
     * 获取当前选中的start位置对应的inline
     */

/**
     * 获取当前选中的start位置对应的text
     */

/**
     * 获取当前选区对应的fragment
     */

/**
     * 获取所有的marks
     */

/**
     * 这里不要乱 return，不然会导致整个页面刷新，全量调用 renderNode。
     */

/**
     * 远程选区
     */

/**
     * 选区是否是扩展
     */

/**
     * 销毁
     *
     * @return {void}
     */

/**
     * 隐藏
     *
     * @return {void}
     */

/**
     * 非 document 变化，比如 decorations 变了，立刻刷新
     */

/**
   * 1. 设置Value的data字段
   * 2. 并更新Value
   * 3. 调用flush刷新
   */

/**
   * 1. 设置Value的decoration字段
   * 2. 并更新Value
   * 3. 调用flush刷新
   */

/**
   * 1. 设置Value的injection字段
   * 2. 并更新Value
   * 3. 调用flush刷新
   */

/**
   * @param {!Function} arrayMethod Either the Array.prototype{push|shift}.
   * @param {!Function} task
   * @param {{minTaskTime: number}=} param1
   * @private
   */

/**
   * @param {...*} args
   */

/**
   * @return {boolean}
   */

/**
   * A callback for the `visibilitychange` event that runs all pending
   * callbacks immediately if the document's visibility state is hidden.
   * @private
   */

/**
   * A local reference to the root document.
   */

/**
   * Accepts a rect and expands it by the rootMargin value.
   * @param {DOMRect|ClientRect} rect The rect object to expand.
   * @return {ClientRect} The expanded rect.
   * @private
   */

/**
   * Accepts a target and root rect computes the intersection between then
   * following the algorithm in the spec.
   * TODO(philipwalton): at this time clip-path is not considered.
   * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
   * @param {Element} target The target DOM element
   * @param {Object} targetRect The bounding rect of the target.
   * @param {Object} rootRect The bounding rect of the root after being
   *     expanded by the rootMargin value.
   * @return {?Object} The final intersection rect object or undefined if no
   *     intersection is found.
   * @private
   */

/**
   * Accepts an old and new entry and returns true if at least one of the
   * threshold values has been crossed.
   * @param {?IntersectionObserverEntry} oldEntry The previous entry for a
   *    particular target element or null if no previous entry exists.
   * @param {IntersectionObserverEntry} newEntry The current entry for a
   *    particular target element.
   * @return {boolean} Returns true if a any threshold has been crossed.
   * @private
   */

/**
   * Accepts the rootMargin value from the user configuration object
   * and returns an array of the four margin values as an object containing
   * the value and unit properties. If any of the values are not properly
   * formatted or use a unit other than px or %, and error is thrown.
   * @private
   * @param {string=} opt_rootMargin An optional rootMargin value,
   *     defaulting to '0px'.
   * @return {Array<Object>} An array of margin objects with the keys
   *     value and unit.
   */

/**
   * Accepts the threshold value from the user configuration object and
   * returns a sorted array of unique threshold values. If a value is not
   * between 0 and 1 and error is thrown.
   * @private
   * @param {Array|number=} opt_threshold An optional threshold value or
   *     a list of threshold values, defaulting to [0].
   * @return {Array} A sorted list of unique and valid threshold values.
   */

/**
   * Add a given token to the token stack.  In particular, this get be used
   * to put back a token returned from one of the other methods.
   */

/**
   * Adds a change listener. It will be called any time an action is dispatched,
   * and some part of the state tree may potentially have changed. You may then
   * call `getState()` to read the current state tree inside the callback.
   *
   * You may call `dispatch()` from a change listener, with the following
   * caveats:
   *
   * 1. The subscriptions are snapshotted just before every `dispatch()` call.
   * If you subscribe or unsubscribe while the listeners are being invoked, this
   * will not have any effect on the `dispatch()` that is currently in progress.
   * However, the next `dispatch()` call, whether nested or not, will use a more
   * recent snapshot of the subscription list.
   *
   * 2. The listener should not expect to see all state changes, as the state
   * might have been updated multiple times during a nested `dispatch()` before
   * the listener is called. It is, however, guaranteed that all subscribers
   * registered before the `dispatch()` started will be called with the latest
   * state by the time it exits.
   *
   * @param {Function} listener A callback to be invoked on every dispatch.
   * @returns {Function} A function to remove this change listener.
   */

/**
   * Adds a job to the
   * write batch and schedules
   * a new frame if need be.
   *
   * @param  {Function} fn
   * @param  {Object} ctx the context to be bound to `fn` (optional).
   * @public
   */

/**
   * Adds a job to the read batch and
   * schedules a new frame if need be.
   *
   * @param  {Function} fn
   * @param  {Object} ctx the context to be bound to `fn` (optional).
   * @public
   */

/**
   * Adds an event handler to a DOM node ensuring cross-browser compatibility.
   * @param {Node} node The DOM node to add the event handler to.
   * @param {string} event The event name.
   * @param {Function} fn The event handler to add.
   * @param {boolean} opt_useCapture Optionally adds the even to the capture
   *     phase. Note: this only works in modern browsers.
   */

/**
   * Adds the instance to the global IntersectionObserver registry if it isn't
   * already present.
   * @private
   */

/**
   * An IntersectionObserver registry. This registry exists to hold a strong
   * reference to IntersectionObserver instances currently observing a target
   * element. Without this registry, instances without another reference may be
   * garbage collected.
   */

/**
   * Append an array of tokens to the token stack.
   */

/**
   * Apply operation directly
   * @param operation
   * @returns
   */

/**
   * Both arguments are optional.  The first argument is an object of
   * built-in mappings which never change.  The second argument is an object
   * of initial (global-level) mappings, which will constantly change
   * according to any global/top-level `set`s done.
   */

/**
   * Call a function handler with a suitable context and arguments.
   */

/**
   * Cancels any scheduled idle callback and removes the handler (if set).
   * @private
   */

/**
   * Check whether to apply strict (LaTeX-adhering) behavior for unusual
   * input (like `\\`).  Unlike `nonstrict`, will not throw an error;
   * instead, "error" translates to a return value of `true`, while "ignore"
   * translates to a return value of `false`.  May still print a warning:
   * "warn" prints a warning and returns `false`.
   * This is for the second category of `errorCode`s listed in the README.
   */

/**
   * Checks a result to make sure it has the right type, and throws an
   * appropriate error otherwise.
   */

/**
   * Checks to see if a parent element contains a child element (including inside
   * shadow DOM).
   * @param {Node} parent The parent element.
   * @param {Node} child The child element.
   * @return {boolean} True if the parent node contains the child node.
   */

/**
   * Clears a scheduled 'read' or 'write' task.
   *
   * @param {Object} task
   * @return {Boolean} success
   * @public
   */

/**
   * Clears all pending tasks for the queue and stops any scheduled tasks
   * from running.
   */

/**
   * Compare priority between `path` and `target`:
   *
   * - if `path` is before `target`, return -1
   * - if `path` is after `target`, return 1
   * - if `path` is equal to `target`, return 0
   * - else if something went wrong, return null
   *
   * @param path - path
   * @param target - target path
   *
   * # Example
   *
   * ```ts
   * Path.compare([1,0], [1,0])     // 0
   * Path.compare([1,1,1], [1,0])   // 1
   * Path.compare([1,0,0,1], [1,1]) // -1
   * ```
   */

/**
   * Considers the current look ahead token as consumed,
   * and fetches the one after that as the new look ahead.
   */

/**
   * Consume all following space tokens, without expansion.
   */

/**
   * Consume the specified number of arguments from the token stream,
   * and return the resulting array of arguments.
   */

/**
   * Converts the math node into a MathML-namespaced DOM element.
   */

/**
   * Converts the math node into a string, similar to innerText, but escaped.
   */

/**
   * Converts the math node into a string, similar to innerText.
   */

/**
   * Converts the math node into a string, similar to innerText. Applies to
   * MathDomNode's only.
   */

/**
   * Converts the math node into an HTML markup string.
   */

/**
   * Converts the text node into a DOM text node.
   */

/**
   * Converts the text node into a string
   * (representing the text iteself).
   */

/**
   * Converts the text node into escaped HTML markup
   * (representing the text itself).
   */

/**
   * Converts the textual input of an unsupported command into a text node
   * contained within a color node whose color is determined by errorColor
   */

/**
   * Core#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of core rules.
   **/

/**
   * Create a Space node with width given in CSS ems.
   */

/**
   * Create a new options object with "phantom" set to true.
   */

/**
   * Create a new options object with the given color.
   */

/**
   * Create a new options objects with the given fontFamily.
   */

/**
   * Creates a new options object with the given font weight
   */

/**
   * Creates a new options object with the given math font or old text font.
   * @type {[type]}
   */

/**
   * Creates a text node or span from a symbol node. Note that a span is only
   * created if it is needed.
   */

/**
   * Creates markup for a symbol node.
   */

/**
   * Creates the IdleQueue instance and adds lifecycle event listeners to
   * run the queue if the page is hidden (with fallback behavior for Safari).
   * @param {{
   *   ensureTasksRun: boolean,
   *   defaultMinTaskTime: number,
   * }=} param1
   */

/**
   * Creates the global IntersectionObserver constructor.
   * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
   * @param {Function} callback The function to be invoked after intersection
   *     changes have queued. The function is not invoked if the queue has
   *     been emptied by calling the `takeRecords` method.
   * @param {Object=} opt_options Optional configuration options.
   * @constructor
   */

/**
   * Creates the global IntersectionObserverEntry constructor.
   * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
   * @param {Object} entry A dictionary of instance properties.
   * @constructor
   */

/**
   * Crop `a` and `b` into the same size.
   *
   * @param a
   * @param b
   * @param size - crop size, default is the shortest between a and b
   *
   * # Example
   *
   * ```ts
   * Path.crop([1,1,0], [1,1])    // [1,1]
   * Path.crop([1,1,0], [1,1], 1) // [1]
   * ```
   */

/**
   * Current KaTeX version
   */

/**
   * Decoration的start point
   */

/**
   * Decrement a `path` by `n` at `index`.
   *
   * @param path
   * @param n - default is 1
   * @param index - default is the last index
   *
   * # Example
   *
   * ```ts
   * Path.decrement([1,1,1])       // [1,1,0]
   * Path.decrement([1,1,3], 2)    // [1,1,1]
   * Path.decrement([1,1,3], 1, 1) // [1,0,3]
   * ```
   */

/**
   * Destroys the instance by unregistering all added event listeners and
   * removing any overridden methods.
   */

/**
   * Detect is it can hanging.
   *
   * we get the rects of the newRange, whose offset is [originOffset + 1]
   * if the newRange have one more rect than the old one, then we know that
   * there is a line break between [offset, offset + 1]
   */

/**
   * Detect whether `name` has a definition.  Equivalent to
   * `get(name) != null`.
   */

/**
   * Determine whether a command is currently "defined" (has some
   * functionality), meaning that it's a macro (in the current group),
   * a function, a symbol, or one of the special commands listed in
   * `implicitCommands`.
   */

/**
   * Dispatches an action. It is the only way to trigger a state change.
   *
   * The `reducer` function, used to create the store, will be called with the
   * current state tree and the given `action`. Its return value will
   * be considered the **next** state of the tree, and the change listeners
   * will be notified.
   *
   * The base implementation only supports plain object actions. If you want to
   * dispatch a Promise, an Observable, a thunk, or something else, you need to
   * wrap your store creating function into the corresponding middleware. For
   * example, see the documentation for the `redux-thunk` package. Even the
   * middleware will eventually dispatch plain object actions using this method.
   *
   * @param {Object} action A plain object representing “what changed”. It is
   * a good idea to keep actions serializable so you can record and replay user
   * sessions, or use the time travelling `redux-devtools`. An action must have
   * a `type` property which may not be `undefined`. It is a good idea to use
   * string constants for action types.
   *
   * @returns {Object} For convenience, the same action object you dispatched.
   *
   * Note that, if you use a custom middleware, it may wrap `dispatch()` to
   * return something else (for example, a Promise you can await).
   */

/**
   * Dropdown 显示/隐藏处理
   *
   * @param {boolean} e
   * @return {void}
   */

/**
   * End current group nesting within all namespaces.
   */

/**
   * End current nested group, restoring values before the group began.
   */

/**
   * Ensure that the result has all of the necessary fields of the DOMRect.
   * Specifically this ensures that `x` and `y` fields are set.
   *
   * @param {?DOMRect|?ClientRect} rect
   * @return {?DOMRect}
   */

/**
   * Expand the next token only once (if possible), and return the resulting
   * top token on the stack (without removing anything from the stack).
   * Similar in behavior to TeX's `\expandafter\futurelet`.
   * Equivalent to expandOnce() followed by future().
   */

/**
   * Expand the next token only once if possible.
   *
   * If the token is expanded, the resulting tokens will be pushed onto
   * the stack in reverse order and will be returned as an array,
   * also in reverse order.
   *
   * If not, the next token will be returned without removing it
   * from the stack.  This case can be detected by a `Token` return value
   * instead of an `Array` return value.
   *
   * In either case, the next token will be on the top of the stack,
   * or the stack will be empty.
   *
   * Used to implement `expandAfterFuture` and `expandNextToken`.
   *
   * At the moment, macro expansion doesn't handle delimited macros,
   * i.e. things like those defined by \def\foo#1\end{…}.
   * See the TeX book page 202ff. for details on how those should behave.
   */

/**
   * Expose the dom tree node types, which can be useful for type checking nodes.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */

/**
   * Extend this FastDom with some
   * custom functionality.
   *
   * Because fastdom must *always* be a
   * singleton, we're actually extending
   * the fastdom instance. This means tasks
   * scheduled by an extension still enter
   * fastdom's global task queue.
   *
   * The 'super' instance can be accessed
   * from `this.fastdom`.
   *
   * @example
   *
   * var myFastdom = fastdom.extend({
   *   initialize: function() {
   *     // runs on creation
   *   },
   *
   *   // override a method
   *   measure: function(fn) {
   *     // do extra stuff ...
   *
   *     // then call the original
   *     return this.fastdom.measure(fn);
   *   },
   *
   *   ...
   * });
   *
   * @param  {Object} props  properties to mixin
   * @return {FastDom}
   */

/**
   * Feed a new input string to the same MacroExpander
   * (with existing macros etc.).
   */

/**
   * First time `setInitialValues` should update store with initial value
   */

/**
   * Follow state should not management in State since it will async update by React.
   * This makes first render of form can not get correct state value.
   */

/**
   * Form ligature-like combinations of characters for text mode.
   * This includes inputs like "--", "---", "``" and "''".
   * The result will simply replace multiple textord nodes with a single
   * character in each value by a single textord node having multiple
   * characters in its value.  The representation is still ASCII source.
   * The group will be modified in place.
   */

/**
   * Fully expand the given macro name and return the result as a string,
   * or return `undefined` if no such macro is defined.
   */

/**
   * Fully expand the given macro name and return the resulting list of
   * tokens, or return `undefined` if no such macro is defined.
   */

/**
   * Get a text or display version of this style.
   */

/**
   * Get all ancestors of the `path`.
   *
   * @param path
   *
   * # Example
   *
   * Given the document tree:
   *
   *```txt
   *        []
   *       /  \
   *    [0]   [1]
   *       __/ | \__
   *  [1,0]  [1,1]  [1,2]
   *          /
   *      [1,1,0]
   * ```
   *
   * ```ts
   * Path.ancestors([1,1,0]) // [[], [1], [1,1]]
   * ```
   */

/**
   * Get registered field entities.
   * @param pure Only return field which has a `name`. Default: false
   */

/**
   * Get the common ancestor between `a` and `b`.
   *
   * @param a
   * @param b
   *
   * # Example
   *
   * Given the document tree:
   *
   *```txt
   *        []
   *       /  \
   *    [0]   [1]
   *       __/ | \__
   *  [1,0]  [1,1]  [1,2]
   *          /       /
   *      [1,1,0]  [1,2,0]
   * ```
   *
   * ```ts
   * Path.common([1,1,0], [1,2,0]) // [1]
   * ```
   */

/**
   * Get the cramped version of a style (in particular, cramping a cramped style
   * doesn't change the style).
   */

/**
   * Get the current value of a name, or `undefined` if there is no value.
   *
   * Note: Do not use `if (namespace.get(...))` to detect whether a macro
   * is defined, as the definition may be the empty string which evaluates
   * to `false` in JavaScript.  Use `if (namespace.get(...) != null)` or
   * `if (namespace.has(...))`.
   */

/**
   * Get the next sibiling of the `path`.
   *
   * @param path
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]  [1]
   *          /  \
   *     [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.next([1,0]) // [1,1]
   * Path.next([])    // null
   * ```
   */

/**
   * Get the parent path of the `path`,
   * Note: the parent of root is still root.
   *
   * @param path
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]  [1]
   *          /  \
   *     [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.parent([1,0]) // [1]
   * Path.parent([0])   // []
   * Path.parent([])    // []
   * ```
   */

/**
   * Get the path of `path` relative to `ancestor`.
   *
   * @param a
   * @param b
   *
   * # Example
   *
   * Given the document tree:
   *
   *```txt
   *        []
   *       /  \
   *    [0]   [1]
   *       __/ | \__
   *  [1,0]  [1,1]  [1,2]
   *          /       /
   *      [1,1,0]  [1,2,0]
   * ```
   *
   * ```ts
   * Path.relative([1,1,0], [1]) // [1,0]
   * Path.relative([1,0,0], [0]) // null
   * ```
   */

/**
   * Get the previous sibiling of the `path`.
   *
   * @param path
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]  [1]
   *          /  \
   *     [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.previous([1,1]) // [1,0]
   * Path.previous([])    // null
   * Path.previous([1,0]) // null
   * ```
   */

/**
   * Get the style of a fraction denominator given the fraction in the current
   * style.
   */

/**
   * Get the style of a fraction numerator given the fraction in the current
   * style.
   */

/**
   * Get the style of a subscript given a base in the current style.
   */

/**
   * Get the style of a superscript given a base in the current style.
   */

/**
   * Gets an attribute on a MathML node.
   */

/**
   * Gets the CSS color of the current options object
   */

/**
   * Gets the parent node of an element or its host element if the parent node
   * is a shadow root.
   * @param {Node} node The node whose parent to get.
   * @return {Node|null} The parent node or null if no parent exists.
   */

/**
   * Given a pair of tokens (this and endToken), compute a `Token` encompassing
   * the whole input range enclosed by these two.
   */

/**
   * Handle a subscript or superscript with nice errors.
   */

/**
   * If `optional` is false or absent, this parses an ordinary group,
   * which is either a single nucleus (like "x") or an expression
   * in braces (like "{x+y}") or an implicit group, a group that starts
   * at the current position, and ends right before a higher explicit
   * group ends, or at EOF.
   * If `optional` is true, it parses either a bracket-delimited expression
   * (like "[x+y]") or returns null to indicate the absence of a
   * bracket-enclosed group.
   * If `mode` is present, switches to that mode while parsing the group,
   * and switches back after.
   */

/**
   * If the `path` is after the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *     [0]   [1]
   *          /  \
   *     [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.isAfter([1], [0])   // true
   * Path.isAfter([1,0], [0]) // true
   * ```
   */

/**
   * If the `path` is before the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        / \
   *      [0] [1]
   *         /  \
   *    [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.isBefore([0], [1,1])   // true
   * Path.isBefore([1,0], [1,1]) // true
   * ```
   */

/**
   * If the `path` is child of the `target`
   *
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]  [1]
   *          /  \
   *     [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.isChild([1,0], [1]) // true
   * ```
   */

/**
   * If the `path` is deeper than the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]  [1]
   *           /  \
   *      [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.isDeeper([1,0], [1]) // true
   * Path.isDeeper([1,0], [])  // true
   * ```
   */

/**
   * If the `path` is descendant of the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]   [1]
   *         __/ | \__
   *    [1,0]  [1,1]  [1,2]
   *      /
   *   [1,0,0]
   * ```
   *
   * ```ts
   * Path.isDescendant([1,0], [1]) // true
   * Path.isDescendant([1], [])   // true
   * ```
   */

/**
   * If the `path` is equal to `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * ```ts
   * Path.isEqual([], [])       // true
   * Path.isEqual([1,0], [1,0]) // true
   * Path.isEqual([0], [1])     // false
   * ```
   */

/**
   * If the `path` is parent of the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *        []
   *       / \
   *    [0]  [1]
   *         /  \
   *    [1,0]   [1,1]
   * ```
   *
   * ```ts
   * Path.isParent([1], [1,0]) // true
   * Path.isParent([], [1])    // true
   * ```
   */

/**
   * If the `path` is the ancestor of the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *     [0]   [1]
   *    /  \
   * [0,0]  [0,1]
   * ```
   *
   * ```ts
   * Path.isAncestor([], [0,0])  // true
   * Path.isAncestor([0], [0,0]) // true
   * ```
   */

/**
   * If the `path` is the previous sibling of the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]   [1]
   *         __/ | \__
   *    [1,0]  [1,1]  [1,2]
   * ```
   *
   * ```ts
   * Path.isPrevSibling([0], [1]) // true
   * Path.isPrevsSibling([1,1], [1,2]) // true
   * Path.isPrevsSibling([0], [1,2]) // false
   * ```
   */

/**
   * If the `path` is the sibling of the `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        /  \
   *      [0]   [1]
   *         __/ | \__
   *    [1,0]  [1,1]  [1,2]
   * ```
   *
   * ```ts
   * Path.isSibling([1,0], [1,1]) // true
   * Path.isSibling([1,2], [1,1]) // true
   * ```
   */

/**
   * If the `path` is younger than the `target`.It means at the level which `path` lives, the `path` is ends before `target`.
   *
   * @param path
   * @param target
   *
   * # Example
   *
   * Given the document tree:
   *
   * ```txt
   *         []
   *        / \
   *     [0]   [1]
   *        __/ | \__
   *   [1,0]  [1,1]  [1,2]
   *          /   \
   *   [1,1,0]   [1,1,1]
   * ```
   *
   * ```ts
   * Path.isYounger([1,1,0], [1,1,1]) // true
   * Path.isYounger([1,0], [1,1,1])   // true
   * Path.isYounger([0], [1,1,1])     // true
   * ```
   */

/**
   * Increment a `path` by `n` at `index`.
   *
   * @param path
   * @param n - default is 1
   * @param index - default is the last index
   *
   * # Example
   *
   * ```ts
   * Path.increment([1,1,1])       // [1,1,2]
   * Path.increment([1,1,1], 2)    // [1,1,3]
   * Path.increment([1,1,1], 2, 1) // [1,3,1]
   * ```
   */

/**
   * Interoperability point for observable/reactive libraries.
   * @returns {observable} A minimal observable of state changes.
   * For more information, see the observable proposal:
   * https://github.com/tc39/proposal-observable
   */

/**
   * Inverts the intersection and bounding rect from the parent (frame) BCR to
   * the local BCR space.
   * @param {DOMRect|ClientRect} parentBoundingRect The parent's bound client rect.
   * @param {DOMRect|ClientRect} parentIntersectionRect The parent's own intersection rect.
   * @return {ClientRect} The local root bounding rect for the parent's children.
   */

/**
   * KaTeX error, usually during parsing.
   */

/**
   * Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted,
   * changes to at least `\textstyle`.
   */

/**
   * Link the `subPath` to the `ancestor`.
   *
   * @param ancestor
   * @param subPath
   *
   * # Example
   *
   * ```ts
   * Path.link([1,0], [1]) // [1,0,1]
   * ```
   */

/**
   * Main parsing function, which parses an entire input.
   */

/**
   * Mark when touched & validated. Currently only used for `dependencies`.
   * Note that we do not think field with `initialValue` is dirty
   * but this will be by `isFieldDirty` func.
   */

/**
   * MarkdownIt#block -> ParserBlock
   *
   * Instance of [[ParserBlock]]. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/

/**
   * MarkdownIt#core -> Core
   *
   * Instance of [[Core]] chain executor. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/

/**
   * MarkdownIt#helpers -> helpers
   *
   * Link components parser functions, useful to write plugins. See details
   * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).
   **/

/**
   * MarkdownIt#inline -> ParserInline
   *
   * Instance of [[ParserInline]]. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/

/**
   * MarkdownIt#linkify -> LinkifyIt
   *
   * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
   * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.js)
   * rule.
   **/

/**
   * MarkdownIt#normalizeLink(url) -> String
   *
   * Function used to encode link url to a machine-readable format,
   * which includes url-encoding, punycode, etc.
   **/

/**
   * MarkdownIt#normalizeLinkText(url) -> String
   *
   * Function used to decode link url to a human-readable format`
   **/

/**
   * MarkdownIt#renderer -> Renderer
   *
   * Instance of [[Renderer]]. Use it to modify output look. Or to add rendering
   * rules for new token types, generated by plugins.
   *
   * ##### Example
   *
   * ```javascript
   * var md = require('markdown-it')();
   *
   * function myToken(tokens, idx, options, env, self) {
   *   //...
   *   return result;
   * };
   *
   * md.renderer.rules['my_token'] = myToken
   * ```
   *
   * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js).
   **/

/**
   * MarkdownIt#utils -> utils
   *
   * Assorted utility functions, useful to write plugins. See details
   * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.js).
   **/

/**
   * MarkdownIt#validateLink(url) -> Boolean
   *
   * Link validation function. CommonMark allows too much in links. By default
   * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
   * except some embedded image types.
   *
   * You can change this behaviour:
   *
   * ```javascript
   * var md = require('markdown-it')();
   * // enable everything
   * md.validateLink = function () { return true; }
   * ```
   **/

/**
   * Match#index -> Number
   *
   * First position of matched string.
   **/

/**
   * Match#lastIndex -> Number
   *
   * Next position after matched string.
   **/

/**
   * Match#raw -> String
   *
   * Matched string.
   **/

/**
   * Match#schema -> String
   *
   * Prefix (protocol) for matched string.
   **/

/**
   * Match#text -> String
   *
   * Notmalized text of matched string.
   **/

/**
   * Match#url -> String
   *
   * Normalized url of matched string.
   **/

/**
   * Merges two `SourceLocation`s from location providers, given they are
   * provided in order of appearance.
   * - Returns the first one's location if only the first is provided.
   * - Returns a merged range of the first and the last if both are provided
   *   and their lexers match.
   * - Otherwise, returns null.
   */

/**
   * Node是否在自身树下子节点内
   */

/**
   * Notify dependencies children with parent update
   * We need delay to trigger validate in case Field is under render props
   */

/**
   * Parse a single symbol out of the string. Here, we handle single character
   * symbols and special functions like verbatim
   */

/**
   * ParserBlock#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of block rules.
   **/

/**
   * ParserInline#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of inline rules.
   **/

/**
   * ParserInline#ruler2 -> Ruler
   *
   * [[Ruler]] instance. Second ruler used for post-processing
   * (e.g. in emphasis-like rules).
   **/

/**
   * Parses a color description.
   */

/**
   * Parses a group when the mode is changing.
   */

/**
   * Parses a group with optional super/subscripts.
   */

/**
   * Parses a group, essentially returning the string formed by the
   * brace-enclosed tokens plus some position information.
   */

/**
   * Parses a regex-delimited group: the largest sequence of tokens
   * whose concatenated strings match `regex`. Returns the string
   * formed by the tokens plus some position information.
   */

/**
   * Parses a size specification, consisting of magnitude and unit.
   */

/**
   * Parses an "expression", which is a list of atoms.
   *
   * `breakOnInfix`: Should the parsing stop when we hit infix nodes? This
   *                 happens when functions have higher precendence han infix
   *                 nodes in implicit parses.
   *
   * `breakOnTokenText`: The text of the token that the expression should end
   *                     with, or `null` if something else should end the
   *                     expression.
   */

/**
   * Parses an URL, checking escaped letters and allowed protocols.
   */

/**
   * Parses an entire function, including its base and all of its arguments.
   */

/**
   * Parses the arguments of a function or environment
   */

/**
   * Parses the given LaTeX into KaTeX's internal parse tree structure,
   * without rendering to HTML or MathML.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */

/**
   * Reads the state tree managed by the store.
   *
   * @returns {any} The current state tree of your application.
   */

/**
   * Record prev Form unmount fieldEntities which config preserve false.
   * This need to be refill with initialValues instead of store value.
   */

/**
   * Recursively expand first token, then return first non-expandable token.
   */

/**
   * Remove and return the next unexpanded token.
   */

/**
   * Remove the effect of sizing changes such as \Huge.
   * Keep the effect of the current style, such as \scriptstyle.
   */

/**
   * Removes a previously added event handler from a DOM node.
   * @param {Node} node The DOM node to remove the event handler from.
   * @param {string} event The event name.
   * @param {Function} fn The event handler to remove.
   * @param {boolean} opt_useCapture If the event handler was added with this
   *     flag set to true, it should be set to true here in order to remove it.
   */

/**
   * Removes the instance from the global IntersectionObserver registry.
   * @private
   */

/**
   * Renderer#rules -> Object
   *
   * Contains render rules for tokens. Can be updated and extended.
   *
   * ##### Example
   *
   * ```javascript
   * var md = require('markdown-it')();
   *
   * md.renderer.rules.strong_open  = function () { return '<b>'; };
   * md.renderer.rules.strong_close = function () { return '</b>'; };
   *
   * var result = md.renderInline(...);
   * ```
   *
   * Each rule is called as independent static function with fixed signature:
   *
   * ```javascript
   * function my_token_render(tokens, idx, options, env, renderer) {
   *   // ...
   *   return renderedHTML;
   * }
   * ```
   *
   * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js)
   * for more details and examples.
   **/

/**
   * Renders the given LaTeX into an HTML internal DOM tree representation,
   * without MathML and without flattening that representation to a string.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */

/**
   * Renders the given LaTeX into an HTML+MathML combination string,
   * for sending to the client.
   */

/**
   * Renders the given LaTeX into an HTML+MathML combination, and adds
   * it as a child to the specified DOM node.
   */

/**
   * Renders the given LaTeX into an HTML+MathML internal DOM tree
   * representation, without flattening that representation to a string.
   *
   * NOTE: This method is not currently recommended for public use.
   * The internal tree representation is unstable and is very likely
   * to change. Use at your own risk.
   */

/**
   * Replaces the reducer currently used by the store to calculate the state.
   *
   * You might need this if your app implements code splitting and you want to
   * load some of the reducers dynamically. You might also need this if you
   * implement a hot reloading mechanism for Redux.
   *
   * @param {Function} nextReducer The reducer for the store to use instead.
   * @returns {void}
   */

/**
   * Report nonstrict (non-LaTeX-compatible) input.
   * Can safely not be called if `this.strict` is false in JavaScript.
   */

/**
   * Reset Field with field `initialValue` prop.
   * Can pass `entities` or `namePathList` or just nothing.
   */

/**
   * Resets the cross-origin mode.
   */

/**
   * Return an options object with a cramped version of the current style. If
   * the current style is cramped, returns `this`.
   */

/**
   * Return an options object with the given size and in at least `\textstyle`.
   * Returns `this` if appropriate.
   */

/**
   * Return an options object with the given style. If `this.style === style`,
   * returns `this`.
   */

/**
   * Return the CSS sizing classes required to switch from enclosing options
   * `oldOptions` to `this`. Returns an array of classes.
   */

/**
   * Return the CSS sizing classes required to switch to the base size. Like
   * `this.havingSize(BASESIZE).sizingClasses(this)`.
   */

/**
   * Return the font metrics for this size.
   */

/**
   * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
   */

/**
   * Returns a new options object with the same properties as "this".  Properties
   * from "extension" will be copied to the new options object.
   */

/**
   * Returns an empty rect object. An empty rect is returned when an element
   * is not in the DOM.
   * @return {ClientRect} The empty rect.
   */

/**
   * Returns any queue entries that have not yet been reported to the
   * callback and clears the queue. This can be used in conjunction with the
   * callback to obtain the absolute most up-to-date intersection information.
   * @return {Array} The currently queued entries.
   */

/**
   * Returns the embedding frame element, if any.
   * @param {!Document} doc
   * @return {!Element}
   */

/**
   * Returns the expanded macro as a reversed array of tokens and a macro
   * argument count.  Or returns `null` if no such macro.
   */

/**
   * Returns the intersection between two rect objects.
   * @param {Object} rect1 The first rect.
   * @param {Object} rect2 The second rect.
   * @return {?Object|?ClientRect} The intersection rect or undefined if no
   *     intersection is found.
   */

/**
   * Returns the root rect after being expanded by the rootMargin value.
   * @return {ClientRect} The expanded root rect.
   * @private
   */

/**
   * Returns the state object for the currently running task. If no task is
   * running, null is returned.
   * @return {?Object}
   */

/**
   * Returns the topmost token on the stack, without expanding it.
   * Similar in behavior to TeX's `\futurelet`.
   */

/**
   * Returns true if `node` is a Document.
   * @param {!Node} node
   * @returns {boolean}
   */

/**
   * Returns whether or not the root element is an element and is in the DOM.
   * @return {boolean} True if the root element is an element and is in the DOM.
   * @private
   */

/**
   * Returns whether or not the target element is a child of root.
   * @param {Element} target The target element to check.
   * @return {boolean} True if the target element is a child of root.
   * @private
   */

/**
   * Rewrites infix operators such as \over with corresponding commands such
   * as \frac.
   *
   * There can only be one infix operator per group.  If there's more than one
   * then the expression is ambiguous.  This can be resolved by adding {}.
   */

/**
   * Runs all scheduled tasks synchronously.
   */

/**
   * Runs as many tasks in the queue as it can before reaching the
   * deadline. If no deadline is passed, it will run all tasks.
   * If an `IdleDeadline` object is passed (as is with `requestIdleCallback`)
   * then the tasks are run until there's no time remaining, at which point
   * we yield to input or other script and wait until the next idle time.
   * @param {IdleDeadline=} deadline
   * @private
   */

/**
   * Scans each observation target for intersection changes and adds them
   * to the internal entries queue. If new entries are found, it
   * schedules the callback to be invoked.
   * @private
   */

/**
   * Schedules the task queue to be processed. If the document is in the
   * hidden state, they queue is scheduled as a microtask so it can be run
   * in cases where a macrotask couldn't (like if the page is unloading). If
   * the document is in the visible state, `requestIdleCallback` is used.
   * @private
   */

/**
   * Set the current value of a name, and optionally set it globally too.
   * Local set() sets the current value and (when appropriate) adds an undo
   * operation to the undo stack.  Global set() may change the undo
   * operation at every level, so takes time linear in their number.
   */

/**
   * Sets an arbitrary attribute on the span. Warning: use this wisely. Not
   * all browsers support attributes the same, and having too many custom
   * attributes is probably bad.
   */

/**
   * Sets an attribute on a MathML node. MathML depends on attributes to convey a
   * semantic content, so this is used heavily.
   */

/**
   * Sets up the polyfill in the cross-origin mode. The result is the
   * updater function that accepts two arguments: `boundingClientRect` and
   * `intersectionRect` - just as these fields would be available to the
   * parent via `IntersectionObserverEntry`. This function should be called
   * each time the iframe receives intersection information from the parent
   * window, e.g. via messaging.
   * @return {function(DOMRect|ClientRect, DOMRect|ClientRect)}
   */

/**
   * Shims the native getBoundingClientRect for compatibility with older IE.
   * @param {Element} el The element whose bounding rect to get.
   * @return {DOMRect|ClientRect} The (possibly shimmed) rect of the element.
   */

/**
   * Start a new group nesting within all namespaces.
   */

/**
   * Start a new nested group, affecting future local `set`s.
   */

/**
   * Starts observing a target element for intersection changes based on
   * the thresholds values.
   * @param {Element} target The DOM element to observe.
   */

/**
   * Starts polling for intersection changes if the polling is not already
   * happening, and if the page's visibility state is visible.
   * @param {!Document} doc
   * @private
   */

/**
   * Step 1, find the leaf DOM node
   */

/**
   * Step 2, calculate the rects
   */

/**
   * Step 3, detect hanging
   */

/**
   * Step 4, detect soft line break
   */

/**
   * Step1: 折叠状态发生变化，准备添加动画，并设置动画初始状态，在 task 末尾设置动画目标状态
   */

/**
   * Step2: 动画结束后移除动画类，更新折叠状态并设置高度自适应
   */

/**
   * Stops observing a target element for intersection changes.
   * @param {Element} target The DOM element to observe.
   */

/**
   * Stops observing all target elements for intersection changes.
   */

/**
   * Stops polling for intersection changes.
   * @param {!Document} doc
   * @private
   */

/**
   * Switches between "text" and "math" modes.
   */

/**
   * The `<TransitionGroup>` component manages a set of transition components
   * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
   * components, `<TransitionGroup>` is a state machine for managing the mounting
   * and unmounting of components over time.
   *
   * Consider the example below. As items are removed or added to the TodoList the
   * `in` prop is toggled automatically by the `<TransitionGroup>`.
   *
   * Note that `<TransitionGroup>`  does not define any animation behavior!
   * Exactly _how_ a list item animates is up to the individual transition
   * component. This means you can mix and match animations across different list
   * items.
   */

/**
   * The base size index.
   */

/**
   * The comparsion was secondRect.left < firstRect.right, but it's 0.xx px
   * incorrect for adjusting bold mark.
   */

/**
   * The frequency in which the polyfill polls for intersection changes.
   * this can be updated on a per instance basis and must be set prior to
   * calling `observe` on the first target.
   */

/**
   * The minimum interval within which the document will be checked for
   * intersection changes.
   */

/**
   * This function lexes a single token.
   */

/**
   * This makes a shallow copy of currentListeners so we can use
   * nextListeners as a temporary list while dispatching.
   *
   * This prevents any bugs around consumers calling
   * subscribe/unsubscribe in the middle of a dispatch.
   */

/**
   * This only trigger when a field is on constructor to avoid we get initialValue too late
   */

/**
   * Token#attrs -> Array
   *
   * Html attributes. Format: `[ [ name1, value1 ], [ name2, value2 ] ]`
   **/

/**
   * Token#block -> Boolean
   *
   * True for block-level tokens, false for inline tokens.
   * Used in renderer to calculate line breaks
   **/

/**
   * Token#children -> Array
   *
   * An array of child nodes (inline and img tokens)
   **/

/**
   * Token#content -> String
   *
   * In a case of self-closing tag (code, html, fence, etc.),
   * it has contents of this tag.
   **/

/**
   * Token#hidden -> Boolean
   *
   * If it's true, ignore this element when rendering. Used for tight lists
   * to hide paragraphs.
   **/

/**
   * Token#info -> String
   *
   * Additional information:
   *
   * - Info string for "fence" tokens
   * - The value "auto" for autolink "link_open" and "link_close" tokens
   * - The string value of the item marker for ordered-list "list_item_open" tokens
   **/

/**
   * Token#level -> Number
   *
   * nesting level, the same as `state.level`
   **/

/**
   * Token#map -> Array
   *
   * Source map info. Format: `[ line_begin, line_end ]`
   **/

/**
   * Token#markup -> String
   *
   * '*' or '_' for emphasis, fence string for fence, etc.
   **/

/**
   * Token#meta -> Object
   *
   * A place for plugins to store an arbitrary data
   **/

/**
   * Token#nesting -> Number
   *
   * Level change (number in {-1, 0, 1} set), where:
   *
   * -  `1` means the tag is opening
   * -  `0` means the tag is self-closing
   * - `-1` means the tag is closing
   **/

/**
   * Token#tag -> String
   *
   * html tag name, e.g. "p"
   **/

/**
   * Token#type -> String
   *
   * Type of the token (string, e.g. "paragraph_open")
   **/

/**
   * Transform the `path` based on `operation`.
   * @param path
   * @param operation
   */

/**
   * Use a mutation observer on the root element
   * to detect intersection changes.
   */

/**
   * Used to detect `data` property values to be HTML-escaped.
   *
   * @memberOf _.templateSettings
   * @type {RegExp}
   */

/**
   * Used to detect `data` property values to inject.
   *
   * @memberOf _.templateSettings
   * @type {RegExp}
   */

/**
   * Used to detect code to be evaluated.
   *
   * @memberOf _.templateSettings
   * @type {RegExp}
   */

/**
   * Used to import variables into the compiled template.
   *
   * @memberOf _.templateSettings
   * @type {Object}
   */

/**
   * Used to reference the data object in the template text.
   *
   * @memberOf _.templateSettings
   * @type {string}
   */

/**
   * We run this inside a try catch
   * so that if any jobs error, we
   * are able to recover and continue
   * to flush the batch until it's empty.
   *
   * @param {Array} tasks
   */

/**
   * adds a new macro to builtin macro list
   */

/**
   * adds a new symbol to builtin symbols table
   */

/**
   * extends internal font metrics object with a new object
   * each key in the new object represents a font name
  */

/**
   * filter自身树下子节点
   */

/**
   * find自身树下子节点
   */

/**
   * forwardRef creates a new interim component, which we'll take advantage of
   * instead of extending ParentComponent to create _another_ interim class
   */

/**
   * https://bugs.webkit.org/show_bug.cgi?id=49739
   * webkit bug, safari 10 及以下会报 ERROR: Attempted to assign to readonly property.
   */

/**
   * mac 不包含 hostVersion
   */

/**
   * map自身树下所有子节点，并返回一个全新的Node
   * 1. 深度优先，后序遍历
   */

/**
   * mode切换
   */

/**
   * overlay可见修改
   *
   * @param {boolean} e
   * @return {void}
   */

/**
   * readonly mode disable composition and input
   * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
   */

/**
   * showSelect 为 false 或者为 true 都是指定并且有意义的，需要用 undefined 来做判断是否有效
   */

/**
   * text change处理
   */

/**
   * value 的 injections 数组
   */

/**
   * win: Calibri 等衬线体
   * mac: Times New Roman
   */

/**
   * win: FangSong FZFangSong-Z02S
   * mac: STFangsong
   */

/**
   * win: KaiTi STKaiti
   * mac: Kaiti SC
   */

/**
   * win: Microsoft YaHei SimHei
   * mac: PingFang SC STHeiti
   */

/**
   * win: SimSun NSimSun
   * mac: Songti SC STSong
   */

/**
   * 不在这里渲染行高：
   * 1. 放在外层不一定能确保 paragraph 被包裹的情况下能继承到（被中间某一层覆盖）
   * 2. 放在外层可能影响 paragraph 到 leaf-block 之间的元素（例如列表）
   */

/**
   * 丢弃 perf 数据
   * @description BACKGROUND:
   * 通常 perf 队列遵循 **先进先出** 的原则，每一次入队都意味着一次交互事件的产生，正常出队的时机是在渲染后的 setTimeout 任务里（通过 perfEnd 出队）。
   * - 有些情况下我们不需要记录此次 perf 值（eg. 交互事件后未触发视图改变），所以通过 `perfDrop(type)` 异步地丢弃之；
   * - 特殊情况下，如果在正常出队前发现数据无效（eg. 丢帧：marcoTask 先于渲染执行）需要丢弃，则通过 `perfDrop(type, true)` 同步地丢弃之。
   * @param type PerfType
   * @param immediately 是否立即丢弃
   */

/**
   * 依次调用所有plugin的key字段，并传入下方的args字段，以及controller和next
   * @param key 对应plugin的key字段
   * @param args 传入plugin的参数
   */

/**
   * 修改 dayjs 值
   *
   * @param {Dayjs} e
   * @return {void}
   */

/**
   * 修改dayjs值
   *
   * @param {Dayjs} e
   * @return {void}
   */

/**
   * 做位置计算的
   */

/**
   * 内部使用了[[Controller.useController]]，把Wrapper封装为一个高阶组件，并传入controller
   */

/**
   * 分两种情况
   * 1: 布局变换, 则重新计算布局
   * 2: 布局没变化, 但是children变换(children的props变化), 需要重新渲染
   */

/**
   * 切换至前一个
   */

/**
   * 切换至后一个
   */

/**
   * 创建一个新的 Point
   * @offset 默认是 0
   */

/**
   * 创建一个新的 Point，并移到 node 的最后一个子节点的终点位置
   */

/**
   * 创建一个新的 Point，并移到 node 的第一个子节点的起始位置
   */

/**
   * 初始化绑定监听容器变化事件
   */

/**
   * 初始化进来定位不需要动画
   */

/**
   * 判断左右的按钮是否显示
   */

/**
   * 判断节点是否在Selection之内
   */

/**
   * 剪切板配置
   */

/**
   * 可不可见变化函数
   *
   * @param {Boolean} visible
   * @return void
   */

/**
   * 可视区域组件变化导致重新计算
   */

/**
   * 合并样式
   */

/**
   * 同时获取start point、end point
   */

/**
   * 在leaves中搜索第offset个字符对应的位置
   */

/**
   * 在指定的位置做一个split，返回split后的两个text
   */

/**
   * 在指定的位置，删掉指定的text长度的文字
   * 本杰：TODO: check whether deleted text is same as text?
   */

/**
   * 在指定的区间，设置一个新的Mark
   * 如果指定区间不合法，或者区间内已经存在同样的mark，则返回自身
   */

/**
   * 场景优化 - 代码块
   */

/**
   * 备份缓存池
   */

/**
   * 复制出一个新的text，并在指定的位置，插入对应的文字和marks
   */

/**
   * 头像情况：
   * 1) 名字、蓝底作为头像：url不存在，且名字存在
   * 2）多人头像：url为数组，如果url为空数组，则为默认群聊头像
   * 2）单人头像：url为字符串，如果url不存在，则为默认单人头像
   */

/**
   * 如果有快捷键时新增的鼠标进入事件
   */

/**
   * 字体名和降级策略的索引
   */

/**
   * 存储降级策略
   */

/**
   * 对leaves执行split操作。
   * @offset text的偏移量，如果位于某一个leaf内部，则分割该leaf
   */

/**
   * 对leaves进行normalize，并返回新Leafs
   */

/**
   * 将 Data Model 上的节点转换为 View Model 的节点
   * @param node
   * @param data
   */

/**
   * 将颜色值转换成颜色对象
   */

/**
   * 序列化 JsonML to HTML，主要适用于富文本拷贝导出
   * @param content JsonML 内容
   * @param configs 自定义插件，如果插件名已经存在，则会覆盖原插件的方法
   */

/**
   * 序列化 node to jsonML
   * @param node
   */

/**
   * 序列化 value to ASL
   * @param value
   */

/**
   * 序列化整个 ASL 文档
   * @param jsonML content ASL
   * @param options 序列化参数
   */

/**
   * 应用operation，并返回一个新value
   */

/**
   * 当 handleOnClick 和 handleOnDoubleClick 同时存在时，对两个函数进行处理，
   * 不然会被 click 截获，无法触发到 doubleClick，
   */

/**
   * 当前 Element 是否为空（只有一个空的 Text 节点）
   */

/**
   * 当前缓存池
   */

/**
   * 当前缓存池的大小
   */

/**
   * 循环获取document下的所有叶子blocks节点
   */

/**
   * 循环获取document下的特定区间内的全部blocks节点
   */

/**
   * 循环获取所有的叶子 block 节点
   */

/**
   * 循环获取所有的满足指定 type 的叶子 block 节点
   */

/**
   * 快捷键：从有效的结构树中获取节点
   */

/**
   * 快捷键：注册有效节点
   */

/**
   * 执行一个command
   * @param cmd command函数或者字符串。传入函数会直接执行，字符串则会调用所有插件的onCommand中对应的处理函数
   * @param args command的参数
   */

/**
   * 执行一个query
   * @param qry query函数或者字符串。传入函数会直接执行，字符串则会调用所有插件的onQuery中对应的处理函数
   * @param args query的参数
   */

/**
   * 执行一个函数，并在执行过程中禁止 op tracking
   * @param fn 执行函数
   * @returns
   */

/**
   * 执行一个函数，并在执行过程中，不记录 undo stack
   * @param fn 执行函数
   * @returns
   */

/**
   * 执行一个函数，并在执行过程中，禁止任何的 normalize
   * @param fn 执行函数
   */

/**
   * 执行一个函数，并在执行过程中，禁止任何的 pending
   * @param fn 执行函数
   * @returns
   */

/**
   * 执行刷新操作。这里会调用normalize，并执行onChange Plugin和onChange回调
   */

/**
   * 执行单个Operation
   * @param operation 需要执行的operation
   */

/**
   * 把 offset 减 n，并返回一个新的 Point。
   * @n 移动的个数，可以为正/负值，默认为 1；如果 n=0，则返回自身。
   */

/**
   * 把 offset 加 n，并返回一个新的 Point。
   * @n 移动的个数，可以为正/负值，默认为 1；如果 n=0，则返回自身。
   */

/**
   * 把当前的 Node 转化成子类型（Text 或者 Element）
   */

/**
   * 把当前的数据选区的 Points 转换成 TextPoints。
   */

/**
   * 拷贝一个 fragment
   * @param event 拷贝事件
   * @param fragment
   */

/**
   * 拷贝一个新Leaf，并把Marks加上去
   */

/**
   * 拷贝一个新Leaf，并把Mark加上去
   */

/**
   * 拷贝一个新Leaf，并把Mark替换掉
   * 如果mark不存在、mark和新mark相等，则返回当前的Leaf
   */

/**
   * 拷贝一个新Leaf，并把Mark过滤掉
   */

/**
   * 拷贝出一个新element，并删除指定位置的mark。
   * 1. 如果传入无效的节点，会抛异常。
   */

/**
   * 拷贝出一个新element，并删除指定位置的节点。
   * 1. 如果传入无效的节点，会抛异常。
   */

/**
   * 拷贝出一个新element，并删除指定的文字。
   * 1. 如果传入无效的节点，会抛异常。
   */

/**
   * 拷贝出一个新element，并在指定的位置，加上一个Mark，并替换相关的节点。
   * @path 位置需要是Text节点
   */

/**
   * 拷贝出一个新element，并在指定的位置，插入一个新node
   * @path 位置需要是Element节点
   */

/**
   * 拷贝出一个新element，并在指定的位置，插入一段文字，并附带Mark
   * @path 位置需要是Text节点
   */

/**
   * 拷贝出一个新element，并把目标path的Node，合并到其上一个Sibling上。
   * 1. 必须满足Node和上一个Sibling是同一种类型。
   * 2. 如果没有上一个Sibling，直接抛异常。
   */

/**
   * 拷贝出一个新element，并移动指定位置的节点。
   * 1. 如果传入无效的节点，会抛异常。
   *
   * 路径矫正示例
   *
   * Given the document tree:
   * ```txt
   *         []
   *        / \
   *     [0]   [1]
   *        __/ | \__
   *   [1,0]  [1,1]  [1,2]
   *          /   \
   *   [1,1,0]   [1,1,1]
   * ```
   *
   * ```ts
   * moveNode([1,0], [1,1,2])
   * Path.isYounger([1,0], [1,1,2])   // true
   * Path.decrement(newPath, 1, path.length - 1) // adjusted to: [1,0,2]
   * ```
   * The final document tree:
   * ```txt
   *         []
   *        / \
   *     [0]   [1]
   *            | \__
   *          [1,0]  [1,1]
   *        __/ | \__
   * [1,0,0]  [1,0,1] [1,0,2]
   * ```
  */

/**
   * 拷贝出一个新value，并设置选区字段
   */

/**
   * 拷贝出一个新的element，并在特定的位置，拆分Node。目标可以是text节点，也可以是element节点
   * @position 拆分位置。如果是text节点，代表文字的偏移量；如果是element节点，代表子节点index。
   * @properties 对于element的拆分，会把此参数merge到第二个拆分结果中。
   */

/**
   * 拷贝出一个新的text节点，并在指定的位置添加mark
   * 如果offset不合法，则返回自身
   */

/**
   * 拷贝出一个新的text节点，并在指定的位置添加marks。
   * 如果marks是0，或者offset不合法，则返回自身
   */

/**
   * 拷贝出一个新的text节点，并在指定的位置过滤掉对应的mark
   * 如果当前没有这个mark，或者offset不合法，则返回自身
   */

/**
   * 拷贝出一个新的text，并把传入的text的leaves添加上去
   */

/**
   * 拷贝出一个新的选区，并把anchor和focus调换位置
   */

/**
   * 拷贝出一个新的选区，并把start point移到end point的位置
   */

/**
   * 拷贝出一个新的选区，并设置选区的Haning状态
   */

/**
   * 拷贝过来的数据不一定完全可信，这里做一下数据效验
   * @param fragment
   */

/**
   * 插入 fragment 后移动光标的位置：
   * 1. 首先判断本次插入操作是否有产生新的 text，如果没有产生新 text 节点，则为纯文字的插入，光标会自动校正，不需要处理
   * 2. 若产生了新的 text 节点，则先移动至 lastText 的 end 点
   * 3. 如果插入的过程中产生了对一段文字的后半段做 split 操作，则需要做偏移校正，校正的距离为插入前光标距离末尾的偏移量
   */

/**
   * 插入容器节点
   *
   * @return {void}
   */

/**
   * 是否在 node 内部
   */

/**
   * 是否在 node 的最后一个节点的终点位置
   */

/**
   * 是否在 node 的第一个节点的起始位置
   */

/**
   * 是否是叶子 block
   */

/**
   * 是否是叶子inline
   */

/**
   * 是否有一个Void父节点
   */

/**
   * 是否需要进行键位检测
   */

/**
   * 暴露给外面的 ref 进行状态修改
   *
   * @param {Partial<IAbsolutePopupProps>} state
   */

/**
   * 构建一个新的Controller对象
   * @param props 构建参数
   * @param options 构建选项
   */

/**
   * 根据Path，获取子element节点
   * 1. 如果Path无效，会抛出异常
   * 2. 如果Path为[]，则尝试返回自身节点
   */

/**
   * 根据Path，获取子text节点
   * 1. 如果Path无效，会抛出异常
   * 2. 如果Path为[]，则尝试返回自身节点
   */

/**
   * 根据Path，获取子节点
   * 1. 如果Path为null，或者Path与子节点树无法对应，方法返回null
   * 2. 如果Path为[]，方法返回自身节点
   */

/**
   * 根据Path，获取子节点
   * 1. 如果Path无效，会抛出异常
   * 2. 如果Path为[]，则返回自身节点
   */

/**
   * 根据PointName，获取point
   */

/**
   * 根据key，获取子element节点
   * 1. 如果key无效，会抛出异常
   * 2. 如果key指向自身，则尝试返回自身
   */

/**
   * 根据key，获取子text节点
   * 1. 如果key无效，会抛出异常
   * 2. 如果key指向自身，则尝试返回自身
   */

/**
   * 根据key，获取子节点
   * 1. 如果key无效，则返回null
   * 2. 如果key指向自身，则返回自身
   */

/**
   * 根据key，获取子节点
   * 1. 如果key无效，方法抛出异常
   * 2. 如果key指向自身，则返回自身
   */

/**
   * 根据offset区间，获取marks
   */

/**
   * 根据offset区间，获取区间内所有文字都含有的，公共marks
   */

/**
   * 根据图片地址获取图片的 type、natural size 等 info
   * @param src 图片资源地址;
   * @param forceUpdate 是否强制更新 src 的 info
   * @returns 图片的 type、natural size 等 info
   */

/**
   * 根据选区，获取一个fragment
   */

/**
   * 检测 dropdown 是否需要显示，并调整 offset
   */

/**
   * 检测左右按钮的激活状态，并调整 offset
   */

/**
   * 此节点是否是一个Block节点。see Block.isBlock
   */

/**
   * 此节点是否是一个Element节点。see Element.isElement
   */

/**
   * 此节点是否是一个Inline节点。see Inline.isInline
   */

/**
   * 此节点是否是一个Text节点。see Text.isText
   */

/**
   * 添加单项
   */

/**
   * 添加快捷方式
   */

/**
   * 滚动处理，一旦number更新了，就开始执行动画
   */

/**
   * 点击关闭按钮
   */

/**
   * 点击查看详情
   */

/**
   * 点击遮罩
   *
   * @return {void}
   */

/**
   * 用户体验优化：如果是光标状态，尝试选中最近的一个 block 进行评论
   */

/**
   * 监控overlay的size变化
   */

/**
   * 确认点击
   */

/**
   * 等待执行的微任务
   */

/**
   * 简易缓存，减少计算消耗
   */

/**
   * 纯文本序列化成 ASL
   * @param text
   */

/**
   * 绑定快捷键
   */

/**
   * 给指定Path的node，设置properties
   */

/**
   * 给指定Path的一段offset，设置一个mark
   */

/**
   * 缓存池容量
   */

/**
   * 聚焦
   *
   * @param {React.FocusEvent<HTMLElement>} e
   * @return {void}
   */

/**
   * 自上次更新后，comments 和 document 均无变化，就不需要在继续了。
   *
   * 这里是保障，万一 addMark 不生效，会导致无限循环的问题：
   * addMark -> document change -> setComments -> addMark
   */

/**
   * 自身的 nodes 中，是否有 block 类型的节点
   */

/**
   * 获取 path 上所有的 Ancestor 节点，包括自身 Node，不包括 path 对应的 Node。
   * 节点按照树层级顺序倒序，第一个是 path 对应的 parent，最后一个是自身的第一层 nodes
   */

/**
   * 获取 path 上所有的 Ancestor 节点，包括自身 Node，不包括 path 对应的 Node。
   * 节点按照树层级顺序倒序，第一个是path对应的 parent，最后一个是自身的第一层 nodes
   */

/**
   * 获取 path 上所有的 Ancestor 节点，包括自身 Node，不包括 path 对应的 Node。
   * 节点按照树层级顺序排序，第一个是自身 Node，最后一个是 path 对应的 parent
   */

/**
   * 获取Selection内所有的Text节点
   */

/**
   * 获取Selection内所有的叶子Inline节点
   */

/**
   * 获取Selection内的所有最远Inline节点
   */

/**
   * 获取[startKey, endKey]之间的所有Text Node
   * 包括startKey、endKey对应的Node
   *
   * @param startKey 起始Text对应的key
   * @param endKey 结束Text对应的key
   */

/**
   * 获取end point
   */

/**
   * 获取selection内对应的所有marks
   */

/**
   * 获取selection内对应的所有公共marks
   */

/**
   * 获取start point
   */

/**
   * 获取text内所有文字都有的，公共marks
   */

/**
   * 获取{子Node Key: [本身key, 子Node Index]}的映射
   */

/**
   * 获取上一个Sibling节点
   */

/**
   * 获取下一个Sibling节点
   */

/**
   * 获取公共的父节点
   */

/**
   * 获取当前选中的anchor位置对应的block
   */

/**
   * 获取当前选中的blocks
   */

/**
   * 获取所有插件内容的models map集合
   * @param
   */

/**
   * 获取所有的marks
   */

/**
   * 获取插入点对应的marks
   * 如果选区是collapse的，返回插入位置的marks;
   * 如果插入位置在新的text节点，则尝试获取同一block的前一个text对应的mark；
   * 如果选区是expand，则返回start位置对应的marks
   */

/**
   * 获取最后一个Text
   * 根据目前Schema规范，都会返回一个text；但是后续Cangjie扩展，可能返回null
   */

/**
   * 获取最后一个叶子Node；如果自身就是一个叶子Node，则返回自身
   * 根据目前Schema规范，返回的都都是一个text；但是后续Cangjie扩展，可能返回其它类型Node
   */

/**
   * 获取最近的Void父节点
   */

/**
   * 获取最近的支持 edge 选择的 block 节点。
   * 如果 key 对应的节点满足条件，会直接返回此节点。
   */

/**
   * 获取最顶层的一个Void节点
   */

/**
   * 获取父节点
   * 1. 如果key无效，则抛异常
   */

/**
   * 获取父节点
   * 1. 如果key无效，则返回null
   */

/**
   * 获取特定区间的所有叶子block
   */

/**
   * 获取目标node，相对于自身文本的偏移量
   */

/**
   * 获取相对于当前节点的Path
   * 1. 如果没有找到，就抛出异常
   */

/**
   * 获取相对于当前节点的Path。
   * 1. 如果没有找到，就返回null。
   */

/**
   * 获取第index个文字，对应的marks
   */

/**
   * 获取第一个Text
   * 根据目前Schema规范，都会返回一个text；但是后续Cangjie扩展，可能返回null
   */

/**
   * 获取第一个可接受的剪切板数据类型
   */

/**
   * 获取第一个叶子Node；如果自身就是一个叶子Node，则返回自身
   * 根据目前Schema规范，返回的都都是一个text；但是后续Cangjie扩展，可能返回其它类型Node
   */

/**
   * 获取自身nodes中，包含目标key的Node
   */

/**
   * 获取自身树下所有的叶子 block 节点
   */

/**
   * 获取自身树下的所有 Text 节点
   * 如果自身是 Text，则返回只含有自身的数组
   */

/**
   * 获取自身树下的所有叶子inline节点
   */

/**
   * 获取节点下的文本
   */

/**
   * 获取节点树上最元的父节点，满足目标节点只有一个子节点
   */

/**
   * 获取节点树上最近的 block 节点。如果 key 对应的节点满足条件，则返回此节点。
   */

/**
   * 获取节点树上最近的父block节点
   */

/**
   * 获取节点树上最近的父inline节点
   */

/**
   * 获取节点树最远的父block节点
   */

/**
   * 获取节点树最远的父inline节点
   */

/**
   * 获取节点树的上一个叶子Block
   */

/**
   * 获取节点树的上一个叶子Text
   */

/**
   * 获取节点树的上一个叶子节点
   */

/**
   * 获取节点树的下一个叶子Text
   */

/**
   * 获取节点树的下一个叶子block
   */

/**
   * 获取节点树的下一个叶子节点
   */

/**
   * 获取节点的偏移量
   *
   * @param {HTMLElement} node
   * @return {number} clientRect.left
   */

/**
   * 获取节点的宽度
   *
   * @param {HTMLElement} node
   * @return {number} offsetWidth
   */

/**
   * 获取节点的滚动宽度
   *
   * @param {HTMLElement} node
   * @return {number} scrollWidth
   */

/**
   * 获得 `node`  的视图数据
   * @param node
   */

/**
   * 获得一个剪切板，使用配置数据作为 union 单位，针对不同的 config 实例返回不同的剪切板
   * @param config 编辑器的配置
   */

/**
   * 获得当前编辑器的视图模型
   */

/**
   * 议题边框颜色 @狗毛
   */

/**
   * 设置一个新的value对象
   * @param value 新的value对象
   * @param options 设置选项
   */

/**
   * 设置偏移量
   *
   */

/**
   * 读取剪切板中的 fragment
   * @param parse 是否强制解析 html/text，默认为 true
   */

/**
   * 读取剪切板中的 纯文本内容
   */

/**
   * 读取剪切板中的图片文件
   */

/**
   * 读取剪切板数据，相同的 event 会读取到同一个实例
   * @param event
   */

/**
   * 读取剪切板缓存数据，切换不同粘贴模式下使用
   * @param event
   */

/**
   * 读取剪贴板中的纯文本内容，并返回以 Markdown 格式序列化的 Value
   *
   * @returns {Document}
   */

/**
   * 调度执行 flush，在微任务中执行
   */

/**
   * 调整range的开始位置和结束位置，使其"收缩"到最小的位置， 如果ignoreEnd的值为true，则忽略对结束位置的调整
   * @param document
   * @param ignoreEnd 如果ignoreEnd的值为true，则忽略对结束位置的调整
   * @example
   * before:1234<anchor/><link>56<focus/>78</link>90
   * after:1234<link><anchor/>56<focus/>78</link>90
   */

/**
   * 辅助构造不同类型的信息提示模态框（只提供一个按钮用于关闭）
   * 接受不同的 icon 元素作为参数，返回用于构造信息提示模态框的方法
   */

/**
   * 输入值变化
   *
   * @param {React.ChangeEvent<HTMLInputElement>}
   * @return {void}
   */

/**
   * 输入框输入
   *
   * @param {number} index
   * @param {React.ChangeEvent<HTMLInputElement>} e
   */

/**
   * 选区是不是倒序的（anchor在后，focus在前）
   */

/**
   * 选区是不是正序的（anchor在前，focus在后）
   */

/**
   * 选区是否在Hanging状态
   */

/**
   * 选区是否指向同一个位置（caret）
   */

/**
   * 选项高亮移动
   *
   * @param {1 | -1} step
   * @return {void}
   */

/**
   * 遍历 document 中所有的图片，确保所有的图片已经被 register
   * @param document 
   * @returns 
   */

/**
   * 遍历ancestor nodes，获取第一个满足predicate的Node
   * 从当前Node的第一层子节点遍历，不包括自身Node
   */

/**
   * 遍历自身树下所有子节点
   * 1. 深度优先，前序遍历
   * @param iterator 遍历函数；如果返回false，则取消遍历当前节点的children
   */

/**
   * 销毁当前 controller 实例
   */

/**
   * 阅读模式为什么要挂载 textarea 节点？
   * user-select: none 时浏览器由于丢失了原生选区，无法触发 onCopy 事件，所以这里挂载一个 readOnly 的 textarea 节点用于获取
   * 浏览器的焦点。
   */

/**
   * 阻止blur
   */

/**
   * 阻止冒泡
   */

/**
   * 需要判断数据节点是否是第一个，防止一些 html 夹杂着无用的 data-clipboard-data 节点，导致误解析
   */

/**
   * 鼠标离开trigger区域
   *
   * @param {React.MouseEvent<HTMLElement>} e
   * @return {void}
   */

/**
   * 鼠标进入trigger区域
   *
   * @param {React.MouseEvent<HTMLElement>} e
   * @return {void}
   */

/**
  * 快捷键：注册有效节点
  */

/**
  * 根据仓颉节点的 key 获取对应的 HTML 节点。
  */

/**
  * 添加快捷方式
  */

/**
  * 通用字体族（去掉部分不用的）
  * https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#%3Cgeneric-name%3E
*/

/**
  mixin-deep; https://github.com/jonschlinkert/mixin-deep
  Inlined such that it will be consistently transpiled to an IE-compatible syntax.

  The MIT License (MIT)

  Copyright (c) 2014-present, Jon Schlinkert.

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
*/

/**
 *
 * @param data slate value data
 * @param map 映射对象
 */

/**
 *
 * Caret Hanging Optimization
 *
 * By default, the [caret] is inserted **after the charactor**:
 *
 *   [charactor][caret][may-be-a-line-break][next charactor].
 *
 * For multi-lines paragraph, the start of the non-first line cannot be focused
 * by this behaviour. Then we optimize the caret insert position to **before
 * the last characotr** if the user is clicking/touching the very left side:
 *
 *   [charactor][may-be-a-line-break][caret][next charactor]
 *
 */

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */

/**
 *
 * If the HTML node is hide behind a horizontal scroll container, make it
 * visible
 */

/**
 *
 * differences between `select` and `userSelect`:
 *
 * `select` will set exactly what you passed;
 * `userSelect` may adjust the selection to make the user feel expected.
 */

/**
 *
 * move point out of inline IF it's located at inline edges
 *
 * ### Normal Inline
 * Before: `<link><anchor/>www.dingtalk.com<focus/></link>`
 * 
 * After: `<anchor/><link>www.dingtalk.com</link><focus/>`
 * 
 * ### Side selectable Inline
 * Before: `<anchor/><ins>www.dingtalk.com</ins><focus/>`
 * 
 * After: `<ins><anchor/>www.dingtalk.com<focus/></ins>`
 */

/**
 *
 * move point out of inline IF it's located at inline edges
 *
 * Optimizition for non-void inlines (e.g. <Link> elements) for better experience
 *
 * Before: <link>[anchor]www.dingtalk.com[focus]</link>
 * After: [anchor]<link>www.dingtalk.com</link>[focus]
 */

/**
 *
 * move point out of void
 *
 * Before: <img>[anchor]</img>cangjie[focus]
 * After: [anchor]<img></img>cangjie[focus]
 */

/**
 *  1. 首字母为 # 开头，
 *  2. 首字母为 * + 空格
 *  3. 首字母为 --- + \n
 *  4. 首字母为 数字 + . + 空格
 *  满足以上任一情况，则识别为 markdown 语法
 * */

/**
 *  单独 \r 或 \r\n 效果类似 \n ，有折行效果
 *  \r\r 或 \n\n， 有隔行效果
 * */

/**
 * 20200126 引入 uuid，保证多实例 hook，避免多个hook同时对dom操作造成的判断失效
 * 保证每次调用能拿到同一个值
 */

/**
 * ================ 控制器相关 start ====================
 */

/**
 * @deprecated
 *
 * **We recommend using the `configureStore` method
 * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
 *
 * Redux Toolkit is our recommended approach for writing Redux logic today,
 * including store setup, reducers, data fetching, and more.
 *
 * **For more details, please read this Redux docs page:**
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * `configureStore` from Redux Toolkit is an improved version of `createStore` that
 * simplifies setup and helps avoid common bugs.
 *
 * You should not be using the `redux` core package by itself today, except for learning purposes.
 * The `createStore` method from the core `redux` package will not be removed, but we encourage
 * all users to migrate to using Redux Toolkit for all Redux code.
 *
 * If you want to use `createStore` without this visual deprecation warning, use
 * the `legacy_createStore` import instead:
 *
 * `import { legacy_createStore as createStore} from 'redux'`
 *
 */

/**
 * @deprecated recommend use navigator.language to get current language
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'ios'` 代替
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'notInDingTalk'` 代替
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'pc'` 代替
 */

/**
 * @deprecated 用于比较版本号，适用于钉钉内业务简易的版本比较
 * 例如3.5.0 > 3.4.9, 而semver的版本号则不支持
 * semver的版本号会忽略tag，例如3.5.0-realse.1 跟 3.5.0-realse.2 相等
 */

/**
 * @description sticker 为选中态时，根据实际场景移动光标至节点左侧或右侧
 * @param offset 光标移动偏移量
 * */

/**
 * @description word缩进单位与仓颉的缩进单位不同，此函数做单位转换
 * */

/**
 * @description 创建插入表情函数
 * @param {controller}
 * @param {sticker}
 * */

/**
 * @description 移除掉word 节点中项目符号相关的文本，只保留列表内容
 * */

/**
 * @description 继承粘贴时光标所在位置 startBlock的style
 * @param {Document} fragment - 粘贴要插入的内存模型对象
 * */

/**
 * @description 继承粘贴时光标所在位置 startBlock的style及type
 * @param {Document} fragment - 粘贴要插入的内存模型对象
 * */

/**
 * @description 继承粘贴时光标所在位置 startBlock的style及type
 * @param {controller}
 * */

/**
 * @description 获取代码块节点元素的内容
 * */

/**
 * @description 获取代码块语言类型
 * @param {Element} codeBlockDom - 粘贴的代码块节点元素
 * */

/**
 * @description 获取切换粘贴模式前光标所在的point
 * */

/**
 * @description 获取选区开始与结束位置信息
 */

/**
 * @description 获取选区是否在同个节点上
 */

/**
 * @description 获取选区是否在段落开始位置
 */

/**
 * @description 获取选区是否在段落结束位置
 */

/**
 * @description 通过style判断是否为word列表项
 * */

/**
 * @description: Generating hash from string
 * */

/**
 * @ignore
 *
 * TODO: external zoom 是为了感知上层业务自行实现的缩放，但是这个设计是不合理的，上层业务从使
 * 用上看，没必要自行实现缩放功能，应该使用 cangjie 自带的缩放设计。后续希望移除此部分的 API。
 *
 * 目前已知的业务自行实现的缩放场景：PC 演示模式、生成长图
 * 2021-0222 新加：缩放状态下的评论
 */

/**
 * @ignore
 */

/**
 * @license
 * Lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="es" -o ./`
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/**
 * @packageDocumentation
 * @ignore
 */

/**
 * @packageDocumentation
 * @module Commands
 */

/**
 * @packageDocumentation
 * @module Controller
 */

/**
 * @packageDocumentation
 * @module Events
 * @description Prevent clipboard data from being destroyed when asynchronous retrieval of data
 */

/**
 * @packageDocumentation
 * @module Events
 */

/**
 * @packageDocumentation
 * @module Hooks
 */

/**
 * @packageDocumentation
 * @module Reader
 */

/**
 * @packageDocumentation
 * @module Serializer
 */

/**
 * @packageDocumentation
 * @module constants
 */

/**
 * @packageDocumentation
 * @module domUtils
 */

/**
 * @packageDocumentation
 * @module environment
 */

/**
 * @packageDocumentation
 * @module keyUtils
 */

/**
 * @param {Object} options
 */

/**
 * @param {any} obj The object to inspect.
 * @returns {boolean} True if the argument appears to be a plain object.
 */

/**
 * @typedef ProtocolExtract
 * @type Object
 * @property {String} protocol Protocol matched in the URL, in lowercase.
 * @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
 * @property {String} rest Rest of the URL that is not part of the protocol.
 */

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */

/**
 * A flattened version of all the supported blocks in a single array.
 * This is an optimization to make supportedCodepoint() fast.
 */

/**
 * A generic `Array#map` utility function.
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} callback The function that gets called for every array
 * item.
 * @returns {Array} A new array of values returned by the callback function.
 */

/**
 * A generic error utility function.
 * @private
 * @param {String} type The error type.
 * @returns {Error} Throws a `RangeError` with the applicable error message.
 */

/**
 * A hook to access the redux `dispatch` function.
 *
 * @returns {any|function} redux store's `dispatch` function
 *
 * @example
 *
 * import React, { useCallback } from 'react'
 * import { useDispatch } from 'react-redux'
 *
 * export const CounterComponent = ({ value }) => {
 *   const dispatch = useDispatch()
 *   const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
 *   return (
 *     <div>
 *       <span>{value}</span>
 *       <button onClick={increaseCounter}>Increase counter</button>
 *     </div>
 *   )
 * }
 */

/**
 * A hook to access the redux store's state. This hook takes a selector function
 * as an argument. The selector is called with the store state.
 *
 * This hook takes an optional equality comparison function as the second parameter
 * that allows you to customize the way the selected state is compared to determine
 * whether the component needs to be re-rendered.
 *
 * @param {Function} selector the selector function
 * @param {Function=} equalityFn the function that will be used to determine equality
 *
 * @returns {any} the selected state
 *
 * @example
 *
 * import React from 'react'
 * import { useSelector } from 'react-redux'
 *
 * export const CounterComponent = () => {
 *   const counter = useSelector(state => state.counter)
 *   return <div>{counter}</div>
 * }
 */

/**
 * A hook to access the redux store.
 *
 * @returns {any} the redux store
 *
 * @example
 *
 * import React from 'react'
 * import { useStore } from 'react-redux'
 *
 * export const ExampleComponent = () => {
 *   const store = useStore()
 *   return <div>{store.getState()}</div>
 * }
 */

/**
 * A hook to access the value of the `ReactReduxContext`. This is a low-level
 * hook that you should usually not need to call directly.
 *
 * @returns {any} the value of the `ReactReduxContext`
 *
 * @example
 *
 * import React from 'react'
 * import { useReduxContext } from 'react-redux'
 *
 * export const CounterComponent = ({ value }) => {
 *   const { store } = useReduxContext()
 *   return <div>{store.getState()}</div>
 * }
 */

/**
 * A simple `Array#map`-like wrapper to work with domain name strings or email
 * addresses.
 * @private
 * @param {String} domain The domain name or email address.
 * @param {Function} callback The function that gets called for every
 * character.
 * @returns {String} A new string of characters returned by the callback
 * function.
 */

/**
 * A specialized version of `_.every` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if all elements pass the predicate check,
 *  else `false`.
 */

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */

/**
 * A specialized version of `_.forEachRight` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */

/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */

/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * A specialized version of `_.lastIndexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */

/**
 * A specialized version of `_.reduceRight` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @param {boolean} [initAccum] Specify using the last element of `array` as
 *  the initial value.
 * @returns {*} Returns the accumulated value.
 */

/**
 * A specialized version of `_.reduce` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @param {boolean} [initAccum] Specify using the first element of `array` as
 *  the initial value.
 * @returns {*} Returns the accumulated value.
 */

/**
 * A specialized version of `_.sampleSize` for arrays.
 *
 * @private
 * @param {Array} array The array to sample.
 * @param {number} n The number of elements to sample.
 * @returns {Array} Returns the random elements.
 */

/**
 * A specialized version of `_.sample` for arrays.
 *
 * @private
 * @param {Array} array The array to sample.
 * @returns {*} Returns the random element.
 */

/**
 * A specialized version of `_.shuffle` for arrays.
 *
 * @private
 * @param {Array} array The array to shuffle.
 * @returns {Array} Returns the new shuffled array.
 */

/**
 * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
 *
 * @private
 * @param {Array} array The array to shuffle.
 * @param {number} [size=array.length] The size of `array`.
 * @returns {Array} Returns `array`.
 */

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */

/**
 * A specialized version of `baseAggregator` for arrays.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
 *
 * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
 * during build.
 * @param {number} code
 */

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */

/**
 * Adds a CSS class to a given element.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * Adds all own enumerable string keyed function properties of a source
 * object to the destination object. If `object` is a function, then methods
 * are added to its prototype as well.
 *
 * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
 * avoid conflicts caused by modifying the original.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {Function|Object} [object=lodash] The destination object.
 * @param {Object} source The object of functions to add.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
 * @returns {Function|Object} Returns `object`.
 * @example
 *
 * function vowels(string) {
 *   return _.filter(string, function(v) {
 *     return /[aeiou]/i.test(v);
 *   });
 * }
 *
 * _.mixin({ 'vowels': vowels });
 * _.vowels('fred');
 * // => ['e']
 *
 * _('fred').vowels().value();
 * // => ['e']
 *
 * _.mixin({ 'vowels': vowels }, { 'chain': false });
 * _('fred').vowels();
 * // => ['e']
 */

/**
 * Aggregates elements of `collection` on `accumulator` with keys transformed
 * by `iteratee` and values set by `setter`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */

/**
 * All registered environments.
 * `environments.js` exports this same dictionary again and makes it public.
 * `Parser.js` requires this dictionary via `environments.js`.
 */

/**
 * An alternative to `_.reduce`; this method transforms `object` to a new
 * `accumulator` object which is the result of running each of its own
 * enumerable string keyed properties thru `iteratee`, with each invocation
 * potentially mutating the `accumulator` object. If `accumulator` is not
 * provided, a new object with the same `[[Prototype]]` will be used. The
 * iteratee is invoked with four arguments: (accumulator, value, key, object).
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @static
 * @memberOf _
 * @since 1.3.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @param {*} [accumulator] The custom accumulator value.
 * @returns {*} Returns the accumulated value.
 * @example
 *
 * _.transform([2, 3, 4], function(result, n) {
 *   result.push(n *= n);
 *   return n % 2 == 0;
 * }, []);
 * // => [4, 9]
 *
 * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
 *   (result[value] || (result[value] = [])).push(key);
 * }, {});
 * // => { '1': ['a', 'c'], '2': ['b'] }
 */

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */

/**
 * Asserts that the node is of the given type and returns it with stricter
 * typing. Throws if the node's type does not match.
 */

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * Attempts to encode a given input.
 *
 * @param {String} input The string that needs to be encoded.
 * @returns {String|Null} The encoded string.
 * @api private
 */

/**
 * Attempts to invoke `func`, returning either the result or the caught error
 * object. Any additional arguments are provided to `func` when it's invoked.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Util
 * @param {Function} func The function to attempt.
 * @param {...*} [args] The arguments to invoke `func` with.
 * @returns {*} Returns the `func` result or error object.
 * @example
 *
 * // Avoid throwing errors for invalid selectors.
 * var elements = _.attempt(function(selector) {
 *   return document.querySelectorAll(selector);
 * }, '>_>');
 *
 * if (_.isError(elements)) {
 *   elements = [];
 * }
 */

/**
 * Cannot run on the server.
 */

/**
 * Casts `array` to a slice if it's needed.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {number} start The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the cast slice.
 */

/**
 * Casts `value` as an array if it's not one.
 *
 * @static
 * @memberOf _
 * @since 4.4.0
 * @category Lang
 * @param {*} value The value to inspect.
 * @returns {Array} Returns the cast array.
 * @example
 *
 * _.castArray(1);
 * // => [1]
 *
 * _.castArray({ 'a': 1 });
 * // => [{ 'a': 1 }]
 *
 * _.castArray('abc');
 * // => ['abc']
 *
 * _.castArray(null);
 * // => [null]
 *
 * _.castArray(undefined);
 * // => [undefined]
 *
 * _.castArray();
 * // => []
 *
 * var array = [1, 2, 3];
 * console.log(_.castArray(array) === array);
 * // => true
 */

/**
 * Casts `value` to `identity` if it's not a function.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Function} Returns cast function.
 */

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */

/**
 * Casts `value` to an empty array if it's not an array like object.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Array|Object} Returns the cast array-like object.
 */

/**
 * Check if we're required to add a port number.
 *
 * @see https://url.spec.whatwg.org/#default-port
 * @param {Number|String} port Port number we need to check
 * @param {String} protocol Protocol we need to check against.
 * @returns {Boolean} Is it a default port for the given protocol
 * @api private
 */

/**
 * Check whether a protocol scheme is special.
 *
 * @param {String} The protocol scheme of the URL
 * @return {Boolean} `true` if the protocol scheme is special, else `false`
 * @private
 */

/**
 * Checks `value` to determine whether a default value should be returned in
 * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
 * or `undefined`.
 *
 * @static
 * @memberOf _
 * @since 4.14.0
 * @category Util
 * @param {*} value The value to check.
 * @param {*} defaultValue The default value.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * _.defaultTo(1, 10);
 * // => 1
 *
 * _.defaultTo(undefined, 10);
 * // => 10
 */

/**
 * Checks if `func` has a lazy counterpart.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
 *  else `false`.
 */

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */

/**
 * Checks if `n` is between `start` and up to, but not including, `end`. If
 * `end` is not specified, it's set to `start` with `start` then set to `0`.
 * If `start` is greater than `end` the params are swapped to support
 * negative ranges.
 *
 * @static
 * @memberOf _
 * @since 3.3.0
 * @category Number
 * @param {number} number The number to check.
 * @param {number} [start=0] The start of the range.
 * @param {number} end The end of the range.
 * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
 * @see _.range, _.rangeRight
 * @example
 *
 * _.inRange(3, 2, 4);
 * // => true
 *
 * _.inRange(4, 8);
 * // => true
 *
 * _.inRange(4, 2);
 * // => false
 *
 * _.inRange(2, 2);
 * // => false
 *
 * _.inRange(1.2, 2);
 * // => true
 *
 * _.inRange(5.2, 4);
 * // => false
 *
 * _.inRange(-3, -2, -6);
 * // => true
 */

/**
 * Checks if `object` conforms to `source` by invoking the predicate
 * properties of `source` with the corresponding property values of `object`.
 *
 * **Note:** This method is equivalent to `_.conforms` when `source` is
 * partially applied.
 *
 * @static
 * @memberOf _
 * @since 4.14.0
 * @category Lang
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property predicates to conform to.
 * @returns {boolean} Returns `true` if `object` conforms, else `false`.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 *
 * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
 * // => true
 *
 * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
 * // => false
 */

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */

/**
 * Checks if `path` is a direct property of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = { 'a': { 'b': 2 } };
 * var other = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.has(object, 'a');
 * // => true
 *
 * _.has(object, 'a.b');
 * // => true
 *
 * _.has(object, ['a', 'b']);
 * // => true
 *
 * _.has(other, 'a');
 * // => false
 */

/**
 * Checks if `predicate` returns truthy for **all** elements of `collection`.
 * Iteration is stopped once `predicate` returns falsey. The predicate is
 * invoked with three arguments: (value, index|key, collection).
 *
 * **Note:** This method returns `true` for
 * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
 * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
 * elements of empty collections.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {boolean} Returns `true` if all elements pass the predicate check,
 *  else `false`.
 * @example
 *
 * _.every([true, 1, null, 'yes'], Boolean);
 * // => false
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36, 'active': false },
 *   { 'user': 'fred',   'age': 40, 'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.every(users, { 'user': 'barney', 'active': false });
 * // => false
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.every(users, ['active', false]);
 * // => true
 *
 * // The `_.property` iteratee shorthand.
 * _.every(users, 'active');
 * // => false
 */

/**
 * Checks if `predicate` returns truthy for **any** element of `collection`.
 * Iteration is stopped once `predicate` returns truthy. The predicate is
 * invoked with three arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 * @example
 *
 * _.some([null, 0, 'yes', false], Boolean);
 * // => true
 *
 * var users = [
 *   { 'user': 'barney', 'active': true },
 *   { 'user': 'fred',   'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.some(users, { 'user': 'barney', 'active': false });
 * // => false
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.some(users, ['active', false]);
 * // => true
 *
 * // The `_.property` iteratee shorthand.
 * _.some(users, 'active');
 * // => true
 */

/**
 * Checks if `string` contains Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a symbol is found, else `false`.
 */

/**
 * Checks if `string` contains a word composed of Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a word is found, else `false`.
 */

/**
 * Checks if `string` ends with the given target string.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to inspect.
 * @param {string} [target] The string to search for.
 * @param {number} [position=string.length] The position to search up to.
 * @returns {boolean} Returns `true` if `string` ends with `target`,
 *  else `false`.
 * @example
 *
 * _.endsWith('abc', 'c');
 * // => true
 *
 * _.endsWith('abc', 'b');
 * // => false
 *
 * _.endsWith('abc', 'b', 2);
 * // => true
 */

/**
 * Checks if `string` starts with the given target string.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to inspect.
 * @param {string} [target] The string to search for.
 * @param {number} [position=0] The position to search from.
 * @returns {boolean} Returns `true` if `string` starts with `target`,
 *  else `false`.
 * @example
 *
 * _.startsWith('abc', 'a');
 * // => true
 *
 * _.startsWith('abc', 'b');
 * // => false
 *
 * _.startsWith('abc', 'b', 1);
 * // => true
 */

/**
 * Checks if `value` is `NaN`.
 *
 * **Note:** This method is based on
 * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
 * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
 * `undefined` and other non-number values.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 * @example
 *
 * _.isNaN(NaN);
 * // => true
 *
 * _.isNaN(new Number(NaN));
 * // => true
 *
 * isNaN(undefined);
 * // => true
 *
 * _.isNaN(undefined);
 * // => false
 */

/**
 * Checks if `value` is `null` or `undefined`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
 * @example
 *
 * _.isNil(null);
 * // => true
 *
 * _.isNil(void 0);
 * // => true
 *
 * _.isNil(NaN);
 * // => false
 */

/**
 * Checks if `value` is `null`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
 * @example
 *
 * _.isNull(null);
 * // => true
 *
 * _.isNull(void 0);
 * // => false
 */

/**
 * Checks if `value` is `undefined`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 * @example
 *
 * _.isUndefined(void 0);
 * // => true
 *
 * _.isUndefined(null);
 * // => false
 */

/**
 * Checks if `value` is a finite primitive number.
 *
 * **Note:** This method is based on
 * [`Number.isFinite`](https://mdn.io/Number/isFinite).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
 * @example
 *
 * _.isFinite(3);
 * // => true
 *
 * _.isFinite(Number.MIN_VALUE);
 * // => true
 *
 * _.isFinite(Infinity);
 * // => false
 *
 * _.isFinite('3');
 * // => false
 */

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */

/**
 * Checks if `value` is a pristine native function.
 *
 * **Note:** This method can't reliably detect native functions in the presence
 * of the core-js package because core-js circumvents this kind of detection.
 * Despite multiple requests, the core-js maintainer has made it clear: any
 * attempt to fix the detection will be obstructed. As a result, we're left
 * with little choice but to throw an error. Unfortunately, this also affects
 * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
 * which rely on core-js.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 * @example
 *
 * _.isNative(Array.prototype.push);
 * // => true
 *
 * _.isNative(_);
 * // => false
 */

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */

/**
 * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
 * double precision number which isn't the result of a rounded unsafe integer.
 *
 * **Note:** This method is based on
 * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
 * @example
 *
 * _.isSafeInteger(3);
 * // => true
 *
 * _.isSafeInteger(Number.MIN_VALUE);
 * // => false
 *
 * _.isSafeInteger(Infinity);
 * // => false
 *
 * _.isSafeInteger('3');
 * // => false
 */

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */

/**
 * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
 * `SyntaxError`, `TypeError`, or `URIError` object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
 * @example
 *
 * _.isError(new Error);
 * // => true
 *
 * _.isError(Error);
 * // => false
 */

/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 * @example
 *
 * _.isEmpty(null);
 * // => true
 *
 * _.isEmpty(true);
 * // => true
 *
 * _.isEmpty(1);
 * // => true
 *
 * _.isEmpty([1, 2, 3]);
 * // => false
 *
 * _.isEmpty({ 'a': 1 });
 * // => false
 */

/**
 * Checks if `value` is an integer.
 *
 * **Note:** This method is based on
 * [`Number.isInteger`](https://mdn.io/Number/isInteger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
 * @example
 *
 * _.isInteger(3);
 * // => true
 *
 * _.isInteger(Number.MIN_VALUE);
 * // => false
 *
 * _.isInteger(Infinity);
 * // => false
 *
 * _.isInteger('3');
 * // => false
 */

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */

/**
 * Checks if `value` is classified as a `Date` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
 * @example
 *
 * _.isDate(new Date);
 * // => true
 *
 * _.isDate('Mon April 23 2012');
 * // => false
 */

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */

/**
 * Checks if `value` is classified as a `Number` primitive or object.
 *
 * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
 * classified as numbers, use the `_.isFinite` method.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a number, else `false`.
 * @example
 *
 * _.isNumber(3);
 * // => true
 *
 * _.isNumber(Number.MIN_VALUE);
 * // => true
 *
 * _.isNumber(Infinity);
 * // => true
 *
 * _.isNumber('3');
 * // => false
 */

/**
 * Checks if `value` is classified as a `RegExp` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
 * @example
 *
 * _.isRegExp(/abc/);
 * // => true
 *
 * _.isRegExp('/abc/');
 * // => false
 */

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
 * @example
 *
 * _.isString('abc');
 * // => true
 *
 * _.isString(1);
 * // => false
 */

/**
 * Checks if `value` is classified as a `WeakMap` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
 * @example
 *
 * _.isWeakMap(new WeakMap);
 * // => true
 *
 * _.isWeakMap(new Map);
 * // => false
 */

/**
 * Checks if `value` is classified as a `WeakSet` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
 * @example
 *
 * _.isWeakSet(new WeakSet);
 * // => true
 *
 * _.isWeakSet(new Set);
 * // => false
 */

/**
 * Checks if `value` is classified as a boolean primitive or object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
 * @example
 *
 * _.isBoolean(false);
 * // => true
 *
 * _.isBoolean(null);
 * // => false
 */

/**
 * Checks if `value` is in `collection`. If `collection` is a string, it's
 * checked for a substring of `value`, otherwise
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * is used for equality comparisons. If `fromIndex` is negative, it's used as
 * the offset from the end of `collection`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object|string} collection The collection to inspect.
 * @param {*} value The value to search for.
 * @param {number} [fromIndex=0] The index to search from.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
 * @returns {boolean} Returns `true` if `value` is found, else `false`.
 * @example
 *
 * _.includes([1, 2, 3], 1);
 * // => true
 *
 * _.includes([1, 2, 3], 1, 2);
 * // => false
 *
 * _.includes({ 'a': 1, 'b': 2 }, 1);
 * // => true
 *
 * _.includes('abcd', 'bc');
 * // => true
 */

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */

/**
 * Checks if `value` is likely a DOM element.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
 * @example
 *
 * _.isElement(document.body);
 * // => true
 *
 * _.isElement('<body>');
 * // => false
 */

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a given element has a CSS class.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */

/**
 * Chrome 拷贝的时候在默认情况会带上全局的背景颜色
 * @param bgColor
 */

/**
 * Clamps `number` within the inclusive `lower` and `upper` bounds.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Number
 * @param {number} number The number to clamp.
 * @param {number} [lower] The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the clamped number.
 * @example
 *
 * _.clamp(-10, -5, 5);
 * // => -5
 *
 * _.clamp(10, -5, 5);
 * // => 5
 */

/**
 * Colorize log arguments if enabled.
 *
 * @api public
 */

/**
 * Colors.
 */

/**
 * Combine an array of HTML DOM nodes (e.g., the output of `buildExpression`)
 * into an unbreakable HTML node of class .base, with proper struts to
 * guarantee correct vertical extent.  `buildHTML` calls this repeatedly to
 * make up the entire expression as a sequence of unbreakable units.
 */

/**
 * Compare.
 */

/**
 * Compares values to sort them in ascending order.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {number} Returns the sort order indicator for `value`.
 */

/**
 * Composes single-argument functions from right to left. The rightmost
 * function can take multiple arguments as it provides the signature for
 * the resulting composite function.
 *
 * @param {...Function} funcs The functions to compose.
 * @returns {Function} A function obtained by composing the argument functions
 * from right to left. For example, compose(f, g, h) is identical to doing
 * (...args) => f(g(h(...args))).
 */

/**
 * Computes the maximum value of `array`. If `array` is empty or falsey,
 * `undefined` is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {*} Returns the maximum value.
 * @example
 *
 * _.max([4, 2, 8, 6]);
 * // => 8
 *
 * _.max([]);
 * // => undefined
 */

/**
 * Computes the mean of the values in `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {number} Returns the mean.
 * @example
 *
 * _.mean([4, 2, 8, 6]);
 * // => 5
 */

/**
 * Computes the minimum value of `array`. If `array` is empty or falsey,
 * `undefined` is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {*} Returns the minimum value.
 * @example
 *
 * _.min([4, 2, 8, 6]);
 * // => 2
 *
 * _.min([]);
 * // => undefined
 */

/**
 * Computes the sum of the values in `array`.
 *
 * @static
 * @memberOf _
 * @since 3.4.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {number} Returns the sum.
 * @example
 *
 * _.sum([4, 2, 8, 6]);
 * // => 20
 */

/**
 * Constants.
 */

/**
 * Convenience function for joining strings to form className chains
 */

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

/**
 * Convert name path into string to fast the fetch speed of Map.
 */

/**
 * Convert name to internal supported format.
 * This function should keep since we still thinking if need support like `a.b.c` format.
 * 'a' => ['a']
 * 123 => [123]
 * ['a', 123] => ['a', 123]
 */

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */

/**
 * Converts `iterator` to an array.
 *
 * @private
 * @param {Object} iterator The iterator to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */

/**
 * Converts `set` to its value-value pairs.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the value-value pairs.
 */

/**
 * Converts `string` to
 * [snake case](https://en.wikipedia.org/wiki/Snake_case).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the snake cased string.
 * @example
 *
 * _.snakeCase('Foo Bar');
 * // => 'foo_bar'
 *
 * _.snakeCase('fooBar');
 * // => 'foo_bar'
 *
 * _.snakeCase('--FOO-BAR--');
 * // => 'foo_bar'
 */

/**
 * Converts `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts `string` to an integer of the specified radix. If `radix` is
 * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
 * hexadecimal, in which case a `radix` of `16` is used.
 *
 * **Note:** This method aligns with the
 * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category String
 * @param {string} string The string to convert.
 * @param {number} [radix=10] The radix to interpret `value` by.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.parseInt('08');
 * // => 8
 *
 * _.map(['6', '08', '10'], _.parseInt);
 * // => [6, 8, 10]
 */

/**
 * Converts `string`, as a whole, to lower case just like
 * [String#toLowerCase](https://mdn.io/toLowerCase).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the lower cased string.
 * @example
 *
 * _.toLower('--Foo-Bar--');
 * // => '--foo-bar--'
 *
 * _.toLower('fooBar');
 * // => 'foobar'
 *
 * _.toLower('__FOO_BAR__');
 * // => '__foo_bar__'
 */

/**
 * Converts `string`, as a whole, to upper case just like
 * [String#toUpperCase](https://mdn.io/toUpperCase).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the upper cased string.
 * @example
 *
 * _.toUpper('--foo-bar--');
 * // => '--FOO-BAR--'
 *
 * _.toUpper('fooBar');
 * // => 'FOOBAR'
 *
 * _.toUpper('__foo_bar__');
 * // => '__FOO_BAR__'
 */

/**
 * Converts `string`, as space separated words, to lower case.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the lower cased string.
 * @example
 *
 * _.lowerCase('--Foo-Bar--');
 * // => 'foo bar'
 *
 * _.lowerCase('fooBar');
 * // => 'foo bar'
 *
 * _.lowerCase('__FOO_BAR__');
 * // => 'foo bar'
 */

/**
 * Converts `string`, as space separated words, to upper case.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the upper cased string.
 * @example
 *
 * _.upperCase('--foo-bar');
 * // => 'FOO BAR'
 *
 * _.upperCase('fooBar');
 * // => 'FOO BAR'
 *
 * _.upperCase('__foo_bar__');
 * // => 'FOO BAR'
 */

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */

/**
 * Converts `value` to a property path array.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {*} value The value to convert.
 * @returns {Array} Returns the new property path array.
 * @example
 *
 * _.toPath('a.b.c');
 * // => ['a', 'b', 'c']
 *
 * _.toPath('a[0].b.c');
 * // => ['a', '0', 'b', 'c']
 */

/**
 * Converts `value` to a safe integer. A safe integer can be compared and
 * represented correctly.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toSafeInteger(3.2);
 * // => 3
 *
 * _.toSafeInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toSafeInteger(Infinity);
 * // => 9007199254740991
 *
 * _.toSafeInteger('3.2');
 * // => 3
 */

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */

/**
 * Converts `value` to an array.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Array} Returns the converted array.
 * @example
 *
 * _.toArray({ 'a': 1, 'b': 2 });
 * // => [1, 2]
 *
 * _.toArray('abc');
 * // => ['a', 'b', 'c']
 *
 * _.toArray(1);
 * // => []
 *
 * _.toArray(null);
 * // => []
 */

/**
 * Converts `value` to an integer suitable for use as the length of an
 * array-like object.
 *
 * **Note:** This method is based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toLength(3.2);
 * // => 3
 *
 * _.toLength(Number.MIN_VALUE);
 * // => 0
 *
 * _.toLength(Infinity);
 * // => 4294967295
 *
 * _.toLength('3.2');
 * // => 3
 */

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */

/**
 * Converts a Unicode `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts a basic code point into a digit/integer.
 * @see `digitToBasic()`
 * @private
 * @param {Number} codePoint The basic numeric code point value.
 * @returns {Number} The numeric value of a basic code point (for use in
 * representing integers) in the range `0` to `base - 1`, or `base` if
 * the code point does not represent a value.
 */

/**
 * Converts all elements in `array` into a string separated by `separator`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to convert.
 * @param {string} [separator=','] The element separator.
 * @returns {string} Returns the joined string.
 * @example
 *
 * _.join(['a', 'b', 'c'], '~');
 * // => 'a~b~c'
 */

/**
 * Converts an ASCII `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
 * corresponding HTML entities.
 *
 * **Note:** No other characters are escaped. To escape additional
 * characters use a third-party library like [_he_](https://mths.be/he).
 *
 * Though the ">" character is escaped for symmetry, characters like
 * ">" and "/" don't need escaping in HTML and have no special meaning
 * unless they're part of a tag or unquoted attribute value. See
 * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
 * (under "semi-related fun fact") for more details.
 *
 * When working with HTML you should always
 * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
 * XSS vectors.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category String
 * @param {string} [string=''] The string to escape.
 * @returns {string} Returns the escaped string.
 * @example
 *
 * _.escape('fred, barney, & pebbles');
 * // => 'fred, barney, &amp; pebbles'
 */

/**
 * Converts the first character of `string` to upper case and the remaining
 * to lower case.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to capitalize.
 * @returns {string} Returns the capitalized string.
 * @example
 *
 * _.capitalize('FRED');
 * // => 'Fred'
 */

/**
 * Converts verb group into body string.
 *
 * \verb* replaces each space with an open box \u2423
 * \verb replaces each space with a no-break space \xA0
 */

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */

/**
 * Copy values into store and return a new values object
 * ({ a: 1, b: { c: 2 } }, { a: 4, b: { d: 5 } }) => { a: 4, b: { c: 2, d: 5 } }
 */

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Copyright 2014-2015, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

/**
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
 *
 *  https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
 *
 */

/**
 * Core.process(state)
 *
 * Executes core chain rules.
 **/

/**
 * Create a common manager, write data to clipboard directly without new object.
 */

/**
 * Create an error file out of errors.md for development and a simple web link to the full errors
 * in production mode.
 */

/**
 * Creates a Redux store that holds the state tree.
 *
 * **We recommend using `configureStore` from the
 * `@reduxjs/toolkit` package**, which replaces `createStore`:
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * The only way to change the data in the store is to call `dispatch()` on it.
 *
 * There should only be a single store in your app. To specify how different
 * parts of the state tree respond to actions, you may combine several reducers
 * into a single reducer function by using `combineReducers`.
 *
 * @param {Function} reducer A function that returns the next state tree, given
 * the current state tree and the action to handle.
 *
 * @param {any} [preloadedState] The initial state. You may optionally specify it
 * to hydrate the state from the server in universal apps, or to restore a
 * previously serialized user session.
 * If you use `combineReducers` to produce the root reducer function, this must be
 * an object with the same shape as `combineReducers` keys.
 *
 * @param {Function} [enhancer] The store enhancer. You may optionally specify it
 * to enhance the store with third-party capabilities such as middleware,
 * time travel, persistence, etc. The only store enhancer that ships with Redux
 * is `applyMiddleware()`.
 *
 * @returns {Store} A Redux store that lets you read the state, dispatch actions
 * and subscribe to changes.
 */

/**
 * Creates a `_.find` or `_.findLast` function.
 *
 * @private
 * @param {Function} findIndexFunc The function to find the collection index.
 * @returns {Function} Returns the new find function.
 */

/**
 * Creates a `_.flow` or `_.flowRight` function.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new flow function.
 */

/**
 * Creates a `_.range` or `_.rangeRight` function.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new range function.
 */

/**
 * Creates a `_.toPairs` or `_.toPairsIn` function.
 *
 * @private
 * @param {Function} keysFunc The function to get the keys of a given object.
 * @returns {Function} Returns the new pairs function.
 */

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */

/**
 * Creates a `lodash` object which wraps `value` to enable implicit method
 * chain sequences. Methods that operate on and return arrays, collections,
 * and functions can be chained together. Methods that retrieve a single value
 * or may return a primitive value will automatically end the chain sequence
 * and return the unwrapped value. Otherwise, the value must be unwrapped
 * with `_#value`.
 *
 * Explicit chain sequences, which must be unwrapped with `_#value`, may be
 * enabled using `_.chain`.
 *
 * The execution of chained methods is lazy, that is, it's deferred until
 * `_#value` is implicitly or explicitly called.
 *
 * Lazy evaluation allows several methods to support shortcut fusion.
 * Shortcut fusion is an optimization to merge iteratee calls; this avoids
 * the creation of intermediate arrays and can greatly reduce the number of
 * iteratee executions. Sections of a chain sequence qualify for shortcut
 * fusion if the section is applied to an array and iteratees accept only
 * one argument. The heuristic for whether a section qualifies for shortcut
 * fusion is subject to change.
 *
 * Chaining is supported in custom builds as long as the `_#value` method is
 * directly or indirectly included in the build.
 *
 * In addition to lodash methods, wrappers have `Array` and `String` methods.
 *
 * The wrapper `Array` methods are:
 * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
 *
 * The wrapper `String` methods are:
 * `replace` and `split`
 *
 * The wrapper methods that support shortcut fusion are:
 * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
 * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
 * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
 *
 * The chainable wrapper methods are:
 * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
 * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
 * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
 * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
 * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
 * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
 * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
 * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
 * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
 * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
 * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
 * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
 * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
 * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
 * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
 * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
 * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
 * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
 * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
 * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
 * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
 * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
 * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
 * `zipObject`, `zipObjectDeep`, and `zipWith`
 *
 * The wrapper methods that are **not** chainable by default are:
 * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
 * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
 * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
 * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
 * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
 * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
 * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
 * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
 * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
 * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
 * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
 * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
 * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
 * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
 * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
 * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
 * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
 * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
 * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
 * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
 * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
 * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
 * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
 * `upperFirst`, `value`, and `words`
 *
 * @name _
 * @constructor
 * @category Seq
 * @param {*} value The value to wrap in a `lodash` instance.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var wrapped = _([1, 2, 3]);
 *
 * // Returns an unwrapped value.
 * wrapped.reduce(_.add);
 * // => 6
 *
 * // Returns a wrapped value.
 * var squares = wrapped.map(square);
 *
 * _.isArray(squares);
 * // => false
 *
 * _.isArray(squares.value());
 * // => true
 */

/**
 * Creates a `lodash` wrapper instance that wraps `value` with explicit method
 * chain sequences enabled. The result of such sequences must be unwrapped
 * with `_#value`.
 *
 * @static
 * @memberOf _
 * @since 1.3.0
 * @category Seq
 * @param {*} value The value to wrap.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36 },
 *   { 'user': 'fred',    'age': 40 },
 *   { 'user': 'pebbles', 'age': 1 }
 * ];
 *
 * var youngest = _
 *   .chain(users)
 *   .sortBy('age')
 *   .map(function(o) {
 *     return o.user + ' is ' + o.age;
 *   })
 *   .head()
 *   .value();
 * // => 'pebbles is 1'
 */

/**
 * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
 *
 * @name chain
 * @memberOf _
 * @since 0.1.0
 * @category Seq
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36 },
 *   { 'user': 'fred',   'age': 40 }
 * ];
 *
 * // A sequence without explicit chaining.
 * _(users).head();
 * // => { 'user': 'barney', 'age': 36 }
 *
 * // A sequence with explicit chaining.
 * _(users)
 *   .chain()
 *   .head()
 *   .pick('user')
 *   .value();
 * // => { 'user': 'barney' }
 */

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */

/**
 * Creates a clone of `wrapper`.
 *
 * @private
 * @param {Object} wrapper The wrapper to clone.
 * @returns {Object} Returns the cloned wrapper.
 */

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */

/**
 * Creates a clone of the chain sequence planting `value` as the wrapped value.
 *
 * @name plant
 * @memberOf _
 * @since 3.2.0
 * @category Seq
 * @param {*} value The value to plant.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var wrapped = _([1, 2]).map(square);
 * var other = wrapped.plant([3, 4]);
 *
 * other.value();
 * // => [9, 16]
 *
 * wrapped.value();
 * // => [1, 4]
 */

/**
 * Creates a clone of the lazy wrapper object.
 *
 * @private
 * @name clone
 * @memberOf LazyWrapper
 * @returns {Object} Returns the cloned `LazyWrapper` object.
 */

/**
 * Creates a compiled template function that can interpolate data properties
 * in "interpolate" delimiters, HTML-escape interpolated data properties in
 * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
 * properties may be accessed as free variables in the template. If a setting
 * object is given, it takes precedence over `_.templateSettings` values.
 *
 * **Note:** In the development build `_.template` utilizes
 * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
 * for easier debugging.
 *
 * For more information on precompiling templates see
 * [lodash's custom builds documentation](https://lodash.com/custom-builds).
 *
 * For more information on Chrome extension sandboxes see
 * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category String
 * @param {string} [string=''] The template string.
 * @param {Object} [options={}] The options object.
 * @param {RegExp} [options.escape=_.templateSettings.escape]
 *  The HTML "escape" delimiter.
 * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
 *  The "evaluate" delimiter.
 * @param {Object} [options.imports=_.templateSettings.imports]
 *  An object to import into the template as free variables.
 * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
 *  The "interpolate" delimiter.
 * @param {string} [options.sourceURL='templateSources[n]']
 *  The sourceURL of the compiled template.
 * @param {string} [options.variable='obj']
 *  The data object variable name.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the compiled template function.
 * @example
 *
 * // Use the "interpolate" delimiter to create a compiled template.
 * var compiled = _.template('hello <%= user %>!');
 * compiled({ 'user': 'fred' });
 * // => 'hello fred!'
 *
 * // Use the HTML "escape" delimiter to escape data property values.
 * var compiled = _.template('<b><%- value %></b>');
 * compiled({ 'value': '<script>' });
 * // => '<b>&lt;script&gt;</b>'
 *
 * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
 * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
 * compiled({ 'users': ['fred', 'barney'] });
 * // => '<li>fred</li><li>barney</li>'
 *
 * // Use the internal `print` function in "evaluate" delimiters.
 * var compiled = _.template('<% print("hello " + user); %>!');
 * compiled({ 'user': 'barney' });
 * // => 'hello barney!'
 *
 * // Use the ES template literal delimiter as an "interpolate" delimiter.
 * // Disable support by replacing the "interpolate" delimiter.
 * var compiled = _.template('hello ${ user }!');
 * compiled({ 'user': 'pebbles' });
 * // => 'hello pebbles!'
 *
 * // Use backslashes to treat delimiters as plain text.
 * var compiled = _.template('<%= "\\<%- value %\\>" %>');
 * compiled({ 'value': 'ignored' });
 * // => '<%- value %>'
 *
 * // Use the `imports` option to import `jQuery` as `jq`.
 * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
 * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
 * compiled({ 'users': ['fred', 'barney'] });
 * // => '<li>fred</li><li>barney</li>'
 *
 * // Use the `sourceURL` option to specify a custom sourceURL for the template.
 * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
 * compiled(data);
 * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
 *
 * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
 * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
 * compiled.source;
 * // => function(data) {
 * //   var __t, __p = '';
 * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
 * //   return __p;
 * // }
 *
 * // Use custom template delimiters.
 * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
 * var compiled = _.template('hello {{ user }}!');
 * compiled({ 'user': 'mustache' });
 * // => 'hello mustache!'
 *
 * // Use the `source` property to inline compiled templates for meaningful
 * // line numbers in error messages and stack traces.
 * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
 *   var JST = {\
 *     "main": ' + _.template(mainText).source + '\
 *   };\
 * ');
 */

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */

/**
 * Creates a duplicate-free version of an array, using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons, in which only the first occurrence of each element
 * is kept. The order of result values is determined by the order they occur
 * in the array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniq([2, 1, 2]);
 * // => [2, 1]
 */

/**
 * Creates a flattened array of values by running each element in `collection`
 * thru `iteratee` and flattening the mapped results. The iteratee is invoked
 * with three arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * function duplicate(n) {
 *   return [n, n];
 * }
 *
 * _.flatMap([1, 2], duplicate);
 * // => [1, 1, 2, 2]
 */

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */

/**
 * Creates a function like `_.camelCase`.
 *
 * @private
 * @param {Function} callback The function to combine each word.
 * @returns {Function} Returns the new compounder function.
 */

/**
 * Creates a function like `_.groupBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} [initializer] The accumulator object initializer.
 * @returns {Function} Returns the new aggregator function.
 */

/**
 * Creates a function like `_.invertBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} toIteratee The function to resolve iteratees.
 * @returns {Function} Returns the new inverter function.
 */

/**
 * Creates a function like `_.lowerFirst`.
 *
 * @private
 * @param {string} methodName The name of the `String` case method to use.
 * @returns {Function} Returns the new case function.
 */

/**
 * Creates a function like `_.over`.
 *
 * @private
 * @param {Function} arrayFunc The function to iterate over iteratees.
 * @returns {Function} Returns the new over function.
 */

/**
 * Creates a function like `_.round`.
 *
 * @private
 * @param {string} methodName The name of the `Math` method to use when rounding.
 * @returns {Function} Returns the new round function.
 */

/**
 * Creates a function that accepts arguments of `func` and either invokes
 * `func` returning its result, if at least `arity` number of arguments have
 * been provided, or returns a function that accepts the remaining `func`
 * arguments, and so on. The arity of `func` may be specified if `func.length`
 * is not sufficient.
 *
 * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
 * may be used as a placeholder for provided arguments.
 *
 * **Note:** This method doesn't set the "length" property of curried functions.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Function
 * @param {Function} func The function to curry.
 * @param {number} [arity=func.length] The arity of `func`.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the new curried function.
 * @example
 *
 * var abc = function(a, b, c) {
 *   return [a, b, c];
 * };
 *
 * var curried = _.curry(abc);
 *
 * curried(1)(2)(3);
 * // => [1, 2, 3]
 *
 * curried(1, 2)(3);
 * // => [1, 2, 3]
 *
 * curried(1, 2, 3);
 * // => [1, 2, 3]
 *
 * // Curried with placeholders.
 * curried(1)(_, 3)(2);
 * // => [1, 2, 3]
 */

/**
 * Creates a function that accepts up to one argument, ignoring any
 * additional arguments.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Function
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 * @example
 *
 * _.map(['6', '8', '10'], _.unary(parseInt));
 * // => [6, 8, 10]
 */

/**
 * Creates a function that either curries or invokes `func` with optional
 * `this` binding and partially applied arguments.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags.
 *    1 - `_.bind`
 *    2 - `_.bindKey`
 *    4 - `_.curry` or `_.curryRight` of a bound function
 *    8 - `_.curry`
 *   16 - `_.curryRight`
 *   32 - `_.partial`
 *   64 - `_.partialRight`
 *  128 - `_.rearg`
 *  256 - `_.ary`
 *  512 - `_.flip`
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to be partially applied.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that gets the argument at index `n`. If `n` is negative,
 * the nth argument from the end is returned.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {number} [n=0] The index of the argument to return.
 * @returns {Function} Returns the new pass-thru function.
 * @example
 *
 * var func = _.nthArg(1);
 * func('a', 'b', 'c', 'd');
 * // => 'b'
 *
 * var func = _.nthArg(-2);
 * func('a', 'b', 'c', 'd');
 * // => 'c'
 */

/**
 * Creates a function that invokes `func` with `partials` prepended to the
 * arguments it receives. This method is like `_.bind` except it does **not**
 * alter the `this` binding.
 *
 * The `_.partial.placeholder` value, which defaults to `_` in monolithic
 * builds, may be used as a placeholder for partially applied arguments.
 *
 * **Note:** This method doesn't set the "length" property of partially
 * applied functions.
 *
 * @static
 * @memberOf _
 * @since 0.2.0
 * @category Function
 * @param {Function} func The function to partially apply arguments to.
 * @param {...*} [partials] The arguments to be partially applied.
 * @returns {Function} Returns the new partially applied function.
 * @example
 *
 * function greet(greeting, name) {
 *   return greeting + ' ' + name;
 * }
 *
 * var sayHelloTo = _.partial(greet, 'hello');
 * sayHelloTo('fred');
 * // => 'hello fred'
 *
 * // Partially applied with placeholders.
 * var greetFred = _.partial(greet, _, 'fred');
 * greetFred('hi');
 * // => 'hi fred'
 */

/**
 * Creates a function that invokes `func` with arguments arranged according
 * to the specified `indexes` where the argument value at the first index is
 * provided as the first argument, the argument value at the second index is
 * provided as the second argument, and so on.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} func The function to rearrange arguments for.
 * @param {...(number|number[])} indexes The arranged argument indexes.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var rearged = _.rearg(function(a, b, c) {
 *   return [a, b, c];
 * }, [2, 0, 1]);
 *
 * rearged('b', 'c', 'a')
 * // => ['a', 'b', 'c']
 */

/**
 * Creates a function that invokes `func` with arguments reversed.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Function
 * @param {Function} func The function to flip arguments for.
 * @returns {Function} Returns the new flipped function.
 * @example
 *
 * var flipped = _.flip(function() {
 *   return _.toArray(arguments);
 * });
 *
 * flipped('a', 'b', 'c', 'd');
 * // => ['d', 'c', 'b', 'a']
 */

/**
 * Creates a function that invokes `func` with its arguments transformed.
 *
 * @static
 * @since 4.0.0
 * @memberOf _
 * @category Function
 * @param {Function} func The function to wrap.
 * @param {...(Function|Function[])} [transforms=[_.identity]]
 *  The argument transforms.
 * @returns {Function} Returns the new function.
 * @example
 *
 * function doubled(n) {
 *   return n * 2;
 * }
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var func = _.overArgs(function(x, y) {
 *   return [x, y];
 * }, [square, doubled]);
 *
 * func(9, 3);
 * // => [81, 6]
 *
 * func(10, 5);
 * // => [100, 10]
 */

/**
 * Creates a function that invokes `func` with the `this` binding of the
 * create function and an array of arguments much like
 * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
 *
 * **Note:** This method is based on the
 * [spread operator](https://mdn.io/spread_operator).
 *
 * @static
 * @memberOf _
 * @since 3.2.0
 * @category Function
 * @param {Function} func The function to spread arguments over.
 * @param {number} [start=0] The start position of the spread.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var say = _.spread(function(who, what) {
 *   return who + ' says ' + what;
 * });
 *
 * say(['fred', 'hello']);
 * // => 'fred says hello'
 *
 * var numbers = Promise.all([
 *   Promise.resolve(40),
 *   Promise.resolve(36)
 * ]);
 *
 * numbers.then(_.spread(function(x, y) {
 *   return x + y;
 * }));
 * // => a Promise of 76
 */

/**
 * Creates a function that invokes `func` with the `this` binding of the
 * created function and arguments from `start` and beyond provided as
 * an array.
 *
 * **Note:** This method is based on the
 * [rest parameter](https://mdn.io/rest_parameters).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Function
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var say = _.rest(function(what, names) {
 *   return what + ' ' + _.initial(names).join(', ') +
 *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
 * });
 *
 * say('hello', 'fred', 'barney', 'pebbles');
 * // => 'hello fred, barney, & pebbles'
 */

/**
 * Creates a function that invokes `func` with the arguments of the created
 * function. If `func` is a property name, the created function returns the
 * property value for a given element. If `func` is an array or object, the
 * created function returns `true` for elements that contain the equivalent
 * source properties, otherwise it returns `false`.
 *
 * @static
 * @since 4.0.0
 * @memberOf _
 * @category Util
 * @param {*} [func=_.identity] The value to convert to a callback.
 * @returns {Function} Returns the callback.
 * @example
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36, 'active': true },
 *   { 'user': 'fred',   'age': 40, 'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
 * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.filter(users, _.iteratee(['user', 'fred']));
 * // => [{ 'user': 'fred', 'age': 40 }]
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, _.iteratee('user'));
 * // => ['barney', 'fred']
 *
 * // Create custom iteratee shorthands.
 * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
 *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
 *     return func.test(string);
 *   };
 * });
 *
 * _.filter(['abc', 'def'], /ef/);
 * // => ['def']
 */

/**
 * Creates a function that invokes `func`, with the `this` binding and arguments
 * of the created function, while it's called less than `n` times. Subsequent
 * calls to the created function return the result of the last `func` invocation.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {number} n The number of calls at which `func` is no longer invoked.
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new restricted function.
 * @example
 *
 * jQuery(element).on('click', _.before(5, addContactToList));
 * // => Allows adding up to 4 contacts to the list.
 */

/**
 * Creates a function that invokes `func`, with up to `n` arguments,
 * ignoring any additional arguments.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} func The function to cap arguments for.
 * @param {number} [n=func.length] The arity cap.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the new capped function.
 * @example
 *
 * _.map(['6', '8', '10'], _.ary(parseInt, 1));
 * // => [6, 8, 10]
 */

/**
 * Creates a function that invokes the method at `object[key]` with `partials`
 * prepended to the arguments it receives.
 *
 * This method differs from `_.bind` by allowing bound functions to reference
 * methods that may be redefined or don't yet exist. See
 * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
 * for more details.
 *
 * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
 * builds, may be used as a placeholder for partially applied arguments.
 *
 * @static
 * @memberOf _
 * @since 0.10.0
 * @category Function
 * @param {Object} object The object to invoke the method on.
 * @param {string} key The key of the method.
 * @param {...*} [partials] The arguments to be partially applied.
 * @returns {Function} Returns the new bound function.
 * @example
 *
 * var object = {
 *   'user': 'fred',
 *   'greet': function(greeting, punctuation) {
 *     return greeting + ' ' + this.user + punctuation;
 *   }
 * };
 *
 * var bound = _.bindKey(object, 'greet', 'hi');
 * bound('!');
 * // => 'hi fred!'
 *
 * object.greet = function(greeting, punctuation) {
 *   return greeting + 'ya ' + this.user + punctuation;
 * };
 *
 * bound('!');
 * // => 'hiya fred!'
 *
 * // Bound with placeholders.
 * var bound = _.bindKey(object, 'greet', _, '!');
 * bound('hi');
 * // => 'hiya fred!'
 */

/**
 * Creates a function that invokes the predicate properties of `source` with
 * the corresponding property values of a given object, returning `true` if
 * all predicates return truthy, else `false`.
 *
 * **Note:** The created function is equivalent to `_.conformsTo` with
 * `source` partially applied.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {Object} source The object of property predicates to conform to.
 * @returns {Function} Returns the new spec function.
 * @example
 *
 * var objects = [
 *   { 'a': 2, 'b': 1 },
 *   { 'a': 1, 'b': 2 }
 * ];
 *
 * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
 * // => [{ 'a': 1, 'b': 2 }]
 */

/**
 * Creates a function that is restricted to invoking `func` once. Repeat calls
 * to the function return the value of the first invocation. The `func` is
 * invoked with the `this` binding and arguments of the created function.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new restricted function.
 * @example
 *
 * var initialize = _.once(createApplication);
 * initialize();
 * initialize();
 * // => `createApplication` is invoked once
 */

/**
 * Creates a function that iterates over `pairs` and invokes the corresponding
 * function of the first predicate to return truthy. The predicate-function
 * pairs are invoked with the `this` binding and arguments of the created
 * function.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {Array} pairs The predicate-function pairs.
 * @returns {Function} Returns the new composite function.
 * @example
 *
 * var func = _.cond([
 *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
 *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
 *   [_.stubTrue,                      _.constant('no match')]
 * ]);
 *
 * func({ 'a': 1, 'b': 2 });
 * // => 'matches A'
 *
 * func({ 'a': 0, 'b': 1 });
 * // => 'matches B'
 *
 * func({ 'a': '1', 'b': '2' });
 * // => 'no match'
 */

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */

/**
 * Creates a function that negates the result of the predicate `func`. The
 * `func` predicate is invoked with the `this` binding and arguments of the
 * created function.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} predicate The predicate to negate.
 * @returns {Function} Returns the new negated function.
 * @example
 *
 * function isEven(n) {
 *   return n % 2 == 0;
 * }
 *
 * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
 * // => [1, 3, 5]
 */

/**
 * Creates a function that performs a mathematical operation on two values.
 *
 * @private
 * @param {Function} operator The function to perform the operation.
 * @param {number} [defaultValue] The value used for `undefined` arguments.
 * @returns {Function} Returns the new mathematical operation function.
 */

/**
 * Creates a function that performs a partial deep comparison between a given
 * object and `source`, returning `true` if the given object has equivalent
 * property values, else `false`.
 *
 * **Note:** The created function is equivalent to `_.isMatch` with `source`
 * partially applied.
 *
 * Partial comparisons will match empty array and empty object `source`
 * values against any array or object value, respectively. See `_.isEqual`
 * for a list of supported value comparisons.
 *
 * **Note:** Multiple values can be checked by combining several matchers
 * using `_.overSome`
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Util
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 * @example
 *
 * var objects = [
 *   { 'a': 1, 'b': 2, 'c': 3 },
 *   { 'a': 4, 'b': 5, 'c': 6 }
 * ];
 *
 * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
 * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
 *
 * // Checking for several possible values
 * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
 * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
 */

/**
 * Creates a function that performs a partial deep comparison between the
 * value at `path` of a given object to `srcValue`, returning `true` if the
 * object value is equivalent, else `false`.
 *
 * **Note:** Partial comparisons will match empty array and empty object
 * `srcValue` values against any array or object value, respectively. See
 * `_.isEqual` for a list of supported value comparisons.
 *
 * **Note:** Multiple values can be checked by combining several matchers
 * using `_.overSome`
 *
 * @static
 * @memberOf _
 * @since 3.2.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 * @example
 *
 * var objects = [
 *   { 'a': 1, 'b': 2, 'c': 3 },
 *   { 'a': 4, 'b': 5, 'c': 6 }
 * ];
 *
 * _.find(objects, _.matchesProperty('a', 4));
 * // => { 'a': 4, 'b': 5, 'c': 6 }
 *
 * // Checking for several possible values
 * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
 * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
 */

/**
 * Creates a function that performs a relational operation on two values.
 *
 * @private
 * @param {Function} operator The function to perform the operation.
 * @returns {Function} Returns the new relational operation function.
 */

/**
 * Creates a function that produces an instance of `Ctor` regardless of
 * whether it was invoked as part of a `new` expression or by `call` or `apply`.
 *
 * @private
 * @param {Function} Ctor The constructor to wrap.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that provides `value` to `wrapper` as its first
 * argument. Any additional arguments provided to the function are appended
 * to those provided to the `wrapper`. The wrapper is invoked with the `this`
 * binding of the created function.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {*} value The value to wrap.
 * @param {Function} [wrapper=identity] The wrapper function.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var p = _.wrap(_.escape, function(func, text) {
 *   return '<p>' + func(text) + '</p>';
 * });
 *
 * p('fred, barney, & pebbles');
 * // => '<p>fred, barney, &amp; pebbles</p>'
 */

/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */

/**
 * Creates a function that wraps `func` to continue currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {Function} wrapFunc The function to create the `func` wrapper.
 * @param {*} placeholder The placeholder value.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to enable currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {number} arity The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with optional `this`
 * binding of `thisArg`, partial application, and currying.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [partialsRight] The arguments to append to those provided
 *  to the new function.
 * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with the `this` binding
 * of `thisArg` and `partials` prepended to the arguments it receives.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} partials The arguments to prepend to those provided to
 *  the new function.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with the optional `this`
 * binding of `thisArg`.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
 *
 * @private
 * @constructor
 * @param {*} value The value to wrap.
 */

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a new array concatenating `array` with any additional arrays
 * and/or values.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to concatenate.
 * @param {...*} [values] The values to concatenate.
 * @returns {Array} Returns the new concatenated array.
 * @example
 *
 * var array = [1];
 * var other = _.concat(array, 2, [3], [[4]]);
 *
 * console.log(other);
 * // => [1, 2, 3, [4]]
 *
 * console.log(array);
 * // => [1]
 */

/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/

/**
 * Creates a shallow clone of `value`.
 *
 * **Note:** This method is loosely based on the
 * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
 * and supports cloning arrays, array buffers, booleans, date objects, maps,
 * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
 * arrays. The own enumerable properties of `arguments` objects are cloned
 * as plain objects. An empty object is returned for uncloneable values such
 * as error objects, functions, DOM nodes, and WeakMaps.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to clone.
 * @returns {*} Returns the cloned value.
 * @see _.cloneDeep
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var shallow = _.clone(objects);
 * console.log(shallow[0] === objects[0]);
 * // => true
 */

/**
 * Creates a slice of `array` excluding elements dropped from the beginning.
 * Elements are dropped until `predicate` returns falsey. The predicate is
 * invoked with three arguments: (value, index, array).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.dropWhile(users, function(o) { return !o.active; });
 * // => objects for ['pebbles']
 *
 * // The `_.matches` iteratee shorthand.
 * _.dropWhile(users, { 'user': 'barney', 'active': false });
 * // => objects for ['fred', 'pebbles']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.dropWhile(users, ['active', false]);
 * // => objects for ['pebbles']
 *
 * // The `_.property` iteratee shorthand.
 * _.dropWhile(users, 'active');
 * // => objects for ['barney', 'fred', 'pebbles']
 */

/**
 * Creates a slice of `array` excluding elements dropped from the end.
 * Elements are dropped until `predicate` returns falsey. The predicate is
 * invoked with three arguments: (value, index, array).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': true },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': false }
 * ];
 *
 * _.dropRightWhile(users, function(o) { return !o.active; });
 * // => objects for ['barney']
 *
 * // The `_.matches` iteratee shorthand.
 * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
 * // => objects for ['barney', 'fred']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.dropRightWhile(users, ['active', false]);
 * // => objects for ['barney']
 *
 * // The `_.property` iteratee shorthand.
 * _.dropRightWhile(users, 'active');
 * // => objects for ['barney', 'fred', 'pebbles']
 */

/**
 * Creates a slice of `array` from `start` up to, but not including, `end`.
 *
 * **Note:** This method is used instead of
 * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
 * returned.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */

/**
 * Creates a slice of `array` with `n` elements dropped from the beginning.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {number} [n=1] The number of elements to drop.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.drop([1, 2, 3]);
 * // => [2, 3]
 *
 * _.drop([1, 2, 3], 2);
 * // => [3]
 *
 * _.drop([1, 2, 3], 5);
 * // => []
 *
 * _.drop([1, 2, 3], 0);
 * // => [1, 2, 3]
 */

/**
 * Creates a slice of `array` with `n` elements dropped from the end.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {number} [n=1] The number of elements to drop.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.dropRight([1, 2, 3]);
 * // => [1, 2]
 *
 * _.dropRight([1, 2, 3], 2);
 * // => [1]
 *
 * _.dropRight([1, 2, 3], 5);
 * // => []
 *
 * _.dropRight([1, 2, 3], 0);
 * // => [1, 2, 3]
 */

/**
 * Creates a slice of `array` with `n` elements taken from the beginning.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {number} [n=1] The number of elements to take.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.take([1, 2, 3]);
 * // => [1]
 *
 * _.take([1, 2, 3], 2);
 * // => [1, 2]
 *
 * _.take([1, 2, 3], 5);
 * // => [1, 2, 3]
 *
 * _.take([1, 2, 3], 0);
 * // => []
 */

/**
 * Creates a slice of `array` with `n` elements taken from the end.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {number} [n=1] The number of elements to take.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.takeRight([1, 2, 3]);
 * // => [3]
 *
 * _.takeRight([1, 2, 3], 2);
 * // => [2, 3]
 *
 * _.takeRight([1, 2, 3], 5);
 * // => [1, 2, 3]
 *
 * _.takeRight([1, 2, 3], 0);
 * // => []
 */

/**
 * Creates a slice of `array` with elements taken from the beginning. Elements
 * are taken until `predicate` returns falsey. The predicate is invoked with
 * three arguments: (value, index, array).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.takeWhile(users, function(o) { return !o.active; });
 * // => objects for ['barney', 'fred']
 *
 * // The `_.matches` iteratee shorthand.
 * _.takeWhile(users, { 'user': 'barney', 'active': false });
 * // => objects for ['barney']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.takeWhile(users, ['active', false]);
 * // => objects for ['barney', 'fred']
 *
 * // The `_.property` iteratee shorthand.
 * _.takeWhile(users, 'active');
 * // => []
 */

/**
 * Creates a slice of `array` with elements taken from the end. Elements are
 * taken until `predicate` returns falsey. The predicate is invoked with
 * three arguments: (value, index, array).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': true },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': false }
 * ];
 *
 * _.takeRightWhile(users, function(o) { return !o.active; });
 * // => objects for ['fred', 'pebbles']
 *
 * // The `_.matches` iteratee shorthand.
 * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
 * // => objects for ['pebbles']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.takeRightWhile(users, ['active', false]);
 * // => objects for ['fred', 'pebbles']
 *
 * // The `_.property` iteratee shorthand.
 * _.takeRightWhile(users, 'active');
 * // => []
 */

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a store enhancer that applies middleware to the dispatch method
 * of the Redux store. This is handy for a variety of tasks, such as expressing
 * asynchronous actions in a concise manner, or logging every action payload.
 *
 * See `redux-thunk` package as an example of the Redux middleware.
 *
 * Because middleware is potentially asynchronous, this should be the first
 * store enhancer in the composition chain.
 *
 * Note that each middleware will be given the `dispatch` and `getState` functions
 * as named arguments.
 *
 * @param {...Function} middlewares The middleware chain to be applied.
 * @returns {Function} A store enhancer applying the middleware.
 */

/**
 * Creates a string based on an array of numeric code points.
 * @see `punycode.ucs2.decode`
 * @memberOf punycode.ucs2
 * @name encode
 * @param {Array} codePoints The array of numeric code points.
 * @returns {String} The new Unicode string (UCS-2).
 */

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */

/**
 * Creates an array containing the numeric code points of each Unicode
 * character in the string. While JavaScript uses UCS-2 internally,
 * this function will convert a pair of surrogate halves (each of which
 * UCS-2 exposes as separate characters) into a single code point,
 * matching UTF-16.
 * @see `punycode.ucs2.encode`
 * @see <https://mathiasbynens.be/notes/javascript-encoding>
 * @memberOf punycode.ucs2
 * @name decode
 * @param {String} string The Unicode input string (UCS-2).
 * @returns {Array} The new array of code points.
 */

/**
 * Creates an array excluding all given values using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * **Note:** Unlike `_.pull`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...*} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.difference, _.xor
 * @example
 *
 * _.without([2, 1, 2, 3], 1, 2);
 * // => [3]
 */

/**
 * Creates an array of elements split into groups the length of `size`.
 * If `array` can't be split evenly, the final chunk will be the remaining
 * elements.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to process.
 * @param {number} [size=1] The length of each chunk
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the new array of chunks.
 * @example
 *
 * _.chunk(['a', 'b', 'c', 'd'], 2);
 * // => [['a', 'b'], ['c', 'd']]
 *
 * _.chunk(['a', 'b', 'c', 'd'], 3);
 * // => [['a', 'b', 'c'], ['d']]
 */

/**
 * Creates an array of elements split into two groups, the first of which
 * contains elements `predicate` returns truthy for, the second of which
 * contains elements `predicate` returns falsey for. The predicate is
 * invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the array of grouped elements.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': false },
 *   { 'user': 'fred',    'age': 40, 'active': true },
 *   { 'user': 'pebbles', 'age': 1,  'active': false }
 * ];
 *
 * _.partition(users, function(o) { return o.active; });
 * // => objects for [['fred'], ['barney', 'pebbles']]
 *
 * // The `_.matches` iteratee shorthand.
 * _.partition(users, { 'age': 1, 'active': false });
 * // => objects for [['pebbles'], ['barney', 'fred']]
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.partition(users, ['active', false]);
 * // => objects for [['barney', 'pebbles'], ['fred']]
 *
 * // The `_.property` iteratee shorthand.
 * _.partition(users, 'active');
 * // => objects for [['fred'], ['barney', 'pebbles']]
 */

/**
 * Creates an array of function property names from own and inherited
 * enumerable properties of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to inspect.
 * @returns {Array} Returns the function names.
 * @see _.functions
 * @example
 *
 * function Foo() {
 *   this.a = _.constant('a');
 *   this.b = _.constant('b');
 * }
 *
 * Foo.prototype.c = _.constant('c');
 *
 * _.functionsIn(new Foo);
 * // => ['a', 'b', 'c']
 */

/**
 * Creates an array of function property names from own enumerable properties
 * of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to inspect.
 * @returns {Array} Returns the function names.
 * @see _.functionsIn
 * @example
 *
 * function Foo() {
 *   this.a = _.constant('a');
 *   this.b = _.constant('b');
 * }
 *
 * Foo.prototype.c = _.constant('c');
 *
 * _.functions(new Foo);
 * // => ['a', 'b']
 */

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * Creates an array of shuffled values, using a version of the
 * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to shuffle.
 * @returns {Array} Returns the new shuffled array.
 * @example
 *
 * _.shuffle([1, 2, 3, 4]);
 * // => [4, 1, 3, 2]
 */

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */

/**
 * Creates an array of the own and inherited enumerable string keyed property
 * values of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property values.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.valuesIn(new Foo);
 * // => [1, 2, 3] (iteration order is not guaranteed)
 */

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */

/**
 * Creates an array of the own enumerable string keyed property values of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property values.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.values(new Foo);
 * // => [1, 2] (iteration order is not guaranteed)
 *
 * _.values('hi');
 * // => ['h', 'i']
 */

/**
 * Creates an array of values by running each element in `collection` thru
 * `iteratee`. The iteratee is invoked with three arguments:
 * (value, index|key, collection).
 *
 * Many lodash methods are guarded to work as iteratees for methods like
 * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
 *
 * The guarded methods are:
 * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
 * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
 * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * _.map([4, 8], square);
 * // => [16, 64]
 *
 * _.map({ 'a': 4, 'b': 8 }, square);
 * // => [16, 64] (iteration order is not guaranteed)
 *
 * var users = [
 *   { 'user': 'barney' },
 *   { 'user': 'fred' }
 * ];
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, 'user');
 * // => ['barney', 'fred']
 */

/**
 * Creates an array that is the composition of partially applied arguments,
 * placeholders, and provided arguments into a single array of arguments.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to prepend to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */

/**
 * Creates an array with all falsey values removed. The values `false`, `null`,
 * `0`, `""`, `undefined`, and `NaN` are falsey.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to compact.
 * @returns {Array} Returns the new array of filtered values.
 * @example
 *
 * _.compact([0, 1, false, 2, '', 3]);
 * // => [1, 2, 3]
 */

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates an object composed of keys generated from the results of running
 * each element of `collection` thru `iteratee`. The corresponding value of
 * each key is the last element responsible for generating the key. The
 * iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
 * @returns {Object} Returns the composed aggregate object.
 * @example
 *
 * var array = [
 *   { 'dir': 'left', 'code': 97 },
 *   { 'dir': 'right', 'code': 100 }
 * ];
 *
 * _.keyBy(array, function(o) {
 *   return String.fromCharCode(o.code);
 * });
 * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
 *
 * _.keyBy(array, 'dir');
 * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
 */

/**
 * Creates an object composed of the `object` properties `predicate` returns
 * truthy for. The predicate is invoked with two arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pickBy(object, _.isNumber);
 * // => { 'a': 1, 'c': 3 }
 */

/**
 * Creates an object that inherits from the `prototype` object. If a
 * `properties` object is given, its own enumerable string keyed properties
 * are assigned to the created object.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Object
 * @param {Object} prototype The object to inherit from.
 * @param {Object} [properties] The properties to assign to the object.
 * @returns {Object} Returns the new object.
 * @example
 *
 * function Shape() {
 *   this.x = 0;
 *   this.y = 0;
 * }
 *
 * function Circle() {
 *   Shape.call(this);
 * }
 *
 * Circle.prototype = _.create(Shape.prototype, {
 *   'constructor': Circle
 * });
 *
 * var circle = new Circle;
 * circle instanceof Circle;
 * // => true
 *
 * circle instanceof Shape;
 * // => true
 */

/**
 * Creates an object with the same keys as `object` and values generated
 * by running each own enumerable string keyed property of `object` thru
 * `iteratee`. The iteratee is invoked with three arguments:
 * (value, key, object).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns the new mapped object.
 * @see _.mapKeys
 * @example
 *
 * var users = {
 *   'fred':    { 'user': 'fred',    'age': 40 },
 *   'pebbles': { 'user': 'pebbles', 'age': 1 }
 * };
 *
 * _.mapValues(users, function(o) { return o.age; });
 * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
 *
 * // The `_.property` iteratee shorthand.
 * _.mapValues(users, 'age');
 * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
 */

/**
 * Creates the padding for `string` based on `length`. The `chars` string
 * is truncated if the number of characters exceeds `length`.
 *
 * @private
 * @param {number} length The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padding for `string`.
 */

/**
 * Currently only WebKit-based Web Inspectors, Firefox >= v31,
 * and the Firebug extension (any Firefox version) are known
 * to support "%c" CSS customizations.
 *
 * TODO: add a `localStorage` variable to explicitly enable/disable colors
 */

/**
 * DOM 元素被移除的回调
 */

/**
 * Data below is from https://www.unicode.org/charts/PDF/U1D400.pdf
 * That document sorts characters into groups by font type, say bold or italic.
 *
 * In the arrays below, each subarray consists three elements:
 *      * The CSS class of that group when in math mode.
 *      * The CSS class of that group when in text mode.
 *      * The font name, so that KaTeX can get font metrics.
 */

/**
 * DataMark -> ViewMark
 */

/**
 * Deburrs `string` by converting
 * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
 * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
 * letters to basic Latin letters and removing
 * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to deburr.
 * @returns {string} Returns the deburred string.
 * @example
 *
 * _.deburr('déjà vu');
 * // => 'deja vu'
 */

/**
 * Decode a URI encoded string.
 *
 * @param {String} input The URI encoded string.
 * @returns {String|Null} The decoded string.
 * @api private
 */

/**
 * Decodes a string with entities.
 *
 * @param data String to decode.
 * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
 * @deprecated Use `decodeXML` or `decodeHTML` directly.
 */

/**
 * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
 *
 * @param data String to decode.
 * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
 * @deprecated Use `decodeHTMLStrict` or `decodeXML` directly.
 */

/**
 * Defers invoking the `func` until the current call stack has cleared. Any
 * additional arguments are provided to `func` when it's invoked.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to defer.
 * @param {...*} [args] The arguments to invoke `func` with.
 * @returns {number} Returns the timer id.
 * @example
 *
 * _.defer(function(text) {
 *   console.log(text);
 * }, 'deferred');
 * // => Logs 'deferred' after one millisecond.
 */

/**
 * Describes spaces between different classes of atoms.
 */

/**
 * Detect if the cursor should be moved inside when deleting/moving at void edges
 */

/**
 * Enables the wrapper to be iterable.
 *
 * @name Symbol.iterator
 * @memberOf _
 * @since 4.0.0
 * @category Seq
 * @returns {Object} Returns the wrapper object.
 * @example
 *
 * var wrapped = _([1, 2]);
 *
 * wrapped[Symbol.iterator]() === wrapped;
 * // => true
 *
 * Array.from(wrapped);
 * // => [1, 2]
 */

/**
 * Encodes a string with entities.
 *
 * @param data String to encode.
 * @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0.
 * @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly.
 */

/**
 * Encodes all characters not valid in XML documents using numeric hexadecimal
 * reference (eg. `&#xfc;`).
 *
 * Note that the output will be character-set dependent.
 *
 * @param data String to escape.
 */

/**
 * Encodes all entities and non-ASCII characters in the input.
 *
 * This includes characters that are valid ASCII characters in HTML documents.
 * For example `#` will be encoded as `&num;`. To get a more compact output,
 * consider using the `encodeNonAsciiHTML` function.
 *
 * If a character has no equivalent entity, a
 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
 */

/**
 * Encodes all non-ASCII characters, as well as characters not valid in HTML
 * documents using HTML entities.
 *
 * If a character has no equivalent entity, a
 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
 */

/**
 * Encodes all non-ASCII characters, as well as characters not valid in XML
 * documents using XML entities.
 *
 * If a character has no equivalent entity, a
 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
 */

/**
 * Encodes all non-ASCII characters, as well as characters not valid in XML
 * documents using numeric hexadecimal reference (eg. `&#xfc;`).
 *
 * Have a look at `escapeUTF8` if you want a more concise output at the expense
 * of reduced transportability.
 *
 * @param data String to escape.
 */

/**
 * Enum of modes for SwitchTransition component
 * @enum { string }
 */

/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */

/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */

/**
 * Escapes text to prevent scripting attacks.
 */

/**
 * Executes the chain sequence and returns the wrapped result.
 *
 * @name commit
 * @memberOf _
 * @since 3.2.0
 * @category Seq
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * var array = [1, 2];
 * var wrapped = _(array).push(3);
 *
 * console.log(array);
 * // => [1, 2]
 *
 * wrapped = wrapped.commit();
 * console.log(array);
 * // => [1, 2, 3]
 *
 * wrapped.last();
 * // => 3
 *
 * console.log(array);
 * // => [1, 2, 3]
 */

/**
 * Executes the chain sequence to resolve the unwrapped value.
 *
 * @name value
 * @memberOf _
 * @since 0.1.0
 * @alias toJSON, valueOf
 * @category Seq
 * @returns {*} Returns the resolved unwrapped value.
 * @example
 *
 * _([1, 2, 3]).value();
 * // => [1, 2, 3]
 */

/**
 * Executes the copy operation based on the current selection.
 */

/**
 * Export.
 */

/**
 * Expose `isUrl`.
 */

/**
 * Extract protocol information from a URL with/without double slash ("//").
 *
 * @param {String} address URL we want to extract from.
 * @param {Object} location
 * @return {ProtocolExtract} Extracted information.
 * @private
 */

/**
 * Extracts the unwrapped value from its lazy wrapper.
 *
 * @private
 * @name value
 * @memberOf LazyWrapper
 * @returns {*} Returns the unwrapped value.
 */

/**
 * Extracts wrapper details from the `source` body comment.
 *
 * @private
 * @param {string} source The source to inspect.
 * @returns {Array} Returns the wrapper details.
 */

/**
 * FastDom
 *
 * Eliminates layout thrashing
 * by batching DOM read/write
 * interactions.
 *
 * @author Wilson Page <wilsonpage@me.com>
 * @author Kornel Lesinski <kornel.lesinski@ft.com>
 */

/**
 * Fills elements of `array` with `value` from `start` up to, but not
 * including, `end`.
 *
 * **Note:** This method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 3.2.0
 * @category Array
 * @param {Array} array The array to fill.
 * @param {*} value The value to fill `array` with.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [1, 2, 3];
 *
 * _.fill(array, 'a');
 * console.log(array);
 * // => ['a', 'a', 'a']
 *
 * _.fill(Array(3), 2);
 * // => [2, 2, 2]
 *
 * _.fill([4, 6, 8, 10], '*', 1, 3);
 * // => [4, '*', '*', 10]
 */

/**
 * Find closest ancestor
 * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
 * @returns
 */

/**
 * Fira Code 等宽字体
 * mac: Andale Mono
 */

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */

/**
 * Freeze an object or array in Cangjie data to prevent modification
 *
 * Since Cangjie abandoned the immutableJS library, now it's developer's
 * responsibility to create new data object for any updated properties.
 * This function is used in Cangjie debug mode to prevent mistakes of altering
 * existing object.
 *
 * Note:
 * 1. use it in development mode, since it may cause bad performance
 *   https://immerjs.github.io/immer/docs/performance
 *
 * 2. use it in 'strict mode' to trigger a TypeError; otherwise the caller
 *   will just fails silently, which doesn't make any use it.
 */

/**
 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
 * if value is a number.
 * Buffer.from(str[, encoding])
 * Buffer.from(array)
 * Buffer.from(buffer)
 * Buffer.from(arrayBuffer[, byteOffset[, length]])
 **/

/**
 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {string} [prefix=''] The value to prefix the ID with.
 * @returns {string} Returns the unique ID.
 * @example
 *
 * _.uniqueId('contact_');
 * // => 'contact_104'
 *
 * _.uniqueId();
 * // => '105'
 */

/**
 * Get the font metrics for a given size.
 */

/**
 * Get the metrics for a given symbol and font, after transformation (i.e.
 * after following replacement from symbols.js)
 */

/**
 * Gets `n` random elements at unique keys from `collection` up to the
 * size of `collection`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to sample.
 * @param {number} [n=1] The number of elements to sample.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the random elements.
 * @example
 *
 * _.sampleSize([1, 2, 3], 2);
 * // => [3, 1]
 *
 * _.sampleSize([1, 2, 3], 4);
 * // => [2, 3, 1]
 */

/**
 * Gets a random element from `collection`.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to sample.
 * @returns {*} Returns the random element.
 * @example
 *
 * _.sample([1, 2, 3, 4]);
 * // => 2
 */

/**
 * Gets all but the first element of `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.tail([1, 2, 3]);
 * // => [2, 3]
 */

/**
 * Gets all but the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {Array} Returns the slice of `array`.
 * @example
 *
 * _.initial([1, 2, 3]);
 * // => [1, 2]
 */

/**
 * Gets the argument placeholder value for `func`.
 *
 * @private
 * @param {Function} func The function to inspect.
 * @returns {*} Returns the placeholder value.
 */

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */

/**
 * Gets the element at index `n` of `array`. If `n` is negative, the nth
 * element from the end is returned.
 *
 * @static
 * @memberOf _
 * @since 4.11.0
 * @category Array
 * @param {Array} array The array to query.
 * @param {number} [n=0] The index of the element to return.
 * @returns {*} Returns the nth element of `array`.
 * @example
 *
 * var array = ['a', 'b', 'c', 'd'];
 *
 * _.nth(array, 1);
 * // => 'b'
 *
 * _.nth(array, -2);
 * // => 'c';
 */

/**
 * Gets the first element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @alias first
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the first element of `array`.
 * @example
 *
 * _.head([1, 2, 3]);
 * // => 1
 *
 * _.head([]);
 * // => undefined
 */

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * Gets the index at which the first occurrence of `value` is found in `array`
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. If `fromIndex` is negative, it's used as the
 * offset from the end of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 * @example
 *
 * _.indexOf([1, 2, 1, 2], 2);
 * // => 1
 *
 * // Search from the `fromIndex`.
 * _.indexOf([1, 2, 1, 2], 2, 2);
 * // => 3
 */

/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the name of `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {string} Returns the function name.
 */

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */

/**
 * Gets the next value on a wrapped object following the
 * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
 *
 * @name next
 * @memberOf _
 * @since 4.0.0
 * @category Seq
 * @returns {Object} Returns the next iterator value.
 * @example
 *
 * var wrapped = _([1, 2]);
 *
 * wrapped.next();
 * // => { 'done': false, 'value': 1 }
 *
 * wrapped.next();
 * // => { 'done': false, 'value': 2 }
 *
 * wrapped.next();
 * // => { 'done': true, 'value': undefined }
 */

/**
 * Gets the number of `placeholder` occurrences in `array`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} placeholder The placeholder to search for.
 * @returns {number} Returns the placeholder count.
 */

/**
 * Gets the number of symbols in `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the string size.
 */

/**
 * Gets the parent value at `path` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} path The path to get the parent value of.
 * @returns {*} Returns the parent value.
 */

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */

/**
 * Gets the size of `collection` by returning its length for array-like
 * values or the number of own enumerable string keyed properties for objects.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object|string} collection The collection to inspect.
 * @returns {number} Returns the collection size.
 * @example
 *
 * _.size([1, 2, 3]);
 * // => 3
 *
 * _.size({ 'a': 1, 'b': 2 });
 * // => 2
 *
 * _.size('pebbles');
 * // => 7
 */

/**
 * Gets the size of a Unicode `string`.
 *
 * @private
 * @param {string} string The string inspect.
 * @returns {number} Returns the string size.
 */

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */

/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */

/**
 * Gets the view, applying any `transforms` to the `start` and `end` positions.
 *
 * @private
 * @param {number} start The start of the view.
 * @param {number} end The end of the view.
 * @param {Array} transforms The transformations to apply to the view.
 * @returns {Object} Returns an object containing the `start` and `end`
 *  positions of the view.
 */

/**
 * Given `this.props.children`, return an object mapping key to child.
 *
 * @param {*} children `this.props.children`
 * @return {object} Mapping of key to child
 */

/**
 * Given a codepoint, return the name of the script or script family
 * it is from, or null if it is not part of a known block
 */

/**
 * Given a codepoint, return true if it falls within one of the
 * scripts or script families defined above and false otherwise.
 *
 * Micro benchmarks shows that this is faster than
 * /[\u3000-\u30FF\u4E00-\u9FAF\uFF00-\uFF60\uAC00-\uD7AF\u0900-\u109F]/.test()
 * in Firefox, Chrome and Node.
 */

/**
 * Helpers.
 */

/**
 * Hook factory, which creates a `useDispatch` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useDispatch` hook bound to the specified context.
 */

/**
 * Hook factory, which creates a `useSelector` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useSelector` hook bound to the specified context.
 */

/**
 * Hook factory, which creates a `useStore` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useStore` hook bound to the specified context.
 */

/**
 * 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-`.
 *
 * @param {string} string
 * @return {string}
 */

/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Print warning and recommend using `buffer` v4.x which has an Object
 *               implementation (most compatible, even IE6)
 *
 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
 * Opera 11.6+, iOS 4.2+.
 *
 * We report that the browser does not support typed arrays if the are not subclassable
 * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`
 * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
 * for __proto__ and has a buggy typed array implementation.
 */

/**
 * Initialize a `FastDom`.
 *
 * @constructor
 */

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */

/**
 * Inner class which performs selection from either `text` or `target`
 * properties and then executes copy or cut operations.
 */

/**
 * Inserts wrapper `details` in a comment at the top of the `source` body.
 *
 * @private
 * @param {string} source The source to modify.
 * @returns {Array} details The details to insert.
 * @returns {string} Returns the modified source.
 */

/**
 * Invokes `console.debug()` when available.
 * No-op when `console.debug` is not a "function".
 * If `console.debug` is not available, falls back
 * to `console.log`.
 *
 * @api public
 */

/**
 * Invokes `func` after `wait` milliseconds. Any additional arguments are
 * provided to `func` when it's invoked.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to delay.
 * @param {number} wait The number of milliseconds to delay invocation.
 * @param {...*} [args] The arguments to invoke `func` with.
 * @returns {number} Returns the timer id.
 * @example
 *
 * _.delay(function(text) {
 *   console.log(text);
 * }, 1000, 'later');
 * // => Logs 'later' after one second.
 */

/**
 * Invokes the iteratee `n` times, returning an array of the results of
 * each invocation. The iteratee is invoked with one argument; (index).
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 * @example
 *
 * _.times(3, String);
 * // => ['0', '1', '2']
 *
 *  _.times(4, _.constant(0));
 * // => [0, 0, 0, 0]
 */

/**
 * Invokes the method at `path` of each element in `collection`, returning
 * an array of the results of each invoked method. Any additional arguments
 * are provided to each invoked method. If `path` is a function, it's invoked
 * for, and `this` bound to, each element in `collection`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Array|Function|string} path The path of the method to invoke or
 *  the function invoked per iteration.
 * @param {...*} [args] The arguments to invoke each method with.
 * @returns {Array} Returns the array of results.
 * @example
 *
 * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
 * // => [[1, 5, 7], [1, 2, 3]]
 *
 * _.invokeMap([123, 456], String.prototype.split, '');
 * // => [['1', '2', '3'], ['4', '5', '6']]
 */

/**
 * Is hotkey?
 */

/**
 * It's falsish not falsy because 0 is allowed.
 */

/**
 * Iterates over elements of `collection` and invokes `iteratee` for each element.
 * The iteratee is invoked with three arguments: (value, index|key, collection).
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * **Note:** As with other "Collections" methods, objects with a "length"
 * property are iterated like arrays. To avoid this behavior use `_.forIn`
 * or `_.forOwn` for object iteration.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @alias each
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 * @see _.forEachRight
 * @example
 *
 * _.forEach([1, 2], function(value) {
 *   console.log(value);
 * });
 * // => Logs `1` then `2`.
 *
 * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
 */

/**
 * Iterates over elements of `collection`, returning an array of all elements
 * `predicate` returns truthy for. The predicate is invoked with three
 * arguments: (value, index|key, collection).
 *
 * **Note:** Unlike `_.remove`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 * @see _.reject
 * @example
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36, 'active': true },
 *   { 'user': 'fred',   'age': 40, 'active': false }
 * ];
 *
 * _.filter(users, function(o) { return !o.active; });
 * // => objects for ['fred']
 *
 * // The `_.matches` iteratee shorthand.
 * _.filter(users, { 'age': 36, 'active': true });
 * // => objects for ['barney']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.filter(users, ['active', false]);
 * // => objects for ['fred']
 *
 * // The `_.property` iteratee shorthand.
 * _.filter(users, 'active');
 * // => objects for ['barney']
 *
 * // Combining several predicates using `_.overEvery` or `_.overSome`.
 * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
 * // => objects for ['fred', 'barney']
 */

/**
 * Iterates over own and inherited enumerable string keyed properties of an
 * object and invokes `iteratee` for each property. The iteratee is invoked
 * with three arguments: (value, key, object). Iteratee functions may exit
 * iteration early by explicitly returning `false`.
 *
 * @static
 * @memberOf _
 * @since 0.3.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forInRight
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forIn(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
 */

/**
 * Iterates over own enumerable string keyed properties of an object and
 * invokes `iteratee` for each property. The iteratee is invoked with three
 * arguments: (value, key, object). Iteratee functions may exit iteration
 * early by explicitly returning `false`.
 *
 * @static
 * @memberOf _
 * @since 0.3.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forOwnRight
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forOwn(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
 */

/**
 * Lexing or parsing positional information for error reporting.
 * This object is immutable.
 */

/**
 * LinkifyIt#match(text) -> Array|null
 *
 * Returns array of found link descriptions or `null` on fail. We strongly
 * recommend to use [[LinkifyIt#test]] first, for best speed.
 *
 * ##### Result match description
 *
 * - __schema__ - link schema, can be empty for fuzzy links, or `//` for
 *   protocol-neutral  links.
 * - __index__ - offset of matched text
 * - __lastIndex__ - index of next char after mathch end
 * - __raw__ - matched text
 * - __text__ - normalized text
 * - __url__ - link, generated from matched text
 **/

/**
 * LinkifyIt#normalize(match)
 *
 * Default normalizer (if schema does not define it's own).
 **/

/**
 * LinkifyIt#onCompile()
 *
 * Override to modify basic RegExp-s.
 **/

/**
 * LinkifyIt#pretest(text) -> Boolean
 *
 * Very quick check, that can give false positives. Returns true if link MAY BE
 * can exists. Can be used for speed optimization, when you need to check that
 * link NOT exists.
 **/

/**
 * LinkifyIt#test(text) -> Boolean
 *
 * Searches linkifiable pattern and returns `true` on success or `false` on fail.
 **/

/**
 * LinkifyIt#testSchemaAt(text, name, position) -> Number
 * - text (String): text to scan
 * - name (String): rule (schema) name
 * - position (Number): text offset to check from
 *
 * Similar to [[LinkifyIt#test]] but checks only specific protocol tail exactly
 * at given position. Returns length of found pattern (0 on fail).
 **/

/**
 * Load `namespaces`.
 *
 * @return {String} returns the previously persisted debug modes
 * @api private
 */

/**
 * Localstorage attempts to return the localstorage.
 *
 * This is necessary because safari throws
 * when a user disables cookies/localstorage
 * and you attempt to access it.
 *
 * @return {LocalStorage}
 * @api private
 */

/**
 * Long format for `ms`.
 *
 * @param {Number} ms
 * @return {String}
 * @api private
 */

/**
 * Loosely validate a URL `string`.
 *
 * @param {String} string
 * @return {Boolean}
 */

/**
 * MIT License
 *
 * Copyright (c) 2016 Sultan Tarimo
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
 * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/**
 * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
 */

/**
 * Mark 渲染
 */

/**
 * MarkdownIt.render(src [, env]) -> String
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Render markdown string into html. It does all magic for you :).
 *
 * `env` can be used to inject additional metadata (`{}` by default).
 * But you will not need it with high probability. See also comment
 * in [[MarkdownIt.parse]].
 **/

/**
 * MarkdownIt.renderInline(src [, env]) -> String
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Similar to [[MarkdownIt.render]] but for single paragraph content. Result
 * will NOT be wrapped into `<p>` tags.
 **/

/**
 * Merges the function metadata of `source` into `data`.
 *
 * Merging metadata reduces the number of wrappers used to invoke a function.
 * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
 * may be applied regardless of execution order. Methods like `_.ary` and
 * `_.rearg` modify function arguments, making the order in which they are
 * executed important, preventing the merging of metadata. However, we make
 * an exception for a safe combined case where curried functions have `_.ary`
 * and or `_.rearg` applied.
 *
 * @private
 * @param {Array} data The destination metadata.
 * @param {Array} source The source metadata.
 * @returns {Array} Returns `data`.
 */

/**
 * Mini logger
 *
 * @return {Function}
 */

/**
 * Mixin own properties of source
 * object into the target.
 *
 * @param  {Object} target
 * @param  {Object} source
 */

/**
 * Moves an array item from one position in an array to another.
 *
 * Note: This is a pure function so a new array will be returned, instead
 * of altering the array argument.
 *
 * @param array         Array in which to move an item.         (required)
 * @param moveIndex     The index of the item to move.          (required)
 * @param toIndex       The index to move item at moveIndex to. (required)
 */

/**
 * NameMap like a `Map` but accepts `string[]` as key.
 */

/**
 * Normalize 一行文本，剔除文本前面的空白符
 * @note 注意 Word 的规范中只会对 text/html 中的空白符进行裁剪，text/plain 中的空白符会保留
 * @param text
 */

/**
 * Normalized rAF
 *
 * @type {Function}
 */

/**
 * Pads `string` on the left and right sides if it's shorter than `length`.
 * Padding characters are truncated if they can't be evenly divided by `length`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.pad('abc', 8);
 * // => '  abc   '
 *
 * _.pad('abc', 8, '_-');
 * // => '_-abc_-_'
 *
 * _.pad('abc', 3);
 * // => 'abc'
 */

/**
 * Pads `string` on the left side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padStart('abc', 6);
 * // => '   abc'
 *
 * _.padStart('abc', 6, '_-');
 * // => '_-_abc'
 *
 * _.padStart('abc', 3);
 * // => 'abc'
 */

/**
 * Pads `string` on the right side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padEnd('abc', 6);
 * // => 'abc   '
 *
 * _.padEnd('abc', 6, '_-');
 * // => 'abc_-_'
 *
 * _.padEnd('abc', 3);
 * // => 'abc'
 */

/**
 * Parse an expression and return the parse tree.
 */

/**
 * Parse and build an expression, and return the markup for that.
 */

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

/**
 * Parse the body of the environment, with rows delimited by \\ and
 * columns delimited by &, and create a nested list in row-major order
 * with one group per cell.  If given an optional argument style
 * ("text", "display", etc.), then each cell is cast into that style.
 */

/**
 * Parse the given `str` and return milliseconds.
 *
 * @param {String} str
 * @return {Number}
 * @api private
 */

/**
 * Parse.
 */

/**
 * ParserBlock.parse(str, md, env, outTokens)
 *
 * Process input string and push block tokens into `outTokens`
 **/

/**
 * ParserInline.parse(str, md, env, outTokens)
 *
 * Process input string and push inline tokens into `outTokens`
 **/

/**
 * Parses an expression using a Parser, then returns the parsed result.
 */

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */

/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */

/**
 * Performs a partial deep comparison between `object` and `source` to
 * determine if `object` contains equivalent property values.
 *
 * **Note:** This method is equivalent to `_.matches` when `source` is
 * partially applied.
 *
 * Partial comparisons will match empty array and empty object `source`
 * values against any array or object value, respectively. See `_.isEqual`
 * for a list of supported value comparisons.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 *
 * _.isMatch(object, { 'b': 2 });
 * // => true
 *
 * _.isMatch(object, { 'b': 1 });
 * // => false
 */

/**
 * Pluralization helper.
 */

/**
 * Prints a warning in the console if it exists.
 *
 * @param {String} message The warning message.
 * @returns {void}
 */

/**
 * Produces a random number between the inclusive `lower` and `upper` bounds.
 * If only one argument is provided a number between `0` and the given number
 * is returned. If `floating` is `true`, or either `lower` or `upper` are
 * floats, a floating-point number is returned instead of an integer.
 *
 * **Note:** JavaScript follows the IEEE-754 standard for resolving
 * floating-point values which can produce unexpected results.
 *
 * @static
 * @memberOf _
 * @since 0.7.0
 * @category Number
 * @param {number} [lower=0] The lower bound.
 * @param {number} [upper=1] The upper bound.
 * @param {boolean} [floating] Specify returning a floating-point number.
 * @returns {number} Returns the random number.
 * @example
 *
 * _.random(0, 5);
 * // => an integer between 0 and 5
 *
 * _.random(5);
 * // => also an integer between 0 and 5
 *
 * _.random(5, true);
 * // => a floating-point number between 0 and 5
 *
 * _.random(1.2, 5.2);
 * // => a floating-point number between 1.2 and 5.2
 */

/**
 * Provide a theme to an entire react component tree via context
 */

/**
 * Provides a single function for parsing an expression using a Parser
 * TODO(emily): Remove this
 */

/**
 * Puts a delimiter span in a given style, and adds appropriate height, depth,
 * and maxFontSizes.
 */

/**
 * Recursively flatten `array` up to `depth` times.
 *
 * @static
 * @memberOf _
 * @since 4.4.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @param {number} [depth=1] The maximum recursion depth.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * var array = [1, [2, [3, [4]], 5]];
 *
 * _.flattenDepth(array, 1);
 * // => [1, 2, [3, [4]], 5]
 *
 * _.flattenDepth(array, 2);
 * // => [1, 2, 3, [4], 5]
 */

/**
 * Recursively flattens `array`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flattenDeep([1, [2, [3, [4]], 5]]);
 * // => [1, 2, 3, 4, 5]
 */

/**
 * Reduces `collection` to a value which is the accumulated result of running
 * each element in `collection` thru `iteratee`, where each successive
 * invocation is supplied the return value of the previous. If `accumulator`
 * is not given, the first element of `collection` is used as the initial
 * value. The iteratee is invoked with four arguments:
 * (accumulator, value, index|key, collection).
 *
 * Many lodash methods are guarded to work as iteratees for methods like
 * `_.reduce`, `_.reduceRight`, and `_.transform`.
 *
 * The guarded methods are:
 * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
 * and `sortBy`
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @returns {*} Returns the accumulated value.
 * @see _.reduceRight
 * @example
 *
 * _.reduce([1, 2], function(sum, n) {
 *   return sum + n;
 * }, 0);
 * // => 3
 *
 * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
 *   (result[value] || (result[value] = [])).push(key);
 *   return result;
 * }, {});
 * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
 */

/**
 * RegExps.
 * A URL must match #1 and then at least one of #2/#3.
 * Use two levels of REs to avoid REDOS.
 */

/**
 * Remove an item from an Array.
 *
 * @param  {Array} array
 * @param  {*} item
 * @return {Boolean}
 */

/**
 * Remove control characters and whitespace from the beginning of a string.
 *
 * @param {Object|String} str String to trim.
 * @returns {String} A new string representing `str` stripped of control
 *     characters and whitespace from its beginning.
 * @public
 */

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes a CSS class from a given element.
 * 
 * @param element the element
 * @param className the CSS class name
 */

/**
 * Removes all elements from `array` that `predicate` returns truthy for
 * and returns an array of the removed elements. The predicate is invoked
 * with three arguments: (value, index, array).
 *
 * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
 * to pull elements from an array by value.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new array of removed elements.
 * @example
 *
 * var array = [1, 2, 3, 4];
 * var evens = _.remove(array, function(n) {
 *   return n % 2 == 0;
 * });
 *
 * console.log(array);
 * // => [1, 3]
 *
 * console.log(evens);
 * // => [2, 4]
 */

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */

/**
 * Removes elements from `array` corresponding to `indexes` and returns an
 * array of removed elements.
 *
 * **Note:** Unlike `_.at`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {...(number|number[])} [indexes] The indexes of elements to remove.
 * @returns {Array} Returns the new array of removed elements.
 * @example
 *
 * var array = ['a', 'b', 'c', 'd'];
 * var pulled = _.pullAt(array, [1, 3]);
 *
 * console.log(array);
 * // => ['a', 'c']
 *
 * console.log(pulled);
 * // => ['b', 'd']
 */

/**
 * Removes leading and trailing whitespace or specified characters from `string`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to trim.
 * @param {string} [chars=whitespace] The characters to trim.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {string} Returns the trimmed string.
 * @example
 *
 * _.trim('  abc  ');
 * // => 'abc'
 *
 * _.trim('-_-abc-_-', '_-');
 * // => 'abc'
 *
 * _.map(['  foo  ', '  bar  '], _.trim);
 * // => ['foo', 'bar']
 */

/**
 * Removes leading whitespace or specified characters from `string`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to trim.
 * @param {string} [chars=whitespace] The characters to trim.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {string} Returns the trimmed string.
 * @example
 *
 * _.trimStart('  abc  ');
 * // => 'abc  '
 *
 * _.trimStart('-_-abc-_-', '_-');
 * // => 'abc-_-'
 */

/**
 * Removes the property at `path` of `object`.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 7 } }] };
 * _.unset(object, 'a[0].b.c');
 * // => true
 *
 * console.log(object);
 * // => { 'a': [{ 'b': {} }] };
 *
 * _.unset(object, ['a', '0', 'b', 'c']);
 * // => true
 *
 * console.log(object);
 * // => { 'a': [{ 'b': {} }] };
 */

/**
 * Removes trailing whitespace or specified characters from `string`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to trim.
 * @param {string} [chars=whitespace] The characters to trim.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {string} Returns the trimmed string.
 * @example
 *
 * _.trimEnd('  abc  ');
 * // => '  abc'
 *
 * _.trimEnd('-_-abc-_-', '_-');
 * // => '-_-abc'
 */

/**
 * Renderer.render(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * Takes token stream and generates HTML. Probably, you will never need to call
 * this method directly.
 **/

/**
 * Renderer.renderAttrs(token) -> String
 *
 * Render token attributes to string.
 **/

/**
 * Renderer.renderInline(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * The same as [[Renderer.render]], but for single token of `inline` type.
 **/

/**
 * Renderer.renderToken(tokens, idx, options) -> String
 * - tokens (Array): list of tokens
 * - idx (Numbed): token index to render
 * - options (Object): params of parser instance
 *
 * Default token renderer. Can be overriden by custom function
 * in [[Renderer#rules]].
 **/

/**
 * Reorder `array` according to the specified indexes where the element at
 * the first index is assigned as the first element, the element at
 * the second index is assigned as the second element, and so on.
 *
 * @private
 * @param {Array} array The array to reorder.
 * @param {Array} indexes The arranged array indexes.
 * @returns {Array} Returns `array`.
 */

/**
 * Repeats the given string `n` times.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to repeat.
 * @param {number} [n=1] The number of times to repeat the string.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {string} Returns the repeated string.
 * @example
 *
 * _.repeat('*', 3);
 * // => '***'
 *
 * _.repeat('abc', 2);
 * // => 'abcabc'
 *
 * _.repeat('abc', 0);
 * // => ''
 */

/**
 * Replace with template.
 *   `I'm ${name}` + { name: 'bamboo' } = I'm bamboo
 */

/**
 * Replaces all `placeholder` elements in `array` with an internal placeholder
 * and returns an array of their indexes.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {*} placeholder The placeholder to replace.
 * @returns {Array} Returns the new array of placeholder indexes.
 */

/**
 * Replaces matches for `pattern` in `string` with `replacement`.
 *
 * **Note:** This method is based on
 * [`String#replace`](https://mdn.io/String/replace).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to modify.
 * @param {RegExp|string} pattern The pattern to replace.
 * @param {Function|string} replacement The match replacement.
 * @returns {string} Returns the modified string.
 * @example
 *
 * _.replace('Hi Fred', 'Fred', 'Barney');
 * // => 'Hi Barney'
 */

/**
 * Resolve a relative URL pathname against a base URL pathname.
 *
 * @param {String} relative Pathname of the relative URL.
 * @param {String} base Pathname of the base URL.
 * @return {String} Resolved pathname.
 * @private
 */

/**
 * Return if a node is a DOM node. Else will return by `findDOMNode`
 */

/**
 * Return whether an element is contained in a list
 */

/**
 * Returns the node more strictly typed iff it is of the given type. Otherwise,
 * returns null.
 */

/**
 * Reverses `array` so that the first element becomes the last, the second
 * element becomes the second to last, and so on.
 *
 * **Note:** This method mutates `array` and is based on
 * [`Array#reverse`](https://mdn.io/Array/reverse).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [1, 2, 3];
 *
 * _.reverse(array);
 * // => [3, 2, 1]
 *
 * console.log(array);
 * // => [3, 2, 1]
 */

/**
 * Reverses the direction of lazy iteration.
 *
 * @private
 * @name reverse
 * @memberOf LazyWrapper
 * @returns {Object} Returns the new reversed `LazyWrapper` object.
 */

/**
 * Ruler.after(afterName, ruleName, fn [, options])
 * - afterName (String): new rule will be added after this one.
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Add new rule to chain after one with given name. See also
 * [[Ruler.before]], [[Ruler.push]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.inline.ruler.after('text', 'my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/

/**
 * Ruler.at(name, fn [, options])
 * - name (String): rule name to replace.
 * - fn (Function): new rule function.
 * - options (Object): new rule options (not mandatory).
 *
 * Replace rule by name with new function & options. Throws error if name not
 * found.
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * Replace existing typographer replacement rule with new one:
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.core.ruler.at('replacements', function replace(state) {
 *   //...
 * });
 * ```
 **/

/**
 * Ruler.before(beforeName, ruleName, fn [, options])
 * - beforeName (String): new rule will be added before this one.
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Add new rule to chain before one with given name. See also
 * [[Ruler.after]], [[Ruler.push]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/

/**
 * Ruler.disable(list [, ignoreInvalid]) -> Array
 * - list (String|Array): list of rule names to disable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Disable rules with given names. If any rule name not found - throw Error.
 * Errors can be disabled by second param.
 *
 * Returns list of found rule names (if no exception happened).
 *
 * See also [[Ruler.enable]], [[Ruler.enableOnly]].
 **/

/**
 * Ruler.enable(list [, ignoreInvalid]) -> Array
 * - list (String|Array): list of rule names to enable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable rules with given names. If any rule name not found - throw Error.
 * Errors can be disabled by second param.
 *
 * Returns list of found rule names (if no exception happened).
 *
 * See also [[Ruler.disable]], [[Ruler.enableOnly]].
 **/

/**
 * Ruler.enableOnly(list [, ignoreInvalid])
 * - list (String|Array): list of rule names to enable (whitelist).
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable rules with given names, and disable everything else. If any rule name
 * not found - throw Error. Errors can be disabled by second param.
 *
 * See also [[Ruler.disable]], [[Ruler.enable]].
 **/

/**
 * Ruler.getRules(chainName) -> Array
 *
 * Return array of active functions (rules) for given chain name. It analyzes
 * rules configuration, compiles caches if not exists and returns result.
 *
 * Default chain name is `''` (empty string). It can't be skipped. That's
 * done intentionally, to keep signature monomorphic for high speed.
 **/

/**
 * Ruler.push(ruleName, fn [, options])
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Push new rule to the end of chain. See also
 * [[Ruler.before]], [[Ruler.after]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.core.ruler.push('my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/

/**
 * Runs queued `read` and `write` tasks.
 *
 * Errors are caught and thrown by default.
 * If a `.catch` function has been defined
 * it is called instead.
 *
 * @private
 */

/**
 * Save `namespaces`.
 *
 * @param {String} namespaces
 * @api private
 */

/**
 * Schedules a new read/write
 * batch if one isn't pending.
 *
 * @private
 */

/**
 * Serializer，序列化工具
 */

/**
 * Sets the `toString` method of `wrapper` to mimic the source of `reference`
 * with wrapper details in a comment at the top of the source body.
 *
 * @private
 * @param {Function} wrapper The function to modify.
 * @param {Function} reference The reference function.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Function} Returns `wrapper`.
 */

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */

/**
 * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
 * it's created. Arrays are created for missing index properties while objects
 * are created for all other missing properties. Use `_.setWith` to customize
 * `path` creation.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.set(object, 'a[0].b.c', 4);
 * console.log(object.a[0].b.c);
 * // => 4
 *
 * _.set(object, ['x', '0', 'y', 'z'], 5);
 * console.log(object.x[0].y.z);
 * // => 5
 */

/**
 * Short format for `ms`.
 *
 * @param {Number} ms
 * @return {String}
 * @api private
 */

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

/**
 * Simple query string parser.
 *
 * @param {String} query The query string that needs to be parsed.
 * @returns {Object}
 * @api public
 */

/**
 * Sometimes we want to pull out the innermost element of a group. In most
 * cases, this will just be the group itself, but when ordgroups and colors have
 * a single element, we want to pull that out.
 */

/**
 * Splits `string` by `separator`.
 *
 * **Note:** This method is based on
 * [`String#split`](https://mdn.io/String/split).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to split.
 * @param {RegExp|string} separator The separator pattern to split by.
 * @param {number} [limit] The length to truncate results to.
 * @returns {Array} Returns the string segments.
 * @example
 *
 * _.split('a-b-c', '-', 2);
 * // => ['a', 'b']
 */

/**
 * Splits `string` into an array of its words.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to inspect.
 * @param {RegExp|string} [pattern] The pattern to match words.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the words of `string`.
 * @example
 *
 * _.words('fred, barney, & pebbles');
 * // => ['fred', 'barney', 'pebbles']
 *
 * _.words('fred, barney, & pebbles', /[^, ]+/g);
 * // => ['fred', 'barney', '&', 'pebbles']
 */

/**
 * Splits a Unicode `string` into an array of its words.
 *
 * @private
 * @param {string} The string to inspect.
 * @returns {Array} Returns the words of `string`.
 */

/**
 * Splits an ASCII `string` into an array of its words.
 *
 * @private
 * @param {string} The string to inspect.
 * @returns {Array} Returns the words of `string`.
 */

/**
 * TODO: Explore using CSS.escape when it becomes more available
 * in evergreen browsers.
 */

/**
 * Take an entire parse tree, and build it into an appropriate set of HTML
 * nodes.
 */

/**
 * Takes a full parse tree and settings and builds a MathML representation of
 * it. In particular, we put the elements from building the parse tree into a
 * <semantics> tag so we can also include that TeX source as an annotation.
 *
 * Note that we actually return a domTree element with a `<math>` inside it so
 * we can do appropriate styling.
 */

/**
 * Tests whether an element is a tag or not.
 *
 * @param elem Element to test
 */

/**
 * The Buffer constructor returns instances of `Uint8Array` that have their
 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
 * returns a single octet.
 *
 * The `Uint8Array` prototype remains unmodified.
 */

/**
 * The Transition component lets you describe a transition from one component
 * state to another _over time_ with a simple declarative API. Most commonly
 * it's used to animate the mounting and unmounting of a component, but can also
 * be used to describe in-place transition states as well.
 *
 * ---
 *
 * **Note**: `Transition` is a platform-agnostic base component. If you're using
 * transitions in CSS, you'll probably want to use
 * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
 * instead. It inherits all the features of `Transition`, but contains
 * additional features necessary to play nice with CSS transitions (hence the
 * name of the component).
 *
 * ---
 *
 * By default the `Transition` component does not alter the behavior of the
 * component it renders, it only tracks "enter" and "exit" states for the
 * components. It's up to you to give meaning and effect to those states. For
 * example we can add styles to a component when it enters or exits:
 *
 * ```jsx
 * import { Transition } from 'react-transition-group';
 *
 * const duration = 300;
 *
 * const defaultStyle = {
 *   transition: `opacity ${duration}ms ease-in-out`,
 *   opacity: 0,
 * }
 *
 * const transitionStyles = {
 *   entering: { opacity: 0 },
 *   entered:  { opacity: 1 },
 * };
 *
 * const Fade = ({ in: inProp }) => (
 *   <Transition in={inProp} timeout={duration}>
 *     {state => (
 *       <div style={{
 *         ...defaultStyle,
 *         ...transitionStyles[state]
 *       }}>
 *         I'm a fade Transition!
 *       </div>
 *     )}
 *   </Transition>
 * );
 * ```
 *
 * There are 4 main states a Transition can be in:
 *  - `'entering'`
 *  - `'entered'`
 *  - `'exiting'`
 *  - `'exited'`
 *
 * Transition state is toggled via the `in` prop. When `true` the component
 * begins the "Enter" stage. During this stage, the component will shift from
 * its current transition state, to `'entering'` for the duration of the
 * transition and then to the `'entered'` stage once it's complete. Let's take
 * the following example (we'll use the
 * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
 *
 * ```jsx
 * function App() {
 *   const [inProp, setInProp] = useState(false);
 *   return (
 *     <div>
 *       <Transition in={inProp} timeout={500}>
 *         {state => (
 *           // ...
 *         )}
 *       </Transition>
 *       <button onClick={() => setInProp(true)}>
 *         Click to Enter
 *       </button>
 *     </div>
 *   );
 * }
 * ```
 *
 * When the button is clicked the component will shift to the `'entering'` state
 * and stay there for 500ms (the value of `timeout`) before it finally switches
 * to `'entered'`.
 *
 * When `in` is `false` the same thing happens except the state moves from
 * `'exiting'` to `'exited'`.
 */

/**
 * The Transition component lets you describe a transition from one component
 * state to another _over time_ with a simple declarative API. Most commonly
 * it's used to animate the mounting and unmounting of a component, but can also
 * be used to describe in-place transition states as well.
 *
 * ---
 *
 * **Note**: `Transition` is a platform-agnostic base component. If you're using
 * transitions in CSS, you'll probably want to use
 * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
 * instead. It inherits all the features of `Transition`, but contains
 * additional features necessary to play nice with CSS transitions (hence the
 * name of the component).
 *
 * ---
 *
 * By default the `Transition` component does not alter the behavior of the
 * component it renders, it only tracks "enter" and "exit" states for the
 * components. It's up to you to give meaning and effect to those states. For
 * example we can add styles to a component when it enters or exits:
 *
 * ```jsx
 * import { Transition } from 'react-transition-group';
 *
 * const duration = 300;
 *
 * const defaultStyle = {
 *   transition: `opacity ${duration}ms ease-in-out`,
 *   opacity: 0,
 * }
 *
 * const transitionStyles = {
 *   entering: { opacity: 1 },
 *   entered:  { opacity: 1 },
 *   exiting:  { opacity: 0 },
 *   exited:  { opacity: 0 },
 * };
 *
 * const Fade = ({ in: inProp }) => (
 *   <Transition in={inProp} timeout={duration}>
 *     {state => (
 *       <div style={{
 *         ...defaultStyle,
 *         ...transitionStyles[state]
 *       }}>
 *         I'm a fade Transition!
 *       </div>
 *     )}
 *   </Transition>
 * );
 * ```
 *
 * There are 4 main states a Transition can be in:
 *  - `'entering'`
 *  - `'entered'`
 *  - `'exiting'`
 *  - `'exited'`
 *
 * Transition state is toggled via the `in` prop. When `true` the component
 * begins the "Enter" stage. During this stage, the component will shift from
 * its current transition state, to `'entering'` for the duration of the
 * transition and then to the `'entered'` stage once it's complete. Let's take
 * the following example (we'll use the
 * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
 *
 * ```jsx
 * function App() {
 *   const [inProp, setInProp] = useState(false);
 *   return (
 *     <div>
 *       <Transition in={inProp} timeout={500}>
 *         {state => (
 *           // ...
 *         )}
 *       </Transition>
 *       <button onClick={() => setInProp(true)}>
 *         Click to Enter
 *       </button>
 *     </div>
 *   );
 * }
 * ```
 *
 * When the button is clicked the component will shift to the `'entering'` state
 * and stay there for 500ms (the value of `timeout`) before it finally switches
 * to `'entered'`.
 *
 * When `in` is `false` the same thing happens except the state moves from
 * `'exiting'` to `'exited'`.
 */

/**
 * The `<ReplaceTransition>` component is a specialized `Transition` component
 * that animates between two children.
 *
 * ```jsx
 * <ReplaceTransition in>
 *   <Fade><div>I appear first</div></Fade>
 *   <Fade><div>I replace the above</div></Fade>
 * </ReplaceTransition>
 * ```
 */

/**
 * The actual URL instance. Instead of returning an object we've opted-in to
 * create an actual constructor as it's much more memory efficient and
 * faster and it pleases my OCD.
 *
 * It is worth noting that we should not use `URL` as class name to prevent
 * clashes with the global URL instance that got introduced in browsers.
 *
 * @constructor
 * @param {String} address URL we want to parse.
 * @param {Object|String} [location] Location defaults for relative paths.
 * @param {Boolean|Function} [parser] Parser for the query string.
 * @private
 */

/**
 * The base constructor for creating `lodash` wrapper objects.
 *
 * @private
 * @param {*} value The value to wrap.
 * @param {boolean} [chainAll] Enable explicit method chain sequences.
 */

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.at` without support for individual paths.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {string[]} paths The property paths to pick.
 * @returns {Array} Returns the picked elements.
 */

/**
 * The base implementation of `_.clamp` which doesn't coerce arguments.
 *
 * @private
 * @param {number} number The number to clamp.
 * @param {number} [lower] The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the clamped number.
 */

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */

/**
 * The base implementation of `_.conformsTo` which accepts `props` to check.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property predicates to conform to.
 * @returns {boolean} Returns `true` if `object` conforms, else `false`.
 */

/**
 * The base implementation of `_.conforms` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property predicates to conform to.
 * @returns {Function} Returns the new spec function.
 */

/**
 * The base implementation of `_.delay` and `_.defer` which accepts `args`
 * to provide to `func`.
 *
 * @private
 * @param {Function} func The function to delay.
 * @param {number} wait The number of milliseconds to delay invocation.
 * @param {Array} args The arguments to provide to `func`.
 * @returns {number|Object} Returns the timer id or timeout object.
 */

/**
 * The base implementation of `_.every` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if all elements pass the predicate check,
 *  else `false`
 */

/**
 * The base implementation of `_.fill` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to fill.
 * @param {*} value The value to fill `array` with.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns `array`.
 */

/**
 * The base implementation of `_.filter` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */

/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */

/**
 * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.functions` which creates an array of
 * `object` function property names filtered from `props`.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Array} props The property names to filter.
 * @returns {Array} Returns the function names.
 */

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */

/**
 * The base implementation of `_.gt` which doesn't coerce arguments.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if `value` is greater than `other`,
 *  else `false`.
 */

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */

/**
 * The base implementation of `_.has` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */

/**
 * The base implementation of `_.inRange` which doesn't coerce arguments.
 *
 * @private
 * @param {number} number The number to check.
 * @param {number} start The start of the range.
 * @param {number} end The end of the range.
 * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
 */

/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * The base implementation of `_.invert` and `_.invertBy` which inverts
 * `object` with values transformed by `iteratee` and set by `setter`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform values.
 * @param {Object} accumulator The initial inverted object.
 * @returns {Function} Returns `accumulator`.
 */

/**
 * The base implementation of `_.invoke` without support for individual
 * method arguments.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the method to invoke.
 * @param {Array} args The arguments to invoke the method with.
 * @returns {*} Returns the result of the invoked method.
 */

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */

/**
 * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
 */

/**
 * The base implementation of `_.isDate` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
 */

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */

/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */

/**
 * The base implementation of `_.isRegExp` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
 */

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * The base implementation of `_.lt` which doesn't coerce arguments.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if `value` is less than `other`,
 *  else `false`.
 */

/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * The base implementation of `_.mean` and `_.meanBy` without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {number} Returns the mean.
 */

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */

/**
 * The base implementation of `_.nth` which doesn't coerce arguments.
 *
 * @private
 * @param {Array} array The array to query.
 * @param {number} n The index of the element to return.
 * @returns {*} Returns the nth element of `array`.
 */

/**
 * The base implementation of `_.orderBy` without param guards.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
 * @param {string[]} orders The sort orders of `iteratees`.
 * @returns {Array} Returns the new sorted array.
 */

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.propertyOf` without support for deep paths.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Function} Returns the new accessor function.
 */

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */

/**
 * The base implementation of `_.pullAllBy` without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns `array`.
 */

/**
 * The base implementation of `_.pullAt` without support for individual
 * indexes or capturing the removed elements.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {number[]} indexes The indexes of elements to remove.
 * @returns {Array} Returns `array`.
 */

/**
 * The base implementation of `_.random` without support for returning
 * floating-point numbers.
 *
 * @private
 * @param {number} lower The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the random number.
 */

/**
 * The base implementation of `_.range` and `_.rangeRight` which doesn't
 * coerce arguments.
 *
 * @private
 * @param {number} start The start of the range.
 * @param {number} end The end of the range.
 * @param {number} step The value to increment or decrement by.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Array} Returns the range of numbers.
 */

/**
 * The base implementation of `_.reduce` and `_.reduceRight`, without support
 * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {*} accumulator The initial value.
 * @param {boolean} initAccum Specify using the first or last element of
 *  `collection` as the initial value.
 * @param {Function} eachFunc The function to iterate over `collection`.
 * @returns {*} Returns the accumulated value.
 */

/**
 * The base implementation of `_.repeat` which doesn't coerce arguments.
 *
 * @private
 * @param {string} string The string to repeat.
 * @param {number} n The number of times to repeat the string.
 * @returns {string} Returns the repeated string.
 */

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */

/**
 * The base implementation of `_.sampleSize` without param guards.
 *
 * @private
 * @param {Array|Object} collection The collection to sample.
 * @param {number} n The number of elements to sample.
 * @returns {Array} Returns the random elements.
 */

/**
 * The base implementation of `_.sample`.
 *
 * @private
 * @param {Array|Object} collection The collection to sample.
 * @returns {*} Returns the random element.
 */

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.shuffle`.
 *
 * @private
 * @param {Array|Object} collection The collection to shuffle.
 * @returns {Array} Returns the new shuffled array.
 */

/**
 * The base implementation of `_.slice` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */

/**
 * The base implementation of `_.some` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */

/**
 * The base implementation of `_.sortBy` which uses `comparer` to define the
 * sort order of `array` and replaces criteria objects with their corresponding
 * values.
 *
 * @private
 * @param {Array} array The array to sort.
 * @param {Function} comparer The function to define sort order.
 * @returns {Array} Returns `array`.
 */

/**
 * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
 * which invokes `iteratee` for `value` and each element of `array` to compute
 * their sort ranking. The iteratee is invoked with one argument; (value).
 *
 * @private
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {Function} iteratee The iteratee invoked per element.
 * @param {boolean} [retHighest] Specify returning the highest qualified index.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 */

/**
 * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
 * performs a binary search of `array` to determine the index at which `value`
 * should be inserted into `array` in order to maintain its sort order.
 *
 * @private
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {boolean} [retHighest] Specify returning the highest qualified index.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 */

/**
 * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */

/**
 * The base implementation of `_.sum` and `_.sumBy` without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {number} Returns the sum.
 */

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */

/**
 * The base implementation of `_.toNumber` which doesn't ensure correct
 * conversions of binary, hexadecimal, or octal string values.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 */

/**
 * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
 * of key-value pairs for `object` corresponding to the property names of `props`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} props The property names to get values for.
 * @returns {Object} Returns the key-value pairs.
 */

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */

/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */

/**
 * The base implementation of `_.unset`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The property path to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 */

/**
 * The base implementation of `_.update`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to update.
 * @param {Function} updater The function to produce the updated value.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.values` and `_.valuesIn` which creates an
 * array of `object` property values corresponding to the property names
 * of `props`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} props The property names to get values for.
 * @returns {Object} Returns the array of property values.
 */

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * The base implementation of `wrapperValue` which returns the result of
 * performing a sequence of actions on the unwrapped `value`, where each
 * successive action is supplied the return value of the previous.
 *
 * @private
 * @param {*} value The unwrapped value.
 * @param {Array} actions Actions to perform to resolve the unwrapped value.
 * @returns {*} Returns the resolved value.
 */

/**
 * The base implementation of methods like `_.difference` without support
 * for excluding multiple arrays or iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Array} values The values to exclude.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 */

/**
 * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
 * without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to query.
 * @param {Function} predicate The function invoked per iteration.
 * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Array} Returns the slice of `array`.
 */

/**
 * The base implementation of methods like `_.findKey` and `_.findLastKey`,
 * without support for iteratee shorthands, which iterates over `collection`
 * using `eachFunc`.
 *
 * @private
 * @param {Array|Object} collection The collection to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {Function} eachFunc The function to iterate over `collection`.
 * @returns {*} Returns the found element or its key, else `undefined`.
 */

/**
 * The base implementation of methods like `_.intersection`, without support
 * for iteratee shorthands, that accepts an array of arrays to inspect.
 *
 * @private
 * @param {Array} arrays The arrays to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of shared values.
 */

/**
 * The base implementation of methods like `_.max` and `_.min` which accepts a
 * `comparator` to determine the extremum value.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The iteratee invoked per iteration.
 * @param {Function} comparator The comparator used to compare values.
 * @returns {*} Returns the extremum value.
 */

/**
 * The base implementation of methods like `_.xor`, without support for
 * iteratee shorthands, that accepts an array of arrays to inspect.
 *
 * @private
 * @param {Array} arrays The arrays to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of values.
 */

/**
 * The function whose prototype chain sequence wrappers inherit from.
 *
 * @private
 */

/**
 * The inverse of `_.escape`; this method converts the HTML entities
 * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
 * their corresponding characters.
 *
 * **Note:** No other HTML entities are unescaped. To unescape additional
 * HTML entities use a third-party library like [_he_](https://mths.be/he).
 *
 * @static
 * @memberOf _
 * @since 0.6.0
 * @category String
 * @param {string} [string=''] The string to unescape.
 * @returns {string} Returns the unescaped string.
 * @example
 *
 * _.unescape('fred, barney, &amp; pebbles');
 * // => 'fred, barney, & pebbles'
 */

/**
 * The inverse of `_.toPairs`; this method returns an object composed
 * from key-value `pairs`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} pairs The key-value pairs.
 * @returns {Object} Returns the new object.
 * @example
 *
 * _.fromPairs([['a', 1], ['b', 2]]);
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * The location object differs when your code is loaded through a normal page,
 * Worker or through a worker using a blob. And with the blobble begins the
 * trouble as the location object will contain the URL of the blob, not the
 * location of the page where our code is loaded in. The actual origin is
 * encoded in the `pathname` so we can thankfully generate a good "default"
 * location from it so we can generate proper relative URL's again.
 *
 * @param {Object|String} loc Optional default location object.
 * @returns {Object} lolcation object.
 * @public
 */

/**
 * The opposite of `_.before`; this method creates a function that invokes
 * `func` once it's called `n` or more times.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {number} n The number of calls before `func` is invoked.
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new restricted function.
 * @example
 *
 * var saves = ['profile', 'settings'];
 *
 * var done = _.after(saves.length, function() {
 *   console.log('done saving!');
 * });
 *
 * _.forEach(saves, function(type) {
 *   asyncSave({ 'type': type, 'complete': done });
 * });
 * // => Logs 'done saving!' after the two async saves have completed.
 */

/**
 * The opposite of `_.filter`; this method returns the elements of `collection`
 * that `predicate` does **not** return truthy for.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 * @see _.filter
 * @example
 *
 * var users = [
 *   { 'user': 'barney', 'age': 36, 'active': false },
 *   { 'user': 'fred',   'age': 40, 'active': true }
 * ];
 *
 * _.reject(users, function(o) { return !o.active; });
 * // => objects for ['fred']
 *
 * // The `_.matches` iteratee shorthand.
 * _.reject(users, { 'age': 40, 'active': true });
 * // => objects for ['barney']
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.reject(users, ['active', false]);
 * // => objects for ['fred']
 *
 * // The `_.property` iteratee shorthand.
 * _.reject(users, 'active');
 * // => objects for ['barney']
 */

/**
 * The opposite of `_.mapValues`; this method creates an object with the
 * same values as `object` and keys generated by running each own enumerable
 * string keyed property of `object` thru `iteratee`. The iteratee is invoked
 * with three arguments: (value, key, object).
 *
 * @static
 * @memberOf _
 * @since 3.8.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns the new mapped object.
 * @see _.mapValues
 * @example
 *
 * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
 *   return key + value;
 * });
 * // => { 'a1': 1, 'b2': 2 }
 */

/**
 * The opposite of `_.pickBy`; this method creates an object composed of
 * the own and inherited enumerable string keyed properties of `object` that
 * `predicate` doesn't return truthy for. The predicate is invoked with two
 * arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omitBy(object, _.isNumber);
 * // => { 'b': '2' }
 */

/**
 * The opposite of `_.property`; this method creates a function that returns
 * the value at a given path of `object`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Util
 * @param {Object} object The object to query.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var array = [0, 1, 2],
 *     object = { 'a': array, 'b': array, 'c': array };
 *
 * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
 * // => [2, 0]
 *
 * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
 * // => [2, 0]
 */

/**
 * The semantic version number.
 *
 * @static
 * @memberOf _
 * @type {string}
 */

/**
 * These are private action types reserved by Redux.
 * For any unknown actions, you must return the current state.
 * If the current state is undefined, you must return the initial state.
 * Do not reference these action types directly in your code.
 */

/**
 * These are the parse rules for the URL parser, it informs the parser
 * about:
 *
 * 0. The char it Needs to parse, if it's a string it should be done using
 *    indexOf, RegExp using exec and NaN means set as current value.
 * 1. The property we should set when parsing this value.
 * 2. Indication if it's backwards or forward parsing, when set as number it's
 *    the value of extra chars that should be split off.
 * 3. Inherit from location if non existing in the parser.
 * 4. `toLowerCase` the resulting value.
 */

/**
 * These objects store data about MathML nodes. This is the MathML equivalent
 * of the types in domTree.js. Since MathML handles its own rendering, and
 * since we're mainly using MathML to improve accessibility, we don't manage
 * any of the styling state that the plain DOM nodes do.
 *
 * The `toNode` and `toMarkup` functions work simlarly to how they do in
 * domTree.js, creating namespaced DOM nodes and HTML text markup respectively.
 */

/**
 * These properties should not be copied or inherited from. This is only needed
 * for all non blob URL's as a blob URL does not include a hash, only the
 * origin.
 *
 * @type {Object}
 * @private
 */

/**
 * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
 *
 * @private
 * @param {Array} props The property identifiers.
 * @param {Array} values The property values.
 * @param {Function} assignFunc The function to assign values.
 * @returns {Object} Returns the new object.
 */

/**
 * This file contains a list of utility functions which are useful in other
 * files.
 */

/**
 * This file contains the “gullet” where macros are expanded
 * until only non-macro tokens remain.
 */

/**
 * This file deals with creating delimiters of various sizes. The TeXbook
 * discusses these routines on page 441-442, in the "Another subroutine sets box
 * x to a specified variable delimiter" paragraph.
 *
 * There are three main routines here. `makeSmallDelim` makes a delimiter in the
 * normal font, but in either text, script, or scriptscript style.
 * `makeLargeDelim` makes a delimiter in textstyle, but in one of the Size1,
 * Size2, Size3, or Size4 fonts. `makeStackedDelim` makes a delimiter out of
 * smaller pieces that are stacked on top of one another.
 *
 * The functions take a parameter `center`, which determines if the delimiter
 * should be centered around the axis.
 *
 * Then, there are three exposed functions. `sizedDelim` makes a delimiter in
 * one of the given sizes. This is used for things like `\bigl`.
 * `customSizedDelim` makes a delimiter with a given total height+depth. It is
 * called in places like `\sqrt`. `leftRightDelim` makes an appropriate
 * delimiter which surrounds an expression of a given height an depth. It is
 * used in `\left` and `\right`.
 */

/**
 * This file does conversion between units.  In particular, it provides
 * calculateSize to convert other units into ems.
 */

/**
 * This file does the main work of building a domTree structure from a parse
 * tree. The entry point is the `buildHTML` function, which takes a parse tree.
 * Then, the buildExpression, buildGroup, and various groupBuilders functions
 * are called, to produce a final HTML tree.
 */

/**
 * This file holds a list of all no-argument functions and single-character
 * symbols (like 'a' or ';').
 *
 * For each of the symbols, there are three properties they can have:
 * - font (required): the font to be used for this symbol. Either "main" (the
     normal font), or "ams" (the ams fonts).
 * - group (required): the ParseNode group type the symbol should have (i.e.
     "textord", "mathord", etc).
     See https://github.com/KaTeX/KaTeX/wiki/Examining-TeX#group-types
 * - replace: the character that this symbol or function should be
 *   replaced with (i.e. "\phi" has a replace value of "\u03d5", the phi
 *   character in the main font).
 *
 * The outermost map in the table indicates what mode the symbols should be
 * accepted in (e.g. "math" or "text").
 */

/**
 * This file provides support for Unicode range U+1D400 to U+1D7FF,
 * Mathematical Alphanumeric Symbols.
 *
 * Function wideCharacterFont takes a wide character as input and returns
 * the font information necessary to render it properly.
 */

/**
 * This file provides support to domTree.js
 * It's a storehouse of path geometry for SVG images.
 */

/**
 * This function adds new font metrics to default metricMap
 * It can also override existing metrics
 */

/**
 * This function is a convenience function for looking up information in the
 * metricMap table. It takes a character as a string, and a font.
 *
 * Note: the `width` property may be undefined if fontMetricsData.js wasn't
 * built using `Make extended_metrics`.
 */

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * This function is like `baseIndexOf` except that it accepts a comparator.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * This function is like `composeArgs` except that the arguments composition
 * is tailored for `_.partialRight`.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to append to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */

/**
 * This is convenience method for changing properties in the URL instance to
 * insure that they all propagate correctly.
 *
 * @param {String} part          Property we need to adjust.
 * @param {Mixed} value          The newly assigned value.
 * @param {Boolean|Function} fn  When setting the query, it will be the function
 *                               used to parse the query.
 *                               When setting the protocol, double slash will be
 *                               removed from the final url if it is true.
 * @returns {URL} URL instance for chaining.
 * @public
 */

/**
 * This is the common logic for both the Node.js and web browser
 * implementations of `debug()`.
 */

/**
 * This is the web browser implementation of `debug()`.
 */

/**
 * This method invokes `interceptor` and returns `value`. The interceptor
 * is invoked with one argument; (value). The purpose of this method is to
 * "tap into" a method chain sequence in order to modify intermediate results.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Seq
 * @param {*} value The value to provide to `interceptor`.
 * @param {Function} interceptor The function to invoke.
 * @returns {*} Returns `value`.
 * @example
 *
 * _([1, 2, 3])
 *  .tap(function(array) {
 *    // Mutate input array.
 *    array.pop();
 *  })
 *  .reverse()
 *  .value();
 * // => [2, 1]
 */

/**
 * This method is like `_.assignIn` except that it accepts `customizer`
 * which is invoked to produce the assigned values. If `customizer` returns
 * `undefined`, assignment is handled by the method instead. The `customizer`
 * is invoked with five arguments: (objValue, srcValue, key, object, source).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @alias extendWith
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @see _.assignWith
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   return _.isUndefined(objValue) ? srcValue : objValue;
 * }
 *
 * var defaults = _.partialRight(_.assignInWith, customizer);
 *
 * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.assign` except that it accepts `customizer`
 * which is invoked to produce the assigned values. If `customizer` returns
 * `undefined`, assignment is handled by the method instead. The `customizer`
 * is invoked with five arguments: (objValue, srcValue, key, object, source).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @see _.assignInWith
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   return _.isUndefined(objValue) ? srcValue : objValue;
 * }
 *
 * var defaults = _.partialRight(_.assignWith, customizer);
 *
 * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.cloneWith` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @param {Function} [customizer] The function to customize cloning.
 * @returns {*} Returns the deep cloned value.
 * @see _.cloneWith
 * @example
 *
 * function customizer(value) {
 *   if (_.isElement(value)) {
 *     return value.cloneNode(true);
 *   }
 * }
 *
 * var el = _.cloneDeepWith(document.body, customizer);
 *
 * console.log(el === document.body);
 * // => false
 * console.log(el.nodeName);
 * // => 'BODY'
 * console.log(el.childNodes.length);
 * // => 20
 */

/**
 * This method is like `_.clone` except that it accepts `customizer` which
 * is invoked to produce the cloned value. If `customizer` returns `undefined`,
 * cloning is handled by the method instead. The `customizer` is invoked with
 * up to four arguments; (value [, index|key, object, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to clone.
 * @param {Function} [customizer] The function to customize cloning.
 * @returns {*} Returns the cloned value.
 * @see _.cloneDeepWith
 * @example
 *
 * function customizer(value) {
 *   if (_.isElement(value)) {
 *     return value.cloneNode(false);
 *   }
 * }
 *
 * var el = _.cloneWith(document.body, customizer);
 *
 * console.log(el === document.body);
 * // => false
 * console.log(el.nodeName);
 * // => 'BODY'
 * console.log(el.childNodes.length);
 * // => 0
 */

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */

/**
 * This method is like `_.curry` except that arguments are applied to `func`
 * in the manner of `_.partialRight` instead of `_.partial`.
 *
 * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
 * builds, may be used as a placeholder for provided arguments.
 *
 * **Note:** This method doesn't set the "length" property of curried functions.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} func The function to curry.
 * @param {number} [arity=func.length] The arity of `func`.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Function} Returns the new curried function.
 * @example
 *
 * var abc = function(a, b, c) {
 *   return [a, b, c];
 * };
 *
 * var curried = _.curryRight(abc);
 *
 * curried(3)(2)(1);
 * // => [1, 2, 3]
 *
 * curried(2, 3)(1);
 * // => [1, 2, 3]
 *
 * curried(1, 2, 3);
 * // => [1, 2, 3]
 *
 * // Curried with placeholders.
 * curried(3)(1, _)(2);
 * // => [1, 2, 3]
 */

/**
 * This method is like `_.difference` except that it accepts `comparator`
 * which is invoked to compare elements of `array` to `values`. The order and
 * references of result values are determined by the first array. The comparator
 * is invoked with two arguments: (arrVal, othVal).
 *
 * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...Array} [values] The values to exclude.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 * @example
 *
 * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
 *
 * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
 * // => [{ 'x': 2, 'y': 1 }]
 */

/**
 * This method is like `_.findIndex` except that it iterates over elements
 * of `collection` from right to left.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=array.length-1] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': true },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': false }
 * ];
 *
 * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
 * // => 2
 *
 * // The `_.matches` iteratee shorthand.
 * _.findLastIndex(users, { 'user': 'barney', 'active': true });
 * // => 0
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findLastIndex(users, ['active', false]);
 * // => 2
 *
 * // The `_.property` iteratee shorthand.
 * _.findLastIndex(users, 'active');
 * // => 0
 */

/**
 * This method is like `_.findKey` except that it iterates over elements of
 * a collection in the opposite order.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Object
 * @param {Object} object The object to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {string|undefined} Returns the key of the matched element,
 *  else `undefined`.
 * @example
 *
 * var users = {
 *   'barney':  { 'age': 36, 'active': true },
 *   'fred':    { 'age': 40, 'active': false },
 *   'pebbles': { 'age': 1,  'active': true }
 * };
 *
 * _.findLastKey(users, function(o) { return o.age < 40; });
 * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
 *
 * // The `_.matches` iteratee shorthand.
 * _.findLastKey(users, { 'age': 36, 'active': true });
 * // => 'barney'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findLastKey(users, ['active', false]);
 * // => 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.findLastKey(users, 'active');
 * // => 'pebbles'
 */

/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */

/**
 * This method is like `_.find` except that it returns the key of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Object
 * @param {Object} object The object to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {string|undefined} Returns the key of the matched element,
 *  else `undefined`.
 * @example
 *
 * var users = {
 *   'barney':  { 'age': 36, 'active': true },
 *   'fred':    { 'age': 40, 'active': false },
 *   'pebbles': { 'age': 1,  'active': true }
 * };
 *
 * _.findKey(users, function(o) { return o.age < 40; });
 * // => 'barney' (iteration order is not guaranteed)
 *
 * // The `_.matches` iteratee shorthand.
 * _.findKey(users, { 'age': 1, 'active': true });
 * // => 'pebbles'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findKey(users, ['active', false]);
 * // => 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.findKey(users, 'active');
 * // => 'barney'
 */

/**
 * This method is like `_.flatMap` except that it recursively flattens the
 * mapped results up to `depth` times.
 *
 * @static
 * @memberOf _
 * @since 4.7.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @param {number} [depth=1] The maximum recursion depth.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * function duplicate(n) {
 *   return [[[n, n]]];
 * }
 *
 * _.flatMapDepth([1, 2], duplicate, 2);
 * // => [[1, 1], [2, 2]]
 */

/**
 * This method is like `_.flatMap` except that it recursively flattens the
 * mapped results.
 *
 * @static
 * @memberOf _
 * @since 4.7.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * function duplicate(n) {
 *   return [[[n, n]]];
 * }
 *
 * _.flatMapDeep([1, 2], duplicate);
 * // => [1, 1, 2, 2]
 */

/**
 * This method is like `_.forEach` except that it iterates over elements of
 * `collection` from right to left.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @alias eachRight
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 * @see _.forEach
 * @example
 *
 * _.forEachRight([1, 2], function(value) {
 *   console.log(value);
 * });
 * // => Logs `2` then `1`.
 */

/**
 * This method is like `_.forIn` except that it iterates over properties of
 * `object` in the opposite order.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forIn
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forInRight(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
 */

/**
 * This method is like `_.forOwn` except that it iterates over properties of
 * `object` in the opposite order.
 *
 * @static
 * @memberOf _
 * @since 2.0.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forOwn
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forOwnRight(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
 */

/**
 * This method is like `_.fromPairs` except that it accepts two arrays,
 * one of property identifiers and one of corresponding values.
 *
 * @static
 * @memberOf _
 * @since 0.4.0
 * @category Array
 * @param {Array} [props=[]] The property identifiers.
 * @param {Array} [values=[]] The property values.
 * @returns {Object} Returns the new object.
 * @example
 *
 * _.zipObject(['a', 'b'], [1, 2]);
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.get` except that if the resolved value is a
 * function it's invoked with the `this` binding of its parent object and
 * its result is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to resolve.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
 *
 * _.result(object, 'a[0].b.c1');
 * // => 3
 *
 * _.result(object, 'a[0].b.c2');
 * // => 4
 *
 * _.result(object, 'a[0].b.c3', 'default');
 * // => 'default'
 *
 * _.result(object, 'a[0].b.c3', _.constant('default'));
 * // => 'default'
 */

/**
 * This method is like `_.indexOf` except that it iterates over elements of
 * `array` from right to left.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} [fromIndex=array.length-1] The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 * @example
 *
 * _.lastIndexOf([1, 2, 1, 2], 2);
 * // => 3
 *
 * // Search from the `fromIndex`.
 * _.lastIndexOf([1, 2, 1, 2], 2, 2);
 * // => 1
 */

/**
 * This method is like `_.indexOf` except that it performs a binary
 * search on a sorted `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 * @example
 *
 * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
 * // => 1
 */

/**
 * This method is like `_.intersection` except that it accepts `iteratee`
 * which is invoked for each element of each `arrays` to generate the criterion
 * by which they're compared. The order and references of result values are
 * determined by the first array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of intersecting values.
 * @example
 *
 * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
 * // => [2.1]
 *
 * // The `_.property` iteratee shorthand.
 * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }]
 */

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */

/**
 * This method is like `_.isEqual` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with up to
 * six arguments: (objValue, othValue [, index|key, object, other, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * _.isEqualWith(array, other, customizer);
 * // => true
 */

/**
 * This method is like `_.isMatch` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with five
 * arguments: (objValue, srcValue, index|key, object, source).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, srcValue) {
 *   if (isGreeting(objValue) && isGreeting(srcValue)) {
 *     return true;
 *   }
 * }
 *
 * var object = { 'greeting': 'hello' };
 * var source = { 'greeting': 'hi' };
 *
 * _.isMatchWith(object, source, customizer);
 * // => true
 */

/**
 * This method is like `_.lastIndexOf` except that it performs a binary
 * search on a sorted `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 * @example
 *
 * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
 * // => 3
 */

/**
 * This method is like `_.max` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * the value is ranked. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {*} Returns the maximum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * _.maxBy(objects, function(o) { return o.n; });
 * // => { 'n': 2 }
 *
 * // The `_.property` iteratee shorthand.
 * _.maxBy(objects, 'n');
 * // => { 'n': 2 }
 */

/**
 * This method is like `_.mean` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the value to be averaged.
 * The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.7.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the mean.
 * @example
 *
 * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
 *
 * _.meanBy(objects, function(o) { return o.n; });
 * // => 5
 *
 * // The `_.property` iteratee shorthand.
 * _.meanBy(objects, 'n');
 * // => 5
 */

/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */

/**
 * This method is like `_.min` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * the value is ranked. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {*} Returns the minimum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * _.minBy(objects, function(o) { return o.n; });
 * // => { 'n': 1 }
 *
 * // The `_.property` iteratee shorthand.
 * _.minBy(objects, 'n');
 * // => { 'n': 1 }
 */

/**
 * This method is like `_.partial` except that partially applied arguments
 * are appended to the arguments it receives.
 *
 * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
 * builds, may be used as a placeholder for partially applied arguments.
 *
 * **Note:** This method doesn't set the "length" property of partially
 * applied functions.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Function
 * @param {Function} func The function to partially apply arguments to.
 * @param {...*} [partials] The arguments to be partially applied.
 * @returns {Function} Returns the new partially applied function.
 * @example
 *
 * function greet(greeting, name) {
 *   return greeting + ' ' + name;
 * }
 *
 * var greetFred = _.partialRight(greet, 'fred');
 * greetFred('hi');
 * // => 'hi fred'
 *
 * // Partially applied with placeholders.
 * var sayHelloTo = _.partialRight(greet, 'hello', _);
 * sayHelloTo('fred');
 * // => 'hello fred'
 */

/**
 * This method is like `_.pullAll` except that it accepts `comparator` which
 * is invoked to compare elements of `array` to `values`. The comparator is
 * invoked with two arguments: (arrVal, othVal).
 *
 * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 4.6.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
 *
 * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
 * console.log(array);
 * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
 */

/**
 * This method is like `_.pullAll` except that it accepts `iteratee` which is
 * invoked for each element of `array` and `values` to generate the criterion
 * by which they're compared. The iteratee is invoked with one argument: (value).
 *
 * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
 *
 * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
 * console.log(array);
 * // => [{ 'x': 2 }]
 */

/**
 * This method is like `_.pull` except that it accepts an array of values to remove.
 *
 * **Note:** Unlike `_.difference`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
 *
 * _.pullAll(array, ['a', 'c']);
 * console.log(array);
 * // => ['b', 'b']
 */

/**
 * This method is like `_.reduce` except that it iterates over elements of
 * `collection` from right to left.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @returns {*} Returns the accumulated value.
 * @see _.reduce
 * @example
 *
 * var array = [[0, 1], [2, 3], [4, 5]];
 *
 * _.reduceRight(array, function(flattened, other) {
 *   return flattened.concat(other);
 * }, []);
 * // => [4, 5, 2, 3, 0, 1]
 */

/**
 * This method is like `_.set` except that accepts `updater` to produce the
 * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
 * is invoked with one argument: (value).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.6.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {Function} updater The function to produce the updated value.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.update(object, 'a[0].b.c', function(n) { return n * n; });
 * console.log(object.a[0].b.c);
 * // => 9
 *
 * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
 * console.log(object.x[0].y.z);
 * // => 0
 */

/**
 * This method is like `_.set` except that it accepts `customizer` which is
 * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
 * path creation is handled by the method instead. The `customizer` is invoked
 * with three arguments: (nsValue, key, nsObject).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {};
 *
 * _.setWith(object, '[0][1]', 'a', Object);
 * // => { '0': { '1': 'a' } }
 */

/**
 * This method is like `_.sortBy` except that it allows specifying the sort
 * orders of the iteratees to sort by. If `orders` is unspecified, all values
 * are sorted in ascending order. Otherwise, specify an order of "desc" for
 * descending or "asc" for ascending sort order of corresponding values.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
 *  The iteratees to sort by.
 * @param {string[]} [orders] The sort orders of `iteratees`.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
 * @returns {Array} Returns the new sorted array.
 * @example
 *
 * var users = [
 *   { 'user': 'fred',   'age': 48 },
 *   { 'user': 'barney', 'age': 34 },
 *   { 'user': 'fred',   'age': 40 },
 *   { 'user': 'barney', 'age': 36 }
 * ];
 *
 * // Sort by `user` in ascending order and by `age` in descending order.
 * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
 * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
 */

/**
 * This method is like `_.sortedIndex` except that it accepts `iteratee`
 * which is invoked for `value` and each element of `array` to compute their
 * sort ranking. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * var objects = [{ 'x': 4 }, { 'x': 5 }];
 *
 * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
 * // => 0
 */

/**
 * This method is like `_.sortedIndex` except that it returns the highest
 * index at which `value` should be inserted into `array` in order to
 * maintain its sort order.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
 * // => 4
 */

/**
 * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
 * which is invoked for `value` and each element of `array` to compute their
 * sort ranking. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * var objects = [{ 'x': 4 }, { 'x': 5 }];
 *
 * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
 * // => 1
 *
 * // The `_.property` iteratee shorthand.
 * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
 * // => 1
 */

/**
 * This method is like `_.sum` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the value to be summed.
 * The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the sum.
 * @example
 *
 * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
 *
 * _.sumBy(objects, function(o) { return o.n; });
 * // => 20
 *
 * // The `_.property` iteratee shorthand.
 * _.sumBy(objects, 'n');
 * // => 20
 */

/**
 * This method is like `_.tap` except that it returns the result of `interceptor`.
 * The purpose of this method is to "pass thru" values replacing intermediate
 * results in a method chain sequence.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Seq
 * @param {*} value The value to provide to `interceptor`.
 * @param {Function} interceptor The function to invoke.
 * @returns {*} Returns the result of `interceptor`.
 * @example
 *
 * _('  abc  ')
 *  .chain()
 *  .trim()
 *  .thru(function(value) {
 *    return [value];
 *  })
 *  .value();
 * // => ['abc']
 */

/**
 * This method is like `_.union` except that it accepts `iteratee` which is
 * invoked for each element of each `arrays` to generate the criterion by
 * which uniqueness is computed. Result values are chosen from the first
 * array in which the value occurs. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of combined values.
 * @example
 *
 * _.unionBy([2.1], [1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */

/**
 * This method is like `_.uniqBy` except that it's designed and optimized
 * for sorted arrays.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
 * // => [1.1, 2.3]
 */

/**
 * This method is like `_.uniq` except that it accepts `comparator` which
 * is invoked to compare elements of `array`. The order of result values is
 * determined by the order they occur in the array.The comparator is invoked
 * with two arguments: (arrVal, othVal).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
 *
 * _.uniqWith(objects, _.isEqual);
 * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
 */

/**
 * This method is like `_.uniq` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * uniqueness is computed. The order of result values is determined by the
 * order they occur in the array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */

/**
 * This method is like `_.uniq` except that it's designed and optimized
 * for sorted arrays.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.sortedUniq([1, 1, 2]);
 * // => [1, 2]
 */

/**
 * This method is like `_.unzip` except that it accepts `iteratee` to specify
 * how regrouped values should be combined. The iteratee is invoked with the
 * elements of each group: (...group).
 *
 * @static
 * @memberOf _
 * @since 3.8.0
 * @category Array
 * @param {Array} array The array of grouped elements to process.
 * @param {Function} [iteratee=_.identity] The function to combine
 *  regrouped values.
 * @returns {Array} Returns the new array of regrouped elements.
 * @example
 *
 * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
 * // => [[1, 10, 100], [2, 20, 200]]
 *
 * _.unzipWith(zipped, _.add);
 * // => [3, 30, 300]
 */

/**
 * This method is like `_.update` except that it accepts `customizer` which is
 * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
 * path creation is handled by the method instead. The `customizer` is invoked
 * with three arguments: (nsValue, key, nsObject).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.6.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {Function} updater The function to produce the updated value.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {};
 *
 * _.updateWith(object, '[0][1]', _.constant('a'), Object);
 * // => { '0': { '1': 'a' } }
 */

/**
 * This method is like `_.xor` except that it accepts `iteratee` which is
 * invoked for each element of each `arrays` to generate the criterion by
 * which by which they're compared. The order of result values is determined
 * by the order they occur in the arrays. The iteratee is invoked with one
 * argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 * @example
 *
 * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
 * // => [1.2, 3.4]
 *
 * // The `_.property` iteratee shorthand.
 * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 2 }]
 */

/**
 * This method is like `_.zipObject` except that it supports property paths.
 *
 * @static
 * @memberOf _
 * @since 4.1.0
 * @category Array
 * @param {Array} [props=[]] The property identifiers.
 * @param {Array} [values=[]] The property values.
 * @returns {Object} Returns the new object.
 * @example
 *
 * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
 * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
 */

/**
 * This method is like `_.zip` except that it accepts `iteratee` to specify
 * how grouped values should be combined. The iteratee is invoked with the
 * elements of each group: (...group).
 *
 * @static
 * @memberOf _
 * @since 3.8.0
 * @category Array
 * @param {...Array} [arrays] The arrays to process.
 * @param {Function} [iteratee=_.identity] The function to combine
 *  grouped values.
 * @returns {Array} Returns the new array of grouped elements.
 * @example
 *
 * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
 *   return a + b + c;
 * });
 * // => [111, 222]
 */

/**
 * This method is like `_.zip` except that it accepts an array of grouped
 * elements and creates an array regrouping the elements to their pre-zip
 * configuration.
 *
 * @static
 * @memberOf _
 * @since 1.2.0
 * @category Array
 * @param {Array} array The array of grouped elements to process.
 * @returns {Array} Returns the new array of regrouped elements.
 * @example
 *
 * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
 * // => [['a', 1, true], ['b', 2, false]]
 *
 * _.unzip(zipped);
 * // => [['a', 'b'], [1, 2], [true, false]]
 */

/**
 * This method is the wrapper version of `_.reverse`.
 *
 * **Note:** This method mutates the wrapped array.
 *
 * @name reverse
 * @memberOf _
 * @since 0.1.0
 * @category Seq
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * var array = [1, 2, 3];
 *
 * _(array).reverse().value()
 * // => [3, 2, 1]
 *
 * console.log(array);
 * // => [3, 2, 1]
 */

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */

/**
 * This method returns `true`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `true`.
 * @example
 *
 * _.times(2, _.stubTrue);
 * // => [true, true]
 */

/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */

/**
 * This method returns a new empty object.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Object} Returns the new empty object.
 * @example
 *
 * var objects = _.times(2, _.stubObject);
 *
 * console.log(objects);
 * // => [{}, {}]
 *
 * console.log(objects[0] === objects[1]);
 * // => false
 */

/**
 * This method returns an empty string.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {string} Returns the empty string.
 * @example
 *
 * _.times(2, _.stubString);
 * // => ['', '']
 */

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */

/**
 * This node represents a general purpose MathML node of any type. The
 * constructor requires the type of node to create (for example, `"mo"` or
 * `"mspace"`, corresponding to `<mo>` and `<mspace>` tags).
 */

/**
 * This node represents a piece of text.
 */

/**
 * Toast
 * @apiName device.notification.toast
 * @supportVersion  pc: 2.5.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * Token.attrGet(name)
 *
 * Get the value of attribute `name`, or null if it does not exist.
 **/

/**
 * Token.attrIndex(name) -> Number
 *
 * Search attribute index by name.
 **/

/**
 * Token.attrJoin(name, value)
 *
 * Join value to existing attribute via space. Or create new attribute if not
 * exists. Useful to operate with token classes.
 **/

/**
 * Token.attrPush(attrData)
 *
 * Add `[ name, value ]` attribute to list. Init attrs if necessary
 **/

/**
 * Token.attrSet(name, value)
 *
 * Set `name` attribute to `value`. Override old value if exists.
 **/

/**
 * Transform a query string to an object.
 *
 * @param {Object} obj Object that should be transformed.
 * @param {String} prefix Optional prefix.
 * @returns {String}
 * @api public
 */

/**
 * Transform the properties back in to a valid and full URL string.
 *
 * @param {Function} stringify Optional query stringify function.
 * @returns {String} Compiled version of the URL.
 * @public
 */

/**
 * Truncates `string` if it's longer than the given maximum string length.
 * The last characters of the truncated string are replaced with the omission
 * string which defaults to "...".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to truncate.
 * @param {Object} [options={}] The options object.
 * @param {number} [options.length=30] The maximum string length.
 * @param {string} [options.omission='...'] The string to indicate text is omitted.
 * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
 * @returns {string} Returns the truncated string.
 * @example
 *
 * _.truncate('hi-diddly-ho there, neighborino');
 * // => 'hi-diddly-ho there, neighbo...'
 *
 * _.truncate('hi-diddly-ho there, neighborino', {
 *   'length': 24,
 *   'separator': ' '
 * });
 * // => 'hi-diddly-ho there,...'
 *
 * _.truncate('hi-diddly-ho there, neighborino', {
 *   'length': 24,
 *   'separator': /,? +/
 * });
 * // => 'hi-diddly-ho there...'
 *
 * _.truncate('hi-diddly-ho there, neighborino', {
 *   'omission': ' [...]'
 * });
 * // => 'hi-diddly-ho there, neig [...]'
 */

/**
 * Turns an object whose values are action creators, into an object with the
 * same keys, but with every function wrapped into a `dispatch` call so they
 * may be invoked directly. This is just a convenience method, as you can call
 * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
 *
 * For convenience, you can also pass an action creator as the first argument,
 * and get a dispatch wrapped function in return.
 *
 * @param {Function|Object} actionCreators An object whose values are action
 * creator functions. One handy way to obtain it is to use ES6 `import * as`
 * syntax. You may also pass a single function.
 *
 * @param {Function} dispatch The `dispatch` function available on your Redux
 * store.
 *
 * @returns {Function|Object} The object mimicking the original object, but with
 * every action creator wrapped into the `dispatch` call. If you passed a
 * function as `actionCreators`, the return value will also be a single
 * function.
 */

/**
 * Turns an object whose values are different reducer functions, into a single
 * reducer function. It will call every child reducer, and gather their results
 * into a single state object, whose keys correspond to the keys of the passed
 * reducer functions.
 *
 * @param {Object} reducers An object whose values correspond to different
 * reducer functions that need to be combined into one. One handy way to obtain
 * it is to use ES6 `import * as reducers` syntax. The reducers may never return
 * undefined for any action. Instead, they should return their initial state
 * if the state passed to them was undefined, and the current state for any
 * unrecognized action.
 *
 * @returns {Function} A reducer function that invokes every reducer inside the
 * passed object, and builds a state object with the same shape.
 */

/**
 * Updates wrapper `details` based on `bitmask` flags.
 *
 * @private
 * @returns {Array} details The details to modify.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Array} Returns `details`.
 */

/**
 * Use this to register only the HTML and MathML builders for a function (e.g.
 * if the function's ParseNode is generated in Parser.js rather than via a
 * stand-alone handler provided to `defineFunction`).
 */

/**
 * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
 * objects into destination objects that are passed thru.
 *
 * @private
 * @param {*} objValue The destination value.
 * @param {*} srcValue The source value.
 * @param {string} key The key of the property to merge.
 * @param {Object} object The parent object of `objValue`.
 * @param {Object} source The parent object of `srcValue`.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 * @returns {*} Returns the value to assign.
 */

/**
 * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
 * of source objects to the destination object for all destination properties
 * that resolve to `undefined`.
 *
 * @private
 * @param {*} objValue The destination value.
 * @param {*} srcValue The source value.
 * @param {string} key The key of the property to assign.
 * @param {Object} object The parent object of `objValue`.
 * @returns {*} Returns the value to assign.
 */

/**
 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
 * objects.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {string} key The key of the property to inspect.
 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
 */

/**
 * Used by `_.orderBy` to compare multiple properties of a value to another
 * and stable sort them.
 *
 * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
 * specify an order of "desc" for descending or "asc" for ascending sort order
 * of corresponding values.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {boolean[]|string[]} orders The order to sort by for each property.
 * @returns {number} Returns the sort order indicator for `object`.
 */

/**
 * Used by `_.template` to escape characters for inclusion in compiled string literals.
 *
 * @private
 * @param {string} chr The matched character to escape.
 * @returns {string} Returns the escaped character.
 */

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
 * that is not found in the character symbols.
 *
 * @private
 * @param {Array} strSymbols The string symbols to inspect.
 * @param {Array} chrSymbols The character symbols to find.
 * @returns {number} Returns the index of the last unmatched string symbol.
 */

/**
 * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
 * that is not found in the character symbols.
 *
 * @private
 * @param {Array} strSymbols The string symbols to inspect.
 * @param {Array} chrSymbols The character symbols to find.
 * @returns {number} Returns the index of the first unmatched string symbol.
 */

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */

/**
 * Uses a binary search to determine the lowest index at which `value`
 * should be inserted into `array` in order to maintain its sort order.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * _.sortedIndex([30, 50], 40);
 * // => 1
 */

/**
 * Utils.
 */

/**
 * Void 类型的 Mark 渲染
 */

/**
 * WARN: Sometimes request idle callback in Safari will never be called!
 */

/**
 * We use `async-validator` to validate the value.
 * But only check one value in a time to avoid namePath validate issue.
 */

/**
 * When click and hold on a button - the speed of auto changin the value.
 */

/**
 * When you're adding or removing children some may be added or removed in the
 * same render pass. We want to show *both* since we want to simultaneously
 * animate elements in and out. This function takes a previous set of keys
 * and a new set of keys and merges them with its best guess of the correct
 * ordering. In the future we may expose some of the utilities in
 * ReactMultiChild to make this easy, but for now React itself does not
 * directly have this concept of the union of prevChildren and nextChildren
 * so we implement it here.
 *
 * @param {object} prev prev children as returned from
 * `ReactTransitionChildMapping.getChildMapping()`.
 * @param {object} next next children as returned from
 * `ReactTransitionChildMapping.getChildMapping()`.
 * @return {object} a key set that contains all keys in `prev` and all keys
 * in `next` in a reasonable order.
 */

/**
 * any texts to hash string. ie: duoyu -> f0a038fb
 *
 * return: hex string (length: 1 - 8)
 */

/**
 * cangjie key 生成逻辑，默认从 0 开始递增。
 *
 * key 在多版本、多实例 cangjie 嵌套时，保持全局唯一
 */

/**
 * cangjie-content 和 document 的 rect 不同步。
 *
 * 由于计算是基于 document、渲染是在 content 里面，这里设置一下差值。
 */

/**
 * class LinkifyIt
 **/

/**
 * class MarkdownIt
 *
 * Main parser/renderer class.
 *
 * ##### Usage
 *
 * ```javascript
 * // node.js, "classic" way:
 * var MarkdownIt = require('markdown-it'),
 *     md = new MarkdownIt();
 * var result = md.render('# markdown-it rulezz!');
 *
 * // node.js, the same, but with sugar:
 * var md = require('markdown-it')();
 * var result = md.render('# markdown-it rulezz!');
 *
 * // browser without AMD, added to "window" on script load
 * // Note, there are no dash.
 * var md = window.markdownit();
 * var result = md.render('# markdown-it rulezz!');
 * ```
 *
 * Single line rendering, without paragraph wrap:
 *
 * ```javascript
 * var md = require('markdown-it')();
 * var result = md.renderInline('__markdown-it__ rulezz!');
 * ```
 **/

/**
 * class Match
 *
 * Match result. Single element of array, returned by [[LinkifyIt#match]]
 **/

/**
 * class Renderer
 *
 * Generates HTML from parsed token stream. Each instance has independent
 * copy of rules. Those can be rewritten with ease. Also, you can add new
 * rules if you create plugin and adds new token types.
 **/

/**
 * class Ruler
 *
 * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
 * [[MarkdownIt#inline]] to manage sequences of functions (rules):
 *
 * - keep rules in defined order
 * - assign the name to each rule
 * - enable/disable rules
 * - add/replace rules
 * - allow assign rules to additional named chains (in the same)
 * - cacheing lists of active rules
 *
 * You will not need use this class directly until write plugins. For simple
 * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
 * [[MarkdownIt.use]].
 **/

/**
 * class Token
 **/

/**
 * diff比较（严格：顺序改变算diff）
 * @param element
 * @param prevElement
 * @param curIndexKey
 * @param preIndexKey
 * @deprecated
 */

/**
 * dom node
 */

/**
 * extra space added to the domNode's edge
 */

/**
 * findDOM without throw error
 */

/**
 * flush 最大等待时间（100ms 是为了保证常规情况下反馈不会过长，同时大文档在连续情况下每隔 100ms 做一次渲染也能保障流畅度）
 * @description 浏览器的调度有时候会将线程长时间闲置，导致 flush 延迟过高
 * @example 一个典型的例子是当滚动区域触发一个滑动后，光标的再次点击，使浏览器的线程调度闲置（具体原因还在研究中）
 */

/**
 * imgType: icon类型
 * type: 服务台/文档/链接
 * text: 展示的文字
 */

/**
 * inlined version of
 * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
 */

/**
 * new Core()
 **/

/**
 * new LinkifyIt(schemas, options)
 * - schemas (Object): Optional. Additional schemas to validate (prefix/validator)
 * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
 *
 * Creates new linkifier instance with optional additional schemas.
 * Can be called without `new` keyword for convenience.
 *
 * By default understands:
 *
 * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
 * - "fuzzy" links and emails (example.com, foo@bar.com).
 *
 * `schemas` is an object, where each key/value describes protocol/rule:
 *
 * - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
 *   for example). `linkify-it` makes shure that prefix is not preceeded with
 *   alphanumeric char and symbols. Only whitespaces and punctuation allowed.
 * - __value__ - rule to check tail after link prefix
 *   - _String_ - just alias to existing rule
 *   - _Object_
 *     - _validate_ - validator function (should return matched length on success),
 *       or `RegExp`.
 *     - _normalize_ - optional function to normalize text & url of matched result
 *       (for example, for @twitter mentions).
 *
 * `options`:
 *
 * - __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.
 * - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
 *   like version numbers. Default `false`.
 * - __fuzzyEmail__ - recognize emails without `mailto:` prefix.
 *
 **/

/**
 * new MarkdownIt([presetName, options])
 * - presetName (String): optional, `commonmark` / `zero`
 * - options (Object)
 *
 * Creates parser instanse with given config. Can be called without `new`.
 *
 * ##### presetName
 *
 * MarkdownIt provides named presets as a convenience to quickly
 * enable/disable active syntax rules and options for common use cases.
 *
 * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.js) -
 *   configures parser to strict [CommonMark](http://commonmark.org/) mode.
 * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.js) -
 *   similar to GFM, used when no preset name given. Enables all available rules,
 *   but still without html, typographer & autolinker.
 * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.js) -
 *   all rules disabled. Useful to quickly setup your config via `.enable()`.
 *   For example, when you need only `bold` and `italic` markup and nothing else.
 *
 * ##### options:
 *
 * - __html__ - `false`. Set `true` to enable HTML tags in source. Be careful!
 *   That's not safe! You may need external sanitizer to protect output from XSS.
 *   It's better to extend features via plugins, instead of enabling HTML.
 * - __xhtmlOut__ - `false`. Set `true` to add '/' when closing single tags
 *   (`<br />`). This is needed only for full CommonMark compatibility. In real
 *   world you will need HTML output.
 * - __breaks__ - `false`. Set `true` to convert `\n` in paragraphs into `<br>`.
 * - __langPrefix__ - `language-`. CSS language class prefix for fenced blocks.
 *   Can be useful for external highlighters.
 * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.
 * - __typographer__  - `false`. Set `true` to enable [some language-neutral
 *   replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js) +
 *   quotes beautification (smartquotes).
 * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement
 *   pairs, when typographer enabled and smartquotes on. For example, you can
 *   use `'«»„“'` for Russian, `'„“‚‘'` for German, and
 *   `['«\xA0', '\xA0»', '‹\xA0', '\xA0›']` for French (including nbsp).
 * - __highlight__ - `null`. Highlighter function for fenced code blocks.
 *   Highlighter `function (str, lang)` should return escaped HTML. It can also
 *   return empty string if the source was not changed and should be escaped
 *   externaly. If result starts with <pre... internal wrapper is skipped.
 *
 * ##### Example
 *
 * ```javascript
 * // commonmark mode
 * var md = require('markdown-it')('commonmark');
 *
 * // default mode
 * var md = require('markdown-it')();
 *
 * // enable everything
 * var md = require('markdown-it')({
 *   html: true,
 *   linkify: true,
 *   typographer: true
 * });
 * ```
 *
 * ##### Syntax highlighting
 *
 * ```js
 * var hljs = require('highlight.js') // https://highlightjs.org/
 *
 * var md = require('markdown-it')({
 *   highlight: function (str, lang) {
 *     if (lang && hljs.getLanguage(lang)) {
 *       try {
 *         return hljs.highlight(str, { language: lang, ignoreIllegals: true }).value;
 *       } catch (__) {}
 *     }
 *
 *     return ''; // use external default escaping
 *   }
 * });
 * ```
 *
 * Or with full wrapper override (if you need assign class to `<pre>`):
 *
 * ```javascript
 * var hljs = require('highlight.js') // https://highlightjs.org/
 *
 * // Actual default values
 * var md = require('markdown-it')({
 *   highlight: function (str, lang) {
 *     if (lang && hljs.getLanguage(lang)) {
 *       try {
 *         return '<pre class="hljs"><code>' +
 *                hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
 *                '</code></pre>';
 *       } catch (__) {}
 *     }
 *
 *     return '<pre class="hljs"><code>' + md.utils.escapeHtml(str) + '</code></pre>';
 *   }
 * });
 * ```
 *
 **/

/**
 * new ParserBlock()
 **/

/**
 * new ParserInline()
 **/

/**
 * new Renderer()
 *
 * Creates new [[Renderer]] instance and fill [[Renderer#rules]] with defaults.
 **/

/**
 * new Ruler()
 **/

/**
 * new Token(type, tag, nesting)
 *
 * Create new token and fill passed properties.
 **/

/**
 * normalize 打平段落嵌套段落的数据结构
 * @param fragment
 */

/**
 * normalize 末尾断行
 * @param fragment
 */

/**
 * normalize 表格的数据
 * @param table
 */

/**
 * op取反
 *
 * move_node 路径矫正说明：
 *
 * Given the document tree:
 * ```txt
 *         []
 *        / \
 *     [0]   [1]
 *            |
 *          [1,0]
 *            |
 *         [1,0,0]
 *         __/ \__
 * [1,0,0,0]      [1,0,0,1]
 * ```
 * case one:
 * ```ts
 * op.path = [0]
 * op.newPath = [1,0,0,1]
 * Path.isYounger([0], [1,0,0,1])   // true
 * // when path is been moved, the new path should decrement
 * Path.decrement([1,0,0,1], 1, 0) // [0,0,0,1]
 * // final inverted op: [0,0,0,1] -> [0]
 * ```
 * case two:
 * ```ts
 * op.path = [1,0,0,1]
 * op.newPath = [1]
 * Path.isAncestor([1], [1,0,0,1])   // true
 * // when move node to it's ancestor, the new path should increment
 * Path.increment([1,0,0,1], 1, 0) // [2,0,0,1]
 * // final inverted op: [2,0,0,1] -> [1]
 * ```
 */

/**
 * paragraph 中可能会存在 list 节点
 * @param node
 */

/**
 * rgba 字符串转为 rgba 数组。
 * 'rgba(0,0,0,0.88)' => [0,0,0,0.88]
 * 'RGB(0,0,0)' => [0,0,0,1]
 */

/**
 * target 是否一个 Input 或者 TextArea
 */

/**
 * unicode映射表
 * ● -> \u25cf
 * ○ -> \u25cb
 * ■ -> \u25a0
 * ❖ -> \u2756
 * ❏ -> \u274f
 * ➔ -> \u2794
 * ◆  -> \u25c6
 * ★ -> \u2605
 * ➢ -> \u27a2
 * -  -> \u2012
 * +  ->  +
 * */

/**
 * useSingleton
 */

/**
 * when origin >= target ,return true
 * 关于为什么没有跟otherApi保持一致，主要是当初因为otherApi里的方法是复制旧版jsapi的，有一定缺陷
 * 但是担心线上环境利用了缺陷来做逻辑，所以没有保持一致使用同一个方法
 * TODO: 但其实另起方法太冗余，以及丑陋，后续还是需要整个统一掉
 * @param origin
 * @param target
 */

/**
 * which edge should be visible.
 * options: start edge | end edge | all edges
 */

/**
 * win: MS Gothic 等非衬线体
 * mac: Arial
 */

/**
 * 一般 K/V Cache 类型
 */

/**
 * 一般使用的有两种空白符，空格敲击的空白符（Simple space）码点是 32，Non-breaking space 的码点是 160
 * 在 Word 的规范中，32 码点的字符会被裁剪掉，160 码点会保留，裁剪规则如下：
 * - 文字头端的所有连续 32 码点空白符会被全部裁剪（同时也包括了 \n 符号）；
 * - 文字中端和尾端的所有连续 32 码点空白符会合并（Collapse）成一个空白符；
 * @see https://stackoverflow.com/questions/11984029/difference-between-32-and-nbsp
 */

/**
 * 中文四大字体通用降级策略
 */

/**
 * 从 cangjie-leaf 中获取 rects
 */

/**
 * 从 fragment 中把 single paragraph 解构出来
 * @param fragment
 */

/**
 * 从 fragment 中把 single tableCell 解构出来
 * @param fragment
 */

/**
 * 从html解析行高并强制转换为接近的行高（倍数）
 * 支持 2、200%、20px等
 * 策略：尽量靠近原格式视觉
 * @param value
 * @param fontSize
 */

/**
 * 从mark中获取sz
 * @param mark
 */

/**
 * 从所有当前选区的位置，往前删除1个文字（大多情况下，1个文字等于1个offset，但是1个emoji可能对应多个offset）
 */

/**
 * 从所有当前选区的位置，往前删除1个词
 */

/**
 * 从所有当前选区的位置，往前删除1行文字
 */

/**
 * 从所有当前选区的位置，往前删除n个offset
 */

/**
 * 从所有当前选区的位置，往后删除1个文字（大多情况下，1个文字等于1个offset，但是1个emoji可能对应多个offset）
 */

/**
 * 从所有当前选区的位置，往后删除1个词
 */

/**
 * 从所有当前选区的位置，往后删除1行文字
 */

/**
 * 从所有当前选区的位置，往后删除n个offset
 */

/**
 * 从节点数据解析 spacing
 * before 和 after 会被转换为 px 单位（与存量 asl 一致）
 * line 则转换为：
 * px 单位（lineRule !== auto）
 * 倍数 单位（lineRule === auto）
 * @param paragraph 块级元素
 * @param inheritedData 继承值
 * @param linePitch docGrid.linePitch pt 单位
 * @returns SpacingProperties
 */

/**
 * 从默认的行高列表中找出最接近的行高
 */

/**
 * 修补 table cell 的数据格式
 * @param table
 */

/**
 * 光标位置处理。由于 void 节点内的光标无法定位，尝试获取前一个位置
 */

/**
 * 兼容 鼠标 + 触屏 场景
 *
 * 背景：
 * touch 事件会触发 onTouchStart 和 onMouseDown
 * mouse 事件会触发 onMouseDown
 *
 * 方案：
 * touch 事件，touchCount 值重置为 2
 * mouse 事件，touchCount 值减 1
 *
 * 结果：
 * 用户使用了 mouse：touchCount <= 0
 * 用户使用了 touch：touchCount === 1
 */

/**
 * 决议能够使用的 flushType
 * @param flushType 需要的 flushType
 */

/**
 * 创建一个字典对象
 * @param obj
 * @description 字典对象不具有 object 原型方法，这里主要处理一些特殊的保留字处理问题
 * @fix https://work.aone.alibaba-inc.com/issue/31901608
 */

/**
 * 创建自定义插件。传入自定义的插件 Map，返回一个插件创建函数（createMoPlugins）。
 * 传入内容格式：{ PluginName: PluginFactory }
 */

/**
 * 创建自定义插件。传入自定义的插件 Map，返回一个插件创建函数（createZhiPlugins）。
 * 传入内容格式：{ PluginName: PluginFactory }
 */

/**
 * 初始化jsapi集合，通过包装能做到
 * - 如果是在iframe中，就从顶层窗口去取api
 * - 保留api原来的类型
 */

/**
 * 删除 Selection 内的所有内容
 */

/**
 * 删除当前Selection内的所有内容
 * 1. 将选区开头的样式设置到 selection.marks 中
 */

/**
 * 删除指定位置的Node，并添加到parentPath的第index处
 * 1. 如果传入无效的节点，会抛异常。
 */

/**
 * 删除指定位置的文字。
 * 1. 如果传入无效的节点，会抛异常。
 * @text 删除的文字；如果长度大于可用长度，按照可用长度计算
 */

/**
 * 删除指定位置的文字。
 * 1. 如果传入无效的节点，会抛异常。
 */

/**
 * 删除指定位置的节点。
 * 1. 如果传入无效的节点，会抛异常。
 */

/**
 * 删除选区的内容；返回一个拷贝选区，并定位到原选区的start位置
 */

/**
 * 判断当前列表是否开启折叠模式
 * @param
 */

/**
 * 判断是否为 listGroup 中的折叠节点
 * @param
 */

/**
 * 判断是否为 listGroup 中的普通节点
 * @param
 */

/**
 * 判断是否为 嵌套的 listGroup 中第一个折叠节点
 */

/**
 * 判断是否是折叠标题类型
 * @param type
 * @returns
 */

/**
 * 判断节点是否在 listGroup 中
 * @param
 */

/**
 * 判断节点是否是标题组
 * @param node
 * @returns
 */

/**
 * 判断节点是否是空节点
 * @param node
 * @returns
 */

/**
 * 判断节点是否是议题标题
 * @param node
 * @returns
 */

/**
 * 判断节点是否是议题组
 */

/**
 * 剪切板事件
 */

/**
 * 剪切板实例缓存缓存
 */

/**
 * 单个工具栏组件配置
 */

/**
 * 可选的序列化创建选项，目前仅用于指定编辑器插件。
 * 如果不提供的话，默认使用编辑器内置的插件集合（createMoPlugins）。
 */

/**
 * 右侧悬浮 Icon
 */

/**
 * 右侧悬浮 Icon - 添加评论
 */

/**
 * 在 EdgePoint 的 before 或者 after 位置，插入一个空白的段落。
 */

/**
 * 在 ref 上层对应的 leaf block 尺寸变动时，调用 updator。内置了 throttle。
 */

/**
 * 在 ref 尺寸变动时，调用 updator
 */

/**
 * 在range的公共父节点上插入block，然后把range对应的nodes都转到block中
 */

/**
 * 在当前插入一个fragment
 * 1. 内部会处理插入点、插入后的光标行为，以符合用户直觉
 */

/**
 * 在当前的选区内，toggleMark
 * 1. 如果选区是expand，会设置到当前选中内容
 * 2. 如果选区是collapse，会设置到当前的selection
 */

/**
 * 在当前的选区内，删除mark
 * 1. 如果选区是expand，会设删除当前选中内容的mark
 * 2. 如果选区是collapse，会删除当前的selection的mark
 */

/**
 * 在当前选区位置，插入一个block。
 * 1. 如果当前选区是expand，会先执行删除选区操作。
 * 2. 如果start节点在开始/结束位置，或者start节点是个空block，则直接插入；否则先split，后插入
 * @blockProps block或者block参数，会传递给Block.create来创建一个block
 */

/**
 * 在当前选区位置，插入一个inline。
 * 1. 如果当前选区是expand，会先执行删除选区操作。
 */

/**
 * 在当前选区插入一段文字，并附带marks。
 * 1. marks：会从参数里获取；如果参数没有提供，会尝试从当前selection获取；如果依然没有，就从当前的插入位置获取
 */

/**
 * 在当前选区的start和end位置，插入一些文字，并更新选区位置。
 * 1. 不区分range是否是collapse
 */

/**
 * 在当前选区，添加mark
 * 1. 如果选区是expand，会设置当前选中内容的mark
 * 2. 如果选区是collapse，会把m和当前的选区的marks，一起合并到当前selection内
 */

/**
 * 在当前选区，添加marks
 * 1. 如果选区是expand，会设置当前选中内容的marks
 * 2. 如果选区是collapse，会把marks和当前的选区的marks，一起合并到当前selection内
 */

/**
 * 在指定selection上，进行往前删除。
 * @range 如果是expand选区，会删除选区内的内容，并忽略掉后续参数；否则从anchor点往前计算n个unit进行删除
 */

/**
 * 在指定selection上，进行往后删除。
 * @range 如果是expand选区，会删除选区内的内容，并忽略掉后续参数；否则从anchor点往后计算n个unit进行删除
 */

/**
 * 在指定位置，插入一个node
 * @key 插入目标节点
 * @index 插入后在目标节点的顺序
 */

/**
 * 在指定位置，插入一个node
 * @path 插入目标节点
 * @index 插入后在目标节点的顺序
 */

/**
 * 在指定的位置上，替换node
 */

/**
 * 在指定的位置上，替换文本，并附加marks
 * 1. 提过oldText长度大于可用长度，按照可用长度计算
 */

/**
 * 在指定的选区内，toggleMark
 * 1. 如果选区是collapse，什么都不做
 */

/**
 * 在指定的选区内，删除mark
 * 1. 如果选区是collapse，什么都不做
 */

/**
 * 在指定的选区插入一个fragment
 * 1. fragment必须包含有效的无冲突的key
 */

/**
 * 在指定的选区插入一个fragment
 * 1. 如果选区是expand，会先删除选区
 */

/**
 * 在指定的选区的start位置，插入一个block。
 * 1. 如果start节点在开始/结束位置，或者start节点是个空block，则直接插入；否则先split，后插入
 */

/**
 * 在新行中，过滤掉评论标记。
 *
 * 目前 mark 和底层耦合很深，无法在新行、输入时，过滤掉 mark。这里在插件手动过滤。
 */

/**
 * 在目标位置插入一个fragment
 * 1. 内部遍历fragment的每一个node，然后调用Commands.insertNode
 * 2. 如果针对复制粘贴等上层场景，需要考虑key重新生成等逻辑，请使用Commands.insertFragment
 */

/**
 * 在目标位置插入一段文字，并附带marks。
 * 1. 目标位置需要对应一个Text节点，否则会抛出异常
 * 2. marks：会从参数里获取；如果参数没有提供，会尝试从当前的插入位置获取
 */

/**
 * 在编辑形态下，如果 title、desc、imgURL 都为 undefined，则说明请求失败，需要显示 error
 * 如果存在 injection 数据，说明是 loading 状态
 * @param readonly
 * @param title
 * @param desc
 * @param imgURL
 */

/**
 * 在选区的start和end位置，插入一些文字
 * 1. 不区分range是否是collapse
 * 2. 此方法不会更新选区位置
 */

/**
 * 处理每一个 node，如果某一个 node 是 TableCell，就换成它的 children
 */

/**
 * 字体信息
 */

/**
 * 字符集（部分来源于统计）
 */

/**
 * 字重
 * https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping
 * ```
 * 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950
 * ```
 */

/**
 * 定义 auto 的 spacing（用于普通段落和标题）
 * 相比 word（上 5pt，下 10pt）会稍微紧凑一点
 */

/**
 * 对 fragment 进行 data inject
 * 目前主要处理的场景是 list 的 injection data，有序列表的符号需要通过 injection 来计算
 * @param value
 */

/**
 * 对一个text节点的一部分文字，增加mark
 * 1. 如果目标无效，或者不是一个text，则什么都不做
 */

/**
 * 对指定的节点，删除mark
 * 1. 如果指定的节点无效，会抛异常
 */

/**
 * 对指定的节点，替换或者添加mark
 * 1. 如果指定的节点无效，会抛异常
 */

/**
 * 对指定的选区内，增加mark
 * 1. 如果选区是collapse，则什么都不做
 */

/**
 * 对指定的选区内，增加marks
 * 1. 如果选区是collapse，则什么都不做
 */

/**
 * 对比两个 Point 在 document 的出现位置
 */

/**
 * 对目标节点进行拆分
 * @position 拆分位置。如果是text节点，代表文字的偏移量；如果是element节点，代表子节点index。
 */

/**
 * 将 px 单位的行距转换为倍数
 * @param times
 * @returns
 */

/**
 * 将 table ASL 序列化成输出格式，方便做矩阵算法
 * @param table
 */

/**
 * 将em、%和纯数字转换为绝对值
 * 策略：以默认的字号为基础计算 @word
 * @param value
 * @param unitTo value 要转换成为的单位
 * @param unitFrom 传入 value 的单位
 */

/**
 * 将倍数的行距转换为 px
 * 倍数在导入时会被：
 * 原始数据：480，代表24pt
 * 480 / 240 = 2，变为倍数（实际上应该除以 20 转换为 pt，都是为了兼容老数据）
 * 所以：
 * px = times * 12 * 4 / 3
 */

/**
 * 将支持的任意单位转换为指定绝对单位
 * 支持px等绝对单位，以及em、%、数字等相对单位
 * @param unitTo
 * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#Lengths
 */

/**
 * 将节点的 spacing 数据转换为 css 样式
 * 优先走 userSet to actualSet 隐射表，否则按照 * 1.7 计算行高
 */

/**
 * 将行单位转换为 px 单位
 * @param lines
 * @param linePitch 网格系统相关参数
 * @returns
 */

/**
 * 将表格矩阵还原为 ASL
 * @param tableStructure
 */

/**
 * 工具栏按钮布局枚举
 */

/**
 * 序列化工具，仅适用于 jsonMLToValue 与 valueToJsonML
 */

/**
 * 弹窗alert
 * @apiName device.notification.alert
 * @supportVersion  pc: 2.5.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 弹窗confirm
 * @apiName device.notification.confirm
 * @supportVersion  pc: 2.5.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 当前 block 是否包含文字或者其它 inline 内容
 */

/**
 * 当前的剪切事件
 * @description 我们假设同一次剪切板时间只能被一个编辑器实例消费，所以目前可能存在的情况是 ClipboardPad 是多实例，但是
 * 读取到的 ClipboardData 是单实例的。
 * TODO: 后续需要考虑在 Plugin 层如何设计一个多实例的配置
 */

/**
 * 情况一：startAncestor, endAncestor 为相同节点
 * startAncestor/endAncestor/commonPath
 *                / \
 *               /   \
 *             void  block
 *                     /\
 *                    /  \
 *                 leaf  leaf
 *
 * 情况二：startAncestor, endAncestor 为兄弟节点
 *             commonPath
 *             /    |    \
 *            /     |     \
 *  startAncestor  ...  endAncestor
 *     / \               /    \
 *    /   \             /      \
 * void    block      block     block
 *          /\         /\        /\
 *         /  \       /  \      /  \
 *      leaf  leaf leaf  leaf leaf leaf
 * (startPath)              (endPath)
 *
 * 情况三：startAncestor, endAncestor 为兄弟节点，且 startPath = startAncestor or endPath = endAncestor
 *             commonPath
 *             /    |    \
 *            /     |     \
 *  startAncestor  ...  endAncestor
 * (startPath/void)       /    \
 *                       /      \
 *                     block     block
 *                      / \       / \
 *                     /   \     /   \
 *                   leaf  leaf leaf leaf
 *                                 (endPath)
 */

/**
 * 把当前选区wrap一个inline
 * 1. 如果range是collapse，则把对应节点的最近void inline节点进行wrap；
 * 如果没有最近的void inline，则什么都不做
 * 2. 如果选区里有block，会在每个block内部进行wrap inline操作
 */

/**
 * 把目标 path 的 Node，合并到其上一个 Sibling 上。
 * 1. 必须满足 Node 和上一个 Sibling 是同一种类型。
 * 2. 如果没有上一个 Sibling，直接抛异常。
 */

/**
 * 把目标节点插入到一个新的block节点中，并把block放到原来的节点的位置
 */

/**
 * 把目标节点插入到一个新的inline节点中，并把inline放到原来的节点的位置
 */

/**
 * 探测当前的容器是否支持 paste command
 */

/**
 * 效验一个值是否符合数字规范
 * @param num 效验值
 * @see https://stackoverflow.com/questions/175739/built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number
 * @description 注意一下 lodash 的 isNaN 和浏览器 API 有点不同，12px 这个值在 lodash 中会认为不是 NaN
 */

/**
 * 效验是否是 css border style
 * @param str
 */

/**
 * 效验是否服务 css width 值标准
 * @param str
 */

/**
 * 效验是否符合 css 长度单位标准
 * @param str
 */

/**
 * 数据写入系统剪切板
 * @param event
 * @param data
 * @param callback
 */

/**
 * 新开页面/在新窗口上打开链接
 * @apiName biz.util.openLink
 * @supportVersion  pc: 2.7.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 无序命名规则
 * 例：SCIR_ECIR_SREC, 形状 + 形状 + 形状
 *
 * 首字母：
 * S -> solid (■)
 * E -> empty (❏)
 *
 * 形状：
 * ● -> CIR -> circle
 * ❏ -> REC -> rect
 * ❖ -> FDI -> four diomand
 * ◆ -> DIO -> diomand
 * ➔ -> ARR -> arrow
 * ➢ -> RIG -> right
 * */

/**
 * 是否 Event 不需要被拦截
 * @param target
 */

/**
 * 是否为连续输入
 * @param params
 * @returns
 */

/**
 * 有序命名规则
 * 例： DEC_LEN_LROM_P ，符号类型 + 符号类型 + 符号类型 + 首个符号格式
 *
 * 符号类型：
 * DEC -> decimal
 * DDEC -> decimalZero
 * LEN -> lowerLetter
 * UEN -> upperLetter
 * LROM -> lowerRoman
 * UROM -> upperRoman
 * ZH -> chineseCountingThousand
 *
 * 符号格式：
 * P（point) -> xxx.
 * H（half)  -> xxx)
 * A（all)   -> (xxx)
 * D (don)   -> xxx、
 * */

/**
 * 查找 node 节点下 first/last 的 Text 节点
 * @param node 查找的节点
 * @param order 遍历的顺序 pre-前序遍历 post-后序遍历
 */

/**
 * 查找归属于特定 data-cangjie-key 的容器 DOM 节点内的选区根节点
 * @param containerKey 指定容器 key
 * @returns
 */

/**
 * 查找指定节点下的选区容器
 * @param root 查询的根节点
 * @param layerFor 查找的指定容器的 selection-layer，若为空则不指定具体值
 */

/**
 * 查询节点所在的议题节点
 * @param controller
 * @param node
 * @returns
 */

/**
 * 查询节点是否在非 listGroup 的容器节点中
 * 容器节点，如 表格、高亮块等
 */

/**
 * 查询节点的父级标题
 * @param controller
 * @param node
 * @returns
 */

/**
 * 查询节点的祖先标题组
 * @param controller
 * @param node
 * @returns
 */

/**
 * 查询议题是否包含聚合子节点
 * @param controller
 * @param node
 */

/**
 * 查询议题的末尾节点
 * @param controller
 * @param node
 * @returns
 */

/**
 * 标记表格矩阵的隐藏单元格
 * @param matrix 表格矩阵
 * @param param1 起止坐标
 * @param param2 扩展跨度
 */

/**
 * 标题加线组件
 */

/**
 * 样式 context
 */

/**
 * 根据 Point 来获取浏览器的 HTML 节点、offset。
 */

/**
 * 根据 doc key 设置应用块加载态
 * @param controller
 * @param docKey
 * @param data
 * @param overwrite
 */

/**
 * 根据 key 获取 document 下面的一级节点
 */

/**
 * 根据 top 坐标，获取对应的分行（row）
 */

/**
 * 根据一个 point，获取对应的分行（row）、相对于 document 的 offsetTop
 */

/**
 * 根据仓颉的 RangeSelection 获取浏览器的 Range。
 */

/**
 * 根据列表 id 获取列表序号
 * @param root parent blocks
 * @param id 列表 id
 */

/**
 * 根据浏览器的 HTML Element 获取仓颉的 Node。
 */

/**
 * 根据浏览器的 Range 获取仓颉的 Selection
 */

/**
 * 根据浏览器的节点和位置获取仓颉对应的 Point。
 */

/**
 * 根据用户的 click 或 touch 事件获取仓颉的 Selection
 */

/**
 * 根据背景色，获取光标的颜色。
 */

/**
 * 根据节点 key 设置引用块加载态
 * @param controller
 * @param key
 * @param data
 * @param overwrite
 * @returns
 */

/**
 * 根据鼠标移动事件查找文档 key
 * 策略：一直查找到文档内容根节点或 body/html
 * 优先使用支持边缘选区的节点
 * 其次使用 列表/leafBlock 节点
 * @param event
 * @param container
 */

/**
 * 检查 JSAPI 是否存在与客户端（仅支持移动端）
 * @param {{ jsApiList: string[]}} params
 * @returns
 */

/**
 * 检测 fragment 是否仅包含一个 tableCell
 * @param fragment
 */

/**
 * 检测 fragment 是否仅包含一个 普通段落或标题
 * section可以看作paragraph、heading的超集
 * @param fragment
 */

/**
 * 检测节点是否是某个类型的 group
 * @param node
 * @param type
 * @returns
 */

/**
 * 每个svg图形只承载了最小可重复单元，通过重复迭代生成线
 * 根据总宽度和项目宽度，生成一个最小重复迭代的key值列表
 * @param {number} totalWidth 线条的总宽度
 * @param {number} unitWidth svg item的宽度
 */

/**
 * 每次获取缓存之前，先清理一遍失效的缓存，针对的场景：
 * 1. document dom 的宽度变了
 * 2. 某一个节点变化了
 */

/**
 * 注入一组 Injection 至一组节点组中
 * @param injections
 * @param nodes
 * @returns
 */

/**
 * 测试一个值是否是绝对单位
 * @param value
 */

/**
 * 浮点数匹配处理
 * @param num1 比较的数字1
 * @param num2 比较的数字2
 * @param accuracy 两个小数的最小差异, 0.000001
 */

/**
 * 浮点数精确度处理
 * @param num 要处理的浮点数
 * @param accuracy 保存的精度位数，默认2位小数
 */

/**
 * 滚动container，默认是window
 */

/**
 * 滚动内容，默认是body
 */

/**
 * 生成 group key
 * @param key
 * @returns
 */

/**
 * 生成 group type
 * @param type
 * @returns
 */

/**
 * 生成条件组查询器
 * @param predicates
 * @returns
 */

/**
 * 相邻的 rect 进行合并，避免碎片化的色块
 */

/**
 * 简单 K/V cache 缓存
 * @param capacity 容量 - (真实的缓存容量会大 1 位)
 */

/**
 * 绝对值单位之间互转
 * @param value
 * @param unitTo
 */

/**
 * 绝对值单位转换公式：
 * unit a -> unit b = unit a -> 英寸(in) -> unit b
 * 1in = 72pt
 * 1in = 2.54cm
 * 1in = 10 * 2.54mm
 * 1in = 40 * 2.54q
 * 1in = 1in
 * 1in = 6pc
 * 1in = 96px
 */

/**
 * 统一插入 Block 逻辑
 *
 * * 插入后内容前无空行
 * * 仅当在段尾(包括空段落)或文末的 void 元素上插入内容后有空行
 *
 * @param {Controller} controller
 * @param {Block} newBlock 待插入的 Block
 * @returns
 */

/**
 * 编码 fragment
 * @param fragment
 */

/**
 * 编辑器只读组件
 */

/**
 * 编辑器提供的默认工具栏interface
 * 数据结构参照 we-ui toolbar：
 * https://pds.alibaba-inc.com/alidocs/we-ui/?path=/docs/toolbar-%E7%A4%BA%E4%BE%8B--resize
 * 单行配置(嵌套数组)：
 * SingleToolbarProps: [{
 *    toolButtons: [{
 *      name: 'aaa'
 *    }, {
 *      name: 'bbb'
 *    }]
 *  }, {
 *    toolButtons: [{
 *      name: 'ccc'
 *    }]
 *  }]
 * 显示效果：|- 工具栏 -|
 * |- aaa bbb | ccc -|
 * **********************************************
 * 双行配置(2层嵌套数组)：
 * DoubleToolbarProps: [{
 *    toolRows: [{
 *      toolButtons: [{
 *        name: 'aaa'
 *      }, {
 *        name: 'bbb'
 *      }]
 *    }, {
 *      toolButtons: [{
 *        name: 'ccc'
 *      }, {
 *        name: 'ddd'
 *      }]
 *    }]
 *  }, {
 *    toolRows: [{
 *      toolButtons: [{
 *        name: 'eee',
 *        boxLayout: ToolBoxLayoutMode.vertical
 *      }]
 *    }]
 *  }]
 * 显示效果：|- 工具栏 -|
 * |- aaa bbb |     -|
 * |-         | eee -|
 * |- ccc ddd |     -|
 */

/**
 * 编辑器自带toolbar组件
 */

/**
 * 聚合一组节点
 * @param nodes 节点组
 * @param type group type
 * @param until 停止 group 条件
 * @param pass 跳过节点
 * @returns
 */

/**
 * 自定义剪切板数据，封装了 fragment 等一些编辑器数据
 */

/**
 * 节点是否在折叠的 Group 之内
 * @param document
 * @param node
 * @returns
 */

/**
 * 节点是否在未折叠的 Group 内
 * @param document
 * @param node
 * @returns
 * @description 通常此方法需要与 `isFoldInGroup` 配合使用
 */

/**
 * 获取 DOM 的真实选区
 * @param root
 * @description 由于编辑器层没有浏览器的选区，所以使用 mark 的方式自行构造选区
 */

/**
 * 获取 node 节点中第一个文本节点位置，找不到则返回 node 位置
 * @param node
 */

/**
 * 获取focus边缘的tag节点
 * @param controller
 * @param dire 方向
 */

/**
 * 获取tag图标
 * @param type
 */

/**
 * 获取全局默认文本样式
 * @returns React.CSSProperties
 */

/**
 * 获取分行。`rows` 构建了分行的结构，每一个 row 表示一行
 */

/**
 * 获取当前容器的所有 JSAPI（仅支持移动端）
 * @returns
 */

/**
 * 获取本地光标 DOM
 * @param root
 * @returns
 */

/**
 * 获取相对的 luminance。
 * https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
 */

/**
 * 获取节点样式
 * @returns React.CSSProperties
 */

/**
 * 获取评论框的位置。返回相对于当前 block 的位置，和屏幕绝对位置
 */

/**
 * 获得跳转的 url 
 * @param url 
 * @param id
 * @returns 
 */

/**
 * 解析 CSS 绝对长度单位，默认的目标单位是 px，value 值若为 number 则断言为 px 单位
 * @param value 原始值
 * @param unit 目标单位
 * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#Lengths
 * @example 1in = 2.54cm = 96px
 *
 * Unit |  Name                 | Equivalent to
 *  cm  |  Centimeters          | 1cm = 96px/2.54
 *  mm  |  Millimeters          | 1mm = 1/10th of 1cm
 *  Q   |  Quarter-millimeters  | 1Q  = 1/40th of 1cm
 *  in  |  Inches               | 1in = 2.54cm = 96px
 *  pc  |  Picas                | 1pc = 1/6th of 1in
 *  pt  |  Points               | 1pt = 1/72th of 1in
 *  px  |  Pixels               | 1px = 1/96th of 1in
 */

/**
 * 解析 block indent 数据
 * leftChars/rightChars/firstLineChars/hangingChars 将覆盖对应不带单位的字段，并被转换为 px 单位
 * 会处理悬挂和首行缩进冲突，并根据第一个字的字号动态计算缩进值
 * @param node BLock
 * @param inheritedData 继承数据
 * @returns IndentProperties
 */

/**
 * 解析 css margin 参数
 * @param value
 */

/**
 * 解析 css padding 参数
 * @param value
 */

/**
 * 解析 css 的 background 属性（目前只支持 color）
 * @param value
 */

/**
 * 解析 css 边距单位
 * @param value
 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding
 */

/**
 * 解码 fragment
 * @param text
 */

/**
 * 计算 list group 背景颜色宽度
 * @param
 * @param
 * @returns
 */

/**
 * 计算列表连接线位置
 * @param node 折叠节点
 * @returns left 列表与左侧距离, symbolWidth 符号宽度
 */

/**
 * 计算折叠按钮位置
 * @param
 * @param
 * @returns
 */

/**
 * 计算选区应该分布的根节点
 *
 * A. 对于单个原始 selection
 * 1. 若为 collapsed，则返回值的 key 为该 selection，value 为它应渲染目标宿主节点 + originSelection
 * 2. 若为 expanded，则返回值 key 为该 selection 按需切割的子 selection，value 为其对应渲染的目标宿主节点 + originSelection
 *
 * B. remoteSelections 会分别将每一项按上面的规则分割并聚合到一个 Map 中
 *
 * @param controller Controller
 * @param globalWrapperRef 渲染在全局的根节点
 * @returns [local, remotes]: [SelectionWrapperMap, SelectionWrapperMap]
 */

/**
 * 订正表格单元格数据
 * @param table
 */

/**
 * 订正表格的 span 属性
 * @param table
 */

/**
 * 订正表格的单元格结构
 * 1. 补齐 span 的单元格跨度空缺
 * 2. 订正不规整的行列
 * @param table
 */

/**
 * 订正表格的行列，使表格所有行列数量对齐
 * @param table
 */

/**
 * 设置 CSS 文字修饰
 * textDecorationStyle 只允许一个值，因此 underline 和 双删除线无法共存
 * @param style
 * @param type
 * @param underline
 */

/**
 * 读 data 的时候置顶类型
 * @param data 
 * @param key 
 * @param defaultValue 
 */

/**
 * 读取 asl 中的纯文本（leaf 节点）
 * @param jsonML
 */

/**
 * 读取标题等级
 * @param node
 * @returns
 */

/**
 * 转换为pt并格式化
 * @param value
 */

/**
 * 转换为px并格式化
 * @param value
 */

/**
 * 输入法输入时，找到光标实际所在的 point
 *
 * @param anchor
 * @param composingLen
 * @param document 包含 composing mark 的 document
 * @returns
 * - composing leaf 未跨 Text 时，修正 offset 到 anchor.offset + composingLen
 * - composing leaf 跨 Text 时，修正到 composing 末尾所在的 Text 内，offset 为最后一个 Text 内的 composing 部分长度
 */

/**
 * 边框样式枚举
 */

/**
 * 过滤 fragment 内容
 * @param fragment
 * @param rules
 */

/**
 * 返回 Chrome 版本
 */

/**
 * 返回一个不超过最小值和最大值的数字
 * @param min 最小值
 * @param value 计算值
 * @param max 最大值
 */

/**
 * 返回公式内容的大小
 * @param text 公式字符串
 */

/**
 * 这里是为了获取默认的文本中默认的 font-size, 用于支持 placeholder 中 hover 背景跟随尺寸变化的 case
 * @param document
 * @param node
 */

/**
 * 选区、色块抗锯齿优化，调整 rect 的高度，使属于同一行的 rect 高度相同。
 */

/**
 * 通用的icon生成函数
 */

/**
 * 通用链接暂时
 */

/**
 * 遍历节点内的每一个 cangjie content 节点，获取 getClientRects 列表
 */

/**
 * 钉钉IM消息气泡默认情况会带上背景颜色
 * @param style
 */

/**
 * 非普通段落的默认间距（例如 代码块、card 等）
 */

/**
 * 颜色版的色值
 */

/**
 * 默认的 flush 类型
 */

/**
* ================ DatePicker相关 start ====================
*/

/**
* ================ 日期面板相关 end ====================
*/

/**
// 复制以下代码到控制台自动生成导入、导出代码
 
const files = [
  'text',
  'card',
  'code',
  'document',
  'embed',
  'hr',
  'image',
  'link',
  'mention',
  'onlineVideo',
  'placeholder',
  'refer',
  'table',
  'tag',
  'paragraph'
]
const imports = files.map(name => `
import ${name}ValueToJsonML from './${name}/valueToJsonML';
import ${name}JsonMLToValue from './${name}/jsonMLToValue';`).join('');

const plugins = 'export default {\n' + files.map(name=>`\t${name}: buildMoPluginCreator(${name}ValueToJsonML, ${name}JsonMLToValue)`).join(',\n') + '\n}';

console.log(imports, '\n\n', plugins)

 */

/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * !important: 注意，注意，这里是个大坑
 * 由于容器的bug，在iframe里面的页面，没有联通jsbridge，所以iframe里面无法调用到jsapi
 * - iframe只能从「顶层」window上去拿jsapi
 * - 「当前应用」需要给we-web提供必要的jsapi，挂载到window上
 * - 如果「当前应用」被嵌套到iframe中，jsapi需要父窗口提供
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/** *************** en **************** */

/** *************** 仿宋 **************** */

/** *************** 圆 **************** */

/** *************** 宋 **************** */

/** *************** 楷 **************** */

/** *************** 隶 **************** */

/** *************** 黑 **************** */

/** @class */

/** @deprecated 即容器版本号, 推荐使用 dd.env.version */

/** @license React v16.14.0
 * react-dom-server.browser.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.
 */

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

/** @param {number} initTime */

/** @private @const {!Array<!Document>} */

/** @private @const {!Array<function()>} */

/** @return {boolean} */

/** @return {number} */

/** Bootstring parameters */

/** Built-in method references without a dependency on `root`. */

/** Built-in value references. */

/** Check whether a name is known for caching */

/** Clears all cached names for a given group ID */

/** Clears all rules for a given group ID */

/** Clears the entire tag which deletes all rules but not its names */

/** Convert the fragment into HTML markup. */

/** Convert the fragment into a node. */

/** Detect free variable `exports`. */

/** Error message constants. */

/** Find last style element if any inside target */

/** Highest positive signed 32-bit float value */

/** Include this to ensure that all functions are defined. */

/** Insert new rules which also marks the name as known */

/** Lazily initialises a GroupedTag for when it's actually needed */

/** Mark a group's name as known for caching */

/** Outputs the current sheet as a CSS string with markers for SSR */

/** Register a group ID to give it an index */

/** TODO: compatible */

/** Type for <!-- ... --> */

/** Type for <![CDATA[ ... ]]> */

/** Type for <!doctype ...> */

/** Type for <? ... ?> */

/** Type for <script> tags */

/** Type for <style> tags */

/** Type for Any tag */

/** Type for Text */

/** Type for the root element of a document */

/** Types of elements found in htmlparser2's DOM */

/** Used as default options for `_.truncate`. */

/** Used as references for the maximum length and index of an array. */

/** Used as references for various `Number` constants. */

/** Used as the internal argument placeholder. */

/** Used for built-in method references. */

/** Used to check objects for own properties. */

/** Used to compose bitmasks for cloning. */

/** Used to compose bitmasks for function metadata. */

/** Used to compose unicode capture groups. */

/** Used to compose unicode character classes. */

/** Used to detect hot functions by number of calls within a span of milliseconds. */

/** Used to detect methods masquerading as native. */

/** Used to detect overreaching core-js shims. */

/** Used to detect strings that need a more robust regexp to match words. */

/** Used to detect unsigned integer values. */

/** Used to escape characters for inclusion in compiled string literals. */

/** Used to generate unique IDs. */

/** Used to indicate the type of lazy iteratees. */

/** Used to match HTML entities and HTML characters. */

/** Used to match `RegExp` flags from their coerced string values. */

/** Used to match a single whitespace character. */

/** Used to match backslashes in property paths. */

/** Used to match empty string literals in compiled template source. */

/** Used to match leading whitespace. */

/** Used to match property names within property paths. */

/** Used to match words composed of alphanumeric characters. */

/** Used to match wrap detail comments. */

/** Used to resolve the decompiled source of functions. */

/** Used to stand-in for `undefined` hash values. */

/** Used to store function metadata. */

/** `Object#toString` result references. */

/** `acceptUnicodeChar = true` is only applicable if `replace` is set. */

/** chainable
 * LinkifyIt#add(schema, definition)
 * - schema (String): rule name (fixed pattern prefix)
 * - definition (String|RegExp|Object): schema definition
 *
 * Add new rule definition. See constructor description for details.
 **/

/** chainable
 * LinkifyIt#set(options)
 * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
 *
 * Set recognition options for links without schema.
 **/

/** chainable
 * LinkifyIt#tlds(list [, keepOld]) -> this
 * - list (Array): list of tlds
 * - keepOld (Boolean): merge with current list if `true` (`false` by default)
 *
 * Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)
 * to avoid false positives. By default this algorythm used:
 *
 * - hostname with any 2-letter root zones are ok.
 * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
 *   are ok.
 * - encoded (`xn--...`) root zones are ok.
 *
 * If list is replaced, then exact match for 2-chars root zones will be checked.
 **/

/** chainable
 * MarkdownIt.disable(list, ignoreInvalid)
 * - list (String|Array): rule name or list of rule names to disable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * The same as [[MarkdownIt.enable]], but turn specified rules off.
 **/

/** chainable
 * MarkdownIt.enable(list, ignoreInvalid)
 * - list (String|Array): rule name or list of rule names to enable
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable list or rules. It will automatically find appropriate components,
 * containing rules with given names. If rule not found, and `ignoreInvalid`
 * not set - throws exception.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')()
 *             .enable(['sub', 'sup'])
 *             .disable('smartquotes');
 * ```
 **/

/** chainable
 * MarkdownIt.set(options)
 *
 * Set parser options (in the same format as in constructor). Probably, you
 * will never need it, but you can change options after constructor call.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')()
 *             .set({ html: true, breaks: true })
 *             .set({ typographer, true });
 * ```
 *
 * __Note:__ To achieve the best possible performance, don't modify a
 * `markdown-it` instance options on the fly. If you need multiple configurations
 * it's best to create multiple instances and initialize each with separate
 * config.
 **/

/** chainable
 * MarkdownIt.use(plugin, params)
 *
 * Load specified plugin with given params into current parser instance.
 * It's just a sugar to call `plugin(md, params)` with curring.
 *
 * ##### Example
 *
 * ```javascript
 * var iterator = require('markdown-it-for-inline');
 * var md = require('markdown-it')()
 *             .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
 *               tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar');
 *             });
 * ```
 **/

/** chainable, internal
 * MarkdownIt.configure(presets)
 *
 * Batch load of all options and compenent settings. This is internal method,
 * and you probably will not need it. But if you will - see available presets
 * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)
 *
 * We strongly recommend to use presets instead of direct config loads. That
 * will give better compatibility with next versions.
 **/

/** internal
 * MarkdownIt.parse(src, env) -> Array
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Parse input string and return list of block tokens (special token type
 * "inline" will contain list of inline tokens). You should not call this
 * method directly, until you write custom renderer (for example, to produce
 * AST).
 *
 * `env` is used to pass data between "distributed" rules and return additional
 * metadata like reference info, needed for the renderer. It also can be used to
 * inject data in specific cases. Usually, you will be ok to pass `{}`,
 * and then pass updated object to renderer.
 **/

/** internal
 * MarkdownIt.parseInline(src, env) -> Array
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * The same as [[MarkdownIt.parse]] but skip all block rules. It returns the
 * block tokens list with the single `inline` element, containing parsed inline
 * tokens in `children` property. Also updates `env` object.
 **/

/** internal
 * Renderer.renderInlineAsText(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * Special kludge for image `alt` attributes to conform CommonMark spec.
 * Don't try to use it! Spec requires to show `alt` content with stripped markup,
 * instead of simple escaping.
 **/

/** internal
 * class Core
 *
 * Top-level rules executor. Glues block/inline parsers and does intermediate
 * transformations.
 **/

/** internal
 * class ParserBlock
 *
 * Block-level tokenizer.
 **/

/** internal
 * class ParserInline
 *
 * Tokenizes paragraph content.
 **/

/** 引用块 Injection */

/** 排版下最大引用块高度，服务于只读引用块 */

/** 排版下默认引用块高度，服务于加载，删除，无权限等状态下的引用块 */

/** 是否阻止编辑器以外的 mousedown 行为 */

/** 用于class组件 */

/************************************************************************/

/******/

/***/

/**/

/*, endLine*/

/*, env */

/*, options, env */

/*, params, ... */

/*, silent*/

/*--------------------------------------------------------------------------*/

/*</replacement>*/

/*<replacement>*/

/*_root*/

/*eslint max-depth:0*/

/*eslint max-len:0*/

/*eslint no-bitwise:0*/

/*eslint no-labels:0,block-scoped-var:0*/

/*eslint quotes:0*/

/*eslint-disable max-len*/

/*eslint-enable max-len*/

/*from1, from2, from3, ...*/

/*function replaceEntities(str) {
  if (str.indexOf('&') < 0) { return str; }

  return str.replace(ENTITY_RE, replaceEntityPattern);
}*/

/*istanbul ignore if*/

/*return*/

/*yield*/

//

// 

//                               A}%

//                               \fontsize\sf@size\z@

//                               \math@fontsfalse\selectfont

//                          ^^^^^^^ parse this

//                         \vss}%

//                         ^^ skipping these spaces

//                       ^^^ skipping those spaces

//                  ^^^^^^^ parsing link title

//                 <ActionWrap onClick={handleAction}>{actionText}</ActionWrap>

//                 \hskip #1\hskip \z@skip}

//                 │

//                )

//                ^^ skipping these spaces

//               !!actionText && !description && (

//               <Ellipsis lines={2} text={description} />

//               def\mb@t{\ht}\def\mb@b{\dp}\def\mb@tb{\ht\z@\z@\dp}%

//              cursor

//             </DescriptionContent>

//             <DescriptionContent>

//             lines={description ? 1 : 2}

//             suffix={

//             text={message}

//             }

//            ^^^^^^^^^^^ parse this

//           !!description && (

//           )

//           />

//           <Ellipsis

//           size={description ? 'large' : 'default'}

//           │

//          \vbox to\ht\z@{\hbox{\check@mathfonts

//          ^^^^^^ parsing link destination

//          cursor

//          │

//          │ removed

//          ▼

//         // payload.data.clipboardData

//         </MessageContent>

//         <MessageContent

//         >

//         See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for

//         \TeX}

//         \kern-.15em%

//         ^^^ skip optional whitespace here

//         a description of these values.

//         className="close-icon"

//         nextStatus = ENTERING

//         nextStatus = EXITING

//         onClick={handleClose}

//         payload.data.customPasteItems.push({title:''})

//         to make extra space appear

//         {

//         {\sbox\z@ T%

//         }

//         }%

//         │

//         │ removed

//         ▼

//        ^^ skipping these spaces

//        cursor

//        │

//        │  split node

//        │ merged

//        ▼

//        ▼  

//       'action-mode': actionText,

//       'close-mode': !actionText,

//       (we can replace it by preventing links from being parsed in

//       ...(style || {}),

//       />

//       </MessageWrap>

//       <ClosedNormal

//       <MessageWrap>

//       <TypeIconNode className="type-icon" />

//       Why do not memoize `document.getPath`? Node's path will not be re-get frequently, but Point's path does.

//       [[[[[[[[[[[[[[[[[[[[[foo]()

//       ^ -- position start of line here (tab has width===1)

//       cursor

//       display: visible ? 'block' : 'none',

//       don't use `shouldUpdate`. `dependencies` is view as a shortcut if `shouldUpdate`

//       else to check if value changed

//       if (status !== ENTERING && status !== ENTERED) {

//       if (status === ENTERING || status === ENTERED) {

//       if(payload.type===CUSTOM_PASTE_ITEMS){

//       is not provided

//       validation mode)

//       when an amount of `[` is exactly equal to `maxNesting + 1`:

//       }

//       │

//       │      removed

//       │    cursor

//       │   │

//       ▼

//      - - -

//      - this one is a paragraph continuation

//      For example <List name="list"><Field name={['list', 0]}></List>

//      If `namePathList` is [['list', 0]] (Field value update), List shouldn't be updated

//      If `namePathList` is [['list']] (List value update), Field should be updated

//      \check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont R}}

//      cursor

//      note          long note           long note

//      the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';

//      the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.

//      ──────  selection

//      │

//      │      removed

//      ▼

//     "#f00" or "f00"

//     "#ff0000" or "ff0000"

//     "#ff000000" or "ff000000"

//     "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"

//     "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"

//     "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"

//     "red"

//     "rgb 1.0 0 0" or "rgb (1, 0, 0)"

//     "rgb 255 0 0" or "rgb (255, 0, 0)"

//     "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"

//     "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"

//     '当前位置',

//     - item 4

//     </AlertWrap>

//     <AlertWrap size={description ? 'large' : 'default'}>

//     <PrintableCard />

//     >

//     > test

//     JSON.stringify(validNodes),

//     \def\macro#1#2#3#4#5#6#7#8#9{expansion}

//     \def\macro#1#2{expansion}

//     \def\macro#1{expansion}

//     \def\macro{expansion}

//     ^ -- position start of line here:

//     ```

//     className={classnames(className, type, {

//     const { status } = this.state

//     foo

//     hotkeyPosition,

//     if (this.props.in) {

//     onAction:(payload:any)=>{

//     openedMenuKeys

//     style={{

//     test

//     }

//     } else {

//     })}

//     }}

//     │

//     │         │ │

//     │ inserted

//     ┌─────────┐  cursor

//     ▼

//     这种情况下只影响选区渲染的位置，不应该打断输入

//    (in joyent/node some chars in auth and paths are encoded)

//    - item 3

//    >

//    > current blockquote

//    \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}

//    ^ -- position start of line here + shift bsCount slightly

//    `fragmentInner.type`. Call this `documentInner`

//    a single child node and their types match. The stopping point for the

//    arguments. The supplied object will be used as default values / fall-back

//    buffer.fill(buffer[, offset[, end]])

//    buffer.fill(number[, offset[, end]])

//    buffer.fill(string[, offset[, end]][, encoding])

//    cursor

//    delimiterFactor / 655360

//    e.g. in `url.parse('http://foo?bar')` pathname is ``, not `/`

//    equation           eqn                 eqn

//    for relative paths.

//    fragment is the sub-node to insert into the document.

//    i.e. in `http://example.org:foo` pathname is `:foo`

//    is used by selectorFactory to decide if it should reinvoke on props changes.

//    new function as the true mapToProps for subsequent calls.

//    see: cangjie/src/hooks/useSelectionCalculator.ts

//    so `http:\\example.org\` is treated like a relative path

//    the developer that their mapToProps function is not returning a valid result.

//    tinycolor.isReadable("#000", "#111") => false

//    tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false

//    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"

//    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"

//    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"

//    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString();  // "#ffffff"

//    where the boolean indicates that the query string should also be parsed.

//    which can be constructed using other parts of the url.

//    x^{x^{\left(\rule{0.1em}{0.68em}\right)}}

//    ──── selection

//   );

//   -

//   - item 2

//   // eslint-disable-next-line no-console

//   1. 粘贴到钉钉文档内，显示文档标题

//   2. 粘贴到浏览器地址栏等，粘贴结果为链接

//   2.1 If `dependencies` is set, `name` is not set and `shouldUpdate` is not set,

//   2.2 If `shouldUpdate` provided, use customize logic to update the field

//   </AlertRoot>

//   <AlertRoot

//   <AvatarColor backgroundColor={color} />

//   <UnauthorizedCard editable={false} mobile={false} name={name} url={''} errorType="longImg"/>

//   >

//   Android 下有时候会出现取消下划线时仍渲染下划线的情况。

//   For this function, we need the code point data.

//   HWorld

//   Math.floor(655360 * maxDistFromAxis / 500) *

//   The main index has the code unit data.

//   \char"123 -- hex

//   \char'123 -- octal

//   \char123  -- decimal

//   \char`\x  -- character that cannot be written (e.g. %)

//   \char`x   -- character that can be written (i.e. isn't active)

//   \else\mkern12mu\fi{\operator@font mod}\,\,#1}

//   \if@display\mkern18mu\else\mkern8mu\fi(#1)}

//   \ifmmode\mskip#1#2\else\kern#1#3\fi\relax}

//   \mkern5mu\nonscript\mskip-\medmuskip}

//   \notin{\mathrel{\m@th\mathpalette\c@ncel\in}}

//   ^ blkIndent position will be here

//   `const right = parser.parseFunction();`

//   a. BBB                      a. BBB

//   alt: [ name2, name3 ]

//   b. DDD                      a. DDD

//   console.log(

//   console.log('当前位置', validNodes, hotkeyPosition, mousePosition);

//   disableAlpha: PropTypes.bool,

//   enabled: Boolean,

//   fn(data, e);

//   fn: Function(),

//   https://aone.alibaba-inc.com/v2/bug/35006381# 《【0615文字bvt】文本设置样式后取消下划线重新设置异常》

//   if (prevProps !== this.props) {

//   let nextStatus = null

//   name: XXX,

//   parseGroup() returns an "ordgroup" wrapping some symbol node.

//   path(s), minWidth, height, align

//   path, width, height

//   position

//   return (

//   return this._applyCombination(polyad, [number]);

//   return {

//   return { nextStatus }

//   styles: PropTypes.object,

//   width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

//   {\operator@font mod}\penalty900

//   }

//   │

//   │    cursor

//   ┌────┐

//   ┌────┐   │

//   ┏━━━━━━━━┓   or    ┏━━━┓     not    ┏━━━━━━━━━┓

//   └────┘

//   └────┘   │

//   ▼     │

//   但实际上代码确实是正确的，当出现问题后又触发重新渲染（例如取消选区、增大字号等操作），则奇怪的下划线就会消失。

//   后续可以评估下通过类似 boxShadow: '0 1px' 等方式来实现下划线效果是否可行

//   这里暂时通过让 Android 下不使用 textUnderlinePosition 这个属性来避免

//   通过注释下面的样式，问题消失。

//  * Detects whether the mapToProps function being called depends on props, which

//  * On first call, handles mapToProps if returns another function, and treats that

//  * On first call, verifies the first result is a plain object, in order to warn

//  - AND markers are the same

//  - a

//  - canSplitWord - determine if these markers can be found inside a word

//  - example list

//  - exclude      - list of characters to ignore (in addition to a-zA-Z0-9)

//  - item 1

//  - keepEscaped  - don't encode '%' in a correct escape sequence (default: true)

//  - start - position to scan from (it should point at a valid marker);

//  - string       - string to encode

//  - they have adjacent tokens

//  0..25 map to ASCII a..z or A..Z

//  1. an empty line outside:

//  2. an empty line inside:

//  3. another tag:

//  Component: AbstractComponent<Config, Instance>

//  HWor│d

//  Hello

//  HelloWor│d

//  Hello│Wor│ld

//  HlloWor│ld

//  H│ello│World

//  H│ello│Wor│d

//  TeX doesn’t use single spaces as undelimited arguments."

//  Toolbar宽度没有变化但是组件新增或者减少时触发

//  Wor│ld

//  \degree from gensymb package

//  ^^^^^ - calculating total length of this thing

//  put spaces between the arguments (e.g., ‘\row x n’), because

//  │ Wor│ld │ │ Hello │

//  ││Hello │

//  ┌────┼───┐ ┌───────┐

//  ┌┼──────┐

//  └────┼───┘ └───────┘

//  └┼──────┘

//  避免频繁设置，导致的闪烁问题

// !!!! Don't confuse with "Markdown ASCII Punctuation" chars

// !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, _, `, {, |, }, or ~

// !mathFunction

// "  -  test"

// "After you have said ‘\def\row#1#2{...}’, you are allowed to

// "Centered" offset is usually the average of the min and max.

// "Full" accents expand the width of the resulting symbol to be

// "Software"), to deal in the Software without restriction, including

// "Zero" preset, with nothing enabled. Useful for manual configuring of simple

// "aligned" mode.

// "alt" attr MUST be set, even if empty. Because it's mandatory and

// "break on all exceptions" in your console,

// "k" is the only double struck lower case letter in the KaTeX fonts.

// "mathord" and "textord" ParseNodes created in Parser.js from symbol Groups in

// "middle"'s htmlBuilder.

// "supsub" since some of them (like \int) can affect super/subscripting.

// "undefined" behaviour, and keep them as-is. Some browser will

// "undefined" in the uuid)

// #

// ## → #

// #262626 85%

// #595959 65%

// #8C8C8C 45%

// #BFBFBF 25%

// #d9d9d9

// $FlowFixMe

// $FlowFixMe Flow doesn't seem to understand span.style's type.

// $FlowFixMe More hackery

// $FlowFixMe This should be React.forwardRef<Config, Instance>

// $FlowFixMe defaultProps isn't declared so it can be inferrable

// $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties

// $FlowFixMe, "environment" handler returns an environment ParseNode

// $FlowFixMe: Check if the node has a string `text` property.

// $FlowFixMe: Not every node type has a `text` property.

// $FlowFixMe: Not typed to avoid destructuring arguments

// $FlowFixMe: Only works for ChildType = MathDomNode.

// $FlowFixMe: Replace this with passing "svg-align" into makeVList.

// $FlowFixMe: Unsure why.

// &hellip;

// '  >\t  test '

// '  \n' -> hardbreak

// ' >   test '

// ' >\t  test '

// '1.' '1x' 'xx' '' => are not complete numbers

// ';' and '.', but doesn't check for ','.

// '\u0398\u03f4\u03b8\u03d1'.toLowerCase().toUpperCase() === '\u0398\u0398\u0398\u0398'

// '\u23d0' instead of '|' and '\u2016' instead of '\\|' for the

// 'abxxcd' will be treated as 'ab')

// '{}$%@~+=:' reserved for extentions

// 'ī': '\u0131\u0304', // enable when we add Extended Latin

// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.

// (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so

// (?!_) cause 1.5x slowdown

// (LaTeX creates a new group for every $...$, $$...$$, \[...\].)

// (List_of_file_signatures)[https://en.wikipedia.org/wiki/List_of_file_signatures]

// (MultiSelectOptionFC as React.FC).displayName = 'MultiSelectOption';

// (To see the difference, compare

// (by rendering separately and with {}s before and after, and measuring

// (c) (C) → ©

// (collapsed reference link and shortcut reference link respectively)

// (due to parsing ambiguity with list)

// (e.g. height: 100vh).

// (http://ejohn.org/blog/javascript-micro-templating/)

// (in text mode), and it's unlikely we'd see any of the math commands

// (list item is empty, list terminates before "foo"):

// (or null/undefined, meaning no further processing).

// (p) (P) -> §

// (prevents integer overflow in browsers)

// (r) (R) → ®

// (remove this when node v10 is no longer supported).

// (see The TeXBook, p. 43)

// (see `matchers` above for definition).

// (the height of the enclosing htmlNode) for proper vertical alignment.

// (the rest is just indented code block)

// (the user may have provided their own)

// (this avoid a conflict with Object.prototype members,

// (tm) (TM) → ™

// (until we support \ifmmode ... \else ... \fi).

// ) : corner

// ): AbstractComponent<$Diff<Config, { theme?: any }> & { theme?: any }, Instance>

// );

// * Push callback into task queue.

// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]

// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]

// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]

// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]

// *Assumes:* r, g, b in [0, 255] or [0, 1]

// *Example*

// *Returns:* { h, s, l } in [0,1]

// *Returns:* { h, s, v } in [0,1]

// *Returns:* { r, g, b } in [0, 255]

// *Returns:* { r, g, b } in the set [0, 255]

// *assuming* a font size of ptPerEm (normal size, normal style).

// *text* font, e.g. cmr10. KaTeX instead uses values from the

// +- → ±

// - However, we may have gotten new wrapper props after that

// - Invalid input values for the RFC `version` or `variant` fields

// - One or more input array values don't map to a hex octet (leading to

// - The argument is a bare symbol node.

// - The argument is wrapped in {} or [], in which case Parser's

// - This render may have been triggered by a Redux store update that produced new child props

// - buffer - a Buffer to search

// - byteOffset - an index into `buffer`; will be clamped to an int32

// - dir - true for indexOf, false for lastIndexOf

// - encoding - an optional encoding, relevant is val is a string

// - fractionals 1/2, 1/4, 3/4 -> ½, ¼, ¾

// - https://bugs.webkit.org/show_bug.cgi?id=151234

// - https://bugs.webkit.org/show_bug.cgi?id=151610

// - miltiplication 2 x 4 -> 2 × 4

// - return true

// - update `state.line`

// - update `state.pos`

// - update `state.tokens`

// - val - a string, Buffer, or number

// - 若不需要 pending，则立即 flush 堆积的 operations

// - 若需要 pending，则重置 flush task，使下一个周期内的 operations 能被 pending 判定

// -- → &ndash;, --- → &mdash;

// ---------

// ------------------

// --------------------

// ---------------------

// ----------------------

// -:

// -> 123

// -> 23

// -> 3

// ... → … (also ?.... → ?.., !.... → !..)

// .5 gets interpreted as half of the total, instead of half of 1

// .toLowerCase().toUpperCase() should get rid of all differences

// // TIFF, big-endian type

// /[^\0-\x7F]/gu

// 0-9 bold

// 0-9 bold sans

// 0-9 bold sans-serif

// 0-9 double-struck. No KaTeX font.

// 0-9 monospace

// 0-9 sans serif

// 0-9 sans-serif

// 0. 处理折叠逻辑等特殊场景，修正 point

// 0.111 em = 2 mu

// 0398;GREEK CAPITAL LETTER THETA;Lu;0;L;;;;;N;;;;03B8;

// 03B8;GREEK SMALL LETTER THETA;Ll;0;L;;;;;N;;;0398;;0398

// 03D1;GREEK THETA SYMBOL;Ll;0;L;<compat> 03B8;;;;N;GREEK SMALL LETTER SCRIPT THETA;;0398;;0398

// 03F4;GREEK CAPITAL THETA SYMBOL;Lu;0;L;<compat> 0398;;;;N;;;;03B8;

// 0xD835 is the high surrogate for all letters in the range we support.

// 0xDC00 is the low surrogate for bold A.

// 1 delimiter = 2 characters

// 1. Ensure the fragment has a single child node, call it `fragmentInner`

// 1. If `namePath` exists in `namePathList`, means it's related value and should update

// 1. No leading slash in paths,

// 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments

// 1. Only allow block nodes or inline and text nodes in blocks.

// 1. Textarea will enlarge ancestors' rectangle when width is `auto`.

// 1. There might just not be enough elements for current group, and

// 1. anything

// 1. foo " bar " baz - not replaced

// 1. iOS@<13 need to preserve `\n` to detect `moveUpward` & `moveDownward`,

// 1. insert the new cell

// 1. insert the table

// 1. move node to outside

// 1. 先尝试找 列表 或 leafBlock

// 1. 只有一个按钮

// 1. 如果驻留有 operation

// 1. 找到所有的 heading 及 相关 typeLevel 组成的数组；

// 1. 点击到编辑器

// 1. 这里开始正式分行计算，获取 point 的 key

// 1. 都是「标点/SPACE」或都不是「标点/SPACE」

// 1. 闭合选区

// 1000 unit glyph height.

// 110xxxxx 10xxxxxx

// 1110xxxx 10xxxxxx 10xxxxxx

// 111110xx 10xxxxxx 10xxxxxx 10xxxxxx

// 15.6pt

// 16.3+ will not execute our will-update method;

// 1s内 不允许重复点击

// 2 different API:

// 2 leads in a row

// 2.

// 2. Backslashes are not replaced with slashes,

// 2. Desktop need `nowrap` to prevent that IME positioning incorrectly

// 2. Find the furthest document ancestor of the `startKey` matching

// 2. Only allow inline and text nodes in inlines.

// 2. The `URL` interface of the browser which accepts a URL, object as

// 2. The current group is underflowing, but there is also an

// 2. `useInputDetector` will treat inputting as deleting if width is smaller than `1em`.

// 2. checking this line

// 2. delete the table

// 2. foo-"-bar-"-baz - replaced

// 2. set the table data colswith

// 2. 如果有设置 column 标记，尝试定位到分栏

// 2. 如果驻留有堆 isFocused 的设置

// 2. 折叠

// 2. 排序 level 组成的数组；

// 2. 没有缓存，开始获取高度

// 2. 点击到其他地方

// 2. 选区跟link完全一致

// 2. 都是中文或都不是中文

// 26..35 map to ASCII 0..9

// 3. Drill into both `documentInner` and `fragmentInner` as long as each has

// 3. Or the current group is not underflowing but it appears so

// 3. Trailing colon is treated like a part of the path,

// 3. foo"bar"baz     - not replaced

// 3. insert nodes info the new cell

// 3. insert nodes into the new cell

// 3. 将 level 映射为 typeLevel 的 index + 1

// 3. 计算分行（row）

// 3. 选区在inline内，且要么在开头，要么在结束

// 3. 遍历找到最上层的 edgeBlock（例如表格里的 edge block）

// 32px

// 4. Nothing is URL-encoded in the resulting object,

// 4. clean up table cells

// 4. 存到缓存里

// 445-446, rules 18(a-f).

// 5. `url.parse()` does not have `parseQueryString` argument

// 6. Removed extraneous result properties: `host`, `path`, `query`, etc.,

// 650 的值与 Mo 中对齐，含义是纸张的宽度

// 65536 per pt, or 655360 per em. So, the division here truncates in

// 7 个为一组

// 7个为一组

// 9pt

// : <TranslateComp locale={locale} textKey={'we_ui_find_and_replace_result'} />

// ::

// ::=

// :=

// < and > turn into \langle and \rangle in delimiters

// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>

// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>

// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)

// <http://www.w3.org/TR/css3-color/>

// <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>

// <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>

// <https://www.w3.org/TR/css-color-4/#named-colors>

// <menclose> doesn't have a good notation option. So use <mpadded>

// <pre><code>xxxxx</code></pre>

// <pre>xxxx</pre>

// =                  Global Form Control                  =

// =:

// === expanded

// ===== Will get fully compare when not config namePathList =====

// ================

// ======================== Internal Hooks ========================

// ========================= Field Entity Interfaces =========================

// ========================== Dev Warning =========================

// =========================== Observer ===========================

// =========================== Validate ===========================

// ============================ Fields ============================

// ============================ Store =============================

// ============================ Submit ============================

// ============================= Child Component =============================

// ============================= Watch ============================

// ============================== Field Control ==============================

// ============================== Subscriptions ==============================

// ================================== Utils ==================================

// =========================================================

// > There is an ordering, document order, defined on all the nodes in the

// > Thus, document order orders element nodes in order of the occurrence of

// > XML representation of each node occurs in the XML representation of the

// > document after expansion of general entities. Thus, the document element

// > document corresponding to the order in which the first character of the

// > node will be the first node. Element nodes occur before their children.

// > nodes of an element occur after the element and before its children. The

// > relative order of attribute nodes is implementation-dependent./

// > their start-tag in the XML (after expansion of entities). The attribute

// >>>>> Validate by parallel

// >>>>> Validate by serialization

// ???????? → ???, !!!!! → !!!, `,,` → `,`

// @ali/4ever-logger 依赖库里面有浏览器环境依赖，导致 server cp 脚本无法运行

// @argument {Array} nodes Array of DOM nodes

// @argument {Node} nodaA The first node to use in the comparison

// @argument {Node} nodeB The second node to use in the comparison

// @font-face, @page

// @import

// @return {Number} A bitmask describing the input nodes' relative position.

// @returns {Array} collection of unique nodes, sorted in document order

// @ts-ignore

// @ts-ignore Internal set only

// @ts-ignore 修正负悬挂缩进与预期不一致

// @ts-nocheck

// A 0-size cross-origin intersection means no-intersection.

// A Cyrillic subset used to be supported as explicitly defined

// A Firefox \middle will strech a character vertically only if it

// A IE's `ClientRect` type does not have `x` and `y`. The same is the case

// A `DOMRect` object has `x` and `y` fields.

// A cases environment (in amsmath.sty) is almost equivalent to

// A font family applies to a group of fonts (i.e. SansSerif), while a font

// A gathered environment is like an array environment with one centered

// A group formed by \begingroup...\endgroup is a semi-simple group

// A length of one signals that mapToProps does not depend on props from the parent component.

// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and

// A lookup table to determine whether a spacing function/symbol should be

// A map of CSS-based spacing functions to their CSS class.

// A negative indentation means that this is a paragraph continuation

// A position of the token this delimiter corresponds to.

// A-Z Fraktur

// A-Z a-z Fractur

// A-Z a-z bold

// A-Z a-z bold italic

// A-Z a-z italic

// A-Z a-z monospace

// A-Z a-z sans bold

// A-Z a-z sans italic

// A-Z a-z sans-serif

// A-Z bold Fraktur No font metrics

// A-Z bold italic

// A-Z bold italic sans. No font

// A-Z bold sans-serif

// A-Z bold script. No font

// A-Z bold upright

// A-Z double struck

// A-Z double-struck

// A-Z italic

// A-Z italic sans-serif

// A-Z monospace

// A-Z sans-serif

// A-Z script

// AMS Arrows

// AMS Binary Operators

// AMS Binary Relations

// AMS Delimiters

// AMS Greek

// AMS Hebrew

// AMS Misc

// AMS Negated Arrows

// AMS Negated Binary Relations

// AMSMath's automatic \dots, based on \mdots@@ macro.

// Absolute units

// Accents

// Accents are handled in the TeXbook pg. 443, rule 12.

// Accents should always be ords, even when their innards are not.

// Account for that by shifting the subscript back the appropriate

// ActiveX objects in IE.

// Actually run the selector with the most recent store state and wrapper props

// Actually subscribe to the nearest connected ancestor (or store)

// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119

// Add \hline(s), if any.

// Add `Array` methods to `lodash.prototype`.

// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.

// Add `LazyWrapper` methods for `_.head` and `_.last`.

// Add `LazyWrapper` methods for `_.initial` and `_.tail`.

// Add `LazyWrapper` methods that accept an `iteratee` value.

// Add `LazyWrapper` methods to `lodash.prototype`.

// Add a flag to suppress these warnings for this special case.

// Add a slash for self-closing tags, e.g. `<img src="foo" /`

// Add aliases.

// Add back the empty userinfo, otherwise the original invalid URL

// Add chain sequence methods to the `lodash` wrapper.

// Add field if not provide `nameList`

// Add field validate rule in to promise list

// Add horizontal padding

// Add it to the beginning of the expression

// Add it to the end of the expression.

// Add lazy aliases.

// Add methods that return unwrapped values in chain sequences.

// Add methods that return wrapped values in chain sequences.

// Add methods to `Hash`.

// Add methods to `LazyWrapper`.

// Add methods to `ListCache`.

// Add methods to `MapCache`.

// Add methods to `SetCache`.

// Add methods to `Stack`.

// Add methods to `lodash.prototype`.

// Add properties assigned by `RegExp#exec`.

// Add ranges to single characters.

// Add size-resetting classes to the inner list and set maxFontSize

// Add strut, which ensures that the top of the HTML element falls at

// Add that many symbols

// Add the attributes

// Add the bottom symbol

// Add the class

// Add the markup of the children, also as markup

// Add the styles, after hyphenation

// Add the top symbol

// Add token name, e.g. `<img`

// Add trigger

// Add value to multiple array

// Add value to single array

// Add vertical padding

// Adding the suffix will have pushed the end of the selection further on, so

// Additional macros, implemented by analogy with mathtools definitions:

// Address \hline and \hdashline

// Adjust the clearance based on the delimiter size

// Adjust the strut of the tag to be the maximum height of all children

// Adjusting alignment.

// All environment definitions should be imported below

// All non-basic code points < n have been handled already. Find the next

// All of these are textords in math mode

// All of these are textords in text mode

// All of these are textords in text mode, and mathords in math mode

// All possible word characters (everything without punctuation, spaces & controls)

// All surds have 80 units padding above the viniculumn.

// Allow anything in markdown spec, forbid quote (") at the first position

// Allow injecting another batching function later

// Allow letters & digits (http://test1)

// Allow return value of strict function to be boolean or string

// Allowed by RFCs, but cause of XSS attacks.  Always escape these.

// Also consume leading spaces in math mode, as parseSymbol

// Also keep track of what font the delimiters are in

// Also monitor the parent.

// Also parse the supplied query string in to an object. If we're supplied

// Also the \gdef and \global\def equivalents

// Also unmonitor the parent.

// Alternate names for mathtools's macros:

// Alternative implementation, for memory.

// Always chaining the refs leads to problems when the childFactory

// Always change to rejection for Field to catch

// Always use explicit constructor for React components.

// Always use latest rules

// An `NaN` primitive is the only value that is not equal to itself.

// An aligned environment is like the align* environment

// An amount of virtual spaces (tabs expanded) between beginning

// Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)

// And we don't want to update state.isScrolling.

// Android: will toggle between uppercase and lowercase

// Any adjustments relative to the baseline must be done in buildHTML.

// Any reducers that existed in both the new and old rootReducer

// Anything else let's inspect with %O

// Append an <mo>&ApplyFunction;</mo>.

// Append the children, also as HTML nodes

// Apply any `formatters` transformations

// Apply attributes

// Apply env-specific formatting (colors, etc.)

// Apply inline styles

// Apply the class

// Apply the correct CSS class to choose the right font.

// Apply the options that were active when \middle was called

// Applying first lower then upper case normalizes any character:

// Are we oob?

// Arguments:

// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass

// Arrays are part of LaTeX, defined in lttab.dtx so its documentation

// Arrays terminate newlines with `\crcr` which consumes a `\cr` if

// Arrow Symbols

// Arrows for \ce{<-->} are offset from xAxis by 0.22ex, per mhchem in LaTeX

// As a workaround, use cWM and cWRP to invoke the new static lifecycle.

// As a workaround, use cWU to invoke the new lifecycle.

// Assign default placeholders.

// Assume cyclic values are equal.

// Assumes r, g, and b are contained in the set [0, 255]

// Assumes r, g, b are contained in the set [0, 255] and

// At this point, we should have a symbol, possibly with accents.

// At this point, we've reset the TeX-like height and depth values.

// Attach the DOM elements and apply all positions

// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.

// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer

// Automatically convert percentage into number

// Avoid Edge bug where empty style elements don't create sheets

// Avoid Firefox quirk where the style element might not have a sheet property

// Avoid IE11 quirk where cssText is inaccessible on some invalid rules

// Avoid `split(regex)` for IE8 compatibility. See #17.

// Avoid bugs when hasOwnProperty is shadowed

// Avoid calling selector multiple times if the store's state has not changed

// Avoid lazy use if the iteratee has a "length" value other than `1`.

// BACKGROUND

// BACKGROUND:

// BACKGROUND: 

// BACKGROUND: 协同编辑时，若协同者在同一段落的本地选区之前编辑，会导致本地选区变化

// BACKGROUND: 在文本型链接的最后 delete 时，链接文字变少了，但选区不会发生变化

// BACKGROUND：DOM 更新后，若选区数据（key）未发生变化，而选区对应的空间（Path）变化，则光标差异源于协同编辑，需要做滚动调整

// BMP uses a single level lookup.  BMP index starts at offset 0 in the index.

// Base must be set if superscript or subscript are set per logic above,

// Based on John Resig's `tmpl` implementation

// Based on http://stackoverflow.com/a/22747272/680742, the browser with

// Based on the previous check, one of these must be true

// Basic support for macro definitions:

// Because for <= 15.x versions this might be a "prevContext" object.

// Because get-snapshot might return a falsy value.

// Because they would work differently between older and newer (16.3+) versions of React.

// Because we've tested for what is !optional, this block won't

// Before determining what spaces to insert, perform bin cancellation.

// Before version 0.9, \vec used the combining font glyph U+20D7.

// Bengali (0980–09FF)

// Big List of Colors

// Binary Operators

// Binary operators change to ordinary symbols in some contexts.

// Bind methods

// Binding "this" is important for shallow renderer support.

// Binds and throttles `this._checkForIntersections`.

// Blackboard bold and script letters in Unicode range

// Blank out any \df@tag to avoid spurious "Duplicate \tag" errors

// Block ends with either:

// Block quotes

// Block 元素顶部的偏移，主要处理 border-radius 情况。

// Block-level tag containing an inline tag.

// Boolean flags that determine if this delimiter could open or close

// Box manipulation

// Breaks the given string into an array of grapheme cluster strings

// Brian Grinstead, MIT License

// Buffer#write(string)

// Bug of `async-validator`

// Build a TeX annotation of the source

// Build a relation or stacked op by placing one symbol on top of another

// Build rules lookup cache

// Build schema condition

// Build the accent

// Build the argument groups in the appropriate style.

// Build the base group

// Build the environment object. Arguments and other information will

// Build the expression contained in the tree

// Build the final group as a vlist of the possible subscript, base,

// Build the inner expression

// Build the inner group in the cramped style.

// Build the inner group.

// Build the lower group

// But .toLowerCase() doesn't change ϑ (it's already lowercase),

// But browsers, especially Safari, are not consistent in how they

// But catch any exceptions thrown by function, treating them

// But it would also add the overhead of a lot of components/fibers.

// But near the edges of the list, this doesn't hold true.

// But since styles are only cached while scrolling is in progress-

// But since we support them in text mode, we need to return

// But the span still has an HTML line height.

// But we only need to account for its size when it's actually visible.

// But, if we have new wrapper props, those might change the child props, so we have to recalculate things.

// By not passing a deadline, all tasks will be run sync.

// CJK ideograms

// CJK symbols and punctuation, Hiragana, Katakana

// COMPAT: Because Chrome does not allow doucment.body.scrollTop, we're

// COMPAT: 兼容在某些 Firefox 下，target 无法获取 `.closet()` 方法导致 crash

// COMPAT: 如果 event target 是 Text Node，则判断其父节点

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/components/receiversParagraph/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/components/subjectParagraph/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/components/textParagraphFactory.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/constants.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/locale.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/calendarCard/uitls/preventDefaultOnClick.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/actions/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/commands/clearAloneTables.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/commands/deleteColumn.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/commands/insertColumns.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/commands/removeInvalidCells.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/components/Column.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/components/Table.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/onCangjieSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/onCut.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/onKeyDown.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/placeholder.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/renderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/actions/addNewComment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/actions/cancelComment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/actions/newCommentClick.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commands/setActiveId.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commands/setComments.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commands/setSidebarVisible.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commentPosition/getRowTopFromPoint.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commentPosition/positionCache.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/common/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/common/pendingIDs.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/BubblesNew.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/CommentBottomBar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/CommentInlinePanel.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/HoverEffect.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/commentSidebar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/commentView.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/floatButton.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/popupView.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/simplePopup/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/components/simplePopup/textInput.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/constants.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/contextMenu.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onCangjieCopyOrCut.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onCangjieInput.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onCangjieSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onKeyDown.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/onMouseMove.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/renderContent.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/renderEditable.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/renderMark.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/renderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/useAutoBlur.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/canComment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/getActiveId.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/getComments.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/getSiblings.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/isAutoFocus.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/isSidebarVisible.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/blockEvent.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/constants.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/filterFragment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/findCommentPostion.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/hashCode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/marksToDecorations.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/readonlySerializer.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/requestIdle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/useContentIds.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/utils/useResizer.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/docStyle/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/docStyle/styles/getBlocksStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/docStyle/styles/getContentStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/docStyle/utils/getBlockStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/docStyle/utils/getDocDefaultsStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/components/audio/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/groupFactory/components/group.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/groupFactory/handlers/createShouldComponentUpdate.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/handlers/createAutoUnfold.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/handlers/createCommentShow.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/helpers.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/hoverBlock/getBlock.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/hoverBlock/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/hr/lineConfig.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/imTag/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/components/imageBorder.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/components/types.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/imageManager.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/getBorder.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/getImageType.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/getReloadSrc.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/isNodeInTable.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/isValidNumber.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/image/utils/loadImg.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/link/getLinkSz.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/link/isLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/measure.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/transformNumber/arabic2Darabic.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/transformNumber/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/handlers/createGroupNodes.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/handlers/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/handlers/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/marks/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/marks/renderMark.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/mention/components/mention.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/commands.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/components/Deleted.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/components/RefBlockToolbar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/components/RefBlockToolbarCopy.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/components/RefBlockToolbarHost.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/components/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/styles.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refblock/utils/dom.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refer/Refer.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refer/convertMarks.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/refer/getFileName4Show.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/sticker/utils/getStickerStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/components/placeholder.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/handlers/createGroupNodes.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/handlers/createOnCangjieSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/handlers/createRenderMark.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/handlers/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/queries/range.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/commands/setColsWidthInjection.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/commands/setTableMinColsWidthData.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/components/tableCell.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/handlers/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/queries/calcMinTableColWidth.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/queries/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/utils/getPositionOfCell.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/utils/isTable.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/textBackground/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/styledComponents.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/fonts.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/globalStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/Cache.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/copyToClipboard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/createHeadingId.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/formats/ind.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/nodeTypes.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/singleTableCell.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/components/placeholder/PlaceholderInlineToolbar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/components/quickInsert/commonPanel.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/components/toolbar/toolbarRenderNext.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/locales/zh_CN.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/basic/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/basic/commands/insertBlockWithoutExtraBlank.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/basic/queries/isCollapsedInBlockVoid.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/ClipboardData.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/ClipboardPad.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/commands/deleteAtRange.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/commands/insertFragment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/commands/setDecorations.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/handlers/createOnCangjieCopyOrCut.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/handlers/createOnCangjiePaste.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/handlers/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/handlers/onCangjieInput.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/alarmTimeoutMonitor.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/canCopyOrCut.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/dealWithFragmentOnCopy.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/filterAndNormalize.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/getMarksFragment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/getMatchFragment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/getStartPoint.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/hideCustomPasteButton.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/hidePasteButton.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/normalize.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/restructFragment.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/common/utils/isParagraph.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/commands/insertCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/commands/setCardData.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/commands/setCardInjection.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/handlers/createOnAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/handlers/createOnCangjiePaste.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/cardFactory/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/command/insertTag.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/createRenderContent.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/handlers/createOnCangjiePaste.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/handlers/createOnKeyDown.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/queries/getTagAtFocusEdge.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/factory/tagFactory/queries/isSelectionInTag.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/commands/setInjection.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/components/content.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/components/icon.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/components/textarea.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/components/wrapper.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/handlers/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/formula/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/history/actions.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/image/utils/inSelectionInImage.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/createInsertLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/createSaveLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/createUpdatePureLinkWithCardInfo.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/injectCardInfo.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/removeinjectedCardInfo.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/switchLinkDisplayType.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/unwrapLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/unwrapPureLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/updateLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/updatePureLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/wrapLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/AnimatePortal.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/linkPortal/linkPortal.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/linkPortal/useToolbarPortal.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/linkToolbar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/pureLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/quickInsertPanel.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/createRenderMark.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/handlers/createOnCangjiePaste.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/handlers/createOnKeyDown.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/handlers/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/handlers/onCangjieCopyorCut.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/convertBlockLinkCardToDefaultBlock.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/convertBlockLinkCardToTextLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/convertPureLinkToBlockLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/convertTextLinkToBlockLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/insertBlockLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/removeLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/unwrapLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/commands/updateLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/utils/buildLinkCardBlock.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/utils/fetchLinkData.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/menubar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/queries/getText.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/queries/isLinkCardSelected.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/quickInsertConfig.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/sidebar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/getCardInfo.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/getLinkCardState.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/hasLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/hotKeyTips.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/isLink.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/isSelectionInLinkCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/list/utils/getCurrentItem.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/list/utils/isSelectionInListSymbol.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/mention/utils/isSelectionInMention.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/commands/insertSticker.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/commands/moveCaret.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/commands/setRange.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/commands/setSticker.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/commands/setStickerPanelVisible.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/components/stickerMenu.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/components/stickerPanel.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/components/stickerPanelWrapper.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/components/stickerWrapper.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/handlers/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/renderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/utils/createOnClickSticker.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/utils/getCaretPosition.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/utils/getMarksAtAnchor.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/sticker/utils/moveCaretToText.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/table/utils/createEmptyTableCell.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/table/utils/generateRangesFromTableSelection.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/utils/editor/constants.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-bi/dist-web/utils/toHash.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-cangjie/dist-web/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/createSerializer.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/htmlToJsonML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/jsonMLToHTML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/jsonMLToNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/jsonMLToValue.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/heading2.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/heading3.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/heading4.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/heading5.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/heading6.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/nodeToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/nodeToText.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/basic/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/blockquote/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/bold/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/br/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/jsonMLToHTML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/valueToText/calendar.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/valueToText/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/valueToText/link.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/valueToText/projectCard.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/valueToText/url.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/htmlToJsonML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/htmlToJsonML/parseFromWeb.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/htmlToJsonML/parseFromYuQue.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/htmlToJsonML/utils.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/jsonMLToHTML/colorBlocks.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/jsonMLToHTML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/valueToText/colorBlocks.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/valueToText/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/valueToText/templateButton.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/document/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/embed/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/embed/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/heading/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/htmlToJsonML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/htmlToJsonML/parseFromWeb.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/htmlToJsonML/utils.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/image/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/image/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/inlineCode/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/italic/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/link/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/link/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/htmlToJsonML/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/htmlToJsonML/parseFromMsWord.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/htmlToJsonML/parseFromWeb.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/htmlToJsonML/utils/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/mention/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/paragraph/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/paragraph/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/paragraph/utils/getParagraphTagStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/sticker/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/sticker/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/strike/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/htmlToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/jsonMLToHTML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/valueToText/formula.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/valueToText/group.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/valueToText/im.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/valueToText/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/with.formula.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/text/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/underline/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/valueJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/vertAlign/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/serializerValueJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/textToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/utils/putListOrder.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/valueToJsonML.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-mo/dist-web/valueToText.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-utils/src/calcRotation.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-utils/src/generateStyle.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-utils/src/getRectOfNodeFirstText.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-utils/src/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/createCustomizedZhiPlugins.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/audio/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/audio/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/audio/mobile/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/audio/mobile/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/basic/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/calendarCard/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/calendarCard/shanhui/FlashCalendarCardContainer.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/callout/components/callout.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/callout/handlers/createGroupNodes.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/callout/handlers/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/callout/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/columns/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/comment/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/contextMenu/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/cardFactory/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/commands/fold.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/handlers/createOnAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/handlers/createOnCangjieSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/groupTag/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/heading/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/headingGroup/handlers/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/headingGroup/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/image/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/image/mobile/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/link/link.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/mention/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/mention/mention.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/refblock/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/refblock/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/refblock/onAction.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/refer/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/sticker/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/sticker/stickerWrapper.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/subject/components/content.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/subject/components/subject.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/subject/handlers/createRenderNode.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/subject/index.js

// CONCATENATED MODULE: ./node_modules/@ali/4ever-zhi/dist-web/reader.js

// CONCATENATED MODULE: ./node_modules/@ali/we-design/locale/zh-CN.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/footer/biz/ratioSelect/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/footer/box/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/footer/footerGroup/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/galleryContainer/fontSizeMaxSelect/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconButton/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconMenu/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconSelect/HeadingSimpleSelect/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconSelect/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconSelect/lineHeightSelect/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconSelect/sortDropdown/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconSelect/verticalAlignSelect/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/layout/spaceBetweenLayout/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/layout/toolbar/RowWrapper.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/layout/toolbar/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/BorderPicker/BorderPicker.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/BorderPicker/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/FilterButton/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/ClearColorIcon.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/ColorBlockItem.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/ColorBoxArt.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/ColorPalette.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/ColorPicker.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/FillColorPicker.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/Sketch.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/SketchFields.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/common/Alpha.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/common/EditableInput.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/helpers/alpha.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/helpers/color.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/splitButton/colorPicker/sketch/helpers/hue.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/textSelect/fontSizeSelect/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/textSelect/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/textSelect/numberFormatSelect/styled.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/cardLayout/placeholder-old/index.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/onIdle/idleQueue.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/pastePanel/useDelayedState.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/dist-web/utils/FontDetector.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/node_modules/uuid/dist/esm-browser/regex.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/node_modules/uuid/dist/esm-browser/stringify.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/node_modules/uuid/dist/esm-browser/v4.js

// CONCATENATED MODULE: ./node_modules/@ali/we-toolbar/node_modules/uuid/dist/esm-browser/validate.js

// CONCATENATED MODULE: ./node_modules/@ali/we-ui/locale/zh-CN.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/construct.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_Hash.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_ListCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_MapCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_SetCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_Stack.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayAggregator.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEachRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEvery.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayReduceRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arraySample.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arraySampleSize.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayShuffle.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_asciiToArray.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_asciiWords.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_assignMergeValue.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAggregator.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAssignIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseClamp.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseConforms.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseConformsTo.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseDelay.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseEvery.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseExtremum.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFill.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFilter.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFindKey.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseForOwn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseForOwnRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFunctions.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseGt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseHasIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIndexOfWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseInverter.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseInvoke.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsEqual.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsRegExp.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseKeys.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseKeysIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseLt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMean.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMerge.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMergeDeep.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseNth.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseOrderBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_basePick.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_basePropertyDeep.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_basePullAll.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseRandom.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseRange.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseReduce.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseRepeat.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSample.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSampleSize.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseShuffle.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSome.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortedIndex.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortedIndexBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortedUniq.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSum.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseToPairs.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseUpdate.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseValues.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseWrapperValue.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseXor.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_baseZipObject.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_castArrayLikeObject.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_castFunction.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_cloneDataView.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_cloneRegExp.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_compareAscending.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_compareMultiple.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_copySymbols.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_copySymbolsIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_countHolders.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createAggregator.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createBaseEach.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createCurry.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createFind.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createInverter.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createMathOperation.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createOver.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createPadding.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createPartial.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createRange.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createRelationalOperation.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_createToPairs.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_customDefaultsAssignIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_customDefaultsMerge.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_customOmitClone.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_escapeStringChar.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_getView.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_getWrapDetails.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hasUnicodeWord.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashDelete.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_insertWrapDetails.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_iteratorToArray.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_lazyClone.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_lazyReverse.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_lazyValue.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheDelete.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_nativeKeysIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_safeGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_setCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_setToPairs.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_setWrapToString.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_shuffleSelf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stackClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stackDelete.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stackGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stackHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_strictLastIndexOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stringSize.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stringToArray.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stringToPath.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_unicodeSize.js

// CONCATENATED MODULE: ./node_modules/lodash-es/assignInWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/assignWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/attempt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/bindKey.js

// CONCATENATED MODULE: ./node_modules/lodash-es/castArray.js

// CONCATENATED MODULE: ./node_modules/lodash-es/chain.js

// CONCATENATED MODULE: ./node_modules/lodash-es/clamp.js

// CONCATENATED MODULE: ./node_modules/lodash-es/cloneWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/commit.js

// CONCATENATED MODULE: ./node_modules/lodash-es/compact.js

// CONCATENATED MODULE: ./node_modules/lodash-es/concat.js

// CONCATENATED MODULE: ./node_modules/lodash-es/conforms.js

// CONCATENATED MODULE: ./node_modules/lodash-es/conformsTo.js

// CONCATENATED MODULE: ./node_modules/lodash-es/countBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/create.js

// CONCATENATED MODULE: ./node_modules/lodash-es/defaultTo.js

// CONCATENATED MODULE: ./node_modules/lodash-es/defer.js

// CONCATENATED MODULE: ./node_modules/lodash-es/delay.js

// CONCATENATED MODULE: ./node_modules/lodash-es/differenceWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/drop.js

// CONCATENATED MODULE: ./node_modules/lodash-es/dropRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/dropRightWhile.js

// CONCATENATED MODULE: ./node_modules/lodash-es/endsWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/every.js

// CONCATENATED MODULE: ./node_modules/lodash-es/fill.js

// CONCATENATED MODULE: ./node_modules/lodash-es/filter.js

// CONCATENATED MODULE: ./node_modules/lodash-es/findKey.js

// CONCATENATED MODULE: ./node_modules/lodash-es/findLastIndex.js

// CONCATENATED MODULE: ./node_modules/lodash-es/findLastKey.js

// CONCATENATED MODULE: ./node_modules/lodash-es/flatMap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/flatMapDeep.js

// CONCATENATED MODULE: ./node_modules/lodash-es/flatMapDepth.js

// CONCATENATED MODULE: ./node_modules/lodash-es/flattenDepth.js

// CONCATENATED MODULE: ./node_modules/lodash-es/flip.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forEach.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forEachRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forInRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forOwn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/forOwnRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/fromPairs.js

// CONCATENATED MODULE: ./node_modules/lodash-es/functions.js

// CONCATENATED MODULE: ./node_modules/lodash-es/functionsIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/groupBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/has.js

// CONCATENATED MODULE: ./node_modules/lodash-es/hasIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/head.js

// CONCATENATED MODULE: ./node_modules/lodash-es/inRange.js

// CONCATENATED MODULE: ./node_modules/lodash-es/includes.js

// CONCATENATED MODULE: ./node_modules/lodash-es/indexOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/initial.js

// CONCATENATED MODULE: ./node_modules/lodash-es/intersectionBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/invert.js

// CONCATENATED MODULE: ./node_modules/lodash-es/invertBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/invokeMap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isArguments.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isBoolean.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isDate.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isElement.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isEqualWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isFinite.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isInteger.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isMatch.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isMatchWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isNaN.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isNative.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isNull.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isRegExp.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isSafeInteger.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isUndefined.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isWeakMap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isWeakSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/iteratee.js

// CONCATENATED MODULE: ./node_modules/lodash-es/join.js

// CONCATENATED MODULE: ./node_modules/lodash-es/keyBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/keysIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/lastIndexOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/lodash.js

// CONCATENATED MODULE: ./node_modules/lodash-es/lowerCase.js

// CONCATENATED MODULE: ./node_modules/lodash-es/map.js

// CONCATENATED MODULE: ./node_modules/lodash-es/mapKeys.js

// CONCATENATED MODULE: ./node_modules/lodash-es/mapValues.js

// CONCATENATED MODULE: ./node_modules/lodash-es/max.js

// CONCATENATED MODULE: ./node_modules/lodash-es/maxBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/mean.js

// CONCATENATED MODULE: ./node_modules/lodash-es/meanBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/mergeWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/min.js

// CONCATENATED MODULE: ./node_modules/lodash-es/minBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/mixin.js

// CONCATENATED MODULE: ./node_modules/lodash-es/negate.js

// CONCATENATED MODULE: ./node_modules/lodash-es/next.js

// CONCATENATED MODULE: ./node_modules/lodash-es/nth.js

// CONCATENATED MODULE: ./node_modules/lodash-es/nthArg.js

// CONCATENATED MODULE: ./node_modules/lodash-es/omitBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/orderBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/overArgs.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pad.js

// CONCATENATED MODULE: ./node_modules/lodash-es/padEnd.js

// CONCATENATED MODULE: ./node_modules/lodash-es/padStart.js

// CONCATENATED MODULE: ./node_modules/lodash-es/parseInt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/partial.js

// CONCATENATED MODULE: ./node_modules/lodash-es/partialRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/partition.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pickBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/plant.js

// CONCATENATED MODULE: ./node_modules/lodash-es/property.js

// CONCATENATED MODULE: ./node_modules/lodash-es/propertyOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pullAll.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pullAllBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pullAllWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/pullAt.js

// CONCATENATED MODULE: ./node_modules/lodash-es/random.js

// CONCATENATED MODULE: ./node_modules/lodash-es/rearg.js

// CONCATENATED MODULE: ./node_modules/lodash-es/reduce.js

// CONCATENATED MODULE: ./node_modules/lodash-es/reduceRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/reject.js

// CONCATENATED MODULE: ./node_modules/lodash-es/remove.js

// CONCATENATED MODULE: ./node_modules/lodash-es/repeat.js

// CONCATENATED MODULE: ./node_modules/lodash-es/replace.js

// CONCATENATED MODULE: ./node_modules/lodash-es/rest.js

// CONCATENATED MODULE: ./node_modules/lodash-es/result.js

// CONCATENATED MODULE: ./node_modules/lodash-es/reverse.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sample.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sampleSize.js

// CONCATENATED MODULE: ./node_modules/lodash-es/set.js

// CONCATENATED MODULE: ./node_modules/lodash-es/setWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/shuffle.js

// CONCATENATED MODULE: ./node_modules/lodash-es/slice.js

// CONCATENATED MODULE: ./node_modules/lodash-es/snakeCase.js

// CONCATENATED MODULE: ./node_modules/lodash-es/some.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedIndex.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedIndexBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedIndexOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedLastIndex.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedLastIndexBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedLastIndexOf.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedUniq.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sortedUniqBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/split.js

// CONCATENATED MODULE: ./node_modules/lodash-es/spread.js

// CONCATENATED MODULE: ./node_modules/lodash-es/startsWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/stubObject.js

// CONCATENATED MODULE: ./node_modules/lodash-es/stubString.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sum.js

// CONCATENATED MODULE: ./node_modules/lodash-es/sumBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/tail.js

// CONCATENATED MODULE: ./node_modules/lodash-es/take.js

// CONCATENATED MODULE: ./node_modules/lodash-es/takeRight.js

// CONCATENATED MODULE: ./node_modules/lodash-es/takeWhile.js

// CONCATENATED MODULE: ./node_modules/lodash-es/tap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/template.js

// CONCATENATED MODULE: ./node_modules/lodash-es/thru.js

// CONCATENATED MODULE: ./node_modules/lodash-es/toIterator.js

// CONCATENATED MODULE: ./node_modules/lodash-es/toLength.js

// CONCATENATED MODULE: ./node_modules/lodash-es/toLower.js

// CONCATENATED MODULE: ./node_modules/lodash-es/toPath.js

// CONCATENATED MODULE: ./node_modules/lodash-es/toUpper.js

// CONCATENATED MODULE: ./node_modules/lodash-es/transform.js

// CONCATENATED MODULE: ./node_modules/lodash-es/trimEnd.js

// CONCATENATED MODULE: ./node_modules/lodash-es/truncate.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unary.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unescape.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unionBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/uniqBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/uniqWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unset.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unzip.js

// CONCATENATED MODULE: ./node_modules/lodash-es/unzipWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/update.js

// CONCATENATED MODULE: ./node_modules/lodash-es/updateWith.js

// CONCATENATED MODULE: ./node_modules/lodash-es/upperCase.js

// CONCATENATED MODULE: ./node_modules/lodash-es/values.js

// CONCATENATED MODULE: ./node_modules/lodash-es/valuesIn.js

// CONCATENATED MODULE: ./node_modules/lodash-es/without.js

// CONCATENATED MODULE: ./node_modules/lodash-es/words.js

// CONCATENATED MODULE: ./node_modules/lodash-es/wrap.js

// CONCATENATED MODULE: ./node_modules/lodash-es/wrapperChain.js

// CONCATENATED MODULE: ./node_modules/lodash-es/wrapperReverse.js

// CONCATENATED MODULE: ./node_modules/lodash-es/wrapperValue.js

// CONCATENATED MODULE: ./node_modules/lodash-es/xorBy.js

// CONCATENATED MODULE: ./node_modules/lodash-es/zipObject.js

// CONCATENATED MODULE: ./node_modules/lodash-es/zipObjectDeep.js

// CONCATENATED MODULE: ./node_modules/lodash-es/zipWith.js

// CONCATENATED MODULE: ./node_modules/styled-components/dist/styled-components.browser.esm.js

// CONCATENATED MODULE: ./node_modules/styled-components/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js

// CONCATENATED MODULE: ./node_modules/styled-components/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js

// CONCATENATED MODULE: ./src/MacroExpander.js

// CONCATENATED MODULE: ./src/SourceLocation.js

// CONCATENATED MODULE: ./src/buildHTML.js

// CONCATENATED MODULE: ./src/buildTree.js

// CONCATENATED MODULE: ./src/defineEnvironment.js

// CONCATENATED MODULE: ./src/delimiter.js

// CONCATENATED MODULE: ./src/environments.js

// CONCATENATED MODULE: ./src/environments/array.js

// CONCATENATED MODULE: ./src/functions.js

// CONCATENATED MODULE: ./src/functions/accentunder.js

// CONCATENATED MODULE: ./src/functions/arrow.js

// CONCATENATED MODULE: ./src/functions/char.js

// CONCATENATED MODULE: ./src/functions/color.js

// CONCATENATED MODULE: ./src/functions/cr.js

// CONCATENATED MODULE: ./src/functions/enclose.js

// CONCATENATED MODULE: ./src/functions/environment.js

// CONCATENATED MODULE: ./src/functions/font.js

// CONCATENATED MODULE: ./src/functions/genfrac.js

// CONCATENATED MODULE: ./src/functions/horizBrace.js

// CONCATENATED MODULE: ./src/functions/href.js

// CONCATENATED MODULE: ./src/functions/htmlmathml.js

// CONCATENATED MODULE: ./src/functions/kern.js

// CONCATENATED MODULE: ./src/functions/lap.js

// CONCATENATED MODULE: ./src/functions/math.js

// CONCATENATED MODULE: ./src/functions/mathchoice.js

// CONCATENATED MODULE: ./src/functions/mclass.js

// CONCATENATED MODULE: ./src/functions/op.js

// CONCATENATED MODULE: ./src/functions/operatorname.js

// CONCATENATED MODULE: ./src/functions/ordgroup.js

// CONCATENATED MODULE: ./src/functions/overline.js

// CONCATENATED MODULE: ./src/functions/phantom.js

// CONCATENATED MODULE: ./src/functions/raisebox.js

// CONCATENATED MODULE: ./src/functions/rule.js

// CONCATENATED MODULE: ./src/functions/sizing.js

// CONCATENATED MODULE: ./src/functions/smash.js

// CONCATENATED MODULE: ./src/functions/sqrt.js

// CONCATENATED MODULE: ./src/functions/styling.js

// CONCATENATED MODULE: ./src/functions/symbolsOp.js

// CONCATENATED MODULE: ./src/functions/symbolsOrd.js

// CONCATENATED MODULE: ./src/functions/symbolsSpacing.js

// CONCATENATED MODULE: ./src/functions/tag.js

// CONCATENATED MODULE: ./src/functions/text.js

// CONCATENATED MODULE: ./src/functions/underline.js

// CONCATENATED MODULE: ./src/functions/verb.js

// CONCATENATED MODULE: ./src/mathMLTree.js

// CONCATENATED MODULE: ./src/parseNode.js

// CONCATENATED MODULE: ./src/parseTree.js

// CONCATENATED MODULE: ./src/spacingData.js

// CONCATENATED MODULE: ./src/svgGeometry.js

// CONCATENATED MODULE: ./src/symbols.js

// CONCATENATED MODULE: ./src/units.js

// CONCATENATED MODULE: ./src/utils.js

// CONCATENATED MODULE: ./src/wide-character.js

// CONCATENATED MODULE: ./submodules/katex-fonts/fontMetricsData.js

// CSS defines `.katex .accent .accent-body:not(.accent-full) { width: 0 }`

// CSS language prefix for fenced blocks

// CSS-based MathML spaces (\nobreak, \allowbreak) are ignored

// Cache last tested result. Used to skip repeating steps on next `match` call.

// Cached rule chains.

// Calcuate the minimal height that the delimiter can have.

// Calculate its height and depth

// Calculate the actual line width.

// Calculate the clearance between the body and line

// Calculate the depth

// Calculate the minimum size for the \surd delimiter

// Calculate the offset of the nodes before the highest child.

// Calculate the offset positions

// Calculate the shift, width, and height of the rule, and account for units

// Calculates the intersection ratio.

// Call the groupBuilders function

// Call this.constructor.gDSFP to support sub-classes.

// Can be called with any tinycolor input

// Can be useful on practice: https://github.com/markdown-it/markdown-it/issues/54

// Can typed array instances can be augmented?

// Capture values for checking if and when this component unmounts

// Case 1

// Case 2

// Case 2: line is not inside the blockquote, and the last line was empty.

// Case 3: another tag found.

// Case-insensitive comparison should treat all of them as equivalent.

// Catch \hline outside array environment

// Chain can be empty, if rules disabled. But we still have to return Array.

// Changes from joyent/node:

// Char code of the starting marker (number).

// Characters omitted from Unicode range 1D400–1D7FF

// Characters that are never ever allowed in a hostname.

// Check bullet

// Check for circular references and return its corresponding clone.

// Check for extra closing math delimiters

// Check for underline in setext header

// Check hr marker

// Check if NameMap value is touched

// Check if a `mark` is atomic

// Check if a `node` is selectable.

// Check if a `node` is void.

// Check if any dependent targets are still remaining.

// Check if each node (or one of its ancestors) is already contained in the

// Check if module is in cache

// Check if the delimiter at this size works for the given height.

// Check if the side of `node` is selectable

// Check if there's a frame that can be navigated to.

// Check if we need to add a newline after this tag

// Check if we need to split the node.

// Check start

// Check that cyclic values are equal.

// Check the next token

// Check to see if string passed in is a percentage

// Checks at most 3 bytes at the end of a Buffer in order to detect an

// Checks if the argument is a font family or a font style.

// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a

// Chinese and Japanese.

// Choose a taller image when there are more characters.

// Chrome does not seem to adhere; its scrollLeft values are positive (measured relative to the left).

// Chrome 不识别 family Light，需要换成 postScriptName-light

// Class component，from rc-utils ?? 比较旧的react版本？

// Clean up state

// Clean up store value if not preserve

// Clean up tokens after emphasis and strikethrough postprocessing:

// Clean-up the animation after the specified delay

// Cleanup

// Cleanup code by stripping empty strings.

// Clear style cache after state update has been committed.

// Clear the existing job if exists to avoid duplicates

// Code block (4 spaces padded)

// Coerce booleans to `1` or `0` and dates to milliseconds.

// Coerce regexes to strings and treat strings, primitives and objects,

// Coerce to Number.

// Combination Functions

// Common case.

// Commonmark default options

// Compare stringify in case it's nest object

// Compare the position of one node against another node in any other document.

// Compile each schema

// Compile postponed aliases

// Compose partial arguments.

// Compose partial right arguments.

// Compute height and depth of this chunk.

// Compute the number of copies of the repeat symbol we will need

// Concatenate <mn>...</mn> followed by <mi>.</mi>

// Concatenate adjacent <mn>s

// Concatenate adjacent <mtext>s

// Concatenate expansion onto top of stack.

// Consistency check for valid UUID.  If this throws, it's likely due to one

// Consolidate function names into symbol characters.

// Consume the command token after possibly switching to the

// Continue while either there are more columns or more column

// Conversion Functions

// Convert '\n' in paragraphs into <br>

// Convert both to x & y since wheel only happened on PC

// Convert into [0, 1] range if it isn't already

// Convert straight quotation marks to typographic ones

// Convert the input in UCS-2 to an array of Unicode code points.

// Converts a decimal to a hex value

// Converts a hex value to a decimal

// Converts an HSL color value to RGB.

// Converts an HSV color value to RGB.

// Converts an RGB color to hex

// Converts an RGB color value to HSL.

// Converts an RGB color value to HSV

// Converts an RGBA color plus alpha transparency to hex

// Converts an RGBA color to an ARGB Hex8 string

// Copy 0 bytes; we're done

// Copy bytes to buffer, if provided

// Copy properties from require('buffer')

// Copy static methods from Buffer

// Copyright (C) and registered (R) symbols. Use raw symbol in MathML.

// Copyright Joyent, Inc. and other Node contributors.

// Core state object

// Count argument specifiers, and check they are in the order #1 #2 ...

// Count leftright depth (for \middle errors)

// Create a group namespace for the math expression.

// Create a list of direct children siblings of parent that fall in the

// Create a lookup array where anything but characters in `chars` string

// Create a new FormStore if not provided

// Create a new list of actual children at the correct offsets

// Create a new macro expander (gullet) and (indirectly via that) also a

// Create a new module (and put it into the cache)

// Create a span with inline SVG for the element.

// Create a strut that is taller than any list item. The strut is added to

// Create cache

// Create caches

// Create lookup table for `toString('hex')`

// Create the line above the body

// Create the line to go below the body

// Create the stretchy element

// Currently restricted by `md.validateLink()` to http/https/ftp

// Currently without astral characters support.

// Currently, the group and options passed here do not contain

// Custom Khan Academy colors, should be moved to an optional package

// Cut head if cache was used

// Cyrillic

// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR

// DOM-Level-1-compliant structure

// DOM-Level-1-compliant structure.

// Decide what font to render the symbol in by its entry in the symbols

// Decide what sequence to use

// Decides on a style for cells in an array according to whether the given

// Decode a generalized variable-length integer into `delta`,

// Decode in chunks to avoid "call stack size exceeded".

// Decode percent-encoded string.

// Deconstruct ligatures in monospace fonts (\texttt, \tt).

// Default \arraystretch from lttab.dtx

// Default math font, "mathnormal" and "boldsymbol" are missing because they

// Default to a / for pathname if none exists. This normalizes the URL

// Default to a dummy "batch" implementation that just runs the callback

// Define \Bbbk with a macro that works in both HTML and MathML.

// Define a newOptions that removes the effect of size changes such as \Huge.

// Define dynamic patterns

// Defined via punctuation & spaces to save space

// Delimiter functions

// Delims built here should not stretch vertically.

// Dependencies update

// Depending on the sequence element we decided on, call the

// Description的引用

// Detect list type and position after marker

// Detect users move selection by external keyboard arrow keys under iOS@<13

// Devanagari (0900–097F)

// Direct use of these functions is discouraged and may break someday.

// Disabled until https://github.com/bgrins/TinyColor/issues/254

// Disabled?

// Distinguish between actual "data" props that were passed to the wrapper component,

// Do minimal possible changes by default. Need to collect feedback prior

// Do not cache `Buffer.isEncoding` when checking encoding names as some

// Do not forward TransitionGroup props to primitive DOM nodes

// Do not handle out of range

// Do not throw in console

// Do nothing

// Do nothing yet.

// Does the accent need to shift for the skew of a character?

// Doesn't matter what this is.

// Don't allow break if \nobreak among the post-operator glue.

// Don't allow single-level domains, because of false positives like '//test'

// Don't confuse with unicode punctuation !!! It lacks some chars in ascii range.

// Don't let the range of [0,255] come back in [0,1].

// Don't pass through non HTML tags through to HTML elements

// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.

// Don't trigger in componentDidMount

// Don't use UCS-2.

// Double + single quotes replacement pairs, when typographer enabled,

// Double check webkit in userAgent just in case we are in a worker

// Dummy spans for determining spacings between surrounding atoms.

// EOF

// EOF, ^, _, {, }, etc.

// EOL -> fail

// ESC 关闭

// ESC 退出

// ESM COMPAT FLAG

// EXPORTS

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/components/errorBoundary.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/components/placeholder/inlinePlaceholder.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/hooks/useScrollableContainer.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/hooks/useScrollableContent.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/code/constants/themes.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/actions/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/models/marks.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/types.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/components/common/embedCard/embedFailedCard.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/components/common/embedCard/styled.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/components/common/embedDownloadButton/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/components/common/embedFileCardWrapper/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/embed/fileTypeHelper.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/actions.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/components/title.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/handlers/createRenderMark.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/indent/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/index.js + 33 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/generateSymbol.js + 3 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/listStyleMapping.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/measure.js + 2 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/putListOrder.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/transformNumber/arabic2Letter.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/list/transformNumber/arabic2Roma.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/constants.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/utils/calcMultibarPosition.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/utils/getAttributes.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/utils/isInListGroup.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/marks/components/marks.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/sticker/constants.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/utils.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/actions.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/table/contexts/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/styledComponents.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/basic.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/code.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/heading.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/index.js + 12 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/inlineCode.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/mention.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/theme/spacing.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/formats/gradientColor.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/formats/shd.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/isEmptyParagraph.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/dist-web/utils/toUnits.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/node_modules/rc-progress/lib/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bamboo/node_modules/react-transition-group/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/components/toolbar/interface.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/hooks/useOnClickOutside.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/locales/zh_CN.js + 3 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/basic/queries/isCollapsedInInlineVoid.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/ClipboardPad.js + 4 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/actions.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/clipboardManager/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/filter.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/getHtmlFromValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/normalize.js + 3 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/common/mo.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/removeLink.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/commands/removePureLink.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/components/styled.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/linkCard/actions.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/getPosition.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/isLinkCard.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/isSelectionInLink.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/plugins/link/utils/linkStore.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/utils/createClipboardManager.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-bi/dist-web/utils/createStore.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-cangjie/dist-web/index.js + 4 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-logger/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/createMoPlugins.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/htmlToJsonML/State.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/htmlToJsonML/htmlFrom.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/card.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/code.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/container/container.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/heading/index.js + 6 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/hr.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/image.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/link.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/marks/fonts.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/marks/highlight.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/marks/sz.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/paragraph.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/refblock.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/sticker.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/table/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/models/tag.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/basic/index.js + 2 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/br/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/card/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/index.js + 7 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/code/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/container/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/document/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/document/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/embed/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/embed/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/index.js + 7 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/hr/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/image/index.js + 3 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/image/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/image/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/link/index.js + 5 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/link/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/link/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/list/index.js + 11 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/mention/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/mention/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/paragraph/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/paragraph/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/refblock/index.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/sticker/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/sticker/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/index.js + 6 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/table/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/tag/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/text/index.js + 3 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/text/jsonMLToValue.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/text/valueToJsonML.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/plugins/utils.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/serializer.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/strictSchema.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-mo/dist-web/utils/nodeTypes.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/getClosestContainerBlock.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/getInnerWidth.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/index.js + 4 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/jsonml.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/linkify.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/objectUtils.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-utils/src/sanitizeUrl.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/clipboard/index.js + 28 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/code/queries/lazyRenderStrategy.js + 2 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/index.js + 10 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/tagFactory/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/link/utils/getMo.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/list/createListItem.js + 6 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/paragraph/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/paragraph/paragraph.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/table/components/table.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/table/components/tableRow.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/plugins/table/createTablePluginWithRenderNode.js + 7 modules

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/dist-web/utils/getData.js

// EXTERNAL MODULE: ./node_modules/@ali/4ever-zhi/node_modules/@ali/we-biz-link-card/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/clipboard-manager/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-biz-link-card/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-design/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-icon/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconButton/AddLinkButton/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconButton/DeleteLinkButton/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/iconMenu/EmojiMenuButton/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/biz/layout/contexts.js

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/iconButton/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/iconMenu/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/iconSelect/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/common/textSelect/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/we-toolbar/dist-web/utils/consts.js

// EXTERNAL MODULE: ./node_modules/@ali/we-ui/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@ali/we-util/dist-node/index.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/construct.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js

// EXTERNAL MODULE: ./node_modules/debug/src/browser.js

// EXTERNAL MODULE: ./node_modules/fast-deep-equal/index.js

// EXTERNAL MODULE: ./node_modules/fastdom/fastdom.js

// EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js

// EXTERNAL MODULE: ./node_modules/htmlparser2/lib/index.js

// EXTERNAL MODULE: ./node_modules/is-hotkey/lib/index.js

// EXTERNAL MODULE: ./node_modules/is-url/index.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_Hash.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_LazyWrapper.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_ListCache.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_LodashWrapper.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_Map.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_MapCache.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_Set.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_SetCache.js + 2 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_Stack.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_Symbol.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_Uint8Array.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_WeakMap.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_apply.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayEach.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayFilter.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayIncludes.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayLikeKeys.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayMap.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayPush.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayReduce.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_arraySome.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_assignValue.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_assocIndexOf.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseAssign.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseAssignValue.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseClone.js + 8 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseCreate.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseDifference.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseFindIndex.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseFlatten.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseFor.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGet.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseIndexOf.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseIsNaN.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseIsNative.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseIteratee.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseKeys.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseLodash.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseMatches.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseMatchesProperty.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseMerge.js + 3 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_basePickBy.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseProperty.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_basePropertyOf.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseRest.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseSet.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseSetData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseSlice.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseTimes.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseToString.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUnary.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUniq.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUnset.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseWhile.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_castPath.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_castSlice.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_charsEndIndex.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_charsStartIndex.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneArrayBuffer.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneBuffer.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneTypedArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_composeArgs.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_composeArgsRight.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_copyArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_copyObject.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_coreJsData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createBaseFor.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createCaseFirst.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createCompounder.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createCtor.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createHybrid.js + 2 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_createRecurry.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_createWrap.js + 4 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_defineProperty.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_flatRest.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getAllKeys.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getAllKeysIn.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getFuncName.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getHolder.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getMapData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getNative.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getPrototype.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getSymbolsIn.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getTag.js + 2 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_hasPath.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_hasUnicode.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_initCloneObject.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_isIterateeCall.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_isKey.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_isPrototype.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_mapToArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_nativeCreate.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_nodeUtil.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_overArg.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_parent.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_realNames.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_replaceHolders.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_root.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_setData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_setToArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_setToString.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_setWrapToString.js + 3 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_shortOut.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_stringToArray.js + 2 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_stringToPath.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_toKey.js

// EXTERNAL MODULE: ./node_modules/lodash-es/before.js

// EXTERNAL MODULE: ./node_modules/lodash-es/camelCase.js

// EXTERNAL MODULE: ./node_modules/lodash-es/capitalize.js

// EXTERNAL MODULE: ./node_modules/lodash-es/cloneDeep.js

// EXTERNAL MODULE: ./node_modules/lodash-es/cond.js

// EXTERNAL MODULE: ./node_modules/lodash-es/constant.js

// EXTERNAL MODULE: ./node_modules/lodash-es/curry.js

// EXTERNAL MODULE: ./node_modules/lodash-es/debounce.js

// EXTERNAL MODULE: ./node_modules/lodash-es/deburr.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/difference.js

// EXTERNAL MODULE: ./node_modules/lodash-es/dropWhile.js

// EXTERNAL MODULE: ./node_modules/lodash-es/eq.js

// EXTERNAL MODULE: ./node_modules/lodash-es/escape.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/escapeRegExp.js

// EXTERNAL MODULE: ./node_modules/lodash-es/flatten.js

// EXTERNAL MODULE: ./node_modules/lodash-es/get.js

// EXTERNAL MODULE: ./node_modules/lodash-es/hasIn.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/identity.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isArguments.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/isArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isBuffer.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isEmpty.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isEqual.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isFunction.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isLength.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isMap.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/isNil.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isNumber.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isObjectLike.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isSet.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/isSymbol.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isTypedArray.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/keysIn.js + 2 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/memoize.js

// EXTERNAL MODULE: ./node_modules/lodash-es/merge.js

// EXTERNAL MODULE: ./node_modules/lodash-es/noop.js

// EXTERNAL MODULE: ./node_modules/lodash-es/now.js

// EXTERNAL MODULE: ./node_modules/lodash-es/omit.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/once.js

// EXTERNAL MODULE: ./node_modules/lodash-es/pick.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/property.js + 1 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/stubArray.js

// EXTERNAL MODULE: ./node_modules/lodash-es/stubTrue.js

// EXTERNAL MODULE: ./node_modules/lodash-es/takeRightWhile.js

// EXTERNAL MODULE: ./node_modules/lodash-es/throttle.js

// EXTERNAL MODULE: ./node_modules/lodash-es/toFinite.js

// EXTERNAL MODULE: ./node_modules/lodash-es/toInteger.js

// EXTERNAL MODULE: ./node_modules/lodash-es/toNumber.js

// EXTERNAL MODULE: ./node_modules/lodash-es/toPlainObject.js

// EXTERNAL MODULE: ./node_modules/lodash-es/toString.js

// EXTERNAL MODULE: ./node_modules/lodash-es/trim.js

// EXTERNAL MODULE: ./node_modules/lodash-es/uniq.js

// EXTERNAL MODULE: ./node_modules/lodash-es/uniqueId.js

// EXTERNAL MODULE: ./node_modules/lodash-es/upperFirst.js

// EXTERNAL MODULE: ./node_modules/lodash-es/words.js + 3 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/wrapperLodash.js

// EXTERNAL MODULE: ./node_modules/markdown-it-ins/index.js

// EXTERNAL MODULE: ./node_modules/markdown-it-sub/index.js

// EXTERNAL MODULE: ./node_modules/markdown-it/index.js

// EXTERNAL MODULE: ./node_modules/prop-types/index.js

// EXTERNAL MODULE: ./node_modules/react-dom/index.js

// EXTERNAL MODULE: ./node_modules/react-is/index.js

// EXTERNAL MODULE: ./node_modules/react/index.js

// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.js

// EXTERNAL MODULE: ./node_modules/styled-components/dist/styled-components.browser.esm.js + 2 modules

// EXTERNAL MODULE: ./node_modules/tinycolor2/esm/tinycolor.js

// EXTERNAL MODULE: ./node_modules/url-parse/index.js

// EXTERNAL MODULE: ./src/katex.less

// Each element contains [textsize, scriptsize, scriptscriptsize].

// Each element in the array tells if the line is dashed.

// Each type in the `if` statement corresponds to one of the ParseNode

// Edge case check for when the number of items decreases while a scroll is in progress.

// Edge cases where we actually want to encode the value to an empty

// Either this is the first call, activity has stopped and we're at the

// Empty buffer means no match

// Empty delimiters in \left and \right make null delimiter spaces.

// Enable HTML tags in source

// Enable \above{}

// Enable batched updates in our subscriptions for use

// Enable some language-neutral replacements + quotes beautification

// Encode attributes, e.g. `<img src="foo"`

// Encode unsafe characters with percent-encoding, skipping already

// End group namespace before consuming symbol after close brace

// End offset, zero-based exclusive.

// End the group namespace for the expression

// Ensure `LazyWrapper` is an instance of `baseLodash`.

// Ensure that all the modifiers are set to false unless the hotkey has them.

// Ensure that block and inline nodes have at least one text child.

// Ensure that foreground and background color combinations meet WCAG2 guidelines.

// Ensure that inline nodes are surrounded by text nodes.

// Ensure that no displayName can lead to duplicate componentIds

// Ensure the loop is entered when path is empty.

// Ensure the sign of `-0` is preserved.

// Ensure wrappers are instances of `baseLodash`.

// Enter to blur

// Enter 保存

// Env-specific initialization logic for debug instances

// Environment delimiters. HTML/MathML rendering is defined in the corresponding

// Error if any of these lifecycles are present,

// Error position based on passed-in Token or ParseNode.

// ErrorBoundary 只能捕获子组件错误，这里对组件本身加一层兜底处理

// Escape characters that can't be included in string literals.

// Execute the module function

// Exit early if all IntersectionObserver and IntersectionObserverEntry

// Exit early if metadata can't be merged.

// Exit early if we're not running in a browser.

// Experimental. List of chars, completely prohibited in links

// Explicitly disable fencing if it's not a fence, to override the

// Exports for backwards compatibility

// Expose `MapCache`.

// Expose the URL parser and some additional properties that might be useful for

// Expose the module.

// Expose to CJS & AMD

// Expose utils & helpers for easy acces from plugins

// Exposes the constructors globally.

// Extract from the back.

// Extract from the front.

// Extract protocol information before running the instructions.

// Extract some context from the input and add it to the error

// FIX: 怀疑 hetu 业务方设置 injection 时未判断 node 是否存在

// FIX: 禁用对 br 的处理

// FIX: 避免多实例渲染时定位到非目标节点

// FIX: 重命名 getMaxPageWidthSection 导致 we-word 中无法找到该方法 to @白昱

// FIXME: remove `.toJSON()`

// FIXME: 当 Document 内没有 Text 节点时，无法被 focus，等价于废档

// Failed to read the 'selectionStart' property from 'HTMLInputElement'

// Fake record for guessed links

// Fake token just to render attributes

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.

// Fast path: If `val` fits into a single byte, use that numeric value.

// Fatal error conditions

// Figure out what size to use based on the list of functions above

// Figure out what style this fraction should be in based on the

// Figure out what style to use by pulling out the style from

// Figure out what style we're changing to.

// Filed element only

// Fill rule with context

// Filter disabled & fake schemas

// Final arg is the expansion of the macro

// Final result should be uppercased, because it's later stored in an object

// Finalize list

// Finally, add the keys which didn't appear before any key in `next`

// Finally, build the vlist

// Finally, search either indexOf (if dir is true) or lastIndexOf

// Finally, we defer to `makeCustomSizedDelim` with our calculated total

// Finally, we pull the skew off of the symbol.

// Find and remove furthest void ancestor

// Find column alignment, column spacing, and  vertical lines.

// Find matched entity and put into list

// Find next character,

// Find out if we want displaystyle, textstyle, etc.

// Find previous character,

// Find rule index by name

// Find the end of a run of characters

// Find whitespaces tail of pending chars.

// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,

// Finish the basic string with a delimiter unless it's empty.

// Firefox set the input cursor after it get focused.

// First 2 params - rule name & source. Secondary array - list of rules,

// First expand any accented base symbol according to unicodeSymbols.

// First level - chain name, '' for default.

// First, we do the same steps as in overline to build the inner group

// Fix error in Chrome:

// Fix https://github.com/ant-design/ant-design/issues/7564

// Fix https://github.com/ant-design/ant-design/issues/8861

// Fix radio button click twice

// Fix: tag 被复制到表格中宽度无法自适应单元格宽度问题

// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications

// Flag the module as loaded

// Flow is unable to correctly infer the type of `group`, even though it's

// Flow unable to figure out that this pathway is impossible.

// Flush pending text

// Font Shapes

// Font families

// Font size is the number large enough that the browser will

// Font weights

// For IE11 support

// For MathML we write U+0338 here. buildMathML.js will then do the overlay.

// For UTF-16LE we do not explicitly append special replacement characters if we

// For UTF-8, a replacement character is added when ending on a partial

// For each key of `next`, the list of keys to insert before that key in

// For each one, add another prime to the list

// For each opening emphasis-like marker find a matching closing one

// For empty text in a paragraph, use getActiveMarks;

// For error reporting.

// For example, here we should insert a newline before blockquote:

// For example, you can use '«»„“' for Russian, '„“‚‘' for German,

// For legacy support

// For loop from full str to the str with last char to map. e.g. 123

// For now we use the metrics for TEXT style which is what we were

// For spacing, TeX treats \hphantom as a math group (same spacing as ord).

// For spacing, TeX treats \smash as a math group (same spacing as ord).

// For validation mode we can terminate immediately

// Force a hex value to have 2 characters

// Force a number between 0 and 1

// Force coercion to uint32. This will also coerce falsey/NaN values to 0.

// Force trigger re-render since we need sync renderProps with new meta

// Form set initialValue

// Found matching closer length.

// Fractions are handled in the TeXbook on pages 444-445, rules 15(a-e).

// Fraktur

// Frame code as the function body.

// Fully expanded

// Fuzzy link can't be prepended with .:/\- and non punctuation.

// GB11.0 ExtPict Extend * ZWJ × ExtPict

// GB12. ^ (RI RI)* RI × RI

// GB13. [^RI] (RI RI)* RI × RI

// GB3. CR X LF

// GB4. (Control|CR|LF) ÷

// GB5. ÷ (Control|CR|LF)

// GB6. L X (L|V|LV|LVT)

// GB7. (LV|V) X (V|T)

// GB8. (LVT|T) X (T)

// GB9.0 X (Extend|ZWJ)

// GB9.1 X SpacingMark

// GB9.2 Prepend X

// GFM table, https://github.github.com/gfm/#tables-extension-

// Generate a nest tree for validate

// Generate markers.

// Generate tokens for input range

// Get \strut dimensions from TeXbook page 353.

// Get an SVG that is derived from glyph U+221A in font KaTeX-Main.

// Get current arraystretch if it's not set by the environment

// Get display style as a default.

// Get errors & warnings

// Get the DOM elements

// Get the delimiter from font glyphs.

// Get the horizontal spacing correct relative to adjacent items.

// Get the index to place the new wrapped node at.

// Get the input

// Get the metrics of the four sections

// Get the window object again. When a friendly iframe is destroyed, it

// Given a `fragment`, `document`, and `startKey`, it returns a Node from the

// Given a base color and a list of possible foreground or background

// Given a string or object, convert that input to RGB

// Given an array of nodes, remove any member that is contained by another.

// Global set is equivalent to setting in all groups.  Simulate this

// Greek letters. Not supported, yet.

// Group 修改参数函数

// Grouping

// Guaranteed in math mode, so eat any spaces first.

// Gujarati (0A80–0AFF)

// Gurmukhi (0A00–0A7F)

// H1 没有父级组

// HACK: `.focus` only works in mouse event handler on mobile.

// HACK: scrollableContainer 可能为空，这里判空是最快的修复方式，但代价是会导致 portal 不跟随滚动

// HACK: this clause only exists because the `move_path` logic isn't

// HACK: use `useCombinedRefs` will break `useCangjieKeyBindingRef`.

// HACK: 中文字符后紧接链接也可以识别，之后可尝试向 linkify-it 提 MR 支持配置

// HACK: 处理 <a data-title="..." href="...">href</a>，以支持钉钉文档拷贝链接粘贴需求

// HACK: 排版模式通过key-0获取dom元素

// HACK: 支持 domain 识别下划线, linkify 这边有对应的 pr,如果他合并了，可以直接更新

// HACK: 通过设置 data-title，覆盖 a.innerText 的值，用于实现钉钉文档 文档引用 功能

// HACK：`getSnapshotBeforeUpdate` 没有等价实现，使用 React.memo 实现 DOM 变更前的 Snapshot

// HELPER FUNCTIONS

// HOW:

// HTML block

// HTML5 entities map: { name -> utf16string }

// Handle Drag will skip the point inside void elements

// Handle SVG / MathML in HTML

// Handle \text... font specifiers as best we can.

// Handle bounds / percentage checking to conform to CSS color spec

// Handle floating point rounding errors

// Handle invocations in a tight loop.

// Handle middle delimiters

// Handle sizing operators like \Huge. Real TeX doesn't actually allow

// Handle some special key code

// Handle string cases:

// Handle the basic code points.

// Handle the optional root index

// Handle update by `setField` with `shouldUpdate`

// Handles component, contains two handles at start and end of a selection

// Handles shorthand.

// Harpoons are from glyph U+21BD in font KaTeX Main

// Have a special case for when the value = \ because the \ is used as a

// Helper function

// Helper methods, should not be used directly

// Helpers

// Hepler to unify [reference labels].

// Here is where we defer to the inner group if it should handle

// Here's an example showing how it happens. Lets take greek letter omega:

// Here, we choose the index we should start at in the sequences. In smaller

// Here, we replace the "base" child of the supsub with our newly

// High surrogate

// Highlighter function. Should return escaped HTML,

// Horizontal overlap functions

// Horizontal rule

// Horizontal spacing commands

// Horizontal stretchy braces

// Hostname, host and protocol should be lowercased so they can be used to

// However, in KaTeX, \textellipsis and \ldots behave the same

// HtmlDomNode

// I assume people already do this (render function returning a class component),

// ID不能变化，不然输入框会失去焦点，但是值需要同步

// IE & Edge: doesn't support <wbr>

// IE (Edge has already correct behaviour) returns content width as computed width

// IE 8 clips \int if it is in a display: inline-block. We wrap it

// IE doesn't support codePointAt(). So work with the surrogate pair.

// If React sees the exact same element reference as last time, it bails out of re-rendering

// If Safari reforms, we should consider reverting to the glyph.

// If `expression` has no atoms on the left or right, class "leftmost"

// If `expression` is a partial group, let the parent handle spacings

// If `variable` is not specified wrap a with-statement around the generated

// If a fence has heading spaces, they should be removed from its inner block

// If a marker sequence has an odd number of characters, it's splitted

// If a poll interval is set, use polling instead of listening to

// If all else fails, use Math.random().  It's fast, but is of unspecified

// If any of list item is tight, mark list as tight

// If bytes.length is odd, the last 8 bits must be ignored (same as node.js)

// If content of op is a single symbol, shift it vertically.

// If debug isn't set in LS, and we're in Electron, try to load $DEBUG

// If either of the above conditionals set a new parentRect,

// If end block's ancestor is empty after merge, we should remove it

// If has modified constructor

// If has modified prototype

// If incoming style is sub/sup, use style.text() to get correct size.

// If input is already a tinycolor, return itself

// If input is an object, force 1 into "1.0" to handle ratios properly

// If input parms are invalid, return {"level":"AA", "size":"small"}

// If it does not match, then we can assume a non-standard RTL scroll implementation.

// If it is `*`, then it consumes the symbol, and the macro expands to #1;

// If it was supposed to be 128, this was already taken care of by `inputToRgb`

// If it wasn't ^, _, or ', stop parsing super/subscripts

// If language exists, inject class gently, without modifying original token.

// If marks is already empty, the active marks is empty

// If match for this delimiter run failed, we want to set lower bound for

// If nesting level exceeded - skip tail to the end. That's not ordinary

// If new component APIs are defined, "unsafe" lifecycles won't be called.

// If no context can be found, return early.

// If no shared parent could be found then the parent is the document.

// If no timeout duration is provided

// If not have last string, just position to the end

// If not match any of then, let's just keep the position

// If not match full str, try to match part of str

// If not supported schema check requested - terminate

// If one of the delimiters can both open and close emphasis, then the

// If our base is a character box, and we have superscripts and

// If pending text exists - flush it as text token

// If previous delimiter cannot be an opener, we can safely skip

// If pure is true, the selector returned by selectorFactory will memoize its results,

// If result starts with <pre... internal wrapper is skipped.

// If selection is hanging, we should remove start block(what user sees)

// If set it may cause unnecessary twice rerendering

// If tabNode'width equal to wrapNode'width when tabBarPosition is top or bottom

// If the URL is relative, resolve the pathname against the base URL.

// If the base is a character box, then we want the skew of the

// If the batch errored we may still have tasks queued

// If the caret can hanging, return the position; otheriwse return null

// If the child props _did_ change (or we caught an error), this wrapper component needs to re-render

// If the child props haven't changed, nothing to do here - cascade the subscription update

// If the duration isn't a number

// If the element has a non-visible overflow, and it's not the <body>

// If the element isn't displayed, an intersection can't happen.

// If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.

// If the first and last block aren't the same, we need to insert all of the

// If the fragment is wrapped by/nested in blocks, and the nesting pattern

// If the input used \tag, it will set the \df@tag macro to the tag.

// If the leaf already has the mark, continue on.

// If the leaf doesn't overlap with the operation, continue on.

// If the new entry intersection ratio has crossed any of the

// If the new fragment only contains a void block, use `insertBlockAtRange`

// If the new fragment starts or ends with a single nested block,

// If the node has been found to be unique, re-insert it.

// If the node's new position is an ancestor of the old position,

// If the node's old position was a left sibling of an ancestor of

// If the old path ends above and before a node in the new path, then

// If the parent has element that is assigned through shadow root slot

// If the parent isn't displayed, an intersection can't happen.

// If the path's value is ever less than the target's, it's before.

// If the previous delimiter has the same marker and is adjacent to this one,

// If the render was from a store update, clear out that reference and cascade the subscriber update

// If the root is not in the DOM or target is not contained within

// If the size changed between the parent and the current group, account

// If the starting block is empty, we replace it entirely with the first block

// If the target's value is ever less than the path's, it's after.

// If the transition is enabled

// If there are more groups after this one then child might actually

// If there exists a function with this name, parse the function.

// If there is an @ in the hostname, then non-host chars *are* allowed

// If there is more than one separator in a row, add a space

// If there's a superscript following the primes, combine that

// If this delimiter is matched as a valid opener, `end` will be

// If this is a list, compose that list.

// If this is a symbol, create the symbol.

// If we are called as a function, call using new instead

// If we are here - we detected HTML block.

// If we aren't running in "pure" mode, we don't want to memoize values.

// If we can't find the next text, we're done

// If we encounter an escaped % then don't increase the array index

// If we end up here, it's because of a failure to match the two delimiters

// If we failed to encode the strings, we should bail out as we don't

// If we get a brace, parse an expression

// If we have limits, supsub will pass us its group to handle. Pull

// If we have more than 4 spaces, the indent is 1

// If we have new child props, and the same wrapper props, we know we should use the new child props as-is.

// If we have the input and a position, make the error a bit fancier

// If we reached the end of the sequence, return the last sequence element.

// If we succeeded, make sure there's an EOF at the end

// If we want to someday check for reordering, we could do it here.

// If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.

// If we're in a void inline, we should move cursor to the sibliting text of the inline before spliting

// If we're in the middle of a block, we should consider split it first

// If we're not subscribed to the store, nothing to do here

// If we're starting a new ordered list right after

// If we're starting a new unordered list right after

// If we've already satisfied the minimum for the current group,

// Ignore Windows 7 IE11 "Unspecified error"

// Ignore document

// Ignore explicit spaces (e.g., \;, \,) when determining what implicit

// Ignore non-index properties.

// Ignore other Node.TYPE

// Ignore spaces between arguments.  As the TeXbook says:

// Ignore spaces in math mode

// Ignore the error.

// Ignore unchanged ratios

// Ignore when it's a list item and not specific the namePath,

// In AMS multiline environments such as aligned and gathered, rows

// In KaTeX, for now, both spaces will get consumed.

// In LaTeX, the \foo's get treated as (blank) arguments).

// In a single text node

// In aligned mode, we add one \qquad between columns;

// In all paths below, the viewBox-to-em scale is 1000:1.

// In case `e.target.value` is a percentage remove the `%` character

// In email addresses, only the domain name should be punycoded. Leave

// In mhchem.sty, min-length is 2.0em. But these arrows might appear in the

// In most cases, the string after cursor is stable.

// In node v10 'ẞ'.toLowerCase() === 'Ṿ', which is presumed to be a bug

// In real TeX, calculations are done using integral values which are

// In text mode, we don't have superscripts or subscripts

// In that case, throw the error from here so it doesn't get lost.

// In the case if failed decoding, we want to omit the key/value pairs

// In the context of a TransitionGroup all enters are really appears

// In this case both `newCaretPosition` and `defaultCaretPosition` is 0

// In this case, we separately parse the tag and wrap the tree.

// In which case we don't need to trigger another render,

// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,

// Increment state.level and decrement it later to limit recursion.

// Infix generalized fractions -- these are not rendered directly, but replaced

// Initial children should all be entering, dependent on appear

// Initialize the state.

// Inject the new block node into the parent.

// InkTabBarNode need parent/root ref for calculating position

// Inline link

// Inline parser state

// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of

// Inlined version of the `symbol-observable` polyfill

// Input、Button、FormItem、Select等应该统一高度

// Insert `n` at position `i` of the output.

// Insert a newline between hidden paragraph and subsequent opening

// Insert each marker as a separate text token, and add it to delimiter list

// Insert glue (spacing) after the `prev`.

// Insert mark for empty block; the empty block are often created by split node or add marks in a range including empty blocks

// Internal catch error to avoid console error log.

// Internal state vartiables

// Internet Explorer and Edge do not support colors.

// Invalid dates are coerced to `NaN`.

// Invalid ranges are not set to a default, so can range check early.

// Invoke the leading edge.

// Is expression a string or has it something like a fraction?

// Is firebug? http://stackoverflow.com/a/398120/376773

// Is firefox >= v31?

// Is the inner group a relevant horizonal brace?

// Is webkit? http://stackoverflow.com/a/16459606/376773

// It costs 10% of performance, but allows extend terminators list, if place it

// It exists only as a hack because blockquotes override bMarks

// It is also done this way as a slight performance increase instead of using a

// It is at least the size of the top, bottom, and optional middle combined.

// It knows to compare individual style props and ignore the wrapper object.

// It means no css working, then ink bar should not have width until css is loaded

// It produces less code after transpilation. (#26)

// It seems an unnecessary optimization.

// It should render with the height that we define. But Chrome, in

// It will pass a snapshot value to did-update though.

// It works by typesetting three copies of the argument with small offsets.

// It's a high surrogate, and there is a next character.

// It's also easier for this component if we convert offsets to the same format as they would be in for ltr.

// It's an unmatched surrogate; only append this code unit, in case the

// It's either the second or third case. If it's the second then

// It's harmless to do here, because no tokens are created. But ideally,

// It's possible that we caught an error due to a bad mapState function, but the

// It's thus treated like a \mathrel, but defined by a symbol that has zero

// It's unlikely that resetAfterIndex() will be called while a user is scrolling.

// It's used only when expanding tabs, you can think about it as

// Italic Greek capital letters.  AMS defines these with \DeclareMathSymbol,

// Item become loose if finish with empty line,

// Iterate list items

// Just a shortcut for bulk export

// Just return an object and let the conversion functions handle that.

// KaTeX fonts have only capital letters for blackboard bold and script.

// KaTeX shows a kern of 1.171 * fontsize.

// KaTeX's styles don't work properly in quirks mode. Print out an error, and

// Kannada (0C80–0CFF)

// Keep a list of the inner pieces

// Keep adding atoms to the body until we can't parse any more atoms (either

// Keep lexing tokens until we get something that's not a prime

// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]

// Korean

// LaTeX \arraystretch multiplies the row baseline-to-baseline distance.

// LaTeX applies \binrel spacing to \overset and \underset.

// LaTeX source2e

// LaTeX source2e: \fboxsep = 3pt

// LaTeX's \@firstoftwo{#1}{#2} expands to #1, skipping #2

// LaTeX's \@ifnextchar{#1}{#2}{#3} looks ahead to the next (unexpanded)

// LaTeX's \@ifstar{#1}{#2} looks ahead to the next (unexpanded) symbol.

// LaTeX's \@secondoftwo{#1}{#2} expands to #2, skipping #1

// LaTeX's \TextOrMath{#1}{#2} expands to #1 in text mode, #2 in math mode

// LaTeX_2ε

// Lao (0E80–0EFF)

// Large Delimiters

// Latin Extended-A and Latin Extended-B

// Latin Extended-A block.

// Latin characters beyond the Latin-1 characters we have metrics for.

// Latin-1

// Latin-1 Supplement block.

// Lazily create and cache item styles while scrolling,

// Lead Surrogate Code Point.  A Separate index section is stored for

// Leaf end offset

// Leaf start offset

// Legacy `process.binding('util')` for Node.js < 10.

// Legacy aliases (deprecated)

// Length is only used for emphasis-specific "rule of 3",

// Let all child Field get update.

// Let's cut tails like '    ###  ' from the end of string

// Let's roll down till block end.

// Leverage the exponentiation by squaring algorithm for a faster repeat.

// Lex the first token

// Lexer holding the input string.

// Lexer's tokenRegex is constructed to always have matching

// Limits, not symbols

// Limits, symbols

// Link reference

// Linkifier might send raw hostnames like "example.com", where url

// List marker should have at least 2 chars (digit + dot)

// List marker should have no more than 9 digits

// List of added rules. Each element is:

// List of all events that the parser emits

// List of commands that act like macros but aren't defined as a macro,

// List of emphasis-like delimiters for current tag

// List of valid html blocks names, accorting to commonmark spec

// Listen if fields provided. We use ref to save prev data here to avoid additional render

// Lists

// Load & clone RE patterns.

// Load entry module and return exports

// Look through the sequence

// Lookup in pending chars is bad practice! Don't copy to other rules!

// Lookup table for parsing numbers in base 8 through 16

// Loop through the attributes

// Low surrogate

// Low surrogate.

// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN

// MacroExpander.js

// Main decoding loop: start just after the last delimiter if any basic code

// Main encoding loop:

// Main parser class

// Main rules

// Make an empty span for the rule

// Make an empty span for the space

// Make error & validating in cache to save perf

// Make it easy to access colors via `hexNames[hex]`

// Make new global namespace

// Make sure we got a close brace

// Makes a symbol in the default font for mathords and textords.

// Malayalam (0D00–0D7F)

// Many primes can be grouped together, so we handle this here

// Map fancy A-Z letters to script, not calligraphic.

// Map minified method names to their real names.

// Mapping keys

// Mark as touched

// Mark text from non-Latin scripts with specific classes so that we

// Markdown => HTML => JsonML

// Markdown ASCII punctuation characters.

// Marks Models

// Math and Text

// Math class commands except \mathop

// Math-BoldItalic and Main-Bold for "boldsymbol".  This is handled by a

// Math.random()-based (RNG)

// MathML alternates for KaTeX glyphs in the Unicode private area

// MathML gives 5/18em spacing to each <mo> element.

// MathML has a limited list of allowable mathvariant specifiers; see

// MathML table lines go only between cells.

// MathML, but polyfills for subclassing is expensive per PR 1469.

// Mathematical Alphanumeric Symbols.

// May be, one day we will add .deepClone() for token and simplify this part, but

// Memoize the check that determines which context instance we should use.

// Merge objects

// Mimic the constructor's `return` behavior.

// Minimal polyfill for Edge 15's lack of `isIntersecting`

// Misc Symbols

// Misc Unicode

// Mobile 3rd IME will delete to beginning when choosing english suggestion

// Models

// Modification Functions

// Modify ordgroup node within styling node

// More to read about domain names

// Most operators have a large successor symbol, but these don't.

// Most symbol operators get larger in displaystyle (rule 13)

// Move element out of screen horizontally

// Move element to the same position vertically

// Move end to the end of previous text

// Move start to the start of next text

// Move the end block into start block and merge them

// Move the sibling nodes into the new block node.

// Must be writable: true, enumerable: false, configurable: true

// Myanmar (1000–109F)

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/columns/hooks/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/commands/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/hooks/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/comment/queries/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/headingGroup/queries/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/handlers/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/listGroup/utils/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/components/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bamboo/dist-web/plugins/subject/handlers/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-bi/dist-web/plugins/clipboard/utils/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-mo/dist-web/common/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-mo/dist-web/interfaces/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-mo/dist-web/models/marks/index.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-utils/src/sectionDataUtils.js

// NAMESPACE OBJECT: ./node_modules/@ali/4ever-zhi/dist-web/plugins/factory/groupFactory/commands/index.js

// NB: In an Electron preload script, document will be defined but not fully

// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,

// NOTE: Currently, `cell` is the last item added into `row`.

// NOTE: I considered further wrapping individual items with a pure ListItem component.

// NOTE: It's easier to collect rules and have the marker

// NOTE: Remove old styles, then inject the new ones

// NOTE: The span class is not typed to have <math> nodes as children, and

// NOTE: This does not clear the names, since it's only used during SSR

// NOTE: This registers the componentId, which ensures a consistent order

// NOTE: Unlike most `htmlBuilder`s, this one handles not only "horizBrace", but

// NOTE: Unlike most `htmlBuilder`s, this one handles not only "op", but also

// NOTE: We use the id as a name as well, since these rules never change

// NOTE: `commands` which has registered will have higher priority.

// NOTE: `execCommand` will not trigger onCopy & onCut on Safari if selection is collapsed.

// NOTE: `queries` which has registered will have higher priority.

// NOTE: can't memoize this

// NOTE: operation is composing, need to get meta from controller.value

// NOTE: point.getPathIn(document) === document.getPath(point.key)

// NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,

// NOTE: this will cause links to behave incorrectly in the following case,

// NOTE: we only add this to Safari because adding it to Firefox would

// NOTE: what if user data has just one `CANGJIE_EMPTY` character?

// NOTE: 这里调用 command key 试插件 onCommand 时间触发，主要用于图片的复制转存逻辑

// Name the function so it is clearer in the documentation

// Need to do this to actually trigger a transition.

// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1

// Needed for Czech, Hungarian and Turkish text, for example.

// Negated symbols from base/fontmath.ltx:

// Never used; needed for satisfying interface.

// New KaTeX logo based on tweaking LaTeX logo

// Newer versions of React will ignore that lifecycle if gSBU exists.

// Newer versions of React will ignore these lifecycles if gDSFP exists.

// Next Value

// Next scan position

// Next, prevent vertical misplacement when next to something tall.

// Next, some wide character numerals

// No font glyphs yet, so use a glyph w/o the oval.

// No limits, not symbols

// No limits, symbols

// No need for `namePathMath` check and `shouldUpdate` check, since `valueUpdate` will be

// No need for bounds check because we have fake entry on tail.

// No need to cost perf when nothing need to watch

// No need to verify that "this.length <= MAX_UINT32" since it's a read-only

// No operation performed.

// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not

// Node converts strings with length < 2 to ''

// Node strips out invalid characters like \n and \t from the string, base64-js does not

// Node takes equal signs as end of the Base64 encoding

// Node's code seems to be doing this and not & 0x7F..

// Node.js 0.10 has enumerable non-index properties on buffers.

// Non `Object` object instances with different constructors are not equal.

// Non-mathy text, possibly in a font

// Noop

// Normalize byteOffset

// Normalize byteOffset: negative offsets start from the end of the buffer

// Normalize input string

// Normalize newlines

// Normalize val

// Not a perfect match.

// Not cloneDeep when without `namePath`

// Not use subscribe when using render props

// Note that any invalid chars are also handled, but these

// Note that base may be empty (i.e. null) at this point.

// Note that this is somewhat dangerous b/c it calls setState()

// Note that we are returning span.depth = 0.

// Note that we assume \nomallineskiplimit to be zero,

// Note that we do this because on renders _not_ caused by store updates, we need the latest store state

// Note, however, that it does not consume the next symbol in either case.

// Note: 1000:1 ratio of viewBox to document em width.

// Note: <body> and <html> cannot be clipped to a rect that's not also

// Note: Be careful editing this code!  It's been tuned for performance

// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:

// Note: Force re-render except first mount.

// Note: This action will trigger normalize

// Note: calling defineFunction with a type that's already been defined only

// Note: cannot use `length < K_MAX_LENGTH` here because that fails when

// Note: page's value

// Note: selectionStart is offset of characters and works fine with emoji.

// Note: this is equivalent to unicode case folding; unicode normalization

// Note: unicode-math maps \u21e2 to their own function \rightdasharrow.

// Nothing found in the cache, scan until the end of the line (or until marker is found)

// Notify fields with rule that validate has finished and need update

// Notify that field is unmount

// Now comes the symbol table

// Now split string to nodes

// Now that all that's done, we can finally try to actually render the child component.

// Now we have a portion which is definitely the auth.

// Now we need to remove `args[index]` since it's inlined in the `format`

// Now, if there was a tag, build it too and append it as a final child.

// Now, we start building the pieces that will go into the vlist

// Numerals, ten per row.

// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF

// OR the last index of `val` in `buffer` at offset <= `byteOffset`.

// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE

// Object.prototype.hasOwnProperty.call

// Old font changing functions

// Older IE

// Older versions will require our polyfilled will-update value.

// On success, rule should:

// One for numbered and for unnumbered;

// One more render for component in case fields not ready

// Only allow block nodes in documents.

// Only element value has nodes children

// Only invoke if we have `lastArgs` which means `func` has been

// Only reset when no namePath exist

// Only return validate child node. If invalidate, will do nothing about field.

// Only some of the delimsizing functions act as fences, and they

// Operator ParseNodes created in Parser.js from symbol Groups in src/symbols.js.

// Operators are handled in the TeXbook pg. 443-444, rule 13(a).

// Optional [tb] argument is engaged.

// Optionally prefix with a '?' if needed

// Optionally returns Black or White if the most readable color is unreadable.

// Ordinary BMP code point, excluding leading surrogates.

// Oriya (0B00–0B7F)

// Other relative units always refer to the *textstyle* font

// Otherwise either we exhausted the last group, in which case it's

// Otherwise we know that current value is underflowing. There are

// Otherwise, determine which offset and characters overlap.

// Otherwise, just return a nucleus

// Otherwise, put this component's subscription instance into context, so that

// Otherwise, this is a text operator. Build the text from the

// Otherwise, we maintain the starting block, and insert all of the first

// Our re-subscribe logic only runs when the store/subscription setup changes

// Overlay the image and the argument.

// Overlay with combining character long solidus

// Overlines are handled in the TeXbook pg 443, Rule 9.

// Override CSS rule `.katex svg { width: 100% }`

// PERF

// PERF: Avoid normalizing twice for normalized `leaves`.

// PERF: Cangjie does not support normalizing `text.text` `leaf.marks`, just ignore changes for performance(~10ms in Huge Document story)

// PERF: For loop is faster than for of.

// PERF: For simple backspace, we can operate directly on the leaf

// PERF: documentView & document has the same tree structure

// PERF: drop prototype

// PERF: just allow drop

// PERF: the most common case is when the range is in a single block node,

// PERF: ~5ms in Huge Document story

// PERF: 严谨的实现应该是 node.nodes.some(Text.isText)，但这会让断言复杂度变为 O(mn)

// PERF: 🚫🚫🚫 No [...xxx]. Spread syntax will affect performance when huge node changed.

// Paragraph

// Parse a base-16 hex value into a base-10 integer

// Parse a number in the given base, starting with first `token`.

// Parse backticks

// Parse body of array with \\ temporarily mapped to \cr

// Parse down the `auth` for the username and password.

// Parse expressions into `groups`.

// Parse inlines

// Parse link destination

// Parse link label

// Parse link title

// Parse out the implicit body

// ParseNode<"spacing"> created in Parser.js from the "spacing" symbol Groups in

// Parser rules

// Parser state class

// Parser.js

// Parser.js throws an error if there is no argument.

// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)

// Pass props to store

// Pass ref with form instance

// Path is more accurate than key when node moved.

// Paths should now be equal, otherwise something is wrong

// Pending string is stored in concat mode, indexed lookups will cause

// Per 4.1.4 - Convert from unix epoch to Gregorian epoch

// Per 4.2.1.2 Throw error if too many uuids are requested

// Per 4.2.1.2, Bump clockseq on clock regression

// Per 4.2.1.2, use count of uuid's generated during the current clock

// Per 4.2.2, randomize (14 bit) clockseq

// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`

// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)

// Per amsopn package,

// Perform the `toStringTag` check first to avoid errors with some

// Permission is hereby granted, free of charge, to any person obtaining a

// Permissive string parsing.  Take in a number of formats, and output an object

// PhantomJS 2 has enumerable non-index properties on typed arrays.

// Pi 下通过 node.data 判断状态

// Pi-2.0 会注入 pi 数据

// Pi-2.0：列表高度有时会被项目符号莫名撑高，且边距需要渲染在列表处才可以生效

// Pick the desired surd glyph from a sequence of surds.

// Placeholder Mode: disable the blink animation and add an opacity style

// Plugins

// Possible string inputs:

// Potentially lose a little bit of precision here, but will fix issues where

// Predefined color names are all missed by this RegEx pattern.

// Prepend some information

// Present in newtxmath, pxfonts and txfonts

// Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.

// Prevent overriding of existing properties. This ensures that build-in

// Prevent zooming on iOS

// Previously calculated lower bounds (previous fails)

// Private properties.

// Private state for monitoring.

// Proceess '\n'

// Process ![image](<src> "title")

// Process *this* and _that_

// Process [link](<to> "stuff")

// Process ^superscript^

// Process autolinks '<protocol:...>'

// Process escaped chars and hardbreaks

// Process html entity - &#123;, &#xAF;, &quot;, ...

// Process html tags

// Process only opening markers

// Process tasks until there's no time left or we need to yield to input.

// Process ~subscript~

// Prohibit any of "@/[]()" in user/pass to avoid wrong domain fetch.

// Propagate any mapState/mapDispatch errors upwards

// Property `isMiddle` not defined on `span`. It is only used in

// Property `isMiddle` not defined on `span`. See comment in

// Provide the compiled function's source by its `toString` method or

// Public properties.

// Pull data from the store after first render in case the store has

// Pull out the `ParseNode<"horizBrace">` if `grp` is a "supsub" node.

// Pull that off.

// Pulled from react-compat

// Punctuation

// Push fake entry to simplify cache bounds checks

// Push new token to "stream".

// Push the nodes between start and end

// Push the nodes in end path

// Push the nodes in start path

// Put any post-operator glue on same line as operator.

// Put end block under the start block

// Put everything into an ordgroup as the superscript

// Put the color background behind inner;

// Put the newline at the top level

// Queue up

// Quick fail on second char

// Quirk to enforce "hard termination mode" for paragraphs;

// RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js)

// RFC 2396: characters not allowed for various reasons.

// Rarely used, but required for "toFilter()"

// Re shift: Note that stretchy.svgSpan returned arrowBody.depth = 0.

// Re-create this selector whenever the store changes.

// Re-export libraries commonly used in both markdown-it and its plugins,

// React <= 16.2 does not support getSnapshotBeforeUpdate.

// React <= 16.2 does not support static getDerivedStateFromProps.

// React currently throws a warning when using useLayoutEffect on the server.

// React may warn about cWM/cWRP/cWU methods being deprecated.

// React 存在 bug，WebkitBackgroundClip 没有加上 -webkit- 前缀，需在 snapshot 和 全局 手动处理

// React16.8 不支持 video 标签的 disablePictureInPicture 属性，16.9 支持

// ReactCSSTransitionGroupChild can receive updates to name, enter, and

// Read this value AFTER items have been created,

// Readability Functions

// Record only if has `initialValue`

// Record position

// Record the height and width

// Recursive DFS

// Recursively compare arrays (susceptible to call stack limits).

// Recursively compare objects (susceptible to call stack limits).

// Recursively flatten arrays (susceptible to call stack limits).

// Recursively merge objects and arrays (susceptible to call stack limits).

// Recursively populate clone (susceptible to call stack limits).

// Ref from mhchem.sty: \rlap{\raisebox{-.22ex}{$\kern0.5em

// Ref: LaTeX Source 2e: \DeclareRobustCommand{\nobreakspace}{%

// Ref: LaTeX source2e: }}}}\limits}

// Ref: a rather lengthy macro in ambsy.sty

// Ref: amsmath.dtx:   \hbox{$\scriptstyle\mkern#3mu{#6}\mkern#4mu$}%

// Ref: https://bugs.webkit.org/show_bug.cgi?id=149054

// Ref: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

// Ref: https://reactjs.org/docs/portals.html#event-bubbling-through-portals

// Ref: packages/cangjie/src/plugins/schema.ts

// Refactor: 与 Bi 共用

// Reference can not terminate anything. This check is for safety only.

// Reference: RFC 3986, RFC 1808, RFC 2396

// RegExp the back.

// Regexps to match html elements

// Register form into Context

// Register on init

// Rehydrate componentId to group index mapping

// Rehydrate names and rules

// Relation Symbols

// Remove all text nodes between start block & end block

// Remove element from array and put another array at those position.

// Remove nodes between start child & end child

// Remove nodes between start text and end text

// Remove nodes from top to bottom in end child

// Remove selected text in end text node

// Remove selected text in start text node

// Remove the italic correction of the accent, because it only serves to

// Remove the leaf text

// Remove this task from the global queue

// Render a small surd.

// Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.

// Replace NULL characters

// Replace a decimal with it's percentage value

// Replace content with actual value

// Replace delimiters with snippets.

// Replace link-like texts with link nodes.

// Replace message with variables

// Replace quotes in the middle of punctuation sequence, but not

// Replace the value with its replaced value from symbol.js

// Replace validator if needed

// Represent delta as a generalized variable-length integer.

// Rerender the supsub group with its new base, and store that

// Reset

// Reset any `maxWait` timer.

// Reset box model

// Reset by `nameList`

// Reset compiled data

// Reset current style

// Reset last key

// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new

// Reset scan cache

// Reset selection to end of textarea while users change it.

// Restart the timer.

// Restore cursor

// Restore original tShift; this might not be necessary since the parser

// Return a 3 character hex if possible

// Return a 4 character hex if possible

// Return a valid alpha value [0,1] with all invalid values being set to 1

// Return an array. The array length = number of hlines.

// Return an augmented `Uint8Array` instance

// Return an image span for \cancel, \bcancel, \xcancel, or \fbox

// Return early if start > this.length. Done here to prevent potential uint32

// Return nothing for an optional group

// Return the exports of the module

// Return true if an entry matches a threshold or if the new ratio

// Returns a 3 or 6 character hex

// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a

// Returns only complete characters in a Buffer

// Returns the next grapheme break in the string after the given index

// Returns the next grapheme break in the string before the given index

// Returns the number of grapheme clusters there are in the given string

// Review our test case against browsers more comprehensively.

// Right button clicked.

// Round the intersection ratio to avoid floating point math issues:

// Row breaks within tabular environments, and line breaks at top level

// Rude test fuzzy links by host, for quick deny

// Rule 15c

// Rule 15d

// Rule 18b

// Rule 18c

// Rule 18c, d

// Rule 18e

// Rule to skip pure text

// Rule: 未设置上下边距则取默认边距

// Rule: 避免 link 中的 text 是一个合法的 url，导致 unwrapInline 后继续被 decorate 识别

// Run subparser & write tokens

// SDK 层不监听 HTTP

// SDK 层不监听 hashchange

// SEE: https://code.aone.alibaba-inc.com/dingding/nuvajs/codereview/3324234

// SEE: https://work.aone.alibaba-inc.com/issue/29105600

// SVG

// SVG-related properties

// Safari 9 has enumerable `arguments.length` in strict mode.

// Safari does not reliably fire the `pagehide` or `visibilitychange`

// Safari wants the first row to have inline content; otherwise it

// Safari will focus input if set selection. We need skip this.

// Safari's elastic bounce makes detecting this even more complicated wrt potential false positives.

// Same as `!left && !right`

// Same for the right delimiter

// Sanitize what is left of the address

// Save references to the new child props.  Note that we track the "child props from store update"

// Scan a sequence of emphasis-like markers, and determine whether

// Scan string until end reached

// Scanned through the end, didn't find anything

// Schedule the rest of the tasks for the next idle time.

// Schema

// Schemas compiler. Build regexps.

// Scroll position may have been updated by cDM/cDU,

// Search `[-+*][\n ]`, returns next pos after marker on success

// Search `\d+[.)][\n ]`, returns next pos after marker on success

// Search by name and disable

// Search by name and enable

// Search for a byte value [0-255]

// Search the end of the block

// Second level - diginal anchor for fast filtering by charcodes.

// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.

// See "color" for more details.

// See [MDN](https://mdn.io/round#Examples) for more details.

// See delimsizing.js for stretchy delims.

// See details here:

// See exception for k below.

// See http://stackoverflow.com/a/8460753

// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.

// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.

// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.

// See https://es5.github.io/#x13.2.2 for more details.

// See https://github.com/uuidjs/uuid for API details

// See https://reactjs.org/docs/react-api.html#reactmemo

// See https://reactjs.org/docs/react-component.html#shouldcomponentupdate

// See https://www.w3.org/TR/2000/WD-MathML2-20000328/chapter6.html

// See smash for comment re: use of makeVList

// See the TeXbook, page 441. In AMSTeX, the extension fonts scale; to

// See 腾讯文档、石墨文档

// See: https://en.wikipedia.org/wiki/Base64#URL_applications

// See: https://github.com/beatgammit/base64-js/issues/42

// See: https://github.com/feross/buffer/issues/154

// See: https://github.com/feross/buffer/issues/166

// See: https://github.com/feross/buffer/issues/219

// See: https://github.com/w3c/IntersectionObserver/issues/211

// See: https://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm

// Select

// Select All

// Separate accents from characters

// Set `diff` timestamp

// Set `initialValue`

// Set a position for \hline(s) at the top of the array, if any.

// Set a position for \hline(s), if any.

// Set column alignment, row spacing, column spacing, and

// Set column spacing.

// Set default values of environments.

// Set default values of functions

// Set initial value, init store value when first mount

// Set initial values

// Set left over value.

// Set the row spacing. In MathML, we specify a gap distance.

// Set up refs to coordinate values between the subscription effect and the render logic

// Set when currying a bound function.

// Sets intersection ratio.

// Shift the accent over by the skew.

// Shift the limits by the slant of the symbol. Note

// Shift the sqrt image

// Shift with exponential notation to avoid floating-point issues.

// Shorthands for all valid HTML Elements

// Should be something like \p{\L\N\S\M} (\w but without `_`)

// Should look like "\name" or "\begin{name}".

// Should print error if user `onFinish` callback failed

// Should reset `textarea` to **EMPTY**.

// Simple .toLowerCase() doesn't normalize 125 code points correctly,

// Simple check to quickly interrupt scan on [link](url) at the start of line.

// Simple typographic replacements

// Simply concatenate the markup for the children together.

// Since \cancel's SVG is inline and it omits the viewBox attribute,

// Since no types are specified above, the two possibilities are

// Since start is found, we can report success here in validation mode

// Since the corresponding buildHTML/buildMathML function expects a

// Since this will be passed into `makeVList` in the end, wrap the element

// Since we don't rerun the height calculation after replacing the

// Since we manually change the style sometimes (with \dfrac or \tfrac),

// Since we only use this in test, let simply realize this

// Since we use the same font at all sizes, this thickness doesn't scale.

// Since we want to report overflow on last matching child we don't

// Sinhala (0D80–0DFF)

// Sized delimiters are never centered.

// Sketch.propTypes = {

// SketchPicker 的宽度为 200px

// Skip char codes from given position

// Skip char codes reverse from given position - 1

// Skip content of html tag links

// Skip content of markdown links

// Skip if not exist form instance

// Skip if without rule

// Skip index properties.

// Skip over if undefined or null

// Skip single token by running all rules in validation mode;

// Skip spaces from given position in reverse.

// Skip spaces from given position.

// Skip text characters for text token, place those to pending buffer

// Skip the leaf which is not overlapped

// Slate 编辑器

// Slot的宽度缓存

// Small delimiters are scaled down versions of the same font, so we

// So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.

// So if the character is in a script we support but we

// So my doing it would just unnecessarily double the wrappers.

// So now we use an SVG.

// So that List can clear cached styles and force item re-render if necessary.

// So that pure component sCU will prevent re-renders.

// So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.

// So their actual sizes (if variable) are taken into consideration.

// So treat this one as a special case

// So we can calculate the relevant row. No traverse necessary.

// So we need to avoid U+2223 and use plain "|" instead.

// So we need to determine which browser behavior we're dealing with, and mimic it.

// So we put another empty span inside the depth strut span.

// So, we have to move all those markers after subsequent s_close tags.

// So, we'll use the child props from store update only if the wrapper props are the same as last time.

// Some Unicode characters are implemented with macros to mathtools functions.

// Some abbreviations for commonly used strings.

// Some different length found, put it in cache as upper limit of where closer can be found

// Some editors do not deal well with wide characters. So don't write the

// Some groups can return document fragments.  Handle those by wrapping

// Some hackery to make ParseError a prototype of Error

// Some of these have a "-token" suffix since these are also used as `ParseNode`

// Some tags can terminate paragraph without empty line.

// Sort an array of nodes based on their relative position in the document and

// Source:

// Source: http://dom.spec.whatwg.org/#dom-node-comparedocumentposition

// Spaces are generated by adding an actual space. Each of these

// Spaces based on just a CSS class.

// Spacing, based on amsmath.sty's override of LaTeX defaults

// Special case for "transparent", all other non-alpha formats

// Special case for a simple path URL

// Special case to handle the `+` key since we use it as a separator.

// Special case:

// Special case: looking for empty string/buffer always fails

// Special logic: when in mobile miniApp runtime, only use dd.addDTChannelEventListener to listener

// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.

// Square roots are handled in the TeXbook pg. 443, Rule 11.

// Stack of delimiter lists for upper level tags

// Start a new group namespace

// Start in math mode

// Start list

// Start offset, zero-based inclusive.

// Start the timer for the trailing edge.

// Stay

// Step 1: collect `commands` & `queries` from `plugins`.

// Step 2: wrap `commands` & `queries` into `onCommand` & `onQuery` respectively.

// Stick the character box into the base of the supsub group

// Store the settings for use in parsing

// Stores { start: end } pairs. Useful for backtrack

// Stretchy arrows with an optional argument

// String input requires "1.0" as input, so 1 will be treated as 1

// StringDecoder provides an interface for efficiently splitting a series of

// Strip off any combining characters

// Strip off outer tag wrapper for processing below.

// Style changes are handled in the TeXbook on pg. 442, Rule 3.

// Style the rule to the right size

// Subscripts shouldn't be shifted by the base's italic correction.

// Super scripts and subscripts, whose precise placement can depend on other

// Superscript and subscripts are handled in the TeXbook on page

// Supplemental code point, use two-level lookup.

// Supply a getter just to skip dealing with ESM bindings

// Support call raf with delay specified frame

// Support decoding URL-safe base64 strings, as Node.js does.

// Support render props

// Swallow

// Switch mode back

// Switch to specified mode

// Switching from text mode back to math mode

// Symbol names preceeded by "@" each have a corresponding macro.

// Symbols from latex.ltx:

// Symbols whose definition starts with \DOTSB:

// Symbols whose definition starts with \DOTSI:

// Symbols whose definition starts with \DOTSX:

// Symbols whose definition starts with \mathbin:

// Symbols whose definition starts with \mathrel:

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS

// TIFF, little-endian type

// TO BE SOLVED: 1. 存在上下 margin 的 block 元素在跨 block 选区时高度会不稳定

// TODO

// TODO Deprecate direction "horizontal"

// TODO We're reading the store directly in render() here. Bad idea?

// TODO bugix 需要重新梳理props, 这里临时补上document, 解决在heading下渲染list的报错

// TODO consider creating a merged map

// TODO copy failed in ios version lower than 13 if prevent default event.

// TODO keydown 的 debounce 时间设定, 暂定 1s

// TODO 如果对应自组件长度变化, 则认为布局变化

// TODO 暂时保留listStyleType字段，未来依赖上下文判断列表类型

// TODO 根据字体大小，动态计算罗马数字预留空间的宽度

// TODO 此处限制了业务层的拓展，之后应当移除

// TODO 目前仅支持雪碧图，单个表情或动图待支持 @灯少

// TODO 移动端暂不支持插入表情

// TODO 这里HOC Paragraph缺少必要types

// TODO(#963): Use a union type for this.

// TODO(alpert): More duplication than I'd like from

// TODO(edemaine)

// TODO(edemaine): Fix this.

// TODO(emily): Add a space in the middle of some of these

// TODO(emily): Figure out a good way to only print this in development

// TODO(emily): This doesn't produce the correct size for nested size

// TODO(kevinb) get the current style.

// TODO(kevinb): dedupe this with buildHTML.js

// TODO(kevinb): implement \\sl and \\sc

// TODO:

// TODO: Add more comments

// TODO: Create variable sized versions of the last two items. I believe that

// TODO: Doesn't normally work in math mode because \@ fails.  KaTeX doesn't

// TODO: Fix this violation of the `span` type and possibly rename

// TODO: HACK 目前无序原点垂直不居中，后续@灯少替换新的 unicode 后这里可以去掉

// TODO: If used in text mode, should expand to \textellipsis.

// TODO: In LaTeX, \pounds can generate a different character in text and math

// TODO: In TeX these units are relative to the quad of the current

// TODO: Left-aligned tags.

// TODO: Logic should not reach here, need check if happens

// TODO: Optional arguments: \newcommand{\macro}[args][default]{definition}

// TODO: Should expand command

// TODO: Should properly expand arg, e.g., ignore {}s

// TODO: The value type of _environments should be a type union of all

// TODO: The value type of _functions should be a type union of all

// TODO: These code assumes that a node's math class is the first element

// TODO: When font glyphs are available, delete this code.

// TODO: \> and math mode of \: should use \medmuskip = 4mu plus 2mu minus 4mu

// TODO: \hskip and \mskip should support plus and minus in lengths

// TODO: defineMacro("\\varcoppa", "\\\mbox{\\coppa}");

// TODO: math mode should use \medmuskip

// TODO: math mode should use \medmuskip = 4mu plus 2mu minus 4mu

// TODO: math mode should use \thickmuskip

// TODO: math mode should use \thickmuskip = 5mu plus 5mu

// TODO: math mode should use \thinmuskip

// TODO: onMouseOver 检测鼠标 over 事件

// TODO: remove fallback for next major

// TODO: remove this workaround when CM standard will allow nested links

// TODO: we could get rid of the need for the wrapper node

// TODO: 不支持其它复杂纹理

// TODO: 关于 textarea 的滚动控制可以参考 Google Docs 的 iframe 方案

// TODO: 在 model 增加一个可以不计入 asl 的 attributes，用于存储 key

// TODO: 处理点击 content 外元素时的定位逻辑，后续有更好的方案可移除

// TODO: 字号较大时与 word 存在较大差异

// TODO: 将编辑行为的 onKeyDown 事件和选区交互行为分离 @展炤

// TODO: 排版模式下 document 节点的宽度计算偏大，会导致空列表中插入的图片尺寸偏大溢出

// TODO: 暴露全局的 keydown，不要每个组件自己注册一遍

// TODO: 等 selectionLayer 提到 content，修改这里的判断逻辑

// TODO: 给 Menu 添加 getContainer

// TODO: 这里无法区分正文or标题，无法给正文设置默认字号

// TODO: 这里的 query 会在每次 select 时消耗一次 O(N) 的查询性能，后续考虑在 DOM 上做一次 O(h) 的查询来优化

// TODO: 需要替换 icon

// TODO: 非双行模式下忽略vertical（脏）

// TODO：更严格地，这里 selection 可能是 view selection，需要转换为 data selection 来比较

// TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.

// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context

// Take in a single string / number and check to see if it looks like a CSS unit

// Take input from [0, n] and return it as [0, 1]

// Taken from TeX source, tex.web, function make_left_right

// Tall sqrt. In TeX, this would be stacked using multiple glyphs.

// Tamil (0B80–0BFF)

// Target is in this context.

// Target is nested in this context.

// TeX \char makes a literal character (catcode 12) using the following forms:

// TeX \showlists shows a kern of 1.13889 * fontsize;

// TeX but doesn't here, producing different results. If we wanted to

// TeX point

// TeX source: \def\@ifstar#1{\@ifnextchar *{\@firstoftwo{#1}}}

// TeX source: \long\def\@firstoftwo#1#2{#1}

// TeX source: \long\def\@secondoftwo#1#2{#2}

// Telugu (0C00–0C7F)

// Temporarily remove the node under consideration

// Test for \hline at the top of the array.

// Test with container offset which is stable

// Text end offset

// Text start offset

// Text-mode accents

// Thai (0E00–0E7F)

// Thanks to ReactDOMFactories for this handy list!

// Thanks to jQuery xColor for some of the ideas behind these

// Thanks to less.js for some of the basics here

// The "k" in cjk is for Korean, but we've separated Korean out

// The + prefix indicates that these fields aren't writeable

// The 0.16 and 0.09 values are found emprically. They produce an array

// The 1.125 factor was empirically determined

// The 80 units padding is most obvious here. Note start node at M1001 80.

// The Brahmic scripts of South and Southeast Asia

// The Browser also has localStorage in the global context.

// The Cyrillic script used by Russian and related languages.

// The JS engine embedded in Adobe products needs `match` returned in

// The KaTeX fonts do not contain U+00B7. Instead, \cdotp displays

// The \sqrt rule width is taken from the height of the surd character.

// The above copyright notice and this permission notice shall be included

// The body of an atom is an implicit group, so that things like

// The cancel package documentation says that cancel lines add their height

// The character box is the base of the accent group

// The child props selector needs the store reference as an input.

// The detection algorithm is as follows:

// The doubleleftarrow geometry is from glyph U+21D0 in the font KaTeX Main

// The error message

// The final "%c" is somewhat tricky, because there could be other

// The following builders are called only at the top level,

// The following if statements allows this module two have compatibility with

// The greediness of a superscript or subscript

// The hex numbers in the next line are a surrogate pair.

// The href is just the compiled result.

// The index is always in scriptscript style

// The matrix environments of amsmath builds on the array environment

// The module cache

// The next 3 functions are here to support the mhchem extension.

// The next loop loads wide (surrogate pair) characters.

// The next ten paths support reaction arrows from the mhchem package.

// The next three arrows are from the mhchem package.

// The normal React way to do it won't work since the child will have

// The point we want on the math axis is at 0.5 * arrowBody.height.

// The real accent group is the base of the supsub group

// The require function

// The return value is a bitmask with the following values:

// The safest way to check this is to intentionally set a negative offset,

// The same as abothe but without [0-9]

// The scrollbar size should be considered when scrolling an item into view, to ensure it's fully visible.

// The short left harpoon has 0.5em (i.e. 500 units) kern on the left end.

// The size mappings are taken from TeX with \normalsize=10pt.

// The size of delimiters is the same, regardless of what style we are

// The slant of the symbol is just its italic correction.

// The space between adjacent `|` columns in an array definition. From

// The steps taken here are similar to the html version.

// The stmaryrd and semantic packages render the next four items by calling a

// The texvc package contains macros available in mediawiki pages.

// The third argument is an optional Object.

// The use of `Object#toString` avoids issues with the `typeof` operator

// The vlist contents go in a table-cell with `vertical-align:bottom`.

// The zero-width rule gets us an equivalent to the vertical 6pt kern.

// Then browser rounding error on the parent span height will not

// Then, we render its group to get the symbol inside it

// There are 2 flags for operators; whether they produce limits in

// There are four SVG images available for each function.

// There are four parts, the top, an optional middle, a repeated part, and a

// There are lots of symbols which are the same, so we add them in afterwards.

// There must be html content to trigger copy event.

// There should never be more than

// These SVGs come from fonts: KaTeX_Size1, _Size2, etc.

// These all refer to characters from the font, so we turn them into special

// These are all they types of groups which hold single characters

// These font metrics are extracted from TeX by using tftopl on cmex10.tfm;

// These ligatures are detected and created in Parser.js's `formLigatures`.

// They can't all go in the same vlist, because the note might be

// This Subscription's source should match where store came from: props vs. context. A component

// This action has a similiar effect to ActionTypes.INIT.

// This actually should depend on the chosen font -- e.g. \boldmath

// This aligns with unicode-math and math fonts (except Cambria Math).

// This also ensures a stable sort in V8 and other engines.

// This behaves neither like String nor Uint8Array in that we set start/end

// This behavior is not strict (XeTeX-compatible) in math mode.

// This case probably shouldn't occur (this would mean the

// This caused that if an input didn't init with the selection,

// This cell's bottom edge will determine the containing table's baseline

// This code aligns the top of the A with the T (from the perspective of TeX's

// This entered again before it fully left. Add it again.

// This error was thrown as a convenience so that if you enable

// This file is GENERATED by buildMetrics.sh. DO NOT MODIFY.

// This file is autogenerated. It's used to publish CJS to npm.

// This file is autogenerated. It's used to publish ESM to npm.

// This follows the xcolor package's HTML color model.

// This function might one day accept an additional argument and do more things.

// This helps minify the code, and also spotting typos using jshint.

// This is a nested size change: e.g., inner[i] is the "b" in

// This is a symbol. Just add the symbol.

// This is a text operator. Add all of the characters from the

// This is an edge case for lists; normally they only scroll in the dominant direction.

// This is an operator with children. Add them.

// This is equivalent to \binrel@{x}\binrel@@{y} in AMSTeX.

// This is for to force a repaint,

// This is necessary because initially emphasis delimiter markers (*, _, ~)

// This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).

// This is to force a repaint,

// This is to support parse stuff like "  http://foo.com  \n"

// This is used to make sure we don't warn about the same

// This line is inside the blockquote.

// This object will be used as the prototype for Nodes when creating a

// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)

// This should never happen.

// This shouldn't be necessary, but there are weird race conditions with

// This shouldn't happen as long as we do top-down subscriptions correctly, but

// This table gives the number of TeX pts in one of each *absolute* TeX unit.

// This utility copied from "dom-helpers" package.

// This value determines how large a pt is, for metrics which are defined

// This value is also used in katex.less; if you change it make sure the

// This was removed before it had fully appeared. Remove it.

// This was removed before it had fully entered. Remove it.

// This way the result will be the same whether the tinycolor is initialized with string or object.

// This way we don't break pure sCU for items that don't use isScrolling param.

// This will be easier of handling of styling nodes is in the same file.

// This will likely cause Bad Things (TM) to happen in Concurrent Mode.

// This would avoid ever calling the render function for the same index more than once,

// Thus, multiplying a length by this number converts the length from units

// Tibetan (0F00–0FFF)

// Tight list paragraphs

// To accomplish this, we wrap the results in a fragment, so the inner

// To avoid conditionally calling hooks, we fall back to a tiny wrapper

// To avoid this, we would subclass documentFragment separately for

// To get around it, we can conditionally useEffect on the server (no-op) and

// To maintain the wrapperProps object reference, memoize this destructuring.

// To make comparing easier, an entry that has a ratio of 0

// To make the animation happen,  we have to separate each rendering and avoid being processed as batched.

// To place a line on an edge we'll use <menclose>, if necessary.

// To write the supsub, wrap the first vlist in another vlist:

// Todo 判断如果容器能在ifame成功接通jsbridge，则依然返回 collection[name];

// Token class

// Too much nesting, just skip until the end of the paragraph.

// Toolbar宽度变化时触发

// Total length of these series of delimiters.

// Touched or validate or has initialValue

// Trailing colon is removed from `url.host` when it is parsed. If it still

// Transform combining characters into accents

// Treat under accents much like underlines.

// Tricky logic here:

// Trigger a mutation observer callback, which is a microtask.

// Trigger by store update. Check if need update the component

// Trigger onChange when max or min change

// Trigger store change

// Trigger user key down

// Trigger user key up

// Trim and collapse whitespace

// Trim any trailing whitespace from control word match

// Trim off extra bytes after placeholder bytes are found

// Try all possible rules.

// Try fast path regexp

// Try to check if list is terminated or continued.

// Try to match string input using regular expressions.

// Try to parse an open brace or \begingroup

// Try to parse the input

// Try to take previous element from cache, if .test() called before

// TypeError if undefined or null

// UNUSED EXPORTS: CalendarCardPlugin, CalloutPlugin, CardPlugin, Checkbox, CodePlugin, ColumnsPlugin, CommentPlugin, ContextMenu, DocStylePlugin, DraggablePlugin, EmbedPlugin, ExceptionPlugin, GroupFactory, HeadingGroupPlugin, HeadingPlugin, HoverBlock, HrPlugin, ImTagPlugin, ImagePlugin, IndentPlugin, LinkPlugin, ListGroupPlugin, ListPlugin, MarksPlugin, MentionPlugin, ParagraphPlugin, PcContextMenu, RefBlockPlugin, RefBlockPluginActions, RefBlockPluginCommands, RefBlockPluginStyles, RefBlockPluginUtils, ReferPlugin, StickerPlugin, SubjectPlugin, TablePlugin, TagPlugin, TextBackgroundPlugin

// UNUSED EXPORTS: CangjieClipboardEvent, CangjieInputEvent, ExternalZoomContext, FlushTask, History, ImmutableRecord, Leaf, Node, Operation, OperationType, StyleContext, createPerfFirstRenderPlugin, createPerfLazyRenderPlugin, createPlaceholderPlugin, getDirtyKeysFromElementDiffStrictly, keyUtils, normalizePendingConfig, opContextUtils, setUtils, textUtils, useContentStyle, useExternalZoom, useNodeStyle, useOffsetPosition, useSelectionData, useStyle

// UNUSED EXPORTS: H1, H2, H3, H4, H5, H6, InlinePlaceholderWrapper, P, TD

// UNUSED EXPORTS: RELATIVE_LEVEL

// UNUSED EXPORTS: actions

// UNUSED EXPORTS: default

// UNUSED EXPORTS: fontSize, lineHeight

// URLs are obnoxious.

// USE OR OTHER DEALINGS IN THE SOFTWARE.

// UTF-16LE typically needs two bytes per character, but even if we have an even

// UUID timestamps are 100 nano-second units since the Gregorian epoch,

// Underline token in question using combining underscores

// Underlines are handled in the TeXbook pg 443, Rule 10.

// Undo this set at end of this group (possibly to `undefined`),

// Unicode accent mechanism, so they fall back to Times font and look ugly.

// Unicode entries:

// Unicode middle dot

// Unicode stacked relations

// Unicode versions of existing characters

// Unique ID creation requires a high quality random # generator.  In the

// Unscale to make absolute units

// Unsubscribe.

// Usage:

// Use '/' to close single tags (<br />)

// Use <html>/<body> instead of window since scroll bars affect size.

// Use `util.types` for Node.js 10+.

// Use a `switch` statement to work with class constructors. See

// Use a for loop to avoid recursion

// Use built-in when available, missing from IE11

// Use delimiter.sizedDelim to generate the delimiter.

// Use direct extract instead of `regenerate` to reduse browserified size

// Use old \color behavior (same as LaTeX's \textcolor) if requested.

// Use reversed logic in links start/end match

// Use source `argPos` if available.

// Use source `arity` if one is not provided.

// Use source `ary` if it's smaller.

// Use source `func` and merge bitmasks.

// Use source `thisArg` if available.

// Use the last character's italic correction since we use

// Use the setState() updater to ensure state isn't stale in certain edge cases.

// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,

// Used to describe the mode in error messages.

// Useful for some operations with tokens

// User should not pass `children` as other type.

// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.

// Usually this optional callback is used for informing an owner of

// Utilities

// Utility Functions

// Validates as many continuation bytes for a multi-byte UTF-8 character as

// Value

// Values outside of this range will be wrapped into this range.

// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto

// Wait a tick to make sure return type is a promise

// Walk through delimiter list and replace text tokens with tags

// Warning if conflict with form initialValues and do not modify value

// Warning if multiple field set `initialValue`and do not modify value

// Warning: maxLength not taken into account in base64Write

// Watch for \nobreak along the way, and stop at \newline.

// We add font name as a css class

// We add these Latin-1 letters as symbols for backwards-compatibility,

// We allow a 6-digit HTML color spec without a leading "#".

// We also can't just check "__reactInternalSnapshot",

// We also omit texvc's \O, which conflicts with \text{\O}

// We always center \left/\right delimiters, so the axis is always shifted

// We always start at the bottom, so calculate the bottom by adding up

// We always will resolve, errors should be handled within loading UIs.

// We can move the cursor before it

// We can't expand the next symbol after the closing $ until after

// We compute the corresponding \raisebox when A is rendered at \scriptsize,

// We could potentially optimize further by only evicting styles after this index,

// We create viewBoxes with 80 units of "padding" above each surd.

// We dispatch validate to root,

// We do not need re-register since namePath content is the same

// We do not use rowGap[] because MathML automatically increases

// We do this within the group for the math expression, so it doesn't

// We don't pick different a height surd for \Huge. For it, we scale up.

// We don't support any wide characters outside 1D400–1D7FF.

// We don't typically have font metrics for Asian scripts.

// We found the end of the link, and know for a fact it's a valid link;

// We go 1 magnitude less, for safety

// We got a limit control

// We got a prime

// We got a subscript start

// We got a superscript start

// We handle this case by adding `defaultCaretPosition !== 0`

// We ignore the start point by default, since the start point is the same

// We kept the amssymb atom type, which is rel.

// We maintain this cache, and pass a style prop rather than index,

// We manually have to handle the superscripts and subscripts. This,

// We memoize the elements for the rendered child component as an optimization.

// We need count current node margin

// We need this to execute synchronously every time we re-render. However, React warns

// We need to handle both cases, but can't just check for the presence of "maybeSnapshot",

// We need to provide this childFactory so that

// We need to shift the character by its width (effectively half

// We never cache the focused DOM element

// We omit the functions deprecated at

// We only are interested in the *last* %c

// We rehydrate only once and use the sheet that is created first

// We request animation frame so that rendering doesn't happen during another ongoing process

// We scan from the end, to keep position when new tags added.

// We set the parts and font based on the symbol. Note that we use

// We should fixed namePath & value to avoid developer change then by form function

// We should not add port numbers if they are already the default port number

// We should special handle array validate

// We should terminate list on style change. Remember first one to compare.

// We simulate this by adding (arraystretch - 1)em to the gap. This

// We support some letters in the Unicode range U+1D400 to U+1D7FF,

// We suppress the shift of the base of \overset and \underset. Otherwise,

// We use CSS class names like cjk_fallback, hangul_fallback and

// We use Class instead of Hooks here since it will cost much code by using Hooks.

// We used to have separate top and bottom struts, where the bottom strut

// We want to capture the wrapper props and child props we used for later comparisons

// We want to replace at least three characters

// We will define depth in an empty span with display: table-cell.

// We will take consider prev form unmount fields.

// We'll call \varvdots, which gets a glyph from symbols.js.

// We'll map it to AMS function \dashrightarrow. It produces the same atom.

// We'll use a single SVG to accomplish the same thing.

// We're in \oiint or \oiiint. Overlay the oval.

// We're in a \tfrac but incoming style is displaystyle, so:

// When a store is created, an "INIT" action is dispatched so that every

// When the authority component is absent the URL starts with a path

// When the field is not `preserve`, we need fill this with initialValues instead of store.

// When there is a middle bit, we need the middle part and two repeated

// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.

// Workaround for phantomjs - need regex without /g flag,

// Wrap ReactNode with `key`

// Wrap additional function of component, so that we can get latest value from store

// Wrap callback only accept when promise not provided

// Wrap promise with field

// Wrap the supsub vlist in a span.msupsub to reset text-align.

// Wrap up the expression in an mrow so it is presented in the semantics

// Wrapping an inline void

// Write a single TextNode instead of multiple nested tags.

// Write the \cancel stroke on top of inner.

// Write the line except the newline

// Writing a hex string, for example, that contains invalid characters will

// XXX (@Qix-) should we be logging these?

// XXX Temporary. Will be removed in the next major release.

// You can't style <math> nodes, so we wrap the node in a span.

// You may need to apply reactive updates to a child as it is leaving.

// Zhi 的交互和 Bi 不一样，在一些 embed 元素中会有一些文字，如果处理了 collapsed 选区，则无法拷贝内部文字，这里

// Zs (unicode class) || [\t\f\v\r\n]

// ['name'] -> ['name','list']

// ['p']

// [FileTypeKey.SHEET]: 'https://img.alicdn.com/imgextra/i3/O1CN01SmA22l1stRLMYanKl_!!6000000005824-2-tps-128-128.png',

// [IMPORTANT]

// [defaultLocale] is the same as [configs.plugins.contextMenu]

// [label]:   destination   'title'

// [link](  <href>  "title"  )

// [原始值, 数字组, 单位组]

// \@argarraycr

// \@binrel{x}{y} renders like y but as mbin/mrel/mord if x is mbin/mrel/mord.

// \@char is an internal function that takes a grouped decimal argument like

// \@yargarraycr

// \DeclareMathSymbol{\not}{\mathrel}{symbols}{"36}

// \DeclareRobustCommand

// \DeclareRobustCommand\hspace{\@ifstar\@hspacer\@hspace}

// \DeclareRobustCommand{\LaTeX}{L\kern-.36em%

// \DeclareRobustCommand{\copyright}{%

// \DeclareRobustCommand{\tmspace}[3]{%

// \DeclareTextCommandDefault{\textcopyright}{\textcircled{c}}

// \DeclareTextCommandDefault{\textregistered}{\textcircled{%

// \\ defaults to \newline, but changes to \cr within array environment

// \\ is a macro mapping to either \cr or \newline.  Because they have the

// \above is an infix fraction that also defines a fraction bar size.

// \baselineskip via \openup.

// \bigcirc glyph

// \binrel@ spacing varies with (bin|rel|ord) of the atom in the argument.

// \cancel, \bcancel, \xcancel, \sout, \fbox, \colorbox, \fcolorbox

// \cancel, \bcancel, or \xcancel

// \cfrac inserts a \strut into the numerator.

// \char defined in macros.js.

// \colonapprox name is same in mathtools and colonequals.

// \colonsim name is same in mathtools and colonequals.

// \color isn't supposed to affect the type of the elements it contains.

// \def \AA {\r A}

// \def \aa {\r a}

// \def\>{\mskip\medmuskip}

// \def\@hspace#1{\hskip  #1\relax}

// \def\@hspacer#1{\vrule \@width\z@\nobreak

// \def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@}

// \def\arraystretch{1.2}%

// \def\c@ncel#1#2{\m@th\ooalign{$\hfil#1\mkern1mu/\hfil$\crcr$#1#2$}}

// \def\enskip{\hskip.5em\relax}

// \def\enspace{\kern.5em }

// \def\iff{\DOTSB\;\Longleftrightarrow\;}

// \def\impliedby{\DOTSB\;\Longleftarrow\;}

// \def\implies{\DOTSB\;\Longrightarrow\;}

// \def\lq{`}

// \def\neq{\not=} \let\ne=\neq

// \def\qquad{\hskip2em\relax}

// \def\quad{\hskip1em\relax}

// \def\rq{'}

// \dotsc uses \extra@ but not \extrap@, instead specially checking for

// \extra@ also tests for the following:

// \extrap@ checks for the following:

// \f

// \genfrac acts differently than \above.

// \genfrac treats an empty size group as a signal to use a

// \global\def is equivalent to \gdef

// \hskip -\arraycolsep in amsmath

// \kern6\p@\hbox{.}\hbox{.}\hbox{.}}}

// \keybin@ checks for the following:

// \left case below triggers parsing of \right in

// \left(x\right)^2 work correctly.

// \left\{\begin{array}{@{}l@{\quad}l@{}} … \end{array}\right.

// \let\DOTSB\relax

// \let\DOTSI\relax

// \let\DOTSX\relax

// \let\bgroup={ \let\egroup=}

// \let\medspace\:

// \let\negthinspace\!

// \let\thickspace\;

// \let\thinspace\,

// \llap and \rlap render their contents in text mode

// \macroName + spaces

// \middle should get delimiter spacing instead.

// \mkern, \mskip

// \mkern-\thinmuskip{:}\mskip6muplus1mu\relax}

// \n

// \n 只有出现在 a 及 p 中才被转换

// \n 符号

// \newcommand{\boxed}[1]{\fbox{\m@th$\displaystyle#1$}}

// \newcommand{\macro}[args]{definition}

// \newcommand{\mod}[1]{\allowbreak\if@display\mkern18mu

// \newcommand{\negmedspace}{\tmspace-\medmuskip{.2222em}}

// \newcommand{\negthickspace}{\tmspace-\thickmuskip{.2777em}}

// \newcommand{\pod}[1]{\allowbreak

// \not is defined by base/fontmath.ltx via

// \operatorname

// \phantom isn't supposed to affect the elements it contains.

// \pmb    --   A simulation of bold.

// \providecommand*\Colonapprox{\dblcolon\mathrel{\mkern-1.2mu}\approx}

// \providecommand*\Coloneqq{\dblcolon\mathrel{\mkern-1.2mu}=}

// \providecommand*\Coloneq{\dblcolon\mathrel{\mkern-1.2mu}\mathrel{-}}

// \providecommand*\Colonsim{\dblcolon\mathrel{\mkern-1.2mu}\sim}

// \providecommand*\Eqcolon{\mathrel{-}\mathrel{\mkern-1.2mu}\dblcolon}

// \providecommand*\Eqqcolon{=\mathrel{\mkern-1.2mu}\dblcolon}

// \providecommand*\colonapprox{\vcentcolon\mathrel{\mkern-1.2mu}\approx}

// \providecommand*\coloneqq{\vcentcolon\mathrel{\mkern-1.2mu}=}

// \providecommand*\coloneq{\vcentcolon\mathrel{\mkern-1.2mu}\mathrel{-}}

// \providecommand*\colonsim{\vcentcolon\mathrel{\mkern-1.2mu}\sim}

// \providecommand*\dblcolon{\vcentcolon\mathrel{\mkern-.9mu}\vcentcolon}

// \providecommand*\eqcolon{\mathrel{-}\mathrel{\mkern-1.2mu}\vcentcolon}

// \providecommand*\eqqcolon{=\mathrel{\mkern-1.2mu}\vcentcolon}

// \p{\Z\Cc} (white spaces + control)

// \p{\Z\P\Cc\CF} (white spaces + control + format + punctuation)

// \r

// \relax stops the expansion, but shouldn't get returned (a

// \renewcommand{\!}{\tmspace-\thinmuskip{.1667em}}

// \renewcommand{\,}{\tmspace+\thinmuskip{.1667em}}

// \renewcommand{\:}{\tmspace+\medmuskip{.2222em}}

// \renewcommand{\;}{\tmspace+\thickmuskip{.2777em}}

// \renewcommand{\bmod}{\nonscript\mskip-\medmuskip\mkern5mu\mathbin

// \renewcommand{\colon}{\nobreak\mskip2mu\mathpunct{}\nonscript

// \renewcommand{\macro}[args]{definition}

// \renewcommand{\pmod}[1]{\pod{{\operator@font mod}\mkern6mu#1}}

// \rightdelim@ checks for the following:

// \t

// \tag@in@display form of \tag

// \textcircled uses the \bigcirc glyph, so it needs some

// \textdegree from inputenc package

// \u2061 is the same as &ApplyFunction;

// \v

// \vdots is a macro

// \vdots{\vbox{\baselineskip4\p@  \lineskiplimit\z@

// \verb and \verb* are dealt with directly in Parser.js.

// ^ listIndent position will be here

// __webpack_public_path__

// `<em><em>whatever</em></em>` -> `<strong>whatever</strong>`

// `IntersectionObserver`, it's sufficient to simply mirror `left` and `top`

// `ParseNode` types. These `ParseNode`s are constructed within `Parser` by

// `\Huge a \small b`. Override the old size (the `reset-` class)

// `\showthe\doublerulesep` in LaTeX. Equals 2.0 / ptPerEm.

// ```

// `basicLength` is the number of basic code points.

// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)

// `clock_seq_low`

// `contrast`

// `document.nodes` is empty.

// `equals`

// `fragment` to be inserted into the document. By default, the node returned

// `handledCPCount` is the number of code points that have been handled;

// `hslToRgb`

// `hsvToRgb`

// `i` was supposed to wrap around from `out` to `0`,

// `index` is the index of the next character to be consumed.

// `isReadable`

// `isValidCSSUnit`

// `mostReadable`

// `mu` units scale with scriptstyle/scriptscriptstyle.

// `node`

// `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in

// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247

// `overflow:hidden`, the strut's top edge will sit on the item's line box's

// `rgbToHex`

// `rgbToHsl`

// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:

// `rgbToHsv`

// `rgbToRgb`

// `rgbaToArgbHex`

// `rgbaToHex`

// `setFieldsValue` is a quick access to update related status

// `stringInputToObject`

// `time_high_and_version`

// `time_low`

// `time_mid`

// `validating` changed. Trigger `onFieldsChange`

// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`

// a child that doesn't match.

// a childFactory function to wrap every child, even the ones that are

// a group, we scale down the inner size based on the size.

// a in [0, 1]. Returns a 4 or 8 character rgba hex

// a leave animation and telling it to remove the child.

// a paragraph (validation mode only)

// a paragraph, first line should not be empty.

// a paragraph, it should start with 1.

// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding

// a-z Fraktur

// a-z bold Fraktur.   No font.

// a-z bold italic

// a-z bold italic sans. No font

// a-z bold sans-serif

// a-z bold script. No font

// a-z bold upright

// a-z italic

// a-z italic sans-serif

// a-z sans-serif

// a-z script.  No font

// aaaBBB: a has no marks, B has marks, so they have no intersected marks

// about useLayoutEffect in SSR, so we try to detect environment and fall back to

// accent, we manually recalculate height.

// account for the possible size change here.

// account for the style change size.

// achromatic

// activeTab 在 wrap 的可见区域右侧

// activeTab 在 wrap 的可见区域左侧

// acute

// add '%' to exclude list because of https://github.com/markdown-it/markdown-it/issues/720

// add a new record indicating removal.

// add ī when we add Extended Latin

// affect \kern, \hspace, etc. It will capture the mandatory arguments

// affected by the height of the accent). We accomplish this by

// after parent/root component mounted

// after the actual rules to simplify the rehydration

// again, effectively mutating the component before all the work

// aka. 0x7FFFFFFF or 2^31-1

// aliases, except \bm defined below

// alignat environment is like an align environment, but one must explicitly

// all SC-specific things should not be hoisted

// all the sizes

// allow [c,[a,b]]

// allow a single character in raw string group

// allow detectFactoryAndVerify to get ownProps

// allow empty columns before and after table, but not in between columns;

// allow null options

// allowDownload 是 boolean 值时，直接设置

// allowDownload 是函数时，当 src 有变化时候，调用一次设置

// allowing connectAdvanced's shouldComponentUpdate to return false if final

// allows for nested Transitions

// almost on the axis, so these numbers are very small. Note we

// already been removed. In case you need this behavior you can provide

// already exists at the range, we meld the fragment contents into the

// alternative to using Object.keys for old browsers

// alway skip the entrance WHEN started at a selectable inside node

// always allow unencoded alphanumeric characters

// always set input value same as value

// amount. Note we only do this when the base is a single symbol.

// amsbsy.sty's \boldsymbol uses \binrel spacing to inherit the

// amsmath doesn't actually define \dotsx, but \dots followed by a macro

// amsmath.sty

// amsopn.dtx: \mathop{#1\kern\z@\operator@font#3}\newmcodes@

// an emphasis.

// an existential type.

// an initial tab length, e.g. bsCount=21 applied to string `\t123`

// an unknown child, ...

// ancestor components re-render before descendants

// and .toUpperCase doesn't normalize 6 of them (list of exceptions:

// and .toUpperCase() doesn't change ϴ (already uppercase).

// and Laura Doktorova's doT.js (https://github.com/olado/doT).

// and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).

// and adding an undo with the *new* value (in case it later gets

// and align row should be exactly the same (the rest of the rows can differ)

// and alphanumeric chars is percent-encoded.

// and boldsymbol.

// and choose left side of following bounding rect

// and contents are set in \displaystyle.

// and for whether this closer can be an opener;

// and forces the added `\,`.

// and inconsistent support for the `crypto` API.  We do the best we can via

// and increment current pos

// and line

// and no other characters are allowed but spaces;

// and possible superscript.

// and remove it afterwards.

// and set the offset of the nav wrap node

// and smartquotes on. Could be either a String or an Array.

// and the old ratio are on the opposite sides of a threshold.

// and then immediately switch back.

// and then verify that the subsequent "scroll" event matches the negative offset.

// and update accordingly with a percentage

// and values needed to control behavior (forwarded refs, alternate context instances).

// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434

// any component node

// appears that our fonts have the centers of the symbols already

// applyOperation 中调整，value 没有感知到 controller 的存在，就无法获取 edge point。

// appropriate function.

// appropriately for use as the marginRight.

// are multiples of 3.

// are the ones that are *expected* to be seen, so we fast-path

// are treated as their own separate text tokens. Then emphasis rule either

// argument's bin|rel|ord status

// arguments passed either before or after the %c, so we need to

// array lines by setting attributes on the table element.

// array.

// as a ref instead of a useState/useReducer because we need a way to determine if that value has

// as defined in mathtools.sty.

// as defined in nccmath.sty.

// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring

// aside from the kern calculations, is copied from supsub.

// aslDom 必须作为第一个子元素且 userSelect 设为 none，否则由于 image 占位，在 im 中粘贴会产生两个空行

// assume that it's an IPv6 address.

// assume utf8

// assuming that window.scrollTo() should be used if the scrollable element

// at index 3-2=1, text starts at 3-1=2, and display starts at min(2,3-0)=2

// at least the width of the accent, and overlap directly onto the

// at this point, either we have an explicit point where the

// at-rule

// atSign can be anywhere.

// atom type directly.

// auth portion cannot go past, or the last @ char is the decider.

// autoconvert URL-like texts to links

// available, otherwise a store update may happen between render and the effect,

// avoid extra slice()

// backtick length => last seen position

// backward 遍历，找到词的后半部分的长度

// bamboo 与 mo 存在互相引用，需要治理后才能使用 mo 中的 type

// baraboveleftarrow is mostly from from glyph U+2190 in font KaTeX Main

// base64 is 4/3 + up to two characters of the original data

// base64编码

// base64解析成utf-8数组

// based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`

// baseline of the box to the bottom of this strut (instead of staying in

// basic 一定要放在最后，否则会覆盖其他插件

// basically, this is the equivalent of /^[-:|][-:|\s]*$/ regexp

// be made available to the begin and end methods using properties.

// be positioned precisely without worrying about font ascent and

// be valid.

// because can separate it from other part of text

// because emails enclosed in quotes are far more common

// because there's an invalid child between its members.

// because, if they are pointing at the same token, replaceAt

// been processed.  If this went into useState/useReducer, we couldn't clear out the value without

// begin...end is similar to left...right

// behavior. The continuation byte check is included three times in the case

// between letter variants.

// between them.

// big (PostScript) points

// blackboard bold

// blackboard bold [

// blackboard bold ]

// blackboard bold {

// blackboard bold }

// block parser variables

// block 节点会附带一个 \n，但是用户选区中的断行需要保留，所以这里只移除一个 \n

// block's inline nodes into it at the split point.

// block-level tag.

// blur 时，配置 showCaretOnBlur 时可以显示远程光标

// bottom.

// boxes, though visually the A appears to extend above slightly).

// brace width.

// brahmic_fallback. See ./unicodeScripts.js for the set of possible

// breve

// broken by replacing non-ASCII by nothing

// broken sequence

// browser this is a little complicated due to unknown quality of Math.random()

// buffers into a series of JS strings without breaking apart multi-byte

// buildSvgSpan_()

// bundled size (e.g. a browser build).

// but can start with > (markdown blockquote)

// but does not actually intersect is given a value of -1

// but guard against overflow.

// but if blockquote is terminated by another tag, they shouldn't

// but it could still be a valid reference if we roll back

// but need to check here for type check to pass.

// but not the new size.

// but since JS is single=threaded, we can rely on that to ensure

// but since we are centering the limits adding a full slant of

// but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it

// but the old build system tooling doesn't support the syntax

// but they are equivalent to \mathit{\Letter}.

// but they are not actually in the font, nor are they supported by the

// but we should filter last element, because it means list finish

// but, KaTeX doesn't supports math numbering yet,

// button 也作为一个菜单选项渲染

// button 独立于 menu 外

// buttonNormalDisabledBgColor: colorGray1, // 略

// by cloning a single child

// by destroying any undos currently scheduled for this name,

// byte = 0 ~ 15 时，其十六进制数前需补0

// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer

// calculate new intersection data.

// calculate the amount of space between the body and the accent

// calculate the following bounding rect (offset, offset + 1)

// calculate the start point (offset)

// calls to a function \@char dealt with in the Parser.

// can be 'blockquote', 'list', 'root', 'paragraph' or 'reference'

// can be used for bold + and -

// can not use props.activeKey

// can specify which fonts to use.  This allows us to render these

// can’t be entered directly

// caron

// case 'add_mark':

// case 'insert_text':

// case 'remove_mark':

// case 'remove_text':

// case 'set_mark':

// case 1，没有 parentTable。需要创建一个新的 table

// case 2，已经有 parentTable 了。需要增加一个 Cell

// category codes, only supports comment characters (14) for now

// cause everything after the first invalid character to be ignored. (e.g.

// cell height with the height/depth of the element content.

// centimeter

// change current state, then restore it after parser subcall

// change minus to hyphen and \ast to asterisk

// changed

// changed since we began.

// changes, because we don't keep state of what style we're currently

// character without any vertical offset.

// character.

// characters with a serif font in situations where the browser would

// characters.

// check for \hline(s) following the row separator

// check if it's outdented, i.e. it's inside list item and indented

// check that first two markers match and adjacent

// check that last two markers are adjacent (we can safely assume they match)

// check the block quote marker

// choose last rect when the point is hanging or after \n

// chop off from the tail first.

// cicero (12 didot)

// circumflex

// clean the cache about current eventName

// closing delimiters must not be a multiple of 3 unless both lengths

// closing tag

// cmr5=1.361133, cmsy5=1.472241. Consider $\scriptsize a\kern1emb$.

// code to add the data object to the top of the scope chain.

// coercion fail below.

// collapse two adjacent text nodes

// collect unique names

// colonequals.sty

// color ? (

// colors for that base, returns the most readable color.

// colsWidth 可能为空，这种情况表格会彻底坏掉

// column index for CSS class.

// column, but where rows are considered lines so get \jot line spacing

// comes *before* the @-sign.

// comment character

// comparably-sized *Computer Modern symbol* font. At 10pt, these

// compatibility

// compensation offset is increased gradually on each move up/down

// compile lazily, because "host"-containing variables can change on tlds update.

// compiled once on the first module load.

// complexity.

// component.

// compose nested shouldForwardProp calls

// compute the rectangle area

// connected descendants won't update until after this component is done

// connected to the store via props shouldn't use subscription from context, or vice versa.

// consistent when it deals with siblings.

// console.log('before flat', JSON.stringify(normalizedFragment));

// console.log('entering', key)

// console.log('leaving', key)

// console.log('unchanged', key)

// console.log(JSON.stringify(normalizedFragment));

// console.log(`onchange, value=[${value}], range=${range}, text=[${text}], composing=[${composing}]`);

// console.log(data, data.length)

// const border = ['#FAFAFA', '#FFFFFF'].includes(colorValue); // Todo：通过计算来设置

// const descriptionWidth = React.useRef<number>(0);

// const id = get(node, 'data.metadata.id');

// const name  = get(node, 'data.metadata.name');

// container 可能是 portal 的父组件，因此在 mount 后再获取 container

// contenteditable mode only, treats that span as if it contains some

// continuation byte. If an invalid byte is detected, -2 is returned.

// control codes

// controller.run('onAction', addComment());

// controller.run('onAction', focusLinkEditor());

// controller.setDecorations(decorations.filter((d) => d !== currentDec));

// convertion to flat mode.

// copies of the 'buffer' package in use. This method works even for Buffer

// copy of this software and associated documentation files (the

// copy over the last transition props;

// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)

// correspond to lines that have additional \jot added to the

// could mess up indices when quote length != 1

// count heading level

// covers label === '' and label === undefined

// create a fake namespace object

// create a proper `origin`.

// createClipboardPlugin.CUSTOM_PASTE_ITEMS;

// createConnect with default args builds the 'official' connect behavior. Calling it with

// current child is in fact the first of the next group. If so, the

// current start offset

// cursor

// cut lines range from source.

// cycle to simulate higher resolution clock

// data is stored in the index array itself.

// debounced at least once.

// decode the last character properly.

// default

// default arrow is at the middle

// default position is on top of selection

// default to space if it's the beginning of the line

// default to space if it's the end of the line

// default webview

// defaults.

// define __esModule on exports

// define getter function for harmony exports

// define these here so at least they only have to be

// defineEnvironment definitions.

// delegate view data to children

// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args

// descriptions, so trailing separators don't get lost.

// diaresis

// didMount 时不处理

// didot

// different from String#codePointAt with low surrogate

// different options opens up some testing and extensibility scenarios

// disabeld状态，如果有Group包住，且Group的disabed为true，则disabled为true

// disable "rule of 3" length checks meant for emphasis

// disable hex4 and hex8

// disable rendering.

// disabled状态，如果有Group包住，且Group的disabled为true，则disabled为true

// displaystyle, and whether they are symbols and should grow in

// displaystyle. These four groups cover the four possible choices.

// distribute, sublicense, and/or sell copies of the Software, and to permit

// ditto tilde2, tilde3, & tilde4

// ditto widehat2, widehat3, & widehat4

// do not edit .js files directly - edit src/index.jst

// do not use state.clamped. #27

// do nothing

// do nothing;

// document as \xrightarrow or \xrightleftharpoons. Those have

// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632

// document order:

// document 变更

// document’s existing nesting pattern as much as possible

// does a reasonable job of adjusting arrays containing 1 em tall content.

// doesn't look funny in math mode.

// doing before.  Before attempting to get the current style we

// don't actually apply this here, but instead it is used either in

// don't allow unescaped spaces/newlines inside

// don't have metrics for it, just use the metrics for

// don't keep empty text node with marks in non-empty paragraph

// don't run any pairs in validation mode

// dot above

// dotless i

// dotless i or j

// dotless j

// double acute

// double inflate the actual trie data

// doublerightarrow is from glyph U+21D2 in font KaTeX Main

// drop first #

// e.g. Users move selection by 3D touch.

// e.g. a table, use `insertBlockAtRange`

// e.g. allow ` |---| `, disallow ` ---||--- `

// e.preventDefault();  如果有这个 会影响 编辑区域的 input 选中等行为

// each columns.

// each item, where it will determine the item's baseline. Since it has

// edge cases

// edge point - delete them

// edge point - shim them for hanging positions

// edge point cases, current node maybe void block

// eg. 分页模式下用输入法输入，首字母输入后仅 selection.data.isHanging 会变为 true（https://code.aone.alibaba-inc.com/alidocs/we-word/codereview/7664706）

// eg. 表情 + 文字：可能是包含 or 部分重叠关系

// either default to a sans serif or render a placeholder character.

// elements will be able to directly interact with their neighbors. For

// else: stay in AFTER_COMMENT_2 (`--->`)

// emitted earlier and they will work there

// empty end text node is useless

// encapsulates the subscription logic for connecting a component to the redux store, as

// encode to utf16 (surrogate pair dance)

// encode utf8

// encode(string, keepEscaped)

// encoded sequences.

// encroach on the ink of the viniculum. But that padding is not

// end on a partial character, we simply let v8 handle that.

// endKey is removed!

// ends with a colon, then add back the trailing colon that was removed. This

// enough info to set tag alignment. `leqno` is in Settings but it is

// ensure latest selected state is reused so that a custom equality function can result in identical references

// ensure non-empty stack

// environment name starts with the letter 'd'.

// equal to its position, otherwise it's `-1`.

// escaped pipe, '\|'

// eslint-disable-line

// eslint-disable-line class-methods-use-this

// eslint-disable-line eqeqeq

// eslint-disable-line no-constant-condition

// eslint-disable-line no-param-reassign

// eslint-disable-line no-self-compare

// eslint-disable-line no-undef

// eslint-disable-line no-unreachable

// eslint-disable-next-line

// eslint-disable-next-line @typescript-eslint/consistent-type-assertions

// eslint-disable-next-line @typescript-eslint/no-empty-interface

// eslint-disable-next-line @typescript-eslint/no-explicit-any

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion

// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition

// eslint-disable-next-line @typescript-eslint/no-unused-vars

// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing

// eslint-disable-next-line array-callback-return

// eslint-disable-next-line complexity

// eslint-disable-next-line consistent-return

// eslint-disable-next-line default-case

// eslint-disable-next-line for-direction

// eslint-disable-next-line guard-for-in

// eslint-disable-next-line import/no-cycle

// eslint-disable-next-line import/prefer-default-export

// eslint-disable-next-line max-lines-per-function

// eslint-disable-next-line new-cap

// eslint-disable-next-line no-cond-assign

// eslint-disable-next-line no-console

// eslint-disable-next-line no-empty

// eslint-disable-next-line no-lonely-if

// eslint-disable-next-line no-multi-assign

// eslint-disable-next-line no-nested-ternary

// eslint-disable-next-line no-param-reassign

// eslint-disable-next-line no-plusplus

// eslint-disable-next-line no-restricted-syntax

// eslint-disable-next-line no-return-assign

// eslint-disable-next-line no-shadow

// eslint-disable-next-line no-undef

// eslint-disable-next-line no-unused-expressions

// eslint-disable-next-line no-useless-constructor

// eslint-disable-next-line prefer-const

// eslint-disable-next-line prefer-destructuring

// eslint-disable-next-line react-hooks/exhaustive-deps

// eslint-disable-next-line react-hooks/rules-of-hooks

// eslint-disable-next-line react/destructuring-assignment

// eslint-disable-next-line react/no-array-index-key

// eslint-disable-next-line react/no-did-update-set-state

// eslint-disable-next-line react/no-find-dom-node

// eslint-disable-next-line react/no-unused-state

// eslint-disable-next-line react/static-property-placement

// eslint-disable-next-line valid-typeof

// events when closing a tab, so we have to use `beforeunload` with a

// ex:

// exactly match TeX's calculation, we could do

// example, `\color{red}{2 +} 3` has the same spacing as `2 + 3`

// example: <span leaf-content key=`key:startOffset`>TEXT [offset] TEXT</span>

// except it operates within math mode.

// expandOnce returns Token if and only if it's fully expanded.

// expanded 选区部分在 table 里

// explicitly

// export default <Config: { theme?: any }, Instance>(

// export default CommonLine;

// export this for test usage

// exports.replaceEntities     = replaceEntities;

// expose

// expose the module cache

// expose the modules object (__webpack_modules__)

// extendToFill：扩展行高，填充行之间的空隙

// extracted by mini-css-extract-plugin

// factoryChild is not different from child.

// fade(#000, 25%);

// fade(#000, 45%);

// fade(#000, 65%);

// fade(#000, 85%);

// fail if list has another type

// fail if terminating block found

// fall through

// falls at the depth of the expression.

// families

// fast than some

// feature-detection

// features are natively supported.

// fences (``` lang, ~~~ lang)

// figure out if it's got a host

// figure out the correct index to insert the CSS into

// file 在一些特殊的情况是 undefined 🤷‍♀️

// files 不存在

// filter props for Transtition

// filterOption 为 false 时，不做筛选

// find the complete implementation of crypto (msCrypto) on IE11.

// find the first instance of any hostEndingChars

// first character of the second line should be '|', '-', ':',

// first 和 hanging 互斥，且 hanging 优先级更高

// first/last characters.

// fixed in v12 (couldn't find any details).

// flexibility required.

// focus state, show input value

// focus 时，隐藏工具栏

// focus 时，鼠标进入到 content，隐藏工具栏

// fold the underlying StyledComponent rules up (implicit extend)

// fold the underlying StyledComponent target up since we folded the styles

// following conditions:

// fontMetrics.js:getGlobalMetrics also uses size indexes, so if

// fonts added by plugins

// for a given protocol. As the host also contains the port number we're going

// for a table of space-like characters.  We use Unicode

// for each marker, each delimiter length modulo 3,

// for internally calculated Rect objects. For the purposes of

// for more details.

// for that size difference.

// for these fields.

// for this component's styles compared to others

// force dynamic classnames if user-supplied stylis plugins are in use

// forcing another re-render, which we don't want.

// forward 遍历，找到词的前半部分的长度

// found valid marker

// found!

// frame Vue

// from acting on that line height. So we'll call makeVList now.

// from amsmath

// from spec:

// from the result.

// function (/*str, lang*/) { return ''; }

// function createPlugin(config){

// function used

// function, or symbol.  Used in `isDefined`.

// functions are allowed to be static if they're just being

// functions that precede them.

// future lookups. This is required to make sure algorithm has linear

// garbage at the end of the line after title,

// generate valid links in such cases; we interpret this as

// generated accent.

// get a new selection at Line Start or Line End of the current selection.

// get raw string

// get the dom rectangles from the selction

// get the new values after insert

// getClientBoundingRect不保险，在iOS10下结果不对

// getDefaultExport function for compatibility with non-harmony modules

// getRandomValues needs to be invoked in a context where "this" is a Crypto

// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,

// getSnapshotBeforeUpdate(prevProps) {

// glyph. Those glyphs do not exist in the KaTeX fonts. Hence the macros.

// glyphs for \imath and \jmath do not exist in Math-Italic so we

// go through the array every three bytes, we'll deal with trailing stuff later

// got a fragment string.

// grave

// group 节点

// guess schemaless links

// hack的阻止一下页面的滚动

// handleOnClick(node);

// handling.

// hangingChars 存在时忽略 left 的值

// has already been here, but just to make sure we can do that.

// have thicker rules.

// header row will define an amount of columns in the entire table,

// headerIdx is the first delimiter of the current (where closer is) delimiter run

// heading (#, ##, ...)

// height

// hiddenToolButtons 优先

// hideTargets 优先

// high surrogate

// hook is from glyph U+21A9 in font KaTeX Main

// hover 控制 toolbar 显示

// how the browser resolves relative URLs.

// http://2ality.com/2012/03/signedzero.html

// http://a@b?@c => user:a host:c path:/?@c

// http://a@b@c/ => user:a@b host:c

// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist

// http://jgm.github.io/CommonMark/spec.html#html-blocks

// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae

// http://mirrors.concertpass.com/tex-archive/macros/latex/required/amsmath/amsmath.pdf

// http://serverfault.com/questions/638260/

// http://spec.commonmark.org/0.15/#ascii-punctuation-character

// http://stackoverflow.com/q/21177489/3040605

// http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order

// https://ctan.math.illinois.edu/macros/latex/contrib/statmath/statmath.pdf

// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages

// https://developer.mozilla.org/en-US/docs/Web/CSS/contain

// https://en.wikibooks.org/wiki/LaTeX/Lengths and

// https://en.wikipedia.org/wiki/Help:Displaying_a_formula#Deprecated_syntax

// https://esbench.com/bench/5bfee68a4cd7e6009ef61d23

// https://eslint.org/docs/rules/no-self-compare

// https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133

// https://github.com/ant-design/ant-design/issues/11574

// https://github.com/ant-design/ant-design/issues/14277

// https://github.com/ant-design/ant-design/issues/7358

// https://github.com/ant-design/ant-design/issues/8196

// https://github.com/ant-design/ant-design/issues/9439

// https://github.com/bgrins/TinyColor

// https://github.com/bvaughn/react-window/pull/138

// https://github.com/casesandberg/react-color/issues/383

// https://github.com/commonmark/cmark/commit/34250e12ccebdc6372b8b49c44fab57c72443460

// https://github.com/commonmark/cmark/issues/178#issuecomment-270417442

// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349

// https://github.com/facebook/flow/issues/4808

// https://github.com/feross/buffer/pull/148

// https://github.com/markdown-it/linkify-it/issues/95

// https://github.com/react-component/field-form/issues/313

// https://github.com/react-component/field-form/issues/316

// https://github.com/react-component/input-number/issues/39

// https://github.com/reactjs/react-transition-group/pull/749

// https://github.com/w3c/IntersectionObserver/issues/324

// https://github.com/w3c/IntersectionObserver/pull/205

// https://spec.commonmark.org/0.29/#line-ending

// https://tex.stackexchange.com/a/41371

// https://tex.stackexchange.com/a/8263

// https://tex.stackexchange.com/questions/1930/when-should-one-

// https://w3c.github.io/uievents/#compositionend

// https://www.w3.org/TR/MathML3/appendixc.html.

// https://www.w3.org/TR/MathML3/chapter3.html#presm.commatt

// hyperref package allows backslashes alone in href, but doesn't

// hyperref package sets the catcode of % as an active character

// i.e. LaTeX treats the brace similar to an op and passes it

// i.e. latest empty line should not count

// iOS - Voice Input will try to select all words when finished

// iOS / Mac - Safari: will ignore the only space in textarea.

// iOS 下，reset() 中设置 selectionStart/selectionEnd 的行为会造成 textarea 自动 focus

// if (onChange && (e !== `${value}` || !selectable)) {

// if entities weren't decoded, no need to encode them back

// if first character is '-', then second character must not be a space

// if hostname begins with [ and ends with ]

// if indent wasn't changed

// if it's indented more than 3 spaces, it should be a code block

// if it's not a basic code point

// if it's not defined (in strikethrough or 3rd party plugins),

// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes

// if opening marker is "(", switch it to closing marker ")"

// if the node has been found, then don't assign value to it.

// if the point is after \n

// if the target point is inside a void element, take the next point

// if this.props.precision is undefined

// if we are mounting and running this it means appear _must_ be set

// if we ever do those wrong, this throw will surface the error in our tests.

// if we increase `i` as we go, then subtract off its starting

// if we insert block at an empty block

// if we still have not hit it, then the entire thing is a host.

// if we're dragging the 'focus' point, flip the selection

// if we're in a empty block, remove it

// if we're in a void block, remove it

// if(!id || environment.IS_MOBILE){

// iframe

// ignore

// ignore spaces before each argument

// ignore spaces before sup/subscript argument

// immediately by one of the variants above.

// immediately check for count > max, but do so after processing all nodes.

// immediately check for count > max, but instead do so once we find

// implementation from standard node.js 'util' module

// implementation. Also, find the complete implementation of crypto on IE11.

// import PropTypes from 'prop-types';

// import merge from 'lodash/merge';

// in MathML if browsers supported <mlabeledtr>. Since they don't, we

// in Safari 9 which returns 'object' for typed arrays and other constructors.

// in T1 fontenc

// in TeX and KaTeX)

// in a new span so it is an inline, and works.

// in all copies or substantial portions of the Software.

// in terms of pts.

// in the appropriate tag that VList uses.

// in the current size.

// in the middle of the words, i.e.:

// in the regex in Lexer.js.  LaTeX raises the following error when \verb is

// in the sequence. Thus, scriptscript starts at index 3-3=0, script starts

// in this table, then it should be a regular space character.  Furthermore,

// in, so we can't reset the size to normal before changing it.  Now

// in. Thus, to correctly calculate the size of delimiter we need around

// inch

// include version

// included in the TeX-like `height` used for calculation of

// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)

// increase level if we find text `[`, which is not a part of any token

// incrementing `n` each time, so we'll fix that now:

// indent of the current dd block (-1 if there isn't any)

// indent of the current list block (-1 if there isn't any)

// indents for each line (tabs expanded)

// indicating whether we're in the \cr case, and newLine indicating whether

// initialized. Since we know we're in Chrome, we'll just detect this case

// injection 可能为一组

// injection 有状态，返回 loading

// inline 节点前后添加空文本

// innermost character. To do that, we find the innermost character:

// input 模式的 ValueType 只支持 string | number

// insert 'e'

// insert at front

// inside a column

// inside a list, it would be positioned after list marker)

// instance by changing the signature of `makeSpan`.

// instanceof 只能通过原型链判断，例如 'abc' instanceof String, 结果是 false

// instances that were created from another copy of the `buffer` package.

// instead. Set some attributes that come included with <menclose>.

// into appropriate outputs.

// into opening/closing tags

// into opening/closing tags (which messes up levels inside).

// into pts.  Dividing the result by ptPerEm gives the number of ems

// invalid child before the next group.

// invalid path

// ipv6 address

// is a different step that is not required here.

// is arguably more important, so we report it first. It also lets

// is created synchronously, otherwise a store update may occur before the

// is done.

// is in the fence part of the operator dictionary at:

// is part of the source2e.pdf file of LaTeX2e source documentation.

// is re-rendered, the selectors are called again, and

// is surrogate component

// isGroupBlock, // TODO FIXME: groupNodes 隔开的上下的全局段落，会被分组到一起做空隙填充，需要再对每个连续的全局区块单独命名

// isLinkFocused 变化时主动隐藏

// isList

// isTight() means current style is script/scriptscript.

// it as the trailing edge, or we've hit the `maxWait` limit.

// it can start an emphasis sequence or end an emphasis sequence.

// it optimizes skips in **<...>**a**<...>** pathological case

// it to add padding to the right of the span created from

// it would pause the execution at this line.

// it's a new line, binggo!

// it's another block, count the next start point

// it's considered a lazy continuation regardless of what's there

// italic h, Planck constant

// item hasn't changed transition states

// item is new (entering)

// item is old (exiting)

// its base.

// its new position, we need to adjust part of the path by -1.

// its stroke-width will not vary with span area.

// its width) to compensate.

// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4

// jshint ignore:line

// jump line-by-line until empty one or EOF

// just useEffect instead to avoid the warning, since neither will run anyway.

// k double struck

// k double-struck

// keep marks when delete the last leaf

// keys multiple times.

// larger one:

// last char was a lead

// last token of the range, inclusive

// lastChar defaults to 0x20

// lastText 节点的 nextText 节点与插入 fragment 前的 endText 相等

// lazy load so that environments that need to polyfill have a chance to do so

// lead surrogate code units and code points.

// leave while it is leaving.

// leaves them as text (needed to merge with adjacent text) or turns them

// leaving.

// left 视为兜底

// leftarrow is from glyph U+2190 in font KaTeX Main

// length is NaN (which is otherwise coerced to zero.)

// less than said list item:

// level format 之后的 level

// lheading (---, ===)

// like "error".

// like above, to fit in with stack order

// like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the

// limit conditions when list can interrupt

// line begin offsets for fast jumps

// line end offsets for fast jumps

// line index in src

// line-height.

// lines count

// link to parser instance

// list of elements, we normalize for different kinds of arguments

// list 数据类型为 paragraph，区别在于 data 中存在 list 字段

// locally reset within this environment).

// looking up the `symbols` map.

// looks like: data-styled.g11[id="idA"]{content:"nameA,"}

// loop.

// loose/tight mode for lists

// losing information in the process.

// macro tools

// macron

// macros, e.g. \frac\foo\foo where \foo expands to a space symbol.

// mainly checking for undefined here

// make a shallow copy

// make sure tail has spaces only

// make the latter via document.createTextNode.

// makeVList applies "display: table-cell", which prevents the browser

// manually. Handle nested size changes.

// margin

// margin will shift by 1/2 that.

// mark paragraphs tight if needed

// markdown 粘贴

// markdown-it default options

// markers belong to same delimiter run if:

// markers can be mixed with spaces, but there should be at least 3 of them

// match cmex7, we'd use cmex7.tfm values for script and scriptscript

// match. At 7pt and 5pt, they differ: cmr7=1.138894, cmsy7=1.170641;

// math font, Main-Italic, Math-Italic, Caligraphic for "mathnormal", and

// mathllap, mathrlap, mathclap

// mathtools.sty

// means first tab should be expanded to 4-21%4 === 3 spaces.

// measure height of a textarea with a single row

// merge adjacent text nodes into one and re-calculate all token levels

// merge those into one strong delimiter.

// methods like `toString` or __proto__ are not overriden by malicious

// middle of word

// might be transformed into a valid one with `url.pathname` as host.

// might have found a valid shortcut link, disable reference parsing

// millimeter

// min-length = 1.75em, so we set min-length on these next three to match.

// mode & 1: value is a module id, require it

// mode & 2: merge all properties of value into the ns

// mode & 4: return value when already ns object

// mode & 8|1: behave like require

// mode specified by the function (for instant mode switching),

// mode, but among our fonts, only Main-Italic defines this character "163".

// models 中未定义 data 类型，默认为类型校验成功

// modes. For example, to parse bold/italic only.

// modes:

// modified version of https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119

// modules monkey-patch it to support additional encodings

// most notably, `__proto__`)

// mount 时拉取数据

// mousedown -> blur -> mouseup

// mousedown 时，我们的组件可能会通过 handler 调用 focus 逻辑让编辑器重新聚焦

// move left

// move right

// move to bottom if the top is reaching out of screen

// move to end of inserted block

// ms word 拷贝的图文混合内容，mime type 会带上 file 类型，这里判断防止误处理。（wps 无该问题）

// must be multiple of 3

// nChr 8位的字节数

// nameList[i] === undefined 说明是以 nameList 开头的

// need to rewrite the way this function is called.

// need to use Main-Italic instead

// needed or are available. If we see a non-continuation byte where we expect

// needed to complete the UTF-8 character (if applicable) are returned.

// never used

// new cicero (12 new didot)

// new didot

// new lexer (mouth) for this parser (stomach, in the language of TeX)

// next code unit is the high surrogate of a surrogate pair.

// next def will not report errors, in which case we can rewind and

// next is just create by .splitNode

// next token on stack

// nextChar defaults to 0x20

// nextStatus will always be ENTERING or EXITING.

// no closing '>'

// no consecutive self refs (.b.b); that is a precedence boost and treated differently

// no enter animation skip right to ENTERED

// no exit animation skip right to EXITED

// no lead yet

// no symbol for e.g. ^

// node and clockseq need to be initialized to random values if they're not

// node is `undefined` when user provided `nodeRef` prop

// node 中 存在 models data 中未定义的字段，类型校验失败

// node 注入有 displayType

// node 缺少必有字段，类型校验失败

// nodes after the insertion node's first block at the index.

// non-standard

// non-void inlines

// normal 属于 we-ui 用法，medium 属于 we-design 用法

// normalize to 0 - 360

// normalize 列表

// normalize 表格

// normally if you call `tokenize(state, startLine, nextLine)`,

// normalsize in scriptscriptstyle

// normalsize in scriptstyle

// normalsize in textstyle or displaystyle

// not a object

// not its width.

// not passed to Options. On the HTML side, leqno is

// not used by this implementation

// not within tabular/array environments.

// nothing

// now [start, end] are text points

// now iterate the text node

// now we found the void, move inside!

// now we prefer to keep things local.

// null return value couldn't get implemented as a function).

// number of bytes are available.

// number of bytes available, we need to check if we end on a leading/high

// object and shouldComponentUpdate will always return true.

// obtain arguments, either single token or balanced {…} group

// of LaTeX, which is discussed above.

// of each line (bMarks) and real beginning of that line.

// of its `classes` array. A later cleanup should ensure this, for

// of span are expected to have more fields in `buildHtml` contexts.

// of the following:

// of the fragment, since this leads to a more expected behavior for the user.

// office 中的 \n 没有包含在 white-space: pre 中，统一作空格字符串使用

// office 会注入一个 image 的数据

// offsets of the first non-space characters (tabs not expanded)

// old school shim for old browsers

// onMouseEnter={() => {clearTimeout(moreMenuClose); setIsStyleSelectShow(false); setIsMoreMenuShow(true)}}

// onMouseEnter={() => {clearTimeout(styleSelectClose); setIsMoreMenuShow(false);setIsStyleSelectShow(true)}}

// onMouseLeave={() => moreMenuClose = setTimeout(() => setIsMoreMenuShow(false), 300)}

// onMouseLeave={() => styleSelectClose = setTimeout(() => setIsStyleSelectShow(false), 300)}

// one instance of `FastDom` in an app

// one, we "replace" the validated continuation bytes we've seen so far with

// only block

// only one or same

// opening tag

// operator's name.

// operators, like \limsup

// operators, like \limsup.

// optimization of pairs parse (emphasis, strikes).

// optimize for chinese input expierence

// options object:

// options[0]

// options[1]

// or "rightmost", respectively, is used to indicate it.

// or '' if the source string is not changed and should be escaped externaly.

// or -1 on fail.

// or <html> element, update the intersection rect.

// or a left sibling of an ancestor of its old position, we need

// or root check will fail every second time

// order to produce the correct `offset` value.

// other

// other relationship

// others or testing.

// otherwise we add nothing.

// otherwise, the macro expands to #2 (without consuming the symbol).

// out the superscript and subscript and set the group to the op in

// oval to overlay the integrand

// overbrace is from glyphs U+23A9/23A8/23A7 in font KaTeX_Size4-Regular

// overgroup is from the MnSymbol package (public domain)

// overlay 宽度跟随

// override it with the hostname which contains no port number.

// override this with a function

// pad the end with zeros, but make sure to not forget the extra bytes

// padding

// padding above a sqrt viniculum.

// paragraph might "eat" one newline after it in nested lists

// paragraph 放在次后

// paragraphs will look below nextLine for paragraph continuation,

// parent re-rendered without this component and we're about to unmount.

// parent-child

// parse out the implicit body

// parse value

// parseExpression stops before '\\right'

// parser failed to find ']', so it's not a valid link

// parser.

// parsing a valid shortcut link failed, fallback to reference

// partial character, the character's bytes are buffered until the required

// partially expanding tabs in code blocks, e.g '\t\tfoobar'

// passed through to selectorFactory

// paste arguments in place of the placeholders

// paste 的探测副作用使用一个 temp 元素收纳

// patched tShift masked characters to look like spaces (blockquotes, list markers)

// path 不存在则返回 false

// path 指向自身

// perf: clipboardData.files 读取耗费性能，减少读取次数

// perf: file 较大，每次读取 data.files 耗费大量时间，使用临时变量缓存优化

// perf: 找到超过 1 个符合要求的，就提前 return

// perform insert

// persons to whom the Software is furnished to do so, subject to the

// pi-1.0 中也注入了 pi 信息，但是不全...

// pica

// pipe separating cells, '|'

// point as the end point of the previous text

// points were copied; start at the beginning otherwise.

// pollute settings.macros.

// polyad: function (number) {

// possible `EnvSpec<>` possibilities instead of `EnvSpec<*>`, which is

// possible `FunctionSpec<>` possibilities instead of `FunctionSpec<*>`,

// pre-parsed data

// pre-step, delete the selection is it's expanded

// press +

// pressingUpOrDown is true means that someone just click up or down button

// prevent mount animation

// prevent page scroll when dragging

// prevent the page from being eligible for bfcache.

// prevents an invalid URL from being transformed into a valid one.

// probably be avoided if Subscription's listeners logic is changed to not call listeners

// probably node is detached from DOM, can't read computed dimensions

// process number symbol, if match %number pattern

// property

// property of a typed array.

// props have not changed. If false, the selector will always return a new

// props 属性是否相同

// prop属性

// protocols that always contain a // bit.

// protocols that can allow "unsafe" and "unwise" chars.

// protocols that never have a hostname.

// pull out port.

// pureLink

// purposes; this is especially important with usage of the css prop

// puts the bottom of the *second* row on the baseline.

// px

// px = lines * pitch

// quality.

// querystrings.

// quirk for blockquotes, this line should already be checked by that rule

// re-calculate levels after emphasis/strikethrough turns some text nodes

// re-export Token class to use in block rules

// re-export Token class to use in core rules

// read binary format

// read dom on next cycle

// rect 属于某个 row，更新一下 row

// rect 的 bottom 比插入行的 top 小，则 rect 可以重新创建一行了

// reducer returns their initial state. This effectively populates

// ref https://github.com/ant-design/ant-design/issues/8678

// ref https://github.com/react-component/tabs/issues/135

// ref: LaTeX source2e: \fboxsep = 3pt;  \fboxrule = .4pt

// ref: amsmath: \renewcommand{\smash}[1][tb]{%

// ref: cancel package: \advance\totalheight2\p@ % "+2"

// ref: https://aone.alibaba-inc.com/v2/project/585561/bug/32431619

// ref: https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode

// ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262

// ref: https://www.math.lsu.edu/~aperlis/publications/mathclap/

// ref: https://www.w3.org/TR/REC-MathML/chap3_2.html#sec3.2.4

// ref: https://www.w3schools.com/charsets/ref_html_entities_a.asp

// ref: null < 20 === true

// ref: src/plugins/text/htmlToJsonML.js

// reliably in a browserify context because there could be multiple different

// remove all the *cangjie* attributes

// remove any duplicate nodes. If the array contains nodes that do not belong

// remove first and last char

// remove last }

// remove padding, since height = content

// removeSubsets

// removing it will alter the target, so we need to adjust the new path.

// render combining characters when not preceded by a character.

// render hidden slots

// renderer

// rendering that, while keeping track of where the accent is.

// repeats of the arrows

// replace backslashes with forward slashes.

// replace current node

// replace the placeholder with the indicated argument

// replace token.content *before* tokens[item.token].content,

// replacement char (U+FFFD) and advance only 1 byte

// report an minimum error.

// representations instead of &LongNames; as it's not clear how to

// represents a specific font (i.e. SansSerif Bold).

// require the use of several fonts: Main-Italic and Math-Italic for default

// required block content indent (for example, if we are

// res[groupKey] = [];

// reserve at least `absHeight` space above the baseline.

// reset original base

// reset the catcode of %

// resize and scroll events or DOM mutations.

// resolution will treat //foo/bar as host=foo,path=bar because that's

// restore old state

// result.

// return "mopen" or "mclose" mclass.

// return (

// return BreakType.BreakStart

// return valid WCAG2 parms for isReadable.

// returns [context, resolvedAttrs]

// returns `true` if any rule reported success

// returns the end of the label

// right side icon

// rightarrowabovebar is mostly from glyph U+2192, KaTeX Main

// ring above

// root but the previous entry for this target had an intersection,

// run optional creation hook

// run the map function here instead so that the key is the computed one

// safari 和 低版本(72-) chrome 渐变色换行不显示，需添加一个属性

// same as UNESCAPE_MD_RE plus a space

// same node

// same signature, we implement them as one megafunction, with newRow

// same text

// save cursor state, we could require to rollback later

// save the values before insert

// scaled point (TeX's internal smallest unit)

// scan marker length

// script

// script names

// scriptspace is a font-size-independent size, so scale it

// search end of block

// sections

// section可以看作paragraph、heading的超集

// selection - take the selection back if it's removed (e.g. the last one block is deleted)

// selection above viewport

// selection below viewport

// selection is focused to the new text point

// selection to the left of viewport

// selection to the right of viewport

// selection 变更

// selection's closest block node

// selection's closest block's rect

// selection's range

// selection's rect

// selection.

// selector

// send input op

// set by a CSS class applied in buildTree.js. That would have worked

// set offset past spaces and ">"

// set selection.marks to make sure inherit marks from deleted text

// set state.tight if we had an empty line before current tag

// set will cause cursor not correct when first focus.

// setNeedRender(false)

// setState callbacks and unmounting in testing, so always make sure that

// setState是异步执行

// shd 优先级更低（highlight 直接覆盖）

// shift the accent over to a place we don't want.

// shift the symbol so its center lies on the axis (rule 13). It

// should be an immutable value, but behave for now.

// should be placed on proper position for tests.

// should have at least two lines

// should look at TeX's behavior especially for \over and matrices.

// should not be `://` & `///`, that protects from errors in protocol name

// should skip all tokens except 'text', 'html_inline' or 'code_inline'

// should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and

// sidebar POPUP 时的偏移。

// sigma1

// sigma10

// sigma11

// sigma12

// sigma13

// sigma14

// sigma15

// sigma16

// sigma17

// sigma18

// sigma19

// sigma2

// sigma20

// sigma21

// sigma22

// sigma3

// sigma4

// sigma5

// sigma6

// sigma7

// sigma8

// sigma9

// sign + magnitude, cast to number

// similar to LaTeX and in which content does not interfere with \hines.

// since it will update related data with other field with same name

// since parent componentDidMount triggered after child componentDidMount

// since parent field is already take in count

// single codepoint

// situation and we should not care about content.

// size1 is from glyph U221A in the font KaTeX_Size1-Regular

// size10: [20.74, 14.4, 12]     \huge

// size1: [5, 5, 5]              \tiny

// size2 is from glyph U221A in the font KaTeX_Size2-Regular

// size2: [6, 5, 5]

// size3 is from glyph U221A in the font KaTeX_Size3-Regular

// size3: [7, 5, 5]              \scriptsize

// size4 is from glyph U221A in the font KaTeX_Size4-Regular

// size4: [8, 6, 5]              \footnotesize

// size5: [9, 6, 5]              \small

// size6: [10, 7, 5]             \normalsize

// size7: [12, 8, 6]             \large

// size8: [14.4, 10, 7]          \Large

// size9: [17.28, 12, 10]        \LARGE

// sizes (which correspond to larger numbers in style.size) we start earlier

// skip disabled methods

// skip heading spaces for next line

// skip is it's still in same line

// skip leading whitespaces from next line

// skip one optional space after '>'

// skip trailing spaces until the rest of the line

// skipped seting same comments

// smash, with optional [tb], as in AMS

// so Buffer.isBuffer(Buffer.prototype) will be false

// so all that's left to do is to call tokenizer.

// so even if it's empty, it has to be present.

// so no point trying to find the end of it in silent mode

// so plugins won't have to depend on them explicitly, which reduces their

// so that \strut@ is the same as \strut.

// so that the accent doesn't contribute to the bounding box.

// so that we can continuously output only new rules

// so we need to add manually padding and border widths

// so we need to re-calculate all offsets to appear as

// some sort of metrics.

// spacing should go between atoms of different classes

// span.prototype.toMarkup and symbolNode.prototype.toNode...

// special case in makeOrd which ends up calling mathdefault, mathnormal,

// special case when the user select very long text that exceed screen bottom

// special case: 1"" - count first quote as an inch

// special case: count the start point

// special case: first text

// specified.  We do this lazily to minimize issues related to insufficient

// specify maximum number of columns in each row, and can adjust spacing between

// speed 一般是：1 - 8

// split leaves

// sqrtMain path geometry is from glyph U221A in the font KaTeX Main

// src/symbols.js.

// standard bar size. \above would see size = 0 and omit the bar.

// start and end is not sibling when one of them in inline node

// start of the sequence.

// start 移动至起始议题的开头

// starting with \DOTSX implies \dotso, and then \extra@ detects this case

// starts with domain name. So we prepend http:// in those cases,

// state.blkIndent was non-zero, we now set it to zero,

// statmath.sty

// step 从用户体验角度，做了指数加速，一般是：2, 6, 12, 20, 30, ... 72

// step={1.0} value={1.51}

// sticking the base of the accent into the base of the supsub, and

// stmaryrd and semantic

// stop...

// strictSchema

// string instead of the stringified value.

// string into this file. Instead, create the string from the surrogate pair.

// strip [ and ] from the hostname

// style 作为 SubMenu 二级菜单渲染

// styles

// styles, except \boldsymbol defined below

// stylis has no concept of state to be passed to plugins

// sub-node of the fragment will be returned.

// subscript) but be safe.

// subscription callback always has the selector from the latest render commit

// subscription is created and an inconsistent state may be observed

// subscripts, the supsub will defer to us. In particular, we want

// success -> 校验成功, failed -> 校验失败, redundance -> 校验成功，但有冗余字段

// sum of the lengths of the delimiter runs containing the opening and

// superscript in with the primes.

// superscripts and subscripts itself.

// support \@ yet, so that's omitted, and we add \text so that the result

// supsub was sending us a group with no superscript or

// sure algorithm has linear complexity (see *_*_*_*_*_... case).

// surrogate pair

// surrogate pairs get special treatment

// surrogate. In that case, we need to wait for the next two bytes in order to

// swap bytes from little-endian

// switching modes back.  So don't consume within expect.

// symbol, if, else

// symbol.  If it matches #1, then the macro expands to #2; otherwise, #3.

// symbols in symbols.js

// system entropy.  See #189

// table cell左右border占据的空间会从padding中挤占出来

// table for text, as well as a special case for boldsymbol because it

// table 存在嵌套的情况，需要循环处理下

// table.

// tag correctly, unless it's a single <mrow> or <mtable>.

// target selection's position

// temporarily append the right node, if exists

// temporay 受控于value

// terminated by end of line (or file).

// test hook

// text cases, next node maybe void inline

// text cases, previous node maybe void inline

// text content. And that min-height over-rides our desired height.

// text ordinal and is therefore not present as a symbol in the symbols

// text 保留链接 card 转成链接摘要卡片

// text/href 从 props 读了，已经不算非受控了

// textord in unsupported command errors but cannot be parsed as a regular

// texts

// texvc.sty

// that affect the behavior of \dots when in text mode.  So fine for now

// that causes it, under certain circumstances, to provide the same value for

// that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.

// that have been unsubscribed in the  middle of the notification loop.

// that just executes the given callback immediately.

// that the position of the superscripts and subscripts won't be

// that we are supposed to shift the limits by 1/2 of the slant,

// that we're passing an options parameter we should be able to fix

// the Latin capital letter M. This is close enough because

// the `instanceof` check but they should be treated as of that type.

// the `source` property as a convenience for inlining compiled templates.

// the associated value may have a `className` specifying an extra CSS class

// the change in spacing).  We'll do roughly the same by detecting the

// the combined characters.

// the combined list

// the document rect, so no need to compute a new intersection.

// the dot at U+22C5 and gives it punct spacing.

// the entire sequence in future checks. This is required to make

// the first instance of /, ?, ;, or # ends the host.

// the first self-ref is always untouched

// the function name

// the height of the expression, and the bottom of the HTML element

// the host field still retains them, though

// the host is the remaining to the left of the first non-host char

// the initial state tree.

// the last line is empty.

// the local part (i.e. everything up to `@`) intact.

// the lowest limit is Chrome, with 0x10000 args.

// the middle of the notification loop, where `subscription` will then be null. This can

// the most similar to tables

// the new state tree with any relevant data from the old one.

// the newRange has more rects than the old range

// the normal place) so we use an absolute value for vertical-align instead.

// the text of this token

// the vlist creation or separately when there are no limits.

// them in a span.

// them.

// then value should be 2.51, rather than 2.5

// then we can rewind and proceed to the next group.

// then we have the final position

// there should be at least two self-refs to do a replacement (.b > .b)

// there's a hostname.

// therefore not reporting its length accurately..

// these functions inside of math expressions, so we do some special

// these properties stay in sync with the current stylis run

// they correspond to the font parameters of the extension fonts (family 3).

// they make no difference for now.

// things has an entry in the symbols table, so these will be turned

// things since `isMiddle` sounds like a boolean, but is a struct.

// this could be a closing quote, rewind the stack to get a match

// this file above.

// this function assumes that first character ("[") already matches;

// this function wraps mapToProps in a proxy function which does several things:

// this should be ... } else { ... branch

// this static is used to preserve the cascade of static classes for component selector

// this would be a code block normally, but after paragraph

// this.

// this.throttle = throttle((fn, data, e) => {

// this.throttle.cancel();

// three possible causes for this...

// thresholds, add a new entry.

// throw new Error('Container is not Element')

// tilde

// tilde1 is a modified version of a glyph from the MnSymbol package

// time interval

// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'

// timeout to check whether the default action was prevented.

// to \genfrac and \above.

// to `ParcerInline` property. Probably, will switch to it sometime, such

// to add to the created `span`.

// to adjust part of the path by 1.

// to always have a /

// to attach the superscripts and subscripts to the inner body (so

// to avoid processing groups multiple times.

// to break the line in the \newline case.

// to detect a Buffer instance. It's not possible to use `instanceof Buffer`

// to determine what the child props should be

// to determine what the child props should be.

// to each tow (via the template)

// to lower case

// to make bridge script run first, to avoid conflict with DingTalkPC.js (old pc jsapi script)

// to move forward https://github.com/markdown-it/linkify-it/issues/1

// to prevent Errors in console

// to the expression, but tests show that isn't how it actually works.

// to the left of the last @ sign, unless some host-ending character

// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine

// to the same document, sort order is unspecified.

// to their upper/lower bounds if the value passed is out of range.

// todo

// todo add throttle

// todo huilan：locale

// todo 后面加的工具方法都在这里export出去

// todo 排版 2.0 后删除下面代码

// todo 排版 2.0 后清理下面代码

// tofrom is from glyph U+21C4 in font KaTeX AMS Regular

// toolbar 除一般 button 外，用 menu 实现

// toolbar 隐藏时设置延时，处理链接到卡片的 hover 情况

// top edge and the strut's bottom edge will sit on the item's baseline,

// top 相等且 prev.right >= left，此 rect 可以和前一个合并

// tr 内嵌 tr，则把嵌套的 tr 打平

// trailing edge, the system time has gone backwards and we're treating

// treat beginning of the line as a whitespace

// treat end of the line as a whitespace

// treat next token as start of run,

// treated like a regular space character.  If a symbol or command is a key

// trigger callback function

// trigger onChange

// trigger's action

// trim before proceeding.

// trimming space in "-    \n  3" case, indent is 1 here

// true if both NaN, false otherwise

// true if this sequence can be a terminator, false otherwise

// try to find cells amount <= 1 (row.nodes.length <= 1)

// try to find invalid cells (row.nodes.some)

// try to scan for link with schema - that's the most simple rule

// tslint:disable-next-line:no-console

// tslint:disable-next-line:no-string-literal

// tslint:disable-next-line:no-unused-expression

// turns out to be document.body or document.documentElement. This will work

// twoheadleftarrow is from glyph U+219E in font KaTeX AMS Regular

// type === 'menu'

// typeLevel 真实 level

// types below. This narrowing is required to access `grp.base`.

// types for raw text tokens, and we want to avoid conflicts with higher-level

// un-register field callback

// unamibiguously determined from the passed-in `type` above.

// undefined

// undefined is handled specially as per ECMA-262 6th Edition,

// undefined || '' || 0 || NaN || null

// unexpected trail

// unfocus state, show valid value

// unicode-math maps U+A5 to \mathyen. We map to AMS function \yen

// unicode-math maps U+F0 (ð) to \matheth. We map to AMS function \eth

// unicode-math maps \u21ba to \acwopencirclearrow. We'll use the AMS synonym.

// unicode-math maps \u21bb to \cwopencirclearrow. We'll use the AMS synonym.

// unicode-math maps \u21e0 to \leftdasharrow. We'll use the AMS synonym.

// unicode-math maps \u2246 to \simneqq. We'll use the AMS synonym.

// unicode-math maps \u22e0 to \npreccurlyeq. We'll use the AMS synonym.

// unicode-math maps \u22e1 to \nsucccurlyeq. We'll use the AMS synonym.

// unicode-math says that \because is a mathord atom.

// unicode-math says that \therefore is a mathord atom.

// unknown 卡片/标签必须放在最后做兜底显示

// unless an undo is already in place, in which case that older

// unless body is intentionally set to scrollable by restricting its height

// unmount 时确保 onCleanup 执行

// unpaired lead

// update the selection when the user drags the handle bar

// uppercase U+0398 (Θ), U+03f4 (ϴ) and lowercase U+03b8 (θ), U+03d1 (ϑ)

// uppercased versions).

// url should be normalized at this point, and existing entities are decoded

// us avoid checking for which case exactly is it.

// use 'blockquote' lists for termination because it's

// use 3d gpu to optimize render

// use fonts added by a plugin

// use paragraph to match terminatorRules

// use-begingroup-instead-of-bgroup

// useEffect(() => console.log(blocks), [blocks]);

// useEffect(() => {

// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store

// used in error messages

// used in lists to determine if they interrupt a paragraph

// used to compute Connect's displayName from the wrapped component's displayName.

// used to get the classname of a nested styled component

// user@server is *always* interpreted as a hostname, and url

// uses this return value.

// v0.12 TODO(isaacs): This is not quite how Chrome does things.

// v4 returned an array for this fn, so we'll do the same for v5 for backward compat

// valid lead

// valid surrogate pair

// validate a little.

// value at the end to obtain `delta`.

// value is the correct one.

// value 受控

// value 变化时，应该 reset temporary value

// values from the font glyph

// values match.

// values.

// value变化时，应该reset temporary value

// var src_pseudo_letter_non_d = '(?:(?![0-9]|' + src_ZPCc + ')' + src_Any + ')';

// vec is from glyph U+20D7 in font KaTeX Main

// vertical adjustment to match LaTeX.

// vertical alignment. So texHeight = span.height < span.style.height.

// visible 是受控的

// wait next, prev show hide

// want to add invalid strings to the query.

// warning: 这里的判断逻辑过于 hack，无法找到ref来自哪里

// we (currently) only care about the height of the glpyh

// we can cancel any pending setState callbacks after we unmount.

// we can default it to 0 to disable those checks.

// we cannot trust the selection

// we could report an underflow, but presence of an invalid child

// we did not generate a valid codePoint so insert a

// we don't use Object.keys here, as we want to incude Arrays

// we don't want to make the children type more generic since the children

// we ignore all errors here, since when the component

// we know that it's going to be a valid blockquote,

// we need this to make sure size of hostname is not

// we need to move it back to account for this.

// we reached the end, a }, or a \right)

// we replace non-ASCII char with a temporary placeholder

// we test again with ASCII char only

// we'd need a separate private state variable for this purpose.

// we're doing a quick fix here to use setTimeout to calculate position

// we've indicated that there is a hostname,

// webpackBootstrap

// well as nesting subscriptions of descendant components, so that we can ensure the

// when not scrollable or enter scrollable first time, don't emit scrolling

// when parse error , continue next opration

// when pc

// when tasks throw

// where all of the continuation bytes for a character exist in the same buffer.

// where resolvedAttrs is only the things injected by the attrs themselves

// where we can avoid a lot of iterating of the tree.

// whether mapToProps needs to be invoked when props have changed.

// which can be terminated by this one.

// which doesn't affect spacing in math mode, i.e., is transparent.

// which gets added to `i`. The overflow checking is easier

// which is an existential type.

// which is necessary in order to transition styles when adding a class name.

// which is size3, which has a scale factor of 0.7 (see Options.js).

// which may cause missed updates; we also must ensure the store subscription

// while deleting with dot as the only character in textarea.

// wideLatinLetterData contains exactly 26 chars on each row.

// widecheck paths are all inverted versions of widehat

// widehat1 is a modified version of a glyph from the MnSymbol package

// wider than the equation. We want the equation to control the

// width but extends to the right.  We use \rlap to get that spacing.

// width 脏数据

// will be null.

// will be the `fragment`, but if a common nesting pattern is detected, a

// will receive the previous state. This effectively populates

// will require new font glyphs.

// will return rgba when there is transparency.

// will throw again, if neither props nor store state

// with \limits, so we need to assign supsub style.

// with a custom parser as function use that instead of the default build-in

// with code comments

// with indent=2 becomes '  \tfoobar'

// with no additional line-height spacing. This allows the item baseline to

// with standard React renderers (ReactDOM, React Native)

// without limitation the rights to use, copy, modify, merge, publish,

// without overly expanding the containing line-box.

// won't happen in type-safe code

// won't know what to do with them.  This can only happen with

// word px 到 行高 公式：line = px / 16

// workaround for this case

// works because the same htmlBuilder and mathmlBuilder are being used.

// would like to use `vertical-align: top`, but in IE 9 this lowers the

// wrap, since CSS will center a .clap > .inner > span

// wrapper and the child. So we only need to chain the ref if the

// wraps the child. The child ref callback gets called twice with the

// xi10

// xi11

// xi12; cmex7: 0.611

// xi13; cmex7: 0.143

// xi8; cmex7: 0.049

// xi9

// you change size indexes, change that function.

// {

// { title: '等线', value: 'Arial', installable: false },

// {123} and converts into symbol with code 123.  It is used by the *macro*

// {darray} is an {array} environment where cells are set in \displaystyle,

// {dcases} is a {cases} environment where cells are set in \displaystyle,

// }

// },

// }, 50);

// }, [hotkeyPosition, mousePosition, validNodes]);

// }, [hotkeyPosition, validNodes, openedMenuKeys]);

// };

// ~~strike through~~

// ~~~~~~~~

// À = \`{A}

// Á = \'{A}

// Â = \^{A}

// Ã = \~{A}

// Ä = \"{A}

// Å = \r{A}

// È = \`{E}

// É = \'{E}

// Ê = \^{E}

// Ë = \"{E}

// Ì = \`{I}

// Í = \'{I}

// Î = \^{I}

// Ï = \"{I}

// Ñ = \~{N}

// Ò = \`{O}

// Ó = \'{O}

// Ô = \^{O}

// Õ = \~{O}

// Ö = \"{O}

// Ù = \`{U}

// Ú = \'{U}

// Û = \^{U}

// Ü = \"{U}

// Ý = \'{Y}

// à = \`{a}

// á = \'{a}

// â = \^{a}

// ã = \~{a}

// ä = \"{a}

// å = \r{a}

// è = \`{e}

// é = \'{e}

// ê = \^{e}

// ë = \"{e}

// ì = \`{i}

// í = \'{i}

// î = \^{i}

// ï = \"{i}

// ñ = \~{n}

// ò = \`{o}

// ó = \'{o}

// ô = \^{o}

// õ = \~{o}

// ö = \"{o}

// ù = \`{u}

// ú = \'{u}

// û = \^{u}

// ü = \"{u}

// ý = \'{y}

// ÿ = \"{y}

// Ā = \={A}

// ā = \={a}

// Ă = \u{A}

// ă = \u{a}

// Ć = \'{C}

// ć = \'{c}

// Ĉ = \^{C}

// ĉ = \^{c}

// Ċ = \.{C}

// ċ = \.{c}

// Č = \v{C}

// č = \v{c}

// Ď = \v{D}

// ď = \v{d}

// Ē = \={E}

// ē = \={e}

// Ĕ = \u{E}

// ĕ = \u{e}

// Ė = \.{E}

// ė = \.{e}

// Ě = \v{E}

// ě = \v{e}

// Ĝ = \^{G}

// ĝ = \^{g}

// Ğ = \u{G}

// ğ = \u{g}

// Ġ = \.{G}

// ġ = \.{g}

// Ĥ = \^{H}

// ĥ = \^{h}

// Ĩ = \~{I}

// ĩ = \~{i}

// Ī = \={I}

// ī = \={i}

// Ĭ = \u{I}

// ĭ = \u{i}

// İ = \.{I}

// İ, ϴ, ẞ, Ω, K, Å - those are already uppercased, but have differently

// Ĵ = \^{J}

// ĵ = \^{j}

// Ĺ = \'{L}

// ĺ = \'{l}

// Ľ = \v{L}

// ľ = \v{l}

// Ń = \'{N}

// ń = \'{n}

// Ň = \v{N}

// ň = \v{n}

// Ō = \={O}

// ō = \={o}

// Ŏ = \u{O}

// ŏ = \u{o}

// Ő = \H{O}

// ő = \H{o}

// Ŕ = \'{R}

// ŕ = \'{r}

// Ř = \v{R}

// ř = \v{r}

// Ś = \'{S}

// ś = \'{s}

// Ŝ = \^{S}

// ŝ = \^{s}

// Š = \v{S}

// š = \v{s}

// Ť = \v{T}

// ť = \v{t}

// Ũ = \~{U}

// ũ = \~{u}

// Ū = \={U}

// ū = \={u}

// Ŭ = \u{U}

// ŭ = \u{u}

// Ů = \r{U}

// ů = \r{u}

// Ű = \H{U}

// ű = \H{u}

// Ŵ = \^{W}

// ŵ = \^{w}

// Ŷ = \^{Y}

// ŷ = \^{y}

// Ÿ = \"{Y}

// Ź = \'{Z}

// ź = \'{z}

// Ż = \.{Z}

// ż = \.{z}

// Ž = \v{Z}

// ž = \v{z}

// Ǎ = \v{A}

// ǎ = \v{a}

// Ǐ = \v{I}

// ǐ = \v{i}

// Ǒ = \v{O}

// ǒ = \v{o}

// Ǔ = \v{U}

// ǔ = \v{u}

// Ǖ = \"\={U}

// ǖ = \"\={u}

// Ǘ = \"\'{U}

// ǘ = \"\'{u}

// Ǚ = \"\v{U}

// ǚ = \"\v{u}

// Ǜ = \"\`{U}

// ǜ = \"\`{u}

// Ǟ = \"\={A}

// ǟ = \"\={a}

// Ǡ = \.\={A}

// ǡ = \.\={a}

// Ǧ = \v{G}

// ǧ = \v{g}

// Ǩ = \v{K}

// ǩ = \v{k}

// ǰ = \v{j}

// Ǵ = \'{G}

// ǵ = \'{g}

// Ǹ = \`{N}

// ǹ = \`{n}

// Ǻ = \r\'{A}

// ǻ = \r\'{a}

// Ȟ = \v{H}

// ȟ = \v{h}

// Ȧ = \.{A}

// ȧ = \.{a}

// Ȫ = \"\={O}

// ȫ = \"\={o}

// Ȭ = \~\={O}

// ȭ = \~\={o}

// Ȯ = \.{O}

// ȯ = \.{o}

// Ȱ = \.\={O}

// ȱ = \.\={o}

// Ȳ = \={Y}

// ȳ = \={y}

// Ύ = \'{Υ}

// Ώ = \'{Ω}

// ΐ = \"\'{ι}

// Ϋ = \"{Υ}

// ά = \'{α}

// έ = \'{ε}

// ή = \'{η}

// ί = \'{ι}

// ΰ = \"\'{υ}

// ϊ = \"{ι}

// ϋ = \"{υ}

// ό = \'{ο}

// ύ = \'{υ}

// ώ = \'{ω}

// Ḃ = \.{B}

// ḃ = \.{b}

// Ḋ = \.{D}

// ḋ = \.{d}

// Ḕ = \=\`{E}

// ḕ = \=\`{e}

// Ḗ = \=\'{E}

// ḗ = \=\'{e}

// Ḟ = \.{F}

// ḟ = \.{f}

// Ḡ = \={G}

// ḡ = \={g}

// Ḣ = \.{H}

// ḣ = \.{h}

// Ḧ = \"{H}

// ḧ = \"{h}

// Ḯ = \"\'{I}

// ḯ = \"\'{i}

// Ḱ = \'{K}

// ḱ = \'{k}

// Ḿ = \'{M}

// ḿ = \'{m}

// Ṁ = \.{M}

// ṁ = \.{m}

// Ṅ = \.{N}

// ṅ = \.{n}

// Ṍ = \~\'{O}

// ṍ = \~\'{o}

// Ṏ = \~\"{O}

// ṏ = \~\"{o}

// Ṑ = \=\`{O}

// ṑ = \=\`{o}

// Ṓ = \=\'{O}

// ṓ = \=\'{o}

// Ṕ = \'{P}

// ṕ = \'{p}

// Ṗ = \.{P}

// ṗ = \.{p}

// Ṙ = \.{R}

// ṙ = \.{r}

// Ṡ = \.{S}

// ṡ = \.{s}

// Ṥ = \'\.{S}

// ṥ = \'\.{s}

// Ṧ = \v\.{S}

// ṧ = \v\.{s}

// Ṫ = \.{T}

// ṫ = \.{t}

// Ṹ = \~\'{U}

// ṹ = \~\'{u}

// Ṻ = \=\"{U}

// ṻ = \=\"{u}

// Ṽ = \~{V}

// ṽ = \~{v}

// Ẁ = \`{W}

// ẁ = \`{w}

// Ẃ = \'{W}

// ẃ = \'{w}

// Ẅ = \"{W}

// ẅ = \"{w}

// Ẇ = \.{W}

// ẇ = \.{w}

// Ẋ = \.{X}

// ẋ = \.{x}

// Ẍ = \"{X}

// ẍ = \"{x}

// Ẏ = \.{Y}

// ẏ = \.{y}

// Ẑ = \^{Z}

// ẑ = \^{z}

// ẗ = \"{t}

// ẘ = \r{w}

// ẙ = \r{y}

// Ấ = \^\'{A}

// ấ = \^\'{a}

// Ầ = \^\`{A}

// ầ = \^\`{a}

// Ẫ = \^\~{A}

// ẫ = \^\~{a}

// Ắ = \u\'{A}

// ắ = \u\'{a}

// Ằ = \u\`{A}

// ằ = \u\`{a}

// Ẵ = \u\~{A}

// ẵ = \u\~{a}

// Ẽ = \~{E}

// ẽ = \~{e}

// Ế = \^\'{E}

// ế = \^\'{e}

// Ề = \^\`{E}

// ề = \^\`{e}

// Ễ = \^\~{E}

// ễ = \^\~{e}

// Ố = \^\'{O}

// ố = \^\'{o}

// Ồ = \^\`{O}

// ồ = \^\`{o}

// Ỗ = \^\~{O}

// ỗ = \^\~{o}

// Ỳ = \`{Y}

// ỳ = \`{y}

// Ỹ = \~{Y}

// ỹ = \~{y}

// ὰ = \`{α}

// ὲ = \`{ε}

// ὴ = \`{η}

// ὶ = \`{ι}

// ὸ = \`{ο}

// ὺ = \`{υ}

// ὼ = \`{ω}

// ᾰ = \u{α}

// ᾱ = \={α}

// ῐ = \u{ι}

// ῑ = \={ι}

// ῒ = \"\`{ι}

// ῠ = \u{υ}

// ῡ = \={υ}

// ῢ = \"\`{υ}

// Ῠ = \u{Υ}

// Ῡ = \={Υ}

// Ὺ = \`{Υ}

// ≔

// ≕

// │ Hello │ │ Worl│d   │

// │ Hello │ │ Wor│ld │

// │ Hello││

// │HelloWorl│d │

// ┌─────────┼──┐

// ┌───────┐ ┌────┼───┐

// ┌──────┼┐

// ┌───▼───┐ ┌───┴─┼────┐

// └─────────┼──┘

// └───────┘ └─────┼────┘

// └───────┘ └────┼───┘

// └──────┼┘

// ● AAA              expect:  ● AAA

// ● CCC       ->              ● CCC

// 一行展示不下时，中间省略，截取最后10个字符最后显示

// 上一个列表level

// 上一个新增text内容

// 上一个节点为 'list' 的话，需要对其进行转换

// 上一个节点为 'list'，并且和当前的 listId 相同则追加进去

// 上下标字号减半

// 下划线优先级更高：直接覆盖 textDecorationStyle

// 下拉选择消失时，手动触发blur事件

// 下述 Timer 总有机会被调用，由于限定了输入过程中创建，也不易造成 timer 堆积

// 不保存折叠状态

// 不再继续递归

// 不同样式高度不同（波浪形>横线），这里取最大的高度

// 不在空白 block 且在段尾插入，则在后面增加一个空行

// 不支持 tr 内嵌套单元格以外数据类型

// 不支持的表情，显示 placeholder

// 不是 tableCell 节点，坏表格

// 不是 tableRow 节点，坏表格

// 不是来自输入框

// 不显示本地选区时 or 首次渲染 globalWrapperRef 仍为空时

// 不解析返回 null

// 不需要继承的样式

// 与 antd 行为保持一致

// 与第一行保持居中对齐

// 与非折叠状态不同

// 业务层根据需要配置，粘贴要过滤的节点

// 两次都不处于正下方，使用距离更短的那个作为最终结果

// 中英文都支持字符集和字重（例如 仿宋_GB2312 或 微软雅黑 bold ）

// 为不影响排版，这里严格限制业务层组件的 overflow = hidden

// 为了保障拷贝正常使用，这里 catch 一下，防止数据层报错

// 为了兼容旧版本，增加判断win.nuva.isReady === undefined

// 为什么在这里调整选区？

// 为本地光标计算颜色

// 主要用于 operation 序列化、反序列化

// 主题增加无颜色

// 主题色

// 之前没有 closestBelow 的时候，没有对比，设置它为 closestBelow

// 之前的 closestBelow 和现在的 rect 不处于同一条直线上时

// 之前的 closestBelow 和现在的 rect 处于同一条直线上时

// 仅 focus 发生变化时，需要及时 rerender 选区

// 仅仅支持一级分组

// 仅在文本内容变化时重绘

// 仅在父节点不是 link 节点时，渲染 purelink, 避免节点嵌套

// 仅复制剪切板里基础类型数据，防止文件过大导致内存溢出，需要消费 File、Img 类型数据直接从 nativeEvent 上获取

// 仅当选区的位置变化才需要 reset textarea 结束 composing 状态，不应受其它因素影响

// 仅当链接是占位符，或者空链接，点击生效，显示编辑框

// 仅最外层会用到currParagraph

// 仍找不到则报错

// 从 blur 状态开始选区（点选/拖选），会有个先 focus 再 set_selction 的过程，可以 pending

// 从 models 中找出必须有的字段（即非 undefined 类型）

// 从仓颉编辑器拷贝

// 仓颉编辑器

// 代码块行高

// 以下为多行省略的代码，暂时注释

// 以遍历森林的方式遍历 [startDOMPath, endDOMPath] 之间的节点

// 仿宋

// 企业词条

// 优先从自定义组件里匹配

// 优先使用 title (为空字符串则无 tooltip)，若 name 和 status 均传入则按规则渲染 tooltip

// 优先取自定义国际化文案

// 优先级低于 underline：仅在没有设置 textDecorationStyle (没有下划线）的情况下设置

// 优先级：edgeKey > leafBlockKey（比如在表格中）

// 优先级：自身 > 继承

// 优先跟踪 hint

// 优先遵循css style 而不是html标签

// 会议小结内容 placeholder

// 传入 styles ，则使用传入的宽度，并重算 left

// 传入的 option 为卡片自定义

// 但不 flush 会导致桌面端中文输入选词失效

// 但后续的 blur 事件又会让编辑器失焦

// 位置样式

// 低于 4.4 的安卓不支持 initCustomEvent 无法补充信息到自定义事件

// 体验优化：如果拖动某个单元格（分栏）里面的元素，添加新的分栏，就优先把背景色也带着

// 使用 Mo中的strictSchema 对要粘贴的内容进行normalize处理

// 使用 emoji 而非 sticker ，是为兼容富文本输入框、评论等业务

// 使用Paste中的normalize对fragment进行处理

// 使用最基础的 textDecoration 属性，否则 word/wps 等无法识别

// 使用第一个颜色兜底

// 使用透明边框模拟 margin

// 保存为 block linkCard

// 保存为 inline linkCard

// 保存为卡片

// 保存监听的listener以及option

// 保留源格式粘贴

// 修复iOS we-web下输入文字时滚动问题

// 修复移动端点击触发 copy 后，仓颉选区 collapsed，造成无法删除（iOS 12 系列及 iOS 14.6 ）

// 倍数

// 允许清除样式后 selection.marks = [] 继承到下一行

// 元素底部 < 当前滚动距离 + 滚动容器高度时，需要向下矫正滚动位置

// 元素顶部低于滚动距离时，需要向上矫正滚动位置

// 先取消 task，再置空

// 先设置卡片状态为 loading，刷新无需为节点注入信息

// 先设置卡片状态为 loading，并且为节点注入信息，处理交互兼容

// 先走缓存逻辑

// 先转换为 pt 再转换为指定单位

// 光标在 edge after 时，插入一个空行（插入方式跟 TextPoint 略有区别）

// 光标在段落中间

// 光标是普通 point 时，插入一个空行

// 兜底使用原值

// 兜底方案：只显示calendar中的标题

// 兜底显示空 div

// 兜底返回空字符串

// 全选状态下，就不要scroll了。

// 公共词条不展示菜单，设计如此

// 兰亭黑 - 繁

// 关于 Unicode 的一个小问题：存在一种组合 Unicode 会导致字数计算有偏差，例如【👩‍ 🦱】，如果将空格删除，则两个 emoji 会合并，这种组合性的 emoji 在

// 其他 microsoft 的网站需要放在前面

// 其他搜狐网站需要放在前面

// 其他腾讯网站需要放在前面

// 其他钉钉域名需要放在前面

// 具有下载能力且尚未安装

// 兼容 list-style、list-style-type

// 兼容 mark = {type: 'underline'} 的生成方式

// 兼容chrome 60以下不支持的DataTransfer构造函数的版本

// 兼容在左边 padding 区域也可以识别（放大时 padding也会一并变大）

// 兼容存量导入数据 dstrike: { value: true/false }

// 兼容新老数据: 没有szUnit表示是以前的px单位

// 兼容编辑器老数据（用 firstLine < 0 表示悬挂缩进）

// 兼容：老数据 string 类型，导入 word 数据为 object

// 内容为 A 的色块

// 内容为 ✅ 的色块

// 内容为清除线的色块

// 冬青黑 - 简

// 出现按钮

// 分割按钮

// 分割点的ToolLine

// 分割线颜色

// 分页模式下存在虚拟化，若找不到 DOM 则全量遍历已有 DOM

// 分页模式下，document 上存在 composing mark，则继续向后找到 composing 末尾；否则使用 startText 即可

// 切割议题的标题和内容块

// 切换到月份面板

// 切换回日期面板

// 切换展示风格时，将请求到的数据发出

// 列表内容切换为纯文本时，第一项序号不会被删除, 列表转为普通段落

// 列表和任务

// 列表场景下清空上下边距，在列表处渲染，否则采用盒模型中的边距数据

// 列表有 ind 值, 需要子项的左边距大于折叠点的左边距，防止与连接线重叠

// 列表有 ind 值, 项的左边距小于折叠点的左边距时，防止重叠，结束折叠规则

// 列表未开启折叠模式

// 列表的边框需要挂载外围的 DOM 上

// 则x坐标需要进行左移或者右移

// 则为其提供标题、icon 等信息

// 则认为选区因协同数据而发生了变化，此时需要做滚回操作

// 创建container节点

// 创建节点

// 初始化字节数组

// 初始化排序数组，先放入节点子孙

// 删除 link 的同时也要销毁粘贴快捷面板

// 删除Decoration组成选区之间的内容，重新插入新模式内

// 删除无效字段避免影响提取公共属性

// 删除选区内内容

// 删除选区内内容后的 document

// 删除项目符号相关text，仅保留列表内容

// 判断依据：listId 相同，type 也相同

// 判断当前编辑的 text 节点是否在 node 中

// 判断是否为渐变色，渐变色格式为 ‘#color1__#color2’

// 判断是否强制开启兼容处理

// 判断是否是空链接

// 到这里，肯定是完整的 leaf

// 刷新 DOM 光标位置

// 前景色默认黑色，背景色默认白色

// 前面 index 个，后面 length - index 个

// 加 EmptyContainer 是因为 IconButton 未监听 onMouseEnter 等， trigger="hover" 无法生效

// 加入最小单位高度, 用于做transform的scale比例计算

// 加载 configs 中的插件

// 加载一个 scheme plugin 对 value 进行 normalize

// 动画结束重置 css 状态，自动撑起高度

// 匹配目标格式粘贴

// 匹配粘贴

// 华文仿宋

// 华文宋体

// 华文楷体

// 华文黑体

// 协同工具栏, 耳朵使用

// 单例初始化

// 单元格垂直对齐方式

// 单元格填充色

// 单元格宽度

// 单元格数据合法化

// 占位符默认 focus 标题

// 卡片形式下，使用仓颉复制

// 卡片状态下的链接是 void 节点，如果采用 insertText 方式修改文本，会导致 void 节点被删除

// 原先不处于正下方，现在处于正下方，需要更新

// 原先处于正下方，就是同行最优先的结果，不用再更新

// 原本这里有一层「判断 node 内部是否存在 leaf 节点，不存在才继续」的逻辑

// 原格式粘贴

// 参考原生实现: 直接跳过光标附近的 SPACE

// 双倍间距

// 双行模式默认用 locale.buttonTitle 作为文案

// 反序列化 ASL

// 反序列化解析Html或Text

// 发现selection除mark外没变化则不设置

// 取位置更高的，即纵向上更靠近的作为 closestBelow

// 受控模式

// 受控的值

// 叠加偏移量

// 只在 browser 环境做探测

// 只在 leaf block 监听 pending 流

// 只对中文做通用降级

// 只对中英文降级，暂不处理 cs 和 hAnsi

// 只接受非空表格

// 只有 collapse 状态，并且不在 void 元素内，才会触发此优化

// 只有一段文本

// 只有在 matrix 中标记的格子才 hidden，否则都不 hidden

// 只有拷贝复合内容的情况下才修正表格断行的数据，只有一个表格的情况不处理，在 table 的 clipboard 中有自行的逻辑

// 只渲染一个按钮

// 只解析背景颜色

// 只读下 allowDownload 附件只支持 boolean 类型

// 只读情况下只返回 normal

// 只读时，配置 showCaretOnReadOnly 时可以显示远程光标

// 只读模式下，如果用户在同页面点了其它内容，则先取消选区

// 可以支持不同 path 使用不同颜色的 icon 可将 IIconProps 的 pathColors 接口暴露给应用层

// 可传dayjs值进来，受控

// 可关闭时左右 padding 不等，为使线条在文字内容中间对齐，需左移 (24 - 8) / 2 = 8px

// 可关闭时，偏移到tab title 的中间，去除关闭按钮的影响, 需左移动 （2 + 16) / 2 = 9px

// 可能会出现一种情况，表格的行不够填充了，则这里要追加行

// 右边界长度：[index, items.length) * (w + COLUMN_SPACE) - COLUMN_SPACE / 2

// 右键菜单显示的时候，阻止body滚动

// 合法协议白名单，只接受业内规范，或阿里系内被广泛接受的协议

// 后续寻求更好的办法

// 后面无 block 时，直接插入的效果是会在当前元素前插入，所以需要提前在后面插入空行

// 向前、向后删除链接

// 向右侧移动

// 向后删除时，光标移动到删除段落的下一段

// 向左侧移动

// 否则移动光标到下一个 block

// 否则说明是新的 list，要先把之前 list 进行转换

// 嗅探器

// 因 canCopy 而重新生成 controller 会导致后续的交互出 BUG

// 因此取一下 dataPack 的 key

// 因此这里去掉 `!isLeaf` 判断

// 因此采用 setNode 方式替换, 此时需要获取到最新的节点状态进行替换

// 因此需要人为控制 blur 状态下不执行 reset

// 因此，在情况 2 下，我们需要阻止默认的 mousedown 行为（阻止了 mousedown 引起 blur），来防止编辑器失焦

// 固化头像组中颜色角标的选用和顺序

// 固定值也需要做最小限制（24 * 0.6 = 14）

// 国际化

// 国际化函数

// 国际化文案

// 圆角

// 在 IOS 上复制内容，IOS 只会保留 text/html 类型的 mime type 内容，且会对 html 进行解析，清空掉 article 上挂载的 asl

// 在 Markdown 编辑器里写入 [text]() 后，经过下列步骤，会把 href 解释为 true

// 在 decoration 前面增删文字

// 在 decoration 里面增删文字

// 在 edge block 的后面。直接删除掉，并插入新的段落

// 在 edge block 的非删除边缘。需要看前/后一个 block。

// 在 safari 浏览器和 chrome 会出现 menuItem onClick 无法触发的bug

// 在 setComment 之后，marksToDec 中去掉，可以减少一次闪烁。

// 在下一次 repaint 发生前，若光标不再等于组件 update 时的光标，则认为丢帧

// 在下一次任务调度时，判断 operations 是否需要 pending

// 在占位符进行取消链接时，直接执行删除，来自：https://work.aone.alibaba-inc.com/issue/34949369

// 在拖拽、normalize 等一些极限场景，table 结构被破坏

// 在搜索结果处处理Unicode，避免光标focus到Unicode中间

// 在调用 setJustCreated 的地方使用的 dataPack 中的 key

// 在这里 flush 会导致 Android 联想状态回车后续的 splitBlock 无效

// 块级元素在末尾追加换行

// 基础列表项

// 填充空单元格

// 填充表格空缺的单元格

// 填补表格单元格的跨度属性及隐藏属性

// 处理 decorations

// 处理 focus 在 void 元素的情况

// 处理分页下的节点装饰

// 处理字段映射相关

// 处理导入没有 listStyleType 的 连续数字类型(如：2.1.1)的列表

// 处理日志公告中的不合法数据结构

// 处理末尾断行

// 外部点击触发编辑框显示时，应该 focus 到输入框

// 多个 rect 都符合 closestBelow 条件的时候，需要取我们最需要的那个

// 多个 trigger 控制同一个 panel, key 相同时取反 visible, 否则更新 panel

// 多编辑器实例需要共享

// 大多数情况，focused && 编辑态

// 如果 colsWidth 和列数不相等，则重新计算

// 如果 document 宽度变了，重置所有的缓存

// 如果 eventTarget 在父元素内部，才算命中（处理表格等情况）

// 如果 key 已经存在 injections，则 concat 在末尾

// 如果 level - prevLevel > 1，也按 1 来计算, 避免找不到上层节点

// 如果 name 为预定菜单选项

// 如果 nextText 节点不相等，则说明出现了文字截断，此时要做偏移位校正，校正时需要先从光标点位和字符串中取分割的文字串，然后再计算字数

// 如果 p 下面没有 text 节点

// 如果 pending queue 不存在 pending 对象，则创建

// 如果 pure link 后面没有内容，为了避免输入新的 pure link 无法被高亮

// 如果 selectable 为 false，那么一直可以触发 onChange

// 如果 style 存在则解析 style

// 如果 table 的 colsWidth 缺失，则需要进行计算

// 如果 task 不存在则创建

// 如果 tc 下面是空，或者不是 block 节点，则进行数据订正

// 如果 toolbar 折叠，即其他功能需要整合进「更多菜单」中

// 如果 type 不为 undefined 且为不支持波纹效果的 type，直接 return

// 如果 url 满足内置的模式，根据 url 返回

// 如果上一个兄弟节点不存在，或者不是 phantom 节点，则创建一个 phantom 节点

// 如果上一个兄弟节点是 phantom，则直接添加进去

// 如果上层有处理 onChange 则上抛，否则进行内部消化，保证基础选区交互能够 works

// 如果下方剩余空间无法容纳 portal，还需要判断上方空间能否容纳

// 如果不是 list 节点

// 如果不是一级节点，或者是文档末尾，则不分组

// 如果不是正下方，是左下方或者右下方

// 如果为初始值, 说明没有计算, 直接略过

// 如果仅更新链接信息

// 如果保存为卡片形式形式，

// 如果光标在一个 void 元素中，则不进行 split 操作，直接移动光标到下一个 Text 节点

// 如果光标重叠，则不处理

// 如果列宽的数量与列数相等，则认为是合法数据

// 如果前/后一个 block 是空的，直接删掉；否则移动到末尾。

// 如果前一项 level 大于当前 level 就清空所有比当前大的计数

// 如果剪切板中有 fragment, 对复制源来自仓颉或其他的内容，统一收口做normalize处理

// 如果单元格有跨度，则进行标记

// 如果卡片原来是链接形式，需要先转为卡片形式，再获取信息，避免排版问题

// 如果可用的 buttons 数为 0，则不渲染

// 如果在分栏里没有内容，再按下了删除：就删除掉整个分栏

// 如果在当前文本进行分裂，则需要调整选区到分裂后的文本

// 如果在当前行中列跨度大于 1，则在当前坐标之后 +1 填充单元格

// 如果存在 hover 选区、并且还有其他的气泡，就把选区去除掉

// 如果当前容器里面只有一个河图卡片，那么删除操作需要通过一个空的paragraph来替代当前河图卡片来达到删除效果,其余情况采用默认逻辑即可

// 如果当前河图卡片是在表格中，并且该表格中仅包含该河图卡片，无其他内容

// 如果当前节点是叶子节点，则子节点一定是字符串，不需要额外处理 dropcolor

// 如果当前节点是叶子节点，则直接返回字符串

// 如果折叠或者只有一个按钮，那么直接显示，否则：

// 如果指定了 type 根据 type 返回

// 如果数组为空，根据是否群聊设置默认头像

// 如果是 0 宽单元格则丢弃

// 如果是 indoc，因为有 border，所以需要减去 2px

// 如果是 pending 期间的选区更新，进行输入统计

// 如果是value不是undefined，说明受控

// 如果是占位符点击出现的编辑框，使用 esc 退出时，将光标移动到占位符外部

// 如果是占位符，直接 focus 标题输入框

// 如果是同类型且可合并的 pending，则合并

// 如果是文档末尾，则不分组

// 如果是新增节点触发重绘

// 如果是标记的 hidden 节点

// 如果是段落行，则直接 append

// 如果是监听事件，删除原始调用onSuccess的回调

// 如果是空 text 或者与上一个 leaf 属性不匹配，则 push

// 如果是空段落，则 normalize text

// 如果是议题的选区扩展行为，则不执行自动展开

// 如果是链接卡片，直接删除

// 如果更新了卡片信息

// 如果最近的节点不是卡片节点，直接返回

// 如果有 fragment 缓存直接返回

// 如果有 节点有 start 字段，序号从指定 start 开始

// 如果有Group，直接根据 Group的选中数组判断

// 如果有Group，直接根据 Group的选中项判断

// 如果有一个是 undefined

// 如果有解析后的 fragment 缓存直接返回

// 如果未找到, 则single 代替

// 如果来自输入框，需要是 blur 触发

// 如果此时偏移量比最小偏移量小（可能是窗口 resize 引起），则重置 offset

// 如果没有找到，或者 rect 的 bottom 比插入行的 top 还要小，就不返回

// 如果没有迭代到字符，至少保证选中前一个字符

// 如果结果已经没有其他 attribute，直接返回 null

// 如果行的跨度大于 1，则需要在下面的行中填充单元格

// 如果表格的下一行不是 paragraph 节点，则创建一个空节点

// 如果这个 text 和 oldDec 的跨越太多（超过一个 block），就忽略掉

// 如果选区所在的文本被 merge，则需要将光标移动到合并后的文本，并且修正光标起点

// 如果选区所在的空间发生了变化，即当前选区的空间，不等于最近一次单人编辑时缓存的空间

// 子组件的类型判定

// 字体列表选项

// 字体懒加载会导致字体列表延迟 1-2s 出现(大文档场景)

// 字数计算的时候会被拆分出来成 2 个字

// 存在 selection 先更新而 document 后更新，导致找不到 block 的情况，需要 catch 住，下次更新即可正常渲染

// 存在 行内代码 样式，则忽略其他背景色效果

// 存在inlineMenu的情况

// 存在文本或者链接变化时，将 pure link 转换为 text link

// 存进state中

// 存量数据中存在字符串类型的 line: 1.46667px（脏）,18px（正确）

// 安卓统一与 IOS 相同处理

// 宋体

// 实时计算宽度

// 容器

// 容器有bug：https://work.aone.alibaba-inc.com/issue/26118887

// 容器样式

// 容器节点初始化

// 宽高未落库时，不再使用绝对定位，因为无法确定外面的容器的尺寸。

// 富文本粘贴

// 对 block DOM 的所有 rects 进行分行

// 对 node 上的属性进行类型校验

// 对 undefined、null 类型的 type 做校验

// 对于 edge selection，做特殊处理。

// 对于 link 节点，需要阻止继续遍历，否则会出现两遍重复文本

// 对于 purelink 展示位 loading 卡片的瞬时状态，判断 start 的 offset 是否在范围内

// 对于占位符合首次插入链接，直接显示编辑框

// 对于大元素（超过 1/2 屏幕高度以上），特殊处理一下。

// 对于情况 2，其事件流为

// 对于每一组

// 对极小值多倍做限制，避免粘连（1/1.7 = 0.6）

// 导出长图时统一返回占位符

// 导致编辑器的 autoFocus 配置失效

// 将 #color1_#color2 转换为 [color1, color2]

// 将 BlockLinkCard 转换为 textLink 后，调用原有的 unwrapLink 方法

// 将 pure link 转换为 block link card

// 将 pure link 转换为 text link

// 将 rects 以从上到下、从左到右排序 - O(NlogN)

// 将 rects 以从上到下、从左到右排序，并记录每行的尺寸 - O(NlogN)（N 为 rect 个数）

// 将 text link 转换为 block link card

// 将JS的字符串转换成UTF-8的字节数组

// 小于 1M，显示 KB

// 尝试找到插入行（如果 rect 的 top 比某一行的 bottom 小，就算插入行）

// 尝试注册事件，如果返回了数据，则作为缓存事件抛出

// 尝试注销事件

// 尝试缩小当前的宽度

// 展开的时候获得引用列表

// 展示卡片

// 属于当前行

// 属性上挂载的 asl 在移动端往剪切板上写入数据时（copyFragment 方法），会被浏览器自动过滤掉，需要使用空的 image 标签再次做兜底

// 左右则优先放右侧

// 左右相邻的 rects 合并成一个

// 左边界：index * (w + COLUMN_SPACE) - COLUMN_SPACE / 2

// 已到过 start dom 且未遍历完 end dom tree

// 已遍历完 end dom tree

// 常用值

// 幽灵按钮

// 序列化 ASL

// 序列化时对不合法 level 进行矫正

// 序号计算

// 底边对齐

// 延迟丢弃时，先标记该数据 ignore

// 开启沙盒模式，防止 xss 攻击

// 引用

// 强制删除第一个

// 当 DOM 更新后:

// 当 displayType 为 link 时，没有发生 url 转卡片，不保存 CardInfo

// 当 focus 回编辑器，且没有 focus 在当前链接时，隐藏工具栏

// 当 link 是卡片形式

// 当mousedown与click之间的间隔少于150ms时认为是点击点击而不是拖动选中

// 当on变化时，直接清除

// 当wordType为0的时候需要判断sourceType的类型，为4|5的时候是官方词条，谁都不可以修改

// 当「链接」无内容或者未编辑时，不允许保存

// 当传入的 nativeData 非仓颉类型时, 数据要 copy 一份，防止生命周期结束后被销毁

// 当前 td 不消费 width 数据

// 当前为最后一个子节点，直接进行转换

// 当前列宽 >= 最小列宽，则不处理

// 当前列表 start 大于 1时，就近继承所有样式相同的列表的 id

// 当前坐标可允许的最大列跨度

// 当前坐标可允许的最大行跨度

// 当前字符不为空时，至少选中该字符

// 当前字符为空或当前字符和前一字符同类型时

// 当前字符为空时，说明在文本末尾需要 backward 遍历

// 当前是否在空行

// 当前的列调整。这里需要移除之前的 colWidth

// 当前节点的下一个 block 是文档最后一个 block，或者 下一个 block 有内容。不处理

// 当前行的列数与最大列数的差值

// 当右侧溢出且左侧也不够面板展开时，面板紧临右侧展开

// 当字体颜色为「默认值或第一个色值」且「hover 的背景色为深色时」

// 当左侧也不够展开时紧邻左侧边缘展开

// 当左右都没有足够空间时, 不显示预览

// 当我们点击外部时，期望能够 focus 回编辑器，此时存在两种情况：

// 当文字字体大小相同且不为渐变色时，通过自身 background 渲染背景色，否则使用 div 模拟背景色

// 当是小程序组件环境时

// 当满足以下条件时，认为是同一类型：

// 当点击占位符时，需要阻止事件冒泡，避免被 cangjie 处理

// 当第一次监听的时候(内存里没有数据)

// 当选中颜色为白色时，选中边框的外边缘为黑色，否则选中边框外边缘与内部颜色一致

// 待补充

// 微软雅黑

// 快捷键产生的事件，忽略处理

// 悬挂缩进时整体 paddingLeft 增加，靠 text-indent < 0 实现

// 我们限制如果拷贝的是块级元素，则必须有 expand 选区

// 所以只在 composing 期间才执行 compositionEnd

// 所以需要在这种情况下 force re-render

// 所有 checkbox 恢复默认

// 所有色板恢复默认颜色

// 手动调用 flush, 触发 仓颉 HiddenTextarea 聚焦

// 打开二级菜单

// 扩展行高，填充行之间的空隙

// 找不到光标时，将面板隐藏掉，防止再次聚焦时显示位置不准确

// 找到最后一个非 set_selection op，做连续性比较

// 找到第一个文字子节点 dom

// 拖选时 or 编辑态下的光标 可触发滚动

// 拼接 charset

// 拼接 weight

// 按最小粒度四舍五入取整

// 按照 10.5pt/char 转换（导入数据未作单位转换需除以100）

// 捕获 nuvajs bootstrap 启动失败, 增加一个 runtime error 事件监听

// 排版下没有外部统一的 block div，这里特殊兼容下

// 排除渲染后需要滚回至原位置而非选区所在位置的情况

// 探测完之后，把 selection 回归

// 接受者列表

// 接口

// 推荐用户使用白色字体

// 提前排序便于快速查找

// 提前生成转换函数

// 插件内部不允许嵌套执行

// 插入的是 void 元素，则将光标设置到多余的空行上

// 插入类型

// 插入节点到body

// 支持 purelink 识别的情况下，添加 decorateNode 和 renderMark

// 支持分割线

// 支持排版里的节点不支持 getFirstText 方法

// 支持输入的模式

// 收缩选区

// 放在其他插件之后兜底处理默认样式

// 放在最前以保证所有标签的样式都能被处理到

// 放过input，以便输入地方可以正常输入

// 效果为自动滚动到底部

// 数字字符串以外不识别

// 数据效验

// 数据都为 undefined 返回 error

// 数量

// 文字颜色

// 文本容器的引用

// 文档的宽度

// 文档链接不做转卡片处理，后续用 hetu 专门替代掉

// 新的一行

// 方向键展开

// 方正仿宋

// 方正兰亭黑 - 简

// 方正楷体

// 方正黑体

// 无交集

// 无内容的行在 Word 中会塌陷，这里使用一个宽度让其能够撑开

// 无序列表、中文有序、罗马有序保持8px距离

// 无序列表仍要根据 level 清理。有序列表会出现跨无序连续的问题

// 日常环境

// 日期输入框的值

// 日期输入框的值受控于value和format

// 旧列表的level存在负数跟小数会导致all[listTypeName][relativeLevel]返回的是undefined，数组结构失败，所以用RELATIVE_LEVEL处理

// 旧高亮块嵌套列表，可能会出现死循环

// 时序有点复杂，后续考虑不调用unSubscribeEvent

// 时间format需要加个虚拟的日期进去

// 时间输入框的值受控于value和format

// 是否为名字头像

// 是否在列表中

// 是否在加载中

// 是否拖拽

// 是否是一半的 leaf

// 是否是开始位置

// 是否显示标题

// 是否点击的是overlay

// 是否选中

// 显示状态下切换 overlay，先使用旧的 overlay 进行隐藏，再显示新的 overlay

// 显示的 bgColor 优先级高于 bg

// 普通按钮

// 暂时只能通过这种方式，后续升级 React 后，改回 disablePictureInPicture 属性

// 暂直接返回

// 更新

// 更新 rotation 的时候，若宽或高未落库，会影响后续计算

// 更新需要控制粒度，避免生成额外 op

// 替换 view document 中的 node 节点

// 替换 view node 中的 text 节点

// 替换目标节点

// 最后补全 42 个数字

// 最后补全42个数字

// 最小值降级

// 最小高度

// 最终呈现需要在移动端考虑放大sz

// 月份不同，可能所占的行数不一致，为了不抖动，统一取42天

// 有一些场景，要忽略的并非内部元素，比如 toolbar 弹框

// 有下一个 block 时

// 有些tr虽然没有child，但是属于合并单元格的一项，不可直接摒弃

// 有粘贴操作时，更新粘贴按钮位置

// 有继承数据的时候忽略编辑器默认的 spacing

// 服务端不展示以及没有其他内容时都不折叠

// 未带单位的 fontSize, 默认单位为 px

// 未计算好 size 之前去掉缓动（from xingtain）

// 未遍历到 start dom 且在遍历 start dom 的祖先节点

// 末尾处的断行要移除掉

// 本地开发环境不上报

// 本地数据搜索

// 本月

// 极限低，理论上应该是负无穷

// 查找 Range 时，首先查找文字选区，若文字选区不存在，则判断是否存在 void 选区

// 查找光标所在的列表项

// 查找可用的 group 条件

// 查找距离最近的一个item

// 查询第一个议题节点返回

// 查询第一个高级标题节点返回

// 查询节点的父节点是否是折叠态

// 标题类型列表不使用连接线

// 样式切换为链接时，清理节点的 injection 内容

// 根据 MoreMenuConfiguration[][] 进行「更多菜单」渲染

// 根据 value.data.tableMinColsWidth 设置每列的最小列宽

// 根据入参判断实例化对象是否相同

// 根据最新 node，使用 toView 局部重算 view node

// 根据本地选区变化滚动页面

// 根据选区变化滚动页面

// 检查 eventTarget 是否在 node 的左侧和右侧

// 检测 leaf 所在的 text 是否在选区内

// 检测 leaf 是否在选区内

// 检测 move 事件的 Throttle

// 楷体

// 楷体 - 简

// 橙色浅x2色

// 橙色浅色

// 正规化渲染 HTML 的 Asl，主要解决平铺列表转为嵌套列表的问题

// 此处是浏览器 bug，blur 时没有触发 compositionend，要手动触发

// 此数值为避免被iOS键盘遮挡

// 此缓存是为了让最近显示过的tab项不销毁

// 段落边框：在列表的场景下由于被 wrapper 包裹所以要消掉 border

// 段间距

// 气泡形式，如果被折叠，就直接藏起来

// 水印颜色

// 没有插入行的话，就创建一个

// 注入 Injection 数据

// 注入 injections 进入 node 节点

// 注入全局 iconfont 样式

// 注入新的 Injection

// 注意内网子域名要放在前面

// 注意次数 listId 也可能为 undefined，我们在这里认为 listId 为 undefined 的列表项均为一组

// 注意这个值可能需要优化，纸张在不同的模式下宽度都不同，考虑到自适应的问题，目前暂时设一个较少的值

// 注意这里不会使用 tc 上面的 width，tc.data.width 全部是脏数据

// 注意这里有个小问题：Point 的 offset 表示的是字符的偏移量，但是 moveBackward 方法是做的字偏移，所以要计算 Unicode 字

// 测试是否是有效展示的react元素，所以不包含null/undefined/{}/''/boolean

// 浏览器里 p 标签会带上 1em marginTop、marginBottom，导致 safari 浏览器自动纠正 text/plain 数据, 产生多余空行

// 浮动元素单独为一组，不参与普通 Rect 的间隙填充逻辑

// 浮点数精度问题消除

// 消费后重置回默认值

// 添加和删除

// 添加英文和中文索引

// 清理临时状态

// 清理所有状态，切换至编辑模式

// 清理注入信息

// 清除

// 渐变色

// 渐变色和删除线有冲突，设置删除线时渐变色退化为第一个颜色

// 渲染一行色块

// 源自语雀

// 滑动到最底部，触发“加载更多”

// 滚动后更新下拉菜单中的选项

// 激活状态

// 灰色

// 点击 更多颜色 面板之外的区域关闭面板，并将颜色添加到 最近颜色 中

// 点击到表格上时，纠正选区到下一个 text 开头

// 点击处理

// 点击已选中的颜色， 恢复默认颜色

// 点击自己或者自己的子树，或者 ignore 生效，则忽略

// 点击过程

// 然后再新建一个 list

// 特别处理 %，兼容：@word @shimo @tengxun

// 现在左下、正下、右下都算 closestBelow

// 用于 onChangeComplete

// 用于判断两个 list 是否为同一个 list

// 用于状态比对

// 用户按 Enter 键后，我们在一个新行

// 用户的tag

// 用选区 end 所在 block 的 rects 扩展最后一行的高度

// 用选区 start 所在 block 的 rects 扩展第一行的高度

// 由于 disabled 会导致切换应用后无法自动 focus

// 由于 hetu 等插件内部可能嵌套了编辑器，且 key 不可控，可能与宿主重复，造成问题（选区异常 or 页面奔溃）

// 由于 view 或 实际 DOM 树与 document 结构并非一致，所以通过查找 DOM 树上需遍历的子树根结点来做

// 由于移动端无序列表符号过大，使用px按比例缩小一些

// 由于第一个单元格已经占 1 位，所以要 -1

// 监听输入缓冲数据流

// 目前 heading id 只是用于大纲跳转，并没用于 url hash，所以保证唯一即可

// 目前列表要求只显示 1-4

// 目前许多的编辑行为在 onKeyDown 事件中，所以暂时禁止掉

// 相同属性的 leaf 则 concat

// 相对于顶部定位，避免折叠/展开等操作引起的选区定位不稳定

// 真实的换算应该按照 1024，但文件系统里显示是按照1000换算，所以跟系统保持同步

// 短路优化：如果 group 组中途断掉，则返回 true

// 短路优化：若不为 group 节点则返回 false

// 确认按钮不阻止事件流

// 禁止

// 禁止 kerning

// 禁用 panel

// 移动光标到下一个 text

// 移动端 document.activeElement 非 hiddenTextarea, 无法通过 execCommand 触发 copy 事件

// 移动端由于删除事件不准确，这里不 preventDefault，走 onChange 路径

// 移动端由于键盘弹起，可能会导致迅速的切换。

// 移动端的 textarea focus 会触发视图的滚动，且 preventScroll not working，在 readonly 模式下禁止 focus

// 移动端统一放大

// 移动端除了音视频，其他的都是卡片

// 移动端：选区 Expand 时候，没必要每次渲染都进行 scroll，不然会导致无法跨段落选择

// 移除选区的同时会导致 textarea 失焦，此处反选一下，保障首次 code-mirror blur 的时候不会致使 cangjie 失焦

// 空列

// 空单元格

// 空格符号过滤

// 空行

// 空表格

// 空连接默认 focus href

// 立即展开后需要清除标记

// 第1个分组在标题中展示

// 第一次渲染或children发生变化，重新计算宽度

// 第一步，填补 span 的单元格

// 第一渲染或children发生变化，重新计算宽度

// 第二步，填补不规整的行

// 类型是议题 && 非预览模式 && 没有标题 && 有 placeholder 文字配置才展示

// 类型校验

// 类型：button（一般 button），menu（自定义菜单），style（风格切换），more（更多菜单）

// 粘贴来自不同插件配置的编辑器时，处理framgment中不合法节点

// 粘贴的是文件，走同步事件，其他类型走异步事件

// 红色浅x2色

// 红色浅色

// 纯文本导出

// 纯文本粘贴

// 纯色

// 纸、笔还不统一，取大值。

// 线上存在 listId 一样的列表但是类型不一样，需要做一下过滤

// 线上存在 listId 一样的列表但是类型不一样，需要做一下过滤，只对有序列表做计算

// 组件卸载时，保证 timer 被正确清理

// 组件是否已被卸载

// 结构：SubMenu - MenuItem - SelectGallery（风格切换组件）

// 给 e 加一个 _blur 属性

// 给 e 加一个 _input 属性

// 统一转为字符串数组

// 绿色浅色

// 缓存用户最近一次的光标位置，以实现多人协同时，内容变动，固定用户视角

// 缓存的 listId, <旧 id, 新 id>

// 缓存虚拟dom提升性能

// 编辑框允许 href 或 text 为空字符串，转为卡片时需要保证都不为空

// 编辑模式下 textarea 监听输入行为

// 编辑模式下生效

// 编辑状态下 click 正常链接，隐藏编辑框

// 编辑视图 + 右侧没打开，就 ignore 了。

// 罗马数字统一右侧对齐

// 罗马类型

// 罗马项目符号额外增加缩进值

// 群词条

// 背景色

// 背景色以 行内代码 为准

// 背景颜色

// 自动关闭处理

// 自定义显示区函数优先级最高

// 自定义组件（风格切换每一个 item）

// 自定义菜单

// 自定义菜单渲染

// 自定义表情类型, sprite -> 雪碧图， single -> 单图

// 节流

// 节点被清除的时候应该也把tooltip清除

// 若 operations 不可 pending，则立即倾倒

// 若 timer 未被延迟，但尚未绘制，则 setTimeout 先于光标绘制执行，不进行统计，立即丢弃

// 若 value 数据变更，则更新渲染数据

// 若上方也无法容纳(triggerRect.top < height)，则仍然放到下方

// 若不在开头 或是 空标题节点，则在光标所在段落的后面插入内容

// 若为 Edge Selection，且 edge 为 after，则将光标设置到下一个 block

// 若产生了不能合并的 pending，则立即倾倒 pending queue

// 若光标发生了变化，则更新

// 若光标的起始和结束不在同一个 Block 上

// 若光标的起始和结束不在同一个议题组内，则需要扩展选区

// 若删除选区所在的节点或者其父节点，则要么移动选区到上一节点末，要么移动选区到下一节点开头

// 若在当前选区之前插入文本，则需要后移选区

// 若开启了注入，则自动注入 Injection 数据

// 若当前选中点为 text 末尾，则试探后一个节点是否为可选 inline

// 若当前选中点为 text 起始，则试探前一个节点是否为可选 inline

// 若当前选区在删除文本之后，则需要前移选区

// 若当前选区在删除文本起点之后，则前移选区到删除起点

// 若文本地址为空，则去除链接，链接里有可能嵌套inline图片

// 若是在末尾取消编辑，则跳出当前链接

// 若没有提供 options 选项，也不进行渲染

// 若议题节点折叠则展开

// 苹方 - 繁

// 获取 code 内容

// 获取 name

// 获取信息失败，不添加任何数据

// 获取元素顶部距离滚动容器顶部距离

// 获取内部撑开的宽度，主要处理依赖父元素宽度切默认宽度是 100% 的节点(如图片、表格)

// 获取列表项(相对与列表顶部)的高度

// 获取包含该河图卡片的表格容器节点

// 获取最新 text 和缓存的 view data

// 获取真实节点上对应属性的类型

// 获取鼠标相对于列表容器的位置

// 获得 decoration 相对于 node children 的起始位置

// 蓝色浅x2色

// 蓝色浅色

// 行内工具栏

// 行高

// 表情列表

// 表情映射表

// 表情语言

// 表情面板靠近底部且上部空间足够时，向上展开

// 表明这次的 onChange 由输入框触发

// 表格每行单元格数量不一定相等

// 表格设置的选区，禁止 scroll

// 被合并掉的单元格不输出，在 Word 中如果输出 hidden 单元格则会异常

// 裁剪头端所有的空格符和断行符

// 解决 iPad 上 overflow 不生效的问题

// 解决css color 无auto的问题

// 解决某些情况下 hover 到 margin 导致弹窗关闭的问题

// 解析 model.data 字段中允许的类型

// 解析不同位置的边框

// 解析前先去除多余的空白符

// 解析来自 IM 的表情

// 警告按钮

// 计算 height

// 计算位置

// 计算光标以 word 为单位时移动的偏移量

// 计算准确时间

// 计算可见 tab 时，去除 tab title 两边的 padding，使下拉菜单内展示的 tab 更符合直觉

// 计算好 injection

// 计算完成，这时缓存都是有效的计算结果

// 计算工具栏位置

// 计算底部剩余空间，若剩余空间能够容纳 portal，则向下展示 portal

// 计算当前主题的 index

// 计算的结构存入缓存

// 计算第一行的 td width 数据

// 计算要显示的天，遵循 temporaryValue 的值

// 计算要显示的天，遵循temporaryValue的值

// 计算选区渲染所分布的根节点

// 订正单元格

// 订正表格单元格数据

// 议题内容 placeholder

// 议题节点没有父级议题

// 记录 anchor path

// 记录 start/end 所在 block 的所有 rects，用于后续修正选区边界的 rect

// 记录光标位置到decoration

// 记录取消监听的promise

// 记录正在监听的promise

// 记录选区数据发生变化，DOM 尚未变更时，DOM 光标的位置

// 设置 custom color 后立即应用，但 colorPicker 不收起

// 设置了使用缓存的才吐回缓存

// 设置初始状态

// 设置卡片imgURL, title, desc 为 undefined

// 设置字体探测

// 设置当前列的列宽

// 设置目标状态

// 设计变更 - 不要前面的勾，被选中的对象在列表中高亮显示

// 设计安排当在PC端点开的应用没有PC端链接的时候直接跳转到空白页,pc的链接为空字符串为PCLINKEMPY

// 识别如下两种结构作为代码块

// 请求前先填充 undefined 信息，确保数据层识别为卡片，解决 loading 时排版问题

// 请求失败,将状态设置为 error，数据填充 undefined

// 请求失败，不更新数据,将卡片信息设置为 undefined

// 请求成功

// 读取粘贴板数据

// 调整下一列列宽，尽量保证表格整体宽度不变

// 调整已有元素的位置

// 调用select是方便后续撤销时恢复选区，表格选区不恢复可能会跑到隐藏单元格触发bug

// 超时

// 跟yuque交互保持一直，当选中区域中存在link且同时存在非link选区时，取消选区内所有的链接，同时将选区设置为新的link

// 跳过不支持的样式

// 转换为百分比兼容word和竞品

// 转换为绝对值单位 px

// 输入的值无效

// 输入缓冲开始，使用 pending node

// 输入过程中不闪烁

// 输入过程中是否隐藏

// 输出 HTML

// 边框

// 边框颜色

// 过滤 block 节点

// 过滤 inline 节点

// 过滤下

// 过滤当前文档，并按照宿主聚合

// 过滤折叠标题自动展开

// 过滤无效字符

// 过滤高亮块中的标题

// 返回值意义: shouldContinue other keydown handlers

// 返回接口抓取的图片

// 返回默认图片

// 这个node确实归属这个document

// 这个地方 node 的 key 可能会是 viewPack 的 key

// 这个行为主要用于处理 image/mention 等 inline 元素的断行问题

// 这个问题是由于表格如果下行没有一个断行的话，则在文章末尾无法追加新内容，切两个表格之间同理也无法追加内容

// 这种写法不算好，依赖 mention 的数据结构且可能还有遗漏

// 这种状况是由于在段落的行首插入一个 inline 元素不会触发 split 操作，这种情况不需要校正偏移量，直接移动至 next 的首位

// 这里 callback 使用了 findDOMNode，报错的话需要 ignore 掉

// 这里不能加 document 依赖，因为可能会导致多人协同的时候，异常滚动。

// 这里会进行二次校验，如果 table 下的数据不合法，就拉出来删除掉

// 这里可以移动了，移动后，不会导致其他的问题。

// 这里可能是 "transparent"

// 这里对 actual 是 Array、Object 类型作区分

// 这里无需读取真实的 size 造成 reflow，只需要可以感知到变化即可

// 这里是行为层，不是command层，做这种处理是安全的

// 这里用于记录zhi渲染的list的level, TODO 需要和getListLevel统一

// 这里的魔数是卡片状态下呼出编辑框的 ui 高度设置: 距离工具栏浮层高度为 4px

// 这里转换为倍数，同时防止 line 过小

// 这里需要先插入，再删除，否则会报找不到 path 的异常

// 进行子组件的检查：children只有一个、子组件应该为Menu

// 进行隐藏时，使用旧的 overlay 进行隐藏，避免动画过程中组件切换

// 远程搜索

// 追加一个 text 节点 normalize，否则单测跑不过

// 选中处理

// 选中的样式

// 选中颜色之后，数值回调

// 选中颜色变化时立即应用

// 选区完全在 table 里

// 选区需保证 node 渲染完成后再更新

// 选择代码块的时候清空 cangjie 的选区

// 递归找到目标位置

// 递归计算文档中所有的列表序号

// 通用橙色

// 通用的样式转换不识别这种不规范的数据格式，这里转换一下

// 通用红色

// 通用绿色

// 通用蓝色

// 通知 pending 结束事件

// 通过检查左右距离确定最终取哪个

// 通过解析text内容，获取列表类型，更新列表信息

// 通过面板连续添加表情，需要移除表情的选中状态

// 遍历 decorations，将其放入排序数组

// 遍历中对列表项目计数的缓存 key: listId

// 遍历取出 jsonMLToHTML 插件

// 遍历孩子节点

// 遍历每一个 mark，然后构建新的 View Decoration

// 避免没有意义的复制、剪切

// 避免被默认规则 normalize 后，仅包含一个 text 节点，再 normalize 时删除

// 重叠部分

// 针对 pctXX 模拟混合（因为比较均匀）

// 钉钉文字表格白板则去掉后缀

// 链接卡片粘贴为文本时，粘贴 href

// 链接自动转卡片逻辑

// 链接颜色

// 锁进

// 防止与Bi循环引用，mo中先单独列一份

// 防止光标处于 edgeSelectable 节点两侧时，decoration.start 标记失败

// 防止双击重复弹出profile问题

// 防止当前 ev 有其他 requestAnimationFrame 内修改 dom

// 防止插入内容首个节点是 edgeSelectable ,导致 decoration.start 标记失败

// 防止粘贴大量内容加载动画卡顿，等业务层ui更新后，再进行反序列化

// 防止误解析来自 IM 的表情

// 阻塞 overlay click 事件，否则会影响 onEdgeClick

// 阻止 更多颜色面板的 点击事件冒泡

// 阻止冒泡

// 阻止默认行为

// 隐藏的单元格

// 隐藏的单元这里不解析，在表格的 normalize 中会自行填充空缺的单元格

// 需求背景：

// 需要 delay 丢弃的 perf 事件

// 需要周期性倾倒 pending queue 需满足以下条件之一：

// 需要在上方添加一根分割线 <MenuDivider/>

// 需要对上一个节点进行转换

// 需要将月份面板的年份重置掉

// 需要手动插入一个空白符

// 需要有明确规则，明确的margin、padding

// 需要根据 controller 来获取 pointAtStartOfNode / pointAtEndOfNode。如果放到 Value 的

// 需要跳过disabled的选项

// 非 block 节点，这种情况可能会异常

// 非 button 组件用 menu 实现

// 非 document 节点直接抛错

// 非 fuzzy 状态下，会使用 str_xxx 进行拼接(性能消耗), 所以也需要替换

// 非 markdown 格式 且 有 text/html 内容的，以 html 内容为准

// 非气泡形式，如果被折叠，就找到折叠的段落

// 非第一次计算(如resize)，从缓存中取已计算好的数据

// 面板不出现时不予处理（避免首次 mousedown 引起 flush 的情况）

// 顶部功能区

// 预览框恢复默认

// 颜色值为FAFAFA或FFFFFF时， 需要设置边框

// 首次visible append 到body中

// 高亮subMenu 打开时第一个节点

// 黑体

// 黑体 - 简

// 黑体 - 繁

// 默认使用 mo 的正反序列化

// 默认值

// 默认值 兼容之前hr颜色和厚度方案

// 默认单位转换为 px（word导出数据含xxpx、xxpt）

// 默认选中第一个节点

// 鼠标点击在输入框上时，不可拖拽

// 👁 https://ant.design/docs/spec/font-cn#字体颜色

// 👁 https://ant.design/docs/spec/font-cn#字阶与行高

//# sourceMappingURL=index.cjs.js.map

//# sourceMappingURL=index.js.map

//# sourceMappingURL=styled-components.browser.esm.js.map

//# sourceMappingURL=styled-components.js.map

//(cheaper check than in onclosetag)

//////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////

//<!-- ... -->

//<![CDATA[ ... ]]>

//<? ... ?>

//<script> tags

//<style> tags

//@ts-ignore

//Add startIndex properties to nodes

//Any tag

//Parses a complete HTML document and pushes it to the handler

//Replace all whitespace with single spaces

//Resets the handler back to starting state

//Resets the parser to a blank state, ready to parse a new HTML document

//Signals the handler that parsing is done

//TODO add a way to remove current tag

//TODO make events conditional

//TODO(edemaine): Not yet centered. Fix via \raisebox or #726

//TODO: make this a streamable handler

//Text

//Tokenizer event handlers

//Types of elements found in the DOM

//\def\vcentcolon{\mathrel{\mathop\ordinarycolon}}

//\providecommand\ordinarycolon{:}

//alias for backwards compat

//chars removed from _buffer

//default options

//else, ignore remaining data

//else: stay in AFTER_CDATA_2 (`]]]>`)

//for entities terminated with a semicolon

//helper methods

//http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef

//http://www.w3.org/TR/AERT#color-contrast

//if there is remaining data, emit it in a reasonable way

//if(this._tagStack.pop().name !== name) this._handleCallback(Error("Tagname didn't match!"));

//it's an alias for normalizeWhitespace

//offset = 1

//parse entity

//parses legacy entities (without trailing semicolon)

//remove 2 trailing chars

//remove everything unnecessary

//self-closing tags will be on the top of the stack

//skip everything until ">"

//template

//the ignoreWhitespace is officially dropped, but for now,

//the max length of legacy entities is 6

//the min length of legacy entities is 2

//the section just started

//修改群词条的可见范围

//删除

//前往百科

//查看群词条
