diff --git a/.gitignore b/.gitignore index 3a4f29c..894c842 100644 --- a/.gitignore +++ b/.gitignore @@ -283,3 +283,7 @@ GitHub.sublime-settings R/ inst/ /.build_cache/ + + +# +.DS_Store diff --git a/DESCRIPTION b/DESCRIPTION index f4b756e..265b32e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dashMpComponents Title: Dash components for the Materials Project -Version: 0.4.46 +Version: 0.4.47 Description: Dash components for the Materials Project Depends: R (>= 3.0.2) Imports: diff --git a/NAMESPACE b/NAMESPACE index 8057d7c..18860cb 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,6 +3,7 @@ export(JsonView) export(MatSidebar) export(CameraContextProvider) +export(CrystalToolkitAnimationScene) export(CrystalToolkitScene) export(Download) export(GraphComponent) @@ -63,6 +64,7 @@ export(dataTable) export(synthesisRecipeCard) export(dataBlock) export(searchUIDataView) +export(crystalToolkitAnimationScene) export(downloadButton) export(rangeSlider) export(periodicElement) diff --git a/dash_mp_components/BibCard.py b/dash_mp_components/BibCard.py index 47cc725..ca01a8d 100644 --- a/dash_mp_components/BibCard.py +++ b/dash_mp_components/BibCard.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class BibCard(Component): """A BibCard component. @@ -52,8 +67,22 @@ class BibCard(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'BibCard' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, title=Component.UNDEFINED, author=Component.UNDEFINED, year=Component.UNDEFINED, journal=Component.UNDEFINED, doi=Component.UNDEFINED, shortName=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, openAccessUrl=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + title: typing.Optional[str] = None, + author: typing.Optional[str] = None, + year: typing.Optional[typing.Union[str, NumberType]] = None, + journal: typing.Optional[str] = None, + doi: typing.Optional[str] = None, + shortName: typing.Optional[str] = None, + preventOpenAccessFetch: typing.Optional[bool] = None, + openAccessUrl: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year'] @@ -61,9 +90,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, title= _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(BibCard, self).__init__(**args) + +setattr(BibCard, "__init__", _explicitize_args(BibCard.__init__)) diff --git a/dash_mp_components/BibFilter.py b/dash_mp_components/BibFilter.py index ba2687d..25855c9 100644 --- a/dash_mp_components/BibFilter.py +++ b/dash_mp_components/BibFilter.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class BibFilter(Component): """A BibFilter component. @@ -50,8 +65,20 @@ class BibFilter(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'BibFilter' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, format=Component.UNDEFINED, bibEntries=Component.UNDEFINED, sortField=Component.UNDEFINED, ascending=Component.UNDEFINED, resultClassName=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + format: typing.Optional[Literal["bibjson", "crossref"]] = None, + bibEntries: typing.Optional[typing.Sequence] = None, + sortField: typing.Optional[Literal["year", "author", "title"]] = None, + ascending: typing.Optional[bool] = None, + resultClassName: typing.Optional[str] = None, + preventOpenAccessFetch: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField'] @@ -59,9 +86,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, format _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(BibFilter, self).__init__(**args) + +setattr(BibFilter, "__init__", _explicitize_args(BibFilter.__init__)) diff --git a/dash_mp_components/BibjsonCard.py b/dash_mp_components/BibjsonCard.py index 6cc2176..087007d 100644 --- a/dash_mp_components/BibjsonCard.py +++ b/dash_mp_components/BibjsonCard.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class BibjsonCard(Component): """A BibjsonCard component. @@ -41,8 +56,16 @@ class BibjsonCard(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'BibjsonCard' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, bibjsonEntry=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + bibjsonEntry: typing.Optional[typing.Any] = None, + preventOpenAccessFetch: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch'] @@ -50,9 +73,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, bibjso _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(BibjsonCard, self).__init__(**args) + +setattr(BibjsonCard, "__init__", _explicitize_args(BibjsonCard.__init__)) diff --git a/dash_mp_components/BibtexButton.py b/dash_mp_components/BibtexButton.py index 8c97154..386cd47 100644 --- a/dash_mp_components/BibtexButton.py +++ b/dash_mp_components/BibtexButton.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class BibtexButton(Component): """A BibtexButton component. @@ -33,8 +48,17 @@ class BibtexButton(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'BibtexButton' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, doi=Component.UNDEFINED, url=Component.UNDEFINED, target=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + doi: typing.Optional[str] = None, + url: typing.Optional[str] = None, + target: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'doi', 'target', 'url'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'doi', 'target', 'url'] @@ -42,9 +66,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, doi=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(BibtexButton, self).__init__(**args) + +setattr(BibtexButton, "__init__", _explicitize_args(BibtexButton.__init__)) diff --git a/dash_mp_components/CameraContextProvider.py b/dash_mp_components/CameraContextProvider.py index 0f2b4b5..347f27d 100644 --- a/dash_mp_components/CameraContextProvider.py +++ b/dash_mp_components/CameraContextProvider.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class CameraContextProvider(Component): """A CameraContextProvider component. @@ -18,8 +33,14 @@ class CameraContextProvider(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'CameraContextProvider' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + **kwargs + ): self._prop_names = ['children', 'id'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id'] @@ -28,8 +49,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, **kwargs): _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(CameraContextProvider, self).__init__(children=children, **args) + +setattr(CameraContextProvider, "__init__", _explicitize_args(CameraContextProvider.__init__)) diff --git a/dash_mp_components/CrossrefCard.py b/dash_mp_components/CrossrefCard.py index 0e10c79..9d2b01f 100644 --- a/dash_mp_components/CrossrefCard.py +++ b/dash_mp_components/CrossrefCard.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class CrossrefCard(Component): """A CrossrefCard component. @@ -40,8 +55,18 @@ class CrossrefCard(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'CrossrefCard' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, crossrefEntry=Component.UNDEFINED, identifier=Component.UNDEFINED, errorMessage=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + crossrefEntry: typing.Optional[typing.Any] = None, + identifier: typing.Optional[str] = None, + errorMessage: typing.Optional[str] = None, + preventOpenAccessFetch: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch'] @@ -49,9 +74,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, crossr _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(CrossrefCard, self).__init__(**args) + +setattr(CrossrefCard, "__init__", _explicitize_args(CrossrefCard.__init__)) diff --git a/dash_mp_components/CrystalToolkitScene.py b/dash_mp_components/CrystalToolkitScene.py index 6a27a4c..f079d75 100644 --- a/dash_mp_components/CrystalToolkitScene.py +++ b/dash_mp_components/CrystalToolkitScene.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class CrystalToolkitScene(Component): """A CrystalToolkitScene component. @@ -131,8 +146,39 @@ class CrystalToolkitScene(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'CrystalToolkitScene' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, settings=Component.UNDEFINED, toggleVisibility=Component.UNDEFINED, imageRequest=Component.UNDEFINED, imageType=Component.UNDEFINED, imageData=Component.UNDEFINED, imageDataTimestamp=Component.UNDEFINED, fileOptions=Component.UNDEFINED, fileType=Component.UNDEFINED, fileTimestamp=Component.UNDEFINED, selectedObject=Component.UNDEFINED, sceneSize=Component.UNDEFINED, axisView=Component.UNDEFINED, inletSize=Component.UNDEFINED, inletPadding=Component.UNDEFINED, debug=Component.UNDEFINED, animation=Component.UNDEFINED, currentCameraState=Component.UNDEFINED, customCameraState=Component.UNDEFINED, showControls=Component.UNDEFINED, showExpandButton=Component.UNDEFINED, showImageButton=Component.UNDEFINED, showExportButton=Component.UNDEFINED, showPositionButton=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[typing.Any] = None, + data: typing.Optional[typing.Any] = None, + settings: typing.Optional[typing.Any] = None, + toggleVisibility: typing.Optional[typing.Any] = None, + imageRequest: typing.Optional[typing.Any] = None, + imageType: typing.Optional[typing.Any] = None, + imageData: typing.Optional[typing.Any] = None, + imageDataTimestamp: typing.Optional[typing.Any] = None, + fileOptions: typing.Optional[typing.Any] = None, + fileType: typing.Optional[typing.Any] = None, + fileTimestamp: typing.Optional[typing.Any] = None, + selectedObject: typing.Optional[typing.Any] = None, + sceneSize: typing.Optional[typing.Any] = None, + axisView: typing.Optional[typing.Any] = None, + inletSize: typing.Optional[typing.Any] = None, + inletPadding: typing.Optional[typing.Any] = None, + debug: typing.Optional[typing.Any] = None, + animation: typing.Optional[typing.Any] = None, + currentCameraState: typing.Optional[typing.Any] = None, + customCameraState: typing.Optional[typing.Any] = None, + showControls: typing.Optional[typing.Any] = None, + showExpandButton: typing.Optional[typing.Any] = None, + showImageButton: typing.Optional[typing.Any] = None, + showExportButton: typing.Optional[typing.Any] = None, + showPositionButton: typing.Optional[typing.Any] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility'] @@ -141,8 +187,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(CrystalToolkitScene, self).__init__(children=children, **args) + +setattr(CrystalToolkitScene, "__init__", _explicitize_args(CrystalToolkitScene.__init__)) diff --git a/dash_mp_components/DataBlock.py b/dash_mp_components/DataBlock.py index 23b3a4b..65027c5 100644 --- a/dash_mp_components/DataBlock.py +++ b/dash_mp_components/DataBlock.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DataBlock(Component): """A DataBlock component. @@ -48,8 +63,22 @@ class DataBlock(Component): _base_nodes = ['footer', 'children'] _namespace = 'dash_mp_components' _type = 'DataBlock' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, columns=Component.UNDEFINED, expanded=Component.UNDEFINED, footer=Component.UNDEFINED, iconClassName=Component.UNDEFINED, iconTooltip=Component.UNDEFINED, disableRichColumnHeaders=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + data: typing.Optional[dict] = None, + columns: typing.Optional[typing.Sequence] = None, + expanded: typing.Optional[bool] = None, + footer: typing.Optional[ComponentType] = None, + iconClassName: typing.Optional[str] = None, + iconTooltip: typing.Optional[str] = None, + disableRichColumnHeaders: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'columns', 'data', 'disableRichColumnHeaders', 'expanded', 'footer', 'iconClassName', 'iconTooltip'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'columns', 'data', 'disableRichColumnHeaders', 'expanded', 'footer', 'iconClassName', 'iconTooltip'] @@ -58,8 +87,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(DataBlock, self).__init__(children=children, **args) + +setattr(DataBlock, "__init__", _explicitize_args(DataBlock.__init__)) diff --git a/dash_mp_components/DataTable.py b/dash_mp_components/DataTable.py index 56cbfca..73b0e23 100644 --- a/dash_mp_components/DataTable.py +++ b/dash_mp_components/DataTable.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DataTable(Component): """A DataTable component. @@ -95,8 +110,32 @@ class DataTable(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DataTable' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, columns=Component.UNDEFINED, sortField=Component.UNDEFINED, sortAscending=Component.UNDEFINED, secondarySortField=Component.UNDEFINED, secondarySortAscending=Component.UNDEFINED, conditionalRowStyles=Component.UNDEFINED, selectableRows=Component.UNDEFINED, selectedRows=Component.UNDEFINED, singleSelectableRows=Component.UNDEFINED, hasHeader=Component.UNDEFINED, headerClassName=Component.UNDEFINED, resultLabel=Component.UNDEFINED, resultLabelPlural=Component.UNDEFINED, pagination=Component.UNDEFINED, paginationIsExpanded=Component.UNDEFINED, footer=Component.UNDEFINED, disableRichColumnHeaders=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + data: typing.Optional[typing.Sequence] = None, + columns: typing.Optional[typing.Sequence] = None, + sortField: typing.Optional[str] = None, + sortAscending: typing.Optional[bool] = None, + secondarySortField: typing.Optional[str] = None, + secondarySortAscending: typing.Optional[bool] = None, + conditionalRowStyles: typing.Optional[typing.Sequence] = None, + selectableRows: typing.Optional[bool] = None, + selectedRows: typing.Optional[typing.Any] = None, + singleSelectableRows: typing.Optional[bool] = None, + hasHeader: typing.Optional[bool] = None, + headerClassName: typing.Optional[str] = None, + resultLabel: typing.Optional[str] = None, + resultLabelPlural: typing.Optional[str] = None, + pagination: typing.Optional[bool] = None, + paginationIsExpanded: typing.Optional[bool] = None, + footer: typing.Optional[str] = None, + disableRichColumnHeaders: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'columns', 'conditionalRowStyles', 'data', 'disableRichColumnHeaders', 'footer', 'hasHeader', 'headerClassName', 'pagination', 'paginationIsExpanded', 'resultLabel', 'resultLabelPlural', 'secondarySortAscending', 'secondarySortField', 'selectableRows', 'selectedRows', 'singleSelectableRows', 'sortAscending', 'sortField'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'columns', 'conditionalRowStyles', 'data', 'disableRichColumnHeaders', 'footer', 'hasHeader', 'headerClassName', 'pagination', 'paginationIsExpanded', 'resultLabel', 'resultLabelPlural', 'secondarySortAscending', 'secondarySortField', 'selectableRows', 'selectedRows', 'singleSelectableRows', 'sortAscending', 'sortField'] @@ -104,9 +143,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, data=C _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(DataTable, self).__init__(**args) + +setattr(DataTable, "__init__", _explicitize_args(DataTable.__init__)) diff --git a/dash_mp_components/Download.py b/dash_mp_components/Download.py index c3ed214..0b55c47 100644 --- a/dash_mp_components/Download.py +++ b/dash_mp_components/Download.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Download(Component): """A Download component. @@ -36,8 +51,17 @@ class Download(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Download' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, data=Component.UNDEFINED, isBase64=Component.UNDEFINED, isDataURL=Component.UNDEFINED, mimeType=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + data: typing.Optional[typing.Any] = None, + isBase64: typing.Optional[typing.Any] = None, + isDataURL: typing.Optional[typing.Any] = None, + mimeType: typing.Optional[typing.Any] = None, + **kwargs + ): self._prop_names = ['id', 'data', 'isBase64', 'isDataURL', 'mimeType', 'setProps'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'data', 'isBase64', 'isDataURL', 'mimeType', 'setProps'] @@ -45,9 +69,8 @@ def __init__(self, id=Component.UNDEFINED, data=Component.UNDEFINED, isBase64=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(Download, self).__init__(**args) + +setattr(Download, "__init__", _explicitize_args(Download.__init__)) diff --git a/dash_mp_components/DownloadButton.py b/dash_mp_components/DownloadButton.py index 841e4ea..b13aced 100644 --- a/dash_mp_components/DownloadButton.py +++ b/dash_mp_components/DownloadButton.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DownloadButton(Component): """A DownloadButton component. @@ -37,8 +52,19 @@ class DownloadButton(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DownloadButton' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, filename=Component.UNDEFINED, filetype=Component.UNDEFINED, tooltip=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + data: typing.Optional[typing.Any] = None, + filename: typing.Optional[str] = None, + filetype: typing.Optional[Literal["json", "csv", "xlsx"]] = None, + tooltip: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'data', 'filename', 'filetype', 'tooltip'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'data', 'filename', 'filetype', 'tooltip'] @@ -47,8 +73,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(DownloadButton, self).__init__(children=children, **args) + +setattr(DownloadButton, "__init__", _explicitize_args(DownloadButton.__init__)) diff --git a/dash_mp_components/DownloadDropdown.py b/dash_mp_components/DownloadDropdown.py index acda4ab..7354f23 100644 --- a/dash_mp_components/DownloadDropdown.py +++ b/dash_mp_components/DownloadDropdown.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DownloadDropdown(Component): """A DownloadDropdown component. @@ -39,8 +54,19 @@ class \"button\" is already added by default. _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DownloadDropdown' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, buttonClassName=Component.UNDEFINED, data=Component.UNDEFINED, filename=Component.UNDEFINED, tooltip=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + buttonClassName: typing.Optional[str] = None, + data: typing.Optional[typing.Any] = None, + filename: typing.Optional[str] = None, + tooltip: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'buttonClassName', 'className', 'data', 'filename', 'tooltip'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'buttonClassName', 'className', 'data', 'filename', 'tooltip'] @@ -49,8 +75,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(DownloadDropdown, self).__init__(children=children, **args) + +setattr(DownloadDropdown, "__init__", _explicitize_args(DownloadDropdown.__init__)) diff --git a/dash_mp_components/Drawer.py b/dash_mp_components/Drawer.py index f089473..5975d05 100644 --- a/dash_mp_components/Drawer.py +++ b/dash_mp_components/Drawer.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Drawer(Component): """A Drawer component. @@ -22,8 +37,15 @@ class Drawer(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Drawer' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className'] @@ -32,8 +54,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Drawer, self).__init__(children=children, **args) + +setattr(Drawer, "__init__", _explicitize_args(Drawer.__init__)) diff --git a/dash_mp_components/DrawerContextProvider.py b/dash_mp_components/DrawerContextProvider.py index 1f26bfa..869982d 100644 --- a/dash_mp_components/DrawerContextProvider.py +++ b/dash_mp_components/DrawerContextProvider.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DrawerContextProvider(Component): """A DrawerContextProvider component. @@ -17,8 +32,13 @@ class DrawerContextProvider(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DrawerContextProvider' - @_explicitize_args - def __init__(self, children=None, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + **kwargs + ): self._prop_names = ['children'] self._valid_wildcard_attributes = [] self.available_properties = ['children'] @@ -27,8 +47,7 @@ def __init__(self, children=None, **kwargs): _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(DrawerContextProvider, self).__init__(children=children, **args) + +setattr(DrawerContextProvider, "__init__", _explicitize_args(DrawerContextProvider.__init__)) diff --git a/dash_mp_components/DrawerTrigger.py b/dash_mp_components/DrawerTrigger.py index 6bf3c72..2dd1305 100644 --- a/dash_mp_components/DrawerTrigger.py +++ b/dash_mp_components/DrawerTrigger.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DrawerTrigger(Component): """A DrawerTrigger component. @@ -25,8 +40,16 @@ class DrawerTrigger(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DrawerTrigger' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, forDrawerId=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + forDrawerId: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'forDrawerId'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'forDrawerId'] @@ -35,8 +58,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(DrawerTrigger, self).__init__(children=children, **args) + +setattr(DrawerTrigger, "__init__", _explicitize_args(DrawerTrigger.__init__)) diff --git a/dash_mp_components/Dropdown.py b/dash_mp_components/Dropdown.py index 8afcd92..c954cd9 100644 --- a/dash_mp_components/Dropdown.py +++ b/dash_mp_components/Dropdown.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Dropdown(Component): """A Dropdown component. @@ -56,8 +71,23 @@ class Dropdown(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Dropdown' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, triggerLabel=Component.UNDEFINED, triggerClassName=Component.UNDEFINED, triggerIcon=Component.UNDEFINED, items=Component.UNDEFINED, isArrowless=Component.UNDEFINED, isUp=Component.UNDEFINED, isRight=Component.UNDEFINED, closeOnSelection=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + triggerLabel: typing.Optional[str] = None, + triggerClassName: typing.Optional[str] = None, + triggerIcon: typing.Optional[str] = None, + items: typing.Optional[typing.Sequence[str]] = None, + isArrowless: typing.Optional[bool] = None, + isUp: typing.Optional[bool] = None, + isRight: typing.Optional[bool] = None, + closeOnSelection: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'closeOnSelection', 'isArrowless', 'isRight', 'isUp', 'items', 'triggerClassName', 'triggerIcon', 'triggerLabel'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'closeOnSelection', 'isArrowless', 'isRight', 'isUp', 'items', 'triggerClassName', 'triggerIcon', 'triggerLabel'] @@ -66,8 +96,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Dropdown, self).__init__(children=children, **args) + +setattr(Dropdown, "__init__", _explicitize_args(Dropdown.__init__)) diff --git a/dash_mp_components/DualRangeSlider.py b/dash_mp_components/DualRangeSlider.py index 964fc2e..c48b743 100644 --- a/dash_mp_components/DualRangeSlider.py +++ b/dash_mp_components/DualRangeSlider.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class DualRangeSlider(Component): """A DualRangeSlider component. @@ -32,8 +47,22 @@ class DualRangeSlider(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'DualRangeSlider' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, valueMin=Component.UNDEFINED, valueMax=Component.UNDEFINED, domain=Component.UNDEFINED, isLogScale=Component.UNDEFINED, step=Component.UNDEFINED, ticks=Component.UNDEFINED, inclusiveTickBounds=Component.UNDEFINED, debounce=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + valueMin: typing.Optional[NumberType] = None, + valueMax: typing.Optional[NumberType] = None, + domain: typing.Optional[typing.Sequence[NumberType]] = None, + isLogScale: typing.Optional[bool] = None, + step: typing.Optional[NumberType] = None, + ticks: typing.Optional[NumberType] = None, + inclusiveTickBounds: typing.Optional[bool] = None, + debounce: typing.Optional[NumberType] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'debounce', 'domain', 'inclusiveTickBounds', 'isLogScale', 'step', 'ticks', 'valueMax', 'valueMin'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'debounce', 'domain', 'inclusiveTickBounds', 'isLogScale', 'step', 'ticks', 'valueMax', 'valueMin'] @@ -41,9 +70,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, valueM _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(DualRangeSlider, self).__init__(**args) + +setattr(DualRangeSlider, "__init__", _explicitize_args(DualRangeSlider.__init__)) diff --git a/dash_mp_components/Enlargeable.py b/dash_mp_components/Enlargeable.py index 7b76a2c..0bd95d8 100644 --- a/dash_mp_components/Enlargeable.py +++ b/dash_mp_components/Enlargeable.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Enlargeable(Component): """An Enlargeable component. @@ -22,8 +37,15 @@ class Enlargeable(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Enlargeable' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className'] @@ -32,8 +54,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Enlargeable, self).__init__(children=children, **args) + +setattr(Enlargeable, "__init__", _explicitize_args(Enlargeable.__init__)) diff --git a/dash_mp_components/FilterField.py b/dash_mp_components/FilterField.py index 7e04369..ef5a6e2 100644 --- a/dash_mp_components/FilterField.py +++ b/dash_mp_components/FilterField.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class FilterField(Component): """A FilterField component. @@ -28,8 +43,20 @@ class FilterField(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'FilterField' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, label=Component.UNDEFINED, tooltip=Component.UNDEFINED, units=Component.UNDEFINED, dois=Component.UNDEFINED, active=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + label: typing.Optional[str] = None, + tooltip: typing.Optional[str] = None, + units: typing.Optional[str] = None, + dois: typing.Optional[typing.Sequence[str]] = None, + active: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'active', 'className', 'dois', 'label', 'tooltip', 'units'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'active', 'className', 'dois', 'label', 'tooltip', 'units'] @@ -38,8 +65,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(FilterField, self).__init__(children=children, **args) + +setattr(FilterField, "__init__", _explicitize_args(FilterField.__init__)) diff --git a/dash_mp_components/Formula.py b/dash_mp_components/Formula.py index 9c5a5f8..c6bce05 100644 --- a/dash_mp_components/Formula.py +++ b/dash_mp_components/Formula.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Formula(Component): """A Formula component. @@ -29,8 +44,15 @@ class Formula(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Formula' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'setProps'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'setProps'] @@ -39,8 +61,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Formula, self).__init__(children=children, **args) + +setattr(Formula, "__init__", _explicitize_args(Formula.__init__)) diff --git a/dash_mp_components/GlobalSearchBar.py b/dash_mp_components/GlobalSearchBar.py index 9624654..43d9a5a 100644 --- a/dash_mp_components/GlobalSearchBar.py +++ b/dash_mp_components/GlobalSearchBar.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class GlobalSearchBar(Component): """A GlobalSearchBar component. @@ -42,8 +57,18 @@ class GlobalSearchBar(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'GlobalSearchBar' - @_explicitize_args - def __init__(self, redirectRoute=Component.UNDEFINED, autocompleteFormulaUrl=Component.UNDEFINED, apiKey=Component.UNDEFINED, hidePeriodicTable=Component.UNDEFINED, tooltip=Component.UNDEFINED, placeholder=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + redirectRoute: typing.Optional[str] = None, + autocompleteFormulaUrl: typing.Optional[str] = None, + apiKey: typing.Optional[str] = None, + hidePeriodicTable: typing.Optional[bool] = None, + tooltip: typing.Optional[str] = None, + placeholder: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['apiKey', 'autocompleteFormulaUrl', 'hidePeriodicTable', 'placeholder', 'redirectRoute', 'tooltip'] self._valid_wildcard_attributes = [] self.available_properties = ['apiKey', 'autocompleteFormulaUrl', 'hidePeriodicTable', 'placeholder', 'redirectRoute', 'tooltip'] @@ -51,9 +76,8 @@ def __init__(self, redirectRoute=Component.UNDEFINED, autocompleteFormulaUrl=Com _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(GlobalSearchBar, self).__init__(**args) + +setattr(GlobalSearchBar, "__init__", _explicitize_args(GlobalSearchBar.__init__)) diff --git a/dash_mp_components/GraphComponent.py b/dash_mp_components/GraphComponent.py index d2ec977..4ffd236 100644 --- a/dash_mp_components/GraphComponent.py +++ b/dash_mp_components/GraphComponent.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class GraphComponent(Component): """A GraphComponent component. @@ -25,8 +40,15 @@ class GraphComponent(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'GraphComponent' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, graph=Component.UNDEFINED, options=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + graph: typing.Optional[typing.Any] = None, + options: typing.Optional[typing.Any] = None, + **kwargs + ): self._prop_names = ['id', 'graph', 'options', 'setProps'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'graph', 'options', 'setProps'] @@ -34,9 +56,8 @@ def __init__(self, id=Component.UNDEFINED, graph=Component.UNDEFINED, options=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(GraphComponent, self).__init__(**args) + +setattr(GraphComponent, "__init__", _explicitize_args(GraphComponent.__init__)) diff --git a/dash_mp_components/JsonView.py b/dash_mp_components/JsonView.py index 7b16288..6bdb5f7 100644 --- a/dash_mp_components/JsonView.py +++ b/dash_mp_components/JsonView.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class JsonView(Component): """A JsonView component. @@ -36,8 +51,6 @@ class JsonView(Component): - src (dict; optional) -- style (dict; optional) - - theme (string; optional) - validationMessage (string; optional)""" @@ -45,8 +58,28 @@ class JsonView(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'JsonView' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, src=Component.UNDEFINED, name=Component.UNDEFINED, theme=Component.UNDEFINED, style=Component.UNDEFINED, iconStyle=Component.UNDEFINED, indentWidth=Component.UNDEFINED, collapsed=Component.UNDEFINED, collapseStringsAfterLength=Component.UNDEFINED, groupArraysAfterLength=Component.UNDEFINED, enableClipboard=Component.UNDEFINED, displayObjectSize=Component.UNDEFINED, displayDataTypes=Component.UNDEFINED, defaultValue=Component.UNDEFINED, sortKeys=Component.UNDEFINED, validationMessage=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + src: typing.Optional[dict] = None, + name: typing.Optional[typing.Union[bool, str]] = None, + theme: typing.Optional[str] = None, + style: typing.Optional[typing.Any] = None, + iconStyle: typing.Optional[str] = None, + indentWidth: typing.Optional[NumberType] = None, + collapsed: typing.Optional[typing.Union[bool, NumberType]] = None, + collapseStringsAfterLength: typing.Optional[typing.Union[bool, NumberType]] = None, + groupArraysAfterLength: typing.Optional[NumberType] = None, + enableClipboard: typing.Optional[bool] = None, + displayObjectSize: typing.Optional[bool] = None, + displayDataTypes: typing.Optional[bool] = None, + defaultValue: typing.Optional[dict] = None, + sortKeys: typing.Optional[bool] = None, + validationMessage: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'collapseStringsAfterLength', 'collapsed', 'defaultValue', 'displayDataTypes', 'displayObjectSize', 'enableClipboard', 'groupArraysAfterLength', 'iconStyle', 'indentWidth', 'name', 'sortKeys', 'src', 'style', 'theme', 'validationMessage'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'collapseStringsAfterLength', 'collapsed', 'defaultValue', 'displayDataTypes', 'displayObjectSize', 'enableClipboard', 'groupArraysAfterLength', 'iconStyle', 'indentWidth', 'name', 'sortKeys', 'src', 'style', 'theme', 'validationMessage'] @@ -54,9 +87,8 @@ def __init__(self, id=Component.UNDEFINED, src=Component.UNDEFINED, name=Compone _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(JsonView, self).__init__(**args) + +setattr(JsonView, "__init__", _explicitize_args(JsonView.__init__)) diff --git a/dash_mp_components/Link.py b/dash_mp_components/Link.py index eccbe61..091be26 100644 --- a/dash_mp_components/Link.py +++ b/dash_mp_components/Link.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Link(Component): """A Link component. @@ -31,15 +46,15 @@ class Link(Component): `loading_state` is a dict with keys: - - component_name (string; optional): - Holds the name of the component that is loading. - - is_loading (boolean; optional): Determines if the component is loading or not. - prop_name (string; optional): Holds which property is loading. + - component_name (string; optional): + Holds the name of the component that is loading. + - preserveQuery (boolean; optional): If True, the current query parameters will not be removed from the url when following the link. @@ -48,9 +63,6 @@ class Link(Component): Controls whether or not the page will refresh when the link is clicked. -- style (dict; optional): - Defines CSS styles which will override styles previously set. - - target (string; optional): Specifies where to open the link reference. @@ -61,8 +73,30 @@ class Link(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Link' - @_explicitize_args - def __init__(self, children=None, href=Component.REQUIRED, target=Component.UNDEFINED, refresh=Component.UNDEFINED, title=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, id=Component.UNDEFINED, loading_state=Component.UNDEFINED, preserveQuery=Component.UNDEFINED, **kwargs): + LoadingState = TypedDict( + "LoadingState", + { + "is_loading": NotRequired[bool], + "prop_name": NotRequired[str], + "component_name": NotRequired[str] + } + ) + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + href: typing.Optional[str] = None, + target: typing.Optional[str] = None, + refresh: typing.Optional[bool] = None, + title: typing.Optional[str] = None, + className: typing.Optional[str] = None, + style: typing.Optional[typing.Any] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + loading_state: typing.Optional["LoadingState"] = None, + preserveQuery: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'href', 'loading_state', 'preserveQuery', 'refresh', 'style', 'target', 'title'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'href', 'loading_state', 'preserveQuery', 'refresh', 'style', 'target', 'title'] @@ -71,8 +105,12 @@ def __init__(self, children=None, href=Component.REQUIRED, target=Component.UNDE _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} + for k in ['href']: if k not in args: raise TypeError( 'Required argument `' + k + '` was not specified.') + super(Link, self).__init__(children=children, **args) + +setattr(Link, "__init__", _explicitize_args(Link.__init__)) diff --git a/dash_mp_components/Markdown.py b/dash_mp_components/Markdown.py index 89b82d3..6102203 100644 --- a/dash_mp_components/Markdown.py +++ b/dash_mp_components/Markdown.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Markdown(Component): """A Markdown component. @@ -40,23 +55,38 @@ class Markdown(Component): `loading_state` is a dict with keys: - - component_name (string; optional): - Holds the name of the component that is loading. - - is_loading (boolean; optional): Determines if the component is loading or not. - prop_name (string; optional): Holds which property is loading. -- style (dict; optional): - User-defined inline styles for the rendered Markdown.""" + - component_name (string; optional): + Holds the name of the component that is loading.""" _children_props = [] _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Markdown' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, dedent=Component.UNDEFINED, loading_state=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs): + LoadingState = TypedDict( + "LoadingState", + { + "is_loading": NotRequired[bool], + "prop_name": NotRequired[str], + "component_name": NotRequired[str] + } + ) + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + dedent: typing.Optional[bool] = None, + loading_state: typing.Optional["LoadingState"] = None, + style: typing.Optional[typing.Any] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'dedent', 'loading_state', 'style'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'dedent', 'loading_state', 'style'] @@ -65,8 +95,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Markdown, self).__init__(children=children, **args) + +setattr(Markdown, "__init__", _explicitize_args(Markdown.__init__)) diff --git a/dash_mp_components/MatSidebar.py b/dash_mp_components/MatSidebar.py index dc9aa03..5157d87 100644 --- a/dash_mp_components/MatSidebar.py +++ b/dash_mp_components/MatSidebar.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class MatSidebar(Component): """A MatSidebar component. @@ -24,8 +39,16 @@ class MatSidebar(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'MatSidebar' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, currentApp=Component.UNDEFINED, appId=Component.UNDEFINED, layout=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + currentApp: typing.Optional[str] = None, + appId: typing.Optional[str] = None, + layout: typing.Optional[Literal["vertical", "horizontal"]] = None, + **kwargs + ): self._prop_names = ['id', 'appId', 'currentApp', 'layout'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'appId', 'currentApp', 'layout'] @@ -33,9 +56,8 @@ def __init__(self, id=Component.UNDEFINED, currentApp=Component.UNDEFINED, appId _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(MatSidebar, self).__init__(**args) + +setattr(MatSidebar, "__init__", _explicitize_args(MatSidebar.__init__)) diff --git a/dash_mp_components/MaterialsInput.py b/dash_mp_components/MaterialsInput.py index 75396b5..71d17e7 100644 --- a/dash_mp_components/MaterialsInput.py +++ b/dash_mp_components/MaterialsInput.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class MaterialsInput(Component): """A MaterialsInput component. @@ -67,8 +82,37 @@ class MaterialsInput(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'MaterialsInput' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, inputClassName=Component.UNDEFINED, value=Component.UNDEFINED, type=Component.UNDEFINED, allowedInputTypes=Component.UNDEFINED, showTypeDropdown=Component.UNDEFINED, placeholder=Component.UNDEFINED, errorMessage=Component.UNDEFINED, debounce=Component.UNDEFINED, periodicTableMode=Component.UNDEFINED, hidePeriodicTable=Component.UNDEFINED, autocompleteFormulaUrl=Component.UNDEFINED, autocompleteApiKey=Component.UNDEFINED, tooltip=Component.UNDEFINED, helpItems=Component.UNDEFINED, showSubmitButton=Component.UNDEFINED, submitButtonClicks=Component.UNDEFINED, submitButtonText=Component.UNDEFINED, label=Component.UNDEFINED, hideWildcardButton=Component.UNDEFINED, chemicalSystemSelectHelpText=Component.UNDEFINED, elementsSelectHelpText=Component.UNDEFINED, maxElementSelectable=Component.UNDEFINED, loading=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + inputClassName: typing.Optional[str] = None, + value: typing.Optional[str] = None, + type: typing.Optional[Literal["elements", "chemical_system", "formula", "mpid", "smiles", "text", "molecule_formula"]] = None, + allowedInputTypes: typing.Optional[typing.Sequence] = None, + showTypeDropdown: typing.Optional[bool] = None, + placeholder: typing.Optional[str] = None, + errorMessage: typing.Optional[str] = None, + debounce: typing.Optional[NumberType] = None, + periodicTableMode: typing.Optional[Literal["toggle", "focus", "none"]] = None, + hidePeriodicTable: typing.Optional[bool] = None, + autocompleteFormulaUrl: typing.Optional[str] = None, + autocompleteApiKey: typing.Optional[str] = None, + tooltip: typing.Optional[str] = None, + helpItems: typing.Optional[typing.Sequence] = None, + showSubmitButton: typing.Optional[bool] = None, + submitButtonClicks: typing.Optional[NumberType] = None, + submitButtonText: typing.Optional[str] = None, + label: typing.Optional[str] = None, + hideWildcardButton: typing.Optional[bool] = None, + chemicalSystemSelectHelpText: typing.Optional[str] = None, + elementsSelectHelpText: typing.Optional[str] = None, + maxElementSelectable: typing.Optional[NumberType] = None, + loading: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'allowedInputTypes', 'autocompleteApiKey', 'autocompleteFormulaUrl', 'chemicalSystemSelectHelpText', 'className', 'debounce', 'elementsSelectHelpText', 'errorMessage', 'helpItems', 'hidePeriodicTable', 'hideWildcardButton', 'inputClassName', 'label', 'loading', 'maxElementSelectable', 'periodicTableMode', 'placeholder', 'showSubmitButton', 'showTypeDropdown', 'submitButtonClicks', 'submitButtonText', 'tooltip', 'type', 'value'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'allowedInputTypes', 'autocompleteApiKey', 'autocompleteFormulaUrl', 'chemicalSystemSelectHelpText', 'className', 'debounce', 'elementsSelectHelpText', 'errorMessage', 'helpItems', 'hidePeriodicTable', 'hideWildcardButton', 'inputClassName', 'label', 'loading', 'maxElementSelectable', 'periodicTableMode', 'placeholder', 'showSubmitButton', 'showTypeDropdown', 'submitButtonClicks', 'submitButtonText', 'tooltip', 'type', 'value'] @@ -76,9 +120,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, inputC _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(MaterialsInput, self).__init__(**args) + +setattr(MaterialsInput, "__init__", _explicitize_args(MaterialsInput.__init__)) diff --git a/dash_mp_components/Modal.py b/dash_mp_components/Modal.py index ce6eaed..6f2762a 100644 --- a/dash_mp_components/Modal.py +++ b/dash_mp_components/Modal.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Modal(Component): """A Modal component. @@ -22,8 +37,15 @@ class Modal(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Modal' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className'] @@ -32,8 +54,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Modal, self).__init__(children=children, **args) + +setattr(Modal, "__init__", _explicitize_args(Modal.__init__)) diff --git a/dash_mp_components/ModalContextProvider.py b/dash_mp_components/ModalContextProvider.py index 8acddff..30416cf 100644 --- a/dash_mp_components/ModalContextProvider.py +++ b/dash_mp_components/ModalContextProvider.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class ModalContextProvider(Component): """A ModalContextProvider component. @@ -33,8 +48,17 @@ class ModalContextProvider(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'ModalContextProvider' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, active=Component.UNDEFINED, forceAction=Component.UNDEFINED, isDrawer=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + active: typing.Optional[bool] = None, + forceAction: typing.Optional[bool] = None, + isDrawer: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'active', 'forceAction', 'isDrawer'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'active', 'forceAction', 'isDrawer'] @@ -43,8 +67,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, active=Component.UNDEF _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(ModalContextProvider, self).__init__(children=children, **args) + +setattr(ModalContextProvider, "__init__", _explicitize_args(ModalContextProvider.__init__)) diff --git a/dash_mp_components/ModalTrigger.py b/dash_mp_components/ModalTrigger.py index b5e4b76..048d916 100644 --- a/dash_mp_components/ModalTrigger.py +++ b/dash_mp_components/ModalTrigger.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class ModalTrigger(Component): """A ModalTrigger component. @@ -22,8 +37,15 @@ class ModalTrigger(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'ModalTrigger' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className'] @@ -32,8 +54,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(ModalTrigger, self).__init__(children=children, **args) + +setattr(ModalTrigger, "__init__", _explicitize_args(ModalTrigger.__init__)) diff --git a/dash_mp_components/Navbar.py b/dash_mp_components/Navbar.py index 0ebecc0..af88ffc 100644 --- a/dash_mp_components/Navbar.py +++ b/dash_mp_components/Navbar.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Navbar(Component): """A Navbar component. @@ -61,8 +76,17 @@ class to the navbar-dropdown isArrowless: boolean (Set to True _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Navbar' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, items=Component.UNDEFINED, brandItem=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + items: typing.Optional[typing.Sequence] = None, + brandItem: typing.Optional[dict] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'brandItem', 'className', 'items'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'brandItem', 'className', 'items'] @@ -71,8 +95,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Navbar, self).__init__(children=children, **args) + +setattr(Navbar, "__init__", _explicitize_args(Navbar.__init__)) diff --git a/dash_mp_components/NavbarDropdown.py b/dash_mp_components/NavbarDropdown.py index 5dedc8d..76d1239 100644 --- a/dash_mp_components/NavbarDropdown.py +++ b/dash_mp_components/NavbarDropdown.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class NavbarDropdown(Component): """A NavbarDropdown component. @@ -50,8 +65,17 @@ class NavbarDropdown(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'NavbarDropdown' - @_explicitize_args - def __init__(self, children=None, className=Component.UNDEFINED, isArrowless=Component.UNDEFINED, isRight=Component.UNDEFINED, items=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + className: typing.Optional[str] = None, + isArrowless: typing.Optional[bool] = None, + isRight: typing.Optional[bool] = None, + items: typing.Optional[typing.Sequence] = None, + **kwargs + ): self._prop_names = ['children', 'className', 'isArrowless', 'isRight', 'items'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'className', 'isArrowless', 'isRight', 'items'] @@ -60,8 +84,7 @@ def __init__(self, children=None, className=Component.UNDEFINED, isArrowless=Com _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(NavbarDropdown, self).__init__(children=children, **args) + +setattr(NavbarDropdown, "__init__", _explicitize_args(NavbarDropdown.__init__)) diff --git a/dash_mp_components/NotificationDropdown.py b/dash_mp_components/NotificationDropdown.py index 96ca8e2..4d4c843 100644 --- a/dash_mp_components/NotificationDropdown.py +++ b/dash_mp_components/NotificationDropdown.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class NotificationDropdown(Component): """A NotificationDropdown component. @@ -30,8 +45,21 @@ class NotificationDropdown(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'NotificationDropdown' - @_explicitize_args - def __init__(self, children=None, className=Component.UNDEFINED, items=Component.UNDEFINED, isRight=Component.UNDEFINED, isModal=Component.UNDEFINED, isHidden=Component.UNDEFINED, hasUnread=Component.UNDEFINED, id=Component.UNDEFINED, link=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + className: typing.Optional[str] = None, + items: typing.Optional[typing.Sequence] = None, + isRight: typing.Optional[bool] = None, + isModal: typing.Optional[bool] = None, + isHidden: typing.Optional[bool] = None, + hasUnread: typing.Optional[bool] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + link: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'className', 'hasUnread', 'isHidden', 'isModal', 'isRight', 'items', 'link'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'className', 'hasUnread', 'isHidden', 'isModal', 'isRight', 'items', 'link'] @@ -40,8 +68,7 @@ def __init__(self, children=None, className=Component.UNDEFINED, items=Component _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(NotificationDropdown, self).__init__(children=children, **args) + +setattr(NotificationDropdown, "__init__", _explicitize_args(NotificationDropdown.__init__)) diff --git a/dash_mp_components/OpenAccessButton.py b/dash_mp_components/OpenAccessButton.py index 599d645..b0b1dbe 100644 --- a/dash_mp_components/OpenAccessButton.py +++ b/dash_mp_components/OpenAccessButton.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class OpenAccessButton(Component): """An OpenAccessButton component. @@ -51,8 +66,19 @@ class OpenAccessButton(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'OpenAccessButton' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, doi=Component.UNDEFINED, className=Component.UNDEFINED, url=Component.UNDEFINED, target=Component.UNDEFINED, compact=Component.UNDEFINED, showTooltip=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + doi: typing.Optional[str] = None, + className: typing.Optional[str] = None, + url: typing.Optional[str] = None, + target: typing.Optional[str] = None, + compact: typing.Optional[bool] = None, + showTooltip: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'compact', 'doi', 'showTooltip', 'target', 'url'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'compact', 'doi', 'showTooltip', 'target', 'url'] @@ -60,9 +86,8 @@ def __init__(self, id=Component.UNDEFINED, doi=Component.UNDEFINED, className=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(OpenAccessButton, self).__init__(**args) + +setattr(OpenAccessButton, "__init__", _explicitize_args(OpenAccessButton.__init__)) diff --git a/dash_mp_components/PeriodicContext.py b/dash_mp_components/PeriodicContext.py index 46a01b5..a13507c 100644 --- a/dash_mp_components/PeriodicContext.py +++ b/dash_mp_components/PeriodicContext.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PeriodicContext(Component): """A PeriodicContext component. @@ -28,8 +43,18 @@ class PeriodicContext(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PeriodicContext' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, disabledElements=Component.UNDEFINED, enabledElements=Component.UNDEFINED, hiddenElements=Component.UNDEFINED, forwardOuterChange=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + disabledElements: typing.Optional[typing.Sequence] = None, + enabledElements: typing.Optional[typing.Sequence] = None, + hiddenElements: typing.Optional[typing.Sequence] = None, + forwardOuterChange: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'disabledElements', 'enabledElements', 'forwardOuterChange', 'hiddenElements'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'disabledElements', 'enabledElements', 'forwardOuterChange', 'hiddenElements'] @@ -38,8 +63,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, disabledElements=Compo _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(PeriodicContext, self).__init__(children=children, **args) + +setattr(PeriodicContext, "__init__", _explicitize_args(PeriodicContext.__init__)) diff --git a/dash_mp_components/PeriodicContextTable.py b/dash_mp_components/PeriodicContextTable.py index dfbc8f4..dd864d7 100644 --- a/dash_mp_components/PeriodicContextTable.py +++ b/dash_mp_components/PeriodicContextTable.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PeriodicContextTable(Component): """A PeriodicContextTable component. @@ -37,8 +52,21 @@ class PeriodicContextTable(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PeriodicContextTable' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, disabledElements=Component.UNDEFINED, enabledElements=Component.UNDEFINED, hiddenElements=Component.UNDEFINED, forwardOuterChange=Component.UNDEFINED, forceTableLayout=Component.UNDEFINED, maxElementSelectable=Component.UNDEFINED, state=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + disabledElements: typing.Optional[typing.Sequence] = None, + enabledElements: typing.Optional[typing.Sequence] = None, + hiddenElements: typing.Optional[typing.Sequence] = None, + forwardOuterChange: typing.Optional[bool] = None, + forceTableLayout: typing.Optional[str] = None, + maxElementSelectable: typing.Optional[NumberType] = None, + state: typing.Optional[dict] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'disabledElements', 'enabledElements', 'forceTableLayout', 'forwardOuterChange', 'hiddenElements', 'maxElementSelectable', 'state'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'disabledElements', 'enabledElements', 'forceTableLayout', 'forwardOuterChange', 'hiddenElements', 'maxElementSelectable', 'state'] @@ -47,8 +75,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, disabledElements=Compo _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(PeriodicContextTable, self).__init__(children=children, **args) + +setattr(PeriodicContextTable, "__init__", _explicitize_args(PeriodicContextTable.__init__)) diff --git a/dash_mp_components/PeriodicElement.py b/dash_mp_components/PeriodicElement.py index 68befe4..f6a2e80 100644 --- a/dash_mp_components/PeriodicElement.py +++ b/dash_mp_components/PeriodicElement.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PeriodicElement(Component): """A PeriodicElement component. @@ -18,8 +33,15 @@ class PeriodicElement(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PeriodicElement' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, size=Component.UNDEFINED, element=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + size: typing.Optional[NumberType] = None, + element: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'element', 'size'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'element', 'size'] @@ -27,9 +49,8 @@ def __init__(self, id=Component.UNDEFINED, size=Component.UNDEFINED, element=Com _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(PeriodicElement, self).__init__(**args) + +setattr(PeriodicElement, "__init__", _explicitize_args(PeriodicElement.__init__)) diff --git a/dash_mp_components/PeriodicFilter.py b/dash_mp_components/PeriodicFilter.py index 418bb3e..2fc7f4b 100644 --- a/dash_mp_components/PeriodicFilter.py +++ b/dash_mp_components/PeriodicFilter.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PeriodicFilter(Component): """A PeriodicFilter component. @@ -14,8 +29,13 @@ class PeriodicFilter(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PeriodicFilter' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + **kwargs + ): self._prop_names = ['id'] self._valid_wildcard_attributes = [] self.available_properties = ['id'] @@ -23,9 +43,8 @@ def __init__(self, id=Component.UNDEFINED, **kwargs): _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(PeriodicFilter, self).__init__(**args) + +setattr(PeriodicFilter, "__init__", _explicitize_args(PeriodicFilter.__init__)) diff --git a/dash_mp_components/PeriodicTableInput.py b/dash_mp_components/PeriodicTableInput.py index a270700..39b378f 100644 --- a/dash_mp_components/PeriodicTableInput.py +++ b/dash_mp_components/PeriodicTableInput.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PeriodicTableInput(Component): """A PeriodicTableInput component. @@ -25,8 +40,16 @@ class PeriodicTableInput(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PeriodicTableInput' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, state=Component.UNDEFINED, maxElementSelectable=Component.UNDEFINED, forceTableLayout=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + state: typing.Optional[dict] = None, + maxElementSelectable: typing.Optional[NumberType] = None, + forceTableLayout: typing.Optional[Literal["spaced", "compact", "small", "map"]] = None, + **kwargs + ): self._prop_names = ['id', 'forceTableLayout', 'maxElementSelectable', 'state'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'forceTableLayout', 'maxElementSelectable', 'state'] @@ -34,9 +57,8 @@ def __init__(self, id=Component.UNDEFINED, state=Component.UNDEFINED, maxElement _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(PeriodicTableInput, self).__init__(**args) + +setattr(PeriodicTableInput, "__init__", _explicitize_args(PeriodicTableInput.__init__)) diff --git a/dash_mp_components/PublicationButton.py b/dash_mp_components/PublicationButton.py index 8a98608..a8c2490 100644 --- a/dash_mp_components/PublicationButton.py +++ b/dash_mp_components/PublicationButton.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class PublicationButton(Component): """A PublicationButton component. @@ -51,8 +66,19 @@ class PublicationButton(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'PublicationButton' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, doi=Component.UNDEFINED, className=Component.UNDEFINED, url=Component.UNDEFINED, target=Component.UNDEFINED, compact=Component.UNDEFINED, showTooltip=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + doi: typing.Optional[str] = None, + className: typing.Optional[str] = None, + url: typing.Optional[str] = None, + target: typing.Optional[str] = None, + compact: typing.Optional[bool] = None, + showTooltip: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'compact', 'doi', 'showTooltip', 'target', 'url'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'compact', 'doi', 'showTooltip', 'target', 'url'] @@ -60,9 +86,8 @@ def __init__(self, id=Component.UNDEFINED, doi=Component.UNDEFINED, className=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(PublicationButton, self).__init__(**args) + +setattr(PublicationButton, "__init__", _explicitize_args(PublicationButton.__init__)) diff --git a/dash_mp_components/RangeSlider.py b/dash_mp_components/RangeSlider.py index adc3754..0a6a0c3 100644 --- a/dash_mp_components/RangeSlider.py +++ b/dash_mp_components/RangeSlider.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class RangeSlider(Component): """A RangeSlider component. @@ -30,8 +45,21 @@ class RangeSlider(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'RangeSlider' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, value=Component.UNDEFINED, domain=Component.UNDEFINED, isLogScale=Component.UNDEFINED, step=Component.UNDEFINED, ticks=Component.UNDEFINED, inclusiveTickBounds=Component.UNDEFINED, debounce=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + value: typing.Optional[typing.Union[NumberType, str]] = None, + domain: typing.Optional[typing.Sequence[NumberType]] = None, + isLogScale: typing.Optional[bool] = None, + step: typing.Optional[NumberType] = None, + ticks: typing.Optional[NumberType] = None, + inclusiveTickBounds: typing.Optional[bool] = None, + debounce: typing.Optional[NumberType] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'debounce', 'domain', 'inclusiveTickBounds', 'isLogScale', 'step', 'ticks', 'value'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'debounce', 'domain', 'inclusiveTickBounds', 'isLogScale', 'step', 'ticks', 'value'] @@ -39,9 +67,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, value= _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(RangeSlider, self).__init__(**args) + +setattr(RangeSlider, "__init__", _explicitize_args(RangeSlider.__init__)) diff --git a/dash_mp_components/Scrollspy.py b/dash_mp_components/Scrollspy.py index 9b89eab..8bf6eb1 100644 --- a/dash_mp_components/Scrollspy.py +++ b/dash_mp_components/Scrollspy.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Scrollspy(Component): """A Scrollspy component. @@ -45,8 +60,19 @@ class Scrollspy(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Scrollspy' - @_explicitize_args - def __init__(self, menuGroups=Component.UNDEFINED, activeClassName=Component.UNDEFINED, menuClassName=Component.UNDEFINED, menuGroupLabelClassName=Component.UNDEFINED, menuItemContainerClassName=Component.UNDEFINED, menuItemClassName=Component.UNDEFINED, offset=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + menuGroups: typing.Optional[typing.Sequence] = None, + activeClassName: typing.Optional[str] = None, + menuClassName: typing.Optional[str] = None, + menuGroupLabelClassName: typing.Optional[str] = None, + menuItemContainerClassName: typing.Optional[str] = None, + menuItemClassName: typing.Optional[str] = None, + offset: typing.Optional[NumberType] = None, + **kwargs + ): self._prop_names = ['activeClassName', 'menuClassName', 'menuGroupLabelClassName', 'menuGroups', 'menuItemClassName', 'menuItemContainerClassName', 'offset'] self._valid_wildcard_attributes = [] self.available_properties = ['activeClassName', 'menuClassName', 'menuGroupLabelClassName', 'menuGroups', 'menuItemClassName', 'menuItemContainerClassName', 'offset'] @@ -54,9 +80,8 @@ def __init__(self, menuGroups=Component.UNDEFINED, activeClassName=Component.UND _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(Scrollspy, self).__init__(**args) + +setattr(Scrollspy, "__init__", _explicitize_args(Scrollspy.__init__)) diff --git a/dash_mp_components/SearchUIContainer.py b/dash_mp_components/SearchUIContainer.py index 6b0140a..8434ee6 100644 --- a/dash_mp_components/SearchUIContainer.py +++ b/dash_mp_components/SearchUIContainer.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUIContainer(Component): """A SearchUIContainer component. @@ -61,8 +76,35 @@ class SearchUIContainer(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'SearchUIContainer' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, columns=Component.UNDEFINED, filterGroups=Component.UNDEFINED, apiEndpoint=Component.UNDEFINED, apiEndpointParams=Component.UNDEFINED, autocompleteFormulaUrl=Component.UNDEFINED, apiKey=Component.UNDEFINED, resultLabel=Component.UNDEFINED, hasSortMenu=Component.UNDEFINED, sortFields=Component.UNDEFINED, sortKey=Component.UNDEFINED, skipKey=Component.UNDEFINED, limitKey=Component.UNDEFINED, totalKey=Component.UNDEFINED, fieldsKey=Component.UNDEFINED, conditionalRowStyles=Component.UNDEFINED, selectableRows=Component.UNDEFINED, selectedRows=Component.UNDEFINED, view=Component.UNDEFINED, disableRichColumnHeaders=Component.UNDEFINED, results=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + columns: typing.Optional[typing.Sequence] = None, + filterGroups: typing.Optional[typing.Sequence] = None, + apiEndpoint: typing.Optional[str] = None, + apiEndpointParams: typing.Optional[dict] = None, + autocompleteFormulaUrl: typing.Optional[str] = None, + apiKey: typing.Optional[str] = None, + resultLabel: typing.Optional[str] = None, + hasSortMenu: typing.Optional[bool] = None, + sortFields: typing.Optional[typing.Sequence[str]] = None, + sortKey: typing.Optional[str] = None, + skipKey: typing.Optional[str] = None, + limitKey: typing.Optional[str] = None, + totalKey: typing.Optional[str] = None, + fieldsKey: typing.Optional[str] = None, + conditionalRowStyles: typing.Optional[typing.Sequence] = None, + selectableRows: typing.Optional[bool] = None, + selectedRows: typing.Optional[typing.Sequence] = None, + view: typing.Optional[Literal["table", "synthesis"]] = None, + disableRichColumnHeaders: typing.Optional[bool] = None, + results: typing.Optional[typing.Sequence] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'apiEndpoint', 'apiEndpointParams', 'apiKey', 'autocompleteFormulaUrl', 'className', 'columns', 'conditionalRowStyles', 'disableRichColumnHeaders', 'fieldsKey', 'filterGroups', 'hasSortMenu', 'limitKey', 'resultLabel', 'results', 'selectableRows', 'selectedRows', 'skipKey', 'sortFields', 'sortKey', 'totalKey', 'view'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'apiEndpoint', 'apiEndpointParams', 'apiKey', 'autocompleteFormulaUrl', 'className', 'columns', 'conditionalRowStyles', 'disableRichColumnHeaders', 'fieldsKey', 'filterGroups', 'hasSortMenu', 'limitKey', 'resultLabel', 'results', 'selectableRows', 'selectedRows', 'skipKey', 'sortFields', 'sortKey', 'totalKey', 'view'] @@ -71,8 +113,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(SearchUIContainer, self).__init__(children=children, **args) + +setattr(SearchUIContainer, "__init__", _explicitize_args(SearchUIContainer.__init__)) diff --git a/dash_mp_components/SearchUIDataHeader.py b/dash_mp_components/SearchUIDataHeader.py index 3c21ecc..888605e 100644 --- a/dash_mp_components/SearchUIDataHeader.py +++ b/dash_mp_components/SearchUIDataHeader.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUIDataHeader(Component): """A SearchUIDataHeader component. @@ -16,8 +31,14 @@ class SearchUIDataHeader(Component): _base_nodes = ['exportDataButton', 'children'] _namespace = 'dash_mp_components' _type = 'SearchUIDataHeader' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + exportDataButton: typing.Optional[ComponentType] = None, + **kwargs + ): self._prop_names = ['id', 'exportDataButton'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'exportDataButton'] @@ -25,9 +46,8 @@ def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SearchUIDataHeader, self).__init__(**args) + +setattr(SearchUIDataHeader, "__init__", _explicitize_args(SearchUIDataHeader.__init__)) diff --git a/dash_mp_components/SearchUIDataView.py b/dash_mp_components/SearchUIDataView.py index 57177d3..09fc372 100644 --- a/dash_mp_components/SearchUIDataView.py +++ b/dash_mp_components/SearchUIDataView.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUIDataView(Component): """A SearchUIDataView component. @@ -15,8 +30,13 @@ class SearchUIDataView(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'SearchUIDataView' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + **kwargs + ): self._prop_names = ['id'] self._valid_wildcard_attributes = [] self.available_properties = ['id'] @@ -24,9 +44,8 @@ def __init__(self, id=Component.UNDEFINED, **kwargs): _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SearchUIDataView, self).__init__(**args) + +setattr(SearchUIDataView, "__init__", _explicitize_args(SearchUIDataView.__init__)) diff --git a/dash_mp_components/SearchUIFilters.py b/dash_mp_components/SearchUIFilters.py index 7b064e8..b936b04 100644 --- a/dash_mp_components/SearchUIFilters.py +++ b/dash_mp_components/SearchUIFilters.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUIFilters(Component): """A SearchUIFilters component. @@ -14,8 +29,13 @@ class SearchUIFilters(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'SearchUIFilters' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + **kwargs + ): self._prop_names = ['id'] self._valid_wildcard_attributes = [] self.available_properties = ['id'] @@ -23,9 +43,8 @@ def __init__(self, id=Component.UNDEFINED, **kwargs): _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SearchUIFilters, self).__init__(**args) + +setattr(SearchUIFilters, "__init__", _explicitize_args(SearchUIFilters.__init__)) diff --git a/dash_mp_components/SearchUIGrid.py b/dash_mp_components/SearchUIGrid.py index 3462e71..d41738d 100644 --- a/dash_mp_components/SearchUIGrid.py +++ b/dash_mp_components/SearchUIGrid.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUIGrid(Component): """A SearchUIGrid component. @@ -18,8 +33,14 @@ class SearchUIGrid(Component): _base_nodes = ['exportDataButton', 'children'] _namespace = 'dash_mp_components' _type = 'SearchUIGrid' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + exportDataButton: typing.Optional[ComponentType] = None, + **kwargs + ): self._prop_names = ['id', 'exportDataButton'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'exportDataButton'] @@ -27,9 +48,8 @@ def __init__(self, id=Component.UNDEFINED, exportDataButton=Component.UNDEFINED, _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SearchUIGrid, self).__init__(**args) + +setattr(SearchUIGrid, "__init__", _explicitize_args(SearchUIGrid.__init__)) diff --git a/dash_mp_components/SearchUISearchBar.py b/dash_mp_components/SearchUISearchBar.py index f9eb106..0cea6a0 100644 --- a/dash_mp_components/SearchUISearchBar.py +++ b/dash_mp_components/SearchUISearchBar.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SearchUISearchBar(Component): """A SearchUISearchBar component. @@ -30,8 +45,21 @@ class SearchUISearchBar(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'SearchUISearchBar' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, placeholder=Component.UNDEFINED, errorMessage=Component.UNDEFINED, allowedInputTypesMap=Component.UNDEFINED, periodicTableMode=Component.UNDEFINED, helpItems=Component.UNDEFINED, chemicalSystemSelectHelpText=Component.UNDEFINED, elementsSelectHelpText=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + placeholder: typing.Optional[str] = None, + errorMessage: typing.Optional[str] = None, + allowedInputTypesMap: typing.Optional[dict] = None, + periodicTableMode: typing.Optional[Literal["toggle", "focus", "none"]] = None, + helpItems: typing.Optional[typing.Sequence] = None, + chemicalSystemSelectHelpText: typing.Optional[str] = None, + elementsSelectHelpText: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'allowedInputTypesMap', 'chemicalSystemSelectHelpText', 'className', 'elementsSelectHelpText', 'errorMessage', 'helpItems', 'periodicTableMode', 'placeholder'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'allowedInputTypesMap', 'chemicalSystemSelectHelpText', 'className', 'elementsSelectHelpText', 'errorMessage', 'helpItems', 'periodicTableMode', 'placeholder'] @@ -39,9 +67,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, placeh _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SearchUISearchBar, self).__init__(**args) + +setattr(SearchUISearchBar, "__init__", _explicitize_args(SearchUISearchBar.__init__)) diff --git a/dash_mp_components/Select.py b/dash_mp_components/Select.py index 9c033f9..7982da3 100644 --- a/dash_mp_components/Select.py +++ b/dash_mp_components/Select.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Select(Component): """A Select component. @@ -49,8 +64,19 @@ class Select(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Select' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, isClearable=Component.UNDEFINED, isMulti=Component.UNDEFINED, arbitraryProps=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + options: typing.Optional[typing.Sequence] = None, + value: typing.Optional[typing.Any] = None, + defaultValue: typing.Optional[typing.Any] = None, + isClearable: typing.Optional[bool] = None, + isMulti: typing.Optional[bool] = None, + arbitraryProps: typing.Optional[dict] = None, + **kwargs + ): self._prop_names = ['id', 'arbitraryProps', 'defaultValue', 'isClearable', 'isMulti', 'options', 'value'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'arbitraryProps', 'defaultValue', 'isClearable', 'isMulti', 'options', 'value'] @@ -58,9 +84,8 @@ def __init__(self, id=Component.UNDEFINED, options=Component.UNDEFINED, value=Co _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(Select, self).__init__(**args) + +setattr(Select, "__init__", _explicitize_args(Select.__init__)) diff --git a/dash_mp_components/Switch.py b/dash_mp_components/Switch.py index 579cebf..35e475a 100644 --- a/dash_mp_components/Switch.py +++ b/dash_mp_components/Switch.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Switch(Component): """A Switch component. @@ -24,8 +39,18 @@ class Switch(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Switch' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, value=Component.UNDEFINED, hasLabel=Component.UNDEFINED, truthyLabel=Component.UNDEFINED, falsyLabel=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + value: typing.Optional[bool] = None, + hasLabel: typing.Optional[bool] = None, + truthyLabel: typing.Optional[str] = None, + falsyLabel: typing.Optional[str] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'falsyLabel', 'hasLabel', 'truthyLabel', 'value'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'falsyLabel', 'hasLabel', 'truthyLabel', 'value'] @@ -33,9 +58,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, value= _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(Switch, self).__init__(**args) + +setattr(Switch, "__init__", _explicitize_args(Switch.__init__)) diff --git a/dash_mp_components/SynthesisRecipeCard.py b/dash_mp_components/SynthesisRecipeCard.py index 00e8381..7a66893 100644 --- a/dash_mp_components/SynthesisRecipeCard.py +++ b/dash_mp_components/SynthesisRecipeCard.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class SynthesisRecipeCard(Component): """A SynthesisRecipeCard component. @@ -24,8 +39,15 @@ class SynthesisRecipeCard(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'SynthesisRecipeCard' - @_explicitize_args - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, data=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + data: typing.Optional[dict] = None, + **kwargs + ): self._prop_names = ['id', 'className', 'data'] self._valid_wildcard_attributes = [] self.available_properties = ['id', 'className', 'data'] @@ -33,9 +55,8 @@ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, data=C _explicit_args = kwargs.pop('_explicit_args') _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props - args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + args = {k: _locals[k] for k in _explicit_args} + super(SynthesisRecipeCard, self).__init__(**args) + +setattr(SynthesisRecipeCard, "__init__", _explicitize_args(SynthesisRecipeCard.__init__)) diff --git a/dash_mp_components/Tabs.py b/dash_mp_components/Tabs.py index 02b5a14..229cede 100644 --- a/dash_mp_components/Tabs.py +++ b/dash_mp_components/Tabs.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Tabs(Component): """A Tabs component. @@ -43,8 +58,18 @@ class Tabs(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Tabs' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, labels=Component.UNDEFINED, tabIndex=Component.UNDEFINED, arbitraryProps=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + className: typing.Optional[str] = None, + labels: typing.Optional[typing.Sequence[str]] = None, + tabIndex: typing.Optional[NumberType] = None, + arbitraryProps: typing.Optional[dict] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'arbitraryProps', 'className', 'labels', 'tabIndex'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'arbitraryProps', 'className', 'labels', 'tabIndex'] @@ -53,8 +78,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UN _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Tabs, self).__init__(children=children, **args) + +setattr(Tabs, "__init__", _explicitize_args(Tabs.__init__)) diff --git a/dash_mp_components/Tooltip.py b/dash_mp_components/Tooltip.py index a6f9a76..cafa34c 100644 --- a/dash_mp_components/Tooltip.py +++ b/dash_mp_components/Tooltip.py @@ -1,7 +1,22 @@ # AUTO GENERATED FILE - DO NOT EDIT +import typing # noqa: F401 +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 from dash.development.base_component import Component, _explicitize_args +ComponentType = typing.Union[ + str, + int, + float, + Component, + None, + typing.Sequence[typing.Union[str, int, float, Component, None]], +] + +NumberType = typing.Union[ + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex +] + class Tooltip(Component): """A Tooltip component. @@ -55,8 +70,30 @@ class Tooltip(Component): _base_nodes = ['children'] _namespace = 'dash_mp_components' _type = 'Tooltip' - @_explicitize_args - def __init__(self, children=None, id=Component.UNDEFINED, place=Component.UNDEFINED, type=Component.UNDEFINED, effect=Component.UNDEFINED, event=Component.UNDEFINED, eventOff=Component.UNDEFINED, globalEventOff=Component.UNDEFINED, offset=Component.UNDEFINED, multiline=Component.UNDEFINED, className=Component.UNDEFINED, html=Component.UNDEFINED, delayHide=Component.UNDEFINED, delayShow=Component.UNDEFINED, border=Component.UNDEFINED, disable=Component.UNDEFINED, scrollHide=Component.UNDEFINED, clickable=Component.UNDEFINED, **kwargs): + + + def __init__( + self, + children: typing.Optional[ComponentType] = None, + id: typing.Optional[typing.Union[str, dict]] = None, + place: typing.Optional[str] = None, + type: typing.Optional[str] = None, + effect: typing.Optional[str] = None, + event: typing.Optional[str] = None, + eventOff: typing.Optional[str] = None, + globalEventOff: typing.Optional[str] = None, + offset: typing.Optional[dict] = None, + multiline: typing.Optional[bool] = None, + className: typing.Optional[str] = None, + html: typing.Optional[bool] = None, + delayHide: typing.Optional[NumberType] = None, + delayShow: typing.Optional[NumberType] = None, + border: typing.Optional[bool] = None, + disable: typing.Optional[bool] = None, + scrollHide: typing.Optional[bool] = None, + clickable: typing.Optional[bool] = None, + **kwargs + ): self._prop_names = ['children', 'id', 'border', 'className', 'clickable', 'delayHide', 'delayShow', 'disable', 'effect', 'event', 'eventOff', 'globalEventOff', 'html', 'multiline', 'offset', 'place', 'scrollHide', 'type'] self._valid_wildcard_attributes = [] self.available_properties = ['children', 'id', 'border', 'className', 'clickable', 'delayHide', 'delayShow', 'disable', 'effect', 'event', 'eventOff', 'globalEventOff', 'html', 'multiline', 'offset', 'place', 'scrollHide', 'type'] @@ -65,8 +102,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, place=Component.UNDEFI _locals = locals() _locals.update(kwargs) # For wildcard attrs and excess named props args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in []: - if k not in args: - raise TypeError( - 'Required argument `' + k + '` was not specified.') + super(Tooltip, self).__init__(children=children, **args) + +setattr(Tooltip, "__init__", _explicitize_args(Tooltip.__init__)) diff --git a/dash_mp_components/_imports_.py b/dash_mp_components/_imports_.py index 0dc4423..5f69101 100644 --- a/dash_mp_components/_imports_.py +++ b/dash_mp_components/_imports_.py @@ -1,6 +1,7 @@ from .JsonView import JsonView from .MatSidebar import MatSidebar from .CameraContextProvider import CameraContextProvider +from .CrystalToolkitAnimationScene import CrystalToolkitAnimationScene from .CrystalToolkitScene import CrystalToolkitScene from .Download import Download from .GraphComponent import GraphComponent @@ -56,6 +57,7 @@ "JsonView", "MatSidebar", "CameraContextProvider", + "CrystalToolkitAnimationScene", "CrystalToolkitScene", "Download", "GraphComponent", diff --git a/dash_mp_components/dash_mp_components.min.js b/dash_mp_components/dash_mp_components.min.js index 4baa70e..03fc251 100644 --- a/dash_mp_components/dash_mp_components.min.js +++ b/dash_mp_components/dash_mp_components.min.js @@ -1,35 +1,35 @@ /*! For license information please see dash_mp_components.min.js.LICENSE.txt */ (() => { var e = { - 45042: (e, t, n) => { + 54760: (e, t, n) => { 'use strict'; - function r(e) { + function i(e) { var t = Object.create(null); return function(n) { return void 0 === t[n] && (t[n] = e(n)), t[n]; }; } - n.d(t, {Z: () => r}); + n.d(t, {Z: () => i}); }, - 9669: (e, t, n) => { - e.exports = n(51609); + 11380: (e, t, n) => { + e.exports = n(23749); }, - 55448: (e, t, n) => { + 39186: (e, t, n) => { 'use strict'; - var r = n(64867), - i = n(36026), - o = n(4372), - a = n(15327), - s = n(94097), - A = n(84109), - c = n(67985), - l = n(85061); + var i = n(66460), + r = n(49727), + o = n(32326), + s = n(80074), + a = n(31584), + A = n(32493), + c = n(2110), + l = n(31171); e.exports = function(e) { return new Promise(function(t, n) { var g = e.data, u = e.headers, d = e.responseType; - r.isFormData(g) && delete u['Content-Type']; + i.isFormData(g) && delete u['Content-Type']; var h = new XMLHttpRequest(); if (e.auth) { var C = e.auth.username || '', @@ -40,10 +40,10 @@ : ''; u.Authorization = 'Basic ' + btoa(C + ':' + I); } - var p = s(e.baseURL, e.url); + var p = a(e.baseURL, e.url); function m() { if (h) { - var r = + var i = 'getAllResponseHeaders' in h ? A(h.getAllResponseHeaders()) : null, @@ -54,17 +54,17 @@ : h.responseText, status: h.status, statusText: h.statusText, - headers: r, + headers: i, config: e, request: h, }; - i(t, n, o), (h = null); + r(t, n, o), (h = null); } } if ( (h.open( e.method.toUpperCase(), - a(p, e.params, e.paramsSerializer), + s(p, e.params, e.paramsSerializer), !0 ), (h.timeout = e.timeout), @@ -115,7 +115,7 @@ ), (h = null); }), - r.isStandardBrowserEnv()) + i.isStandardBrowserEnv()) ) { var f = (e.withCredentials || c(p)) && e.xsrfCookieName @@ -124,13 +124,13 @@ f && (u[e.xsrfHeaderName] = f); } 'setRequestHeader' in h && - r.forEach(u, function(e, t) { + i.forEach(u, function(e, t) { void 0 === g && 'content-type' === t.toLowerCase() ? delete u[t] : h.setRequestHeader(t, e); }), - r.isUndefined(e.withCredentials) || + i.isUndefined(e.withCredentials) || (h.withCredentials = !!e.withCredentials), d && 'json' !== d && @@ -155,34 +155,34 @@ }); }; }, - 51609: (e, t, n) => { + 23749: (e, t, n) => { 'use strict'; - var r = n(64867), - i = n(91849), - o = n(30321), - a = n(47185); - function s(e) { + var i = n(66460), + r = n(40472), + o = n(9500), + s = n(83703); + function a(e) { var t = new o(e), - n = i(o.prototype.request, t); - return r.extend(n, o.prototype, t), r.extend(n, t), n; + n = r(o.prototype.request, t); + return i.extend(n, o.prototype, t), i.extend(n, t), n; } - var A = s(n(45655)); + var A = a(n(18946)); (A.Axios = o), (A.create = function(e) { - return s(a(A.defaults, e)); + return a(s(A.defaults, e)); }), - (A.Cancel = n(65263)), - (A.CancelToken = n(14972)), - (A.isCancel = n(26502)), + (A.Cancel = n(14810)), + (A.CancelToken = n(40836)), + (A.isCancel = n(9966)), (A.all = function(e) { return Promise.all(e); }), - (A.spread = n(8713)), - (A.isAxiosError = n(16268)), + (A.spread = n(93994)), + (A.isAxiosError = n(36037)), (e.exports = A), (e.exports.default = A); }, - 65263: e => { + 14810: e => { 'use strict'; function t(e) { this.message = e; @@ -193,10 +193,10 @@ (t.prototype.__CANCEL__ = !0), (e.exports = t); }, - 14972: (e, t, n) => { + 40836: (e, t, n) => { 'use strict'; - var r = n(65263); - function i(e) { + var i = n(14810); + function r(e) { if ('function' != typeof e) throw new TypeError('executor must be a function.'); var t; @@ -205,37 +205,37 @@ }); var n = this; e(function(e) { - n.reason || ((n.reason = new r(e)), t(n.reason)); + n.reason || ((n.reason = new i(e)), t(n.reason)); }); } - (i.prototype.throwIfRequested = function() { + (r.prototype.throwIfRequested = function() { if (this.reason) throw this.reason; }), - (i.source = function() { + (r.source = function() { var e; return { - token: new i(function(t) { + token: new r(function(t) { e = t; }), cancel: e, }; }), - (e.exports = i); + (e.exports = r); }, - 26502: e => { + 9966: e => { 'use strict'; e.exports = function(e) { return !(!e || !e.__CANCEL__); }; }, - 30321: (e, t, n) => { + 9500: (e, t, n) => { 'use strict'; - var r = n(64867), - i = n(15327), - o = n(80782), - a = n(13572), - s = n(47185), - A = n(54875), + var i = n(66460), + r = n(80074), + o = n(83371), + s = n(45707), + a = n(83703), + A = n(25384), c = A.validators; function l(e) { (this.defaults = e), @@ -248,7 +248,7 @@ 'string' == typeof e ? ((e = arguments[1] || {}).url = arguments[0]) : (e = e || {}), - (e = s(this.defaults, e)).method + (e = a(this.defaults, e)).method ? (e.method = e.method.toLowerCase()) : this.defaults.method ? (e.method = this.defaults.method.toLowerCase()) @@ -274,31 +274,31 @@ !1 ); var n = [], - r = !0; + i = !0; this.interceptors.request.forEach(function(t) { ('function' == typeof t.runWhen && !1 === t.runWhen(e)) || - ((r = r && t.synchronous), + ((i = i && t.synchronous), n.unshift(t.fulfilled, t.rejected)); }); - var i, + var r, o = []; if ( (this.interceptors.response.forEach(function(e) { o.push(e.fulfilled, e.rejected); }), - !r) + !i) ) { - var l = [a, void 0]; + var l = [s, void 0]; for ( Array.prototype.unshift.apply(l, n), l = l.concat(o), - i = Promise.resolve(e); + r = Promise.resolve(e); l.length; ) - i = i.then(l.shift(), l.shift()); - return i; + r = r.then(l.shift(), l.shift()); + return r; } for (var g = e; n.length; ) { var u = n.shift(), @@ -311,28 +311,28 @@ } } try { - i = a(g); + r = s(g); } catch (e) { return Promise.reject(e); } - for (; o.length; ) i = i.then(o.shift(), o.shift()); - return i; + for (; o.length; ) r = r.then(o.shift(), o.shift()); + return r; }), (l.prototype.getUri = function(e) { return ( - (e = s(this.defaults, e)), - i(e.url, e.params, e.paramsSerializer).replace( + (e = a(this.defaults, e)), + r(e.url, e.params, e.paramsSerializer).replace( /^\?/, '' ) ); }), - r.forEach(['delete', 'get', 'head', 'options'], function( + i.forEach(['delete', 'get', 'head', 'options'], function( e ) { l.prototype[e] = function(t, n) { return this.request( - s(n || {}, { + a(n || {}, { method: e, url: t, data: (n || {}).data, @@ -340,22 +340,22 @@ ); }; }), - r.forEach(['post', 'put', 'patch'], function(e) { - l.prototype[e] = function(t, n, r) { + i.forEach(['post', 'put', 'patch'], function(e) { + l.prototype[e] = function(t, n, i) { return this.request( - s(r || {}, {method: e, url: t, data: n}) + a(i || {}, {method: e, url: t, data: n}) ); }; }), (e.exports = l); }, - 80782: (e, t, n) => { + 83371: (e, t, n) => { 'use strict'; - var r = n(64867); - function i() { + var i = n(66460); + function r() { this.handlers = []; } - (i.prototype.use = function(e, t, n) { + (r.prototype.use = function(e, t, n) { return ( this.handlers.push({ fulfilled: e, @@ -366,57 +366,57 @@ this.handlers.length - 1 ); }), - (i.prototype.eject = function(e) { + (r.prototype.eject = function(e) { this.handlers[e] && (this.handlers[e] = null); }), - (i.prototype.forEach = function(e) { - r.forEach(this.handlers, function(t) { + (r.prototype.forEach = function(e) { + i.forEach(this.handlers, function(t) { null !== t && e(t); }); }), - (e.exports = i); + (e.exports = r); }, - 94097: (e, t, n) => { + 31584: (e, t, n) => { 'use strict'; - var r = n(91793), - i = n(7303); + var i = n(37286), + r = n(52444); e.exports = function(e, t) { - return e && !r(t) ? i(e, t) : t; + return e && !i(t) ? r(e, t) : t; }; }, - 85061: (e, t, n) => { + 31171: (e, t, n) => { 'use strict'; - var r = n(80481); - e.exports = function(e, t, n, i, o) { - var a = new Error(e); - return r(a, t, n, i, o); + var i = n(60209); + e.exports = function(e, t, n, r, o) { + var s = new Error(e); + return i(s, t, n, r, o); }; }, - 13572: (e, t, n) => { + 45707: (e, t, n) => { 'use strict'; - var r = n(64867), - i = n(18527), - o = n(26502), - a = n(45655); - function s(e) { + var i = n(66460), + r = n(49596), + o = n(9966), + s = n(18946); + function a(e) { e.cancelToken && e.cancelToken.throwIfRequested(); } e.exports = function(e) { return ( - s(e), + a(e), (e.headers = e.headers || {}), - (e.data = i.call( + (e.data = r.call( e, e.data, e.headers, e.transformRequest )), - (e.headers = r.merge( + (e.headers = i.merge( e.headers.common || {}, e.headers[e.method] || {}, e.headers )), - r.forEach( + i.forEach( [ 'delete', 'get', @@ -430,11 +430,11 @@ delete e.headers[t]; } ), - (e.adapter || a.adapter)(e).then( + (e.adapter || s.adapter)(e).then( function(t) { return ( - s(e), - (t.data = i.call( + a(e), + (t.data = r.call( e, t.data, t.headers, @@ -446,10 +446,10 @@ function(t) { return ( o(t) || - (s(e), + (a(e), t && t.response && - (t.response.data = i.call( + (t.response.data = r.call( e, t.response.data, t.response.headers, @@ -462,14 +462,14 @@ ); }; }, - 80481: e => { + 60209: e => { 'use strict'; - e.exports = function(e, t, n, r, i) { + e.exports = function(e, t, n, i, r) { return ( (e.config = t), n && (e.code = n), - (e.request = r), - (e.response = i), + (e.request = i), + (e.response = r), (e.isAxiosError = !0), (e.toJSON = function() { return { @@ -489,15 +489,15 @@ ); }; }, - 47185: (e, t, n) => { + 83703: (e, t, n) => { 'use strict'; - var r = n(64867); + var i = n(66460); e.exports = function(e, t) { t = t || {}; var n = {}, - i = ['url', 'method', 'data'], + r = ['url', 'method', 'data'], o = ['headers', 'auth', 'proxy', 'params'], - a = [ + s = [ 'baseURL', 'transformRequest', 'transformResponse', @@ -522,56 +522,56 @@ 'socketPath', 'responseEncoding', ], - s = ['validateStatus']; + a = ['validateStatus']; function A(e, t) { - return r.isPlainObject(e) && r.isPlainObject(t) - ? r.merge(e, t) - : r.isPlainObject(t) - ? r.merge({}, t) - : r.isArray(t) + return i.isPlainObject(e) && i.isPlainObject(t) + ? i.merge(e, t) + : i.isPlainObject(t) + ? i.merge({}, t) + : i.isArray(t) ? t.slice() : t; } - function c(i) { - r.isUndefined(t[i]) - ? r.isUndefined(e[i]) || (n[i] = A(void 0, e[i])) - : (n[i] = A(e[i], t[i])); + function c(r) { + i.isUndefined(t[r]) + ? i.isUndefined(e[r]) || (n[r] = A(void 0, e[r])) + : (n[r] = A(e[r], t[r])); } - r.forEach(i, function(e) { - r.isUndefined(t[e]) || (n[e] = A(void 0, t[e])); + i.forEach(r, function(e) { + i.isUndefined(t[e]) || (n[e] = A(void 0, t[e])); }), - r.forEach(o, c), - r.forEach(a, function(i) { - r.isUndefined(t[i]) - ? r.isUndefined(e[i]) || - (n[i] = A(void 0, e[i])) - : (n[i] = A(void 0, t[i])); + i.forEach(o, c), + i.forEach(s, function(r) { + i.isUndefined(t[r]) + ? i.isUndefined(e[r]) || + (n[r] = A(void 0, e[r])) + : (n[r] = A(void 0, t[r])); }), - r.forEach(s, function(r) { - r in t - ? (n[r] = A(e[r], t[r])) - : r in e && (n[r] = A(void 0, e[r])); + i.forEach(a, function(i) { + i in t + ? (n[i] = A(e[i], t[i])) + : i in e && (n[i] = A(void 0, e[i])); }); - var l = i + var l = r .concat(o) - .concat(a) - .concat(s), + .concat(s) + .concat(a), g = Object.keys(e) .concat(Object.keys(t)) .filter(function(e) { return -1 === l.indexOf(e); }); - return r.forEach(g, c), n; + return i.forEach(g, c), n; }; }, - 36026: (e, t, n) => { + 49727: (e, t, n) => { 'use strict'; - var r = n(85061); + var i = n(31171); e.exports = function(e, t, n) { - var i = n.config.validateStatus; - n.status && i && !i(n.status) + var r = n.config.validateStatus; + n.status && r && !r(n.status) ? t( - r( + i( 'Request failed with status code ' + n.status, n.config, null, @@ -582,30 +582,30 @@ : e(n); }; }, - 18527: (e, t, n) => { + 49596: (e, t, n) => { 'use strict'; - var r = n(64867), - i = n(45655); + var i = n(66460), + r = n(18946); e.exports = function(e, t, n) { - var o = this || i; + var o = this || r; return ( - r.forEach(n, function(n) { + i.forEach(n, function(n) { e = n.call(o, e, t); }), e ); }; }, - 45655: (e, t, n) => { + 18946: (e, t, n) => { 'use strict'; - var r = n(34155), - i = n(64867), - o = n(16016), - a = n(80481), - s = {'Content-Type': 'application/x-www-form-urlencoded'}; + var i = n(14549), + r = n(66460), + o = n(32261), + s = n(60209), + a = {'Content-Type': 'application/x-www-form-urlencoded'}; function A(e, t) { - !i.isUndefined(e) && - i.isUndefined(e['Content-Type']) && + !r.isUndefined(e) && + r.isUndefined(e['Content-Type']) && (e['Content-Type'] = t); } var c, @@ -617,42 +617,42 @@ }, adapter: (('undefined' != typeof XMLHttpRequest || - (void 0 !== r && + (void 0 !== i && '[object process]' === - Object.prototype.toString.call(r))) && - (c = n(55448)), + Object.prototype.toString.call(i))) && + (c = n(39186)), c), transformRequest: [ function(e, t) { return ( o(t, 'Accept'), o(t, 'Content-Type'), - i.isFormData(e) || - i.isArrayBuffer(e) || - i.isBuffer(e) || - i.isStream(e) || - i.isFile(e) || - i.isBlob(e) + r.isFormData(e) || + r.isArrayBuffer(e) || + r.isBuffer(e) || + r.isStream(e) || + r.isFile(e) || + r.isBlob(e) ? e - : i.isArrayBufferView(e) + : r.isArrayBufferView(e) ? e.buffer - : i.isURLSearchParams(e) + : r.isURLSearchParams(e) ? (A( t, 'application/x-www-form-urlencoded;charset=utf-8' ), e.toString()) - : i.isObject(e) || + : r.isObject(e) || (t && 'application/json' === t['Content-Type']) ? (A(t, 'application/json'), (function(e, t, n) { - if (i.isString(e)) + if (r.isString(e)) try { return ( (t || JSON.parse)(e), - i.trim(e) + r.trim(e) ); } catch (e) { if ( @@ -671,15 +671,15 @@ function(e) { var t = this.transitional, n = t && t.silentJSONParsing, - r = t && t.forcedJSONParsing, + i = t && t.forcedJSONParsing, o = !n && 'json' === this.responseType; - if (o || (r && i.isString(e) && e.length)) + if (o || (i && r.isString(e) && e.length)) try { return JSON.parse(e); } catch (e) { if (o) { if ('SyntaxError' === e.name) - throw a( + throw s( e, this, 'E_JSON_PARSE' @@ -702,32 +702,32 @@ (l.headers = { common: {Accept: 'application/json, text/plain, */*'}, }), - i.forEach(['delete', 'get', 'head'], function(e) { + r.forEach(['delete', 'get', 'head'], function(e) { l.headers[e] = {}; }), - i.forEach(['post', 'put', 'patch'], function(e) { - l.headers[e] = i.merge(s); + r.forEach(['post', 'put', 'patch'], function(e) { + l.headers[e] = r.merge(a); }), (e.exports = l); }, - 91849: e => { + 40472: e => { 'use strict'; e.exports = function(e, t) { return function() { for ( - var n = new Array(arguments.length), r = 0; - r < n.length; - r++ + var n = new Array(arguments.length), i = 0; + i < n.length; + i++ ) - n[r] = arguments[r]; + n[i] = arguments[i]; return e.apply(t, n); }; }; }, - 15327: (e, t, n) => { + 80074: (e, t, n) => { 'use strict'; - var r = n(64867); - function i(e) { + var i = n(66460); + function r(e) { return encodeURIComponent(e) .replace(/%3A/gi, ':') .replace(/%24/g, '$') @@ -740,31 +740,31 @@ if (!t) return e; var o; if (n) o = n(t); - else if (r.isURLSearchParams(t)) o = t.toString(); + else if (i.isURLSearchParams(t)) o = t.toString(); else { - var a = []; - r.forEach(t, function(e, t) { + var s = []; + i.forEach(t, function(e, t) { null != e && - (r.isArray(e) ? (t += '[]') : (e = [e]), - r.forEach(e, function(e) { - r.isDate(e) + (i.isArray(e) ? (t += '[]') : (e = [e]), + i.forEach(e, function(e) { + i.isDate(e) ? (e = e.toISOString()) - : r.isObject(e) && + : i.isObject(e) && (e = JSON.stringify(e)), - a.push(i(t) + '=' + i(e)); + s.push(r(t) + '=' + r(e)); })); }), - (o = a.join('&')); + (o = s.join('&')); } if (o) { - var s = e.indexOf('#'); - -1 !== s && (e = e.slice(0, s)), + var a = e.indexOf('#'); + -1 !== a && (e = e.slice(0, a)), (e += (-1 === e.indexOf('?') ? '?' : '&') + o); } return e; }; }, - 7303: e => { + 52444: e => { 'use strict'; e.exports = function(e, t) { return t @@ -772,22 +772,22 @@ : e; }; }, - 4372: (e, t, n) => { + 32326: (e, t, n) => { 'use strict'; - var r = n(64867); - e.exports = r.isStandardBrowserEnv() + var i = n(66460); + e.exports = i.isStandardBrowserEnv() ? { - write: function(e, t, n, i, o, a) { - var s = []; - s.push(e + '=' + encodeURIComponent(t)), - r.isNumber(n) && - s.push( + write: function(e, t, n, r, o, s) { + var a = []; + a.push(e + '=' + encodeURIComponent(t)), + i.isNumber(n) && + a.push( 'expires=' + new Date(n).toGMTString() ), - r.isString(i) && s.push('path=' + i), - r.isString(o) && s.push('domain=' + o), - !0 === a && s.push('secure'), - (document.cookie = s.join('; ')); + i.isString(r) && a.push('path=' + r), + i.isString(o) && a.push('domain=' + o), + !0 === s && a.push('secure'), + (document.cookie = a.join('; ')); }, read: function(e) { var t = document.cookie.match( @@ -807,32 +807,32 @@ remove: function() {}, }; }, - 91793: e => { + 37286: e => { 'use strict'; e.exports = function(e) { return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e); }; }, - 16268: e => { + 36037: e => { 'use strict'; e.exports = function(e) { return 'object' == typeof e && !0 === e.isAxiosError; }; }, - 67985: (e, t, n) => { + 2110: (e, t, n) => { 'use strict'; - var r = n(64867); - e.exports = r.isStandardBrowserEnv() + var i = n(66460); + e.exports = i.isStandardBrowserEnv() ? (function() { var e, t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement('a'); - function i(e) { - var r = e; + function r(e) { + var i = e; return ( t && - (n.setAttribute('href', r), (r = n.href)), - n.setAttribute('href', r), + (n.setAttribute('href', i), (i = n.href)), + n.setAttribute('href', i), { href: n.href, protocol: n.protocol @@ -855,9 +855,9 @@ ); } return ( - (e = i(window.location.href)), + (e = r(window.location.href)), function(t) { - var n = r.isString(t) ? i(t) : t; + var n = i.isString(t) ? r(t) : t; return ( n.protocol === e.protocol && n.host === e.host @@ -869,21 +869,21 @@ return !0; }; }, - 16016: (e, t, n) => { + 32261: (e, t, n) => { 'use strict'; - var r = n(64867); + var i = n(66460); e.exports = function(e, t) { - r.forEach(e, function(n, r) { - r !== t && - r.toUpperCase() === t.toUpperCase() && - ((e[t] = n), delete e[r]); + i.forEach(e, function(n, i) { + i !== t && + i.toUpperCase() === t.toUpperCase() && + ((e[t] = n), delete e[i]); }); }; }, - 84109: (e, t, n) => { + 32493: (e, t, n) => { 'use strict'; - var r = n(64867), - i = [ + var i = n(66460), + r = [ 'age', 'authorization', 'content-length', @@ -906,29 +906,29 @@ var t, n, o, - a = {}; + s = {}; return e - ? (r.forEach(e.split('\n'), function(e) { + ? (i.forEach(e.split('\n'), function(e) { if ( ((o = e.indexOf(':')), - (t = r.trim(e.substr(0, o)).toLowerCase()), - (n = r.trim(e.substr(o + 1))), + (t = i.trim(e.substr(0, o)).toLowerCase()), + (n = i.trim(e.substr(o + 1))), t) ) { - if (a[t] && i.indexOf(t) >= 0) return; - a[t] = + if (s[t] && r.indexOf(t) >= 0) return; + s[t] = 'set-cookie' === t - ? (a[t] ? a[t] : []).concat([n]) - : a[t] - ? a[t] + ', ' + n + ? (s[t] ? s[t] : []).concat([n]) + : s[t] + ? s[t] + ', ' + n : n; } }), - a) - : a; + s) + : s; }; }, - 8713: e => { + 93994: e => { 'use strict'; e.exports = function(e) { return function(t) { @@ -936,10 +936,10 @@ }; }; }, - 54875: (e, t, n) => { + 25384: (e, t, n) => { 'use strict'; - var r = n(88593), - i = {}; + var i = n(37374), + r = {}; [ 'object', 'boolean', @@ -948,29 +948,29 @@ 'string', 'symbol', ].forEach(function(e, t) { - i[e] = function(n) { + r[e] = function(n) { return typeof n === e || 'a' + (t < 1 ? 'n ' : ' ') + e; }; }); var o = {}, - a = r.version.split('.'); - function s(e, t) { + s = i.version.split('.'); + function a(e, t) { for ( - var n = t ? t.split('.') : a, r = e.split('.'), i = 0; - i < 3; - i++ + var n = t ? t.split('.') : s, i = e.split('.'), r = 0; + r < 3; + r++ ) { - if (n[i] > r[i]) return !0; - if (n[i] < r[i]) return !1; + if (n[r] > i[r]) return !0; + if (n[r] < i[r]) return !1; } return !1; } - (i.transitional = function(e, t, n) { - var i = t && s(t); - function a(e, t) { + (r.transitional = function(e, t, n) { + var r = t && a(t); + function s(e, t) { return ( '[Axios v' + - r.version + + i.version + "] Transitional option '" + e + "'" + @@ -978,42 +978,42 @@ (n ? '. ' + n : '') ); } - return function(n, r, s) { + return function(n, i, a) { if (!1 === e) - throw new Error(a(r, ' has been removed in ' + t)); + throw new Error(s(i, ' has been removed in ' + t)); return ( - i && - !o[r] && - ((o[r] = !0), + r && + !o[i] && + ((o[i] = !0), console.warn( - a( - r, + s( + i, ' has been deprecated since v' + t + ' and will be removed in the near future' ) )), - !e || e(n, r, s) + !e || e(n, i, a) ); }; }), (e.exports = { - isOlderVersion: s, + isOlderVersion: a, assertOptions: function(e, t, n) { if ('object' != typeof e) throw new TypeError( 'options must be an object' ); for ( - var r = Object.keys(e), i = r.length; - i-- > 0; + var i = Object.keys(e), r = i.length; + r-- > 0; ) { - var o = r[i], - a = t[o]; - if (a) { - var s = e[o], - A = void 0 === s || a(s, o, e); + var o = i[r], + s = t[o]; + if (s) { + var a = e[o], + A = void 0 === a || s(a, o, e); if (!0 !== A) throw new TypeError( 'option ' + o + ' must be ' + A @@ -1022,51 +1022,51 @@ throw Error('Unknown option ' + o); } }, - validators: i, + validators: r, }); }, - 64867: (e, t, n) => { + 66460: (e, t, n) => { 'use strict'; - var r = n(91849), - i = Object.prototype.toString; + var i = n(40472), + r = Object.prototype.toString; function o(e) { - return '[object Array]' === i.call(e); + return '[object Array]' === r.call(e); } - function a(e) { + function s(e) { return void 0 === e; } - function s(e) { + function a(e) { return null !== e && 'object' == typeof e; } function A(e) { - if ('[object Object]' !== i.call(e)) return !1; + if ('[object Object]' !== r.call(e)) return !1; var t = Object.getPrototypeOf(e); return null === t || t === Object.prototype; } function c(e) { - return '[object Function]' === i.call(e); + return '[object Function]' === r.call(e); } function l(e, t) { if (null != e) if (('object' != typeof e && (e = [e]), o(e))) - for (var n = 0, r = e.length; n < r; n++) + for (var n = 0, i = e.length; n < i; n++) t.call(null, e[n], n, e); else - for (var i in e) - Object.prototype.hasOwnProperty.call(e, i) && - t.call(null, e[i], i, e); + for (var r in e) + Object.prototype.hasOwnProperty.call(e, r) && + t.call(null, e[r], r, e); } e.exports = { isArray: o, isArrayBuffer: function(e) { - return '[object ArrayBuffer]' === i.call(e); + return '[object ArrayBuffer]' === r.call(e); }, isBuffer: function(e) { return ( null !== e && - !a(e) && + !s(e) && null !== e.constructor && - !a(e.constructor) && + !s(e.constructor) && 'function' == typeof e.constructor.isBuffer && e.constructor.isBuffer(e) ); @@ -1089,21 +1089,21 @@ isNumber: function(e) { return 'number' == typeof e; }, - isObject: s, + isObject: a, isPlainObject: A, - isUndefined: a, + isUndefined: s, isDate: function(e) { - return '[object Date]' === i.call(e); + return '[object Date]' === r.call(e); }, isFile: function(e) { - return '[object File]' === i.call(e); + return '[object File]' === r.call(e); }, isBlob: function(e) { - return '[object Blob]' === i.call(e); + return '[object Blob]' === r.call(e); }, isFunction: c, isStream: function(e) { - return s(e) && c(e.pipe); + return a(e) && c(e.pipe); }, isURLSearchParams: function(e) { return ( @@ -1124,24 +1124,24 @@ forEach: l, merge: function e() { var t = {}; - function n(n, r) { - A(t[r]) && A(n) - ? (t[r] = e(t[r], n)) + function n(n, i) { + A(t[i]) && A(n) + ? (t[i] = e(t[i], n)) : A(n) - ? (t[r] = e({}, n)) + ? (t[i] = e({}, n)) : o(n) - ? (t[r] = n.slice()) - : (t[r] = n); + ? (t[i] = n.slice()) + : (t[i] = n); } - for (var r = 0, i = arguments.length; r < i; r++) - l(arguments[r], n); + for (var i = 0, r = arguments.length; i < r; i++) + l(arguments[i], n); return t; }, extend: function(e, t, n) { return ( - l(t, function(t, i) { - e[i] = - n && 'function' == typeof t ? r(t, n) : t; + l(t, function(t, r) { + e[r] = + n && 'function' == typeof t ? i(t, n) : t; }), e ); @@ -1154,59 +1154,59 @@ }, }; }, - 79742: (e, t) => { + 30997: (e, t) => { 'use strict'; t.b$ = function(e) { var t, n, o = A(e), - a = o[0], - s = o[1], - c = new i( + s = o[0], + a = o[1], + c = new r( (function(e, t, n) { return (3 * (t + n)) / 4 - n; - })(0, a, s) + })(0, s, a) ), l = 0, - g = s > 0 ? a - 4 : a; + g = a > 0 ? s - 4 : s; for (n = 0; n < g; n += 4) (t = - (r[e.charCodeAt(n)] << 18) | - (r[e.charCodeAt(n + 1)] << 12) | - (r[e.charCodeAt(n + 2)] << 6) | - r[e.charCodeAt(n + 3)]), + (i[e.charCodeAt(n)] << 18) | + (i[e.charCodeAt(n + 1)] << 12) | + (i[e.charCodeAt(n + 2)] << 6) | + i[e.charCodeAt(n + 3)]), (c[l++] = (t >> 16) & 255), (c[l++] = (t >> 8) & 255), (c[l++] = 255 & t); - 2 === s && + 2 === a && ((t = - (r[e.charCodeAt(n)] << 2) | - (r[e.charCodeAt(n + 1)] >> 4)), + (i[e.charCodeAt(n)] << 2) | + (i[e.charCodeAt(n + 1)] >> 4)), (c[l++] = 255 & t)); - 1 === s && + 1 === a && ((t = - (r[e.charCodeAt(n)] << 10) | - (r[e.charCodeAt(n + 1)] << 4) | - (r[e.charCodeAt(n + 2)] >> 2)), + (i[e.charCodeAt(n)] << 10) | + (i[e.charCodeAt(n + 1)] << 4) | + (i[e.charCodeAt(n + 2)] >> 2)), (c[l++] = (t >> 8) & 255), (c[l++] = 255 & t)); return c; }; for ( var n = [], - r = [], - i = + i = [], + r = 'undefined' != typeof Uint8Array ? Uint8Array : Array, o = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - a = 0, - s = o.length; - a < s; - ++a + s = 0, + a = o.length; + s < a; + ++s ) - (n[a] = o[a]), (r[o.charCodeAt(a)] = a); + (n[s] = o[s]), (i[o.charCodeAt(s)] = s); function A(e) { var t = e.length; if (t % 4 > 0) @@ -1216,679 +1216,240 @@ var n = e.indexOf('='); return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)]; } - function c(e, t, r) { - for (var i, o, a = [], s = t; s < r; s += 3) - (i = - ((e[s] << 16) & 16711680) + - ((e[s + 1] << 8) & 65280) + - (255 & e[s + 2])), - a.push( - n[((o = i) >> 18) & 63] + + function c(e, t, i) { + for (var r, o, s = [], a = t; a < i; a += 3) + (r = + ((e[a] << 16) & 16711680) + + ((e[a + 1] << 8) & 65280) + + (255 & e[a + 2])), + s.push( + n[((o = r) >> 18) & 63] + n[(o >> 12) & 63] + n[(o >> 6) & 63] + n[63 & o] ); - return a.join(''); + return s.join(''); } - (r['-'.charCodeAt(0)] = 62), (r['_'.charCodeAt(0)] = 63); + (i['-'.charCodeAt(0)] = 62), (i['_'.charCodeAt(0)] = 63); }, - 30932: e => { + 81543: (e, t, n) => { 'use strict'; - e.exports = function(e, t) { - var n, - r = String(e), - i = 0; - if ('string' != typeof t) - throw new Error('Expected character'); - n = r.indexOf(t); - for (; -1 !== n; ) i++, (n = r.indexOf(t, n + t.length)); - return i; - }; + var i = n(6477), + r = n(37137), + o = n(5747), + s = n(86608); + e.exports = s || i.call(o, r); }, - 12296: (e, t, n) => { + 37137: e => { 'use strict'; - var r = n(24429), - i = n(33464), - o = n(14453), - a = n(27296); - e.exports = function(e, t, n) { - if (!e || ('object' != typeof e && 'function' != typeof e)) - throw new o('`obj` must be an object or a function`'); - if ('string' != typeof t && 'symbol' != typeof t) - throw new o('`property` must be a string or a symbol`'); - if ( - arguments.length > 3 && - 'boolean' != typeof arguments[3] && - null !== arguments[3] - ) - throw new o( - '`nonEnumerable`, if provided, must be a boolean or null' - ); - if ( - arguments.length > 4 && - 'boolean' != typeof arguments[4] && - null !== arguments[4] - ) - throw new o( - '`nonWritable`, if provided, must be a boolean or null' - ); - if ( - arguments.length > 5 && - 'boolean' != typeof arguments[5] && - null !== arguments[5] - ) - throw new o( - '`nonConfigurable`, if provided, must be a boolean or null' - ); - if ( - arguments.length > 6 && - 'boolean' != typeof arguments[6] - ) - throw new o('`loose`, if provided, must be a boolean'); - var s = arguments.length > 3 ? arguments[3] : null, - A = arguments.length > 4 ? arguments[4] : null, - c = arguments.length > 5 ? arguments[5] : null, - l = arguments.length > 6 && arguments[6], - g = !!a && a(e, t); - if (r) - r(e, t, { - configurable: null === c && g ? g.configurable : !c, - enumerable: null === s && g ? g.enumerable : !s, - value: n, - writable: null === A && g ? g.writable : !A, - }); - else { - if (!l && (s || A || c)) - throw new i( - 'This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.' - ); - e[t] = n; - } - }; + e.exports = Function.prototype.apply; }, - 24429: (e, t, n) => { + 5747: e => { 'use strict'; - var r = n(2262)('%Object.defineProperty%', !0) || !1; - if (r) - try { - r({}, 'a', {value: 1}); - } catch (e) { - r = !1; - } - e.exports = r; + e.exports = Function.prototype.call; }, - 35644: e => { + 35363: (e, t, n) => { 'use strict'; - var t = 'Function.prototype.bind called on incompatible ', - n = Object.prototype.toString, - r = Math.max, - i = '[object Function]', - o = function(e, t) { - for (var n = [], r = 0; r < e.length; r += 1) - n[r] = e[r]; - for (var i = 0; i < t.length; i += 1) - n[i + e.length] = t[i]; - return n; - }, - a = function(e, t) { - for ( - var n = [], r = t || 0, i = 0; - r < e.length; - r += 1, i += 1 - ) - n[i] = e[r]; - return n; - }, - s = function(e, t) { - for (var n = '', r = 0; r < e.length; r += 1) - (n += e[r]), r + 1 < e.length && (n += t); - return n; - }; + var i = n(6477), + r = n(70715), + o = n(5747), + s = n(81543); e.exports = function(e) { - var A = this; - if ('function' != typeof A || n.apply(A) !== i) - throw new TypeError(t + A); - for ( - var c, - l = a(arguments, 1), - g = function() { - if (this instanceof c) { - var t = A.apply(this, o(l, arguments)); - return Object(t) === t ? t : this; - } - return A.apply(e, o(l, arguments)); - }, - u = r(0, A.length - l.length), - d = [], - h = 0; - h < u; - h++ - ) - d[h] = '$' + h; - if ( - ((c = Function( - 'binder', - 'return function (' + - s(d, ',') + - '){ return binder.apply(this,arguments); }' - )(g)), - A.prototype) - ) { - var C = function() {}; - (C.prototype = A.prototype), - (c.prototype = new C()), - (C.prototype = null); - } - return c; + if (e.length < 1 || 'function' != typeof e[0]) + throw new r('a function is required'); + return s(i, o, e); }; }, - 23342: (e, t, n) => { + 86608: e => { 'use strict'; - var r = n(35644); - e.exports = Function.prototype.bind || r; + e.exports = + 'undefined' != typeof Reflect && Reflect && Reflect.apply; }, - 2262: (e, t, n) => { + 20524: (e, t, n) => { 'use strict'; - var r, - i = n(81648), - o = n(53981), - a = n(24726), - s = n(26712), - A = n(33464), - c = n(14453), - l = n(43915), - g = Function, - u = function(e) { - try { - return g( - '"use strict"; return (' + e + ').constructor;' - )(); - } catch (e) {} - }, - d = Object.getOwnPropertyDescriptor; - if (d) + var i = n(37095), + r = n(35363), + o = r([i('%String.prototype.indexOf%')]); + e.exports = function(e, t) { + var n = i(e, !!t); + return 'function' == typeof n && o(e, '.prototype.') > -1 + ? r([n]) + : n; + }; + }, + 24206: e => { + 'use strict'; + e.exports = function(e, t) { + var n, + i = String(e), + r = 0; + if ('string' != typeof t) + throw new Error('Expected character'); + n = i.indexOf(t); + for (; -1 !== n; ) r++, (n = i.indexOf(t, n + t.length)); + return r; + }; + }, + 75758: e => { + 'use strict'; + var t = '%[a-f0-9]{2}', + n = new RegExp('(' + t + ')|([^%]+?)', 'gi'), + i = new RegExp('(' + t + ')+', 'gi'); + function r(e, t) { try { - d({}, ''); - } catch (e) { - d = null; - } - var h = function() { - throw new c(); - }, - C = d - ? (function() { - try { - return h; - } catch (e) { - try { - return d(arguments, 'callee').get; - } catch (e) { - return h; - } - } - })() - : h, - I = n(41060)(), - p = n(28185)(), - m = - Object.getPrototypeOf || - (p - ? function(e) { - return e.__proto__; - } - : null), - f = {}, - E = - 'undefined' != typeof Uint8Array && m - ? m(Uint8Array) - : r, - y = { - __proto__: null, - '%AggregateError%': - 'undefined' == typeof AggregateError - ? r - : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': - 'undefined' == typeof ArrayBuffer ? r : ArrayBuffer, - '%ArrayIteratorPrototype%': - I && m ? m([][Symbol.iterator]()) : r, - '%AsyncFromSyncIteratorPrototype%': r, - '%AsyncFunction%': f, - '%AsyncGenerator%': f, - '%AsyncGeneratorFunction%': f, - '%AsyncIteratorPrototype%': f, - '%Atomics%': - 'undefined' == typeof Atomics ? r : Atomics, - '%BigInt%': 'undefined' == typeof BigInt ? r : BigInt, - '%BigInt64Array%': - 'undefined' == typeof BigInt64Array - ? r - : BigInt64Array, - '%BigUint64Array%': - 'undefined' == typeof BigUint64Array - ? r - : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': - 'undefined' == typeof DataView ? r : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': i, - '%eval%': eval, - '%EvalError%': o, - '%Float32Array%': - 'undefined' == typeof Float32Array - ? r - : Float32Array, - '%Float64Array%': - 'undefined' == typeof Float64Array - ? r - : Float64Array, - '%FinalizationRegistry%': - 'undefined' == typeof FinalizationRegistry - ? r - : FinalizationRegistry, - '%Function%': g, - '%GeneratorFunction%': f, - '%Int8Array%': - 'undefined' == typeof Int8Array ? r : Int8Array, - '%Int16Array%': - 'undefined' == typeof Int16Array ? r : Int16Array, - '%Int32Array%': - 'undefined' == typeof Int32Array ? r : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': - I && m ? m(m([][Symbol.iterator]())) : r, - '%JSON%': 'object' == typeof JSON ? JSON : r, - '%Map%': 'undefined' == typeof Map ? r : Map, - '%MapIteratorPrototype%': - 'undefined' != typeof Map && I && m - ? m(new Map()[Symbol.iterator]()) - : r, - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': - 'undefined' == typeof Promise ? r : Promise, - '%Proxy%': 'undefined' == typeof Proxy ? r : Proxy, - '%RangeError%': a, - '%ReferenceError%': s, - '%Reflect%': - 'undefined' == typeof Reflect ? r : Reflect, - '%RegExp%': RegExp, - '%Set%': 'undefined' == typeof Set ? r : Set, - '%SetIteratorPrototype%': - 'undefined' != typeof Set && I && m - ? m(new Set()[Symbol.iterator]()) - : r, - '%SharedArrayBuffer%': - 'undefined' == typeof SharedArrayBuffer - ? r - : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': - I && m ? m(''[Symbol.iterator]()) : r, - '%Symbol%': I ? Symbol : r, - '%SyntaxError%': A, - '%ThrowTypeError%': C, - '%TypedArray%': E, - '%TypeError%': c, - '%Uint8Array%': - 'undefined' == typeof Uint8Array ? r : Uint8Array, - '%Uint8ClampedArray%': - 'undefined' == typeof Uint8ClampedArray - ? r - : Uint8ClampedArray, - '%Uint16Array%': - 'undefined' == typeof Uint16Array ? r : Uint16Array, - '%Uint32Array%': - 'undefined' == typeof Uint32Array ? r : Uint32Array, - '%URIError%': l, - '%WeakMap%': - 'undefined' == typeof WeakMap ? r : WeakMap, - '%WeakRef%': - 'undefined' == typeof WeakRef ? r : WeakRef, - '%WeakSet%': - 'undefined' == typeof WeakSet ? r : WeakSet, - }; - if (m) + return [decodeURIComponent(e.join(''))]; + } catch (e) {} + if (1 === e.length) return e; + t = t || 1; + var n = e.slice(0, t), + i = e.slice(t); + return Array.prototype.concat.call([], r(n), r(i)); + } + function o(e) { try { - null.error; - } catch (e) { - var B = m(m(e)); - y['%Error.prototype%'] = B; + return decodeURIComponent(e); + } catch (o) { + for (var t = e.match(n) || [], i = 1; i < t.length; i++) + t = (e = r(t, i).join('')).match(n) || []; + return e; } - var w = function e(t) { - var n; - if ('%AsyncFunction%' === t) - n = u('async function () {}'); - else if ('%GeneratorFunction%' === t) - n = u('function* () {}'); - else if ('%AsyncGeneratorFunction%' === t) - n = u('async function* () {}'); - else if ('%AsyncGenerator%' === t) { - var r = e('%AsyncGeneratorFunction%'); - r && (n = r.prototype); - } else if ('%AsyncIteratorPrototype%' === t) { - var i = e('%AsyncGenerator%'); - i && m && (n = m(i.prototype)); - } - return (y[t] = n), n; - }, - b = { - __proto__: null, - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': [ - 'Array', - 'prototype', - 'entries', - ], - '%ArrayProto_forEach%': [ - 'Array', - 'prototype', - 'forEach', - ], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': [ - 'AsyncFunction', - 'prototype', - ], - '%AsyncGenerator%': [ - 'AsyncGeneratorFunction', - 'prototype', - ], - '%AsyncGeneratorPrototype%': [ - 'AsyncGeneratorFunction', - 'prototype', - 'prototype', - ], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': [ - 'Float32Array', - 'prototype', - ], - '%Float64ArrayPrototype%': [ - 'Float64Array', - 'prototype', - ], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': [ - 'GeneratorFunction', - 'prototype', - 'prototype', - ], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': [ - 'Object', - 'prototype', - 'toString', - ], - '%ObjProto_valueOf%': [ - 'Object', - 'prototype', - 'valueOf', - ], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': [ - 'ReferenceError', - 'prototype', - ], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': [ - 'SharedArrayBuffer', - 'prototype', - ], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': [ - 'Uint8ClampedArray', - 'prototype', - ], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'], - }, - v = n(23342), - M = n(48824), - N = v.call(Function.call, Array.prototype.concat), - S = v.call(Function.apply, Array.prototype.splice), - Q = v.call(Function.call, String.prototype.replace), - F = v.call(Function.call, String.prototype.slice), - x = v.call(Function.call, RegExp.prototype.exec), - D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - T = /\\(\\)?/g, - Y = function(e) { - var t = F(e, 0, 1), - n = F(e, -1); - if ('%' === t && '%' !== n) - throw new A( - 'invalid intrinsic syntax, expected closing `%`' - ); - if ('%' === n && '%' !== t) - throw new A( - 'invalid intrinsic syntax, expected opening `%`' - ); - var r = []; - return ( - Q(e, D, function(e, t, n, i) { - r[r.length] = n ? Q(i, T, '$1') : t || e; - }), - r - ); - }, - R = function(e, t) { - var n, - r = e; - if ( - (M(b, r) && (r = '%' + (n = b[r])[0] + '%'), - M(y, r)) - ) { - var i = y[r]; - if ((i === f && (i = w(r)), void 0 === i && !t)) - throw new c( - 'intrinsic ' + - e + - ' exists, but is not available. Please file an issue!' - ); - return {alias: n, name: r, value: i}; - } - throw new A('intrinsic ' + e + ' does not exist!'); - }; - e.exports = function(e, t) { - if ('string' != typeof e || 0 === e.length) - throw new c( - 'intrinsic name must be a non-empty string' - ); - if (arguments.length > 1 && 'boolean' != typeof t) - throw new c( - '"allowMissing" argument must be a boolean' + } + e.exports = function(e) { + if ('string' != typeof e) + throw new TypeError( + 'Expected `encodedURI` to be of type `string`, got `' + + typeof e + + '`' ); - if (null === x(/^%?[^%]*%?$/, e)) - throw new A( - '`%` may not be present anywhere but at the beginning and end of the intrinsic name' + try { + return ( + (e = e.replace(/\+/g, ' ')), decodeURIComponent(e) ); - var n = Y(e), - r = n.length > 0 ? n[0] : '', - i = R('%' + r + '%', t), - o = i.name, - a = i.value, - s = !1, - l = i.alias; - l && ((r = l[0]), S(n, N([0, 1], l))); - for (var g = 1, u = !0; g < n.length; g += 1) { - var h = n[g], - C = F(h, 0, 1), - I = F(h, -1); - if ( - ('"' === C || - "'" === C || - '`' === C || - '"' === I || - "'" === I || - '`' === I) && - C !== I - ) - throw new A( - 'property names with quotes must have matching quotes' - ); - if ( - (('constructor' !== h && u) || (s = !0), - M(y, (o = '%' + (r += '.' + h) + '%'))) - ) - a = y[o]; - else if (null != a) { - if (!(h in a)) { - if (!t) - throw new c( - 'base intrinsic for ' + - e + - ' exists, but the property is not available.' - ); - return; + } catch (t) { + return (function(e) { + for ( + var t = {'%FE%FF': '��', '%FF%FE': '��'}, + n = i.exec(e); + n; + + ) { + try { + t[n[0]] = decodeURIComponent(n[0]); + } catch (e) { + var r = o(n[0]); + r !== n[0] && (t[n[0]] = r); + } + n = i.exec(e); } - if (d && g + 1 >= n.length) { - var p = d(a, h); - a = - (u = !!p) && - 'get' in p && - !('originalValue' in p.get) - ? p.get - : a[h]; - } else (u = M(a, h)), (a = a[h]); - u && !s && (y[o] = a); - } + t['%C2'] = '�'; + for ( + var s = Object.keys(t), a = 0; + a < s.length; + a++ + ) { + var A = s[a]; + e = e.replace(new RegExp(A, 'g'), t[A]); + } + return e; + })(e); } - return a; }; }, - 41060: (e, t, n) => { + 56212: (e, t, n) => { 'use strict'; - var r = 'undefined' != typeof Symbol && Symbol, - i = n(12511); - e.exports = function() { - return ( - 'function' == typeof r && - 'function' == typeof Symbol && - 'symbol' == typeof r('foo') && - 'symbol' == typeof Symbol('bar') && i() - ); - }; - }, - 12511: e => { - 'use strict'; - e.exports = function() { - if ( - 'function' != typeof Symbol || - 'function' != typeof Object.getOwnPropertySymbols - ) - return !1; - if ('symbol' == typeof Symbol.iterator) return !0; - var e = {}, - t = Symbol('test'), - n = Object(t); - if ('string' == typeof t) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(t)) - return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(n)) - return !1; - for (t in ((e[t] = 42), e)) return !1; - if ( - 'function' == typeof Object.keys && - 0 !== Object.keys(e).length - ) - return !1; + var i, + r = n(35363), + o = n(27278); + try { + i = [].__proto__ === Array.prototype; + } catch (e) { if ( - 'function' == typeof Object.getOwnPropertyNames && - 0 !== Object.getOwnPropertyNames(e).length + !e || + 'object' != typeof e || + !('code' in e) || + 'ERR_PROTO_ACCESS' !== e.code ) - return !1; - var r = Object.getOwnPropertySymbols(e); - if (1 !== r.length || r[0] !== t) return !1; - if (!Object.prototype.propertyIsEnumerable.call(e, t)) - return !1; - if ('function' == typeof Object.getOwnPropertyDescriptor) { - var i = Object.getOwnPropertyDescriptor(e, t); - if (42 !== i.value || !0 !== i.enumerable) return !1; + throw e; + } + var s = !!i && o && o(Object.prototype, '__proto__'), + a = Object, + A = a.getPrototypeOf; + e.exports = + s && 'function' == typeof s.get + ? r([s.get]) + : 'function' == typeof A && + function(e) { + return A(null == e ? e : a(e)); + }; + }, + 5732: e => { + 'use strict'; + var t = Object.defineProperty || !1; + if (t) + try { + t({}, 'a', {value: 1}); + } catch (e) { + t = !1; } - return !0; - }; + e.exports = t; }, - 53981: e => { + 87430: e => { 'use strict'; e.exports = EvalError; }, - 81648: e => { + 80585: e => { 'use strict'; e.exports = Error; }, - 24726: e => { + 10042: e => { 'use strict'; e.exports = RangeError; }, - 26712: e => { + 23711: e => { 'use strict'; e.exports = ReferenceError; }, - 33464: e => { + 97238: e => { 'use strict'; e.exports = SyntaxError; }, - 14453: e => { + 70715: e => { 'use strict'; e.exports = TypeError; }, - 43915: e => { + 37224: e => { 'use strict'; e.exports = URIError; }, - 94470: e => { + 13991: e => { + 'use strict'; + e.exports = Object; + }, + 19703: e => { + 'use strict'; + e.exports = e => { + if ('string' != typeof e) + throw new TypeError('Expected a string'); + return e + .replace(/[|\\{}()[\]^$+*?.]/g, '\\$&') + .replace(/-/g, '\\x2d'); + }; + }, + 69129: e => { 'use strict'; var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, - r = Object.defineProperty, - i = Object.getOwnPropertyDescriptor, + i = Object.defineProperty, + r = Object.getOwnPropertyDescriptor, o = function(e) { return 'function' == typeof Array.isArray ? Array.isArray(e) : '[object Array]' === n.call(e); }, - a = function(e) { + s = function(e) { if (!e || '[object Object]' !== n.call(e)) return !1; - var r, - i = t.call(e, 'constructor'), + var i, + r = t.call(e, 'constructor'), o = e.constructor && e.constructor.prototype && @@ -1896,13 +1457,13 @@ e.constructor.prototype, 'isPrototypeOf' ); - if (e.constructor && !i && !o) return !1; - for (r in e); - return void 0 === r || t.call(e, r); + if (e.constructor && !r && !o) return !1; + for (i in e); + return void 0 === i || t.call(e, i); }, - s = function(e, t) { - r && '__proto__' === t.name - ? r(e, t.name, { + a = function(e, t) { + i && '__proto__' === t.name + ? i(e, t.name, { enumerable: !0, configurable: !0, value: t.newValue, @@ -1913,15 +1474,15 @@ A = function(e, n) { if ('__proto__' === n) { if (!t.call(e, n)) return; - if (i) return i(e, n).value; + if (r) return r(e, n).value; } return e[n]; }; e.exports = function e() { var t, n, - r, i, + r, c, l, g = arguments[0], @@ -1940,70 +1501,70 @@ ) if (null != (t = arguments[u])) for (n in t) - (r = A(g, n)), - g !== (i = A(t, n)) && - (h && i && (a(i) || (c = o(i))) + (i = A(g, n)), + g !== (r = A(t, n)) && + (h && r && (s(r) || (c = o(r))) ? (c ? ((c = !1), - (l = r && o(r) ? r : [])) - : (l = r && a(r) ? r : {}), - s(g, { + (l = i && o(i) ? i : [])) + : (l = i && s(i) ? i : {}), + a(g, { name: n, - newValue: e(h, l, i), + newValue: e(h, l, r), })) - : void 0 !== i && - s(g, {name: n, newValue: i})); + : void 0 !== r && + a(g, {name: n, newValue: r})); return g; }; }, - 21102: (e, t, n) => { + 73554: (e, t, n) => { 'use strict'; - var r = n(46291), - i = o(Error); + var i = n(24702), + r = o(Error); function o(e) { return (t.displayName = e.displayName || e.name), t; function t(t) { - return t && (t = r.apply(null, arguments)), new e(t); + return t && (t = i.apply(null, arguments)), new e(t); } } - (e.exports = i), - (i.eval = o(EvalError)), - (i.range = o(RangeError)), - (i.reference = o(ReferenceError)), - (i.syntax = o(SyntaxError)), - (i.type = o(TypeError)), - (i.uri = o(URIError)), - (i.create = o); - }, - 92806: e => { + (e.exports = r), + (r.eval = o(EvalError)), + (r.range = o(RangeError)), + (r.reference = o(ReferenceError)), + (r.syntax = o(SyntaxError)), + (r.type = o(TypeError)), + (r.uri = o(URIError)), + (r.create = o); + }, + 73884: e => { 'use strict'; e.exports = function(e, t) { for ( var n = {}, - r = Object.keys(e), - i = Array.isArray(t), + i = Object.keys(e), + r = Array.isArray(t), o = 0; - o < r.length; + o < i.length; o++ ) { - var a = r[o], - s = e[a]; - (i ? -1 !== t.indexOf(a) : t(a, s, e)) && (n[a] = s); + var s = i[o], + a = e[s]; + (r ? -1 !== t.indexOf(s) : t(s, a, e)) && (n[s] = a); } return n; }; }, - 21838: e => { + 50192: e => { function t(e) { var t, n, - r = (e = e || {}).keybindings || {}; + i = (e = e || {}).keybindings || {}; for (t in ((this._settings = { keybindings: { - next: r.next || {keyCode: 40}, - prev: r.prev || {keyCode: 38}, - first: r.first, - last: r.last, + next: i.next || {keyCode: 40}, + prev: i.prev || {keyCode: 38}, + first: i.first, + last: i.last, }, wrap: e.wrap, stringSearch: e.stringSearch, @@ -2171,9 +1732,9 @@ this.moveFocusByString(this._searchString); }), (t.prototype.moveFocusByString = function(e) { - for (var t, r = 0, i = this._members.length; r < i; r++) + for (var t, i = 0, r = this._members.length; i < r; i++) if ( - (t = this._members[r]).text && + (t = this._members[i]).text && 0 === t.text.indexOf(e) ) return n(t.node); @@ -2192,20 +1753,20 @@ }), (t.prototype.addMember = function(e, t) { var n = e.node || e, - r = + i = e.text || n.getAttribute('data-focus-group-text') || n.textContent || ''; this._checkNode(n); - var i = { + var r = { node: n, - text: r.replace(/[\W_]/g, '').toLowerCase(), + text: i.replace(/[\W_]/g, '').toLowerCase(), }; return ( null != t - ? this._members.splice(t, 0, i) - : this._members.push(i), + ? this._members.splice(t, 0, r) + : this._members.push(r), this ); }), @@ -2240,42 +1801,42 @@ return new t(e); }); }, - 46291: e => { + 24702: e => { !(function() { var t; function n(e) { for ( var t, n, - r, i, + r, o = 1, - a = [].slice.call(arguments), - s = 0, + s = [].slice.call(arguments), + a = 0, A = e.length, c = '', l = !1, g = !1, u = function() { - return a[o++]; + return s[o++]; }, d = function() { - for (var n = ''; /\d/.test(e[s]); ) - (n += e[s++]), (t = e[s]); + for (var n = ''; /\d/.test(e[a]); ) + (n += e[a++]), (t = e[a]); return n.length > 0 ? parseInt(n) : null; }; - s < A; - ++s + a < A; + ++a ) - if (((t = e[s]), l)) + if (((t = e[a]), l)) switch ( ((l = !1), '.' == t - ? ((g = !1), (t = e[++s])) - : '0' == t && '.' == e[s + 1] - ? ((g = !0), (t = e[(s += 2)])) + ? ((g = !1), (t = e[++a])) + : '0' == t && '.' == e[a + 1] + ? ((g = !0), (t = e[(a += 2)])) : (g = !0), - (i = d()), + (r = d()), t) ) { case 'b': @@ -2294,10 +1855,10 @@ c += parseInt(u(), 10); break; case 'f': - (r = String( - parseFloat(u()).toFixed(i || 6) + (i = String( + parseFloat(u()).toFixed(r || 6) )), - (c += g ? r : r.replace(/^0/, '')); + (c += g ? i : i.replace(/^0/, '')); break; case 'j': c += JSON.stringify(u()); @@ -2338,51 +1899,40 @@ }); })(); }, - 27296: (e, t, n) => { - 'use strict'; - var r = n(10505)('%Object.getOwnPropertyDescriptor%', !0); - if (r) - try { - r([], 'length'); - } catch (e) { - r = null; - } - e.exports = r; - }, - 89898: e => { + 66096: e => { 'use strict'; var t = 'Function.prototype.bind called on incompatible ', n = Object.prototype.toString, - r = Math.max, - i = '[object Function]', + i = Math.max, + r = '[object Function]', o = function(e, t) { - for (var n = [], r = 0; r < e.length; r += 1) - n[r] = e[r]; - for (var i = 0; i < t.length; i += 1) - n[i + e.length] = t[i]; + for (var n = [], i = 0; i < e.length; i += 1) + n[i] = e[i]; + for (var r = 0; r < t.length; r += 1) + n[r + e.length] = t[r]; return n; }, - a = function(e, t) { + s = function(e, t) { for ( - var n = [], r = t || 0, i = 0; - r < e.length; - r += 1, i += 1 + var n = [], i = t || 0, r = 0; + i < e.length; + i += 1, r += 1 ) - n[i] = e[r]; + n[r] = e[i]; return n; }, - s = function(e, t) { - for (var n = '', r = 0; r < e.length; r += 1) - (n += e[r]), r + 1 < e.length && (n += t); + a = function(e, t) { + for (var n = '', i = 0; i < e.length; i += 1) + (n += e[i]), i + 1 < e.length && (n += t); return n; }; e.exports = function(e) { var A = this; - if ('function' != typeof A || n.apply(A) !== i) + if ('function' != typeof A || n.apply(A) !== r) throw new TypeError(t + A); for ( var c, - l = a(arguments, 1), + l = s(arguments, 1), g = function() { if (this instanceof c) { var t = A.apply(this, o(l, arguments)); @@ -2390,7 +1940,7 @@ } return A.apply(e, o(l, arguments)); }, - u = r(0, A.length - l.length), + u = i(0, A.length - l.length), d = [], h = 0; h < u; @@ -2401,7 +1951,7 @@ ((c = Function( 'binder', 'return function (' + - s(d, ',') + + a(d, ',') + '){ return binder.apply(this,arguments); }' )(g)), A.prototype) @@ -2414,207 +1964,224 @@ return c; }; }, - 92106: (e, t, n) => { + 6477: (e, t, n) => { 'use strict'; - var r = n(89898); - e.exports = Function.prototype.bind || r; + var i = n(66096); + e.exports = Function.prototype.bind || i; }, - 10505: (e, t, n) => { + 37095: (e, t, n) => { 'use strict'; - var r, - i = n(81648), - o = n(53981), - a = n(24726), - s = n(26712), - A = n(33464), - c = n(14453), - l = n(43915), - g = Function, - u = function(e) { + var i, + r = n(13991), + o = n(80585), + s = n(87430), + a = n(10042), + A = n(23711), + c = n(97238), + l = n(70715), + g = n(37224), + u = n(13273), + d = n(88968), + h = n(29479), + C = n(89316), + I = n(7459), + p = n(22123), + m = n(15501), + f = Function, + E = function(e) { try { - return g( + return f( '"use strict"; return (' + e + ').constructor;' )(); } catch (e) {} }, - d = Object.getOwnPropertyDescriptor; - if (d) - try { - d({}, ''); - } catch (e) { - d = null; - } - var h = function() { - throw new c(); + y = n(27278), + B = n(5732), + w = function() { + throw new l(); }, - C = d + b = y ? (function() { try { - return h; + return w; } catch (e) { try { - return d(arguments, 'callee').get; + return y(arguments, 'callee').get; } catch (e) { - return h; + return w; } } })() - : h, - I = n(22069)(), - p = n(28185)(), - m = - Object.getPrototypeOf || - (p - ? function(e) { - return e.__proto__; - } - : null), - f = {}, - E = - 'undefined' != typeof Uint8Array && m - ? m(Uint8Array) - : r, - y = { + : w, + M = n(40238)(), + v = n(27448), + N = n(95392), + S = n(94568), + Q = n(37137), + x = n(5747), + F = {}, + D = + 'undefined' != typeof Uint8Array && v + ? v(Uint8Array) + : i, + T = { __proto__: null, '%AggregateError%': 'undefined' == typeof AggregateError - ? r + ? i : AggregateError, '%Array%': Array, '%ArrayBuffer%': - 'undefined' == typeof ArrayBuffer ? r : ArrayBuffer, + 'undefined' == typeof ArrayBuffer ? i : ArrayBuffer, '%ArrayIteratorPrototype%': - I && m ? m([][Symbol.iterator]()) : r, - '%AsyncFromSyncIteratorPrototype%': r, - '%AsyncFunction%': f, - '%AsyncGenerator%': f, - '%AsyncGeneratorFunction%': f, - '%AsyncIteratorPrototype%': f, + M && v ? v([][Symbol.iterator]()) : i, + '%AsyncFromSyncIteratorPrototype%': i, + '%AsyncFunction%': F, + '%AsyncGenerator%': F, + '%AsyncGeneratorFunction%': F, + '%AsyncIteratorPrototype%': F, '%Atomics%': - 'undefined' == typeof Atomics ? r : Atomics, - '%BigInt%': 'undefined' == typeof BigInt ? r : BigInt, + 'undefined' == typeof Atomics ? i : Atomics, + '%BigInt%': 'undefined' == typeof BigInt ? i : BigInt, '%BigInt64Array%': 'undefined' == typeof BigInt64Array - ? r + ? i : BigInt64Array, '%BigUint64Array%': 'undefined' == typeof BigUint64Array - ? r + ? i : BigUint64Array, '%Boolean%': Boolean, '%DataView%': - 'undefined' == typeof DataView ? r : DataView, + 'undefined' == typeof DataView ? i : DataView, '%Date%': Date, '%decodeURI%': decodeURI, '%decodeURIComponent%': decodeURIComponent, '%encodeURI%': encodeURI, '%encodeURIComponent%': encodeURIComponent, - '%Error%': i, + '%Error%': o, '%eval%': eval, - '%EvalError%': o, + '%EvalError%': s, + '%Float16Array%': + 'undefined' == typeof Float16Array + ? i + : Float16Array, '%Float32Array%': 'undefined' == typeof Float32Array - ? r + ? i : Float32Array, '%Float64Array%': 'undefined' == typeof Float64Array - ? r + ? i : Float64Array, '%FinalizationRegistry%': 'undefined' == typeof FinalizationRegistry - ? r + ? i : FinalizationRegistry, - '%Function%': g, - '%GeneratorFunction%': f, + '%Function%': f, + '%GeneratorFunction%': F, '%Int8Array%': - 'undefined' == typeof Int8Array ? r : Int8Array, + 'undefined' == typeof Int8Array ? i : Int8Array, '%Int16Array%': - 'undefined' == typeof Int16Array ? r : Int16Array, + 'undefined' == typeof Int16Array ? i : Int16Array, '%Int32Array%': - 'undefined' == typeof Int32Array ? r : Int32Array, + 'undefined' == typeof Int32Array ? i : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, '%IteratorPrototype%': - I && m ? m(m([][Symbol.iterator]())) : r, - '%JSON%': 'object' == typeof JSON ? JSON : r, - '%Map%': 'undefined' == typeof Map ? r : Map, + M && v ? v(v([][Symbol.iterator]())) : i, + '%JSON%': 'object' == typeof JSON ? JSON : i, + '%Map%': 'undefined' == typeof Map ? i : Map, '%MapIteratorPrototype%': - 'undefined' != typeof Map && I && m - ? m(new Map()[Symbol.iterator]()) - : r, + 'undefined' != typeof Map && M && v + ? v(new Map()[Symbol.iterator]()) + : i, '%Math%': Math, '%Number%': Number, - '%Object%': Object, + '%Object%': r, + '%Object.getOwnPropertyDescriptor%': y, '%parseFloat%': parseFloat, '%parseInt%': parseInt, '%Promise%': - 'undefined' == typeof Promise ? r : Promise, - '%Proxy%': 'undefined' == typeof Proxy ? r : Proxy, + 'undefined' == typeof Promise ? i : Promise, + '%Proxy%': 'undefined' == typeof Proxy ? i : Proxy, '%RangeError%': a, - '%ReferenceError%': s, + '%ReferenceError%': A, '%Reflect%': - 'undefined' == typeof Reflect ? r : Reflect, + 'undefined' == typeof Reflect ? i : Reflect, '%RegExp%': RegExp, - '%Set%': 'undefined' == typeof Set ? r : Set, + '%Set%': 'undefined' == typeof Set ? i : Set, '%SetIteratorPrototype%': - 'undefined' != typeof Set && I && m - ? m(new Set()[Symbol.iterator]()) - : r, + 'undefined' != typeof Set && M && v + ? v(new Set()[Symbol.iterator]()) + : i, '%SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer - ? r + ? i : SharedArrayBuffer, '%String%': String, '%StringIteratorPrototype%': - I && m ? m(''[Symbol.iterator]()) : r, - '%Symbol%': I ? Symbol : r, - '%SyntaxError%': A, - '%ThrowTypeError%': C, - '%TypedArray%': E, - '%TypeError%': c, + M && v ? v(''[Symbol.iterator]()) : i, + '%Symbol%': M ? Symbol : i, + '%SyntaxError%': c, + '%ThrowTypeError%': b, + '%TypedArray%': D, + '%TypeError%': l, '%Uint8Array%': - 'undefined' == typeof Uint8Array ? r : Uint8Array, + 'undefined' == typeof Uint8Array ? i : Uint8Array, '%Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray - ? r + ? i : Uint8ClampedArray, '%Uint16Array%': - 'undefined' == typeof Uint16Array ? r : Uint16Array, + 'undefined' == typeof Uint16Array ? i : Uint16Array, '%Uint32Array%': - 'undefined' == typeof Uint32Array ? r : Uint32Array, - '%URIError%': l, + 'undefined' == typeof Uint32Array ? i : Uint32Array, + '%URIError%': g, '%WeakMap%': - 'undefined' == typeof WeakMap ? r : WeakMap, + 'undefined' == typeof WeakMap ? i : WeakMap, '%WeakRef%': - 'undefined' == typeof WeakRef ? r : WeakRef, + 'undefined' == typeof WeakRef ? i : WeakRef, '%WeakSet%': - 'undefined' == typeof WeakSet ? r : WeakSet, + 'undefined' == typeof WeakSet ? i : WeakSet, + '%Function.prototype.call%': x, + '%Function.prototype.apply%': Q, + '%Object.defineProperty%': B, + '%Object.getPrototypeOf%': N, + '%Math.abs%': u, + '%Math.floor%': d, + '%Math.max%': h, + '%Math.min%': C, + '%Math.pow%': I, + '%Math.round%': p, + '%Math.sign%': m, + '%Reflect.getPrototypeOf%': S, }; - if (m) + if (v) try { null.error; } catch (e) { - var B = m(m(e)); - y['%Error.prototype%'] = B; + var Y = v(v(e)); + T['%Error.prototype%'] = Y; } - var w = function e(t) { + var R = function e(t) { var n; if ('%AsyncFunction%' === t) - n = u('async function () {}'); + n = E('async function () {}'); else if ('%GeneratorFunction%' === t) - n = u('function* () {}'); + n = E('function* () {}'); else if ('%AsyncGeneratorFunction%' === t) - n = u('async function* () {}'); + n = E('async function* () {}'); else if ('%AsyncGenerator%' === t) { - var r = e('%AsyncGeneratorFunction%'); - r && (n = r.prototype); + var i = e('%AsyncGeneratorFunction%'); + i && (n = i.prototype); } else if ('%AsyncIteratorPrototype%' === t) { - var i = e('%AsyncGenerator%'); - i && m && (n = m(i.prototype)); + var r = e('%AsyncGenerator%'); + r && v && (n = v(r.prototype)); } - return (y[t] = n), n; + return (T[t] = n), n; }, - b = { + _ = { __proto__: null, '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], '%ArrayPrototype%': ['Array', 'prototype'], @@ -2713,133 +2280,183 @@ '%WeakMapPrototype%': ['WeakMap', 'prototype'], '%WeakSetPrototype%': ['WeakSet', 'prototype'], }, - v = n(92106), - M = n(48824), - N = v.call(Function.call, Array.prototype.concat), - S = v.call(Function.apply, Array.prototype.splice), - Q = v.call(Function.call, String.prototype.replace), - F = v.call(Function.call, String.prototype.slice), - x = v.call(Function.call, RegExp.prototype.exec), - D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - T = /\\(\\)?/g, - Y = function(e) { - var t = F(e, 0, 1), - n = F(e, -1); + U = n(6477), + O = n(85990), + G = U.call(x, Array.prototype.concat), + L = U.call(Q, Array.prototype.splice), + k = U.call(x, String.prototype.replace), + z = U.call(x, String.prototype.slice), + j = U.call(x, RegExp.prototype.exec), + P = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, + H = /\\(\\)?/g, + J = function(e) { + var t = z(e, 0, 1), + n = z(e, -1); if ('%' === t && '%' !== n) - throw new A( + throw new c( 'invalid intrinsic syntax, expected closing `%`' ); if ('%' === n && '%' !== t) - throw new A( + throw new c( 'invalid intrinsic syntax, expected opening `%`' ); - var r = []; + var i = []; return ( - Q(e, D, function(e, t, n, i) { - r[r.length] = n ? Q(i, T, '$1') : t || e; + k(e, P, function(e, t, n, r) { + i[i.length] = n ? k(r, H, '$1') : t || e; }), - r + i ); }, - R = function(e, t) { + W = function(e, t) { var n, - r = e; + i = e; if ( - (M(b, r) && (r = '%' + (n = b[r])[0] + '%'), - M(y, r)) + (O(_, i) && (i = '%' + (n = _[i])[0] + '%'), + O(T, i)) ) { - var i = y[r]; - if ((i === f && (i = w(r)), void 0 === i && !t)) - throw new c( + var r = T[i]; + if ((r === F && (r = R(i)), void 0 === r && !t)) + throw new l( 'intrinsic ' + e + ' exists, but is not available. Please file an issue!' ); - return {alias: n, name: r, value: i}; + return {alias: n, name: i, value: r}; } - throw new A('intrinsic ' + e + ' does not exist!'); + throw new c('intrinsic ' + e + ' does not exist!'); }; e.exports = function(e, t) { if ('string' != typeof e || 0 === e.length) - throw new c( + throw new l( 'intrinsic name must be a non-empty string' ); if (arguments.length > 1 && 'boolean' != typeof t) - throw new c( + throw new l( '"allowMissing" argument must be a boolean' ); - if (null === x(/^%?[^%]*%?$/, e)) - throw new A( + if (null === j(/^%?[^%]*%?$/, e)) + throw new c( '`%` may not be present anywhere but at the beginning and end of the intrinsic name' ); - var n = Y(e), - r = n.length > 0 ? n[0] : '', - i = R('%' + r + '%', t), - o = i.name, - a = i.value, - s = !1, - l = i.alias; - l && ((r = l[0]), S(n, N([0, 1], l))); + var n = J(e), + i = n.length > 0 ? n[0] : '', + r = W('%' + i + '%', t), + o = r.name, + s = r.value, + a = !1, + A = r.alias; + A && ((i = A[0]), L(n, G([0, 1], A))); for (var g = 1, u = !0; g < n.length; g += 1) { - var h = n[g], - C = F(h, 0, 1), - I = F(h, -1); + var d = n[g], + h = z(d, 0, 1), + C = z(d, -1); if ( - ('"' === C || + ('"' === h || + "'" === h || + '`' === h || + '"' === C || "'" === C || - '`' === C || - '"' === I || - "'" === I || - '`' === I) && - C !== I + '`' === C) && + h !== C ) - throw new A( + throw new c( 'property names with quotes must have matching quotes' ); if ( - (('constructor' !== h && u) || (s = !0), - M(y, (o = '%' + (r += '.' + h) + '%'))) + (('constructor' !== d && u) || (a = !0), + O(T, (o = '%' + (i += '.' + d) + '%'))) ) - a = y[o]; - else if (null != a) { - if (!(h in a)) { + s = T[o]; + else if (null != s) { + if (!(d in s)) { if (!t) - throw new c( + throw new l( 'base intrinsic for ' + e + ' exists, but the property is not available.' ); return; } - if (d && g + 1 >= n.length) { - var p = d(a, h); - a = - (u = !!p) && - 'get' in p && - !('originalValue' in p.get) - ? p.get - : a[h]; - } else (u = M(a, h)), (a = a[h]); - u && !s && (y[o] = a); + if (y && g + 1 >= n.length) { + var I = y(s, d); + s = + (u = !!I) && + 'get' in I && + !('originalValue' in I.get) + ? I.get + : s[d]; + } else (u = O(s, d)), (s = s[d]); + u && !a && (T[o] = s); } } - return a; + return s; }; }, - 22069: (e, t, n) => { + 95392: (e, t, n) => { + 'use strict'; + var i = n(13991); + e.exports = i.getPrototypeOf || null; + }, + 94568: e => { 'use strict'; - var r = 'undefined' != typeof Symbol && Symbol, - i = n(60845); + e.exports = + ('undefined' != typeof Reflect && Reflect.getPrototypeOf) || + null; + }, + 27448: (e, t, n) => { + 'use strict'; + var i = n(94568), + r = n(95392), + o = n(56212); + e.exports = i + ? function(e) { + return i(e); + } + : r + ? function(e) { + if ( + !e || + ('object' != typeof e && 'function' != typeof e) + ) + throw new TypeError('getProto: not an object'); + return r(e); + } + : o + ? function(e) { + return o(e); + } + : null; + }, + 84724: e => { + 'use strict'; + e.exports = Object.getOwnPropertyDescriptor; + }, + 27278: (e, t, n) => { + 'use strict'; + var i = n(84724); + if (i) + try { + i([], 'length'); + } catch (e) { + i = null; + } + e.exports = i; + }, + 40238: (e, t, n) => { + 'use strict'; + var i = 'undefined' != typeof Symbol && Symbol, + r = n(16158); e.exports = function() { return ( - 'function' == typeof r && + 'function' == typeof i && 'function' == typeof Symbol && - 'symbol' == typeof r('foo') && - 'symbol' == typeof Symbol('bar') && i() + 'symbol' == typeof i('foo') && + 'symbol' == typeof Symbol('bar') && r() ); }; }, - 60845: e => { + 16158: e => { 'use strict'; e.exports = function() { if ( @@ -2856,7 +2473,7 @@ return !1; if ('[object Symbol]' !== Object.prototype.toString.call(n)) return !1; - for (t in ((e[t] = 42), e)) return !1; + for (var i in ((e[t] = 42), e)) return !1; if ( 'function' == typeof Object.keys && 0 !== Object.keys(e).length @@ -2872,130 +2489,36 @@ if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1; if ('function' == typeof Object.getOwnPropertyDescriptor) { - var i = Object.getOwnPropertyDescriptor(e, t); - if (42 !== i.value || !0 !== i.enumerable) return !1; + var o = Object.getOwnPropertyDescriptor(e, t); + if (42 !== o.value || !0 !== o.enumerable) return !1; } return !0; }; }, - 31044: (e, t, n) => { - 'use strict'; - var r = n(24429), - i = function() { - return !!r; - }; - (i.hasArrayLengthDefineBug = function() { - if (!r) return null; - try { - return 1 !== r([], 'length', {value: 1}).length; - } catch (e) { - return !0; - } - }), - (e.exports = i); - }, - 28185: e => { - 'use strict'; - var t = {__proto__: null, foo: {}}, - n = Object; - e.exports = function() { - return {__proto__: t}.foo === t.foo && !(t instanceof n); - }; - }, - 48824: (e, t, n) => { - 'use strict'; - var r = Function.prototype.call, - i = Object.prototype.hasOwnProperty, - o = n(24753); - e.exports = o.call(r, i); - }, - 61454: e => { - 'use strict'; - var t = 'Function.prototype.bind called on incompatible ', - n = Object.prototype.toString, - r = Math.max, - i = '[object Function]', - o = function(e, t) { - for (var n = [], r = 0; r < e.length; r += 1) - n[r] = e[r]; - for (var i = 0; i < t.length; i += 1) - n[i + e.length] = t[i]; - return n; - }, - a = function(e, t) { - for ( - var n = [], r = t || 0, i = 0; - r < e.length; - r += 1, i += 1 - ) - n[i] = e[r]; - return n; - }, - s = function(e, t) { - for (var n = '', r = 0; r < e.length; r += 1) - (n += e[r]), r + 1 < e.length && (n += t); - return n; - }; - e.exports = function(e) { - var A = this; - if ('function' != typeof A || n.apply(A) !== i) - throw new TypeError(t + A); - for ( - var c, - l = a(arguments, 1), - g = function() { - if (this instanceof c) { - var t = A.apply(this, o(l, arguments)); - return Object(t) === t ? t : this; - } - return A.apply(e, o(l, arguments)); - }, - u = r(0, A.length - l.length), - d = [], - h = 0; - h < u; - h++ - ) - d[h] = '$' + h; - if ( - ((c = Function( - 'binder', - 'return function (' + - s(d, ',') + - '){ return binder.apply(this,arguments); }' - )(g)), - A.prototype) - ) { - var C = function() {}; - (C.prototype = A.prototype), - (c.prototype = new C()), - (C.prototype = null); - } - return c; - }; - }, - 24753: (e, t, n) => { + 85990: (e, t, n) => { 'use strict'; - var r = n(61454); - e.exports = Function.prototype.bind || r; + var i = Function.prototype.call, + r = Object.prototype.hasOwnProperty, + o = n(6477); + e.exports = o.call(i, r); }, - 92114: (e, t, n) => { + 92268: (e, t, n) => { 'use strict'; - var r = n(9505), - i = n(31742), - o = n(76277), - a = n(72488), - s = n(81660), - A = n(14787), - c = n(70006); + var i = n(75762), + r = n(3985), + o = n(99516), + s = n(12434), + a = n(19814), + A = n(42666), + c = n(77295); e.exports = function(e, t) { var n, - r = t || {}; - r.messages ? ((n = r), (r = {})) : (n = r.file); + i = t || {}; + i.messages ? ((n = i), (i = {})) : (n = i.file); return u(e, { - schema: 'svg' === r.space ? s : a, + schema: 'svg' === i.space ? a : s, file: n, - verbose: r.verbose, + verbose: i.verbose, }); }; var l = {}.hasOwnProperty, @@ -3019,32 +2542,32 @@ }; function u(e, t) { var n, - r, i, + r, o = t.schema, A = l.call(g, e.nodeName) ? g[e.nodeName] : h; return ( A === h && - (t.schema = e.namespaceURI === c.svg ? s : a), + (t.schema = e.namespaceURI === c.svg ? a : s), e.childNodes && (n = (function(e, t) { var n = -1, - r = []; - for (; ++n < e.length; ) r[n] = u(e[n], t); - return r; + i = []; + for (; ++n < e.length; ) i[n] = u(e[n], t); + return i; })(e.childNodes, t)), - (r = A(e, n, t)), + (i = A(e, n, t)), e.sourceCodeLocation && t.file && - (i = C(r, e.sourceCodeLocation, t)) && - ((t.location = !0), (r.position = i)), + (r = C(i, e.sourceCodeLocation, t)) && + ((t.location = !0), (i.position = r)), (t.schema = o), - r + i ); } function d(e, t, n) { - var r, - i, + var i, + r, o = { type: 'root', children: t, @@ -3057,11 +2580,11 @@ return ( n.file && n.location && - ((r = String(n.file)), - (i = A(r)), + ((i = String(n.file)), + (r = A(i)), (o.position = { - start: i.toPoint(0), - end: i.toPoint(r.length), + start: r.toPoint(0), + end: r.toPoint(i.length), })), o ); @@ -3069,28 +2592,28 @@ function h(e, t, n) { for ( var o, - a, s, + a, A, c, - l = 'svg' === n.schema.space ? r : i, + l = 'svg' === n.schema.space ? i : r, g = {}, d = -1; ++d < e.attrs.length; ) g[ - ((a = e.attrs[d]).prefix ? a.prefix + ':' : '') + - a.name - ] = a.value; + ((s = e.attrs[d]).prefix ? s.prefix + ':' : '') + + s.name + ] = s.value; return ( 'template' === (o = l(e.tagName, g, t)).tagName && 'content' in e && ((A = - (s = e.sourceCodeLocation) && - s.startTag && - I(s.startTag).end), - (c = s && s.endTag && I(s.endTag).start), + (a = e.sourceCodeLocation) && + a.startTag && + I(a.startTag).end), + (c = a && a.endTag && I(a.endTag).start), (o.content = u(e.content, n)), (A || c) && n.file && @@ -3099,31 +2622,31 @@ ); } function C(e, t, n) { - var r, - i, - a, - s = I(t); + var i, + r, + s, + a = I(t); if ( 'element' === e.type && - ((r = e.children[e.children.length - 1]), + ((i = e.children[e.children.length - 1]), !t.endTag && - r && - r.position && - r.position.end && - (s.end = Object.assign({}, r.position.end)), + i && + i.position && + i.position.end && + (a.end = Object.assign({}, i.position.end)), n.verbose) ) { - for (i in ((a = {}), t.attrs)) - a[o(n.schema, i).property] = I(t.attrs[i]); + for (r in ((s = {}), t.attrs)) + s[o(n.schema, r).property] = I(t.attrs[r]); e.data = { position: { opening: I(t.startTag), closing: t.endTag ? I(t.endTag) : null, - properties: a, + properties: s, }, }; } - return s; + return a; } function I(e) { var t = p({ @@ -3142,25 +2665,25 @@ return e.line && e.column ? e : null; } }, - 76277: (e, t, n) => { + 99516: (e, t, n) => { 'use strict'; - var r = n(73022), - i = n(51090), - o = n(41494), - a = 'data'; + var i = n(72102), + r = n(2937), + o = n(3181), + s = 'data'; e.exports = function(e, t) { - var n = r(t), + var n = i(t), u = t, d = o; if (n in e.normal) return e.property[e.normal[n]]; n.length > 4 && - n.slice(0, 4) === a && - s.test(t) && + n.slice(0, 4) === s && + a.test(t) && ('-' === t.charAt(4) ? (u = (function(e) { var t = e.slice(5).replace(A, g); return ( - a + t.charAt(0).toUpperCase() + t.slice(1) + s + t.charAt(0).toUpperCase() + t.slice(1) ); })(t)) : (t = (function(e) { @@ -3168,12 +2691,12 @@ if (A.test(t)) return e; '-' !== (t = t.replace(c, l)).charAt(0) && (t = '-' + t); - return a + t; + return s + t; })(t)), - (d = i)); + (d = r)); return new d(u, t); }; - var s = /^data[-\w.:]+$/i, + var a = /^data[-\w.:]+$/i, A = /-[a-z]/g, c = /[A-Z]/g; function l(e) { @@ -3183,24 +2706,24 @@ return e.charAt(1).toUpperCase(); } }, - 72488: (e, t, n) => { + 12434: (e, t, n) => { 'use strict'; - var r = n(97397), - i = n(67141), - o = n(71257), - a = n(49423), - s = n(26980), - A = n(57979); - e.exports = r([o, i, a, s, A]); - }, - 26980: (e, t, n) => { + var i = n(14885), + r = n(73821), + o = n(69191), + s = n(71498), + a = n(76196), + A = n(69329); + e.exports = i([o, r, s, a, A]); + }, + 76196: (e, t, n) => { 'use strict'; - var r = n(18210), - i = n(96745), - o = r.booleanish, - a = r.number, - s = r.spaceSeparated; - e.exports = i({ + var i = n(85547), + r = n(8698), + o = i.booleanish, + s = i.number, + a = i.spaceSeparated; + e.exports = r({ transform: function(e, t) { return 'role' === t ? t @@ -3212,65 +2735,65 @@ ariaAutoComplete: null, ariaBusy: o, ariaChecked: o, - ariaColCount: a, - ariaColIndex: a, - ariaColSpan: a, - ariaControls: s, + ariaColCount: s, + ariaColIndex: s, + ariaColSpan: s, + ariaControls: a, ariaCurrent: null, - ariaDescribedBy: s, + ariaDescribedBy: a, ariaDetails: null, ariaDisabled: o, - ariaDropEffect: s, + ariaDropEffect: a, ariaErrorMessage: null, ariaExpanded: o, - ariaFlowTo: s, + ariaFlowTo: a, ariaGrabbed: o, ariaHasPopup: null, ariaHidden: o, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, - ariaLabelledBy: s, - ariaLevel: a, + ariaLabelledBy: a, + ariaLevel: s, ariaLive: null, ariaModal: o, ariaMultiLine: o, ariaMultiSelectable: o, ariaOrientation: null, - ariaOwns: s, + ariaOwns: a, ariaPlaceholder: null, - ariaPosInSet: a, + ariaPosInSet: s, ariaPressed: o, ariaReadOnly: o, ariaRelevant: null, ariaRequired: o, - ariaRoleDescription: s, - ariaRowCount: a, - ariaRowIndex: a, - ariaRowSpan: a, + ariaRoleDescription: a, + ariaRowCount: s, + ariaRowIndex: s, + ariaRowSpan: s, ariaSelected: o, - ariaSetSize: a, + ariaSetSize: s, ariaSort: null, - ariaValueMax: a, - ariaValueMin: a, - ariaValueNow: a, + ariaValueMax: s, + ariaValueMin: s, + ariaValueNow: s, ariaValueText: null, role: null, }, }); }, - 57979: (e, t, n) => { + 69329: (e, t, n) => { 'use strict'; - var r = n(18210), - i = n(96745), - o = n(15021), - a = r.boolean, - s = r.overloadedBoolean, - A = r.booleanish, - c = r.number, - l = r.spaceSeparated, - g = r.commaSeparated; - e.exports = i({ + var i = n(85547), + r = n(8698), + o = n(65147), + s = i.boolean, + a = i.overloadedBoolean, + A = i.booleanish, + c = i.number, + l = i.spaceSeparated, + g = i.commaSeparated; + e.exports = r({ space: 'html', attributes: { acceptcharset: 'accept-charset', @@ -3292,38 +2815,38 @@ accessKey: l, action: null, allow: null, - allowFullScreen: a, - allowPaymentRequest: a, - allowUserMedia: a, + allowFullScreen: s, + allowPaymentRequest: s, + allowUserMedia: s, alt: null, as: null, - async: a, + async: s, autoCapitalize: null, autoComplete: l, - autoFocus: a, - autoPlay: a, - capture: a, + autoFocus: s, + autoPlay: s, + capture: s, charSet: null, - checked: a, + checked: s, cite: null, className: l, cols: c, colSpan: null, content: null, contentEditable: A, - controls: a, + controls: s, controlsList: l, coords: c | g, crossOrigin: null, data: null, dateTime: null, decoding: null, - default: a, - defer: a, + default: s, + defer: s, dir: null, dirName: null, - disabled: a, - download: s, + disabled: s, + download: a, draggable: A, encType: null, enterKeyHint: null, @@ -3331,11 +2854,11 @@ formAction: null, formEncType: null, formMethod: null, - formNoValidate: a, + formNoValidate: s, formTarget: null, headers: l, height: c, - hidden: a, + hidden: s, high: c, href: null, hrefLang: null, @@ -3347,11 +2870,11 @@ inputMode: null, integrity: null, is: null, - isMap: a, + isMap: s, itemId: null, itemProp: l, itemRef: l, - itemScope: a, + itemScope: s, itemType: l, kind: null, label: null, @@ -3359,7 +2882,7 @@ language: null, list: null, loading: null, - loop: a, + loop: s, low: c, manifest: null, max: null, @@ -3368,12 +2891,12 @@ method: null, min: null, minLength: c, - multiple: a, - muted: a, + multiple: s, + muted: s, name: null, nonce: null, - noModule: a, - noValidate: a, + noModule: s, + noValidate: s, onAbort: null, onAfterPrint: null, onAuxClick: null, @@ -3457,26 +2980,26 @@ onVolumeChange: null, onWaiting: null, onWheel: null, - open: a, + open: s, optimum: c, pattern: null, ping: l, placeholder: null, - playsInline: a, + playsInline: s, poster: null, preload: null, - readOnly: a, + readOnly: s, referrerPolicy: null, rel: l, - required: a, - reversed: a, + required: s, + reversed: s, rows: c, rowSpan: c, sandbox: l, scope: null, - scoped: a, - seamless: a, - selected: a, + scoped: s, + seamless: s, + selected: s, shape: null, size: c, sizes: null, @@ -3495,7 +3018,7 @@ title: null, translate: null, type: null, - typeMustMatch: a, + typeMustMatch: s, useMap: null, value: A, width: c, @@ -3519,8 +3042,8 @@ codeBase: null, codeType: null, color: null, - compact: a, - declare: a, + compact: s, + declare: s, event: null, face: null, frame: null, @@ -3532,10 +3055,10 @@ lowSrc: null, marginHeight: c, marginWidth: c, - noResize: a, - noHref: a, - noShade: a, - noWrap: a, + noResize: s, + noHref: s, + noShade: s, + noWrap: s, object: null, profile: null, prompt: null, @@ -3556,8 +3079,8 @@ allowTransparency: null, autoCorrect: null, autoSave: null, - disablePictureInPicture: a, - disableRemotePlayback: a, + disablePictureInPicture: s, + disableRemotePlayback: s, prefix: null, property: null, results: c, @@ -3566,17 +3089,17 @@ }, }); }, - 50989: (e, t, n) => { + 55277: (e, t, n) => { 'use strict'; - var r = n(18210), - i = n(96745), - o = n(26658), - a = r.boolean, - s = r.number, - A = r.spaceSeparated, - c = r.commaSeparated, - l = r.commaOrSpaceSeparated; - e.exports = i({ + var i = n(85547), + r = n(8698), + o = n(47279), + s = i.boolean, + a = i.number, + A = i.spaceSeparated, + c = i.commaSeparated, + l = i.commaOrSpaceSeparated; + e.exports = r({ space: 'svg', attributes: { accentHeight: 'accent-height', @@ -3756,27 +3279,27 @@ transform: o, properties: { about: l, - accentHeight: s, + accentHeight: a, accumulate: null, additive: null, alignmentBaseline: null, - alphabetic: s, - amplitude: s, + alphabetic: a, + amplitude: a, arabicForm: null, - ascent: s, + ascent: a, attributeName: null, attributeType: null, - azimuth: s, + azimuth: a, bandwidth: null, baselineShift: null, baseFrequency: null, baseProfile: null, bbox: null, begin: null, - bias: s, + bias: a, by: null, calcMode: null, - capHeight: s, + capHeight: a, className: A, clip: null, clipPath: null, @@ -3797,26 +3320,26 @@ d: null, dataType: null, defaultAction: null, - descent: s, - diffuseConstant: s, + descent: a, + diffuseConstant: a, direction: null, display: null, dur: null, - divisor: s, + divisor: a, dominantBaseline: null, - download: a, + download: s, dx: null, dy: null, edgeMode: null, editable: null, - elevation: s, + elevation: a, enableBackground: null, end: null, event: null, - exponent: s, + exponent: a, externalResourcesRequired: null, fill: null, - fillOpacity: s, + fillOpacity: a, fillRule: null, filter: null, filterRes: null, @@ -3846,27 +3369,27 @@ gradientTransform: null, gradientUnits: null, handler: null, - hanging: s, + hanging: a, hatchContentUnits: null, hatchUnits: null, height: null, href: null, hrefLang: null, - horizAdvX: s, - horizOriginX: s, - horizOriginY: s, + horizAdvX: a, + horizOriginX: a, + horizOriginY: a, id: null, - ideographic: s, + ideographic: a, imageRendering: null, initialVisibility: null, in: null, in2: null, - intercept: s, - k: s, - k1: s, - k2: s, - k3: s, - k4: s, + intercept: a, + k: a, + k1: a, + k2: a, + k3: a, + k4: a, kernelMatrix: l, kernelUnitLength: null, keyPoints: null, @@ -3877,7 +3400,7 @@ lengthAdjust: null, letterSpacing: null, lightingColor: null, - limitingConeAngle: s, + limitingConeAngle: a, local: null, markerEnd: null, markerMid: null, @@ -3893,7 +3416,7 @@ media: null, mediaCharacterEncoding: null, mediaContentEncodings: null, - mediaSize: s, + mediaSize: a, mediaTime: null, method: null, min: null, @@ -3999,12 +3522,12 @@ origin: null, overflow: null, overlay: null, - overlinePosition: s, - overlineThickness: s, + overlinePosition: a, + overlineThickness: a, paintOrder: null, panose1: null, path: null, - pathLength: s, + pathLength: a, patternContentUnits: null, patternTransform: null, patternUnits: null, @@ -4014,9 +3537,9 @@ playbackOrder: null, pointerEvents: null, points: null, - pointsAtX: s, - pointsAtY: s, - pointsAtZ: s, + pointsAtX: a, + pointsAtY: a, + pointsAtZ: a, preserveAlpha: null, preserveAspectRatio: null, primitiveUnits: null, @@ -4048,8 +3571,8 @@ side: null, slope: null, snapshotTime: null, - specularConstant: s, - specularExponent: s, + specularConstant: a, + specularExponent: a, spreadMethod: null, spacing: null, startOffset: null, @@ -4059,30 +3582,30 @@ stitchTiles: null, stopColor: null, stopOpacity: null, - strikethroughPosition: s, - strikethroughThickness: s, + strikethroughPosition: a, + strikethroughThickness: a, string: null, stroke: null, strokeDashArray: l, strokeDashOffset: null, strokeLineCap: null, strokeLineJoin: null, - strokeMiterLimit: s, - strokeOpacity: s, + strokeMiterLimit: a, + strokeOpacity: a, strokeWidth: null, style: null, - surfaceScale: s, + surfaceScale: a, syncBehavior: null, syncBehaviorDefault: null, syncMaster: null, syncTolerance: null, syncToleranceDefault: null, systemLanguage: l, - tabIndex: s, + tabIndex: a, tableValues: null, target: null, - targetX: s, - targetY: s, + targetX: a, + targetY: a, textAnchor: null, textDecoration: null, textRendering: null, @@ -4096,22 +3619,22 @@ transform: null, u1: null, u2: null, - underlinePosition: s, - underlineThickness: s, + underlinePosition: a, + underlineThickness: a, unicode: null, unicodeBidi: null, unicodeRange: null, - unitsPerEm: s, + unitsPerEm: a, values: null, - vAlphabetic: s, - vMathematical: s, + vAlphabetic: a, + vMathematical: a, vectorEffect: null, - vHanging: s, - vIdeographic: s, + vHanging: a, + vIdeographic: a, version: null, - vertAdvY: s, - vertOriginX: s, - vertOriginY: s, + vertAdvY: a, + vertOriginX: a, + vertOriginY: a, viewBox: null, viewTarget: null, visibility: null, @@ -4123,7 +3646,7 @@ x1: null, x2: null, xChannelSelector: null, - xHeight: s, + xHeight: a, y: null, y1: null, y2: null, @@ -4133,50 +3656,50 @@ }, }); }, - 15021: (e, t, n) => { + 65147: (e, t, n) => { 'use strict'; - var r = n(26658); + var i = n(47279); e.exports = function(e, t) { - return r(e, t.toLowerCase()); + return i(e, t.toLowerCase()); }; }, - 26658: e => { + 47279: e => { 'use strict'; e.exports = function(e, t) { return t in e ? e[t] : t; }; }, - 96745: (e, t, n) => { + 8698: (e, t, n) => { 'use strict'; - var r = n(73022), - i = n(77706), - o = n(51090); + var i = n(72102), + r = n(1610), + o = n(2937); e.exports = function(e) { var t, n, - a = e.space, - s = e.mustUseProperty || [], + s = e.space, + a = e.mustUseProperty || [], A = e.attributes || {}, c = e.properties, l = e.transform, g = {}, u = {}; for (t in c) - (n = new o(t, l(A, t), c[t], a)), - -1 !== s.indexOf(t) && (n.mustUseProperty = !0), + (n = new o(t, l(A, t), c[t], s)), + -1 !== a.indexOf(t) && (n.mustUseProperty = !0), (g[t] = n), - (u[r(t)] = t), - (u[r(n.attribute)] = t); - return new i(g, u, a); + (u[i(t)] = t), + (u[i(n.attribute)] = t); + return new r(g, u, s); }; }, - 51090: (e, t, n) => { + 2937: (e, t, n) => { 'use strict'; - var r = n(41494), - i = n(18210); - (e.exports = s), - (s.prototype = new r()), - (s.prototype.defined = !0); + var i = n(3181), + r = n(85547); + (e.exports = a), + (a.prototype = new i()), + (a.prototype.defined = !0); var o = [ 'boolean', 'booleanish', @@ -4186,18 +3709,18 @@ 'spaceSeparated', 'commaOrSpaceSeparated', ], - a = o.length; - function s(e, t, n, s) { + s = o.length; + function a(e, t, n, a) { var c, l = -1; - for (A(this, 'space', s), r.call(this, e, t); ++l < a; ) - A(this, (c = o[l]), (n & i[c]) === i[c]); + for (A(this, 'space', a), i.call(this, e, t); ++l < s; ) + A(this, (c = o[l]), (n & r[c]) === r[c]); } function A(e, t, n) { n && (e[t] = n); } }, - 41494: e => { + 3181: e => { 'use strict'; e.exports = n; var t = n.prototype; @@ -4217,26 +3740,26 @@ (t.mustUseProperty = !1), (t.defined = !1); }, - 97397: (e, t, n) => { + 14885: (e, t, n) => { 'use strict'; - var r = n(47529), - i = n(77706); + var i = n(31210), + r = n(1610); e.exports = function(e) { var t, n, o = e.length, - a = [], s = [], + a = [], A = -1; for (; ++A < o; ) (t = e[A]), - a.push(t.property), - s.push(t.normal), + s.push(t.property), + a.push(t.normal), (n = t.space); - return new i(r.apply(null, a), r.apply(null, s), n); + return new r(i.apply(null, s), i.apply(null, a), n); }; }, - 77706: e => { + 1610: e => { 'use strict'; e.exports = n; var t = n.prototype; @@ -4247,24 +3770,24 @@ } (t.space = null), (t.normal = {}), (t.property = {}); }, - 18210: (e, t) => { + 85547: (e, t) => { 'use strict'; var n = 0; - function r() { + function i() { return Math.pow(2, ++n); } - (t.boolean = r()), - (t.booleanish = r()), - (t.overloadedBoolean = r()), - (t.number = r()), - (t.spaceSeparated = r()), - (t.commaSeparated = r()), - (t.commaOrSpaceSeparated = r()); + (t.boolean = i()), + (t.booleanish = i()), + (t.overloadedBoolean = i()), + (t.number = i()), + (t.spaceSeparated = i()), + (t.commaSeparated = i()), + (t.commaOrSpaceSeparated = i()); }, - 67141: (e, t, n) => { + 73821: (e, t, n) => { 'use strict'; - var r = n(96745); - e.exports = r({ + var i = n(8698); + e.exports = i({ space: 'xlink', transform: function(e, t) { return 'xlink:' + t.slice(5).toLowerCase(); @@ -4280,10 +3803,10 @@ }, }); }, - 71257: (e, t, n) => { + 69191: (e, t, n) => { 'use strict'; - var r = n(96745); - e.exports = r({ + var i = n(8698); + e.exports = i({ space: 'xml', transform: function(e, t) { return 'xml:' + t.slice(3).toLowerCase(); @@ -4291,34 +3814,34 @@ properties: {xmlLang: null, xmlBase: null, xmlSpace: null}, }); }, - 49423: (e, t, n) => { + 71498: (e, t, n) => { 'use strict'; - var r = n(96745), - i = n(15021); - e.exports = r({ + var i = n(8698), + r = n(65147); + e.exports = i({ space: 'xmlns', attributes: {xmlnsxlink: 'xmlns:xlink'}, - transform: i, + transform: r, properties: {xmlns: null, xmlnsXLink: null}, }); }, - 73022: e => { + 72102: e => { 'use strict'; e.exports = function(e) { return e.toLowerCase(); }; }, - 81660: (e, t, n) => { + 19814: (e, t, n) => { 'use strict'; - var r = n(97397), - i = n(67141), - o = n(71257), - a = n(49423), - s = n(26980), - A = n(50989); - e.exports = r([o, i, a, s, A]); - }, - 83216: e => { + var i = n(14885), + r = n(73821), + o = n(69191), + s = n(71498), + a = n(76196), + A = n(55277); + e.exports = i([o, r, s, a, A]); + }, + 10747: e => { 'use strict'; function t(e) { if ('string' == typeof e) @@ -4333,15 +3856,15 @@ return (function(e) { var n = (function(e) { var n = e.length, - r = -1, - i = []; - for (; ++r < n; ) i[r] = t(e[r]); - return i; + i = -1, + r = []; + for (; ++i < n; ) r[i] = t(e[i]); + return r; })(e), - r = n.length; - return i; - function i() { - for (var e = -1; ++e < r; ) + i = n.length; + return r; + function r() { + for (var e = -1; ++e < i; ) if (n[e].apply(this, arguments)) return !0; return !1; } @@ -4369,50 +3892,50 @@ } e.exports = t; }, - 78892: e => { + 5025: e => { 'use strict'; e.exports = function(e, n) { - var r, - i, + var i, + r, o, - a = e || '', - s = n || 'div', + s = e || '', + a = n || 'div', A = {}, c = 0; - for (; c < a.length; ) + for (; c < s.length; ) (t.lastIndex = c), - (o = t.exec(a)), - (r = a.slice(c, o ? o.index : a.length)) && - (i - ? '#' === i - ? (A.id = r) + (o = t.exec(s)), + (i = s.slice(c, o ? o.index : s.length)) && + (r + ? '#' === r + ? (A.id = i) : A.className - ? A.className.push(r) - : (A.className = [r]) - : (s = r), - (c += r.length)), - o && ((i = o[0]), c++); + ? A.className.push(i) + : (A.className = [i]) + : (a = i), + (c += i.length)), + o && ((r = o[0]), c++); return { type: 'element', - tagName: s, + tagName: a, properties: A, children: [], }; }; var t = /[#.]/g; }, - 85330: (e, t, n) => { + 82985: (e, t, n) => { 'use strict'; - var r = n(96464), - i = n(83216), - o = n(33262); + var i = n(11228), + r = n(10747), + o = n(60499); e.exports = function(e) { var t, n, - i, + r, o, - a = e.children || [], - s = d(e), + s = e.children || [], + a = d(e), c = m(e, {}), l = -1; if ('text' === e.type || 'comment' === e.type) @@ -4422,29 +3945,29 @@ breakAfter: !0, }); t = []; - for (; ++l < a.length; ) + for (; ++l < s.length; ) t = t.concat( - h(a[l], l, e, { + h(s[l], l, e, { whiteSpace: c, - breakBefore: l ? null : s, - breakAfter: l < a.length - 1 ? A(a[l + 1]) : s, + breakBefore: l ? null : a, + breakAfter: l < s.length - 1 ? A(s[l + 1]) : a, }) ); (l = -1), (n = []); for (; ++l < t.length; ) - 'number' == typeof (i = t[l]) - ? void 0 !== o && i > o && (o = i) - : i && - (o && n.push(r('\n', o)), (o = 0), n.push(i)); + 'number' == typeof (r = t[l]) + ? void 0 !== o && r > o && (o = r) + : r && + (o && n.push(i('\n', o)), (o = 0), n.push(r)); return n.join(''); }; - var a = /\n/g, - s = /[\t ]+/g, - A = i('br'), - c = i('p'), - l = i(['th', 'td']), - g = i('tr'), - u = i([ + var s = /\n/g, + a = /[\t ]+/g, + A = r('br'), + c = r('p'), + l = r(['th', 'td']), + g = r('tr'), + u = r([ 'datalist', 'head', 'noembed', @@ -4465,7 +3988,7 @@ ); }, ]), - d = i([ + d = r([ 'caption', 'html', 'body', @@ -4506,60 +4029,60 @@ 'ol', 'ul', ]); - function h(e, t, n, r) { + function h(e, t, n, i) { return 'element' === e.type - ? (function(e, t, n, r) { - var i, - a, - s = m(e, r), + ? (function(e, t, n, i) { + var r, + s, + a = m(e, i), C = e.children || [], I = -1, p = []; if (u(e)) return p; A(e) || (g(e) && o(n, e, g)) - ? (a = '\n') + ? (s = '\n') : c(e) - ? ((i = 2), (a = 2)) - : d(e) && ((i = 1), (a = 1)); + ? ((r = 2), (s = 2)) + : d(e) && ((r = 1), (s = 1)); for (; ++I < C.length; ) p = p.concat( h(C[I], I, e, { - whiteSpace: s, - breakBefore: I ? null : i, + whiteSpace: a, + breakBefore: I ? null : r, breakAfter: I < C.length - 1 ? A(C[I + 1]) - : a, + : s, }) ); l(e) && o(n, e, l) && p.push('\t'); - i && p.unshift(i); - a && p.push(a); + r && p.unshift(r); + s && p.push(s); return p; - })(e, 0, n, r) + })(e, 0, n, i) : 'text' === e.type - ? ['normal' === r.whiteSpace ? C(e, r) : I(e)] + ? ['normal' === i.whiteSpace ? C(e, i) : I(e)] : []; } function C(e, t) { for ( var n, - r, i, + r, o = String(e.value), - s = [], + a = [], A = [], c = 0, l = -1; c < o.length; ) - (a.lastIndex = c), - (r = (n = a.exec(o)) ? n.index : o.length), - s.push( + (s.lastIndex = c), + (i = (n = s.exec(o)) ? n.index : o.length), + a.push( p( o - .slice(c, r) + .slice(c, i) .replace( /[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g, '' @@ -4568,29 +4091,29 @@ t.breakAfter ) ), - (c = r + 1); - for (; ++l < s.length; ) - 8203 === s[l].charCodeAt(s[l].length - 1) || - (l < s.length - 1 && 8203 === s[l + 1].charCodeAt(0)) - ? (A.push(s[l]), (i = '')) - : s[l] && (i && A.push(i), A.push(s[l]), (i = ' ')); + (c = i + 1); + for (; ++l < a.length; ) + 8203 === a[l].charCodeAt(a[l].length - 1) || + (l < a.length - 1 && 8203 === a[l + 1].charCodeAt(0)) + ? (A.push(a[l]), (r = '')) + : a[l] && (r && A.push(r), A.push(a[l]), (r = ' ')); return A.join(''); } function I(e) { return String(e.value); } function p(e, t, n) { - for (var r, i, o = [], a = 0; a < e.length; ) - (s.lastIndex = a), - (i = (r = s.exec(e)) ? r.index : e.length), - a || i || !r || t || o.push(''), - a !== i && o.push(e.slice(a, i)), - (a = r ? i + r[0].length : i); - return a === i || n || o.push(''), o.join(' '); + for (var i, r, o = [], s = 0; s < e.length; ) + (a.lastIndex = s), + (r = (i = a.exec(e)) ? i.index : e.length), + s || r || !i || t || o.push(''), + s !== r && o.push(e.slice(s, r)), + (s = i ? r + i[0].length : r); + return s === r || n || o.push(''), o.join(' '); } function m(e, t) { var n = e.properties || {}, - r = t.whiteSpace || 'normal'; + i = t.whiteSpace || 'normal'; switch (e.tagName) { case 'listing': case 'plaintext': @@ -4602,63 +4125,63 @@ return n.wrap ? 'pre-wrap' : 'pre'; case 'td': case 'th': - return n.noWrap ? 'nowrap' : r; + return n.noWrap ? 'nowrap' : i; case 'textarea': return 'pre-wrap'; default: - return r; + return i; } } }, - 62502: (e, t, n) => { + 65020: (e, t, n) => { 'use strict'; - var r = n(15575), - i = n(64977), - o = n(78892), - a = n(32473).Q, - s = n(24395).Q; + var i = n(13400), + r = n(66151), + o = n(5025), + s = n(61410).Q, + a = n(67405).Q; e.exports = function(e, t, n) { - var i = n + var r = n ? (function(e) { var t, n = e.length, - r = -1, - i = {}; - for (; ++r < n; ) i[(t = e[r]).toLowerCase()] = t; - return i; + i = -1, + r = {}; + for (; ++i < n; ) r[(t = e[i]).toLowerCase()] = t; + return r; })(n) : null; return function(e, n) { - var r, - a = o(e, t), - s = Array.prototype.slice.call(arguments, 2), - g = a.tagName.toLowerCase(); - (a.tagName = i && A.call(i, g) ? i[g] : g), - n && c(n, a) && (s.unshift(n), (n = null)); - if (n) for (r in n) u(a.properties, r, n[r]); - l(a.children, s), - 'template' === a.tagName && - ((a.content = { + var i, + s = o(e, t), + a = Array.prototype.slice.call(arguments, 2), + g = s.tagName.toLowerCase(); + (s.tagName = r && A.call(r, g) ? r[g] : g), + n && c(n, s) && (a.unshift(n), (n = null)); + if (n) for (i in n) u(s.properties, i, n[i]); + l(s.children, a), + 'template' === s.tagName && + ((s.content = { type: 'root', - children: a.children, + children: s.children, }), - (a.children = [])); - return a; + (s.children = [])); + return s; }; - function u(t, n, i) { + function u(t, n, r) { var o, A, c; - null != i && - i == i && - ((A = (o = r(e, n)).property), - 'string' == typeof (c = i) && + null != r && + r == r && + ((A = (o = i(e, n)).property), + 'string' == typeof (c = r) && (o.spaceSeparated - ? (c = a(c)) - : o.commaSeparated ? (c = s(c)) + : o.commaSeparated + ? (c = a(c)) : o.commaOrSpaceSeparated && - (c = a(s(c).join(' ')))), + (c = s(a(c).join(' ')))), 'style' === A && - 'string' != typeof i && + 'string' != typeof r && (c = (function(e) { var t, n = []; @@ -4669,11 +4192,11 @@ t.className && (c = t.className.concat(c)), (t[A] = (function(e, t, n) { - var r, i, o; + var i, r, o; if ('object' != typeof n || !('length' in n)) return g(e, t, n); - (i = n.length), (r = -1), (o = []); - for (; ++r < i; ) o[r] = g(e, t, n[r]); + (r = n.length), (i = -1), (o = []); + for (; ++i < r; ) o[i] = g(e, t, n[i]); return o; })(o, A, c))); } @@ -4704,10 +4227,10 @@ ); } function l(e, t) { - var n, r; + var n, i; if ('string' != typeof t && 'number' != typeof t) if ('object' == typeof t && 'length' in t) - for (n = -1, r = t.length; ++n < r; ) l(e, t[n]); + for (n = -1, i = t.length; ++n < i; ) l(e, t[n]); else { if ('object' != typeof t || !('type' in t)) throw new Error( @@ -4720,64 +4243,64 @@ else e.push({type: 'text', value: String(t)}); } function g(e, t, n) { - var r = n; + var i = n; return ( e.number || e.positiveNumber - ? isNaN(r) || '' === r || (r = Number(r)) + ? isNaN(i) || '' === i || (i = Number(i)) : (e.boolean || e.overloadedBoolean) && - ('string' != typeof r || - ('' !== r && i(n) !== i(t)) || - (r = !0)), - r + ('string' != typeof i || + ('' !== i && r(n) !== r(t)) || + (i = !0)), + i ); } }, - 52579: (e, t, n) => { + 35215: (e, t, n) => { 'use strict'; - var r = n(48055), - i = n(62502)(r, 'div'); - (i.displayName = 'html'), (e.exports = i); + var i = n(3944), + r = n(65020)(i, 'div'); + (r.displayName = 'html'), (e.exports = r); }, - 31742: (e, t, n) => { + 3985: (e, t, n) => { 'use strict'; - e.exports = n(52579); + e.exports = n(35215); }, - 24395: (e, t) => { + 67405: (e, t) => { 'use strict'; t.Q = function(e) { var t, n = [], - r = String(e || ''), - i = r.indexOf(','), + i = String(e || ''), + r = i.indexOf(','), o = 0, - a = !1; - for (; !a; ) - -1 === i && ((i = r.length), (a = !0)), - (!(t = r.slice(o, i).trim()) && a) || n.push(t), - (o = i + 1), - (i = r.indexOf(',', o)); + s = !1; + for (; !s; ) + -1 === r && ((r = i.length), (s = !0)), + (!(t = i.slice(o, r).trim()) && s) || n.push(t), + (o = r + 1), + (r = i.indexOf(',', o)); return n; }; }, - 15575: (e, t, n) => { + 13400: (e, t, n) => { 'use strict'; - var r = n(64977), - i = n(78444), - o = n(40313), - a = 'data'; + var i = n(66151), + r = n(54179), + o = n(2681), + s = 'data'; e.exports = function(e, t) { - var n = r(t), + var n = i(t), u = t, d = o; if (n in e.normal) return e.property[e.normal[n]]; n.length > 4 && - n.slice(0, 4) === a && - s.test(t) && + n.slice(0, 4) === s && + a.test(t) && ('-' === t.charAt(4) ? (u = (function(e) { var t = e.slice(5).replace(A, g); return ( - a + t.charAt(0).toUpperCase() + t.slice(1) + s + t.charAt(0).toUpperCase() + t.slice(1) ); })(t)) : (t = (function(e) { @@ -4785,12 +4308,12 @@ if (A.test(t)) return e; '-' !== (t = t.replace(c, l)).charAt(0) && (t = '-' + t); - return a + t; + return s + t; })(t)), - (d = i)); + (d = r)); return new d(u, t); }; - var s = /^data[-\w.:]+$/i, + var a = /^data[-\w.:]+$/i, A = /-[a-z]/g, c = /[A-Z]/g; function l(e) { @@ -4800,24 +4323,24 @@ return e.charAt(1).toUpperCase(); } }, - 48055: (e, t, n) => { + 3944: (e, t, n) => { 'use strict'; - var r = n(26230), - i = n(13970), - o = n(10629), - a = n(647), - s = n(91305), - A = n(22537); - e.exports = r([o, i, a, s, A]); - }, - 91305: (e, t, n) => { + var i = n(37165), + r = n(90334), + o = n(40815), + s = n(72283), + a = n(89317), + A = n(11334); + e.exports = i([o, r, s, a, A]); + }, + 89317: (e, t, n) => { 'use strict'; - var r = n(61422), - i = n(47589), - o = r.booleanish, - a = r.number, - s = r.spaceSeparated; - e.exports = i({ + var i = n(66311), + r = n(59914), + o = i.booleanish, + s = i.number, + a = i.spaceSeparated; + e.exports = r({ transform: function(e, t) { return 'role' === t ? t @@ -4829,65 +4352,65 @@ ariaAutoComplete: null, ariaBusy: o, ariaChecked: o, - ariaColCount: a, - ariaColIndex: a, - ariaColSpan: a, - ariaControls: s, + ariaColCount: s, + ariaColIndex: s, + ariaColSpan: s, + ariaControls: a, ariaCurrent: null, - ariaDescribedBy: s, + ariaDescribedBy: a, ariaDetails: null, ariaDisabled: o, - ariaDropEffect: s, + ariaDropEffect: a, ariaErrorMessage: null, ariaExpanded: o, - ariaFlowTo: s, + ariaFlowTo: a, ariaGrabbed: o, ariaHasPopup: null, ariaHidden: o, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, - ariaLabelledBy: s, - ariaLevel: a, + ariaLabelledBy: a, + ariaLevel: s, ariaLive: null, ariaModal: o, ariaMultiLine: o, ariaMultiSelectable: o, ariaOrientation: null, - ariaOwns: s, + ariaOwns: a, ariaPlaceholder: null, - ariaPosInSet: a, + ariaPosInSet: s, ariaPressed: o, ariaReadOnly: o, ariaRelevant: null, ariaRequired: o, - ariaRoleDescription: s, - ariaRowCount: a, - ariaRowIndex: a, - ariaRowSpan: a, + ariaRoleDescription: a, + ariaRowCount: s, + ariaRowIndex: s, + ariaRowSpan: s, ariaSelected: o, - ariaSetSize: a, + ariaSetSize: s, ariaSort: null, - ariaValueMax: a, - ariaValueMin: a, - ariaValueNow: a, + ariaValueMax: s, + ariaValueMin: s, + ariaValueNow: s, ariaValueText: null, role: null, }, }); }, - 22537: (e, t, n) => { + 11334: (e, t, n) => { 'use strict'; - var r = n(61422), - i = n(47589), - o = n(19348), - a = r.boolean, - s = r.overloadedBoolean, - A = r.booleanish, - c = r.number, - l = r.spaceSeparated, - g = r.commaSeparated; - e.exports = i({ + var i = n(66311), + r = n(59914), + o = n(10432), + s = i.boolean, + a = i.overloadedBoolean, + A = i.booleanish, + c = i.number, + l = i.spaceSeparated, + g = i.commaSeparated; + e.exports = r({ space: 'html', attributes: { acceptcharset: 'accept-charset', @@ -4909,38 +4432,38 @@ accessKey: l, action: null, allow: null, - allowFullScreen: a, - allowPaymentRequest: a, - allowUserMedia: a, + allowFullScreen: s, + allowPaymentRequest: s, + allowUserMedia: s, alt: null, as: null, - async: a, + async: s, autoCapitalize: null, autoComplete: l, - autoFocus: a, - autoPlay: a, - capture: a, + autoFocus: s, + autoPlay: s, + capture: s, charSet: null, - checked: a, + checked: s, cite: null, className: l, cols: c, colSpan: null, content: null, contentEditable: A, - controls: a, + controls: s, controlsList: l, coords: c | g, crossOrigin: null, data: null, dateTime: null, decoding: null, - default: a, - defer: a, + default: s, + defer: s, dir: null, dirName: null, - disabled: a, - download: s, + disabled: s, + download: a, draggable: A, encType: null, enterKeyHint: null, @@ -4948,11 +4471,11 @@ formAction: null, formEncType: null, formMethod: null, - formNoValidate: a, + formNoValidate: s, formTarget: null, headers: l, height: c, - hidden: a, + hidden: s, high: c, href: null, hrefLang: null, @@ -4964,11 +4487,11 @@ inputMode: null, integrity: null, is: null, - isMap: a, + isMap: s, itemId: null, itemProp: l, itemRef: l, - itemScope: a, + itemScope: s, itemType: l, kind: null, label: null, @@ -4976,7 +4499,7 @@ language: null, list: null, loading: null, - loop: a, + loop: s, low: c, manifest: null, max: null, @@ -4985,12 +4508,12 @@ method: null, min: null, minLength: c, - multiple: a, - muted: a, + multiple: s, + muted: s, name: null, nonce: null, - noModule: a, - noValidate: a, + noModule: s, + noValidate: s, onAbort: null, onAfterPrint: null, onAuxClick: null, @@ -5074,26 +4597,26 @@ onVolumeChange: null, onWaiting: null, onWheel: null, - open: a, + open: s, optimum: c, pattern: null, ping: l, placeholder: null, - playsInline: a, + playsInline: s, poster: null, preload: null, - readOnly: a, + readOnly: s, referrerPolicy: null, rel: l, - required: a, - reversed: a, + required: s, + reversed: s, rows: c, rowSpan: c, sandbox: l, scope: null, - scoped: a, - seamless: a, - selected: a, + scoped: s, + seamless: s, + selected: s, shape: null, size: c, sizes: null, @@ -5112,7 +4635,7 @@ title: null, translate: null, type: null, - typeMustMatch: a, + typeMustMatch: s, useMap: null, value: A, width: c, @@ -5136,8 +4659,8 @@ codeBase: null, codeType: null, color: null, - compact: a, - declare: a, + compact: s, + declare: s, event: null, face: null, frame: null, @@ -5149,10 +4672,10 @@ lowSrc: null, marginHeight: c, marginWidth: c, - noResize: a, - noHref: a, - noShade: a, - noWrap: a, + noResize: s, + noHref: s, + noShade: s, + noWrap: s, object: null, profile: null, prompt: null, @@ -5173,8 +4696,8 @@ allowTransparency: null, autoCorrect: null, autoSave: null, - disablePictureInPicture: a, - disableRemotePlayback: a, + disablePictureInPicture: s, + disableRemotePlayback: s, prefix: null, property: null, results: c, @@ -5183,17 +4706,17 @@ }, }); }, - 56242: (e, t, n) => { + 7562: (e, t, n) => { 'use strict'; - var r = n(61422), - i = n(47589), - o = n(21098), - a = r.boolean, - s = r.number, - A = r.spaceSeparated, - c = r.commaSeparated, - l = r.commaOrSpaceSeparated; - e.exports = i({ + var i = n(66311), + r = n(59914), + o = n(30771), + s = i.boolean, + a = i.number, + A = i.spaceSeparated, + c = i.commaSeparated, + l = i.commaOrSpaceSeparated; + e.exports = r({ space: 'svg', attributes: { accentHeight: 'accent-height', @@ -5373,27 +4896,27 @@ transform: o, properties: { about: l, - accentHeight: s, + accentHeight: a, accumulate: null, additive: null, alignmentBaseline: null, - alphabetic: s, - amplitude: s, + alphabetic: a, + amplitude: a, arabicForm: null, - ascent: s, + ascent: a, attributeName: null, attributeType: null, - azimuth: s, + azimuth: a, bandwidth: null, baselineShift: null, baseFrequency: null, baseProfile: null, bbox: null, begin: null, - bias: s, + bias: a, by: null, calcMode: null, - capHeight: s, + capHeight: a, className: A, clip: null, clipPath: null, @@ -5414,26 +4937,26 @@ d: null, dataType: null, defaultAction: null, - descent: s, - diffuseConstant: s, + descent: a, + diffuseConstant: a, direction: null, display: null, dur: null, - divisor: s, + divisor: a, dominantBaseline: null, - download: a, + download: s, dx: null, dy: null, edgeMode: null, editable: null, - elevation: s, + elevation: a, enableBackground: null, end: null, event: null, - exponent: s, + exponent: a, externalResourcesRequired: null, fill: null, - fillOpacity: s, + fillOpacity: a, fillRule: null, filter: null, filterRes: null, @@ -5463,27 +4986,27 @@ gradientTransform: null, gradientUnits: null, handler: null, - hanging: s, + hanging: a, hatchContentUnits: null, hatchUnits: null, height: null, href: null, hrefLang: null, - horizAdvX: s, - horizOriginX: s, - horizOriginY: s, + horizAdvX: a, + horizOriginX: a, + horizOriginY: a, id: null, - ideographic: s, + ideographic: a, imageRendering: null, initialVisibility: null, in: null, in2: null, - intercept: s, - k: s, - k1: s, - k2: s, - k3: s, - k4: s, + intercept: a, + k: a, + k1: a, + k2: a, + k3: a, + k4: a, kernelMatrix: l, kernelUnitLength: null, keyPoints: null, @@ -5494,7 +5017,7 @@ lengthAdjust: null, letterSpacing: null, lightingColor: null, - limitingConeAngle: s, + limitingConeAngle: a, local: null, markerEnd: null, markerMid: null, @@ -5510,7 +5033,7 @@ media: null, mediaCharacterEncoding: null, mediaContentEncodings: null, - mediaSize: s, + mediaSize: a, mediaTime: null, method: null, min: null, @@ -5616,12 +5139,12 @@ origin: null, overflow: null, overlay: null, - overlinePosition: s, - overlineThickness: s, + overlinePosition: a, + overlineThickness: a, paintOrder: null, panose1: null, path: null, - pathLength: s, + pathLength: a, patternContentUnits: null, patternTransform: null, patternUnits: null, @@ -5631,9 +5154,9 @@ playbackOrder: null, pointerEvents: null, points: null, - pointsAtX: s, - pointsAtY: s, - pointsAtZ: s, + pointsAtX: a, + pointsAtY: a, + pointsAtZ: a, preserveAlpha: null, preserveAspectRatio: null, primitiveUnits: null, @@ -5665,8 +5188,8 @@ side: null, slope: null, snapshotTime: null, - specularConstant: s, - specularExponent: s, + specularConstant: a, + specularExponent: a, spreadMethod: null, spacing: null, startOffset: null, @@ -5676,30 +5199,30 @@ stitchTiles: null, stopColor: null, stopOpacity: null, - strikethroughPosition: s, - strikethroughThickness: s, + strikethroughPosition: a, + strikethroughThickness: a, string: null, stroke: null, strokeDashArray: l, strokeDashOffset: null, strokeLineCap: null, strokeLineJoin: null, - strokeMiterLimit: s, - strokeOpacity: s, + strokeMiterLimit: a, + strokeOpacity: a, strokeWidth: null, style: null, - surfaceScale: s, + surfaceScale: a, syncBehavior: null, syncBehaviorDefault: null, syncMaster: null, syncTolerance: null, syncToleranceDefault: null, systemLanguage: l, - tabIndex: s, + tabIndex: a, tableValues: null, target: null, - targetX: s, - targetY: s, + targetX: a, + targetY: a, textAnchor: null, textDecoration: null, textRendering: null, @@ -5713,22 +5236,22 @@ transform: null, u1: null, u2: null, - underlinePosition: s, - underlineThickness: s, + underlinePosition: a, + underlineThickness: a, unicode: null, unicodeBidi: null, unicodeRange: null, - unitsPerEm: s, + unitsPerEm: a, values: null, - vAlphabetic: s, - vMathematical: s, + vAlphabetic: a, + vMathematical: a, vectorEffect: null, - vHanging: s, - vIdeographic: s, + vHanging: a, + vIdeographic: a, version: null, - vertAdvY: s, - vertOriginX: s, - vertOriginY: s, + vertAdvY: a, + vertOriginX: a, + vertOriginY: a, viewBox: null, viewTarget: null, visibility: null, @@ -5740,7 +5263,7 @@ x1: null, x2: null, xChannelSelector: null, - xHeight: s, + xHeight: a, y: null, y1: null, y2: null, @@ -5750,50 +5273,50 @@ }, }); }, - 19348: (e, t, n) => { + 10432: (e, t, n) => { 'use strict'; - var r = n(21098); + var i = n(30771); e.exports = function(e, t) { - return r(e, t.toLowerCase()); + return i(e, t.toLowerCase()); }; }, - 21098: e => { + 30771: e => { 'use strict'; e.exports = function(e, t) { return t in e ? e[t] : t; }; }, - 47589: (e, t, n) => { + 59914: (e, t, n) => { 'use strict'; - var r = n(64977), - i = n(16038), - o = n(78444); + var i = n(66151), + r = n(10111), + o = n(54179); e.exports = function(e) { var t, n, - a = e.space, - s = e.mustUseProperty || [], + s = e.space, + a = e.mustUseProperty || [], A = e.attributes || {}, c = e.properties, l = e.transform, g = {}, u = {}; for (t in c) - (n = new o(t, l(A, t), c[t], a)), - -1 !== s.indexOf(t) && (n.mustUseProperty = !0), + (n = new o(t, l(A, t), c[t], s)), + -1 !== a.indexOf(t) && (n.mustUseProperty = !0), (g[t] = n), - (u[r(t)] = t), - (u[r(n.attribute)] = t); - return new i(g, u, a); + (u[i(t)] = t), + (u[i(n.attribute)] = t); + return new r(g, u, s); }; }, - 78444: (e, t, n) => { + 54179: (e, t, n) => { 'use strict'; - var r = n(40313), - i = n(61422); - (e.exports = s), - (s.prototype = new r()), - (s.prototype.defined = !0); + var i = n(2681), + r = n(66311); + (e.exports = a), + (a.prototype = new i()), + (a.prototype.defined = !0); var o = [ 'boolean', 'booleanish', @@ -5803,18 +5326,18 @@ 'spaceSeparated', 'commaOrSpaceSeparated', ], - a = o.length; - function s(e, t, n, s) { + s = o.length; + function a(e, t, n, a) { var c, l = -1; - for (A(this, 'space', s), r.call(this, e, t); ++l < a; ) - A(this, (c = o[l]), (n & i[c]) === i[c]); + for (A(this, 'space', a), i.call(this, e, t); ++l < s; ) + A(this, (c = o[l]), (n & r[c]) === r[c]); } function A(e, t, n) { n && (e[t] = n); } }, - 40313: e => { + 2681: e => { 'use strict'; e.exports = n; var t = n.prototype; @@ -5834,26 +5357,26 @@ (t.mustUseProperty = !1), (t.defined = !1); }, - 26230: (e, t, n) => { + 37165: (e, t, n) => { 'use strict'; - var r = n(47529), - i = n(16038); + var i = n(31210), + r = n(10111); e.exports = function(e) { var t, n, o = e.length, - a = [], s = [], + a = [], A = -1; for (; ++A < o; ) (t = e[A]), - a.push(t.property), - s.push(t.normal), + s.push(t.property), + a.push(t.normal), (n = t.space); - return new i(r.apply(null, a), r.apply(null, s), n); + return new r(i.apply(null, s), i.apply(null, a), n); }; }, - 16038: e => { + 10111: e => { 'use strict'; e.exports = n; var t = n.prototype; @@ -5864,24 +5387,24 @@ } (t.space = null), (t.normal = {}), (t.property = {}); }, - 61422: (e, t) => { + 66311: (e, t) => { 'use strict'; var n = 0; - function r() { + function i() { return Math.pow(2, ++n); } - (t.boolean = r()), - (t.booleanish = r()), - (t.overloadedBoolean = r()), - (t.number = r()), - (t.spaceSeparated = r()), - (t.commaSeparated = r()), - (t.commaOrSpaceSeparated = r()); + (t.boolean = i()), + (t.booleanish = i()), + (t.overloadedBoolean = i()), + (t.number = i()), + (t.spaceSeparated = i()), + (t.commaSeparated = i()), + (t.commaOrSpaceSeparated = i()); }, - 13970: (e, t, n) => { + 90334: (e, t, n) => { 'use strict'; - var r = n(47589); - e.exports = r({ + var i = n(59914); + e.exports = i({ space: 'xlink', transform: function(e, t) { return 'xlink:' + t.slice(5).toLowerCase(); @@ -5897,10 +5420,10 @@ }, }); }, - 10629: (e, t, n) => { + 40815: (e, t, n) => { 'use strict'; - var r = n(47589); - e.exports = r({ + var i = n(59914); + e.exports = i({ space: 'xml', transform: function(e, t) { return 'xml:' + t.slice(3).toLowerCase(); @@ -5908,34 +5431,34 @@ properties: {xmlLang: null, xmlBase: null, xmlSpace: null}, }); }, - 647: (e, t, n) => { + 72283: (e, t, n) => { 'use strict'; - var r = n(47589), - i = n(19348); - e.exports = r({ + var i = n(59914), + r = n(10432); + e.exports = i({ space: 'xmlns', attributes: {xmlnsxlink: 'xmlns:xlink'}, - transform: i, + transform: r, properties: {xmlns: null, xmlnsXLink: null}, }); }, - 64977: e => { + 66151: e => { 'use strict'; e.exports = function(e) { return e.toLowerCase(); }; }, - 79180: (e, t, n) => { + 38028: (e, t, n) => { 'use strict'; - var r = n(26230), - i = n(13970), - o = n(10629), - a = n(647), - s = n(91305), - A = n(56242); - e.exports = r([o, i, a, s, A]); - }, - 32473: (e, t) => { + var i = n(37165), + r = n(90334), + o = n(40815), + s = n(72283), + a = n(89317), + A = n(7562); + e.exports = i([o, r, s, a, A]); + }, + 61410: (e, t) => { 'use strict'; t.Q = function(e) { var t = String(e || '').trim(); @@ -5943,17 +5466,17 @@ }; var n = /[ \t\n\r\f]+/g; }, - 9505: (e, t, n) => { + 75762: (e, t, n) => { 'use strict'; - var r = n(79180), - i = n(76947), - o = n(62502)(r, 'g', i); + var i = n(38028), + r = n(42660), + o = n(65020)(i, 'g', r); (o.displayName = 'svg'), (e.exports = o); }, - 8679: (e, t, n) => { + 13307: (e, t, n) => { 'use strict'; - var r = n(59864), - i = { + var i = n(32826), + r = { childContextTypes: !0, contextType: !0, contextTypes: !0, @@ -5975,7 +5498,7 @@ arguments: !0, arity: !0, }, - a = { + s = { $$typeof: !0, compare: !0, defaultProps: !0, @@ -5983,40 +5506,40 @@ propTypes: !0, type: !0, }, - s = {}; + a = {}; function A(e) { - return r.isMemo(e) ? a : s[e.$$typeof] || i; + return i.isMemo(e) ? s : a[e.$$typeof] || r; } - (s[r.ForwardRef] = { + (a[i.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0, }), - (s[r.Memo] = a); + (a[i.Memo] = s); var c = Object.defineProperty, l = Object.getOwnPropertyNames, g = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, h = Object.prototype; - e.exports = function e(t, n, r) { + e.exports = function e(t, n, i) { if ('string' != typeof n) { if (h) { - var i = d(n); - i && i !== h && e(t, i, r); + var r = d(n); + r && r !== h && e(t, r, i); } - var a = l(n); - g && (a = a.concat(g(n))); - for (var s = A(t), C = A(n), I = 0; I < a.length; ++I) { - var p = a[I]; + var s = l(n); + g && (s = s.concat(g(n))); + for (var a = A(t), C = A(n), I = 0; I < s.length; ++I) { + var p = s[I]; if ( !( o[p] || - (r && r[p]) || + (i && i[p]) || (C && C[p]) || - (s && s[p]) + (a && a[p]) ) ) { var m = u(n, p); @@ -6029,14 +5552,14 @@ return t; }; }, - 18139: e => { + 93087: e => { var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, - r = /^\s*/, - i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, + i = /^\s*/, + r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, - a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, - s = /^[;\s]*/, + s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, + a = /^[;\s]*/, A = /^\s+|\s+$/g, c = ''; function l(e) { @@ -6052,8 +5575,8 @@ function d(e) { var t = e.match(n); t && (g += t.length); - var r = e.lastIndexOf('\n'); - u = ~r ? e.length - r : u + e.length; + var i = e.lastIndexOf('\n'); + u = ~i ? e.length - i : u + e.length; } function h() { var e = {line: g, column: u}; @@ -6086,12 +5609,12 @@ function m(t) { var n = t.exec(e); if (n) { - var r = n[0]; - return d(r), (e = e.slice(r.length)), n; + var i = n[0]; + return d(i), (e = e.slice(i.length)), n; } } function f() { - m(r); + m(i); } function E(e) { var t; @@ -6110,28 +5633,28 @@ ++n; if (((n += 2), c === e.charAt(n - 1))) return p('End of comment missing'); - var r = e.slice(2, n - 2); + var i = e.slice(2, n - 2); return ( (u += 2), - d(r), + d(i), (e = e.slice(n)), (u += 2), - t({type: 'comment', comment: r}) + t({type: 'comment', comment: i}) ); } } function B() { var e = h(), - n = m(i); + n = m(r); if (n) { if ((y(), !m(o))) return p("property missing ':'"); - var r = m(a), + var i = m(s), A = e({ type: 'declaration', property: l(n[0].replace(t, c)), - value: r ? l(r[0].replace(t, c)) : c, + value: i ? l(i[0].replace(t, c)) : c, }); - return m(s), A; + return m(a), A; } } return ( @@ -6146,7 +5669,17 @@ ); }; }, - 5826: e => { + 96417: e => { + e.exports = function(e) { + return ( + null != e && + null != e.constructor && + 'function' == typeof e.constructor.isBuffer && + e.constructor.isBuffer(e) + ); + }; + }, + 7360: e => { e.exports = Array.isArray || function(e) { @@ -6156,34 +5689,34 @@ ); }; }, - 18552: (e, t, n) => { - var r = n(10852)(n(55639), 'DataView'); - e.exports = r; + 31577: (e, t, n) => { + var i = n(35102)(n(45127), 'DataView'); + e.exports = i; }, - 1989: (e, t, n) => { - var r = n(51789), - i = n(80401), - o = n(57667), - a = n(21327), - s = n(81866); + 49459: (e, t, n) => { + var i = n(21807), + r = n(5032), + o = n(92465), + s = n(49738), + a = n(94023); function A(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } - (A.prototype.clear = r), - (A.prototype.delete = i), + (A.prototype.clear = i), + (A.prototype.delete = r), (A.prototype.get = o), - (A.prototype.has = a), - (A.prototype.set = s), + (A.prototype.has = s), + (A.prototype.set = a), (e.exports = A); }, - 96425: (e, t, n) => { - var r = n(3118), - i = n(9435); + 63956: (e, t, n) => { + var i = n(27280), + r = n(66189); function o(e) { (this.__wrapped__ = e), (this.__actions__ = []), @@ -6193,34 +5726,34 @@ (this.__takeCount__ = 4294967295), (this.__views__ = []); } - (o.prototype = r(i.prototype)), + (o.prototype = i(r.prototype)), (o.prototype.constructor = o), (e.exports = o); }, - 38407: (e, t, n) => { - var r = n(27040), - i = n(14125), - o = n(82117), - a = n(67518), - s = n(54705); + 44104: (e, t, n) => { + var i = n(95668), + r = n(58354), + o = n(63793), + s = n(48985), + a = n(31097); function A(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } - (A.prototype.clear = r), - (A.prototype.delete = i), + (A.prototype.clear = i), + (A.prototype.delete = r), (A.prototype.get = o), - (A.prototype.has = a), - (A.prototype.set = s), + (A.prototype.has = s), + (A.prototype.set = a), (e.exports = A); }, - 7548: (e, t, n) => { - var r = n(3118), - i = n(9435); + 20140: (e, t, n) => { + var i = n(27280), + r = n(66189); function o(e, t) { (this.__wrapped__ = e), (this.__actions__ = []), @@ -6228,87 +5761,87 @@ (this.__index__ = 0), (this.__values__ = void 0); } - (o.prototype = r(i.prototype)), + (o.prototype = i(r.prototype)), (o.prototype.constructor = o), (e.exports = o); }, - 57071: (e, t, n) => { - var r = n(10852)(n(55639), 'Map'); - e.exports = r; + 29962: (e, t, n) => { + var i = n(35102)(n(45127), 'Map'); + e.exports = i; }, - 83369: (e, t, n) => { - var r = n(24785), - i = n(11285), - o = n(96e3), - a = n(49916), - s = n(95265); + 38224: (e, t, n) => { + var i = n(57721), + r = n(5454), + o = n(94708), + s = n(89813), + a = n(74343); function A(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } - (A.prototype.clear = r), - (A.prototype.delete = i), + (A.prototype.clear = i), + (A.prototype.delete = r), (A.prototype.get = o), - (A.prototype.has = a), - (A.prototype.set = s), + (A.prototype.has = s), + (A.prototype.set = a), (e.exports = A); }, - 53818: (e, t, n) => { - var r = n(10852)(n(55639), 'Promise'); - e.exports = r; + 31480: (e, t, n) => { + var i = n(35102)(n(45127), 'Promise'); + e.exports = i; }, - 58525: (e, t, n) => { - var r = n(10852)(n(55639), 'Set'); - e.exports = r; + 8764: (e, t, n) => { + var i = n(35102)(n(45127), 'Set'); + e.exports = i; }, - 88668: (e, t, n) => { - var r = n(83369), - i = n(90619), - o = n(72385); - function a(e) { + 46490: (e, t, n) => { + var i = n(38224), + r = n(22730), + o = n(23963); + function s(e) { var t = -1, n = null == e ? 0 : e.length; - for (this.__data__ = new r(); ++t < n; ) this.add(e[t]); - } - (a.prototype.add = a.prototype.push = i), - (a.prototype.has = o), - (e.exports = a); - }, - 46384: (e, t, n) => { - var r = n(38407), - i = n(37465), - o = n(63779), - a = n(67599), - s = n(44758), - A = n(34309); + for (this.__data__ = new i(); ++t < n; ) this.add(e[t]); + } + (s.prototype.add = s.prototype.push = r), + (s.prototype.has = o), + (e.exports = s); + }, + 38864: (e, t, n) => { + var i = n(44104), + r = n(35502), + o = n(9928), + s = n(13032), + a = n(17351), + A = n(68477); function c(e) { - var t = (this.__data__ = new r(e)); + var t = (this.__data__ = new i(e)); this.size = t.size; } - (c.prototype.clear = i), + (c.prototype.clear = r), (c.prototype.delete = o), - (c.prototype.get = a), - (c.prototype.has = s), + (c.prototype.get = s), + (c.prototype.has = a), (c.prototype.set = A), (e.exports = c); }, - 62705: (e, t, n) => { - var r = n(55639).Symbol; - e.exports = r; + 94506: (e, t, n) => { + var i = n(45127).Symbol; + e.exports = i; }, - 11149: (e, t, n) => { - var r = n(55639).Uint8Array; - e.exports = r; + 6597: (e, t, n) => { + var i = n(45127).Uint8Array; + e.exports = i; }, - 70577: (e, t, n) => { - var r = n(10852)(n(55639), 'WeakMap'); - e.exports = r; + 36135: (e, t, n) => { + var i = n(35102)(n(45127), 'WeakMap'); + e.exports = i; }, - 96874: e => { + 90703: e => { e.exports = function(e, t, n) { switch (n.length) { case 0: @@ -6323,57 +5856,57 @@ return e.apply(t, n); }; }, - 77412: e => { + 38461: e => { e.exports = function(e, t) { for ( - var n = -1, r = null == e ? 0 : e.length; - ++n < r && !1 !== t(e[n], n, e); + var n = -1, i = null == e ? 0 : e.length; + ++n < i && !1 !== t(e[n], n, e); ); return e; }; }, - 34963: e => { + 62783: e => { e.exports = function(e, t) { for ( - var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; - ++n < r; + var n = -1, i = null == e ? 0 : e.length, r = 0, o = []; + ++n < i; ) { - var a = e[n]; - t(a, n, e) && (o[i++] = a); + var s = e[n]; + t(s, n, e) && (o[r++] = s); } return o; }; }, - 47443: (e, t, n) => { - var r = n(42118); + 31278: (e, t, n) => { + var i = n(71373); e.exports = function(e, t) { - return !!(null == e ? 0 : e.length) && r(e, t, 0) > -1; + return !!(null == e ? 0 : e.length) && i(e, t, 0) > -1; }; }, - 1196: e => { + 66357: e => { e.exports = function(e, t, n) { - for (var r = -1, i = null == e ? 0 : e.length; ++r < i; ) - if (n(t, e[r])) return !0; + for (var i = -1, r = null == e ? 0 : e.length; ++i < r; ) + if (n(t, e[i])) return !0; return !1; }; }, - 14636: (e, t, n) => { - var r = n(22545), - i = n(35694), - o = n(1469), - a = n(44144), - s = n(65776), - A = n(36719), + 25086: (e, t, n) => { + var i = n(203), + r = n(9511), + o = n(15811), + s = n(85839), + a = n(3898), + A = n(25209), c = Object.prototype.hasOwnProperty; e.exports = function(e, t) { var n = o(e), - l = !n && i(e), - g = !n && !l && a(e), + l = !n && r(e), + g = !n && !l && s(e), u = !n && !l && !g && A(e), d = n || l || g || u, - h = d ? r(e.length, String) : [], + h = d ? i(e.length, String) : [], C = h.length; for (var I in e) (!t && !c.call(e, I)) || @@ -6384,81 +5917,81 @@ ('buffer' == I || 'byteLength' == I || 'byteOffset' == I)) || - s(I, C))) || + a(I, C))) || h.push(I); return h; }; }, - 29932: e => { + 74145: e => { e.exports = function(e, t) { for ( - var n = -1, r = null == e ? 0 : e.length, i = Array(r); - ++n < r; + var n = -1, i = null == e ? 0 : e.length, r = Array(i); + ++n < i; ) - i[n] = t(e[n], n, e); - return i; + r[n] = t(e[n], n, e); + return r; }; }, - 62488: e => { + 87305: e => { e.exports = function(e, t) { - for (var n = -1, r = t.length, i = e.length; ++n < r; ) - e[i + n] = t[n]; + for (var n = -1, i = t.length, r = e.length; ++n < i; ) + e[r + n] = t[n]; return e; }; }, - 82908: e => { + 81938: e => { e.exports = function(e, t) { - for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) + for (var n = -1, i = null == e ? 0 : e.length; ++n < i; ) if (t(e[n], n, e)) return !0; return !1; }; }, - 86556: (e, t, n) => { - var r = n(89465), - i = n(77813); + 38716: (e, t, n) => { + var i = n(75401), + r = n(49822); e.exports = function(e, t, n) { - ((void 0 !== n && !i(e[t], n)) || + ((void 0 !== n && !r(e[t], n)) || (void 0 === n && !(t in e))) && - r(e, t, n); + i(e, t, n); }; }, - 34865: (e, t, n) => { - var r = n(89465), - i = n(77813), + 44033: (e, t, n) => { + var i = n(75401), + r = n(49822), o = Object.prototype.hasOwnProperty; e.exports = function(e, t, n) { - var a = e[t]; - (o.call(e, t) && i(a, n) && (void 0 !== n || t in e)) || - r(e, t, n); + var s = e[t]; + (o.call(e, t) && r(s, n) && (void 0 !== n || t in e)) || + i(e, t, n); }; }, - 18470: (e, t, n) => { - var r = n(77813); + 49768: (e, t, n) => { + var i = n(49822); e.exports = function(e, t) { - for (var n = e.length; n--; ) if (r(e[n][0], t)) return n; + for (var n = e.length; n--; ) if (i(e[n][0], t)) return n; return -1; }; }, - 44037: (e, t, n) => { - var r = n(98363), - i = n(3674); + 25788: (e, t, n) => { + var i = n(84512), + r = n(81832); e.exports = function(e, t) { - return e && r(t, i(t), e); + return e && i(t, r(t), e); }; }, - 63886: (e, t, n) => { - var r = n(98363), - i = n(23360); + 49313: (e, t, n) => { + var i = n(84512), + r = n(56635); e.exports = function(e, t) { - return e && r(t, i(t), e); + return e && i(t, r(t), e); }; }, - 89465: (e, t, n) => { - var r = n(38777); + 75401: (e, t, n) => { + var i = n(15908); e.exports = function(e, t, n) { - '__proto__' == t && r - ? r(e, t, { + '__proto__' == t && i + ? i(e, t, { configurable: !0, enumerable: !0, value: n, @@ -6467,100 +6000,100 @@ : (e[t] = n); }; }, - 85990: (e, t, n) => { - var r = n(46384), - i = n(77412), - o = n(34865), - a = n(44037), - s = n(63886), - A = n(64626), - c = n(278), - l = n(18805), - g = n(1911), - u = n(58234), - d = n(46904), - h = n(64160), - C = n(43824), - I = n(29148), - p = n(38517), - m = n(1469), - f = n(44144), - E = n(56688), - y = n(13218), - B = n(72928), - w = n(3674), - b = '[object Arguments]', + 51e3: (e, t, n) => { + var i = n(38864), + r = n(38461), + o = n(44033), + s = n(25788), + a = n(49313), + A = n(6096), + c = n(76972), + l = n(74609), + g = n(46367), + u = n(8746), + d = n(98222), + h = n(62629), + C = n(12649), + I = n(57788), + p = n(30003), + m = n(15811), + f = n(85839), + E = n(44003), + y = n(40162), + B = n(84723), + w = n(81832), + b = n(56635), + M = '[object Arguments]', v = '[object Function]', - M = '[object Object]', - N = {}; - (N[b] = N['[object Array]'] = N['[object ArrayBuffer]'] = N[ + N = '[object Object]', + S = {}; + (S[M] = S['[object Array]'] = S['[object ArrayBuffer]'] = S[ '[object DataView]' - ] = N['[object Boolean]'] = N['[object Date]'] = N[ + ] = S['[object Boolean]'] = S['[object Date]'] = S[ '[object Float32Array]' - ] = N['[object Float64Array]'] = N['[object Int8Array]'] = N[ + ] = S['[object Float64Array]'] = S['[object Int8Array]'] = S[ '[object Int16Array]' - ] = N['[object Int32Array]'] = N['[object Map]'] = N[ + ] = S['[object Int32Array]'] = S['[object Map]'] = S[ '[object Number]' - ] = N[M] = N['[object RegExp]'] = N['[object Set]'] = N[ + ] = S[N] = S['[object RegExp]'] = S['[object Set]'] = S[ '[object String]' - ] = N['[object Symbol]'] = N['[object Uint8Array]'] = N[ + ] = S['[object Symbol]'] = S['[object Uint8Array]'] = S[ '[object Uint8ClampedArray]' - ] = N['[object Uint16Array]'] = N['[object Uint32Array]'] = !0), - (N['[object Error]'] = N[v] = N['[object WeakMap]'] = !1), - (e.exports = function e(t, n, S, Q, F, x) { - var D, - T = 1 & n, - Y = 2 & n, - R = 4 & n; - if ((S && (D = F ? S(t, Q, F, x) : S(t)), void 0 !== D)) - return D; + ] = S['[object Uint16Array]'] = S['[object Uint32Array]'] = !0), + (S['[object Error]'] = S[v] = S['[object WeakMap]'] = !1), + (e.exports = function e(t, n, Q, x, F, D) { + var T, + Y = 1 & n, + R = 2 & n, + _ = 4 & n; + if ((Q && (T = F ? Q(t, x, F, D) : Q(t)), void 0 !== T)) + return T; if (!y(t)) return t; - var _ = m(t); - if (_) { - if (((D = C(t)), !T)) return c(t, D); + var U = m(t); + if (U) { + if (((T = C(t)), !Y)) return c(t, T); } else { - var U = h(t), - O = U == v || '[object GeneratorFunction]' == U; - if (f(t)) return A(t, T); - if (U == M || U == b || (O && !F)) { - if (((D = Y || O ? {} : p(t)), !T)) - return Y ? g(t, s(D, t)) : l(t, a(D, t)); + var O = h(t), + G = O == v || '[object GeneratorFunction]' == O; + if (f(t)) return A(t, Y); + if (O == N || O == M || (G && !F)) { + if (((T = R || G ? {} : p(t)), !Y)) + return R ? g(t, a(T, t)) : l(t, s(T, t)); } else { - if (!N[U]) return F ? t : {}; - D = I(t, U, T); + if (!S[O]) return F ? t : {}; + T = I(t, O, Y); } } - x || (x = new r()); - var k = x.get(t); - if (k) return k; - x.set(t, D), + D || (D = new i()); + var L = D.get(t); + if (L) return L; + D.set(t, T), B(t) - ? t.forEach(function(r) { - D.add(e(r, n, S, r, t, x)); + ? t.forEach(function(i) { + T.add(e(i, n, Q, i, t, D)); }) : E(t) && - t.forEach(function(r, i) { - D.set(i, e(r, n, S, i, t, x)); + t.forEach(function(i, r) { + T.set(r, e(i, n, Q, r, t, D)); }); - var G = R ? (Y ? d : u) : Y ? keysIn : w, - L = _ ? void 0 : G(t); + var k = U ? void 0 : (_ ? (R ? d : u) : R ? b : w)(t); return ( - i(L || t, function(r, i) { - L && (r = t[(i = r)]), - o(D, i, e(r, n, S, i, t, x)); + r(k || t, function(i, r) { + k && (i = t[(r = i)]), + o(T, r, e(i, n, Q, r, t, D)); }), - D + T ); }); }, - 3118: (e, t, n) => { - var r = n(13218), - i = Object.create, + 27280: (e, t, n) => { + var i = n(40162), + r = Object.create, o = (function() { function e() {} return function(t) { - if (!r(t)) return {}; - if (i) return i(t); + if (!i(t)) return {}; + if (r) return r(t); e.prototype = t; var n = new e(); return (e.prototype = void 0), n; @@ -6568,26 +6101,26 @@ })(); e.exports = o; }, - 20731: (e, t, n) => { - var r = n(88668), - i = n(47443), - o = n(1196), - a = n(29932), - s = n(7518), - A = n(74757); + 64351: (e, t, n) => { + var i = n(46490), + r = n(31278), + o = n(66357), + s = n(74145), + a = n(79576), + A = n(33121); e.exports = function(e, t, n, c) { var l = -1, - g = i, + g = r, u = !0, d = e.length, h = [], C = t.length; if (!d) return h; - n && (t = a(t, s(n))), + n && (t = s(t, a(n))), c ? ((g = o), (u = !1)) : t.length >= 200 && - ((g = A), (u = !1), (t = new r(t))); + ((g = A), (u = !1), (t = new i(t))); e: for (; ++l < d; ) { var I = e[l], p = null == n ? I : n(I); @@ -6599,115 +6132,115 @@ return h; }; }, - 41848: e => { - e.exports = function(e, t, n, r) { + 87226: e => { + e.exports = function(e, t, n, i) { for ( - var i = e.length, o = n + (r ? 1 : -1); - r ? o-- : ++o < i; + var r = e.length, o = n + (i ? 1 : -1); + i ? o-- : ++o < r; ) if (t(e[o], o, e)) return o; return -1; }; }, - 21078: (e, t, n) => { - var r = n(62488), - i = n(37285); - e.exports = function e(t, n, o, a, s) { + 76479: (e, t, n) => { + var i = n(87305), + r = n(70996); + e.exports = function e(t, n, o, s, a) { var A = -1, c = t.length; - for (o || (o = i), s || (s = []); ++A < c; ) { + for (o || (o = r), a || (a = []); ++A < c; ) { var l = t[A]; n > 0 && o(l) ? n > 1 - ? e(l, n - 1, o, a, s) - : r(s, l) - : a || (s[s.length] = l); + ? e(l, n - 1, o, s, a) + : i(a, l) + : s || (a[a.length] = l); } - return s; + return a; }; }, - 28483: (e, t, n) => { - var r = n(25063)(); - e.exports = r; + 29169: (e, t, n) => { + var i = n(98467)(); + e.exports = i; }, - 97786: (e, t, n) => { - var r = n(71811), - i = n(40327); + 34951: (e, t, n) => { + var i = n(41526), + r = n(40641); e.exports = function(e, t) { for ( - var n = 0, o = (t = r(t, e)).length; + var n = 0, o = (t = i(t, e)).length; null != e && n < o; ) - e = e[i(t[n++])]; + e = e[r(t[n++])]; return n && n == o ? e : void 0; }; }, - 68866: (e, t, n) => { - var r = n(62488), - i = n(1469); + 78446: (e, t, n) => { + var i = n(87305), + r = n(15811); e.exports = function(e, t, n) { var o = t(e); - return i(e) ? o : r(o, n(e)); + return r(e) ? o : i(o, n(e)); }; }, - 44239: (e, t, n) => { - var r = n(62705), - i = n(89607), - o = n(2333), - a = r ? r.toStringTag : void 0; + 31098: (e, t, n) => { + var i = n(94506), + r = n(47713), + o = n(13188), + s = i ? i.toStringTag : void 0; e.exports = function(e) { return null == e ? void 0 === e ? '[object Undefined]' : '[object Null]' - : a && a in Object(e) - ? i(e) + : s && s in Object(e) + ? r(e) : o(e); }; }, - 13: e => { + 70004: e => { e.exports = function(e, t) { return null != e && t in Object(e); }; }, - 42118: (e, t, n) => { - var r = n(41848), - i = n(62722), - o = n(42351); + 71373: (e, t, n) => { + var i = n(87226), + r = n(44655), + o = n(27134); e.exports = function(e, t, n) { - return t == t ? o(e, t, n) : r(e, i, n); + return t == t ? o(e, t, n) : i(e, r, n); }; }, - 9454: (e, t, n) => { - var r = n(44239), - i = n(37005); + 96356: (e, t, n) => { + var i = n(31098), + r = n(23894); e.exports = function(e) { - return i(e) && '[object Arguments]' == r(e); + return r(e) && '[object Arguments]' == i(e); }; }, - 90939: (e, t, n) => { - var r = n(2492), - i = n(37005); - e.exports = function e(t, n, o, a, s) { + 40072: (e, t, n) => { + var i = n(25821), + r = n(23894); + e.exports = function e(t, n, o, s, a) { return ( t === n || - (null == t || null == n || (!i(t) && !i(n)) + (null == t || null == n || (!r(t) && !r(n)) ? t != t && n != n - : r(t, n, o, a, e, s)) + : i(t, n, o, s, e, a)) ); }; }, - 2492: (e, t, n) => { - var r = n(46384), - i = n(67114), - o = n(18351), - a = n(16096), - s = n(64160), - A = n(1469), - c = n(44144), - l = n(36719), + 25821: (e, t, n) => { + var i = n(38864), + r = n(15817), + o = n(65151), + s = n(17773), + a = n(62629), + A = n(15811), + c = n(85839), + l = n(25209), g = '[object Arguments]', u = '[object Array]', d = '[object Object]', @@ -6715,8 +6248,8 @@ e.exports = function(e, t, n, C, I, p) { var m = A(e), f = A(t), - E = m ? u : s(e), - y = f ? u : s(t), + E = m ? u : a(e), + y = f ? u : a(t), B = (E = E == g ? d : E) == d, w = (y = y == g ? d : y) == d, b = E == y; @@ -6726,70 +6259,70 @@ } if (b && !B) return ( - p || (p = new r()), + p || (p = new i()), m || l(e) - ? i(e, t, n, C, I, p) + ? r(e, t, n, C, I, p) : o(e, t, E, n, C, I, p) ); if (!(1 & n)) { - var v = B && h.call(e, '__wrapped__'), - M = w && h.call(t, '__wrapped__'); - if (v || M) { - var N = v ? e.value() : e, - S = M ? t.value() : t; - return p || (p = new r()), I(N, S, n, C, p); + var M = B && h.call(e, '__wrapped__'), + v = w && h.call(t, '__wrapped__'); + if (M || v) { + var N = M ? e.value() : e, + S = v ? t.value() : t; + return p || (p = new i()), I(N, S, n, C, p); } } - return !!b && (p || (p = new r()), a(e, t, n, C, I, p)); + return !!b && (p || (p = new i()), s(e, t, n, C, I, p)); }; }, - 25588: (e, t, n) => { - var r = n(64160), - i = n(37005); + 22388: (e, t, n) => { + var i = n(62629), + r = n(23894); e.exports = function(e) { - return i(e) && '[object Map]' == r(e); + return r(e) && '[object Map]' == i(e); }; }, - 2958: (e, t, n) => { - var r = n(46384), - i = n(90939); + 54082: (e, t, n) => { + var i = n(38864), + r = n(40072); e.exports = function(e, t, n, o) { - var a = n.length, - s = a, + var s = n.length, + a = s, A = !o; - if (null == e) return !s; - for (e = Object(e); a--; ) { - var c = n[a]; + if (null == e) return !a; + for (e = Object(e); s--; ) { + var c = n[s]; if (A && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1; } - for (; ++a < s; ) { - var l = (c = n[a])[0], + for (; ++s < a; ) { + var l = (c = n[s])[0], g = e[l], u = c[1]; if (A && c[2]) { if (void 0 === g && !(l in e)) return !1; } else { - var d = new r(); + var d = new i(); if (o) var h = o(g, u, l, e, t, d); - if (!(void 0 === h ? i(u, g, 3, o, d) : h)) + if (!(void 0 === h ? r(u, g, 3, o, d) : h)) return !1; } } return !0; }; }, - 62722: e => { + 44655: e => { e.exports = function(e) { return e != e; }; }, - 28458: (e, t, n) => { - var r = n(23560), - i = n(15346), - o = n(13218), - a = n(80346), - s = /^\[object .+?Constructor\]$/, + 38893: (e, t, n) => { + var i = n(88837), + r = n(32375), + o = n(40162), + s = n(71265), + a = /^\[object .+?Constructor\]$/, A = Function.prototype, c = Object.prototype, l = A.toString, @@ -6806,488 +6339,495 @@ '$' ); e.exports = function(e) { - return !(!o(e) || i(e)) && (r(e) ? u : s).test(a(e)); + return !(!o(e) || r(e)) && (i(e) ? u : a).test(s(e)); }; }, - 29221: (e, t, n) => { - var r = n(64160), - i = n(37005); + 2831: (e, t, n) => { + var i = n(62629), + r = n(23894); e.exports = function(e) { - return i(e) && '[object Set]' == r(e); + return r(e) && '[object Set]' == i(e); }; }, - 38749: (e, t, n) => { - var r = n(44239), - i = n(41780), - o = n(37005), - a = {}; - (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ + 30337: (e, t, n) => { + var i = n(31098), + r = n(17292), + o = n(23894), + s = {}; + (s['[object Float32Array]'] = s['[object Float64Array]'] = s[ '[object Int8Array]' - ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ + ] = s['[object Int16Array]'] = s['[object Int32Array]'] = s[ '[object Uint8Array]' - ] = a['[object Uint8ClampedArray]'] = a[ + ] = s['[object Uint8ClampedArray]'] = s[ '[object Uint16Array]' - ] = a['[object Uint32Array]'] = !0), - (a['[object Arguments]'] = a['[object Array]'] = a[ + ] = s['[object Uint32Array]'] = !0), + (s['[object Arguments]'] = s['[object Array]'] = s[ '[object ArrayBuffer]' - ] = a['[object Boolean]'] = a['[object DataView]'] = a[ + ] = s['[object Boolean]'] = s['[object DataView]'] = s[ '[object Date]' - ] = a['[object Error]'] = a['[object Function]'] = a[ + ] = s['[object Error]'] = s['[object Function]'] = s[ '[object Map]' - ] = a['[object Number]'] = a['[object Object]'] = a[ + ] = s['[object Number]'] = s['[object Object]'] = s[ '[object RegExp]' - ] = a['[object Set]'] = a['[object String]'] = a[ + ] = s['[object Set]'] = s['[object String]'] = s[ '[object WeakMap]' ] = !1), (e.exports = function(e) { - return o(e) && i(e.length) && !!a[r(e)]; + return o(e) && r(e.length) && !!s[i(e)]; }); }, - 67206: (e, t, n) => { - var r = n(91573), - i = n(16432), - o = n(6557), - a = n(1469), - s = n(39601); + 74224: (e, t, n) => { + var i = n(67225), + r = n(24302), + o = n(28198), + s = n(15811), + a = n(96669); e.exports = function(e) { return 'function' == typeof e ? e : null == e ? o : 'object' == typeof e - ? a(e) - ? i(e[0], e[1]) - : r(e) - : s(e); + ? s(e) + ? r(e[0], e[1]) + : i(e) + : a(e); }; }, - 280: (e, t, n) => { - var r = n(25726), - i = n(86916), + 7212: (e, t, n) => { + var i = n(14943), + r = n(13044), o = Object.prototype.hasOwnProperty; e.exports = function(e) { - if (!r(e)) return i(e); + if (!i(e)) return r(e); var t = []; for (var n in Object(e)) o.call(e, n) && 'constructor' != n && t.push(n); return t; }; }, - 10313: (e, t, n) => { - var r = n(13218), - i = n(25726), - o = n(33498), - a = Object.prototype.hasOwnProperty; + 72694: (e, t, n) => { + var i = n(40162), + r = n(14943), + o = n(57817), + s = Object.prototype.hasOwnProperty; e.exports = function(e) { - if (!r(e)) return o(e); - var t = i(e), + if (!i(e)) return o(e); + var t = r(e), n = []; - for (var s in e) - ('constructor' != s || (!t && a.call(e, s))) && - n.push(s); + for (var a in e) + ('constructor' != a || (!t && s.call(e, a))) && + n.push(a); return n; }; }, - 9435: e => { + 66189: e => { e.exports = function() {}; }, - 91573: (e, t, n) => { - var r = n(2958), - i = n(1499), - o = n(42634); + 67225: (e, t, n) => { + var i = n(54082), + r = n(63786), + o = n(97226); e.exports = function(e) { - var t = i(e); + var t = r(e); return 1 == t.length && t[0][2] ? o(t[0][0], t[0][1]) : function(n) { - return n === e || r(n, e, t); + return n === e || i(n, e, t); }; }; }, - 16432: (e, t, n) => { - var r = n(90939), - i = n(27361), - o = n(79095), - a = n(15403), - s = n(89162), - A = n(42634), - c = n(40327); + 24302: (e, t, n) => { + var i = n(40072), + r = n(13205), + o = n(9699), + s = n(59901), + a = n(40518), + A = n(97226), + c = n(40641); e.exports = function(e, t) { - return a(e) && s(t) + return s(e) && a(t) ? A(c(e), t) : function(n) { - var a = i(n, e); - return void 0 === a && a === t + var s = r(n, e); + return void 0 === s && s === t ? o(n, e) - : r(t, a, 3); + : i(t, s, 3); }; }; }, - 42980: (e, t, n) => { - var r = n(46384), - i = n(86556), - o = n(28483), - a = n(59783), - s = n(13218), - A = n(23360), - c = n(36390); + 54663: (e, t, n) => { + var i = n(38864), + r = n(38716), + o = n(29169), + s = n(69757), + a = n(40162), + A = n(56635), + c = n(31592); e.exports = function e(t, n, l, g, u) { t !== n && o( n, function(o, A) { - if ((u || (u = new r()), s(o))) - a(t, n, A, l, e, g, u); + if ((u || (u = new i()), a(o))) + s(t, n, A, l, e, g, u); else { var d = g ? g(c(t, A), o, A + '', t, n, u) : void 0; - void 0 === d && (d = o), i(t, A, d); + void 0 === d && (d = o), r(t, A, d); } }, A ); }; }, - 59783: (e, t, n) => { - var r = n(86556), - i = n(64626), - o = n(77133), - a = n(278), - s = n(38517), - A = n(35694), - c = n(1469), - l = n(29246), - g = n(44144), - u = n(23560), - d = n(13218), - h = n(68630), - C = n(36719), - I = n(36390), - p = n(59881); + 69757: (e, t, n) => { + var i = n(38716), + r = n(6096), + o = n(93284), + s = n(76972), + a = n(30003), + A = n(9511), + c = n(15811), + l = n(4132), + g = n(85839), + u = n(88837), + d = n(40162), + h = n(29291), + C = n(25209), + I = n(31592), + p = n(66822); e.exports = function(e, t, n, m, f, E, y) { var B = I(e, n), w = I(t, n), b = y.get(w); - if (b) r(e, n, b); + if (b) i(e, n, b); else { - var v = E ? E(B, w, n + '', e, t, y) : void 0, - M = void 0 === v; - if (M) { + var M = E ? E(B, w, n + '', e, t, y) : void 0, + v = void 0 === M; + if (v) { var N = c(w), S = !N && g(w), Q = !N && !S && C(w); - (v = w), + (M = w), N || S || Q ? c(B) - ? (v = B) + ? (M = B) : l(B) - ? (v = a(B)) + ? (M = s(B)) : S - ? ((M = !1), (v = i(w, !0))) + ? ((v = !1), (M = r(w, !0))) : Q - ? ((M = !1), (v = o(w, !0))) - : (v = []) + ? ((v = !1), (M = o(w, !0))) + : (M = []) : h(w) || A(w) - ? ((v = B), + ? ((M = B), A(B) - ? (v = p(B)) - : (d(B) && !u(B)) || (v = s(w))) - : (M = !1); + ? (M = p(B)) + : (d(B) && !u(B)) || (M = a(w))) + : (v = !1); } - M && (y.set(w, v), f(v, w, m, E, y), y.delete(w)), - r(e, n, v); + v && (y.set(w, M), f(M, w, m, E, y), y.delete(w)), + i(e, n, M); } }; }, - 40371: e => { + 75045: e => { e.exports = function(e) { return function(t) { return null == t ? void 0 : t[e]; }; }; }, - 79152: (e, t, n) => { - var r = n(97786); + 22843: (e, t, n) => { + var i = n(34951); e.exports = function(e) { return function(t) { - return r(t, e); + return i(t, e); }; }; }, - 5976: (e, t, n) => { - var r = n(6557), - i = n(45357), - o = n(30061); + 10119: (e, t, n) => { + var i = n(28198), + r = n(68903), + o = n(9587); e.exports = function(e, t) { - return o(i(e, t, r), e + ''); + return o(r(e, t, i), e + ''); }; }, - 28045: (e, t, n) => { - var r = n(6557), - i = n(89250), - o = i + 18310: (e, t, n) => { + var i = n(28198), + r = n(35407), + o = r ? function(e, t) { - return i.set(e, t), e; + return r.set(e, t), e; } - : r; + : i; e.exports = o; }, - 56560: (e, t, n) => { - var r = n(75703), - i = n(38777), - o = n(6557), - a = i + 1709: (e, t, n) => { + var i = n(90339), + r = n(15908), + o = n(28198), + s = r ? function(e, t) { - return i(e, 'toString', { + return r(e, 'toString', { configurable: !0, enumerable: !1, - value: r(t), + value: i(t), writable: !0, }); } : o; - e.exports = a; + e.exports = s; }, - 22545: e => { + 203: e => { e.exports = function(e, t) { - for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); - return r; + for (var n = -1, i = Array(e); ++n < e; ) i[n] = t(n); + return i; }; }, - 80531: (e, t, n) => { - var r = n(62705), - i = n(29932), - o = n(1469), - a = n(33448), - s = r ? r.prototype : void 0, - A = s ? s.toString : void 0; + 46527: (e, t, n) => { + var i = n(94506), + r = n(74145), + o = n(15811), + s = n(39105), + a = i ? i.prototype : void 0, + A = a ? a.toString : void 0; e.exports = function e(t) { if ('string' == typeof t) return t; - if (o(t)) return i(t, e) + ''; - if (a(t)) return A ? A.call(t) : ''; + if (o(t)) return r(t, e) + ''; + if (s(t)) return A ? A.call(t) : ''; var n = t + ''; return '0' == n && 1 / t == -Infinity ? '-0' : n; }; }, - 7518: e => { + 90893: (e, t, n) => { + var i = n(39989), + r = /^\s+/; + e.exports = function(e) { + return e ? e.slice(0, i(e) + 1).replace(r, '') : e; + }; + }, + 79576: e => { e.exports = function(e) { return function(t) { return e(t); }; }; }, - 74757: e => { + 33121: e => { e.exports = function(e, t) { return e.has(t); }; }, - 71811: (e, t, n) => { - var r = n(1469), - i = n(15403), - o = n(55514), - a = n(79833); + 41526: (e, t, n) => { + var i = n(15811), + r = n(59901), + o = n(89359), + s = n(80753); e.exports = function(e, t) { - return r(e) ? e : i(e, t) ? [e] : o(a(e)); + return i(e) ? e : r(e, t) ? [e] : o(s(e)); }; }, - 74318: (e, t, n) => { - var r = n(11149); + 16153: (e, t, n) => { + var i = n(6597); e.exports = function(e) { var t = new e.constructor(e.byteLength); - return new r(t).set(new r(e)), t; + return new i(t).set(new i(e)), t; }; }, - 64626: (e, t, n) => { + 6096: (e, t, n) => { e = n.nmd(e); - var r = n(55639), - i = t && !t.nodeType && t, - o = i && e && !e.nodeType && e, - a = o && o.exports === i ? r.Buffer : void 0, - s = a ? a.allocUnsafe : void 0; + var i = n(45127), + r = t && !t.nodeType && t, + o = r && e && !e.nodeType && e, + s = o && o.exports === r ? i.Buffer : void 0, + a = s ? s.allocUnsafe : void 0; e.exports = function(e, t) { if (t) return e.slice(); var n = e.length, - r = s ? s(n) : new e.constructor(n); - return e.copy(r), r; + i = a ? a(n) : new e.constructor(n); + return e.copy(i), i; }; }, - 57157: (e, t, n) => { - var r = n(74318); + 67875: (e, t, n) => { + var i = n(16153); e.exports = function(e, t) { - var n = t ? r(e.buffer) : e.buffer; + var n = t ? i(e.buffer) : e.buffer; return new e.constructor(n, e.byteOffset, e.byteLength); }; }, - 93147: e => { + 8860: e => { var t = /\w*$/; e.exports = function(e) { var n = new e.constructor(e.source, t.exec(e)); return (n.lastIndex = e.lastIndex), n; }; }, - 40419: (e, t, n) => { - var r = n(62705), - i = r ? r.prototype : void 0, - o = i ? i.valueOf : void 0; + 35523: (e, t, n) => { + var i = n(94506), + r = i ? i.prototype : void 0, + o = r ? r.valueOf : void 0; e.exports = function(e) { return o ? Object(o.call(e)) : {}; }; }, - 77133: (e, t, n) => { - var r = n(74318); + 93284: (e, t, n) => { + var i = n(16153); e.exports = function(e, t) { - var n = t ? r(e.buffer) : e.buffer; + var n = t ? i(e.buffer) : e.buffer; return new e.constructor(n, e.byteOffset, e.length); }; }, - 52157: e => { + 67750: e => { var t = Math.max; - e.exports = function(e, n, r, i) { + e.exports = function(e, n, i, r) { for ( var o = -1, - a = e.length, - s = r.length, + s = e.length, + a = i.length, A = -1, c = n.length, - l = t(a - s, 0), + l = t(s - a, 0), g = Array(c + l), - u = !i; + u = !r; ++A < c; ) g[A] = n[A]; - for (; ++o < s; ) (u || o < a) && (g[r[o]] = e[o]); + for (; ++o < a; ) (u || o < s) && (g[i[o]] = e[o]); for (; l--; ) g[A++] = e[o++]; return g; }; }, - 14054: e => { + 41036: e => { var t = Math.max; - e.exports = function(e, n, r, i) { + e.exports = function(e, n, i, r) { for ( var o = -1, - a = e.length, - s = -1, - A = r.length, + s = e.length, + a = -1, + A = i.length, c = -1, l = n.length, - g = t(a - A, 0), + g = t(s - A, 0), u = Array(g + l), - d = !i; + d = !r; ++o < g; ) u[o] = e[o]; for (var h = o; ++c < l; ) u[h + c] = n[c]; - for (; ++s < A; ) (d || o < a) && (u[h + r[s]] = e[o++]); + for (; ++a < A; ) (d || o < s) && (u[h + i[a]] = e[o++]); return u; }; }, - 278: e => { + 76972: e => { e.exports = function(e, t) { var n = -1, - r = e.length; - for (t || (t = Array(r)); ++n < r; ) t[n] = e[n]; + i = e.length; + for (t || (t = Array(i)); ++n < i; ) t[n] = e[n]; return t; }; }, - 98363: (e, t, n) => { - var r = n(34865), - i = n(89465); + 84512: (e, t, n) => { + var i = n(44033), + r = n(75401); e.exports = function(e, t, n, o) { - var a = !n; + var s = !n; n || (n = {}); - for (var s = -1, A = t.length; ++s < A; ) { - var c = t[s], + for (var a = -1, A = t.length; ++a < A; ) { + var c = t[a], l = o ? o(n[c], e[c], c, n, e) : void 0; - void 0 === l && (l = e[c]), a ? i(n, c, l) : r(n, c, l); + void 0 === l && (l = e[c]), s ? r(n, c, l) : i(n, c, l); } return n; }; }, - 18805: (e, t, n) => { - var r = n(98363), - i = n(99551); + 74609: (e, t, n) => { + var i = n(84512), + r = n(65616); e.exports = function(e, t) { - return r(e, i(e), t); + return i(e, r(e), t); }; }, - 1911: (e, t, n) => { - var r = n(98363), - i = n(51442); + 46367: (e, t, n) => { + var i = n(84512), + r = n(69729); e.exports = function(e, t) { - return r(e, i(e), t); + return i(e, r(e), t); }; }, - 14429: (e, t, n) => { - var r = n(55639)['__core-js_shared__']; - e.exports = r; + 39423: (e, t, n) => { + var i = n(45127)['__core-js_shared__']; + e.exports = i; }, - 97991: e => { + 81193: e => { e.exports = function(e, t) { - for (var n = e.length, r = 0; n--; ) e[n] === t && ++r; - return r; + for (var n = e.length, i = 0; n--; ) e[n] === t && ++i; + return i; }; }, - 21463: (e, t, n) => { - var r = n(5976), - i = n(16612); + 32938: (e, t, n) => { + var i = n(10119), + r = n(5080); e.exports = function(e) { - return r(function(t, n) { - var r = -1, + return i(function(t, n) { + var i = -1, o = n.length, - a = o > 1 ? n[o - 1] : void 0, - s = o > 2 ? n[2] : void 0; + s = o > 1 ? n[o - 1] : void 0, + a = o > 2 ? n[2] : void 0; for ( - a = - e.length > 3 && 'function' == typeof a - ? (o--, a) + s = + e.length > 3 && 'function' == typeof s + ? (o--, s) : void 0, - s && - i(n[0], n[1], s) && - ((a = o < 3 ? void 0 : a), (o = 1)), + a && + r(n[0], n[1], a) && + ((s = o < 3 ? void 0 : s), (o = 1)), t = Object(t); - ++r < o; + ++i < o; ) { - var A = n[r]; - A && e(t, A, r, a); + var A = n[i]; + A && e(t, A, i, s); } return t; }); }; }, - 25063: e => { + 98467: e => { e.exports = function(e) { - return function(t, n, r) { + return function(t, n, i) { for ( - var i = -1, o = Object(t), a = r(t), s = a.length; - s--; + var r = -1, o = Object(t), s = i(t), a = s.length; + a--; ) { - var A = a[e ? s : ++i]; + var A = s[e ? a : ++r]; if (!1 === n(o[A], A, o)) break; } return t; }; }; }, - 22402: (e, t, n) => { - var r = n(71774), - i = n(55639); + 48807: (e, t, n) => { + var i = n(8710), + r = n(45127); e.exports = function(e, t, n) { var o = 1 & t, - a = r(e); + s = i(e); return function t() { - var r = this && this !== i && this instanceof t ? a : e; - return r.apply(o ? n : this, arguments); + var i = this && this !== r && this instanceof t ? s : e; + return i.apply(o ? n : this, arguments); }; }; }, - 71774: (e, t, n) => { - var r = n(3118), - i = n(13218); + 8710: (e, t, n) => { + var i = n(27280), + r = n(40162); e.exports = function(e) { return function() { var t = arguments; @@ -7324,28 +6864,28 @@ t[6] ); } - var n = r(e.prototype), + var n = i(e.prototype), o = e.apply(n, t); - return i(o) ? o : n; + return r(o) ? o : n; }; }; }, - 46347: (e, t, n) => { - var r = n(96874), - i = n(71774), - o = n(86935), - a = n(94487), - s = n(20893), - A = n(46460), - c = n(55639); + 27974: (e, t, n) => { + var i = n(90703), + r = n(8710), + o = n(34807), + s = n(23824), + a = n(4090), + A = n(58179), + c = n(45127); e.exports = function(e, t, n) { - var l = i(e); - return function i() { + var l = r(e); + return function r() { for ( var g = arguments.length, u = Array(g), d = g, - h = s(i); + h = a(r); d--; ) @@ -7355,11 +6895,11 @@ ? [] : A(u, h); if ((g -= C.length) < n) - return a( + return s( e, t, o, - i.placeholder, + r.placeholder, void 0, u, C, @@ -7367,29 +6907,29 @@ void 0, n - g ); - var I = this && this !== c && this instanceof i ? l : e; - return r(I, this, u); + var I = this && this !== c && this instanceof r ? l : e; + return i(I, this, u); }; }; }, - 86935: (e, t, n) => { - var r = n(52157), - i = n(14054), - o = n(97991), - a = n(71774), - s = n(94487), - A = n(20893), - c = n(90451), - l = n(46460), - g = n(55639); + 34807: (e, t, n) => { + var i = n(67750), + r = n(41036), + o = n(81193), + s = n(8710), + a = n(23824), + A = n(4090), + c = n(59530), + l = n(58179), + g = n(45127); e.exports = function e(t, n, u, d, h, C, I, p, m, f) { var E = 128 & n, y = 1 & n, B = 2 & n, w = 24 & n, b = 512 & n, - v = B ? void 0 : a(t); - return function M() { + M = B ? void 0 : s(t); + return function v() { for ( var N = arguments.length, S = Array(N), Q = N; Q--; @@ -7397,20 +6937,20 @@ ) S[Q] = arguments[Q]; if (w) - var F = A(M), - x = o(S, F); + var x = A(v), + F = o(S, x); if ( - (d && (S = r(S, d, h, w)), - C && (S = i(S, C, I, w)), - (N -= x), + (d && (S = i(S, d, h, w)), + C && (S = r(S, C, I, w)), + (N -= F), w && N < f) ) { - var D = l(S, F); - return s( + var D = l(S, x); + return a( t, n, e, - M.placeholder, + v.placeholder, u, S, D, @@ -7427,26 +6967,26 @@ E && m < N && (S.length = m), this && this !== g && - this instanceof M && - (Y = v || a(Y)), + this instanceof v && + (Y = M || s(Y)), Y.apply(T, S) ); }; }; }, - 84375: (e, t, n) => { - var r = n(96874), - i = n(71774), - o = n(55639); - e.exports = function(e, t, n, a) { - var s = 1 & t, - A = i(e); + 36001: (e, t, n) => { + var i = n(90703), + r = n(8710), + o = n(45127); + e.exports = function(e, t, n, s) { + var a = 1 & t, + A = r(e); return function t() { for ( - var i = -1, + var r = -1, c = arguments.length, l = -1, - g = a.length, + g = s.length, u = Array(g + c), d = this && this !== o && this instanceof t @@ -7455,23 +6995,23 @@ ++l < g; ) - u[l] = a[l]; - for (; c--; ) u[l++] = arguments[++i]; - return r(d, s ? n : this, u); + u[l] = s[l]; + for (; c--; ) u[l++] = arguments[++r]; + return i(d, a ? n : this, u); }; }; }, - 94487: (e, t, n) => { - var r = n(86528), - i = n(258), - o = n(69255); - e.exports = function(e, t, n, a, s, A, c, l, g, u) { + 23824: (e, t, n) => { + var i = n(74667), + r = n(70672), + o = n(82719); + e.exports = function(e, t, n, s, a, A, c, l, g, u) { var d = 8 & t; (t |= d ? 32 : 64), 4 & (t &= ~(d ? 64 : 32)) || (t &= -4); var h = [ e, t, - s, + a, d ? A : void 0, d ? c : void 0, d ? void 0 : A, @@ -7481,20 +7021,20 @@ u, ], C = n.apply(void 0, h); - return r(e) && i(C, h), (C.placeholder = a), o(C, e, t); - }; - }, - 97727: (e, t, n) => { - var r = n(28045), - i = n(22402), - o = n(46347), - a = n(86935), - s = n(84375), - A = n(66833), - c = n(63833), - l = n(258), - g = n(69255), - u = n(40554), + return i(e) && r(C, h), (C.placeholder = s), o(C, e, t); + }; + }, + 78397: (e, t, n) => { + var i = n(18310), + r = n(48807), + o = n(27974), + s = n(34807), + a = n(36001), + A = n(73033), + c = n(83933), + l = n(70672), + g = n(82719), + u = n(30090), d = Math.max; e.exports = function(e, t, n, h, C, I, p, m) { var f = 2 & t; @@ -7531,95 +7071,96 @@ (t &= -25), t && 1 != t) ) - v = + M = 8 == t || 16 == t ? o(e, t, m) : (32 != t && 33 != t) || C.length - ? a.apply(void 0, b) - : s(e, t, n, h); - else var v = i(e, t, n); - return g((w ? r : l)(v, b), e, t); + ? s.apply(void 0, b) + : a(e, t, n, h); + else var M = r(e, t, n); + return g((w ? i : l)(M, b), e, t); }; }, - 92052: (e, t, n) => { - var r = n(42980), - i = n(13218); - e.exports = function e(t, n, o, a, s, A) { + 63297: (e, t, n) => { + var i = n(54663), + r = n(40162); + e.exports = function e(t, n, o, s, a, A) { return ( - i(t) && - i(n) && - (A.set(n, t), r(t, n, void 0, e, A), A.delete(n)), + r(t) && + r(n) && + (A.set(n, t), i(t, n, void 0, e, A), A.delete(n)), t ); }; }, - 38777: (e, t, n) => { - var r = n(10852), - i = (function() { + 15908: (e, t, n) => { + var i = n(35102), + r = (function() { try { - var e = r(Object, 'defineProperty'); + var e = i(Object, 'defineProperty'); return e({}, '', {}), e; } catch (e) {} })(); - e.exports = i; + e.exports = r; }, - 67114: (e, t, n) => { - var r = n(88668), - i = n(82908), - o = n(74757); - e.exports = function(e, t, n, a, s, A) { + 15817: (e, t, n) => { + var i = n(46490), + r = n(81938), + o = n(33121); + e.exports = function(e, t, n, s, a, A) { var c = 1 & n, l = e.length, g = t.length; if (l != g && !(c && g > l)) return !1; - var u = A.get(e); - if (u && A.get(t)) return u == t; - var d = -1, - h = !0, - C = 2 & n ? new r() : void 0; - for (A.set(e, t), A.set(t, e); ++d < l; ) { - var I = e[d], - p = t[d]; - if (a) - var m = c - ? a(p, I, d, t, e, A) - : a(I, p, d, e, t, A); - if (void 0 !== m) { - if (m) continue; - h = !1; + var u = A.get(e), + d = A.get(t); + if (u && d) return u == t && d == e; + var h = -1, + C = !0, + I = 2 & n ? new i() : void 0; + for (A.set(e, t), A.set(t, e); ++h < l; ) { + var p = e[h], + m = t[h]; + if (s) + var f = c + ? s(m, p, h, t, e, A) + : s(p, m, h, e, t, A); + if (void 0 !== f) { + if (f) continue; + C = !1; break; } - if (C) { + if (I) { if ( - !i(t, function(e, t) { + !r(t, function(e, t) { if ( - !o(C, t) && - (I === e || s(I, e, n, a, A)) + !o(I, t) && + (p === e || a(p, e, n, s, A)) ) - return C.push(t); + return I.push(t); }) ) { - h = !1; + C = !1; break; } - } else if (I !== p && !s(I, p, n, a, A)) { - h = !1; + } else if (p !== m && !a(p, m, n, s, A)) { + C = !1; break; } } - return A.delete(e), A.delete(t), h; + return A.delete(e), A.delete(t), C; }; }, - 18351: (e, t, n) => { - var r = n(62705), - i = n(11149), - o = n(77813), - a = n(67114), - s = n(68776), - A = n(21814), - c = r ? r.prototype : void 0, + 65151: (e, t, n) => { + var i = n(94506), + r = n(6597), + o = n(49822), + s = n(15817), + a = n(42164), + A = n(48207), + c = i ? i.prototype : void 0, l = c ? c.valueOf : void 0; - e.exports = function(e, t, n, r, c, g, u) { + e.exports = function(e, t, n, i, c, g, u) { switch (n) { case '[object DataView]': if ( @@ -7631,7 +7172,7 @@ case '[object ArrayBuffer]': return !( e.byteLength != t.byteLength || - !g(new i(e), new i(t)) + !g(new r(e), new r(t)) ); case '[object Boolean]': case '[object Date]': @@ -7643,15 +7184,15 @@ case '[object String]': return e == t + ''; case '[object Map]': - var d = s; + var d = a; case '[object Set]': - var h = 1 & r; + var h = 1 & i; if ((d || (d = A), e.size != t.size && !h)) return !1; var C = u.get(e); if (C) return C == t; - (r |= 2), u.set(e, t); - var I = a(d(e), d(t), r, c, g, u); + (i |= 2), u.set(e, t); + var I = s(d(e), d(t), i, c, g, u); return u.delete(e), I; case '[object Symbol]': if (l) return l.call(e) == l.call(t); @@ -7659,225 +7200,226 @@ return !1; }; }, - 16096: (e, t, n) => { - var r = n(58234), - i = Object.prototype.hasOwnProperty; - e.exports = function(e, t, n, o, a, s) { + 17773: (e, t, n) => { + var i = n(8746), + r = Object.prototype.hasOwnProperty; + e.exports = function(e, t, n, o, s, a) { var A = 1 & n, - c = r(e), + c = i(e), l = c.length; - if (l != r(t).length && !A) return !1; + if (l != i(t).length && !A) return !1; for (var g = l; g--; ) { var u = c[g]; - if (!(A ? u in t : i.call(t, u))) return !1; - } - var d = s.get(e); - if (d && s.get(t)) return d == t; - var h = !0; - s.set(e, t), s.set(t, e); - for (var C = A; ++g < l; ) { - var I = e[(u = c[g])], - p = t[u]; + if (!(A ? u in t : r.call(t, u))) return !1; + } + var d = a.get(e), + h = a.get(t); + if (d && h) return d == t && h == e; + var C = !0; + a.set(e, t), a.set(t, e); + for (var I = A; ++g < l; ) { + var p = e[(u = c[g])], + m = t[u]; if (o) - var m = A - ? o(p, I, u, t, e, s) - : o(I, p, u, e, t, s); - if (!(void 0 === m ? I === p || a(I, p, n, o, s) : m)) { - h = !1; + var f = A + ? o(m, p, u, t, e, a) + : o(p, m, u, e, t, a); + if (!(void 0 === f ? p === m || s(p, m, n, o, a) : f)) { + C = !1; break; } - C || (C = 'constructor' == u); + I || (I = 'constructor' == u); } - if (h && !C) { - var f = e.constructor, - E = t.constructor; - f == E || + if (C && !I) { + var E = e.constructor, + y = t.constructor; + E == y || !('constructor' in e) || !('constructor' in t) || - ('function' == typeof f && - f instanceof f && - 'function' == typeof E && - E instanceof E) || - (h = !1); + ('function' == typeof E && + E instanceof E && + 'function' == typeof y && + y instanceof y) || + (C = !1); } - return s.delete(e), s.delete(t), h; + return a.delete(e), a.delete(t), C; }; }, - 99021: (e, t, n) => { - var r = n(85564), - i = n(45357), - o = n(30061); + 43320: (e, t, n) => { + var i = n(60834), + r = n(68903), + o = n(9587); e.exports = function(e) { - return o(i(e, void 0, r), e + ''); + return o(r(e, void 0, i), e + ''); }; }, - 31957: (e, t, n) => { - var r = + 97529: (e, t, n) => { + var i = 'object' == typeof n.g && n.g && n.g.Object === Object && n.g; - e.exports = r; + e.exports = i; }, - 58234: (e, t, n) => { - var r = n(68866), - i = n(99551), - o = n(3674); + 8746: (e, t, n) => { + var i = n(78446), + r = n(65616), + o = n(81832); e.exports = function(e) { - return r(e, o, i); + return i(e, o, r); }; }, - 46904: (e, t, n) => { - var r = n(68866), - i = n(51442), - o = n(23360); + 98222: (e, t, n) => { + var i = n(78446), + r = n(69729), + o = n(56635); e.exports = function(e) { - return r(e, o, i); + return i(e, o, r); }; }, - 66833: (e, t, n) => { - var r = n(89250), - i = n(50308), - o = r + 73033: (e, t, n) => { + var i = n(35407), + r = n(99433), + o = i ? function(e) { - return r.get(e); + return i.get(e); } - : i; + : r; e.exports = o; }, - 97658: (e, t, n) => { - var r = n(52060), - i = Object.prototype.hasOwnProperty; + 38742: (e, t, n) => { + var i = n(32817), + r = Object.prototype.hasOwnProperty; e.exports = function(e) { for ( var t = e.name + '', - n = r[t], - o = i.call(r, t) ? n.length : 0; + n = i[t], + o = r.call(i, t) ? n.length : 0; o--; ) { - var a = n[o], - s = a.func; - if (null == s || s == e) return a.name; + var s = n[o], + a = s.func; + if (null == a || a == e) return s.name; } return t; }; }, - 20893: e => { + 4090: e => { e.exports = function(e) { return e.placeholder; }; }, - 45050: (e, t, n) => { - var r = n(37019); + 98018: (e, t, n) => { + var i = n(7095); e.exports = function(e, t) { var n = e.__data__; - return r(t) + return i(t) ? n['string' == typeof t ? 'string' : 'hash'] : n.map; }; }, - 1499: (e, t, n) => { - var r = n(89162), - i = n(3674); + 63786: (e, t, n) => { + var i = n(40518), + r = n(81832); e.exports = function(e) { - for (var t = i(e), n = t.length; n--; ) { + for (var t = r(e), n = t.length; n--; ) { var o = t[n], - a = e[o]; - t[n] = [o, a, r(a)]; + s = e[o]; + t[n] = [o, s, i(s)]; } return t; }; }, - 10852: (e, t, n) => { - var r = n(28458), - i = n(47801); + 35102: (e, t, n) => { + var i = n(38893), + r = n(20457); e.exports = function(e, t) { - var n = i(e, t); - return r(n) ? n : void 0; + var n = r(e, t); + return i(n) ? n : void 0; }; }, - 85924: (e, t, n) => { - var r = n(5569)(Object.getPrototypeOf, Object); - e.exports = r; + 54244: (e, t, n) => { + var i = n(43347)(Object.getPrototypeOf, Object); + e.exports = i; }, - 89607: (e, t, n) => { - var r = n(62705), - i = Object.prototype, - o = i.hasOwnProperty, - a = i.toString, - s = r ? r.toStringTag : void 0; + 47713: (e, t, n) => { + var i = n(94506), + r = Object.prototype, + o = r.hasOwnProperty, + s = r.toString, + a = i ? i.toStringTag : void 0; e.exports = function(e) { - var t = o.call(e, s), - n = e[s]; + var t = o.call(e, a), + n = e[a]; try { - e[s] = void 0; - var r = !0; + e[a] = void 0; + var i = !0; } catch (e) {} - var i = a.call(e); - return r && (t ? (e[s] = n) : delete e[s]), i; + var r = s.call(e); + return i && (t ? (e[a] = n) : delete e[a]), r; }; }, - 99551: (e, t, n) => { - var r = n(34963), - i = n(70479), + 65616: (e, t, n) => { + var i = n(62783), + r = n(87719), o = Object.prototype.propertyIsEnumerable, - a = Object.getOwnPropertySymbols, - s = a + s = Object.getOwnPropertySymbols, + a = s ? function(e) { return null == e ? [] : ((e = Object(e)), - r(a(e), function(t) { + i(s(e), function(t) { return o.call(e, t); })); } - : i; - e.exports = s; + : r; + e.exports = a; }, - 51442: (e, t, n) => { - var r = n(62488), - i = n(85924), - o = n(99551), - a = n(70479), - s = Object.getOwnPropertySymbols + 69729: (e, t, n) => { + var i = n(87305), + r = n(54244), + o = n(65616), + s = n(87719), + a = Object.getOwnPropertySymbols ? function(e) { - for (var t = []; e; ) r(t, o(e)), (e = i(e)); + for (var t = []; e; ) i(t, o(e)), (e = r(e)); return t; } - : a; - e.exports = s; + : s; + e.exports = a; }, - 64160: (e, t, n) => { - var r = n(18552), - i = n(57071), - o = n(53818), - a = n(58525), - s = n(70577), - A = n(44239), - c = n(80346), + 62629: (e, t, n) => { + var i = n(31577), + r = n(29962), + o = n(31480), + s = n(8764), + a = n(36135), + A = n(31098), + c = n(71265), l = '[object Map]', g = '[object Promise]', u = '[object Set]', d = '[object WeakMap]', h = '[object DataView]', - C = c(r), - I = c(i), + C = c(i), + I = c(r), p = c(o), - m = c(a), - f = c(s), + m = c(s), + f = c(a), E = A; - ((r && E(new r(new ArrayBuffer(1))) != h) || - (i && E(new i()) != l) || + ((i && E(new i(new ArrayBuffer(1))) != h) || + (r && E(new r()) != l) || (o && E(o.resolve()) != g) || - (a && E(new a()) != u) || - (s && E(new s()) != d)) && + (s && E(new s()) != u) || + (a && E(new a()) != d)) && (E = function(e) { var t = A(e), n = '[object Object]' == t ? e.constructor : void 0, - r = n ? c(n) : ''; - if (r) - switch (r) { + i = n ? c(n) : ''; + if (i) + switch (i) { case C: return h; case I: @@ -7893,29 +7435,29 @@ }), (e.exports = E); }, - 47801: e => { + 20457: e => { e.exports = function(e, t) { return null == e ? void 0 : e[t]; }; }, - 58775: e => { + 53506: e => { var t = /\{\n\/\* \[wrapped with (.+)\] \*/, n = /,? & /; e.exports = function(e) { - var r = e.match(t); - return r ? r[1].split(n) : []; + var i = e.match(t); + return i ? i[1].split(n) : []; }; }, - 222: (e, t, n) => { - var r = n(71811), - i = n(35694), - o = n(1469), - a = n(65776), - s = n(41780), - A = n(40327); + 29442: (e, t, n) => { + var i = n(41526), + r = n(9511), + o = n(15811), + s = n(3898), + a = n(17292), + A = n(40641); e.exports = function(e, t, n) { for ( - var c = -1, l = (t = r(t, e)).length, g = !1; + var c = -1, l = (t = i(t, e)).length, g = !1; ++c < l; ) { @@ -7926,87 +7468,87 @@ return g || ++c != l ? g : !!(l = null == e ? 0 : e.length) && - s(l) && - a(u, l) && - (o(e) || i(e)); + a(l) && + s(u, l) && + (o(e) || r(e)); }; }, - 51789: (e, t, n) => { - var r = n(94536); + 21807: (e, t, n) => { + var i = n(1613); e.exports = function() { - (this.__data__ = r ? r(null) : {}), (this.size = 0); + (this.__data__ = i ? i(null) : {}), (this.size = 0); }; }, - 80401: e => { + 5032: e => { e.exports = function(e) { var t = this.has(e) && delete this.__data__[e]; return (this.size -= t ? 1 : 0), t; }; }, - 57667: (e, t, n) => { - var r = n(94536), - i = Object.prototype.hasOwnProperty; + 92465: (e, t, n) => { + var i = n(1613), + r = Object.prototype.hasOwnProperty; e.exports = function(e) { var t = this.__data__; - if (r) { + if (i) { var n = t[e]; return '__lodash_hash_undefined__' === n ? void 0 : n; } - return i.call(t, e) ? t[e] : void 0; + return r.call(t, e) ? t[e] : void 0; }; }, - 21327: (e, t, n) => { - var r = n(94536), - i = Object.prototype.hasOwnProperty; + 49738: (e, t, n) => { + var i = n(1613), + r = Object.prototype.hasOwnProperty; e.exports = function(e) { var t = this.__data__; - return r ? void 0 !== t[e] : i.call(t, e); + return i ? void 0 !== t[e] : r.call(t, e); }; }, - 81866: (e, t, n) => { - var r = n(94536); + 94023: (e, t, n) => { + var i = n(1613); e.exports = function(e, t) { var n = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), (n[e] = - r && void 0 === t + i && void 0 === t ? '__lodash_hash_undefined__' : t), this ); }; }, - 43824: e => { + 12649: e => { var t = Object.prototype.hasOwnProperty; e.exports = function(e) { var n = e.length, - r = new e.constructor(n); + i = new e.constructor(n); return ( n && 'string' == typeof e[0] && t.call(e, 'index') && - ((r.index = e.index), (r.input = e.input)), - r + ((i.index = e.index), (i.input = e.input)), + i ); }; }, - 29148: (e, t, n) => { - var r = n(74318), - i = n(57157), - o = n(93147), - a = n(40419), - s = n(77133); + 57788: (e, t, n) => { + var i = n(16153), + r = n(67875), + o = n(8860), + s = n(35523), + a = n(93284); e.exports = function(e, t, n) { var A = e.constructor; switch (t) { case '[object ArrayBuffer]': - return r(e); + return i(e); case '[object Boolean]': case '[object Date]': return new A(+e); case '[object DataView]': - return i(e, n); + return r(e, n); case '[object Float32Array]': case '[object Float64Array]': case '[object Int8Array]': @@ -8016,7 +7558,7 @@ case '[object Uint8ClampedArray]': case '[object Uint16Array]': case '[object Uint32Array]': - return s(e, n); + return a(e, n); case '[object Map]': case '[object Set]': return new A(); @@ -8026,77 +7568,77 @@ case '[object RegExp]': return o(e); case '[object Symbol]': - return a(e); + return s(e); } }; }, - 38517: (e, t, n) => { - var r = n(3118), - i = n(85924), - o = n(25726); + 30003: (e, t, n) => { + var i = n(27280), + r = n(54244), + o = n(14943); e.exports = function(e) { return 'function' != typeof e.constructor || o(e) ? {} - : r(i(e)); + : i(r(e)); }; }, - 83112: e => { + 32777: e => { var t = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/; e.exports = function(e, n) { - var r = n.length; - if (!r) return e; - var i = r - 1; + var i = n.length; + if (!i) return e; + var r = i - 1; return ( - (n[i] = (r > 1 ? '& ' : '') + n[i]), - (n = n.join(r > 2 ? ', ' : ' ')), + (n[r] = (i > 1 ? '& ' : '') + n[r]), + (n = n.join(i > 2 ? ', ' : ' ')), e.replace(t, '{\n/* [wrapped with ' + n + '] */\n') ); }; }, - 37285: (e, t, n) => { - var r = n(62705), - i = n(35694), - o = n(1469), - a = r ? r.isConcatSpreadable : void 0; + 70996: (e, t, n) => { + var i = n(94506), + r = n(9511), + o = n(15811), + s = i ? i.isConcatSpreadable : void 0; e.exports = function(e) { - return o(e) || i(e) || !!(a && e && e[a]); + return o(e) || r(e) || !!(s && e && e[s]); }; }, - 65776: e => { + 3898: e => { var t = /^(?:0|[1-9]\d*)$/; e.exports = function(e, n) { - var r = typeof e; + var i = typeof e; return ( !!(n = null == n ? 9007199254740991 : n) && - ('number' == r || ('symbol' != r && t.test(e))) && + ('number' == i || ('symbol' != i && t.test(e))) && e > -1 && e % 1 == 0 && e < n ); }; }, - 16612: (e, t, n) => { - var r = n(77813), - i = n(98612), - o = n(65776), - a = n(13218); + 5080: (e, t, n) => { + var i = n(49822), + r = n(91874), + o = n(3898), + s = n(40162); e.exports = function(e, t, n) { - if (!a(n)) return !1; - var s = typeof t; + if (!s(n)) return !1; + var a = typeof t; return ( - !!('number' == s - ? i(n) && o(t, n.length) - : 'string' == s && t in n) && r(n[t], e) + !!('number' == a + ? r(n) && o(t, n.length) + : 'string' == a && t in n) && i(n[t], e) ); }; }, - 15403: (e, t, n) => { - var r = n(1469), - i = n(33448), + 59901: (e, t, n) => { + var i = n(15811), + r = n(39105), o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - a = /^\w*$/; + s = /^\w*$/; e.exports = function(e, t) { - if (r(e)) return !1; + if (i(e)) return !1; var n = typeof e; return ( !( @@ -8104,13 +7646,13 @@ 'symbol' != n && 'boolean' != n && null != e && - !i(e) + !r(e) ) || - a.test(e) || !o.test(e) || (null != t && e in Object(t)) + s.test(e) || !o.test(e) || (null != t && e in Object(t)) ); }; }, - 37019: e => { + 7095: e => { e.exports = function(e) { var t = typeof e; return 'string' == t || @@ -8121,145 +7663,145 @@ : null === e; }; }, - 86528: (e, t, n) => { - var r = n(96425), - i = n(66833), - o = n(97658), - a = n(8111); + 74667: (e, t, n) => { + var i = n(63956), + r = n(73033), + o = n(38742), + s = n(24603); e.exports = function(e) { var t = o(e), - n = a[t]; - if ('function' != typeof n || !(t in r.prototype)) + n = s[t]; + if ('function' != typeof n || !(t in i.prototype)) return !1; if (e === n) return !0; - var s = i(n); - return !!s && e === s[0]; + var a = r(n); + return !!a && e === a[0]; }; }, - 15346: (e, t, n) => { - var r, - i = n(14429), - o = (r = /[^.]+$/.exec( - (i && i.keys && i.keys.IE_PROTO) || '' + 32375: (e, t, n) => { + var i, + r = n(39423), + o = (i = /[^.]+$/.exec( + (r && r.keys && r.keys.IE_PROTO) || '' )) - ? 'Symbol(src)_1.' + r + ? 'Symbol(src)_1.' + i : ''; e.exports = function(e) { return !!o && o in e; }; }, - 25726: e => { + 14943: e => { var t = Object.prototype; e.exports = function(e) { var n = e && e.constructor; return e === (('function' == typeof n && n.prototype) || t); }; }, - 89162: (e, t, n) => { - var r = n(13218); + 40518: (e, t, n) => { + var i = n(40162); e.exports = function(e) { - return e == e && !r(e); + return e == e && !i(e); }; }, - 27040: e => { + 95668: e => { e.exports = function() { (this.__data__ = []), (this.size = 0); }; }, - 14125: (e, t, n) => { - var r = n(18470), - i = Array.prototype.splice; + 58354: (e, t, n) => { + var i = n(49768), + r = Array.prototype.splice; e.exports = function(e) { var t = this.__data__, - n = r(t, e); + n = i(t, e); return ( !(n < 0) && - (n == t.length - 1 ? t.pop() : i.call(t, n, 1), + (n == t.length - 1 ? t.pop() : r.call(t, n, 1), --this.size, !0) ); }; }, - 82117: (e, t, n) => { - var r = n(18470); + 63793: (e, t, n) => { + var i = n(49768); e.exports = function(e) { var t = this.__data__, - n = r(t, e); + n = i(t, e); return n < 0 ? void 0 : t[n][1]; }; }, - 67518: (e, t, n) => { - var r = n(18470); + 48985: (e, t, n) => { + var i = n(49768); e.exports = function(e) { - return r(this.__data__, e) > -1; + return i(this.__data__, e) > -1; }; }, - 54705: (e, t, n) => { - var r = n(18470); + 31097: (e, t, n) => { + var i = n(49768); e.exports = function(e, t) { var n = this.__data__, - i = r(n, e); + r = i(n, e); return ( - i < 0 ? (++this.size, n.push([e, t])) : (n[i][1] = t), + r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this ); }; }, - 24785: (e, t, n) => { - var r = n(1989), - i = n(38407), - o = n(57071); + 57721: (e, t, n) => { + var i = n(49459), + r = n(44104), + o = n(29962); e.exports = function() { (this.size = 0), (this.__data__ = { - hash: new r(), - map: new (o || i)(), - string: new r(), + hash: new i(), + map: new (o || r)(), + string: new i(), }); }; }, - 11285: (e, t, n) => { - var r = n(45050); + 5454: (e, t, n) => { + var i = n(98018); e.exports = function(e) { - var t = r(this, e).delete(e); + var t = i(this, e).delete(e); return (this.size -= t ? 1 : 0), t; }; }, - 96e3: (e, t, n) => { - var r = n(45050); + 94708: (e, t, n) => { + var i = n(98018); e.exports = function(e) { - return r(this, e).get(e); + return i(this, e).get(e); }; }, - 49916: (e, t, n) => { - var r = n(45050); + 89813: (e, t, n) => { + var i = n(98018); e.exports = function(e) { - return r(this, e).has(e); + return i(this, e).has(e); }; }, - 95265: (e, t, n) => { - var r = n(45050); + 74343: (e, t, n) => { + var i = n(98018); e.exports = function(e, t) { - var n = r(this, e), - i = n.size; + var n = i(this, e), + r = n.size; return ( - n.set(e, t), (this.size += n.size == i ? 0 : 1), this + n.set(e, t), (this.size += n.size == r ? 0 : 1), this ); }; }, - 68776: e => { + 42164: e => { e.exports = function(e) { var t = -1, n = Array(e.size); return ( - e.forEach(function(e, r) { - n[++t] = [r, e]; + e.forEach(function(e, i) { + n[++t] = [i, e]; }), n ); }; }, - 42634: e => { + 97226: e => { e.exports = function(e, t) { return function(n) { return ( @@ -8269,22 +7811,22 @@ }; }; }, - 24523: (e, t, n) => { - var r = n(88306); + 3430: (e, t, n) => { + var i = n(69807); e.exports = function(e) { - var t = r(e, function(e) { + var t = i(e, function(e) { return 500 === n.size && n.clear(), e; }), n = t.cache; return t; }; }, - 63833: (e, t, n) => { - var r = n(52157), - i = n(14054), - o = n(46460), - a = '__lodash_placeholder__', - s = 128, + 83933: (e, t, n) => { + var i = n(67750), + r = n(41036), + o = n(58179), + s = '__lodash_placeholder__', + a = 128, A = Math.min; e.exports = function(e, t) { var n = e[1], @@ -8292,24 +7834,24 @@ l = n | c, g = l < 131, u = - (c == s && 8 == n) || - (c == s && 256 == n && e[7].length <= t[8]) || + (c == a && 8 == n) || + (c == a && 256 == n && e[7].length <= t[8]) || (384 == c && t[7].length <= t[8] && 8 == n); if (!g && !u) return e; 1 & c && ((e[2] = t[2]), (l |= 1 & n ? 0 : 4)); var d = t[3]; if (d) { var h = e[3]; - (e[3] = h ? r(h, d, t[4]) : d), - (e[4] = h ? o(e[3], a) : t[4]); + (e[3] = h ? i(h, d, t[4]) : d), + (e[4] = h ? o(e[3], s) : t[4]); } return ( (d = t[5]) && ((h = e[5]), - (e[5] = h ? i(h, d, t[6]) : d), - (e[6] = h ? o(e[5], a) : t[6])), + (e[5] = h ? r(h, d, t[6]) : d), + (e[6] = h ? o(e[5], s) : t[6])), (d = t[7]) && (e[7] = d), - c & s && (e[8] = null == e[8] ? t[8] : A(e[8], t[8])), + c & a && (e[8] = null == e[8] ? t[8] : A(e[8], t[8])), null == e[9] && (e[9] = t[9]), (e[0] = t[0]), (e[1] = l), @@ -8317,116 +7859,116 @@ ); }; }, - 89250: (e, t, n) => { - var r = n(70577), - i = r && new r(); - e.exports = i; - }, - 94536: (e, t, n) => { - var r = n(10852)(Object, 'create'); + 35407: (e, t, n) => { + var i = n(36135), + r = i && new i(); e.exports = r; }, - 86916: (e, t, n) => { - var r = n(5569)(Object.keys, Object); - e.exports = r; + 1613: (e, t, n) => { + var i = n(35102)(Object, 'create'); + e.exports = i; }, - 33498: e => { + 13044: (e, t, n) => { + var i = n(43347)(Object.keys, Object); + e.exports = i; + }, + 57817: e => { e.exports = function(e) { var t = []; if (null != e) for (var n in Object(e)) t.push(n); return t; }; }, - 31167: (e, t, n) => { + 67865: (e, t, n) => { e = n.nmd(e); - var r = n(31957), - i = t && !t.nodeType && t, - o = i && e && !e.nodeType && e, - a = o && o.exports === i && r.process, - s = (function() { + var i = n(97529), + r = t && !t.nodeType && t, + o = r && e && !e.nodeType && e, + s = o && o.exports === r && i.process, + a = (function() { try { var e = o && o.require && o.require('util').types; - return e || (a && a.binding && a.binding('util')); + return e || (s && s.binding && s.binding('util')); } catch (e) {} })(); - e.exports = s; + e.exports = a; }, - 2333: e => { + 13188: e => { var t = Object.prototype.toString; e.exports = function(e) { return t.call(e); }; }, - 5569: e => { + 43347: e => { e.exports = function(e, t) { return function(n) { return e(t(n)); }; }; }, - 45357: (e, t, n) => { - var r = n(96874), - i = Math.max; + 68903: (e, t, n) => { + var i = n(90703), + r = Math.max; e.exports = function(e, t, n) { return ( - (t = i(void 0 === t ? e.length - 1 : t, 0)), + (t = r(void 0 === t ? e.length - 1 : t, 0)), function() { for ( var o = arguments, - a = -1, - s = i(o.length - t, 0), - A = Array(s); - ++a < s; + s = -1, + a = r(o.length - t, 0), + A = Array(a); + ++s < a; ) - A[a] = o[t + a]; - a = -1; - for (var c = Array(t + 1); ++a < t; ) c[a] = o[a]; - return (c[t] = n(A)), r(e, this, c); + A[s] = o[t + s]; + s = -1; + for (var c = Array(t + 1); ++s < t; ) c[s] = o[s]; + return (c[t] = n(A)), i(e, this, c); } ); }; }, - 52060: e => { + 32817: e => { e.exports = {}; }, - 90451: (e, t, n) => { - var r = n(278), - i = n(65776), + 59530: (e, t, n) => { + var i = n(76972), + r = n(3898), o = Math.min; e.exports = function(e, t) { for ( - var n = e.length, a = o(t.length, n), s = r(e); - a--; + var n = e.length, s = o(t.length, n), a = i(e); + s--; ) { - var A = t[a]; - e[a] = i(A, n) ? s[A] : void 0; + var A = t[s]; + e[s] = r(A, n) ? a[A] : void 0; } return e; }; }, - 46460: e => { + 58179: e => { var t = '__lodash_placeholder__'; e.exports = function(e, n) { - for (var r = -1, i = e.length, o = 0, a = []; ++r < i; ) { - var s = e[r]; - (s !== n && s !== t) || ((e[r] = t), (a[o++] = r)); + for (var i = -1, r = e.length, o = 0, s = []; ++i < r; ) { + var a = e[i]; + (a !== n && a !== t) || ((e[i] = t), (s[o++] = i)); } - return a; + return s; }; }, - 55639: (e, t, n) => { - var r = n(31957), - i = + 45127: (e, t, n) => { + var i = n(97529), + r = 'object' == typeof self && self && self.Object === Object && self, - o = r || i || Function('return this')(); + o = i || r || Function('return this')(); e.exports = o; }, - 36390: e => { + 31592: e => { e.exports = function(e, t) { if ( ('constructor' !== t || 'function' != typeof e[t]) && @@ -8435,24 +7977,24 @@ return e[t]; }; }, - 90619: e => { + 22730: e => { e.exports = function(e) { return ( this.__data__.set(e, '__lodash_hash_undefined__'), this ); }; }, - 72385: e => { + 23963: e => { e.exports = function(e) { return this.__data__.has(e); }; }, - 258: (e, t, n) => { - var r = n(28045), - i = n(21275)(r); - e.exports = i; + 70672: (e, t, n) => { + var i = n(18310), + r = n(59649)(i); + e.exports = r; }, - 21814: e => { + 48207: e => { e.exports = function(e) { var t = -1, n = Array(e.size); @@ -8464,106 +8006,106 @@ ); }; }, - 30061: (e, t, n) => { - var r = n(56560), - i = n(21275)(r); - e.exports = i; + 9587: (e, t, n) => { + var i = n(1709), + r = n(59649)(i); + e.exports = r; }, - 69255: (e, t, n) => { - var r = n(58775), - i = n(83112), - o = n(30061), - a = n(87241); + 82719: (e, t, n) => { + var i = n(53506), + r = n(32777), + o = n(9587), + s = n(60219); e.exports = function(e, t, n) { - var s = t + ''; - return o(e, i(s, a(r(s), n))); + var a = t + ''; + return o(e, r(a, s(i(a), n))); }; }, - 21275: e => { + 59649: e => { var t = Date.now; e.exports = function(e) { var n = 0, - r = 0; + i = 0; return function() { - var i = t(), - o = 16 - (i - r); - if (((r = i), o > 0)) { + var r = t(), + o = 16 - (r - i); + if (((i = r), o > 0)) { if (++n >= 800) return arguments[0]; } else n = 0; return e.apply(void 0, arguments); }; }; }, - 37465: (e, t, n) => { - var r = n(38407); + 35502: (e, t, n) => { + var i = n(44104); e.exports = function() { - (this.__data__ = new r()), (this.size = 0); + (this.__data__ = new i()), (this.size = 0); }; }, - 63779: e => { + 9928: e => { e.exports = function(e) { var t = this.__data__, n = t.delete(e); return (this.size = t.size), n; }; }, - 67599: e => { + 13032: e => { e.exports = function(e) { return this.__data__.get(e); }; }, - 44758: e => { + 17351: e => { e.exports = function(e) { return this.__data__.has(e); }; }, - 34309: (e, t, n) => { - var r = n(38407), - i = n(57071), - o = n(83369); + 68477: (e, t, n) => { + var i = n(44104), + r = n(29962), + o = n(38224); e.exports = function(e, t) { var n = this.__data__; - if (n instanceof r) { - var a = n.__data__; - if (!i || a.length < 199) - return a.push([e, t]), (this.size = ++n.size), this; - n = this.__data__ = new o(a); + if (n instanceof i) { + var s = n.__data__; + if (!r || s.length < 199) + return s.push([e, t]), (this.size = ++n.size), this; + n = this.__data__ = new o(s); } return n.set(e, t), (this.size = n.size), this; }; }, - 42351: e => { + 27134: e => { e.exports = function(e, t, n) { - for (var r = n - 1, i = e.length; ++r < i; ) - if (e[r] === t) return r; + for (var i = n - 1, r = e.length; ++i < r; ) + if (e[i] === t) return i; return -1; }; }, - 55514: (e, t, n) => { - var r = n(24523), - i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + 89359: (e, t, n) => { + var i = n(3430), + r = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, o = /\\(\\)?/g, - a = r(function(e) { + s = i(function(e) { var t = []; return ( 46 === e.charCodeAt(0) && t.push(''), - e.replace(i, function(e, n, r, i) { - t.push(r ? i.replace(o, '$1') : n || e); + e.replace(r, function(e, n, i, r) { + t.push(i ? r.replace(o, '$1') : n || e); }), t ); }); - e.exports = a; + e.exports = s; }, - 40327: (e, t, n) => { - var r = n(33448); + 40641: (e, t, n) => { + var i = n(39105); e.exports = function(e) { - if ('string' == typeof e || r(e)) return e; + if ('string' == typeof e || i(e)) return e; var t = e + ''; return '0' == t && 1 / e == -Infinity ? '-0' : t; }; }, - 80346: e => { + 71265: e => { var t = Function.prototype.toString; e.exports = function(e) { if (null != e) { @@ -8577,9 +8119,16 @@ return ''; }; }, - 87241: (e, t, n) => { - var r = n(77412), - i = n(47443), + 39989: e => { + var t = /\s/; + e.exports = function(e) { + for (var n = e.length; n-- && t.test(e.charAt(n)); ); + return n; + }; + }, + 60219: (e, t, n) => { + var i = n(38461), + r = n(31278), o = [ ['ary', 128], ['bind', 1], @@ -8593,21 +8142,21 @@ ]; e.exports = function(e, t) { return ( - r(o, function(n) { - var r = '_.' + n[0]; - t & n[1] && !i(e, r) && e.push(r); + i(o, function(n) { + var i = '_.' + n[0]; + t & n[1] && !r(e, i) && e.push(i); }), e.sort() ); }; }, - 21913: (e, t, n) => { - var r = n(96425), - i = n(7548), - o = n(278); + 8409: (e, t, n) => { + var i = n(63956), + r = n(20140), + o = n(76972); e.exports = function(e) { - if (e instanceof r) return e.clone(); - var t = new i(e.__wrapped__, e.__chain__); + if (e instanceof i) return e.clone(); + var t = new r(e.__wrapped__, e.__chain__); return ( (t.__actions__ = o(e.__actions__)), (t.__index__ = e.__index__), @@ -8616,33 +8165,33 @@ ); }; }, - 39514: (e, t, n) => { - var r = n(97727); + 32193: (e, t, n) => { + var i = n(78397); e.exports = function(e, t, n) { return ( (t = n ? void 0 : t), (t = e && null == t ? e.length : t), - r(e, 128, void 0, void 0, void 0, void 0, t) + i(e, 128, void 0, void 0, void 0, void 0, t) ); }; }, - 66678: (e, t, n) => { - var r = n(85990); + 38180: (e, t, n) => { + var i = n(51e3); e.exports = function(e) { - return r(e, 4); + return i(e, 4); }; }, - 75703: e => { + 90339: e => { e.exports = function(e) { return function() { return e; }; }; }, - 40087: (e, t, n) => { - var r = n(97727); - function i(e, t, n) { - var o = r( + 81011: (e, t, n) => { + var i = n(78397); + function r(e, t, n) { + var o = i( e, 8, void 0, @@ -8652,51 +8201,51 @@ void 0, (t = n ? void 0 : t) ); - return (o.placeholder = i.placeholder), o; + return (o.placeholder = r.placeholder), o; } - (i.placeholder = {}), (e.exports = i); + (r.placeholder = {}), (e.exports = r); }, - 66913: (e, t, n) => { - var r = n(96874), - i = n(5976), - o = n(92052), - a = n(30236), - s = i(function(e) { - return e.push(void 0, o), r(a, void 0, e); + 6236: (e, t, n) => { + var i = n(90703), + r = n(10119), + o = n(63297), + s = n(26691), + a = r(function(e) { + return e.push(void 0, o), i(s, void 0, e); }); - e.exports = s; + e.exports = a; }, - 29521: (e, t, n) => { - var r = n(20731), - i = n(21078), - o = n(5976), - a = n(29246), - s = n(10928), + 79786: (e, t, n) => { + var i = n(64351), + r = n(76479), + o = n(10119), + s = n(4132), + a = n(9545), A = o(function(e, t) { - var n = s(t); + var n = a(t); return ( - a(n) && (n = void 0), - a(e) ? r(e, i(t, 1, a, !0), void 0, n) : [] + s(n) && (n = void 0), + s(e) ? i(e, r(t, 1, s, !0), void 0, n) : [] ); }); e.exports = A; }, - 77813: e => { + 49822: e => { e.exports = function(e, t) { return e === t || (e != e && t != t); }; }, - 85564: (e, t, n) => { - var r = n(21078); + 60834: (e, t, n) => { + var i = n(76479); e.exports = function(e) { - return (null == e ? 0 : e.length) ? r(e, 1) : []; + return (null == e ? 0 : e.length) ? i(e, 1) : []; }; }, - 84599: (e, t, n) => { - var r = n(68836), - i = n(69306), + 7895: (e, t, n) => { + var i = n(49725), + r = n(12953), o = Array.prototype.push; - function a(e, t) { + function s(e, t) { return 2 == t ? function(t, n) { return e(t, n); @@ -8705,7 +8254,7 @@ return e(t); }; } - function s(e) { + function a(e) { for (var t = e ? e.length : 0, n = Array(t); t--; ) n[t] = e[t]; return n; @@ -8714,9 +8263,9 @@ return function() { var n = arguments.length; if (n) { - for (var r = Array(n); n--; ) r[n] = arguments[n]; - var i = (r[0] = t.apply(void 0, r)); - return e.apply(void 0, r), i; + for (var i = Array(n); n--; ) i[n] = arguments[n]; + var r = (i[0] = t.apply(void 0, i)); + return e.apply(void 0, i), r; } }; } @@ -8731,7 +8280,7 @@ C = !('fixed' in l) || l.fixed, I = !('immutable' in l) || l.immutable, p = !('rearg' in l) || l.rearg, - m = g ? c : i, + m = g ? c : r, f = 'curry' in l && l.curry, E = 'fixed' in l && l.fixed, y = 'rearg' in l && l.rearg, @@ -8755,25 +8304,25 @@ toPath: t.toPath, }, b = w.ary, - v = w.assign, - M = w.clone, + M = w.assign, + v = w.clone, N = w.curry, S = w.forEach, Q = w.isArray, - F = w.isError, - x = w.isFunction, + x = w.isError, + F = w.isFunction, D = w.isWeakMap, T = w.keys, Y = w.rearg, R = w.toInteger, _ = w.toPath, - U = T(r.aryMethod), + U = T(i.aryMethod), O = { castArray: function(e) { return function() { var t = arguments[0]; return Q(t) - ? e(s(t)) + ? e(a(t)) : e.apply(void 0, arguments); }; }, @@ -8781,28 +8330,28 @@ return function() { var t = arguments[0], n = arguments[1], - r = e(t, n), - i = r.length; + i = e(t, n), + r = i.length; return d && 'number' == typeof n ? ((n = n > 2 ? n - 2 : 1), - i && i <= n ? r : a(r, n)) - : r; + r && r <= n ? i : s(i, n)) + : i; }; }, mixin: function(e) { return function(t) { var n = this; - if (!x(n)) return e(n, Object(t)); - var r = []; + if (!F(n)) return e(n, Object(t)); + var i = []; return ( S(T(t), function(e) { - x(t[e]) && - r.push([e, n.prototype[e]]); + F(t[e]) && + i.push([e, n.prototype[e]]); }), e(n, Object(t)), - S(r, function(e) { + S(i, function(e) { var t = e[1]; - x(t) + F(t) ? (n.prototype[e[0]] = t) : delete n.prototype[e[0]]; }), @@ -8818,19 +8367,19 @@ }, rearg: function(e) { return function(t, n) { - var r = n ? n.length : 0; - return N(e(t, n), r); + var i = n ? n.length : 0; + return N(e(t, n), i); }; }, runInContext: function(n) { - return function(r) { - return e(t, n(r), l); + return function(i) { + return e(t, n(i), l); }; }, }; - function k(e, t) { + function G(e, t) { if (d) { - var n = r.iterateeRearg[e]; + var n = i.iterateeRearg[e]; if (n) return (function(e, t) { return P(e, function(e) { @@ -8849,109 +8398,109 @@ arguments ); }; - })(Y(a(e, n), t), n); + })(Y(s(e, n), t), n); }); })(t, n); - var i = !g && r.iterateeAry[e]; - if (i) + var r = !g && i.iterateeAry[e]; + if (r) return (function(e, t) { return P(e, function(e) { return 'function' == typeof e - ? a(e, t) + ? s(e, t) : e; }); - })(t, i); + })(t, r); } return t; } - function G(e, t, n) { - if (C && (E || !r.skipFixed[e])) { - var i = r.methodSpread[e], - a = i && i.start; - return void 0 === a + function L(e, t, n) { + if (C && (E || !i.skipFixed[e])) { + var r = i.methodSpread[e], + s = r && r.start; + return void 0 === s ? b(t, n) : (function(e, t) { return function() { for ( var n = arguments.length, - r = n - 1, - i = Array(n); + i = n - 1, + r = Array(n); n--; ) - i[n] = arguments[n]; - var a = i[t], - s = i.slice(0, t); + r[n] = arguments[n]; + var s = r[t], + a = r.slice(0, t); return ( - a && o.apply(s, a), - t != r && - o.apply(s, i.slice(t + 1)), - e.apply(this, s) + s && o.apply(a, s), + t != i && + o.apply(a, r.slice(t + 1)), + e.apply(this, a) ); }; - })(t, a); + })(t, s); } return t; } - function L(e, t, n) { - return p && n > 1 && (y || !r.skipRearg[e]) - ? Y(t, r.methodRearg[e] || r.aryRearg[n]) + function k(e, t, n) { + return p && n > 1 && (y || !i.skipRearg[e]) + ? Y(t, i.methodRearg[e] || i.aryRearg[n]) : t; } - function j(e, t) { + function z(e, t) { for ( var n = -1, - r = (t = _(t)).length, - i = r - 1, - o = M(Object(e)), - a = o; - null != a && ++n < r; + i = (t = _(t)).length, + r = i - 1, + o = v(Object(e)), + s = o; + null != s && ++n < i; ) { - var s = t[n], - A = a[s]; + var a = t[n], + A = s[a]; null == A || - x(A) || F(A) || + x(A) || D(A) || - (a[s] = M(n == i ? A : Object(A))), - (a = a[s]); + (s[a] = v(n == r ? A : Object(A))), + (s = s[a]); } return o; } - function z(t, n) { - var i = r.aliasToReal[t] || t, - o = r.remap[i] || i, - a = l; + function j(t, n) { + var r = i.aliasToReal[t] || t, + o = i.remap[r] || r, + s = l; return function(t) { - var r = g ? B : w, - s = g ? B[o] : n, - A = v(v({}, a), t); - return e(r, i, s, A); + var i = g ? B : w, + a = g ? B[o] : n, + A = M(M({}, s), t); + return e(i, r, a, A); }; } function P(e, t) { return function() { var n = arguments.length; if (!n) return e(); - for (var r = Array(n); n--; ) r[n] = arguments[n]; - var i = p ? 0 : n - 1; - return (r[i] = t(r[i])), e.apply(void 0, r); + for (var i = Array(n); n--; ) i[n] = arguments[n]; + var r = p ? 0 : n - 1; + return (i[r] = t(i[r])), e.apply(void 0, i); }; } function H(e, t, n) { - var i, - o = r.aliasToReal[e] || e, - a = t, + var r, + o = i.aliasToReal[e] || e, + s = t, c = O[o]; return ( c - ? (a = c(t)) + ? (s = c(t)) : I && - (r.mutate.array[o] - ? (a = A(t, s)) - : r.mutate.object[o] - ? (a = A( + (i.mutate.array[o] + ? (s = A(t, a)) + : i.mutate.object[o] + ? (s = A( t, (function(e) { return function(t) { @@ -8959,39 +8508,39 @@ }; })(t) )) - : r.mutate.set[o] && (a = A(t, j))), + : i.mutate.set[o] && (s = A(t, z))), S(U, function(e) { return ( - S(r.aryMethod[e], function(t) { + S(i.aryMethod[e], function(t) { if (o == t) { - var n = r.methodSpread[o], - s = n && n.afterRearg; + var n = i.methodSpread[o], + a = n && n.afterRearg; return ( - (i = s - ? G(o, L(o, a, e), e) - : L(o, G(o, a, e), e)), - (i = (function(e, t, n) { + (r = a + ? L(o, k(o, s, e), e) + : k(o, L(o, s, e), e)), + (r = (function(e, t, n) { return f || (h && n > 1) ? N(t, n) : t; - })(0, (i = k(o, i)), e)), + })(0, (r = G(o, r)), e)), !1 ); } }), - !i + !r ); }), - i || (i = a), - i == t && - (i = f - ? N(i, 1) + r || (r = s), + r == t && + (r = f + ? N(r, 1) : function() { return t.apply(this, arguments); }), - (i.convert = z(o, t)), - (i.placeholder = t.placeholder = n), - i + (r.convert = j(o, t)), + (r.placeholder = t.placeholder = n), + r ); } if (!u) return H(n, c, m); @@ -8999,8 +8548,8 @@ W = []; return ( S(U, function(e) { - S(r.aryMethod[e], function(e) { - var t = J[r.remap[e] || e]; + S(i.aryMethod[e], function(e) { + var t = J[i.remap[e] || e]; t && W.push([e, H(e, t, J)]); }); }), @@ -9009,7 +8558,7 @@ if ('function' == typeof t) { for (var n = W.length; n--; ) if (W[n][0] == e) return; - (t.convert = z(e, t)), W.push([e, t]); + (t.convert = j(e, t)), W.push([e, t]); } }), S(W, function(e) { @@ -9020,7 +8569,7 @@ }), (J.placeholder = J), S(T(J), function(e) { - S(r.realToAlias[e] || [], function(t) { + S(i.realToAlias[e] || [], function(t) { J[t] = J[e]; }); }), @@ -9028,7 +8577,7 @@ ); }; }, - 68836: (e, t) => { + 49725: (e, t) => { (t.aliasToReal = { each: 'forEach', eachRight: 'forEachRight', @@ -9449,12 +8998,12 @@ (t.realToAlias = (function() { var e = Object.prototype.hasOwnProperty, n = t.aliasToReal, - r = {}; - for (var i in n) { - var o = n[i]; - e.call(r, o) ? r[o].push(i) : (r[o] = [i]); + i = {}; + for (var r in n) { + var o = n[r]; + e.call(i, o) ? i[o].push(r) : (i[o] = [r]); } - return r; + return i; })()), (t.remap = { assignAll: 'assign', @@ -9530,119 +9079,119 @@ zipObjectDeep: !0, }); }, - 4269: (e, t, n) => { + 73836: (e, t, n) => { e.exports = { - ary: n(39514), - assign: n(44037), - clone: n(66678), - curry: n(40087), - forEach: n(77412), - isArray: n(1469), - isError: n(64647), - isFunction: n(23560), - isWeakMap: n(81018), - iteratee: n(72594), - keys: n(280), - rearg: n(4963), - toInteger: n(40554), - toPath: n(30084), - }; - }, - 92822: (e, t, n) => { - var r = n(84599), - i = n(4269); + ary: n(32193), + assign: n(25788), + clone: n(38180), + curry: n(81011), + forEach: n(38461), + isArray: n(15811), + isError: n(1918), + isFunction: n(88837), + isWeakMap: n(3138), + iteratee: n(38985), + keys: n(7212), + rearg: n(27079), + toInteger: n(30090), + toPath: n(65589), + }; + }, + 50139: (e, t, n) => { + var i = n(7895), + r = n(73836); e.exports = function(e, t, n) { - return r(i, e, t, n); + return i(r, e, t, n); }; }, - 44419: (e, t, n) => { - var r = n(92822)('defaultsDeep', n(66913)); - (r.placeholder = n(69306)), (e.exports = r); + 17365: (e, t, n) => { + var i = n(50139)('defaultsDeep', n(6236)); + (i.placeholder = n(12953)), (e.exports = i); }, - 69306: e => { + 12953: e => { e.exports = {}; }, - 27361: (e, t, n) => { - var r = n(97786); + 13205: (e, t, n) => { + var i = n(34951); e.exports = function(e, t, n) { - var i = null == e ? void 0 : r(e, t); - return void 0 === i ? n : i; + var r = null == e ? void 0 : i(e, t); + return void 0 === r ? n : r; }; }, - 79095: (e, t, n) => { - var r = n(13), - i = n(222); + 9699: (e, t, n) => { + var i = n(70004), + r = n(29442); e.exports = function(e, t) { - return null != e && i(e, t, r); + return null != e && r(e, t, i); }; }, - 6557: e => { + 28198: e => { e.exports = function(e) { return e; }; }, - 35694: (e, t, n) => { - var r = n(9454), - i = n(37005), + 9511: (e, t, n) => { + var i = n(96356), + r = n(23894), o = Object.prototype, - a = o.hasOwnProperty, - s = o.propertyIsEnumerable, - A = r( + s = o.hasOwnProperty, + a = o.propertyIsEnumerable, + A = i( (function() { return arguments; })() ) - ? r + ? i : function(e) { return ( - i(e) && - a.call(e, 'callee') && - !s.call(e, 'callee') + r(e) && + s.call(e, 'callee') && + !a.call(e, 'callee') ); }; e.exports = A; }, - 1469: e => { + 15811: e => { var t = Array.isArray; e.exports = t; }, - 98612: (e, t, n) => { - var r = n(23560), - i = n(41780); + 91874: (e, t, n) => { + var i = n(88837), + r = n(17292); e.exports = function(e) { - return null != e && i(e.length) && !r(e); + return null != e && r(e.length) && !i(e); }; }, - 29246: (e, t, n) => { - var r = n(98612), - i = n(37005); + 4132: (e, t, n) => { + var i = n(91874), + r = n(23894); e.exports = function(e) { - return i(e) && r(e); + return r(e) && i(e); }; }, - 44144: (e, t, n) => { + 85839: (e, t, n) => { e = n.nmd(e); - var r = n(55639), - i = n(95062), + var i = n(45127), + r = n(39364), o = t && !t.nodeType && t, - a = o && e && !e.nodeType && e, - s = a && a.exports === o ? r.Buffer : void 0, - A = (s ? s.isBuffer : void 0) || i; + s = o && e && !e.nodeType && e, + a = s && s.exports === o ? i.Buffer : void 0, + A = (a ? a.isBuffer : void 0) || r; e.exports = A; }, - 18446: (e, t, n) => { - var r = n(90939); + 89943: (e, t, n) => { + var i = n(40072); e.exports = function(e, t) { - return r(e, t); + return i(e, t); }; }, - 64647: (e, t, n) => { - var r = n(44239), - i = n(37005), - o = n(68630); + 1918: (e, t, n) => { + var i = n(31098), + r = n(23894), + o = n(29291); e.exports = function(e) { - if (!i(e)) return !1; - var t = r(e); + if (!r(e)) return !1; + var t = i(e); return ( '[object Error]' == t || '[object DOMException]' == t || @@ -9652,12 +9201,12 @@ ); }; }, - 23560: (e, t, n) => { - var r = n(44239), - i = n(13218); + 88837: (e, t, n) => { + var i = n(31098), + r = n(40162); e.exports = function(e) { - if (!i(e)) return !1; - var t = r(e); + if (!r(e)) return !1; + var t = i(e); return ( '[object Function]' == t || '[object GeneratorFunction]' == t || @@ -9666,7 +9215,7 @@ ); }; }, - 41780: e => { + 17292: e => { e.exports = function(e) { return ( 'number' == typeof e && @@ -9676,37 +9225,37 @@ ); }; }, - 56688: (e, t, n) => { - var r = n(25588), - i = n(7518), - o = n(31167), - a = o && o.isMap, - s = a ? i(a) : r; - e.exports = s; + 44003: (e, t, n) => { + var i = n(22388), + r = n(79576), + o = n(67865), + s = o && o.isMap, + a = s ? r(s) : i; + e.exports = a; }, - 13218: e => { + 40162: e => { e.exports = function(e) { var t = typeof e; return null != e && ('object' == t || 'function' == t); }; }, - 37005: e => { + 23894: e => { e.exports = function(e) { return null != e && 'object' == typeof e; }; }, - 68630: (e, t, n) => { - var r = n(44239), - i = n(85924), - o = n(37005), - a = Function.prototype, - s = Object.prototype, - A = a.toString, - c = s.hasOwnProperty, + 29291: (e, t, n) => { + var i = n(31098), + r = n(54244), + o = n(23894), + s = Function.prototype, + a = Object.prototype, + A = s.toString, + c = a.hasOwnProperty, l = A.call(Object); e.exports = function(e) { - if (!o(e) || '[object Object]' != r(e)) return !1; - var t = i(e); + if (!o(e) || '[object Object]' != i(e)) return !1; + var t = r(e); if (null === t) return !0; var n = c.call(t, 'constructor') && t.constructor; return ( @@ -9716,131 +9265,131 @@ ); }; }, - 72928: (e, t, n) => { - var r = n(29221), - i = n(7518), - o = n(31167), - a = o && o.isSet, - s = a ? i(a) : r; - e.exports = s; + 84723: (e, t, n) => { + var i = n(2831), + r = n(79576), + o = n(67865), + s = o && o.isSet, + a = s ? r(s) : i; + e.exports = a; }, - 33448: (e, t, n) => { - var r = n(44239), - i = n(37005); + 39105: (e, t, n) => { + var i = n(31098), + r = n(23894); e.exports = function(e) { return ( 'symbol' == typeof e || - (i(e) && '[object Symbol]' == r(e)) + (r(e) && '[object Symbol]' == i(e)) ); }; }, - 36719: (e, t, n) => { - var r = n(38749), - i = n(7518), - o = n(31167), - a = o && o.isTypedArray, - s = a ? i(a) : r; - e.exports = s; + 25209: (e, t, n) => { + var i = n(30337), + r = n(79576), + o = n(67865), + s = o && o.isTypedArray, + a = s ? r(s) : i; + e.exports = a; }, - 81018: (e, t, n) => { - var r = n(64160), - i = n(37005); + 3138: (e, t, n) => { + var i = n(62629), + r = n(23894); e.exports = function(e) { - return i(e) && '[object WeakMap]' == r(e); + return r(e) && '[object WeakMap]' == i(e); }; }, - 72594: (e, t, n) => { - var r = n(85990), - i = n(67206); + 38985: (e, t, n) => { + var i = n(51e3), + r = n(74224); e.exports = function(e) { - return i('function' == typeof e ? e : r(e, 1)); + return r('function' == typeof e ? e : i(e, 1)); }; }, - 3674: (e, t, n) => { - var r = n(14636), - i = n(280), - o = n(98612); + 81832: (e, t, n) => { + var i = n(25086), + r = n(7212), + o = n(91874); e.exports = function(e) { - return o(e) ? r(e) : i(e); + return o(e) ? i(e) : r(e); }; }, - 23360: (e, t, n) => { - var r = n(14636), - i = n(10313), - o = n(98612); + 56635: (e, t, n) => { + var i = n(25086), + r = n(72694), + o = n(91874); e.exports = function(e) { - return o(e) ? r(e, !0) : i(e); + return o(e) ? i(e, !0) : r(e); }; }, - 10928: e => { + 9545: e => { e.exports = function(e) { var t = null == e ? 0 : e.length; return t ? e[t - 1] : void 0; }; }, - 88306: (e, t, n) => { - var r = n(83369); - function i(e, t) { + 69807: (e, t, n) => { + var i = n(38224); + function r(e, t) { if ( 'function' != typeof e || (null != t && 'function' != typeof t) ) throw new TypeError('Expected a function'); var n = function() { - var r = arguments, - i = t ? t.apply(this, r) : r[0], + var i = arguments, + r = t ? t.apply(this, i) : i[0], o = n.cache; - if (o.has(i)) return o.get(i); - var a = e.apply(this, r); - return (n.cache = o.set(i, a) || o), a; + if (o.has(r)) return o.get(r); + var s = e.apply(this, i); + return (n.cache = o.set(r, s) || o), s; }; - return (n.cache = new (i.Cache || r)()), n; + return (n.cache = new (r.Cache || i)()), n; } - (i.Cache = r), (e.exports = i); + (r.Cache = i), (e.exports = r); }, - 30236: (e, t, n) => { - var r = n(42980), - i = n(21463)(function(e, t, n, i) { - r(e, t, n, i); + 26691: (e, t, n) => { + var i = n(54663), + r = n(32938)(function(e, t, n, r) { + i(e, t, n, r); }); - e.exports = i; + e.exports = r; }, - 50308: e => { + 99433: e => { e.exports = function() {}; }, - 39601: (e, t, n) => { - var r = n(40371), - i = n(79152), - o = n(15403), - a = n(40327); + 96669: (e, t, n) => { + var i = n(75045), + r = n(22843), + o = n(59901), + s = n(40641); e.exports = function(e) { - return o(e) ? r(a(e)) : i(e); + return o(e) ? i(s(e)) : r(e); }; }, - 4963: (e, t, n) => { - var r = n(97727), - i = n(99021), - o = i(function(e, t) { - return r(e, 256, void 0, void 0, void 0, t); + 27079: (e, t, n) => { + var i = n(78397), + r = n(43320), + o = r(function(e, t) { + return i(e, 256, void 0, void 0, void 0, t); }); e.exports = o; }, - 70479: e => { + 87719: e => { e.exports = function() { return []; }; }, - 95062: e => { + 39364: e => { e.exports = function() { return !1; }; }, - 18601: (e, t, n) => { - var r = n(14841), - i = 1 / 0; + 97201: (e, t, n) => { + var i = n(58314), + r = 1 / 0; e.exports = function(e) { return e - ? (e = r(e)) === i || e === -1 / 0 + ? (e = i(e)) === r || e === -1 / 0 ? 17976931348623157e292 * (e < 0 ? -1 : 1) : e == e ? e @@ -9850,421 +9399,421 @@ : 0; }; }, - 40554: (e, t, n) => { - var r = n(18601); + 30090: (e, t, n) => { + var i = n(97201); e.exports = function(e) { - var t = r(e), + var t = i(e), n = t % 1; return t == t ? (n ? t - n : t) : 0; }; }, - 14841: (e, t, n) => { - var r = n(13218), - i = n(33448), - o = /^\s+|\s+$/g, - a = /^[-+]0x[0-9a-f]+$/i, - s = /^0b[01]+$/i, + 58314: (e, t, n) => { + var i = n(90893), + r = n(40162), + o = n(39105), + s = /^[-+]0x[0-9a-f]+$/i, + a = /^0b[01]+$/i, A = /^0o[0-7]+$/i, c = parseInt; e.exports = function(e) { if ('number' == typeof e) return e; - if (i(e)) return NaN; + if (o(e)) return NaN; if (r(e)) { var t = 'function' == typeof e.valueOf ? e.valueOf() : e; e = r(t) ? t + '' : t; } if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(o, ''); - var n = s.test(e); + e = i(e); + var n = a.test(e); return n || A.test(e) ? c(e.slice(2), n ? 2 : 8) - : a.test(e) + : s.test(e) ? NaN : +e; }; }, - 30084: (e, t, n) => { - var r = n(29932), - i = n(278), - o = n(1469), - a = n(33448), - s = n(55514), - A = n(40327), - c = n(79833); + 65589: (e, t, n) => { + var i = n(74145), + r = n(76972), + o = n(15811), + s = n(39105), + a = n(89359), + A = n(40641), + c = n(80753); e.exports = function(e) { - return o(e) ? r(e, A) : a(e) ? [e] : i(s(c(e))); + return o(e) ? i(e, A) : s(e) ? [e] : r(a(c(e))); }; }, - 59881: (e, t, n) => { - var r = n(98363), - i = n(23360); + 66822: (e, t, n) => { + var i = n(84512), + r = n(56635); e.exports = function(e) { - return r(e, i(e)); + return i(e, r(e)); }; }, - 79833: (e, t, n) => { - var r = n(80531); + 80753: (e, t, n) => { + var i = n(46527); e.exports = function(e) { - return null == e ? '' : r(e); + return null == e ? '' : i(e); }; }, - 8111: (e, t, n) => { - var r = n(96425), - i = n(7548), - o = n(9435), - a = n(1469), - s = n(37005), - A = n(21913), + 24603: (e, t, n) => { + var i = n(63956), + r = n(20140), + o = n(66189), + s = n(15811), + a = n(23894), + A = n(8409), c = Object.prototype.hasOwnProperty; function l(e) { - if (s(e) && !a(e) && !(e instanceof r)) { - if (e instanceof i) return e; + if (a(e) && !s(e) && !(e instanceof i)) { + if (e instanceof r) return e; if (c.call(e, '__wrapped__')) return A(e); } - return new i(e); + return new r(e); } (l.prototype = o.prototype), (l.prototype.constructor = l), (e.exports = l); }, - 52491: e => { + 68951: e => { 'use strict'; e.exports = function(e, t) { var n, - r, - i = 0, + i, + r = 0, o = 0; if ('string' != typeof t || 1 !== t.length) throw new Error('Expected character'); - (e = String(e)), (r = e.indexOf(t)), (n = r); - for (; -1 !== r; ) - i++, - r === n ? i > o && (o = i) : (i = 1), - (n = r + 1), - (r = e.indexOf(t, n)); + (e = String(e)), (i = e.indexOf(t)), (n = i); + for (; -1 !== i; ) + r++, + i === n ? r > o && (o = r) : (r = 1), + (n = i + 1), + (i = e.indexOf(t, n)); return o; }; }, - 26912: (e, t, n) => { + 94358: (e, t, n) => { 'use strict'; - var r = n(96470); - (e.exports = r), - r.registerLanguage('1c', n(6590)), - r.registerLanguage('abnf', n(35102)), - r.registerLanguage('accesslog', n(64683)), - r.registerLanguage('actionscript', n(73453)), - r.registerLanguage('ada', n(60195)), - r.registerLanguage('angelscript', n(83474)), - r.registerLanguage('apache', n(54837)), - r.registerLanguage('applescript', n(11515)), - r.registerLanguage('arcade', n(36426)), - r.registerLanguage('arduino', n(73282)), - r.registerLanguage('armasm', n(74010)), - r.registerLanguage('xml', n(38498)), - r.registerLanguage('asciidoc', n(73999)), - r.registerLanguage('aspectj', n(3152)), - r.registerLanguage('autohotkey', n(73363)), - r.registerLanguage('autoit', n(13965)), - r.registerLanguage('avrasm', n(54601)), - r.registerLanguage('awk', n(98614)), - r.registerLanguage('axapta', n(72242)), - r.registerLanguage('bash', n(93425)), - r.registerLanguage('basic', n(35760)), - r.registerLanguage('bnf', n(39)), - r.registerLanguage('brainfuck', n(13680)), - r.registerLanguage('c-like', n(53959)), - r.registerLanguage('c', n(24918)), - r.registerLanguage('cal', n(58969)), - r.registerLanguage('capnproto', n(48970)), - r.registerLanguage('ceylon', n(19609)), - r.registerLanguage('clean', n(47830)), - r.registerLanguage('clojure', n(59650)), - r.registerLanguage('clojure-repl', n(16920)), - r.registerLanguage('cmake', n(30841)), - r.registerLanguage('coffeescript', n(55728)), - r.registerLanguage('coq', n(79861)), - r.registerLanguage('cos', n(16720)), - r.registerLanguage('cpp', n(20878)), - r.registerLanguage('crmsh', n(42935)), - r.registerLanguage('crystal', n(82717)), - r.registerLanguage('csharp', n(68992)), - r.registerLanguage('csp', n(93629)), - r.registerLanguage('css', n(29536)), - r.registerLanguage('d', n(50)), - r.registerLanguage('markdown', n(61234)), - r.registerLanguage('dart', n(94641)), - r.registerLanguage('delphi', n(97130)), - r.registerLanguage('diff', n(18910)), - r.registerLanguage('django', n(96695)), - r.registerLanguage('dns', n(38374)), - r.registerLanguage('dockerfile', n(56020)), - r.registerLanguage('dos', n(47515)), - r.registerLanguage('dsconfig', n(18370)), - r.registerLanguage('dts', n(9823)), - r.registerLanguage('dust', n(37467)), - r.registerLanguage('ebnf', n(10100)), - r.registerLanguage('elixir', n(39222)), - r.registerLanguage('elm', n(34279)), - r.registerLanguage('ruby', n(30565)), - r.registerLanguage('erb', n(47021)), - r.registerLanguage('erlang-repl', n(89679)), - r.registerLanguage('erlang', n(26997)), - r.registerLanguage('excel', n(68061)), - r.registerLanguage('fix', n(26726)), - r.registerLanguage('flix', n(97358)), - r.registerLanguage('fortran', n(29733)), - r.registerLanguage('fsharp', n(47795)), - r.registerLanguage('gams', n(98527)), - r.registerLanguage('gauss', n(86845)), - r.registerLanguage('gcode', n(59730)), - r.registerLanguage('gherkin', n(72513)), - r.registerLanguage('glsl', n(74676)), - r.registerLanguage('gml', n(29510)), - r.registerLanguage('go', n(41757)), - r.registerLanguage('golo', n(40142)), - r.registerLanguage('gradle', n(83659)), - r.registerLanguage('groovy', n(44423)), - r.registerLanguage('haml', n(76635)), - r.registerLanguage('handlebars', n(65865)), - r.registerLanguage('haskell', n(40659)), - r.registerLanguage('haxe', n(76182)), - r.registerLanguage('hsp', n(91033)), - r.registerLanguage('htmlbars', n(4544)), - r.registerLanguage('http', n(86811)), - r.registerLanguage('hy', n(73907)), - r.registerLanguage('inform7', n(26384)), - r.registerLanguage('ini', n(6326)), - r.registerLanguage('irpf90', n(81002)), - r.registerLanguage('isbl', n(94101)), - r.registerLanguage('java', n(32178)), - r.registerLanguage('javascript', n(94907)), - r.registerLanguage('jboss-cli', n(50728)), - r.registerLanguage('json', n(72270)), - r.registerLanguage('julia', n(72942)), - r.registerLanguage('julia-repl', n(77934)), - r.registerLanguage('kotlin', n(4424)), - r.registerLanguage('lasso', n(54772)), - r.registerLanguage('latex', n(17711)), - r.registerLanguage('ldif', n(85712)), - r.registerLanguage('leaf', n(69698)), - r.registerLanguage('less', n(97191)), - r.registerLanguage('lisp', n(59898)), - r.registerLanguage('livecodeserver', n(54952)), - r.registerLanguage('livescript', n(27414)), - r.registerLanguage('llvm', n(2046)), - r.registerLanguage('lsl', n(48340)), - r.registerLanguage('lua', n(8675)), - r.registerLanguage('makefile', n(2991)), - r.registerLanguage('mathematica', n(29075)), - r.registerLanguage('matlab', n(80552)), - r.registerLanguage('maxima', n(5731)), - r.registerLanguage('mel', n(19533)), - r.registerLanguage('mercury', n(59355)), - r.registerLanguage('mipsasm', n(84788)), - r.registerLanguage('mizar', n(51608)), - r.registerLanguage('perl', n(4595)), - r.registerLanguage('mojolicious', n(44442)), - r.registerLanguage('monkey', n(77852)), - r.registerLanguage('moonscript', n(49935)), - r.registerLanguage('n1ql', n(84527)), - r.registerLanguage('nginx', n(14134)), - r.registerLanguage('nim', n(6185)), - r.registerLanguage('nix', n(32888)), - r.registerLanguage('node-repl', n(74116)), - r.registerLanguage('nsis', n(21151)), - r.registerLanguage('objectivec', n(6489)), - r.registerLanguage('ocaml', n(45250)), - r.registerLanguage('openscad', n(61319)), - r.registerLanguage('oxygene', n(24963)), - r.registerLanguage('parser3', n(87155)), - r.registerLanguage('pf', n(97895)), - r.registerLanguage('pgsql', n(35701)), - r.registerLanguage('php', n(77041)), - r.registerLanguage('php-template', n(30388)), - r.registerLanguage('plaintext', n(80333)), - r.registerLanguage('pony', n(53795)), - r.registerLanguage('powershell', n(40862)), - r.registerLanguage('processing', n(36943)), - r.registerLanguage('profile', n(92680)), - r.registerLanguage('prolog', n(74370)), - r.registerLanguage('properties', n(79088)), - r.registerLanguage('protobuf', n(67295)), - r.registerLanguage('puppet', n(62834)), - r.registerLanguage('purebasic', n(95742)), - r.registerLanguage('python', n(27435)), - r.registerLanguage('python-repl', n(71562)), - r.registerLanguage('q', n(2676)), - r.registerLanguage('qml', n(1324)), - r.registerLanguage('r', n(10034)), - r.registerLanguage('reasonml', n(41326)), - r.registerLanguage('rib', n(41115)), - r.registerLanguage('roboconf', n(26177)), - r.registerLanguage('routeros', n(77376)), - r.registerLanguage('rsl', n(43781)), - r.registerLanguage('ruleslanguage', n(39685)), - r.registerLanguage('rust', n(77686)), - r.registerLanguage('sas', n(49730)), - r.registerLanguage('scala', n(97609)), - r.registerLanguage('scheme', n(41199)), - r.registerLanguage('scilab', n(21958)), - r.registerLanguage('scss', n(52054)), - r.registerLanguage('shell', n(64453)), - r.registerLanguage('smali', n(32377)), - r.registerLanguage('smalltalk', n(45638)), - r.registerLanguage('sml', n(27185)), - r.registerLanguage('sqf', n(57942)), - r.registerLanguage('sql_more', n(92509)), - r.registerLanguage('sql', n(11451)), - r.registerLanguage('stan', n(89526)), - r.registerLanguage('stata', n(16120)), - r.registerLanguage('step21', n(7117)), - r.registerLanguage('stylus', n(5298)), - r.registerLanguage('subunit', n(24859)), - r.registerLanguage('swift', n(86224)), - r.registerLanguage('taggerscript', n(77235)), - r.registerLanguage('yaml', n(62555)), - r.registerLanguage('tap', n(97523)), - r.registerLanguage('tcl', n(9450)), - r.registerLanguage('thrift', n(88503)), - r.registerLanguage('tp', n(20572)), - r.registerLanguage('twig', n(22674)), - r.registerLanguage('typescript', n(10251)), - r.registerLanguage('vala', n(36433)), - r.registerLanguage('vbnet', n(3935)), - r.registerLanguage('vbscript', n(67926)), - r.registerLanguage('vbscript-html', n(67493)), - r.registerLanguage('verilog', n(74952)), - r.registerLanguage('vhdl', n(60388)), - r.registerLanguage('vim', n(80398)), - r.registerLanguage('x86asm', n(14e3)), - r.registerLanguage('xl', n(91170)), - r.registerLanguage('xquery', n(28662)), - r.registerLanguage('zephir', n(17648)); - }, - 96470: (e, t, n) => { + var i = n(91446); + (e.exports = i), + i.registerLanguage('1c', n(31416)), + i.registerLanguage('abnf', n(49098)), + i.registerLanguage('accesslog', n(93443)), + i.registerLanguage('actionscript', n(73091)), + i.registerLanguage('ada', n(97128)), + i.registerLanguage('angelscript', n(62405)), + i.registerLanguage('apache', n(49935)), + i.registerLanguage('applescript', n(5148)), + i.registerLanguage('arcade', n(76896)), + i.registerLanguage('arduino', n(29261)), + i.registerLanguage('armasm', n(42918)), + i.registerLanguage('xml', n(89807)), + i.registerLanguage('asciidoc', n(41030)), + i.registerLanguage('aspectj', n(17890)), + i.registerLanguage('autohotkey', n(63447)), + i.registerLanguage('autoit', n(69546)), + i.registerLanguage('avrasm', n(17253)), + i.registerLanguage('awk', n(55764)), + i.registerLanguage('axapta', n(7421)), + i.registerLanguage('bash', n(54394)), + i.registerLanguage('basic', n(68159)), + i.registerLanguage('bnf', n(70580)), + i.registerLanguage('brainfuck', n(56591)), + i.registerLanguage('c-like', n(64471)), + i.registerLanguage('c', n(60898)), + i.registerLanguage('cal', n(87962)), + i.registerLanguage('capnproto', n(51188)), + i.registerLanguage('ceylon', n(43526)), + i.registerLanguage('clean', n(41103)), + i.registerLanguage('clojure', n(2066)), + i.registerLanguage('clojure-repl', n(56941)), + i.registerLanguage('cmake', n(91596)), + i.registerLanguage('coffeescript', n(33514)), + i.registerLanguage('coq', n(16223)), + i.registerLanguage('cos', n(50007)), + i.registerLanguage('cpp', n(56198)), + i.registerLanguage('crmsh', n(16128)), + i.registerLanguage('crystal', n(4499)), + i.registerLanguage('csharp', n(71652)), + i.registerLanguage('csp', n(53544)), + i.registerLanguage('css', n(64173)), + i.registerLanguage('d', n(80402)), + i.registerLanguage('markdown', n(60461)), + i.registerLanguage('dart', n(33483)), + i.registerLanguage('delphi', n(41791)), + i.registerLanguage('diff', n(86108)), + i.registerLanguage('django', n(92986)), + i.registerLanguage('dns', n(38283)), + i.registerLanguage('dockerfile', n(35614)), + i.registerLanguage('dos', n(37848)), + i.registerLanguage('dsconfig', n(75986)), + i.registerLanguage('dts', n(20221)), + i.registerLanguage('dust', n(93316)), + i.registerLanguage('ebnf', n(7434)), + i.registerLanguage('elixir', n(97496)), + i.registerLanguage('elm', n(99366)), + i.registerLanguage('ruby', n(84530)), + i.registerLanguage('erb', n(41339)), + i.registerLanguage('erlang-repl', n(30525)), + i.registerLanguage('erlang', n(73056)), + i.registerLanguage('excel', n(76722)), + i.registerLanguage('fix', n(40069)), + i.registerLanguage('flix', n(25749)), + i.registerLanguage('fortran', n(82145)), + i.registerLanguage('fsharp', n(91865)), + i.registerLanguage('gams', n(85441)), + i.registerLanguage('gauss', n(82234)), + i.registerLanguage('gcode', n(16883)), + i.registerLanguage('gherkin', n(63970)), + i.registerLanguage('glsl', n(37986)), + i.registerLanguage('gml', n(57285)), + i.registerLanguage('go', n(21e3)), + i.registerLanguage('golo', n(48693)), + i.registerLanguage('gradle', n(17785)), + i.registerLanguage('groovy', n(46559)), + i.registerLanguage('haml', n(7764)), + i.registerLanguage('handlebars', n(78971)), + i.registerLanguage('haskell', n(1549)), + i.registerLanguage('haxe', n(85090)), + i.registerLanguage('hsp', n(33712)), + i.registerLanguage('htmlbars', n(11707)), + i.registerLanguage('http', n(99244)), + i.registerLanguage('hy', n(45402)), + i.registerLanguage('inform7', n(89191)), + i.registerLanguage('ini', n(35982)), + i.registerLanguage('irpf90', n(40084)), + i.registerLanguage('isbl', n(99293)), + i.registerLanguage('java', n(87502)), + i.registerLanguage('javascript', n(12859)), + i.registerLanguage('jboss-cli', n(92698)), + i.registerLanguage('json', n(51697)), + i.registerLanguage('julia', n(96649)), + i.registerLanguage('julia-repl', n(18758)), + i.registerLanguage('kotlin', n(10288)), + i.registerLanguage('lasso', n(93973)), + i.registerLanguage('latex', n(37784)), + i.registerLanguage('ldif', n(19675)), + i.registerLanguage('leaf', n(3881)), + i.registerLanguage('less', n(36987)), + i.registerLanguage('lisp', n(85941)), + i.registerLanguage('livecodeserver', n(48165)), + i.registerLanguage('livescript', n(50344)), + i.registerLanguage('llvm', n(94201)), + i.registerLanguage('lsl', n(6739)), + i.registerLanguage('lua', n(11530)), + i.registerLanguage('makefile', n(45545)), + i.registerLanguage('mathematica', n(78558)), + i.registerLanguage('matlab', n(64528)), + i.registerLanguage('maxima', n(67440)), + i.registerLanguage('mel', n(67413)), + i.registerLanguage('mercury', n(75859)), + i.registerLanguage('mipsasm', n(35408)), + i.registerLanguage('mizar', n(5109)), + i.registerLanguage('perl', n(16571)), + i.registerLanguage('mojolicious', n(58666)), + i.registerLanguage('monkey', n(17230)), + i.registerLanguage('moonscript', n(84235)), + i.registerLanguage('n1ql', n(96459)), + i.registerLanguage('nginx', n(2715)), + i.registerLanguage('nim', n(82269)), + i.registerLanguage('nix', n(48682)), + i.registerLanguage('node-repl', n(33500)), + i.registerLanguage('nsis', n(79045)), + i.registerLanguage('objectivec', n(30323)), + i.registerLanguage('ocaml', n(79848)), + i.registerLanguage('openscad', n(51827)), + i.registerLanguage('oxygene', n(287)), + i.registerLanguage('parser3', n(92201)), + i.registerLanguage('pf', n(89460)), + i.registerLanguage('pgsql', n(15293)), + i.registerLanguage('php', n(72234)), + i.registerLanguage('php-template', n(48891)), + i.registerLanguage('plaintext', n(34939)), + i.registerLanguage('pony', n(88024)), + i.registerLanguage('powershell', n(92910)), + i.registerLanguage('processing', n(86371)), + i.registerLanguage('profile', n(58136)), + i.registerLanguage('prolog', n(40259)), + i.registerLanguage('properties', n(28231)), + i.registerLanguage('protobuf', n(74590)), + i.registerLanguage('puppet', n(58650)), + i.registerLanguage('purebasic', n(68744)), + i.registerLanguage('python', n(45424)), + i.registerLanguage('python-repl', n(35510)), + i.registerLanguage('q', n(78484)), + i.registerLanguage('qml', n(29004)), + i.registerLanguage('r', n(45911)), + i.registerLanguage('reasonml', n(83131)), + i.registerLanguage('rib', n(69718)), + i.registerLanguage('roboconf', n(20019)), + i.registerLanguage('routeros', n(85864)), + i.registerLanguage('rsl', n(90613)), + i.registerLanguage('ruleslanguage', n(126)), + i.registerLanguage('rust', n(50018)), + i.registerLanguage('sas', n(52203)), + i.registerLanguage('scala', n(12783)), + i.registerLanguage('scheme', n(62594)), + i.registerLanguage('scilab', n(56608)), + i.registerLanguage('scss', n(10100)), + i.registerLanguage('shell', n(63154)), + i.registerLanguage('smali', n(83640)), + i.registerLanguage('smalltalk', n(63990)), + i.registerLanguage('sml', n(82130)), + i.registerLanguage('sqf', n(74448)), + i.registerLanguage('sql_more', n(16500)), + i.registerLanguage('sql', n(62834)), + i.registerLanguage('stan', n(13949)), + i.registerLanguage('stata', n(22019)), + i.registerLanguage('step21', n(63523)), + i.registerLanguage('stylus', n(32043)), + i.registerLanguage('subunit', n(9307)), + i.registerLanguage('swift', n(56450)), + i.registerLanguage('taggerscript', n(87714)), + i.registerLanguage('yaml', n(27678)), + i.registerLanguage('tap', n(31684)), + i.registerLanguage('tcl', n(53314)), + i.registerLanguage('thrift', n(81456)), + i.registerLanguage('tp', n(4658)), + i.registerLanguage('twig', n(41546)), + i.registerLanguage('typescript', n(3935)), + i.registerLanguage('vala', n(25136)), + i.registerLanguage('vbnet', n(32122)), + i.registerLanguage('vbscript', n(64459)), + i.registerLanguage('vbscript-html', n(8150)), + i.registerLanguage('verilog', n(28845)), + i.registerLanguage('vhdl', n(52186)), + i.registerLanguage('vim', n(73031)), + i.registerLanguage('x86asm', n(37735)), + i.registerLanguage('xl', n(50190)), + i.registerLanguage('xquery', n(82530)), + i.registerLanguage('zephir', n(10634)); + }, + 91446: (e, t, n) => { 'use strict'; - var r = n(92994), - i = n(21102); - (t.highlight = a), + var i = n(11900), + r = n(73554); + (t.highlight = s), (t.highlightAuto = function(e, t) { var n, - s, + a, A, c, l = t || {}, - g = l.subset || r.listLanguages(), + g = l.subset || i.listLanguages(), u = l.prefix, d = g.length, h = -1; null == u && (u = o); if ('string' != typeof e) - throw i('Expected `string` for value, got `%s`', e); - (s = {relevance: 0, language: null, value: []}), + throw r('Expected `string` for value, got `%s`', e); + (a = {relevance: 0, language: null, value: []}), (n = {relevance: 0, language: null, value: []}); for (; ++h < d; ) (c = g[h]), - r.getLanguage(c) && - (((A = a(c, e, t)).language = c), - A.relevance > s.relevance && (s = A), + i.getLanguage(c) && + (((A = s(c, e, t)).language = c), + A.relevance > a.relevance && (a = A), A.relevance > n.relevance && - ((s = n), (n = A))); - s.language && (n.secondBest = s); + ((a = n), (n = A))); + a.language && (n.secondBest = a); return n; }), (t.registerLanguage = function(e, t) { - r.registerLanguage(e, t); + i.registerLanguage(e, t); }), (t.listLanguages = function() { - return r.listLanguages(); + return i.listLanguages(); }), (t.registerAlias = function(e, t) { var n, - i = e; - t && ((i = {})[e] = t); - for (n in i) r.registerAliases(i[n], {languageName: n}); + r = e; + t && ((r = {})[e] = t); + for (n in r) i.registerAliases(r[n], {languageName: n}); }), - (s.prototype.addText = function(e) { + (a.prototype.addText = function(e) { var t, n, - r = this.stack; + i = this.stack; if ('' === e) return; - (t = r[r.length - 1]), + (t = i[i.length - 1]), (n = t.children[t.children.length - 1]) && 'text' === n.type ? (n.value += e) : t.children.push({type: 'text', value: e}); }), - (s.prototype.addKeyword = function(e, t) { + (a.prototype.addKeyword = function(e, t) { this.openNode(t), this.addText(e), this.closeNode(); }), - (s.prototype.addSublanguage = function(e, t) { + (a.prototype.addSublanguage = function(e, t) { var n = this.stack, - r = n[n.length - 1], - i = e.rootNode.children, + i = n[n.length - 1], + r = e.rootNode.children, o = t ? { type: 'element', tagName: 'span', properties: {className: [t]}, - children: i, + children: r, } - : i; - r.children = r.children.concat(o); + : r; + i.children = i.children.concat(o); }), - (s.prototype.openNode = function(e) { + (a.prototype.openNode = function(e) { var t = this.stack, n = this.options.classPrefix + e, - r = t[t.length - 1], - i = { + i = t[t.length - 1], + r = { type: 'element', tagName: 'span', properties: {className: [n]}, children: [], }; - r.children.push(i), t.push(i); + i.children.push(r), t.push(r); }), - (s.prototype.closeNode = function() { + (a.prototype.closeNode = function() { this.stack.pop(); }), - (s.prototype.closeAllNodes = A), - (s.prototype.finalize = A), - (s.prototype.toHTML = function() { + (a.prototype.closeAllNodes = A), + (a.prototype.finalize = A), + (a.prototype.toHTML = function() { return ''; }); var o = 'hljs-'; - function a(e, t, n) { - var a, - A = r.configure({}), + function s(e, t, n) { + var s, + A = i.configure({}), c = (n || {}).prefix; if ('string' != typeof e) - throw i('Expected `string` for name, got `%s`', e); - if (!r.getLanguage(e)) - throw i('Unknown language: `%s` is not registered', e); + throw r('Expected `string` for name, got `%s`', e); + if (!i.getLanguage(e)) + throw r('Unknown language: `%s` is not registered', e); if ('string' != typeof t) - throw i('Expected `string` for value, got `%s`', t); + throw r('Expected `string` for value, got `%s`', t); if ( (null == c && (c = o), - r.configure({__emitter: s, classPrefix: c}), - (a = r.highlight(t, {language: e, ignoreIllegals: !0})), - r.configure(A || {}), - a.errorRaised) + i.configure({__emitter: a, classPrefix: c}), + (s = i.highlight(t, {language: e, ignoreIllegals: !0})), + i.configure(A || {}), + s.errorRaised) ) - throw a.errorRaised; + throw s.errorRaised; return { - relevance: a.relevance, - language: a.language, - value: a.emitter.rootNode.children, + relevance: s.relevance, + language: s.language, + value: s.emitter.rootNode.children, }; } - function s(e) { + function a(e) { (this.options = e), (this.rootNode = {children: []}), (this.stack = [this.rootNode]); } function A() {} }, - 92994: e => { + 11900: e => { function t(e) { return ( e instanceof Map @@ -10277,16 +9826,16 @@ }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(function(n) { - var r = e[n]; - 'object' != typeof r || Object.isFrozen(r) || t(r); + var i = e[n]; + 'object' != typeof i || Object.isFrozen(i) || t(i); }), e ); } var n = t, - r = t; - n.default = r; - class i { + i = t; + n.default = i; + class r { constructor(e) { void 0 === e.data && (e.data = {}), (this.data = e.data), @@ -10304,7 +9853,7 @@ .replace(/"/g, '"') .replace(/'/g, '''); } - function a(e, ...t) { + function s(e, ...t) { const n = Object.create(null); for (const t in e) n[t] = e[t]; return ( @@ -10314,7 +9863,7 @@ n ); } - const s = e => !!e.kind; + const a = e => !!e.kind; class A { constructor(e, t) { (this.buffer = ''), @@ -10325,13 +9874,13 @@ this.buffer += o(e); } openNode(e) { - if (!s(e)) return; + if (!a(e)) return; let t = e.kind; e.sublanguage || (t = `${this.classPrefix}${t}`), this.span(t); } closeNode(e) { - s(e) && (this.buffer += ''); + a(e) && (this.buffer += ''); } value() { return this.buffer; @@ -10444,7 +9993,7 @@ begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/, }, B = function(e, t, n = {}) { - const r = a( + const i = s( { className: 'comment', begin: e, @@ -10454,20 +10003,20 @@ n ); return ( - r.contains.push(y), - r.contains.push({ + i.contains.push(y), + i.contains.push({ className: 'doctag', begin: '(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):', relevance: 0, }), - r + i ); }, w = B('//', '$'), b = B('/\\*', '\\*/'), - v = B('#', '$'), - M = {className: 'number', begin: C, relevance: 0}, + M = B('#', '$'), + v = {className: 'number', begin: C, relevance: 0}, N = {className: 'number', begin: I, relevance: 0}, S = {className: 'number', begin: p, relevance: 0}, Q = { @@ -10477,7 +10026,7 @@ '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?', relevance: 0, }, - F = { + x = { begin: /(?=\/[^/\n]*\/)/, contains: [ { @@ -10497,7 +10046,7 @@ }, ], }, - x = {className: 'title', begin: d, relevance: 0}, + F = {className: 'title', begin: d, relevance: 0}, D = {className: 'title', begin: h, relevance: 0}, T = {begin: '\\.\\s*[a-zA-Z_]\\w*', relevance: 0}; var Y = Object.freeze({ @@ -10517,7 +10066,7 @@ (e.begin = (function(...e) { return e.map(e => g(e)).join(''); })(t, /.*\b/, e.binary, /\b.*/)), - a( + s( { className: 'meta', begin: t, @@ -10538,13 +10087,13 @@ COMMENT: B, C_LINE_COMMENT_MODE: w, C_BLOCK_COMMENT_MODE: b, - HASH_COMMENT_MODE: v, - NUMBER_MODE: M, + HASH_COMMENT_MODE: M, + NUMBER_MODE: v, C_NUMBER_MODE: N, BINARY_NUMBER_MODE: S, CSS_NUMBER_MODE: Q, - REGEXP_MODE: F, - TITLE_MODE: x, + REGEXP_MODE: x, + TITLE_MODE: F, UNDERSCORE_TITLE_MODE: D, METHOD_GUARD: T, END_SAME_AS_BEGIN: function(e) { @@ -10588,10 +10137,10 @@ (e.begin = e.match), delete e.match; } } - function k(e, t) { + function G(e, t) { void 0 === e.relevance && (e.relevance = 1); } - const G = [ + const L = [ 'of', 'and', 'for', @@ -10604,36 +10153,36 @@ 'list', 'value', ]; - function L(e, t, n = 'keyword') { - const r = {}; + function k(e, t, n = 'keyword') { + const i = {}; return ( 'string' == typeof e - ? i(n, e.split(' ')) + ? r(n, e.split(' ')) : Array.isArray(e) - ? i(n, e) + ? r(n, e) : Object.keys(e).forEach(function(n) { - Object.assign(r, L(e[n], t, n)); + Object.assign(i, k(e[n], t, n)); }), - r + i ); - function i(e, n) { + function r(e, n) { t && (n = n.map(e => e.toLowerCase())), n.forEach(function(t) { const n = t.split('|'); - r[n[0]] = [e, j(n[0], n[1])]; + i[n[0]] = [e, z(n[0], n[1])]; }); } } - function j(e, t) { + function z(e, t) { return t ? Number(t) : (function(e) { - return G.includes(e.toLowerCase()); + return L.includes(e.toLowerCase()); })(e) ? 0 : 1; } - function z(e, {plugins: t}) { + function j(e, {plugins: t}) { function n(t, n) { return new RegExp( g(t), @@ -10642,7 +10191,7 @@ (n ? 'g' : '') ); } - class r { + class i { constructor() { (this.matchIndexes = {}), (this.regexes = []), @@ -10673,29 +10222,29 @@ .map(e => { n += 1; const t = n; - let r = g(e), - i = ''; - for (; r.length > 0; ) { - const e = u.exec(r); + let i = g(e), + r = ''; + for (; i.length > 0; ) { + const e = u.exec(i); if (!e) { - i += r; + r += i; break; } - (i += r.substring(0, e.index)), - (r = r.substring( + (r += i.substring(0, e.index)), + (i = i.substring( e.index + e[0].length )), '\\' === e[0][0] && e[1] - ? (i += + ? (r += '\\' + String( Number(e[1]) + t )) - : ((i += e[0]), + : ((r += e[0]), '(' === e[0] && n++); } - return i; + return r; }) .map(e => `(${e})`) .join(t); @@ -10711,11 +10260,11 @@ const n = t.findIndex( (e, t) => t > 0 && void 0 !== e ), - r = this.matchIndexes[n]; - return t.splice(0, n), Object.assign(t, r); + i = this.matchIndexes[n]; + return t.splice(0, n), Object.assign(t, i); } } - class i { + class r { constructor() { (this.rules = []), (this.multiRegexes = []), @@ -10726,7 +10275,7 @@ getMatcher(e) { if (this.multiRegexes[e]) return this.multiRegexes[e]; - const t = new r(); + const t = new i(); return ( this.rules .slice(e) @@ -10774,57 +10323,57 @@ 'ERR: contains `self` is not supported at the top-level of a language. See documentation.' ); return ( - (e.classNameAliases = a(e.classNameAliases || {})), - (function t(r, o) { - const s = r; - if (r.isCompiled) return s; - [O].forEach(e => e(r, o)), - e.compilerExtensions.forEach(e => e(r, o)), - (r.__beforeBegin = null), - [_, U, k].forEach(e => e(r, o)), - (r.isCompiled = !0); + (e.classNameAliases = s(e.classNameAliases || {})), + (function t(i, o) { + const a = i; + if (i.isCompiled) return a; + [O].forEach(e => e(i, o)), + e.compilerExtensions.forEach(e => e(i, o)), + (i.__beforeBegin = null), + [_, U, G].forEach(e => e(i, o)), + (i.isCompiled = !0); let A = null; if ( - ('object' == typeof r.keywords && - ((A = r.keywords.$pattern), - delete r.keywords.$pattern), - r.keywords && - (r.keywords = L( - r.keywords, + ('object' == typeof i.keywords && + ((A = i.keywords.$pattern), + delete i.keywords.$pattern), + i.keywords && + (i.keywords = k( + i.keywords, e.case_insensitive )), - r.lexemes && A) + i.lexemes && A) ) throw new Error( 'ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ' ); return ( - (A = A || r.lexemes || /\w+/), - (s.keywordPatternRe = n(A, !0)), + (A = A || i.lexemes || /\w+/), + (a.keywordPatternRe = n(A, !0)), o && - (r.begin || (r.begin = /\B|\b/), - (s.beginRe = n(r.begin)), - r.endSameAsBegin && (r.end = r.begin), - r.end || - r.endsWithParent || - (r.end = /\B|\b/), - r.end && (s.endRe = n(r.end)), - (s.terminatorEnd = g(r.end) || ''), - r.endsWithParent && + (i.begin || (i.begin = /\B|\b/), + (a.beginRe = n(i.begin)), + i.endSameAsBegin && (i.end = i.begin), + i.end || + i.endsWithParent || + (i.end = /\B|\b/), + i.end && (a.endRe = n(i.end)), + (a.terminatorEnd = g(i.end) || ''), + i.endsWithParent && o.terminatorEnd && - (s.terminatorEnd += - (r.end ? '|' : '') + + (a.terminatorEnd += + (i.end ? '|' : '') + o.terminatorEnd)), - r.illegal && (s.illegalRe = n(r.illegal)), - r.contains || (r.contains = []), - (r.contains = [].concat( - ...r.contains.map(function(e) { + i.illegal && (a.illegalRe = n(i.illegal)), + i.contains || (i.contains = []), + (i.contains = [].concat( + ...i.contains.map(function(e) { return (function(e) { e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map( function(t) { - return a( + return s( e, {variants: null}, t @@ -10834,22 +10383,22 @@ if (e.cachedVariants) return e.cachedVariants; if (P(e)) - return a(e, { + return s(e, { starts: e.starts - ? a(e.starts) + ? s(e.starts) : null, }); - if (Object.isFrozen(e)) return a(e); + if (Object.isFrozen(e)) return s(e); return e; - })('self' === e ? r : e); + })('self' === e ? i : e); }) )), - r.contains.forEach(function(e) { - t(e, s); + i.contains.forEach(function(e) { + t(e, a); }), - r.starts && t(r.starts, o), - (s.matcher = (function(e) { - const t = new i(); + i.starts && t(i.starts, o), + (a.matcher = (function(e) { + const t = new r(); return ( e.contains.forEach(e => t.addRule(e.begin, { @@ -10867,8 +10416,8 @@ }), t ); - })(s)), - s + })(a)), + a ); })(e) ); @@ -10944,15 +10493,15 @@ } const J = { 'after:highlightElement': ({el: e, result: t, text: n}) => { - const r = V(e); - if (!r.length) return; - const i = document.createElement('div'); - (i.innerHTML = t.value), + const i = V(e); + if (!i.length) return; + const r = document.createElement('div'); + (r.innerHTML = t.value), (t.value = (function(e, t, n) { - let r = 0, - i = ''; - const a = []; - function s() { + let i = 0, + r = ''; + const s = []; + function a() { return e.length && t.length ? e[0].offset !== t[0].offset ? e[0].offset < t[0].offset @@ -10975,42 +10524,42 @@ '"' ); } - i += + r += '<' + W(e) + [].map.call(e.attributes, t).join('') + '>'; } function c(e) { - i += ''; + r += ''; } function l(e) { ('start' === e.event ? A : c)(e.node); } for (; e.length || t.length; ) { - let t = s(); + let t = a(); if ( - ((i += o(n.substring(r, t[0].offset))), - (r = t[0].offset), + ((r += o(n.substring(i, t[0].offset))), + (i = t[0].offset), t === e) ) { - a.reverse().forEach(c); + s.reverse().forEach(c); do { - l(t.splice(0, 1)[0]), (t = s()); + l(t.splice(0, 1)[0]), (t = a()); } while ( t === e && t.length && - t[0].offset === r + t[0].offset === i ); - a.reverse().forEach(A); + s.reverse().forEach(A); } else 'start' === t[0].event - ? a.push(t[0].node) - : a.pop(), + ? s.push(t[0].node) + : s.pop(), l(t.splice(0, 1)[0]); } - return i + o(n.substr(r)); - })(r, V(i), n)); + return r + o(n.substr(i)); + })(i, V(r), n)); }, }; function W(e) { @@ -11019,24 +10568,24 @@ function V(e) { const t = []; return ( - (function e(n, r) { - for (let i = n.firstChild; i; i = i.nextSibling) - 3 === i.nodeType - ? (r += i.nodeValue.length) - : 1 === i.nodeType && + (function e(n, i) { + for (let r = n.firstChild; r; r = r.nextSibling) + 3 === r.nodeType + ? (i += r.nodeValue.length) + : 1 === r.nodeType && (t.push({ event: 'start', - offset: r, - node: i, + offset: i, + node: r, }), - (r = e(i, r)), - W(i).match(/br|hr|img|input/) || + (i = e(r, i)), + W(r).match(/br|hr|img|input/) || t.push({ event: 'stop', - offset: r, - node: i, + offset: i, + node: r, })); - return r; + return i; })(e, 0), t ); @@ -11054,14 +10603,14 @@ (K[`${e}/${t}`] = !0)); }, $ = o, - ee = a, + ee = s, te = Symbol('nomatch'); var ne = (function(e) { const t = Object.create(null), - r = Object.create(null), + i = Object.create(null), o = []; - let a = !0; - const s = /(^(<[^>]+>|\t|)+|\n)/gm, + let s = !0; + const a = /(^(<[^>]+>|\t|)+|\n)/gm, A = "Could not find the language '{}', did you forget to load/include a language module?", c = { @@ -11081,14 +10630,14 @@ function u(e) { return g.noHighlightRe.test(e); } - function d(e, t, n, r) { - let i = '', + function d(e, t, n, i) { + let r = '', o = ''; 'object' == typeof t - ? ((i = e), + ? ((r = e), (n = t.ignoreIllegals), (o = t.language), - (r = void 0)) + (i = void 0)) : (q( '10.7.0', 'highlight(lang, code, ...args) has been deprecated.' @@ -11098,15 +10647,15 @@ 'Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277' ), (o = e), - (i = t)); - const a = {code: i, language: o}; - M('before:highlight', a); - const s = a.result - ? a.result - : h(a.language, a.code, n, r); - return (s.code = a.code), M('after:highlight', s), s; - } - function h(e, n, r, s) { + (r = t)); + const s = {code: r, language: o}; + v('before:highlight', s); + const a = s.result + ? s.result + : h(s.language, s.code, n, i); + return (a.code = s.code), v('after:highlight', a), a; + } + function h(e, n, i, a) { function c(e, t) { const n = y.case_insensitive ? t[0].toLowerCase() @@ -11119,48 +10668,48 @@ ); } function l() { - null != v.subLanguage + null != M.subLanguage ? (function() { if ('' === S) return; let e = null; - if ('string' == typeof v.subLanguage) { - if (!t[v.subLanguage]) + if ('string' == typeof M.subLanguage) { + if (!t[M.subLanguage]) return void N.addText(S); (e = h( - v.subLanguage, + M.subLanguage, S, !0, - M[v.subLanguage] + v[M.subLanguage] )), - (M[v.subLanguage] = e.top); + (v[M.subLanguage] = e.top); } else e = C( S, - v.subLanguage.length - ? v.subLanguage + M.subLanguage.length + ? M.subLanguage : null ); - v.relevance > 0 && (Q += e.relevance), + M.relevance > 0 && (Q += e.relevance), N.addSublanguage( e.emitter, e.language ); })() : (function() { - if (!v.keywords) return void N.addText(S); + if (!M.keywords) return void N.addText(S); let e = 0; - v.keywordPatternRe.lastIndex = 0; - let t = v.keywordPatternRe.exec(S), + M.keywordPatternRe.lastIndex = 0; + let t = M.keywordPatternRe.exec(S), n = ''; for (; t; ) { n += S.substring(e, t.index); - const r = c(v, t); - if (r) { - const [e, i] = r; + const i = c(M, t); + if (i) { + const [e, r] = i; if ( (N.addText(n), (n = ''), - (Q += i), + (Q += r), e.startsWith('_')) ) n += t[0]; @@ -11171,8 +10720,8 @@ N.addKeyword(t[0], n); } } else n += t[0]; - (e = v.keywordPatternRe.lastIndex), - (t = v.keywordPatternRe.exec(S)); + (e = M.keywordPatternRe.lastIndex), + (t = M.keywordPatternRe.exec(S)); } (n += S.substr(e)), N.addText(n); })(), @@ -11185,22 +10734,22 @@ y.classNameAliases[e.className] || e.className ), - (v = Object.create(e, {parent: {value: v}})), - v + (M = Object.create(e, {parent: {value: M}})), + M ); } function d(e, t, n) { - let r = (function(e, t) { + let i = (function(e, t) { const n = e && e.exec(t); return n && 0 === n.index; })(e.endRe, n); - if (r) { + if (i) { if (e['on:end']) { - const n = new i(e); + const n = new r(e); e['on:end'](t, n), - n.isMatchIgnored && (r = !1); + n.isMatchIgnored && (i = !1); } - if (r) { + if (i) { for (; e.endsParent && e.parent; ) e = e.parent; return e; @@ -11209,17 +10758,17 @@ if (e.endsWithParent) return d(e.parent, t, n); } function I(e) { - return 0 === v.matcher.regexIndex + return 0 === M.matcher.regexIndex ? ((S += e[0]), 1) : ((D = !0), 0); } function p(e) { const t = e[0], n = e.rule, - r = new i(n), + i = new r(n), o = [n.__beforeBegin, n['on:begin']]; for (const n of o) - if (n && (n(e, r), r.isMatchIgnored)) + if (n && (n(e, i), i.isMatchIgnored)) return I(t); return ( n && @@ -11244,42 +10793,42 @@ } function m(e) { const t = e[0], - r = n.substr(e.index), - i = d(v, e, r); - if (!i) return te; - const o = v; + i = n.substr(e.index), + r = d(M, e, i); + if (!r) return te; + const o = M; o.skip ? (S += t) : (o.returnEnd || o.excludeEnd || (S += t), l(), o.excludeEnd && (S = t)); do { - v.className && N.closeNode(), - v.skip || - v.subLanguage || - (Q += v.relevance), - (v = v.parent); - } while (v !== i.parent); + M.className && N.closeNode(), + M.skip || + M.subLanguage || + (Q += M.relevance), + (M = M.parent); + } while (M !== r.parent); return ( - i.starts && - (i.endSameAsBegin && - (i.starts.endRe = i.endRe), - u(i.starts)), + r.starts && + (r.endSameAsBegin && + (r.starts.endRe = r.endRe), + u(r.starts)), o.returnEnd ? 0 : t.length ); } let f = {}; - function E(t, i) { - const o = i && i[0]; + function E(t, r) { + const o = r && r[0]; if (((S += t), null == o)) return l(), 0; if ( 'begin' === f.type && - 'end' === i.type && - f.index === i.index && + 'end' === r.type && + f.index === r.index && '' === o ) { if ( - ((S += n.slice(i.index, i.index + 1)), !a) + ((S += n.slice(r.index, r.index + 1)), !s) ) { const t = new Error('0 width match regex'); throw ((t.languageName = e), @@ -11288,23 +10837,23 @@ } return 1; } - if (((f = i), 'begin' === i.type)) return p(i); - if ('illegal' === i.type && !r) { + if (((f = r), 'begin' === r.type)) return p(r); + if ('illegal' === r.type && !i) { const e = new Error( 'Illegal lexeme "' + o + '" for mode "' + - (v.className || '') + + (M.className || '') + '"' ); - throw ((e.mode = v), e); + throw ((e.mode = M), e); } - if ('end' === i.type) { - const e = m(i); + if ('end' === r.type) { + const e = m(r); if (e !== te) return e; } - if ('illegal' === i.type && '' === o) return 1; - if (x > 1e5 && x > 3 * i.index) { + if ('illegal' === r.type && '' === o) return 1; + if (F > 1e5 && F > 3 * r.index) { throw new Error( 'potential infinite loop, way more iterations than matches' ); @@ -11315,34 +10864,34 @@ if (!y) throw (Z(A.replace('{}', e)), new Error('Unknown language: "' + e + '"')); - const B = z(y, {plugins: o}); + const B = j(y, {plugins: o}); let b = '', - v = s || B; - const M = {}, + M = a || B; + const v = {}, N = new g.__emitter(g); !(function() { const e = []; - for (let t = v; t !== y; t = t.parent) + for (let t = M; t !== y; t = t.parent) t.className && e.unshift(t.className); e.forEach(e => N.openNode(e)); })(); let S = '', Q = 0, - F = 0, x = 0, + F = 0, D = !1; try { - for (v.matcher.considerAll(); ; ) { - x++, - D ? (D = !1) : v.matcher.considerAll(), - (v.matcher.lastIndex = F); - const e = v.matcher.exec(n); + for (M.matcher.considerAll(); ; ) { + F++, + D ? (D = !1) : M.matcher.considerAll(), + (M.matcher.lastIndex = x); + const e = M.matcher.exec(n); if (!e) break; - const t = E(n.substring(F, e.index), e); - F = e.index + t; + const t = E(n.substring(x, e.index), e); + x = e.index + t; } return ( - E(n.substr(F)), + E(n.substr(x)), N.closeAllNodes(), N.finalize(), (b = N.toHTML()), @@ -11352,7 +10901,7 @@ language: e, illegal: !1, emitter: N, - top: v, + top: M, } ); } catch (t) { @@ -11361,7 +10910,7 @@ illegal: !0, illegalBy: { msg: t.message, - context: n.slice(F - 100, F + 100), + context: n.slice(x - 100, x + 100), mode: t.mode, }, sofar: b, @@ -11369,14 +10918,14 @@ value: $(n), emitter: N, }; - if (a) + if (s) return { illegal: !1, relevance: 0, value: $(n), emitter: N, language: e, - top: v, + top: M, errorRaised: t, }; throw t; @@ -11384,7 +10933,7 @@ } function C(e, n) { n = n || g.languages || Object.keys(t); - const r = (function(e) { + const i = (function(e) { const t = { relevance: 0, emitter: new g.__emitter(g), @@ -11394,12 +10943,12 @@ }; return t.emitter.addText(e), t; })(e), - i = n + r = n .filter(w) - .filter(v) + .filter(M) .map(t => h(t, e, !1)); - i.unshift(r); - const o = i.sort((e, t) => { + r.unshift(i); + const o = r.sort((e, t) => { if (e.relevance !== t.relevance) return t.relevance - e.relevance; if (e.language && t.language) { @@ -11410,9 +10959,9 @@ } return 0; }), - [a, s] = o, - A = a; - return (A.second_best = s), A; + [s, a] = o, + A = s; + return (A.second_best = a), A; } const I = { 'before:highlightElement': ({el: e}) => { @@ -11456,22 +11005,22 @@ return t.split(/\s+/).find(e => u(e) || w(e)); })(e); if (u(n)) return; - M('before:highlightElement', {el: e, language: n}), + v('before:highlightElement', {el: e, language: n}), (t = e); - const i = t.textContent, + const r = t.textContent, o = n - ? d(i, {language: n, ignoreIllegals: !0}) - : C(i); - M('after:highlightElement', { + ? d(r, {language: n, ignoreIllegals: !0}) + : C(r); + v('after:highlightElement', { el: e, result: o, - text: i, + text: r, }), (e.innerHTML = o.value), (function(e, t, n) { - const i = t ? r[t] : n; + const r = t ? i[t] : n; e.classList.add('hljs'), - i && e.classList.add(i); + r && e.classList.add(r); })(e, n, o.language), (e.result = { language: o.language, @@ -11501,19 +11050,19 @@ document.querySelectorAll('pre code').forEach(f); } function w(e) { - return (e = (e || '').toLowerCase()), t[e] || t[r[e]]; + return (e = (e || '').toLowerCase()), t[e] || t[i[e]]; } function b(e, {languageName: t}) { 'string' == typeof e && (e = [e]), e.forEach(e => { - r[e.toLowerCase()] = t; + i[e.toLowerCase()] = t; }); } - function v(e) { + function M(e) { const t = w(e); return t && !t.disableAutodetect; } - function M(e, t) { + function v(e, t) { const n = e; o.forEach(function(e) { e[n] && e[n](t); @@ -11544,7 +11093,7 @@ ), (t = e), g.tabReplace || g.useBR - ? t.replace(s, e => + ? t.replace(a, e => '\n' === e ? g.useBR ? '
' @@ -11594,10 +11143,10 @@ ), (y = !0); }, - registerLanguage: function(n, r) { - let i = null; + registerLanguage: function(n, i) { + let r = null; try { - i = r(e); + r = i(e); } catch (e) { if ( (Z( @@ -11606,21 +11155,21 @@ n ) ), - !a) + !s) ) throw e; - Z(e), (i = c); + Z(e), (r = c); } - i.name || (i.name = n), - (t[n] = i), - (i.rawDefinition = r.bind(null, e)), - i.aliases && - b(i.aliases, {languageName: n}); + r.name || (r.name = n), + (t[n] = r), + (r.rawDefinition = i.bind(null, e)), + r.aliases && + b(r.aliases, {languageName: n}); }, unregisterLanguage: function(e) { delete t[e]; - for (const t of Object.keys(r)) - r[t] === e && delete r[t]; + for (const t of Object.keys(i)) + i[t] === e && delete i[t]; }, listLanguages: function() { return Object.keys(t); @@ -11645,7 +11194,7 @@ ) ); }, - autoDetection: v, + autoDetection: M, inherit: ee, addPlugin: function(e) { !(function(e) { @@ -11674,10 +11223,10 @@ vuePlugin: H(e).VuePlugin, }), (e.debugMode = function() { - a = !1; + s = !1; }), (e.safeMode = function() { - a = !0; + s = !0; }), (e.versionString = '10.7.3'); for (const e in Y) 'object' == typeof Y[e] && n(Y[e]); @@ -11691,20 +11240,20 @@ })({}); e.exports = ne; }, - 6590: e => { + 31416: e => { e.exports = function(e) { var t = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+', n = 'далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ', - r = 'null истина ложь неопределено', - i = e.inherit(e.NUMBER_MODE), + i = 'null истина ложь неопределено', + r = e.inherit(e.NUMBER_MODE), o = { className: 'string', begin: '"|\\|', end: '"|$', contains: [{begin: '""'}], }, - a = { + s = { begin: "'", end: "'", excludeBegin: !0, @@ -11716,7 +11265,7 @@ }, ], }, - s = e.inherit(e.C_LINE_COMMENT_MODE); + a = e.inherit(e.C_LINE_COMMENT_MODE); return { name: '1C:Enterprise', case_insensitive: !0, @@ -11729,7 +11278,7 @@ 'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты', type: 'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ', - literal: r, + literal: i, }, contains: [ { @@ -11742,7 +11291,7 @@ n + 'загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ', }, - contains: [s], + contains: [a], }, { className: 'function', @@ -11772,31 +11321,31 @@ keywords: { $pattern: t, keyword: 'знач', - literal: r, + literal: i, }, - contains: [i, o, a], + contains: [r, o, s], }, - s, + a, ], }, e.inherit(e.TITLE_MODE, {begin: t}), ], }, - s, + a, { className: 'symbol', begin: '~', end: ';|:', excludeEnd: !0, }, - i, + r, o, - a, + s, ], }; }; }, - 35102: e => { + 49098: e => { function t(...e) { return e .map(e => { @@ -11814,8 +11363,8 @@ ruleDeclaration: /^[a-zA-Z][a-zA-Z0-9-]*/, unexpectedChars: /[!@#$^&',?+~`|:]/, }, - r = e.COMMENT(/;/, /$/), - i = { + i = e.COMMENT(/;/, /$/), + r = { className: 'attribute', begin: t(n.ruleDeclaration, /(?=\s*=)/), }; @@ -11841,8 +11390,8 @@ 'WSP', ], contains: [ - i, r, + i, { className: 'symbol', begin: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/, @@ -11862,14 +11411,14 @@ }; }; }, - 64683: e => { + 93443: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { @@ -11899,7 +11448,7 @@ }, { className: 'string', - begin: n(/"/, r(...t)), + begin: n(/"/, i(...t)), end: /"/, keywords: t, illegal: /\n/, @@ -11939,7 +11488,7 @@ }; }; }, - 73453: e => { + 73091: e => { function t(...e) { return e .map(e => { @@ -12029,12 +11578,12 @@ }; }; }, - 60195: e => { + 97128: e => { e.exports = function(e) { const t = '[A-Za-z](_?[A-Za-z0-9.])*', n = '[]\\{\\}%#\'"', - r = e.COMMENT('--', '$'), - i = { + i = e.COMMENT('--', '$'), + r = { begin: '\\s+:\\s+', end: '\\s*(:=|;|\\)|=>|$)', illegal: n, @@ -12065,7 +11614,7 @@ literal: 'True False', }, contains: [ - r, + i, { className: 'string', begin: /"/, @@ -12098,7 +11647,7 @@ 'overriding function procedure with is renames return', returnBegin: !0, contains: [ - r, + i, { className: 'title', begin: @@ -12108,7 +11657,7 @@ excludeEnd: !0, illegal: n, }, - i, + r, { className: 'type', begin: '\\breturn\\s+', @@ -12129,12 +11678,12 @@ excludeBegin: !0, illegal: n, }, - i, + r, ], }; }; }, - 83474: e => { + 62405: e => { e.exports = function(e) { var t = { className: 'built_in', @@ -12142,15 +11691,15 @@ '\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)', }, n = {className: 'symbol', begin: '[a-zA-Z0-9_]+@'}, - r = { + i = { className: 'keyword', begin: '<', end: '>', contains: [t, n], }; return ( - (t.contains = [r]), - (n.contains = [r]), + (t.contains = [i]), + (n.contains = [i]), { name: 'AngelScript', aliases: ['asc'], @@ -12234,7 +11783,7 @@ ); }; }, - 54837: e => { + 49935: e => { e.exports = function(e) { const t = { className: 'number', @@ -12301,26 +11850,26 @@ }; }; }, - 11515: e => { + 5148: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { const t = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), - i = { + r = { className: 'params', begin: /\(/, end: /\)/, contains: ['self', e.C_NUMBER_MODE, t], }, o = e.COMMENT(/--/, /$/), - a = [ + s = [ o, e.COMMENT(/\(\*/, /\*\)/, {contains: ['self', o]}), e.HASH_COMMENT_MODE, @@ -12343,7 +11892,7 @@ className: 'built_in', begin: n( /\b/, - r( + i( /clipboard info/, /the clipboard/, /info for/, @@ -12379,7 +11928,7 @@ className: 'keyword', begin: n( /\b/, - r( + i( /apart from/, /aside from/, /instead of/, @@ -12401,15 +11950,15 @@ { beginKeywords: 'on', illegal: /[${=;\n]/, - contains: [e.UNDERSCORE_TITLE_MODE, i], + contains: [e.UNDERSCORE_TITLE_MODE, r], }, - ...a, + ...s, ], illegal: /\/\/|->|=>|\[\[/, }; }; }, - 36426: e => { + 76896: e => { e.exports = function(e) { const t = '[A-Za-z_][0-9A-Za-z_]*', n = { @@ -12420,7 +11969,7 @@ built_in: 'Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year ', }, - r = { + i = { className: 'number', variants: [ {begin: '\\b(0[bB][01]+)'}, @@ -12429,7 +11978,7 @@ ], relevance: 0, }, - i = { + r = { className: 'subst', begin: '\\$\\{', end: '\\}', @@ -12440,16 +11989,16 @@ className: 'string', begin: '`', end: '`', - contains: [e.BACKSLASH_ESCAPE, i], + contains: [e.BACKSLASH_ESCAPE, r], }; - i.contains = [ + r.contains = [ e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, o, - r, + i, e.REGEXP_MODE, ]; - const a = i.contains.concat([ + const s = r.contains.concat([ e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE, ]); @@ -12467,7 +12016,7 @@ begin: '\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+', }, - r, + i, { begin: /[{,]\s*/, relevance: 0, @@ -12513,7 +12062,7 @@ excludeBegin: !0, excludeEnd: !0, keywords: n, - contains: a, + contains: s, }, ], }, @@ -12535,7 +12084,7 @@ end: /\)/, excludeBegin: !0, excludeEnd: !0, - contains: a, + contains: s, }, ], illegal: /\[|%/, @@ -12546,7 +12095,7 @@ }; }; }, - 73282: e => { + 29261: e => { function t(e) { return n('(', e, ')?'); } @@ -12563,26 +12112,26 @@ .join(''); } e.exports = function(e) { - const r = 'boolean byte word String', - i = + const i = 'boolean byte word String', + r = 'KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ', o = 'setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put', - a = + s = 'DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW', - s = (function(e) { - const r = e.COMMENT('//', '$', { + a = (function(e) { + const i = e.COMMENT('//', '$', { contains: [{begin: /\\\n/}], }), - i = 'decltype\\(auto\\)', + r = 'decltype\\(auto\\)', o = '[a-zA-Z_]\\w*::', - a = + s = '(decltype\\(auto\\)|' + t(o) + '[a-zA-Z_]\\w*' + t('<[^<>]+>') + ')', - s = { + a = { className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b', }, @@ -12639,7 +12188,7 @@ className: 'meta-string', begin: /<.*?>/, }, - r, + i, e.C_BLOCK_COMMENT_MODE, ], }, @@ -12788,8 +12337,8 @@ const I = [ h, l, - s, - r, + a, + i, e.C_BLOCK_COMMENT_MODE, c, A, @@ -12818,14 +12367,14 @@ }, m = { className: 'function', - begin: '(' + a + '[\\*&\\s]+)+' + u, + begin: '(' + s + '[\\*&\\s]+)+' + u, returnBegin: !0, end: /[{;=]/, excludeEnd: !0, keywords: d, illegal: /[^\w\s\*&:<>.]/, contains: [ - {begin: i, keywords: d, relevance: 0}, + {begin: r, keywords: d, relevance: 0}, { begin: u, returnBegin: !0, @@ -12845,11 +12394,11 @@ keywords: d, relevance: 0, contains: [ - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, { begin: /\(/, end: /\)/, @@ -12857,17 +12406,17 @@ relevance: 0, contains: [ 'self', - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, ], }, ], }, - s, - r, + a, + i, e.C_BLOCK_COMMENT_MODE, l, ], @@ -12895,7 +12444,7 @@ '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>', keywords: d, - contains: ['self', s], + contains: ['self', a], }, {begin: e.IDENT_RE + '::', keywords: d}, { @@ -12919,20 +12468,20 @@ }, }; })(e), - A = s.keywords; + A = a.keywords; return ( - (A.keyword += ' ' + r), - (A.literal += ' ' + a), - (A.built_in += ' ' + i), + (A.keyword += ' ' + i), + (A.literal += ' ' + s), + (A.built_in += ' ' + r), (A._ += ' ' + o), - (s.name = 'Arduino'), - (s.aliases = ['ino']), - (s.supersetOf = 'cpp'), - s + (a.name = 'Arduino'), + (a.aliases = ['ino']), + (a.supersetOf = 'cpp'), + a ); }; }, - 74010: e => { + 42918: e => { e.exports = function(e) { const t = { variants: [ @@ -13003,7 +12552,7 @@ }; }; }, - 73999: e => { + 41030: e => { function t(...e) { return e .map(e => { @@ -13038,7 +12587,7 @@ begin: /\*[^\s]([^\n]+\n)+([^\n]+)\*/, }, ], - r = [ + i = [ {className: 'emphasis', begin: /_{2}([^\n]+?)_{2}/}, { className: 'emphasis', @@ -13144,7 +12693,7 @@ {begin: /\\\\`{2}[^\n]*`{2}/}, {begin: /[:;}][*_`](?![*_`])/}, ...n, - ...r, + ...i, { className: 'string', variants: [ @@ -13196,7 +12745,7 @@ }; }; }, - 3152: e => { + 17890: e => { function t(...e) { return e .map(e => { @@ -13212,7 +12761,7 @@ e.exports = function(e) { const n = 'false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance', - r = 'get set args call'; + i = 'get set args call'; return { name: 'AspectJ', keywords: n, @@ -13244,7 +12793,7 @@ { begin: /\([^\)]*/, end: /[)]+/, - keywords: n + ' ' + r, + keywords: n + ' ' + i, excludeEnd: !1, }, ], @@ -13293,7 +12842,7 @@ e.UNDERSCORE_IDENT_RE, /\s*\(/ ), - keywords: n + ' ' + r, + keywords: n + ' ' + i, relevance: 0, }, e.QUOTE_STRING_MODE, @@ -13340,7 +12889,7 @@ }; }; }, - 73363: e => { + 63447: e => { e.exports = function(e) { const t = {begin: '`[\\s\\S]'}; return { @@ -13391,7 +12940,7 @@ }; }; }, - 13965: e => { + 69546: e => { e.exports = function(e) { const t = { variants: [ @@ -13401,7 +12950,7 @@ ], }, n = {begin: '\\$[A-z0-9_]+'}, - r = { + i = { className: 'string', variants: [ { @@ -13416,7 +12965,7 @@ }, ], }, - i = {variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]}; + r = {variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]}; return { name: 'AutoIt', case_insensitive: !0, @@ -13431,8 +12980,8 @@ contains: [ t, n, - r, i, + r, { className: 'meta', begin: '#', @@ -13462,7 +13011,7 @@ keywords: {'meta-keyword': 'include'}, end: '$', contains: [ - r, + i, { className: 'meta-string', variants: [ @@ -13491,7 +13040,7 @@ }, ], }, - r, + i, t, ], }, @@ -13507,7 +13056,7 @@ className: 'params', begin: '\\(', end: '\\)', - contains: [n, r, i], + contains: [n, i, r], }, ], }, @@ -13515,7 +13064,7 @@ }; }; }, - 54601: e => { + 17253: e => { e.exports = function(e) { return { name: 'AVR Assembly', @@ -13552,7 +13101,7 @@ }; }; }, - 98614: e => { + 55764: e => { e.exports = function(e) { return { name: 'Awk', @@ -13605,7 +13154,7 @@ }; }; }, - 72242: e => { + 7421: e => { e.exports = function(e) { return { name: 'X++', @@ -13756,7 +13305,7 @@ }; }; }, - 93425: e => { + 54394: e => { function t(...e) { return e .map(e => { @@ -13771,7 +13320,7 @@ } e.exports = function(e) { const n = {}, - r = { + i = { begin: /\$\{/, end: /\}/, contains: ['self', {begin: /:-/, contains: [n]}], @@ -13785,10 +13334,10 @@ '(?![\\w\\d])(?![$])' ), }, - r, + i, ], }); - const i = { + const r = { className: 'subst', begin: /\$\(/, end: /\)/, @@ -13806,14 +13355,14 @@ ], }, }, - a = { + s = { className: 'string', begin: /"/, end: /"/, - contains: [e.BACKSLASH_ESCAPE, n, i], + contains: [e.BACKSLASH_ESCAPE, n, r], }; - i.contains.push(a); - const s = { + r.contains.push(s); + const a = { begin: /\$\(\(/, end: /\)\)/, contains: [ @@ -13860,10 +13409,10 @@ A, e.SHEBANG(), c, - s, + a, e.HASH_COMMENT_MODE, o, - a, + s, {className: '', begin: /\\"/}, {className: 'string', begin: /'/, end: /'/}, n, @@ -13871,7 +13420,7 @@ }; }; }, - 35760: e => { + 68159: e => { e.exports = function(e) { return { name: 'BASIC', @@ -13905,7 +13454,7 @@ }; }; }, - 39: e => { + 70580: e => { e.exports = function(e) { return { name: 'Backus–Naur Form', @@ -13926,7 +13475,7 @@ }; }; }, - 13680: e => { + 56591: e => { e.exports = function(e) { const t = { className: 'literal', @@ -13958,7 +13507,7 @@ }; }; }, - 53959: e => { + 64471: e => { function t(e) { return n('(', e, ')?'); } @@ -13975,19 +13524,19 @@ .join(''); } e.exports = function(e) { - const r = (function(e) { - const r = e.COMMENT('//', '$', { + const i = (function(e) { + const i = e.COMMENT('//', '$', { contains: [{begin: /\\\n/}], }), - i = 'decltype\\(auto\\)', + r = 'decltype\\(auto\\)', o = '[a-zA-Z_]\\w*::', - a = + s = '(decltype\\(auto\\)|' + t(o) + '[a-zA-Z_]\\w*' + t('<[^<>]+>') + ')', - s = { + a = { className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b', }, @@ -14039,7 +13588,7 @@ {begin: /\\\n/, relevance: 0}, e.inherit(A, {className: 'meta-string'}), {className: 'meta-string', begin: /<.*?>/}, - r, + i, e.C_BLOCK_COMMENT_MODE, ], }, @@ -14185,7 +13734,7 @@ ), }; var C; - const I = [h, l, s, r, e.C_BLOCK_COMMENT_MODE, c, A], + const I = [h, l, a, i, e.C_BLOCK_COMMENT_MODE, c, A], p = { variants: [ {begin: /=/, end: /;/}, @@ -14209,14 +13758,14 @@ }, m = { className: 'function', - begin: '(' + a + '[\\*&\\s]+)+' + u, + begin: '(' + s + '[\\*&\\s]+)+' + u, returnBegin: !0, end: /[{;=]/, excludeEnd: !0, keywords: d, illegal: /[^\w\s\*&:<>.]/, contains: [ - {begin: i, keywords: d, relevance: 0}, + {begin: r, keywords: d, relevance: 0}, { begin: u, returnBegin: !0, @@ -14236,11 +13785,11 @@ keywords: d, relevance: 0, contains: [ - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, { begin: /\(/, end: /\)/, @@ -14248,17 +13797,17 @@ relevance: 0, contains: [ 'self', - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, ], }, ], }, - s, - r, + a, + i, e.C_BLOCK_COMMENT_MODE, l, ], @@ -14284,7 +13833,7 @@ '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>', keywords: d, - contains: ['self', s], + contains: ['self', a], }, {begin: e.IDENT_RE + '::', keywords: d}, { @@ -14301,11 +13850,11 @@ }; })(e); return ( - (r.disableAutodetect = !0), - (r.aliases = []), - e.getLanguage('c') || r.aliases.push('c', 'h'), + (i.disableAutodetect = !0), + (i.aliases = []), + e.getLanguage('c') || i.aliases.push('c', 'h'), e.getLanguage('cpp') || - r.aliases.push( + i.aliases.push( 'cc', 'c++', 'h++', @@ -14314,11 +13863,11 @@ 'hxx', 'cxx' ), - r + i ); }; }, - 24918: e => { + 60898: e => { function t(e) { return (function(...e) { return e @@ -14338,16 +13887,16 @@ const n = e.COMMENT('//', '$', { contains: [{begin: /\\\n/}], }), - r = 'decltype\\(auto\\)', - i = '[a-zA-Z_]\\w*::', + i = 'decltype\\(auto\\)', + r = '[a-zA-Z_]\\w*::', o = '(decltype\\(auto\\)|' + - t(i) + + t(r) + '[a-zA-Z_]\\w*' + t('<[^<>]+>') + ')', - a = {className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b'}, - s = { + s = {className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b'}, + a = { className: 'string', variants: [ { @@ -14393,7 +13942,7 @@ }, contains: [ {begin: /\\\n/, relevance: 0}, - e.inherit(s, {className: 'meta-string'}), + e.inherit(a, {className: 'meta-string'}), {className: 'meta-string', begin: /<.*?>/}, n, e.C_BLOCK_COMMENT_MODE, @@ -14401,10 +13950,10 @@ }, l = { className: 'title', - begin: t(i) + e.IDENT_RE, + begin: t(r) + e.IDENT_RE, relevance: 0, }, - g = t(i) + e.IDENT_RE + '\\s*\\(', + g = t(r) + e.IDENT_RE + '\\s*\\(', u = { keyword: 'int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq', @@ -14412,7 +13961,7 @@ 'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary', literal: 'true false nullptr NULL', }, - d = [c, a, n, e.C_BLOCK_COMMENT_MODE, A, s], + d = [c, s, n, e.C_BLOCK_COMMENT_MODE, A, a], h = { variants: [ {begin: /=/, end: /;/}, @@ -14443,7 +13992,7 @@ keywords: u, illegal: /[^\w\s\*&:<>.]/, contains: [ - {begin: r, keywords: u, relevance: 0}, + {begin: i, keywords: u, relevance: 0}, { begin: g, returnBegin: !0, @@ -14459,9 +14008,9 @@ contains: [ n, e.C_BLOCK_COMMENT_MODE, - s, - A, a, + A, + s, { begin: /\(/, end: /\)/, @@ -14471,14 +14020,14 @@ 'self', n, e.C_BLOCK_COMMENT_MODE, - s, - A, a, + A, + s, ], }, ], }, - a, + s, n, e.C_BLOCK_COMMENT_MODE, c, @@ -14497,7 +14046,7 @@ '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>', keywords: u, - contains: ['self', a], + contains: ['self', s], }, {begin: e.IDENT_RE + '::', keywords: u}, { @@ -14510,11 +14059,11 @@ ], }, ]), - exports: {preprocessor: c, strings: s, keywords: u}, + exports: {preprocessor: c, strings: a, keywords: u}, }; }; }, - 58969: e => { + 87962: e => { e.exports = function(e) { const t = 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var', @@ -14523,13 +14072,13 @@ e.COMMENT(/\{/, /\}/, {relevance: 0}), e.COMMENT(/\(\*/, /\*\)/, {relevance: 10}), ], - r = { + i = { className: 'string', begin: /'/, end: /'/, contains: [{begin: /''/}], }, - i = {className: 'string', begin: /(#\d+)+/}, + r = {className: 'string', begin: /(#\d+)+/}, o = { className: 'function', beginKeywords: 'procedure', @@ -14542,11 +14091,11 @@ begin: /\(/, end: /\)/, keywords: t, - contains: [r, i], + contains: [i, r], }, ].concat(n), }, - a = { + s = { className: 'class', begin: 'OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)', @@ -14559,8 +14108,8 @@ keywords: {keyword: t, literal: 'false true'}, illegal: /\/\*/, contains: [ - r, i, + r, { className: 'number', begin: '\\b\\d+(\\.\\d+)?(DT|D|T)', @@ -14568,13 +14117,13 @@ }, {className: 'string', begin: '"', end: '"'}, e.NUMBER_MODE, - a, + s, o, ], }; }; }, - 48970: e => { + 51188: e => { e.exports = function(e) { return { name: 'Cap’n Proto', @@ -14628,7 +14177,7 @@ }; }; }, - 19609: e => { + 43526: e => { e.exports = function(e) { const t = 'assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty', @@ -14641,7 +14190,7 @@ keywords: t, relevance: 10, }, - r = [ + i = [ { className: 'string', begin: '"""', @@ -14663,7 +14212,7 @@ }, ]; return ( - (n.contains = r), + (n.contains = i), { name: 'Ceylon', keywords: { @@ -14680,12 +14229,12 @@ className: 'meta', begin: '@[a-z]\\w*(?::"[^"]*")?', }, - ].concat(r), + ].concat(i), } ); }; }, - 47830: e => { + 41103: e => { e.exports = function(e) { return { name: 'Clean', @@ -14710,7 +14259,7 @@ }; }; }, - 16920: e => { + 56941: e => { e.exports = function(e) { return { name: 'Clojure REPL', @@ -14724,25 +14273,25 @@ }; }; }, - 59650: e => { + 2066: e => { e.exports = function(e) { const t = "a-zA-Z_\\-!.?+*=<>&#'", n = '[' + t + '][' + t + '0-9/;:]*', - r = + i = 'def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord', - i = { + r = { $pattern: n, 'builtin-name': - r + + i + ' cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize', }, o = {begin: n, relevance: 0}, - a = { + s = { className: 'number', begin: '[-+]?\\d+(\\.\\d+)?', relevance: 0, }, - s = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), + a = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), A = e.COMMENT(';', '$', {relevance: 0}), c = { className: 'literal', @@ -14755,15 +14304,15 @@ h = {begin: '\\(', end: '\\)'}, C = {endsWithParent: !0, relevance: 0}, I = { - keywords: i, + keywords: r, className: 'name', begin: n, relevance: 0, starts: C, }, - p = [h, s, g, u, A, d, l, a, c, o], + p = [h, a, g, u, A, d, l, s, c, o], m = { - beginKeywords: r, + beginKeywords: i, lexemes: n, end: '(\\[|#|\\d|"|:|\\{|\\)|\\(|$)', contains: [ @@ -14785,12 +14334,12 @@ name: 'Clojure', aliases: ['clj'], illegal: /\S/, - contains: [h, s, g, u, A, d, l, a, c], + contains: [h, a, g, u, A, d, l, s, c], } ); }; }, - 30841: e => { + 91596: e => { e.exports = function(e) { return { name: 'CMake', @@ -14809,7 +14358,7 @@ }; }; }, - 55728: e => { + 33514: e => { const t = [ 'as', 'in', @@ -14858,7 +14407,7 @@ 'NaN', 'Infinity', ], - r = [].concat( + i = [].concat( [ 'setInterval', 'setTimeout', @@ -14936,7 +14485,7 @@ ] ); e.exports = function(e) { - const i = { + const r = { keyword: t .concat([ 'then', @@ -14962,15 +14511,15 @@ e => !o.includes(e)) ), literal: n.concat(['yes', 'no', 'on', 'off']), - built_in: r.concat(['npm', 'print']), + built_in: i.concat(['npm', 'print']), }; var o; - const a = '[A-Za-z$_][0-9A-Za-z$_]*', - s = { + const s = '[A-Za-z$_][0-9A-Za-z$_]*', + a = { className: 'subst', begin: /#\{/, end: /\}/, - keywords: i, + keywords: r, }, A = [ e.BINARY_NUMBER_MODE, @@ -14993,12 +14542,12 @@ { begin: /"""/, end: /"""/, - contains: [e.BACKSLASH_ESCAPE, s], + contains: [e.BACKSLASH_ESCAPE, a], }, { begin: /"/, end: /"/, - contains: [e.BACKSLASH_ESCAPE, s], + contains: [e.BACKSLASH_ESCAPE, a], }, ], }, @@ -15008,7 +14557,7 @@ { begin: '///', end: '///', - contains: [s, e.HASH_COMMENT_MODE], + contains: [a, e.HASH_COMMENT_MODE], }, { begin: '//[gim]{0,3}(?=\\W)', @@ -15019,7 +14568,7 @@ }, ], }, - {begin: '@' + a}, + {begin: '@' + s}, { subLanguage: 'javascript', excludeBegin: !0, @@ -15030,8 +14579,8 @@ ], }, ]; - s.contains = A; - const c = e.inherit(e.TITLE_MODE, {begin: a}), + a.contains = A; + const c = e.inherit(e.TITLE_MODE, {begin: s}), l = '(\\(.*\\)\\s*)?\\B[-=]>', g = { className: 'params', @@ -15041,7 +14590,7 @@ { begin: /\(/, end: /\)/, - keywords: i, + keywords: r, contains: ['self'].concat(A), }, ], @@ -15049,14 +14598,14 @@ return { name: 'CoffeeScript', aliases: ['coffee', 'cson', 'iced'], - keywords: i, + keywords: r, illegal: /\/\*/, contains: A.concat([ e.COMMENT('###', '###'), e.HASH_COMMENT_MODE, { className: 'function', - begin: '^\\s*' + a + '\\s*=\\s*' + l, + begin: '^\\s*' + s + '\\s*=\\s*' + l, end: '[-=]>', returnBegin: !0, contains: [c, g], @@ -15090,7 +14639,7 @@ ], }, { - begin: a + ':', + begin: s + ':', end: ':', returnBegin: !0, returnEnd: !0, @@ -15100,7 +14649,7 @@ }; }; }, - 79861: e => { + 16223: e => { e.exports = function(e) { return { name: 'Coq', @@ -15125,7 +14674,7 @@ }; }; }, - 16720: e => { + 50007: e => { e.exports = function(e) { return { name: 'Caché Object Script', @@ -15194,7 +14743,7 @@ }; }; }, - 20878: e => { + 56198: e => { function t(e) { return n('(', e, ')?'); } @@ -15211,18 +14760,18 @@ .join(''); } e.exports = function(e) { - const r = e.COMMENT('//', '$', { + const i = e.COMMENT('//', '$', { contains: [{begin: /\\\n/}], }), - i = 'decltype\\(auto\\)', + r = 'decltype\\(auto\\)', o = '[a-zA-Z_]\\w*::', - a = + s = '(decltype\\(auto\\)|' + t(o) + '[a-zA-Z_]\\w*' + t('<[^<>]+>') + ')', - s = {className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b'}, + a = {className: 'keyword', begin: '\\b[a-z\\d_]*_t\\b'}, A = { className: 'string', variants: [ @@ -15271,7 +14820,7 @@ {begin: /\\\n/, relevance: 0}, e.inherit(A, {className: 'meta-string'}), {className: 'meta-string', begin: /<.*?>/}, - r, + i, e.C_BLOCK_COMMENT_MODE, ], }, @@ -15417,7 +14966,7 @@ ), }; var C; - const I = [h, l, s, r, e.C_BLOCK_COMMENT_MODE, c, A], + const I = [h, l, a, i, e.C_BLOCK_COMMENT_MODE, c, A], p = { variants: [ {begin: /=/, end: /;/}, @@ -15441,14 +14990,14 @@ }, m = { className: 'function', - begin: '(' + a + '[\\*&\\s]+)+' + u, + begin: '(' + s + '[\\*&\\s]+)+' + u, returnBegin: !0, end: /[{;=]/, excludeEnd: !0, keywords: d, illegal: /[^\w\s\*&:<>.]/, contains: [ - {begin: i, keywords: d, relevance: 0}, + {begin: r, keywords: d, relevance: 0}, { begin: u, returnBegin: !0, @@ -15468,11 +15017,11 @@ keywords: d, relevance: 0, contains: [ - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, { begin: /\(/, end: /\)/, @@ -15480,17 +15029,17 @@ relevance: 0, contains: [ 'self', - r, + i, e.C_BLOCK_COMMENT_MODE, A, c, - s, + a, ], }, ], }, - s, - r, + a, + i, e.C_BLOCK_COMMENT_MODE, l, ], @@ -15516,7 +15065,7 @@ '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>', keywords: d, - contains: ['self', s], + contains: ['self', a], }, {begin: e.IDENT_RE + '::', keywords: d}, { @@ -15533,7 +15082,7 @@ }; }; }, - 42935: e => { + 16128: e => { e.exports = function(e) { const t = 'group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml'; @@ -15615,13 +15164,13 @@ }; }; }, - 82717: e => { + 4499: e => { e.exports = function(e) { const t = '(_?[ui](8|16|32|64|128))?', n = '[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?', - r = '[A-Za-z_]\\w*(::\\w+)*(\\?|!)?', - i = { + i = '[A-Za-z_]\\w*(::\\w+)*(\\?|!)?', + r = { $pattern: '[a-zA-Z_]\\w*[!?=]?', keyword: 'abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__', @@ -15631,17 +15180,17 @@ className: 'subst', begin: /#\{/, end: /\}/, - keywords: i, + keywords: r, }, - a = { + s = { className: 'template-variable', variants: [ {begin: '\\{\\{', end: '\\}\\}'}, {begin: '\\{%', end: '%\\}'}, ], - keywords: i, + keywords: r, }; - function s(e, t) { + function a(e, t) { const n = [{begin: e, end: t}]; return (n[0].contains = n), n; } @@ -15655,22 +15204,22 @@ { begin: '%[Qwi]?\\(', end: '\\)', - contains: s('\\(', '\\)'), + contains: a('\\(', '\\)'), }, { begin: '%[Qwi]?\\[', end: '\\]', - contains: s('\\[', '\\]'), + contains: a('\\[', '\\]'), }, { begin: '%[Qwi]?\\{', end: /\}/, - contains: s(/\{/, /\}/), + contains: a(/\{/, /\}/), }, { begin: '%[Qwi]?<', end: '>', - contains: s('<', '>'), + contains: a('<', '>'), }, {begin: '%[Qwi]?\\|', end: '\\|'}, {begin: /<<-\w+$/, end: /^\s*\w+$/}, @@ -15683,19 +15232,19 @@ { begin: '%q\\(', end: '\\)', - contains: s('\\(', '\\)'), + contains: a('\\(', '\\)'), }, { begin: '%q\\[', end: '\\]', - contains: s('\\[', '\\]'), + contains: a('\\[', '\\]'), }, { begin: '%q\\{', end: /\}/, - contains: s(/\{/, /\}/), + contains: a(/\{/, /\}/), }, - {begin: '%q<', end: '>', contains: s('<', '>')}, + {begin: '%q<', end: '>', contains: a('<', '>')}, {begin: '%q\\|', end: '\\|'}, {begin: /<<-'\w+'$/, end: /^\s*\w+$/}, ], @@ -15720,7 +15269,7 @@ relevance: 0, }, g = [ - a, + s, A, c, { @@ -15730,22 +15279,22 @@ { begin: '%r\\(', end: '\\)', - contains: s('\\(', '\\)'), + contains: a('\\(', '\\)'), }, { begin: '%r\\[', end: '\\]', - contains: s('\\[', '\\]'), + contains: a('\\[', '\\]'), }, { begin: '%r\\{', end: /\}/, - contains: s(/\{/, /\}/), + contains: a(/\{/, /\}/), }, { begin: '%r<', end: '>', - contains: s('<', '>'), + contains: a('<', '>'), }, {begin: '%r\\|', end: '\\|'}, ], @@ -15770,7 +15319,7 @@ illegal: /=/, contains: [ e.HASH_COMMENT_MODE, - e.inherit(e.TITLE_MODE, {begin: r}), + e.inherit(e.TITLE_MODE, {begin: i}), {begin: '<'}, ], }, @@ -15781,7 +15330,7 @@ illegal: /=/, contains: [ e.HASH_COMMENT_MODE, - e.inherit(e.TITLE_MODE, {begin: r}), + e.inherit(e.TITLE_MODE, {begin: i}), ], }, { @@ -15790,7 +15339,7 @@ illegal: /=/, contains: [ e.HASH_COMMENT_MODE, - e.inherit(e.TITLE_MODE, {begin: r}), + e.inherit(e.TITLE_MODE, {begin: i}), ], relevance: 2, }, @@ -15845,17 +15394,17 @@ ]; return ( (o.contains = g), - (a.contains = g.slice(1)), + (s.contains = g.slice(1)), { name: 'Crystal', aliases: ['cr'], - keywords: i, + keywords: r, contains: g, } ); }; }, - 68992: e => { + 71652: e => { e.exports = function(e) { const t = { keyword: [ @@ -15977,7 +15526,7 @@ n = e.inherit(e.TITLE_MODE, { begin: '[a-zA-Z](\\.?\\w)*', }), - r = { + i = { className: 'number', variants: [ {begin: "\\b(0b[01']+)"}, @@ -15992,20 +15541,20 @@ ], relevance: 0, }, - i = { + r = { className: 'string', begin: '@"', end: '"', contains: [{begin: '""'}], }, - o = e.inherit(i, {illegal: /\n/}), - a = { + o = e.inherit(r, {illegal: /\n/}), + s = { className: 'subst', begin: /\{/, end: /\}/, keywords: t, }, - s = e.inherit(a, {illegal: /\n/}), + a = e.inherit(s, {illegal: /\n/}), A = { className: 'string', begin: /\$"/, @@ -16015,7 +15564,7 @@ {begin: /\{\{/}, {begin: /\}\}/}, e.BACKSLASH_ESCAPE, - s, + a, ], }, c = { @@ -16026,7 +15575,7 @@ {begin: /\{\{/}, {begin: /\}\}/}, {begin: '""'}, - a, + s, ], }, l = e.inherit(c, { @@ -16035,32 +15584,32 @@ {begin: /\{\{/}, {begin: /\}\}/}, {begin: '""'}, - s, + a, ], }); - (a.contains = [ + (s.contains = [ c, A, - i, + r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, - r, + i, e.C_BLOCK_COMMENT_MODE, ]), - (s.contains = [ + (a.contains = [ l, A, o, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, - r, + i, e.inherit(e.C_BLOCK_COMMENT_MODE, {illegal: /\n/}), ]); const g = { variants: [ c, A, - i, + r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, ], @@ -16109,7 +15658,7 @@ }, }, g, - r, + i, { beginKeywords: 'class interface', relevance: 0, @@ -16214,7 +15763,7 @@ relevance: 0, contains: [ g, - r, + i, e.C_BLOCK_COMMENT_MODE, ], }, @@ -16227,7 +15776,7 @@ }; }; }, - 93629: e => { + 53544: e => { e.exports = function(e) { return { name: 'CSP', @@ -16249,7 +15798,7 @@ }; }; }, - 29536: e => { + 64173: e => { const t = [ 'a', 'abbr', @@ -16359,7 +15908,7 @@ 'min-height', 'max-height', ], - r = [ + i = [ 'active', 'any-link', 'blank', @@ -16420,7 +15969,7 @@ 'visited', 'where', ], - i = [ + r = [ 'after', 'backdrop', 'before', @@ -16645,7 +16194,7 @@ 'word-wrap', 'z-index', ].reverse(); - function a(e) { + function s(e) { return (function(...e) { return e .map(e => @@ -16661,7 +16210,7 @@ })('(?=', e, ')'); } e.exports = function(e) { - const s = (e => ({ + const a = (e => ({ IMPORTANT: {className: 'meta', begin: '!important'}, HEXCOLOR: { className: 'number', @@ -16699,12 +16248,12 @@ begin: '\\.[a-zA-Z-][a-zA-Z0-9_-]*', relevance: 0, }, - s.ATTRIBUTE_SELECTOR_MODE, + a.ATTRIBUTE_SELECTOR_MODE, { className: 'selector-pseudo', variants: [ - {begin: ':(' + r.join('|') + ')'}, - {begin: '::(' + i.join('|') + ')'}, + {begin: ':(' + i.join('|') + ')'}, + {begin: '::(' + r.join('|') + ')'}, ], }, { @@ -16715,8 +16264,8 @@ begin: ':', end: '[;}]', contains: [ - s.HEXCOLOR, - s.IMPORTANT, + a.HEXCOLOR, + a.IMPORTANT, e.CSS_NUMBER_MODE, ...A, { @@ -16740,7 +16289,7 @@ ], }, { - begin: a(/@/), + begin: s(/@/), end: '[{;]', relevance: 0, illegal: /:/, @@ -16778,7 +16327,7 @@ }; }; }, - 50: e => { + 80402: e => { e.exports = function(e) { const t = { $pattern: e.UNDERSCORE_IDENT_RE, @@ -16790,9 +16339,9 @@ }, n = '((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))', - r = + i = '\\\\([\'"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};', - i = { + r = { className: 'number', begin: '\\b' + n + '(L|u|U|Lu|LU|uL|UL)?', relevance: 0, @@ -16805,16 +16354,16 @@ '(i|[fF]i|Li))', relevance: 0, }, - a = { + s = { className: 'string', - begin: "'(" + r + '|.)', + begin: "'(" + i + '|.)', end: "'", illegal: '.', }, - s = { + a = { className: 'string', begin: '"', - contains: [{begin: r, relevance: 0}], + contains: [{begin: i, relevance: 0}], end: '"[cwd]?', }, A = e.COMMENT('\\/\\+', '\\+\\/', { @@ -16833,7 +16382,7 @@ begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?', relevance: 10, }, - s, + a, { className: 'string', begin: '[rq]"', @@ -16843,8 +16392,8 @@ {className: 'string', begin: '`', end: '`[cwd]?'}, {className: 'string', begin: 'q"\\{', end: '\\}"'}, o, - i, - a, + r, + s, { className: 'meta', begin: '^#!', @@ -16865,7 +16414,7 @@ }; }; }, - 94641: e => { + 33483: e => { e.exports = function(e) { const t = { className: 'subst', @@ -16876,7 +16425,7 @@ variants: [{begin: /\$\{/, end: /\}/}], keywords: 'true false null this is new super', }, - r = { + i = { className: 'string', variants: [ {begin: "r'''", end: "'''"}, @@ -16907,8 +16456,8 @@ }, ], }; - n.contains = [e.C_NUMBER_MODE, r]; - const i = [ + n.contains = [e.C_NUMBER_MODE, i]; + const r = [ 'Comparable', 'DateTime', 'Duration', @@ -16936,13 +16485,13 @@ 'Element', 'ElementList', ], - o = i.map(e => `${e}?`); + o = r.map(e => `${e}?`); return { name: 'Dart', keywords: { keyword: 'abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield', - built_in: i + built_in: r .concat(o) .concat([ 'Never', @@ -16957,7 +16506,7 @@ $pattern: /[A-Za-z][A-Za-z0-9_]*\??/, }, contains: [ - r, + i, e.COMMENT(/\/\*\*(?!\/)/, /\*\//, { subLanguage: 'markdown', relevance: 0, @@ -16991,7 +16540,7 @@ }; }; }, - 97130: e => { + 41791: e => { e.exports = function(e) { const t = 'exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ', @@ -17000,26 +16549,26 @@ e.COMMENT(/\{/, /\}/, {relevance: 0}), e.COMMENT(/\(\*/, /\*\)/, {relevance: 10}), ], - r = { + i = { className: 'meta', variants: [ {begin: /\{\$/, end: /\}/}, {begin: /\(\*\$/, end: /\*\)/}, ], }, - i = { + r = { className: 'string', begin: /'/, end: /'/, contains: [{begin: /''/}], }, o = {className: 'string', begin: /(#\d+)+/}, - a = { + s = { begin: e.IDENT_RE + '\\s*=\\s*class\\s*\\(', returnBegin: !0, contains: [e.TITLE_MODE], }, - s = { + a = { className: 'function', beginKeywords: 'function constructor destructor procedure', @@ -17033,9 +16582,9 @@ begin: /\(/, end: /\)/, keywords: t, - contains: [i, o, r].concat(n), + contains: [r, o, i].concat(n), }, - r, + i, ].concat(n), }; return { @@ -17054,7 +16603,7 @@ keywords: t, illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/, contains: [ - i, + r, o, e.NUMBER_MODE, { @@ -17066,14 +16615,14 @@ {begin: '%[01]+'}, ], }, - a, s, - r, + a, + i, ].concat(n), }; }; }, - 18910: e => { + 86108: e => { e.exports = function(e) { return { name: 'Diff', @@ -17108,7 +16657,7 @@ }; }; }, - 96695: e => { + 92986: e => { e.exports = function(e) { const t = { begin: /\|[A-Za-z]+:?/, @@ -17160,7 +16709,7 @@ }; }; }, - 38374: e => { + 38283: e => { e.exports = function(e) { return { name: 'DNS Zone', @@ -17190,7 +16739,7 @@ }; }; }, - 56020: e => { + 35614: e => { e.exports = function(e) { return { name: 'Dockerfile', @@ -17213,7 +16762,7 @@ }; }; }, - 47515: e => { + 37848: e => { e.exports = function(e) { const t = e.COMMENT(/^\s*@?rem\b/, /$/, {relevance: 10}); return { @@ -17255,7 +16804,7 @@ }; }; }, - 18370: e => { + 75986: e => { e.exports = function(e) { return { keywords: 'dsconfig', @@ -17300,7 +16849,7 @@ }; }; }, - 9823: e => { + 20221: e => { e.exports = function(e) { const t = { className: 'string', @@ -17327,7 +16876,7 @@ ], relevance: 0, }, - r = { + i = { className: 'meta', begin: '#', end: '$', @@ -17358,20 +16907,20 @@ e.C_BLOCK_COMMENT_MODE, ], }, - i = {className: 'variable', begin: /&[a-z\d_]*\b/}, + r = {className: 'variable', begin: /&[a-z\d_]*\b/}, o = { className: 'meta-keyword', begin: '/[a-z][a-z\\d-]*/', }, - a = { + s = { className: 'symbol', begin: '^\\s*[a-zA-Z_][a-zA-Z\\d_]*:', }, - s = { + a = { className: 'params', begin: '<', end: '>', - contains: [n, i], + contains: [n, r], }, A = { className: 'class', @@ -17390,33 +16939,33 @@ end: /\};/, relevance: 10, contains: [ - i, + r, o, - a, - A, s, + A, + a, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n, t, ], }, - i, + r, o, - a, - A, s, + A, + a, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n, t, - r, + i, {begin: e.IDENT_RE + '::', keywords: ''}, ], }; }; }, - 37467: e => { + 93316: e => { e.exports = function(e) { return { name: 'Dust', @@ -17453,7 +17002,7 @@ }; }; }, - 10100: e => { + 7434: e => { e.exports = function(e) { const t = e.COMMENT(/\(\*/, /\*\)/); return { @@ -17485,7 +17034,7 @@ }; }; }, - 39222: e => { + 97496: e => { e.exports = function(e) { const t = '[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?', n = { @@ -17493,13 +17042,13 @@ keyword: 'and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0', }, - r = { + i = { className: 'subst', begin: /#\{/, end: /\}/, keywords: n, }, - i = { + r = { className: 'number', begin: '(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)', @@ -17513,7 +17062,7 @@ endsParent: !0, contains: [ { - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], variants: [ {begin: /"/, end: /"/}, {begin: /'/, end: /'/}, @@ -17529,7 +17078,7 @@ }, ], }, - a = { + s = { className: 'string', begin: '~[A-Z](?=[/|([{<"\'])', contains: [ @@ -17543,9 +17092,9 @@ {begin: //}, ], }, - s = { + a = { className: 'string', - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], variants: [ {begin: /"""/, end: /"""/}, {begin: /'''/, end: /'''/}, @@ -17575,8 +17124,8 @@ end: /\bdo\b|$|;/, }), l = [ - s, a, + s, o, e.HASH_COMMENT_MODE, c, @@ -17586,7 +17135,7 @@ className: 'symbol', begin: ':(?![\\s:])', contains: [ - s, + a, { begin: '[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?', @@ -17599,7 +17148,7 @@ begin: t + ':(?!:)', relevance: 0, }, - i, + r, { className: 'variable', begin: '(\\$\\W)|((\\$|@@?)(\\w+))', @@ -17612,12 +17161,12 @@ { begin: /\/: (?=\d+\s*[,\]])/, relevance: 0, - contains: [i], + contains: [r], }, { className: 'regexp', illegal: '\\n', - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], variants: [ {begin: '/', end: '/[a-z]*'}, {begin: '%r\\[', end: '\\][a-z]*'}, @@ -17628,12 +17177,12 @@ }, ]; return ( - (r.contains = l), + (i.contains = l), {name: 'Elixir', keywords: n, contains: l} ); }; }, - 34279: e => { + 99366: e => { e.exports = function(e) { const t = { variants: [ @@ -17646,7 +17195,7 @@ begin: "\\b[A-Z][\\w']*", relevance: 0, }, - r = { + i = { begin: '\\(', end: '\\)', illegal: '"', @@ -17669,14 +17218,14 @@ end: 'exposing', keywords: 'port effect module where command subscription exposing', - contains: [r, t], + contains: [i, t], illegal: '\\W\\.|;', }, { begin: 'import', end: '$', keywords: 'import as exposing', - contains: [r, t], + contains: [i, t], illegal: '\\W\\.|;', }, { @@ -17685,11 +17234,11 @@ keywords: 'type alias', contains: [ n, - r, + i, { begin: /\{/, end: /\}/, - contains: r.contains, + contains: i.contains, }, t, ], @@ -17722,7 +17271,7 @@ }; }; }, - 47021: e => { + 41339: e => { e.exports = function(e) { return { name: 'ERB', @@ -17740,7 +17289,7 @@ }; }; }, - 89679: e => { + 30525: e => { function t(...e) { return e .map(e => { @@ -17796,24 +17345,24 @@ }; }; }, - 26997: e => { + 73056: e => { e.exports = function(e) { const t = "[a-z'][a-zA-Z0-9_']*", n = '(' + t + ':' + t + '|' + t + ')', - r = { + i = { keyword: 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor', literal: 'false true', }, - i = e.COMMENT('%', '$'), + r = e.COMMENT('%', '$'), o = { className: 'number', begin: '\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)', relevance: 0, }, - a = {begin: 'fun\\s+' + t + '/\\d+'}, - s = { + s = {begin: 'fun\\s+' + t + '/\\d+'}, + a = { begin: n + '\\(', end: '\\)', returnBegin: !0, @@ -17847,14 +17396,14 @@ u = { beginKeywords: 'fun receive if try case', end: 'end', - keywords: r, + keywords: i, }; u.contains = [ - i, - a, + r, + s, e.inherit(e.APOS_STRING_MODE, {className: ''}), u, - s, + a, e.QUOTE_STRING_MODE, o, A, @@ -17862,8 +17411,8 @@ l, g, ]; - const d = [i, a, u, s, e.QUOTE_STRING_MODE, o, A, c, l, g]; - (s.contains[1].contains = d), + const d = [r, s, u, a, e.QUOTE_STRING_MODE, o, A, c, l, g]; + (a.contains[1].contains = d), (A.contains = d), (g.contains[1].contains = d); const h = { @@ -17875,7 +17424,7 @@ return { name: 'Erlang', aliases: ['erl'], - keywords: r, + keywords: i, illegal: '( { + 76722: e => { e.exports = function(e) { return { name: 'Excel formulae', @@ -17989,7 +17538,7 @@ }; }; }, - 26726: e => { + 40069: e => { e.exports = function(e) { return { name: 'FIX', @@ -18022,7 +17571,7 @@ }; }; }, - 97358: e => { + 25749: e => { e.exports = function(e) { const t = { className: 'function', @@ -18061,7 +17610,7 @@ }; }; }, - 29733: e => { + 82145: e => { function t(...e) { return e .map(e => { @@ -18082,18 +17631,18 @@ e.COMMENT('^C$', '$', {relevance: 0}), ], }, - r = /(_[a-z_\d]+)?/, - i = /([de][+-]?\d+)?/, + i = /(_[a-z_\d]+)?/, + r = /([de][+-]?\d+)?/, o = { className: 'number', variants: [ - {begin: t(/\b\d+/, /\.(\d*)/, i, r)}, - {begin: t(/\b\d+/, i, r)}, - {begin: t(/\.\d+/, i, r)}, + {begin: t(/\b\d+/, /\.(\d*)/, r, i)}, + {begin: t(/\b\d+/, r, i)}, + {begin: t(/\.\d+/, r, i)}, ], relevance: 0, }, - a = { + s = { className: 'function', beginKeywords: 'subroutine function program', illegal: '[${=\\n]', @@ -18123,7 +17672,7 @@ e.QUOTE_STRING_MODE, ], }, - a, + s, {begin: /^C\s*=(?!=)/, relevance: 0}, n, o, @@ -18131,7 +17680,7 @@ }; }; }, - 47795: e => { + 91865: e => { e.exports = function(e) { const t = { begin: '<', @@ -18186,7 +17735,7 @@ }; }; }, - 98527: e => { + 85441: e => { function t(...e) { return e .map(e => { @@ -18207,11 +17756,11 @@ built_in: 'abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart', }, - r = { + i = { className: 'symbol', variants: [{begin: /=[lgenxc]=/}, {begin: /\$/}], }, - i = { + r = { className: 'comment', variants: [ {begin: "'", end: "'"}, @@ -18225,7 +17774,7 @@ end: '/', keywords: n, contains: [ - i, + r, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, @@ -18233,20 +17782,20 @@ e.C_NUMBER_MODE, ], }, - a = /[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/, - s = { + s = /[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/, + a = { begin: /[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/, excludeBegin: !0, end: '$', endsWithParent: !0, contains: [ - i, + r, o, { className: 'comment', begin: t( - a, - ((A = t(/[ ]+/, a)), t('(', A, ')*')) + s, + ((A = t(/[ ]+/, s)), t('(', A, ')*')) ), relevance: 0, }, @@ -18288,7 +17837,7 @@ e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, o, - s, + a, ], }, { @@ -18299,7 +17848,7 @@ { beginKeywords: 'table', end: '$', - contains: [s], + contains: [a], }, e.COMMENT('^\\*', '$'), e.C_LINE_COMMENT_MODE, @@ -18322,16 +17871,16 @@ excludeBegin: !0, excludeEnd: !0, }, - r, + i, ], }, e.C_NUMBER_MODE, - r, + i, ], }; }; }, - 86845: e => { + 82234: e => { e.exports = function(e) { const t = { keyword: @@ -18342,7 +17891,7 @@ 'DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR', }, n = e.COMMENT('@', '@'), - r = { + i = { className: 'meta', begin: '#', end: '$', @@ -18370,7 +17919,7 @@ n, ], }, - i = { + r = { begin: /\bstruct\s+/, end: /\s/, keywords: 'struct', @@ -18396,32 +17945,32 @@ e.C_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE, n, - i, + r, ], }, ], - a = { + s = { className: 'title', begin: e.UNDERSCORE_IDENT_RE, relevance: 0, }, - s = function(t, r, i) { - const s = e.inherit( + a = function(t, i, r) { + const a = e.inherit( { className: 'function', beginKeywords: t, - end: r, + end: i, excludeEnd: !0, contains: [].concat(o), }, - i || {} + r || {} ); return ( - s.contains.push(a), - s.contains.push(e.C_NUMBER_MODE), - s.contains.push(e.C_BLOCK_COMMENT_MODE), - s.contains.push(n), - s + a.contains.push(s), + a.contains.push(e.C_NUMBER_MODE), + a.contains.push(e.C_BLOCK_COMMENT_MODE), + a.contains.push(n), + a ); }, A = { @@ -18485,13 +18034,13 @@ e.C_BLOCK_COMMENT_MODE, n, c, - r, + i, { className: 'keyword', begin: /\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/, }, - s('proc keyword', ';'), - s('fn', '='), + a('proc keyword', ';'), + a('fn', '='), { beginKeywords: 'for threadfor', end: /;/, @@ -18514,13 +18063,13 @@ relevance: 0, }, l, - i, + r, ], } ); }; }, - 59730: e => { + 16883: e => { e.exports = function(e) { const t = { $pattern: '[A-Z_][A-Z0-9_.]*', @@ -18532,7 +18081,7 @@ '([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|' + e.C_NUMBER_RE, }), - r = [ + i = [ e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.COMMENT(/\(/, /\)/), @@ -18575,11 +18124,11 @@ contains: [ {className: 'meta', begin: '%'}, {className: 'meta', begin: '([O])([0-9]+)'}, - ].concat(r), + ].concat(i), }; }; }, - 72513: e => { + 63970: e => { e.exports = function(e) { return { name: 'Gherkin', @@ -18604,7 +18153,7 @@ }; }; }, - 74676: e => { + 37986: e => { e.exports = function(e) { return { name: 'GLSL', @@ -18627,7 +18176,7 @@ }; }; }, - 29510: e => { + 57285: e => { e.exports = function(e) { return { name: 'GML', @@ -18652,7 +18201,7 @@ }; }; }, - 41757: e => { + 21e3: e => { e.exports = function(e) { const t = { keyword: @@ -18708,7 +18257,7 @@ }; }; }, - 40142: e => { + 48693: e => { e.exports = function(e) { return { name: 'Golo', @@ -18726,7 +18275,7 @@ }; }; }, - 83659: e => { + 17785: e => { e.exports = function(e) { return { name: 'Gradle', @@ -18746,7 +18295,7 @@ }; }; }, - 44423: e => { + 46559: e => { function t(e) { return (function(...e) { return e @@ -18766,8 +18315,8 @@ return (t.variants = e), t; } e.exports = function(e) { - const r = '[A-Za-z0-9_$]+', - i = n([ + const i = '[A-Za-z0-9_$]+', + r = n([ e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.COMMENT('/\\*\\*', '\\*/', { @@ -18783,8 +18332,8 @@ begin: /~?\/[^\/\n]+\//, contains: [e.BACKSLASH_ESCAPE], }, - a = n([e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]), - s = n( + s = n([e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]), + a = n( [ {begin: /"""/, end: /"""/}, {begin: /'''/, end: /'''/}, @@ -18804,10 +18353,10 @@ }, contains: [ e.SHEBANG({binary: 'groovy', relevance: 10}), - i, - s, - o, + r, a, + o, + s, { className: 'class', beginKeywords: 'class interface trait enum', @@ -18825,20 +18374,20 @@ }, { className: 'attr', - begin: r + '[ \t]*:', + begin: i + '[ \t]*:', relevance: 0, }, { begin: /\?/, end: /:/, relevance: 0, - contains: [i, s, o, a, 'self'], + contains: [r, a, o, s, 'self'], }, { className: 'symbol', - begin: '^[ \t]*' + t(r + ':'), + begin: '^[ \t]*' + t(i + ':'), excludeBegin: !0, - end: r + ':', + end: i + ':', relevance: 0, }, ], @@ -18846,7 +18395,7 @@ }; }; }, - 76635: e => { + 7764: e => { e.exports = function(e) { return { name: 'HAML', @@ -18939,7 +18488,7 @@ }; }; }, - 65865: e => { + 78971: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } @@ -18947,7 +18496,7 @@ return e.map(e => t(e)).join(''); } e.exports = function(e) { - const r = { + const i = { 'builtin-name': [ 'action', 'bindattr', @@ -18980,20 +18529,20 @@ 'yield', ], }, - i = /\[\]|\[[^\]]+\]/, + r = /\[\]|\[[^\]]+\]/, o = /[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/, - a = (function(...e) { + s = (function(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; - })(/""|"[^"]+"/, /''|'[^']+'/, i, o), - s = n( + })(/""|"[^"]+"/, /''|'[^']+'/, r, o), + a = n( n('(', /\.|\.\/|\//, ')?'), - a, + s, (function(e) { return n('(', e, ')*'); - })(n(/(\.|\/)/, a)) + })(n(/(\.|\/)/, s)) ), - A = n('(', i, '|', o, ')(?==)'), - c = {begin: s, lexemes: /[\w.\/]+/}, + A = n('(', r, '|', o, ')(?==)'), + c = {begin: a, lexemes: /[\w.\/]+/}, l = e.inherit(c, { keywords: { literal: ['true', 'false', 'undefined', 'null'], @@ -19037,19 +18586,19 @@ }, h = e.inherit(c, { className: 'name', - keywords: r, + keywords: i, starts: e.inherit(d, {end: /\)/}), }); g.contains = [h]; const C = e.inherit(c, { - keywords: r, + keywords: i, className: 'name', starts: e.inherit(d, {end: /\}\}/}), }), - I = e.inherit(c, {keywords: r, className: 'name'}), + I = e.inherit(c, {keywords: i, className: 'name'}), p = e.inherit(c, { className: 'name', - keywords: r, + keywords: i, starts: e.inherit(d, {end: /\}\}/}), }); return { @@ -19124,7 +18673,7 @@ }; }; }, - 40659: e => { + 1549: e => { e.exports = function(e) { const t = { variants: [ @@ -19133,8 +18682,8 @@ ], }, n = {className: 'meta', begin: /\{-#/, end: /#-\}/}, - r = {className: 'meta', begin: '^#', end: '$'}, - i = { + i = {className: 'meta', begin: '^#', end: '$'}, + r = { className: 'type', begin: "\\b[A-Z][\\w']*", relevance: 0, @@ -19145,7 +18694,7 @@ illegal: '"', contains: [ n, - r, + i, { className: 'type', begin: @@ -19182,7 +18731,7 @@ begin: '^(\\s*)?(class|instance)\\b', end: 'where', keywords: 'class family instance where', - contains: [i, o, t], + contains: [r, o, t], }, { className: 'class', @@ -19191,7 +18740,7 @@ keywords: 'data family type newtype deriving', contains: [ n, - i, + r, o, { begin: /\{/, @@ -19204,7 +18753,7 @@ { beginKeywords: 'default', end: '$', - contains: [i, o, t], + contains: [r, o, t], }, { beginKeywords: 'infix infixl infixr', @@ -19216,7 +18765,7 @@ end: '$', keywords: 'foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe', - contains: [i, e.QUOTE_STRING_MODE, t], + contains: [r, e.QUOTE_STRING_MODE, t], }, { className: 'meta', @@ -19224,10 +18773,10 @@ end: '$', }, n, - r, + i, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, - i, + r, e.inherit(e.TITLE_MODE, {begin: "^[_a-z][\\w']*"}), t, {begin: '->|<-'}, @@ -19235,7 +18784,7 @@ }; }; }, - 76182: e => { + 85090: e => { e.exports = function(e) { return { name: 'Haxe', @@ -19371,7 +18920,7 @@ }; }; }, - 91033: e => { + 33712: e => { e.exports = function(e) { return { name: 'HSP', @@ -19418,15 +18967,15 @@ }; }; }, - 4544: e => { + 11707: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(e) { - const r = { + function i(e) { + const i = { 'builtin-name': [ 'action', 'bindattr', @@ -19459,20 +19008,20 @@ 'yield', ], }, - i = /\[\]|\[[^\]]+\]/, + r = /\[\]|\[[^\]]+\]/, o = /[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/, - a = (function(...e) { + s = (function(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; - })(/""|"[^"]+"/, /''|'[^']+'/, i, o), - s = n( + })(/""|"[^"]+"/, /''|'[^']+'/, r, o), + a = n( n('(', /\.|\.\/|\//, ')?'), - a, + s, (function(e) { return n('(', e, ')*'); - })(n(/(\.|\/)/, a)) + })(n(/(\.|\/)/, s)) ); - const A = n('(', i, '|', o, ')(?==)'), - c = {begin: s, lexemes: /[\w.\/]+/}, + const A = n('(', r, '|', o, ')(?==)'), + c = {begin: a, lexemes: /[\w.\/]+/}, l = e.inherit(c, { keywords: { literal: ['true', 'false', 'undefined', 'null'], @@ -19516,19 +19065,19 @@ }, h = e.inherit(c, { className: 'name', - keywords: r, + keywords: i, starts: e.inherit(d, {end: /\)/}), }); g.contains = [h]; const C = e.inherit(c, { - keywords: r, + keywords: i, className: 'name', starts: e.inherit(d, {end: /\}\}/}), }), - I = e.inherit(c, {keywords: r, className: 'name'}), + I = e.inherit(c, {keywords: i, className: 'name'}), p = e.inherit(c, { className: 'name', - keywords: r, + keywords: i, starts: e.inherit(d, {end: /\}\}/}), }); return { @@ -19603,7 +19152,7 @@ }; } e.exports = function(e) { - const t = r(e); + const t = i(e); return ( (t.name = 'HTMLbars'), e.getLanguage('handlebars') && @@ -19612,7 +19161,7 @@ ); }; }, - 86811: e => { + 99244: e => { function t(...e) { return e .map(e => { @@ -19627,7 +19176,7 @@ } e.exports = function(e) { const n = 'HTTP/(2|1\\.[01])', - r = { + i = { className: 'attribute', begin: t( '^', @@ -19645,8 +19194,8 @@ ], }, }, - i = [ - r, + r = [ + i, { begin: '\\n\\n', starts: {subLanguage: [], endsWithParent: !0}, @@ -19670,7 +19219,7 @@ starts: { end: /\b\B/, illegal: /\S/, - contains: i, + contains: r, }, }, { @@ -19690,31 +19239,31 @@ starts: { end: /\b\B/, illegal: /\S/, - contains: i, + contains: r, }, }, - e.inherit(r, {relevance: 0}), + e.inherit(i, {relevance: 0}), ], }; }; }, - 73907: e => { + 45402: e => { e.exports = function(e) { var t = "a-zA-Z_\\-!.?+*=<>&#'", n = '[' + t + '][' + t + '0-9/;:]*', - r = { + i = { $pattern: n, 'builtin-name': '!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~', }, - i = {begin: n, relevance: 0}, + r = {begin: n, relevance: 0}, o = { className: 'number', begin: '[-+]?\\d+(\\.\\d+)?', relevance: 0, }, - a = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), - s = e.COMMENT(';', '$', {relevance: 0}), + s = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), + a = e.COMMENT(';', '$', {relevance: 0}), A = { className: 'literal', begin: /\b([Tt]rue|[Ff]alse|nil|None)\b/, @@ -19728,11 +19277,11 @@ C = { className: 'name', relevance: 0, - keywords: r, + keywords: i, begin: n, starts: h, }, - I = [d, a, l, g, s, u, c, o, A, i]; + I = [d, s, l, g, a, u, c, o, A, r]; return ( (d.contains = [e.COMMENT('comment', ''), C, h]), (h.contains = I), @@ -19741,12 +19290,12 @@ name: 'Hy', aliases: ['hylang'], illegal: /\S/, - contains: [e.SHEBANG(), d, a, l, g, s, u, c, o, A], + contains: [e.SHEBANG(), d, s, l, g, a, u, c, o, A], } ); }; }, - 26384: e => { + 89191: e => { e.exports = function(e) { return { name: 'Inform 7', @@ -19790,7 +19339,7 @@ }; }; }, - 6326: e => { + 35982: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } @@ -19798,7 +19347,7 @@ return e.map(e => t(e)).join(''); } e.exports = function(e) { - const r = { + const i = { className: 'number', relevance: 0, variants: [ @@ -19806,8 +19355,8 @@ {begin: e.NUMBER_RE}, ], }, - i = e.COMMENT(); - i.variants = [ + r = e.COMMENT(); + r.variants = [ {begin: /;/, end: /$/}, {begin: /#/, end: /$/}, ]; @@ -19818,11 +19367,11 @@ {begin: /\$\{(.*?)\}/}, ], }, - a = { + s = { className: 'literal', begin: /\bon|off|true|false|yes|no\b/, }, - s = { + a = { className: 'string', contains: [e.BACKSLASH_ESCAPE], variants: [ @@ -19835,7 +19384,7 @@ A = { begin: /\[/, end: /\]/, - contains: [i, a, o, s, r, 'self'], + contains: [r, s, o, a, i, 'self'], relevance: 0, }, c = (function(...e) { @@ -19847,7 +19396,7 @@ case_insensitive: !0, illegal: /\S/, contains: [ - i, + r, {className: 'section', begin: /\[+/, end: /\]+/}, { begin: n( @@ -19860,14 +19409,14 @@ className: 'attr', starts: { end: /$/, - contains: [i, A, a, o, s, r], + contains: [r, A, s, o, a, i], }, }, ], }; }; }, - 81002: e => { + 40084: e => { function t(...e) { return e .map(e => { @@ -19882,13 +19431,13 @@ } e.exports = function(e) { const n = /(_[a-z_\d]+)?/, - r = /([de][+-]?\d+)?/, - i = { + i = /([de][+-]?\d+)?/, + r = { className: 'number', variants: [ - {begin: t(/\b\d+/, /\.(\d*)/, r, n)}, - {begin: t(/\b\d+/, r, n)}, - {begin: t(/\.\d+/, r, n)}, + {begin: t(/\b\d+/, /\.(\d*)/, i, n)}, + {begin: t(/\b\d+/, i, n)}, + {begin: t(/\.\d+/, i, n)}, ], relevance: 0, }; @@ -19927,12 +19476,12 @@ }, e.COMMENT('!', '$', {relevance: 0}), e.COMMENT('begin_doc', 'end_doc', {relevance: 10}), - i, + r, ], }; }; }, - 94101: e => { + 99293: e => { e.exports = function(e) { const t = '[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*', n = { @@ -19940,14 +19489,14 @@ begin: e.NUMBER_RE, relevance: 0, }, - r = { + i = { className: 'string', variants: [ {begin: '"', end: '"'}, {begin: "'", end: "'"}, ], }, - i = { + r = { className: 'doctag', begin: '\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b', @@ -19960,18 +19509,18 @@ begin: '//', end: '$', relevance: 0, - contains: [e.PHRASAL_WORDS_MODE, i], + contains: [e.PHRASAL_WORDS_MODE, r], }, { className: 'comment', begin: '/\\*', end: '\\*/', relevance: 0, - contains: [e.PHRASAL_WORDS_MODE, i], + contains: [e.PHRASAL_WORDS_MODE, r], }, ], }, - a = { + s = { $pattern: t, keyword: 'and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ', @@ -19981,9 +19530,9 @@ 'AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ', literal: 'null true false nil ', }, - s = { + a = { begin: '\\.\\s*' + e.UNDERSCORE_IDENT_RE, - keywords: a, + keywords: s, relevance: 0, }, A = { @@ -19999,16 +19548,16 @@ }, c = { className: 'variable', - keywords: a, + keywords: s, begin: t, relevance: 0, - contains: [A, s], + contains: [A, a], }, l = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\('; return { name: 'ISBL', case_insensitive: !0, - keywords: a, + keywords: s, illegal: '\\$|\\?|%|,|;$|~|#|@| { + 87502: e => { var t = '\\.([0-9](_*[0-9])*)', n = '[0-9a-fA-F](_*[0-9a-fA-F])*', - r = { + i = { className: 'number', variants: [ { @@ -20076,14 +19625,14 @@ var t = '[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*', n = 'false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do', - i = { + r = { className: 'meta', begin: '@' + t, contains: [ {begin: /\(/, end: /\)/, contains: ['self']}, ], }; - const o = r; + const o = i; return { name: 'Java', aliases: ['jsp'], @@ -20179,7 +19728,7 @@ keywords: n, relevance: 0, contains: [ - i, + r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, o, @@ -20191,12 +19740,12 @@ ], }, o, - i, + r, ], }; }; }, - 94907: e => { + 12859: e => { const t = '[A-Za-z$_][0-9A-Za-z$_]*', n = [ 'as', @@ -20238,7 +19787,7 @@ 'export', 'extends', ], - r = [ + i = [ 'true', 'false', 'null', @@ -20246,7 +19795,7 @@ 'NaN', 'Infinity', ], - i = [].concat( + r = [].concat( [ 'setInterval', 'setTimeout', @@ -20324,9 +19873,9 @@ ] ); function o(e) { - return a('(?=', e, ')'); + return s('(?=', e, ')'); } - function a(...e) { + function s(...e) { return e .map(e => { return (t = e) @@ -20339,7 +19888,7 @@ .join(''); } e.exports = function(e) { - const s = t, + const a = t, A = '<>', c = '', l = { @@ -20347,9 +19896,9 @@ end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (e, t) => { const n = e[0].length + e.index, - r = e.input[n]; - '<' !== r - ? '>' === r && + i = e.input[n]; + '<' !== i + ? '>' === i && (((e, {after: t}) => { const n = ' { + 92698: e => { e.exports = function(e) { const t = { className: 'params', @@ -20710,16 +20259,16 @@ }; }; }, - 72270: e => { + 51697: e => { e.exports = function(e) { const t = {literal: 'true false null'}, n = [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE], - r = [e.QUOTE_STRING_MODE, e.C_NUMBER_MODE], - i = { + i = [e.QUOTE_STRING_MODE, e.C_NUMBER_MODE], + r = { end: ',', endsWithParent: !0, excludeEnd: !0, - contains: r, + contains: i, keywords: t, }, o = { @@ -20733,26 +20282,26 @@ contains: [e.BACKSLASH_ESCAPE], illegal: '\\n', }, - e.inherit(i, {begin: /:/}), + e.inherit(r, {begin: /:/}), ].concat(n), illegal: '\\S', }, - a = { + s = { begin: '\\[', end: '\\]', - contains: [e.inherit(i)], + contains: [e.inherit(r)], illegal: '\\S', }; return ( - r.push(o, a), + i.push(o, s), n.forEach(function(e) { - r.push(e); + i.push(e); }), - {name: 'JSON', contains: r, keywords: t, illegal: '\\S'} + {name: 'JSON', contains: i, keywords: t, illegal: '\\S'} ); }; }, - 77934: e => { + 18758: e => { e.exports = function(e) { return { name: 'Julia REPL', @@ -20771,7 +20320,7 @@ }; }; }, - 72942: e => { + 96649: e => { e.exports = function(e) { var t = '[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*', @@ -21041,32 +20590,32 @@ 'WeakRef', ], }, - r = {keywords: n, illegal: /<\//}, - i = { + i = {keywords: n, illegal: /<\//}, + r = { className: 'subst', begin: /\$\(/, end: /\)/, keywords: n, }, o = {className: 'variable', begin: '\\$' + t}, - a = { + s = { className: 'string', - contains: [e.BACKSLASH_ESCAPE, i, o], + contains: [e.BACKSLASH_ESCAPE, r, o], variants: [ {begin: /\w*"""/, end: /"""\w*/, relevance: 10}, {begin: /\w*"/, end: /"\w*/}, ], }, - s = { + a = { className: 'string', - contains: [e.BACKSLASH_ESCAPE, i, o], + contains: [e.BACKSLASH_ESCAPE, r, o], begin: '`', end: '`', }, A = {className: 'meta', begin: '@' + t}; return ( - (r.name = 'Julia'), - (r.contains = [ + (i.name = 'Julia'), + (i.contains = [ { className: 'number', begin: /(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/, @@ -21076,8 +20625,8 @@ className: 'string', begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/, }, - a, s, + a, A, { className: 'comment', @@ -21094,15 +20643,15 @@ }, {begin: /<:/}, ]), - (i.contains = r.contains), - r + (r.contains = i.contains), + i ); }; }, - 4424: e => { + 10288: e => { var t = '\\.([0-9](_*[0-9])*)', n = '[0-9a-fA-F](_*[0-9a-fA-F])*', - r = { + i = { className: 'number', variants: [ { @@ -21135,7 +20684,7 @@ className: 'symbol', begin: e.UNDERSCORE_IDENT_RE + '@', }, - i = { + r = { className: 'subst', begin: /\$\{/, end: /\}/, @@ -21145,13 +20694,13 @@ className: 'variable', begin: '\\$' + e.UNDERSCORE_IDENT_RE, }, - a = { + s = { className: 'string', variants: [ { begin: '"""', end: '"""(?=[^"])', - contains: [o, i], + contains: [o, r], }, { begin: "'", @@ -21163,12 +20712,12 @@ begin: '"', end: '"', illegal: /\n/, - contains: [e.BACKSLASH_ESCAPE, o, i], + contains: [e.BACKSLASH_ESCAPE, o, r], }, ], }; - i.contains.push(a); - const s = { + r.contains.push(s); + const a = { className: 'meta', begin: '@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*' + @@ -21183,14 +20732,14 @@ begin: /\(/, end: /\)/, contains: [ - e.inherit(a, { + e.inherit(s, { className: 'meta-string', }), ], }, ], }, - c = r, + c = i, l = e.COMMENT('/\\*', '\\*/', { contains: [e.C_BLOCK_COMMENT_MODE], }), @@ -21236,7 +20785,7 @@ }, }, n, - s, + a, A, { className: 'function', @@ -21283,9 +20832,9 @@ }, e.C_LINE_COMMENT_MODE, l, - s, - A, a, + A, + s, e.C_NUMBER_MODE, ], }, @@ -21319,11 +20868,11 @@ excludeBegin: !0, returnEnd: !0, }, - s, + a, A, ], }, - a, + s, { className: 'meta', begin: '^#!/usr/bin/env', @@ -21336,12 +20885,12 @@ ); }; }, - 54772: e => { + 93973: e => { e.exports = function(e) { const t = '[a-zA-Z_][\\w.]*', n = '<\\?(lasso(script)?|=)', - r = '\\]|\\?>', - i = { + i = '\\]|\\?>', + r = { $pattern: '[a-zA-Z_][\\w.]*|&[lg]t;', literal: 'true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft', @@ -21351,7 +20900,7 @@ 'cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome', }, o = e.COMMENT('\x3c!--', '--\x3e', {relevance: 0}), - a = { + s = { className: 'meta', begin: '\\[noprocess\\]', starts: { @@ -21360,7 +20909,7 @@ contains: [o], }, }, - s = {className: 'meta', begin: '\\[/noprocess|' + n}, + a = {className: 'meta', begin: '\\[/noprocess|' + n}, A = {className: 'symbol', begin: "'[a-zA-Z_][\\w.]*'"}, c = [ e.C_LINE_COMMENT_MODE, @@ -21411,11 +20960,11 @@ name: 'Lasso', aliases: ['ls', 'lassoscript'], case_insensitive: !0, - keywords: i, + keywords: r, contains: [ { className: 'meta', - begin: r, + begin: i, relevance: 0, starts: { end: '\\[|' + n, @@ -21424,18 +20973,18 @@ contains: [o], }, }, - a, s, + a, { className: 'meta', begin: '\\[no_square_brackets', starts: { end: '\\[/no_square_brackets\\]', - keywords: i, + keywords: r, contains: [ { className: 'meta', - begin: r, + begin: i, relevance: 0, starts: { end: '\\[noprocess\\]|' + n, @@ -21443,8 +20992,8 @@ contains: [o], }, }, - a, s, + a, ].concat(c), }, }, @@ -21459,7 +21008,7 @@ }; }; }, - 17711: e => { + 37784: e => { e.exports = function(e) { const t = [ {begin: /\^{6}[0-9a-f]{6}/}, @@ -21562,30 +21111,30 @@ }, e.COMMENT('%', '$', {relevance: 0}), ], - r = { + i = { begin: /\{/, end: /\}/, relevance: 0, contains: ['self', ...n], }, - i = e.inherit(r, { + r = e.inherit(i, { relevance: 0, endsParent: !0, - contains: [r, ...n], + contains: [i, ...n], }), o = { begin: /\[/, end: /\]/, endsParent: !0, relevance: 0, - contains: [r, ...n], + contains: [i, ...n], }, - a = {begin: /\s+/, relevance: 0}, - s = [i], + s = {begin: /\s+/, relevance: 0}, + a = [r], A = [o], c = function(e, t) { return { - contains: [a], + contains: [s], starts: {relevance: 0, contains: e, starts: t}, }; }, @@ -21597,7 +21146,7 @@ keyword: '\\' + e, }, relevance: 0, - contains: [a], + contains: [s], starts: t, }; }, @@ -21614,7 +21163,7 @@ }, relevance: 0, }, - c(s, n) + c(a, n) ); }, u = (t = 'string') => @@ -21662,8 +21211,8 @@ ...['verb', 'lstinline'].map(e => l(e, {contains: [u()]}) ), - l('mint', c(s, {contains: [u()]})), - l('mintinline', c(s, {contains: [h(), u()]})), + l('mint', c(a, {contains: [u()]})), + l('mintinline', c(a, {contains: [h(), u()]})), l('url', {contains: [h('link'), h('link')]}), l('hyperref', {contains: [h('link')]}), l('href', c(A, {contains: [h('link')]})), @@ -21672,7 +21221,7 @@ g('verbatim' + e, d('verbatim' + e)), g( 'filecontents' + e, - c(s, d('filecontents' + e)) + c(a, d('filecontents' + e)) ), ...['', 'B', 'L'].map(t => g( @@ -21682,14 +21231,14 @@ ), ]) ), - g('minted', c(A, c(s, d('minted')))), + g('minted', c(A, c(a, d('minted')))), ], ...n, ], }; }; }, - 85712: e => { + 19675: e => { e.exports = function(e) { return { name: 'LDIF', @@ -21715,7 +21264,7 @@ }; }; }, - 69698: e => { + 3881: e => { e.exports = function(e) { return { name: 'Leaf', @@ -21755,7 +21304,7 @@ }; }; }, - 97191: e => { + 36987: e => { const t = [ 'a', 'abbr', @@ -21865,7 +21414,7 @@ 'min-height', 'max-height', ], - r = [ + i = [ 'active', 'any-link', 'blank', @@ -21926,7 +21475,7 @@ 'visited', 'where', ], - i = [ + r = [ 'after', 'backdrop', 'before', @@ -22151,9 +21700,9 @@ 'word-wrap', 'z-index', ].reverse(), - a = r.concat(i); + s = i.concat(r); e.exports = function(e) { - const s = (e => ({ + const a = (e => ({ IMPORTANT: {className: 'meta', begin: '!important'}, HEXCOLOR: { className: 'number', @@ -22170,7 +21719,7 @@ ], }, }))(e), - A = a, + A = s, c = '([\\w-]+|@\\{[\\w-]+\\})', l = [], g = [], @@ -22209,7 +21758,7 @@ excludeEnd: !0, }, }, - s.HEXCOLOR, + a.HEXCOLOR, C, d('variable', '@@?[\\w-]+', 10), d('variable', '@\\{[\\w-]+\\}'), @@ -22221,7 +21770,7 @@ returnBegin: !0, excludeEnd: !0, }, - s.IMPORTANT + a.IMPORTANT ); const I = g.concat({begin: /\{/, end: /\}/, contains: l}), p = { @@ -22292,14 +21841,14 @@ d('selector-id', '#' + c), d('selector-class', '\\.' + c, 0), d('selector-tag', '&', 0), - s.ATTRIBUTE_SELECTOR_MODE, + a.ATTRIBUTE_SELECTOR_MODE, { className: 'selector-pseudo', - begin: ':(' + r.join('|') + ')', + begin: ':(' + i.join('|') + ')', }, { className: 'selector-pseudo', - begin: '::(' + i.join('|') + ')', + begin: '::(' + r.join('|') + ')', }, {begin: '\\(', end: '\\)', contains: I}, {begin: '!important'}, @@ -22329,26 +21878,26 @@ ); }; }, - 59898: e => { + 85941: e => { e.exports = function(e) { var t = '[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*', n = '\\|[^]*?\\|', - r = + i = '(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?', - i = {className: 'literal', begin: '\\b(t{1}|nil)\\b'}, + r = {className: 'literal', begin: '\\b(t{1}|nil)\\b'}, o = { className: 'number', variants: [ - {begin: r, relevance: 0}, + {begin: i, relevance: 0}, {begin: '#(b|B)[0-1]+(/[0-1]+)?'}, {begin: '#(o|O)[0-7]+(/[0-7]+)?'}, {begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?'}, - {begin: '#(c|C)\\(' + r + ' +' + r, end: '\\)'}, + {begin: '#(c|C)\\(' + i + ' +' + i, end: '\\)'}, ], }, - a = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), - s = e.COMMENT(';', '$', {relevance: 0}), + s = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), + a = e.COMMENT(';', '$', {relevance: 0}), A = {begin: '\\*', end: '\\*'}, c = {className: 'symbol', begin: '[:&]' + t}, l = {begin: t, relevance: 0}, @@ -22356,13 +21905,13 @@ u = { contains: [ o, - a, + s, A, c, { begin: '\\(', end: '\\)', - contains: ['self', i, a, o, l], + contains: ['self', r, s, o, l], }, l, ], @@ -22395,16 +21944,16 @@ }, C, ]), - (C.contains = [u, d, h, i, o, a, s, A, c, g, l]), + (C.contains = [u, d, h, r, o, s, a, A, c, g, l]), { name: 'Lisp', illegal: /\S/, - contains: [o, e.SHEBANG(), i, a, s, u, d, h, l], + contains: [o, e.SHEBANG(), r, s, a, u, d, h, l], } ); }; }, - 54952: e => { + 48165: e => { e.exports = function(e) { const t = { className: 'variable', @@ -22423,13 +21972,13 @@ e.COMMENT('--', '$'), e.COMMENT('[^:]//', '$'), ], - r = e.inherit(e.TITLE_MODE, { + i = e.inherit(e.TITLE_MODE, { variants: [ {begin: '\\b_*rig[A-Z][A-Za-z0-9_\\-]*'}, {begin: '\\b_[a-z0-9\\-]+'}, ], }), - i = e.inherit(e.TITLE_MODE, { + r = e.inherit(e.TITLE_MODE, { begin: '\\b([A-Za-z0-9_\\-]+)\\b', }); return { @@ -22452,12 +22001,12 @@ end: '$', contains: [ t, - i, + r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE, - r, + i, ], }, { @@ -22465,7 +22014,7 @@ begin: '\\bend\\s+', end: '$', keywords: 'end', - contains: [i, r], + contains: [r, i], relevance: 0, }, { @@ -22473,12 +22022,12 @@ end: '$', contains: [ t, - i, + r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE, - r, + i, ], }, { @@ -22496,13 +22045,13 @@ e.QUOTE_STRING_MODE, e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE, - r, + i, ].concat(n), illegal: ';$|^\\[|^=|&|\\{', }; }; }, - 27414: e => { + 50344: e => { const t = [ 'as', 'in', @@ -22551,7 +22100,7 @@ 'NaN', 'Infinity', ], - r = [].concat( + i = [].concat( [ 'setInterval', 'setTimeout', @@ -22629,7 +22178,7 @@ ] ); e.exports = function(e) { - const i = { + const r = { keyword: t.concat([ 'then', 'unless', @@ -22670,21 +22219,21 @@ 'that', 'void', ]), - built_in: r.concat(['npm', 'print']), + built_in: i.concat(['npm', 'print']), }, o = '[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*', - a = e.inherit(e.TITLE_MODE, {begin: o}), - s = { + s = e.inherit(e.TITLE_MODE, {begin: o}), + a = { className: 'subst', begin: /#\{/, end: /\}/, - keywords: i, + keywords: r, }, A = { className: 'subst', begin: /#[A-Za-z$_]/, end: /(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/, - keywords: i, + keywords: r, }, c = [ e.BINARY_NUMBER_MODE, @@ -22711,12 +22260,12 @@ { begin: /"""/, end: /"""/, - contains: [e.BACKSLASH_ESCAPE, s, A], + contains: [e.BACKSLASH_ESCAPE, a, A], }, { begin: /"/, end: /"/, - contains: [e.BACKSLASH_ESCAPE, s, A], + contains: [e.BACKSLASH_ESCAPE, a, A], }, { begin: /\\/, @@ -22731,7 +22280,7 @@ { begin: '//', end: '//[gim]*', - contains: [s, e.HASH_COMMENT_MODE], + contains: [a, e.HASH_COMMENT_MODE], }, { begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/, @@ -22747,7 +22296,7 @@ subLanguage: 'javascript', }, ]; - s.contains = c; + a.contains = c; const l = { className: 'params', begin: '\\(', @@ -22756,7 +22305,7 @@ { begin: /\(/, end: /\)/, - keywords: i, + keywords: r, contains: ['self'].concat(c), }, ], @@ -22764,7 +22313,7 @@ return { name: 'LiveScript', aliases: ['ls'], - keywords: i, + keywords: r, illegal: /\/\*/, contains: c.concat([ e.COMMENT('\\/\\*', '\\*\\/'), @@ -22772,7 +22321,7 @@ {begin: '(#=>|=>|\\|>>|-?->|!->)'}, { className: 'function', - contains: [a, l], + contains: [s, l], returnBegin: !0, variants: [ { @@ -22808,9 +22357,9 @@ beginKeywords: 'extends', endsWithParent: !0, illegal: /[:="\[\]]/, - contains: [a], + contains: [s], }, - a, + s, ], }, { @@ -22824,7 +22373,7 @@ }; }; }, - 2046: e => { + 94201: e => { function t(...e) { return e .map(e => { @@ -22839,7 +22388,7 @@ } e.exports = function(e) { const n = /([-a-zA-Z$._][\w$.-]*)/, - r = { + i = { className: 'variable', variants: [ {begin: t(/%/, n)}, @@ -22847,7 +22396,7 @@ {begin: /#\d+/}, ], }, - i = { + r = { className: 'title', variants: [ {begin: t(/@/, n)}, @@ -22870,14 +22419,14 @@ className: 'string', variants: [{begin: /"/, end: /[^\\]"/}], }, - i, + r, { className: 'punctuation', relevance: 0, begin: /,/, }, {className: 'operator', relevance: 0, begin: /=/}, - r, + i, { className: 'symbol', variants: [{begin: /^\s*[a-z]+:/}], @@ -22897,7 +22446,7 @@ }; }; }, - 48340: e => { + 6739: e => { e.exports = function(e) { var t = { className: 'string', @@ -22973,15 +22522,15 @@ }; }; }, - 8675: e => { + 11530: e => { e.exports = function(e) { const t = '\\[=*\\[', n = '\\]=*\\]', - r = {begin: t, end: n, contains: ['self']}, - i = [ + i = {begin: t, end: n, contains: ['self']}, + r = [ e.COMMENT('--(?!\\[=*\\[)', '$'), e.COMMENT('--\\[=*\\[', n, { - contains: [r], + contains: [i], relevance: 10, }), ]; @@ -22995,7 +22544,7 @@ built_in: '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove', }, - contains: i.concat([ + contains: r.concat([ { className: 'function', beginKeywords: 'function', @@ -23009,9 +22558,9 @@ className: 'params', begin: '\\(', endsWithParent: !0, - contains: i, + contains: r, }, - ].concat(i), + ].concat(r), }, e.C_NUMBER_MODE, e.APOS_STRING_MODE, @@ -23020,14 +22569,14 @@ className: 'string', begin: t, end: n, - contains: [r], + contains: [i], relevance: 5, }, ]), }; }; }, - 2991: e => { + 45545: e => { e.exports = function(e) { const t = { className: 'variable', @@ -23048,7 +22597,7 @@ end: /"/, contains: [e.BACKSLASH_ESCAPE, t], }, - r = { + i = { className: 'variable', begin: /\$\([\w-]+\s/, end: /\)/, @@ -23058,7 +22607,7 @@ }, contains: [t], }, - i = { + r = { begin: '^' + e.UNDERSCORE_IDENT_RE + '\\s*(?=[:+?]?=)', }, @@ -23080,8 +22629,8 @@ e.HASH_COMMENT_MODE, t, n, - r, i, + r, { className: 'meta', begin: /^\.PHONY:/, @@ -23096,7 +22645,7 @@ }; }; }, - 61234: e => { + 60461: e => { function t(...e) { return e .map(e => { @@ -23116,7 +22665,7 @@ subLanguage: 'xml', relevance: 0, }, - r = { + i = { variants: [ {begin: /\[.+?\]\[.*?\]/, relevance: 0}, { @@ -23162,7 +22711,7 @@ }, ], }, - i = { + r = { className: 'strong', contains: [], variants: [ @@ -23178,12 +22727,12 @@ {begin: /_(?!_)/, end: /_/, relevance: 0}, ], }; - i.contains.push(o), o.contains.push(i); - let a = [n, r]; + r.contains.push(o), o.contains.push(r); + let s = [n, i]; return ( - (i.contains = i.contains.concat(a)), - (o.contains = o.contains.concat(a)), - (a = a.concat(i, o)), + (r.contains = r.contains.concat(s)), + (o.contains = o.contains.concat(s)), + (s = s.concat(r, o)), { name: 'Markdown', aliases: ['md', 'mkdown', 'mkd'], @@ -23194,7 +22743,7 @@ { begin: '^#{1,6}', end: '$', - contains: a, + contains: s, }, { begin: '(?=^.+?\\n[=-]{2,}$)', @@ -23203,7 +22752,7 @@ { begin: '^', end: '\\n', - contains: a, + contains: s, }, ], }, @@ -23216,12 +22765,12 @@ end: '\\s+', excludeEnd: !0, }, - i, + r, o, { className: 'quote', begin: '^>\\s+', - contains: a, + contains: s, end: '$', }, { @@ -23251,7 +22800,7 @@ ], }, {begin: '^[-\\*]{3,}', end: '$'}, - r, + i, { begin: /^\[[^\n]+\]:/, returnBegin: !0, @@ -23276,7 +22825,7 @@ ); }; }, - 29075: e => { + 78558: e => { const t = [ 'AASTriangle', 'AbelianGroup', @@ -29906,10 +29455,10 @@ function n(e) { return e ? ('string' == typeof e ? e : e.source) : null; } - function r(e) { - return i('(', e, ')?'); + function i(e) { + return r('(', e, ')?'); } - function i(...e) { + function r(...e) { return e.map(e => n(e)).join(''); } function o(...e) { @@ -29917,44 +29466,44 @@ } e.exports = function(e) { const n = o( - i( + r( /([2-9]|[1-2]\d|[3][0-5])\^\^/, /(\w*\.\w+|\w+\.\w*|\w+)/ ), /(\d*\.\d+|\d+\.\d*|\d+)/ ), - a = { + s = { className: 'number', relevance: 0, - begin: i( + begin: r( n, - r( + i( o( /``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/, /`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/ ) ), - r(/\*\^[+-]?\d+/) + i(/\*\^[+-]?\d+/) ), }, - s = /[a-zA-Z$][a-zA-Z0-9$]*/, + a = /[a-zA-Z$][a-zA-Z0-9$]*/, A = new Set(t), c = { variants: [ { className: 'builtin-symbol', - begin: s, + begin: a, 'on:begin': (e, t) => { A.has(e[0]) || t.ignoreMatch(); }, }, - {className: 'symbol', relevance: 0, begin: s}, + {className: 'symbol', relevance: 0, begin: a}, ], }, l = { className: 'message-name', relevance: 0, - begin: i('::', s), + begin: r('::', a), }; return { name: 'Mathematica', @@ -29987,7 +29536,7 @@ begin: /\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/, }, e.QUOTE_STRING_MODE, - a, + s, { className: 'operator', relevance: 0, @@ -30002,7 +29551,7 @@ }; }; }, - 80552: e => { + 64528: e => { e.exports = function(e) { var t = "('|\\.')+", n = {relevance: 0, contains: [{begin: t}]}; @@ -30067,7 +29616,7 @@ }; }; }, - 5731: e => { + 67440: e => { e.exports = function(e) { return { name: 'Maxima', @@ -30111,7 +29660,7 @@ }; }; }, - 19533: e => { + 67413: e => { e.exports = function(e) { return { name: 'MEL', @@ -30135,14 +29684,14 @@ }; }; }, - 59355: e => { + 75859: e => { e.exports = function(e) { const t = e.COMMENT('%', '$'), n = e.inherit(e.APOS_STRING_MODE, {relevance: 0}), - r = e.inherit(e.QUOTE_STRING_MODE, {relevance: 0}); + i = e.inherit(e.QUOTE_STRING_MODE, {relevance: 0}); return ( - (r.contains = r.contains.slice()), - r.contains.push({ + (i.contains = i.contains.slice()), + i.contains.push({ className: 'subst', begin: '\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]', @@ -30185,7 +29734,7 @@ }, e.NUMBER_MODE, n, - r, + i, {begin: /:-/}, {begin: /\.$/}, ], @@ -30193,7 +29742,7 @@ ); }; }, - 84788: e => { + 35408: e => { e.exports = function(e) { return { name: 'MIPS Assembly', @@ -30254,7 +29803,7 @@ }; }; }, - 51608: e => { + 5109: e => { e.exports = function(e) { return { name: 'Mizar', @@ -30264,7 +29813,7 @@ }; }; }, - 44442: e => { + 58666: e => { e.exports = function(e) { return { name: 'Mojolicious', @@ -30287,7 +29836,7 @@ }; }; }, - 77852: e => { + 17230: e => { e.exports = function(e) { const t = { className: 'number', @@ -30349,7 +29898,7 @@ }; }; }, - 49935: e => { + 84235: e => { e.exports = function(e) { const t = { keyword: @@ -30359,13 +29908,13 @@ '_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table', }, n = '[A-Za-z$_][0-9A-Za-z$_]*', - r = { + i = { className: 'subst', begin: /#\{/, end: /\}/, keywords: t, }, - i = [ + r = [ e.inherit(e.C_NUMBER_MODE, { starts: {end: '(\\s*/)?', relevance: 0}, }), @@ -30380,7 +29929,7 @@ { begin: /"/, end: /"/, - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], }, ], }, @@ -30388,10 +29937,10 @@ {begin: '@' + e.IDENT_RE}, {begin: e.IDENT_RE + '\\\\' + e.IDENT_RE}, ]; - r.contains = i; + i.contains = r; const o = e.inherit(e.TITLE_MODE, {begin: n}), - a = '(\\(.*\\)\\s*)?\\B[-=]>', - s = { + s = '(\\(.*\\)\\s*)?\\B[-=]>', + a = { className: 'params', begin: '\\([^\\(]', returnBegin: !0, @@ -30400,7 +29949,7 @@ begin: /\(/, end: /\)/, keywords: t, - contains: ['self'].concat(i), + contains: ['self'].concat(r), }, ], }; @@ -30409,14 +29958,14 @@ aliases: ['moon'], keywords: t, illegal: /\/\*/, - contains: i.concat([ + contains: r.concat([ e.COMMENT('--', '$'), { className: 'function', - begin: '^\\s*' + n + '\\s*=\\s*' + a, + begin: '^\\s*' + n + '\\s*=\\s*' + s, end: '[-=]>', returnBegin: !0, - contains: [o, s], + contains: [o, a], }, { begin: /[\(,:=]\s*/, @@ -30424,10 +29973,10 @@ contains: [ { className: 'function', - begin: a, + begin: s, end: '[-=]>', returnBegin: !0, - contains: [s], + contains: [a], }, ], }, @@ -30458,7 +30007,7 @@ }; }; }, - 84527: e => { + 96459: e => { e.exports = function(e) { return { name: 'N1QL', @@ -30505,7 +30054,7 @@ }; }; }, - 14134: e => { + 2715: e => { e.exports = function(e) { const t = { className: 'variable', @@ -30607,7 +30156,7 @@ }; }; }, - 6185: e => { + 82269: e => { e.exports = function(e) { return { name: 'Nim', @@ -30666,7 +30215,7 @@ }; }; }, - 32888: e => { + 48682: e => { e.exports = function(e) { const t = { keyword: @@ -30681,7 +30230,7 @@ end: /\}/, keywords: t, }, - r = { + i = { className: 'string', contains: [n], variants: [ @@ -30689,11 +30238,11 @@ {begin: '"', end: '"'}, ], }, - i = [ + r = [ e.NUMBER_MODE, e.HASH_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, - r, + i, { begin: /[a-zA-Z0-9-_]+(\s*=)/, returnBegin: !0, @@ -30702,17 +30251,17 @@ }, ]; return ( - (n.contains = i), + (n.contains = r), { name: 'Nix', aliases: ['nixos'], keywords: t, - contains: i, + contains: r, } ); }; }, - 74116: e => { + 33500: e => { e.exports = function(e) { return { name: 'Node REPL', @@ -30735,7 +30284,7 @@ }; }; }, - 21151: e => { + 79045: e => { e.exports = function(e) { const t = {className: 'variable', begin: /\$+\{[\w.:-]+\}/}, n = { @@ -30743,8 +30292,8 @@ begin: /\$+\w+/, illegal: /\(\)\{\}/, }, - r = {className: 'variable', begin: /\$+\([\w^.:-]+\)/}, - i = { + i = {className: 'variable', begin: /\$+\([\w^.:-]+\)/}, + r = { className: 'string', variants: [ {begin: '"', end: '"'}, @@ -30760,7 +30309,7 @@ }, t, n, - r, + i, ], }; return { @@ -30782,14 +30331,14 @@ 'Function PageEx Section SectionGroup', end: '$', }, - i, + r, { className: 'keyword', begin: /!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/, }, t, n, - r, + i, { className: 'params', begin: @@ -30801,7 +30350,7 @@ }; }; }, - 6489: e => { + 30323: e => { e.exports = function(e) { const t = /[a-zA-Z@][a-zA-Z0-9_]*/, n = { @@ -30891,7 +30440,7 @@ }; }; }, - 45250: e => { + 79848: e => { e.exports = function(e) { return { name: 'OCaml', @@ -30939,7 +30488,7 @@ }; }; }, - 61319: e => { + 51827: e => { e.exports = function(e) { const t = { className: 'keyword', @@ -30950,8 +30499,8 @@ begin: '\\b\\d+(\\.\\d+)?(e-?\\d+)?', relevance: 0, }, - r = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), - i = { + i = e.inherit(e.QUOTE_STRING_MODE, {illegal: null}), + r = { className: 'function', beginKeywords: 'module function', end: /=|\{/, @@ -30963,7 +30512,7 @@ contains: [ 'self', n, - r, + i, t, { className: 'literal', @@ -30994,15 +30543,15 @@ begin: 'include|use <', end: '>', }, - r, + i, t, {begin: '[*!#%]', relevance: 0}, - i, + r, ], }; }; }, - 24963: e => { + 287: e => { e.exports = function(e) { const t = { $pattern: /\.?\w+/, @@ -31010,15 +30559,15 @@ 'abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained', }, n = e.COMMENT(/\{/, /\}/, {relevance: 0}), - r = e.COMMENT('\\(\\*', '\\*\\)', {relevance: 10}), - i = { + i = e.COMMENT('\\(\\*', '\\*\\)', {relevance: 10}), + r = { className: 'string', begin: "'", end: "'", contains: [{begin: "''"}], }, o = {className: 'string', begin: '(#\\d+)+'}, - a = { + s = { className: 'function', beginKeywords: 'function constructor destructor procedure method', @@ -31032,10 +30581,10 @@ begin: '\\(', end: '\\)', keywords: t, - contains: [i, o], + contains: [r, o], }, n, - r, + i, ], }; return { @@ -31045,31 +30594,31 @@ illegal: '("|\\$[G-Zg-z]|\\/\\*||->)', contains: [ n, - r, - e.C_LINE_COMMENT_MODE, i, + e.C_LINE_COMMENT_MODE, + r, o, e.NUMBER_MODE, - a, + s, { className: 'class', begin: '=\\bclass\\b', end: 'end;', keywords: t, contains: [ - i, + r, o, n, - r, + i, e.C_LINE_COMMENT_MODE, - a, + s, ], }, ], }; }; }, - 87155: e => { + 92201: e => { e.exports = function(e) { const t = e.COMMENT(/\{/, /\}/, {contains: ['self']}); return { @@ -31100,19 +30649,19 @@ }; }; }, - 4595: e => { + 16571: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { const t = /[dualxmsipngr]{0,12}/, - i = { + r = { $pattern: /[\w.]+/, keyword: [ 'abs', @@ -31351,10 +30900,10 @@ className: 'subst', begin: '[$@]\\{', end: '\\}', - keywords: i, + keywords: r, }, - a = {begin: /->\{/, end: /\}/}, - s = { + s = {begin: /->\{/, end: /\}/}, + a = { variants: [ {begin: /\$\d/}, { @@ -31366,27 +30915,27 @@ {begin: /[$%@][^\s\w{]/, relevance: 0}, ], }, - A = [e.BACKSLASH_ESCAPE, o, s], + A = [e.BACKSLASH_ESCAPE, o, a], c = [/!/, /\//, /\|/, /\?/, /'/, /"/, /#/], - l = (e, r, i = '\\1') => { - const o = '\\1' === i ? i : n(i, r); + l = (e, i, r = '\\1') => { + const o = '\\1' === r ? r : n(r, i); return n( n('(?:', e, ')'), - r, + i, /(?:\\.|[^\\\/])*?/, o, /(?:\\.|[^\\\/])*?/, - i, + r, t ); }, - g = (e, r, i) => - n(n('(?:', e, ')'), r, /(?:\\.|[^\\\/])*?/, i, t), + g = (e, i, r) => + n(n('(?:', e, ')'), i, /(?:\\.|[^\\\/])*?/, r, t), u = [ - s, + a, e.HASH_COMMENT_MODE, e.COMMENT(/^=\w/, /=cut/, {endsWithParent: !0}), - a, + s, { className: 'string', contains: A, @@ -31450,7 +30999,7 @@ { className: 'regexp', variants: [ - {begin: l('s|tr|y', r(...c))}, + {begin: l('s|tr|y', i(...c))}, {begin: l('s|tr|y', '\\(', '\\)')}, {begin: l('s|tr|y', '\\[', '\\]')}, {begin: l('s|tr|y', '\\{', '\\}')}, @@ -31462,7 +31011,7 @@ variants: [ {begin: /(m|qr)\/\//, relevance: 0}, {begin: g('(?:m|qr)?', /\//, /\//)}, - {begin: g('m|qr', r(...c), /\1/)}, + {begin: g('m|qr', i(...c), /\1/)}, {begin: g('m|qr', /\(/, /\)/)}, {begin: g('m|qr', /\[/, /\]/)}, {begin: g('m|qr', /\{/, /\}/)}, @@ -31494,17 +31043,17 @@ ]; return ( (o.contains = u), - (a.contains = u), + (s.contains = u), { name: 'Perl', aliases: ['pl', 'pm'], - keywords: i, + keywords: r, contains: u, } ); }; }, - 97895: e => { + 89460: e => { e.exports = function(e) { return { name: 'Packet Filter config', @@ -31531,13 +31080,13 @@ }; }; }, - 35701: e => { + 15293: e => { e.exports = function(e) { const t = e.COMMENT('--', '$'), n = '\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$', - r = + i = 'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ', - i = r + r = i .trim() .split(' ') .map(function(e) { @@ -31702,15 +31251,15 @@ }, }, {begin: '\\b(' + o + ')\\s*\\('}, - {begin: '\\.(' + i + ')\\b'}, + {begin: '\\.(' + r + ')\\b'}, { - begin: '\\b(' + i + ')\\s+PATH\\b', + begin: '\\b(' + r + ')\\s+PATH\\b', keywords: { keyword: 'PATH', - type: r.replace('PATH ', ''), + type: i.replace('PATH ', ''), }, }, - {className: 'type', begin: '\\b(' + i + ')\\b'}, + {className: 'type', begin: '\\b(' + r + ')\\b'}, { className: 'string', begin: "'", @@ -31769,7 +31318,7 @@ }; }; }, - 30388: e => { + 48891: e => { e.exports = function(e) { return { name: 'PHP template', @@ -31801,7 +31350,7 @@ }; }; }, - 77041: e => { + 72234: e => { e.exports = function(e) { const t = { className: 'variable', @@ -31816,32 +31365,32 @@ {begin: /\?>/}, ], }, - r = { + i = { className: 'subst', variants: [ {begin: /\$\w+/}, {begin: /\{\$/, end: /\}/}, ], }, - i = e.inherit(e.APOS_STRING_MODE, {illegal: null}), + r = e.inherit(e.APOS_STRING_MODE, {illegal: null}), o = e.inherit(e.QUOTE_STRING_MODE, { illegal: null, - contains: e.QUOTE_STRING_MODE.contains.concat(r), + contains: e.QUOTE_STRING_MODE.contains.concat(i), }), - a = e.END_SAME_AS_BEGIN({ + s = e.END_SAME_AS_BEGIN({ begin: /<<<[ \t]*(\w+)\n/, end: /[ \t]*(\w+)\b/, - contains: e.QUOTE_STRING_MODE.contains.concat(r), + contains: e.QUOTE_STRING_MODE.contains.concat(i), }), - s = { + a = { className: 'string', contains: [e.BACKSLASH_ESCAPE, n], variants: [ - e.inherit(i, {begin: "b'", end: "'"}), + e.inherit(r, {begin: "b'", end: "'"}), e.inherit(o, {begin: 'b"', end: '"'}), o, - i, - a, + r, + s, ], }, A = { @@ -31915,7 +31464,7 @@ 'self', t, e.C_BLOCK_COMMENT_MODE, - s, + a, A, ], }, @@ -31951,13 +31500,13 @@ end: ';', contains: [e.UNDERSCORE_TITLE_MODE], }, - s, + a, A, ], }; }; }, - 80333: e => { + 34939: e => { e.exports = function(e) { return { name: 'Plain text', @@ -31966,7 +31515,7 @@ }; }; }, - 53795: e => { + 88024: e => { e.exports = function(e) { return { name: 'Pony', @@ -32014,7 +31563,7 @@ }; }; }, - 40862: e => { + 92910: e => { e.exports = function(e) { const t = { $pattern: /-?[A-z\.\-]+\b/, @@ -32024,7 +31573,7 @@ 'ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write', }, n = {begin: '`[\\s\\S]', relevance: 0}, - r = { + i = { className: 'variable', variants: [ {begin: /\$\B/}, @@ -32032,7 +31581,7 @@ {begin: /\$[\w\d][\w\d_:]*/}, ], }, - i = { + r = { className: 'string', variants: [ {begin: /"/, end: /"/}, @@ -32040,7 +31589,7 @@ ], contains: [ n, - r, + i, { className: 'variable', begin: /\$[A-z]/, @@ -32055,7 +31604,7 @@ {begin: /@'/, end: /^'@/}, ], }, - a = e.inherit(e.COMMENT(null, null), { + s = e.inherit(e.COMMENT(null, null), { variants: [ {begin: /#/, end: /$/}, {begin: /<#/, end: /#>/}, @@ -32074,7 +31623,7 @@ }, ], }), - s = { + a = { className: 'built_in', variants: [ { @@ -32116,7 +31665,7 @@ end: /\)/, className: 'params', relevance: 0, - contains: [r], + contains: [i], }, ], }, @@ -32125,7 +31674,7 @@ end: /$/, returnBegin: !0, contains: [ - i, + r, o, { className: 'keyword', @@ -32172,13 +31721,13 @@ }, d = [ u, - a, + s, n, e.NUMBER_MODE, - i, - o, - s, r, + o, + a, + i, { className: 'literal', begin: /\$(null|true|false)\b/, @@ -32240,7 +31789,7 @@ ); }; }, - 36943: e => { + 86371: e => { e.exports = function(e) { return { name: 'Processing', @@ -32262,7 +31811,7 @@ }; }; }, - 92680: e => { + 58136: e => { e.exports = function(e) { return { name: 'Python profiler', @@ -32301,17 +31850,17 @@ }; }; }, - 74370: e => { + 40259: e => { e.exports = function(e) { const t = {begin: /\(/, end: /\)/, relevance: 0}, n = {begin: /\[/, end: /\]/}, - r = { + i = { className: 'comment', begin: /%/, end: /$/, contains: [e.PHRASAL_WORDS_MODE], }, - i = { + r = { className: 'string', begin: /`/, end: /`/, @@ -32330,11 +31879,11 @@ t, {begin: /:-/}, n, - r, + i, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, - i, + r, {className: 'string', begin: /0'(\\'|.)/}, {className: 'string', begin: /0'\\s/}, e.C_NUMBER_MODE, @@ -32346,16 +31895,16 @@ ); }; }, - 79088: e => { + 28231: e => { e.exports = function(e) { var t = '[ \\t\\f]*', n = t + '[:=]' + t, - r = '[ \\t\\f]+', - i = '(' + n + '|' + '[ \\t\\f]+)', + i = '[ \\t\\f]+', + r = '(' + n + '|' + '[ \\t\\f]+)', o = '([^\\\\\\W:= \\t\\f\\n]|\\\\.)+', - a = '([^\\\\:= \\t\\f\\n]|\\\\.)+', - s = { - end: i, + s = '([^\\\\:= \\t\\f\\n]|\\\\.)+', + a = { + end: r, relevance: 0, starts: { className: 'string', @@ -32377,7 +31926,7 @@ returnBegin: !0, variants: [ {begin: o + n, relevance: 1}, - {begin: o + r, relevance: 0}, + {begin: o + i, relevance: 0}, ], contains: [ { @@ -32387,32 +31936,32 @@ relevance: 0, }, ], - starts: s, + starts: a, }, { - begin: a + i, + begin: s + r, returnBegin: !0, relevance: 0, contains: [ { className: 'meta', - begin: a, + begin: s, endsParent: !0, relevance: 0, }, ], - starts: s, + starts: a, }, { className: 'attr', relevance: 0, - begin: a + t + '$', + begin: s + t + '$', }, ], }; }; }, - 67295: e => { + 74590: e => { e.exports = function(e) { return { name: 'Protocol Buffers', @@ -32454,15 +32003,15 @@ }; }; }, - 62834: e => { + 58650: e => { e.exports = function(e) { const t = e.COMMENT('#', '$'), n = '([A-Za-z_]|::)(\\w|::)*', - r = e.inherit(e.TITLE_MODE, {begin: n}), - i = {className: 'variable', begin: '\\$' + n}, + i = e.inherit(e.TITLE_MODE, {begin: n}), + r = {className: 'variable', begin: '\\$' + n}, o = { className: 'string', - contains: [e.BACKSLASH_ESCAPE, i], + contains: [e.BACKSLASH_ESCAPE, r], variants: [ {begin: /'/, end: /'/}, {begin: /"/, end: /"/}, @@ -32473,13 +32022,13 @@ aliases: ['pp'], contains: [ t, - i, + r, o, { beginKeywords: 'class', end: '\\{|;', illegal: /=/, - contains: [r, t], + contains: [i, t], }, { beginKeywords: 'define', @@ -32530,7 +32079,7 @@ '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', relevance: 0, }, - i, + r, ], }, ], @@ -32540,7 +32089,7 @@ }; }; }, - 95742: e => { + 68744: e => { e.exports = function(e) { return { name: 'PureBASIC', @@ -32577,7 +32126,7 @@ }; }; }, - 71562: e => { + 35510: e => { e.exports = function(e) { return { aliases: ['pycon'], @@ -32597,7 +32146,7 @@ }; }; }, - 27435: e => { + 45424: e => { function t(e) { return (function(...e) { return e @@ -32745,8 +32294,8 @@ 'Union', ], }, - r = {className: 'meta', begin: /^(>>>|\.\.\.) /}, - i = { + i = {className: 'meta', begin: /^(>>>|\.\.\.) /}, + r = { className: 'subst', begin: /\{/, end: /\}/, @@ -32754,31 +32303,31 @@ illegal: /#/, }, o = {begin: /\{\{/, relevance: 0}, - a = { + s = { className: 'string', contains: [e.BACKSLASH_ESCAPE], variants: [ { begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/, end: /'''/, - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], relevance: 10, }, { begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/, end: /"""/, - contains: [e.BACKSLASH_ESCAPE, r], + contains: [e.BACKSLASH_ESCAPE, i], relevance: 10, }, { begin: /([fF][rR]|[rR][fF]|[fF])'''/, end: /'''/, - contains: [e.BACKSLASH_ESCAPE, r, o, i], + contains: [e.BACKSLASH_ESCAPE, i, o, r], }, { begin: /([fF][rR]|[rR][fF]|[fF])"""/, end: /"""/, - contains: [e.BACKSLASH_ESCAPE, r, o, i], + contains: [e.BACKSLASH_ESCAPE, i, o, r], }, { begin: /([uU]|[rR])'/, @@ -32795,25 +32344,25 @@ { begin: /([fF][rR]|[rR][fF]|[fF])'/, end: /'/, - contains: [e.BACKSLASH_ESCAPE, o, i], + contains: [e.BACKSLASH_ESCAPE, o, r], }, { begin: /([fF][rR]|[rR][fF]|[fF])"/, end: /"/, - contains: [e.BACKSLASH_ESCAPE, o, i], + contains: [e.BACKSLASH_ESCAPE, o, r], }, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, ], }, - s = '[0-9](_?[0-9])*', - A = `(\\b(${s}))?\\.(${s})|\\b(${s})\\.`, + a = '[0-9](_?[0-9])*', + A = `(\\b(${a}))?\\.(${a})|\\b(${a})\\.`, c = { className: 'number', relevance: 0, variants: [ { - begin: `(\\b(${s})|(${A}))[eE][+-]?(${s})[jJ]?\\b`, + begin: `(\\b(${a})|(${A}))[eE][+-]?(${a})[jJ]?\\b`, }, {begin: `(${A})[jJ]?`}, { @@ -32823,7 +32372,7 @@ {begin: '\\b0[bB](_?[01])+[lL]?\\b'}, {begin: '\\b0[oO](_?[0-7])+[lL]?\\b'}, {begin: '\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b'}, - {begin: `\\b(${s})[jJ]\\b`}, + {begin: `\\b(${a})[jJ]\\b`}, ], }, l = { @@ -32848,27 +32397,27 @@ keywords: n, contains: [ 'self', - r, + i, c, - a, + s, e.HASH_COMMENT_MODE, ], }, ], }; return ( - (i.contains = [a, c, r]), + (r.contains = [s, c, i]), { name: 'Python', aliases: ['py', 'gyp', 'ipython'], keywords: n, illegal: /(<\/|->|\?)|=>/, contains: [ - r, + i, c, {begin: /\bself\b/}, {beginKeywords: 'if', relevance: 0}, - a, + s, l, e.HASH_COMMENT_MODE, { @@ -32898,14 +32447,14 @@ className: 'meta', begin: /^[\t ]*@/, end: /(?=#)|$/, - contains: [c, g, a], + contains: [c, g, s], }, ], } ); }; }, - 2676: e => { + 78484: e => { e.exports = function(e) { return { name: 'Q', @@ -32927,7 +32476,7 @@ }; }; }, - 1324: e => { + 29004: e => { function t(...e) { return e .map(e => { @@ -32942,7 +32491,7 @@ } e.exports = function(e) { const n = '[a-zA-Z_][a-zA-Z0-9\\._]*', - r = { + i = { className: 'attribute', begin: '\\bid\\s*:', starts: { @@ -32951,7 +32500,7 @@ returnEnd: !1, }, }, - i = { + r = { begin: n + '\\s*:', returnBegin: !0, contains: [ @@ -33075,15 +32624,15 @@ illegal: /\[|%/, }, {begin: '\\.' + e.IDENT_RE, relevance: 0}, - r, i, + r, o, ], illegal: /#/, }; }; }, - 10034: e => { + 45911: e => { function t(...e) { return e .map(e => { @@ -33117,22 +32666,22 @@ throw new Error( 'beforeMatch cannot be used with starts' ); - const r = Object.assign({}, e); + const i = Object.assign({}, e); Object.keys(e).forEach(t => { delete e[t]; }), (e.begin = t( - r.beforeMatch, - t('(?=', r.begin, ')') + i.beforeMatch, + t('(?=', i.begin, ')') )), (e.starts = { relevance: 0, contains: [ - Object.assign(r, {endsParent: !0}), + Object.assign(i, {endsParent: !0}), ], }), (e.relevance = 0), - delete r.beforeMatch; + delete i.beforeMatch; }, ], contains: [ @@ -33236,11 +32785,11 @@ }; }; }, - 41326: e => { + 83131: e => { e.exports = function(e) { const t = '~?[a-z$_][0-9a-zA-Z$_]*', n = '`?[A-Z$_][0-9a-zA-Z$_]*', - r = + i = '(' + ([ '||', @@ -33263,7 +32812,7 @@ }) .join('|') + '|\\|>|&&|==|===)'), - i = '\\s+' + r + '\\s+', + r = '\\s+' + i + '\\s+', o = { keyword: 'and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with', @@ -33271,18 +32820,18 @@ 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ', literal: 'true false', }, - a = + s = '\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', - s = { + a = { className: 'number', relevance: 0, - variants: [{begin: a}, {begin: '\\(-' + a + '\\)'}], + variants: [{begin: s}, {begin: '\\(-' + s + '\\)'}], }, - A = {className: 'operator', relevance: 0, begin: r}, + A = {className: 'operator', relevance: 0, begin: i}, c = [ {className: 'identifier', relevance: 0, begin: t}, A, - s, + a, ], l = [ e.QUOTE_STRING_MODE, @@ -33463,11 +33012,11 @@ d, { className: 'operator', - begin: i, + begin: r, illegal: '--\x3e', relevance: 0, }, - s, + a, e.C_LINE_COMMENT_MODE, h, u, @@ -33498,7 +33047,7 @@ ); }; }, - 41115: e => { + 69718: e => { e.exports = function(e) { return { name: 'RenderMan RIB', @@ -33514,7 +33063,7 @@ }; }; }, - 26177: e => { + 20019: e => { e.exports = function(e) { const t = '[a-zA-Z-_][^\\n{]+\\{', n = { @@ -33567,25 +33116,25 @@ }; }; }, - 77376: e => { + 85864: e => { e.exports = function(e) { const t = 'foreach do while for if from to step else on-error and or not in', n = 'true false yes no nothing nil null', - r = { + i = { className: 'variable', variants: [ {begin: /\$[\w\d#@][\w\d_]*/}, {begin: /\$\{(.*?)\}/}, ], }, - i = { + r = { className: 'string', begin: /"/, end: /"/, contains: [ e.BACKSLASH_ESCAPE, - r, + i, { className: 'variable', begin: /\$\(/, @@ -33621,9 +33170,9 @@ illegal: /./, }, e.COMMENT('^#', '$'), - i, - o, r, + o, + i, { begin: /[\w-]+=([^\s{}[\]()>]+)/, relevance: 0, @@ -33635,9 +33184,9 @@ endsWithParent: !0, relevance: 0, contains: [ - i, - o, r, + o, + i, { className: 'literal', begin: @@ -33681,7 +33230,7 @@ }; }; }, - 43781: e => { + 90613: e => { e.exports = function(e) { return { name: 'RenderMan RSL', @@ -33713,7 +33262,7 @@ }; }; }, - 30565: e => { + 84530: e => { function t(...e) { return e .map(e => { @@ -33729,31 +33278,31 @@ e.exports = function(e) { const n = '([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)', - r = { + i = { keyword: 'and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__', built_in: 'proc lambda', literal: 'true false nil', }, - i = {className: 'doctag', begin: '@[A-Za-z]+'}, + r = {className: 'doctag', begin: '@[A-Za-z]+'}, o = {begin: '#<', end: '>'}, - a = [ - e.COMMENT('#', '$', {contains: [i]}), + s = [ + e.COMMENT('#', '$', {contains: [r]}), e.COMMENT('^=begin', '^=end', { - contains: [i], + contains: [r], relevance: 10, }), e.COMMENT('^__END__', '\\n$'), ], - s = { + a = { className: 'subst', begin: /#\{/, end: /\}/, - keywords: r, + keywords: i, }, A = { className: 'string', - contains: [e.BACKSLASH_ESCAPE, s], + contains: [e.BACKSLASH_ESCAPE, a], variants: [ {begin: /'/, end: /'/}, {begin: /"/, end: /"/}, @@ -33782,7 +33331,7 @@ e.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, - contains: [e.BACKSLASH_ESCAPE, s], + contains: [e.BACKSLASH_ESCAPE, a], }), ], }, @@ -33811,7 +33360,7 @@ begin: '\\(', end: '\\)', endsParent: !0, - keywords: r, + keywords: i, }, u = [ A, @@ -33837,7 +33386,7 @@ }, ], }, - ].concat(a), + ].concat(s), }, { className: 'function', @@ -33852,7 +33401,7 @@ contains: [ e.inherit(e.TITLE_MODE, {begin: n}), g, - ].concat(a), + ].concat(s), }, {begin: e.IDENT_RE + '::'}, { @@ -33877,7 +33426,7 @@ begin: /\|/, end: /\|/, relevance: 0, - keywords: r, + keywords: i, }, { begin: '(' + e.RE_STARTERS_RE + '|unless)\\s*', @@ -33885,7 +33434,7 @@ contains: [ { className: 'regexp', - contains: [e.BACKSLASH_ESCAPE, s], + contains: [e.BACKSLASH_ESCAPE, a], illegal: /\n/, variants: [ {begin: '/', end: '/[a-z]*'}, @@ -33895,12 +33444,12 @@ {begin: '%r\\[', end: '\\][a-z]*'}, ], }, - ].concat(o, a), + ].concat(o, s), relevance: 0, }, - ].concat(o, a); + ].concat(o, s); var d; - (s.contains = u), (g.contains = u); + (a.contains = u), (g.contains = u); const h = [ {begin: /^\s*=>/, starts: {end: '$', contains: u}}, { @@ -33911,7 +33460,7 @@ }, ]; return ( - a.unshift(o), + s.unshift(o), { name: 'Ruby', aliases: [ @@ -33921,17 +33470,17 @@ 'thor', 'irb', ], - keywords: r, + keywords: i, illegal: /\/\*/, contains: [e.SHEBANG({binary: 'ruby'})] .concat(h) - .concat(a) + .concat(s) .concat(u), } ); }; }, - 39685: e => { + 126: e => { e.exports = function(e) { return { name: 'Oracle Rules Language', @@ -33958,7 +33507,7 @@ }; }; }, - 77686: e => { + 50018: e => { e.exports = function(e) { const t = '([ui](8|16|32|64|128|size)|f(32|64))?', n = @@ -34053,7 +33602,7 @@ }; }; }, - 49730: e => { + 52203: e => { e.exports = function(e) { return { name: 'SAS', @@ -34105,7 +33654,7 @@ }; }; }, - 97609: e => { + 12783: e => { e.exports = function(e) { const t = { className: 'subst', @@ -34139,12 +33688,12 @@ }, ], }, - r = { + i = { className: 'type', begin: '\\b[A-Z][A-Za-z0-9_]*', relevance: 0, }, - i = { + r = { className: 'title', begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, relevance: 0, @@ -34164,7 +33713,7 @@ excludeBegin: !0, excludeEnd: !0, relevance: 0, - contains: [r], + contains: [i], }, { className: 'params', @@ -34173,17 +33722,17 @@ excludeBegin: !0, excludeEnd: !0, relevance: 0, - contains: [r], + contains: [i], }, - i, + r, ], }, - a = { + s = { className: 'function', beginKeywords: 'def', end: /[:={\[(\n;]/, excludeEnd: !0, - contains: [i], + contains: [r], }; return { name: 'Scala', @@ -34197,8 +33746,8 @@ e.C_BLOCK_COMMENT_MODE, n, {className: 'symbol', begin: "'\\w[\\w\\d_]*(?!')"}, - r, - a, + i, + s, o, e.C_NUMBER_MODE, {className: 'meta', begin: '@[A-Za-z]+'}, @@ -34206,16 +33755,16 @@ }; }; }, - 41199: e => { + 62594: e => { e.exports = function(e) { const t = '[^\\(\\)\\[\\]\\{\\}",\'`;#|\\\\\\s]+', n = '(-|\\+)?\\d+([./]\\d+)?', - r = { + i = { $pattern: t, 'builtin-name': "case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?", }, - i = { + r = { className: 'literal', begin: '(#t|#f|#\\\\' + t + '|#\\\\.)', }, @@ -34233,8 +33782,8 @@ {begin: '#x[0-9a-f]+(/[0-9a-f]+)?'}, ], }, - a = e.QUOTE_STRING_MODE, - s = [ + s = e.QUOTE_STRING_MODE, + a = [ e.COMMENT(';', '$', {relevance: 0}), e.COMMENT('#\\|', '\\|#'), ], @@ -34247,7 +33796,7 @@ { begin: '\\(', end: '\\)', - contains: ['self', i, a, o, A, c], + contains: ['self', r, s, o, A, c], }, ], }, @@ -34255,7 +33804,7 @@ className: 'name', relevance: 0, begin: t, - keywords: r, + keywords: i, }, d = { variants: [ @@ -34284,16 +33833,16 @@ ], }; return ( - (l.contains = [i, o, a, A, c, g, d].concat(s)), + (l.contains = [r, o, s, A, c, g, d].concat(a)), { name: 'Scheme', illegal: /\S/, - contains: [e.SHEBANG(), o, a, c, g, d].concat(s), + contains: [e.SHEBANG(), o, s, c, g, d].concat(a), } ); }; }, - 21958: e => { + 56608: e => { e.exports = function(e) { const t = [ e.C_NUMBER_MODE, @@ -34346,7 +33895,7 @@ }; }; }, - 52054: e => { + 10100: e => { const t = [ 'a', 'abbr', @@ -34456,7 +34005,7 @@ 'min-height', 'max-height', ], - r = [ + i = [ 'active', 'any-link', 'blank', @@ -34517,7 +34066,7 @@ 'visited', 'where', ], - i = [ + r = [ 'after', 'backdrop', 'before', @@ -34743,7 +34292,7 @@ 'z-index', ].reverse(); e.exports = function(e) { - const a = (e => ({ + const s = (e => ({ IMPORTANT: {className: 'meta', begin: '!important'}, HEXCOLOR: { className: 'number', @@ -34760,8 +34309,8 @@ ], }, }))(e), - s = i, - A = r, + a = r, + A = i, c = '@[a-z-]+', l = { className: 'variable', @@ -34784,7 +34333,7 @@ begin: '\\.[A-Za-z0-9_-]+', relevance: 0, }, - a.ATTRIBUTE_SELECTOR_MODE, + s.ATTRIBUTE_SELECTOR_MODE, { className: 'selector-tag', begin: '\\b(' + t.join('|') + ')\\b', @@ -34796,7 +34345,7 @@ }, { className: 'selector-pseudo', - begin: '::(' + s.join('|') + ')', + begin: '::(' + a.join('|') + ')', }, l, { @@ -34817,11 +34366,11 @@ end: ';', contains: [ l, - a.HEXCOLOR, + s.HEXCOLOR, e.CSS_NUMBER_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, - a.IMPORTANT, + s.IMPORTANT, ], }, { @@ -34847,7 +34396,7 @@ l, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, - a.HEXCOLOR, + s.HEXCOLOR, e.CSS_NUMBER_MODE, ], }, @@ -34855,7 +34404,7 @@ }; }; }, - 64453: e => { + 63154: e => { e.exports = function(e) { return { name: 'Shell Session', @@ -34873,7 +34422,7 @@ }; }; }, - 32377: e => { + 83640: e => { e.exports = function(e) { const t = [ 'add', @@ -34990,11 +34539,11 @@ }; }; }, - 45638: e => { + 63990: e => { e.exports = function(e) { const t = '[a-z][a-zA-Z0-9_]*', n = {className: 'string', begin: '\\$.{1}'}, - r = { + i = { className: 'symbol', begin: '#' + e.UNDERSCORE_IDENT_RE, }; @@ -35012,7 +34561,7 @@ }, {begin: t + ':', relevance: 0}, e.C_NUMBER_MODE, - r, + i, n, { begin: @@ -35029,14 +34578,14 @@ e.APOS_STRING_MODE, n, e.C_NUMBER_MODE, - r, + i, ], }, ], }; }; }, - 27185: e => { + 82130: e => { e.exports = function(e) { return { name: 'SML (Standard ML)', @@ -35085,7 +34634,7 @@ }; }; }, - 57942: e => { + 74448: e => { e.exports = function(e) { const t = { className: 'string', @@ -35150,19 +34699,19 @@ }; }; }, - 11451: e => { + 62834: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { const t = e.COMMENT('--', '$'), - i = ['true', 'false', 'unknown'], + r = ['true', 'false', 'unknown'], o = [ 'bigint', 'binary', @@ -35192,7 +34741,7 @@ 'varying', 'varbinary', ], - a = [ + s = [ 'abs', 'acos', 'array_agg', @@ -35279,7 +34828,7 @@ 'var_samp', 'width_bucket', ], - s = [ + a = [ 'create table', 'insert into', 'primary key', @@ -35297,7 +34846,7 @@ 'depth first', 'breadth first', ], - A = a, + A = s, c = [ 'abs', 'acos', @@ -35673,9 +35222,9 @@ 'first', 'last', 'view', - ].filter(e => !a.includes(e)), + ].filter(e => !s.includes(e)), l = { - begin: n(/\b/, r(...A), /\s*\(/), + begin: n(/\b/, i(...A), /\s*\(/), keywords: {built_in: A}, }; return { @@ -35688,19 +35237,19 @@ e, {exceptions: t, when: n} = {} ) { - const r = n; + const i = n; return ( (t = t || []), e.map(e => e.match(/\|\d+$/) || t.includes(e) ? e - : r(e) + : i(e) ? `${e}|0` : e ) ); })(c, {when: e => e.length < 3}), - literal: i, + literal: r, type: o, built_in: [ 'current_catalog', @@ -35722,17 +35271,17 @@ }, contains: [ { - begin: r(...s), + begin: i(...a), keywords: { $pattern: /[\w\.]+/, - keyword: c.concat(s), - literal: i, + keyword: c.concat(a), + literal: r, type: o, }, }, { className: 'type', - begin: r( + begin: i( 'double precision', 'large object', 'with timezone', @@ -35764,7 +35313,7 @@ }; }; }, - 92509: e => { + 16500: e => { e.exports = function(e) { var t = e.COMMENT('--', '$'); return { @@ -35814,7 +35363,7 @@ }; }; }, - 89526: e => { + 13949: e => { e.exports = function(e) { return { name: 'Stan', @@ -36324,7 +35873,7 @@ }; }; }, - 16120: e => { + 22019: e => { e.exports = function(e) { return { name: 'Stata', @@ -36361,7 +35910,7 @@ }; }; }, - 7117: e => { + 63523: e => { e.exports = function(e) { return { name: 'STEP Part 21', @@ -36399,7 +35948,7 @@ }; }; }, - 5298: e => { + 32043: e => { const t = [ 'a', 'abbr', @@ -36509,7 +36058,7 @@ 'min-height', 'max-height', ], - r = [ + i = [ 'active', 'any-link', 'blank', @@ -36570,7 +36119,7 @@ 'visited', 'where', ], - i = [ + r = [ 'after', 'backdrop', 'before', @@ -36796,7 +36345,7 @@ 'z-index', ].reverse(); e.exports = function(e) { - const a = (e => ({ + const s = (e => ({ IMPORTANT: {className: 'meta', begin: '!important'}, HEXCOLOR: { className: 'number', @@ -36813,7 +36362,7 @@ ], }, }))(e), - s = {className: 'variable', begin: '\\$' + e.IDENT_RE}, + a = {className: 'variable', begin: '\\$' + e.IDENT_RE}, A = '(?=[.\\s\\n[:,(])'; return { name: 'Stylus', @@ -36841,7 +36390,7 @@ e.APOS_STRING_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, - a.HEXCOLOR, + s.HEXCOLOR, { begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])', @@ -36858,13 +36407,13 @@ }, { className: 'selector-pseudo', - begin: '&?:(' + r.join('|') + ')' + A, + begin: '&?:(' + i.join('|') + ')' + A, }, { className: 'selector-pseudo', - begin: '&?::(' + i.join('|') + ')' + A, + begin: '&?::(' + r.join('|') + ')' + A, }, - a.ATTRIBUTE_SELECTOR_MODE, + s.ATTRIBUTE_SELECTOR_MODE, { className: 'keyword', begin: /@media/, @@ -36900,7 +36449,7 @@ ].join('|') + '))\\b', }, - s, + a, e.CSS_NUMBER_MODE, { className: 'function', @@ -36917,8 +36466,8 @@ begin: /\(/, end: /\)/, contains: [ - a.HEXCOLOR, - s, + s.HEXCOLOR, + a, e.APOS_STRING_MODE, e.CSS_NUMBER_MODE, e.QUOTE_STRING_MODE, @@ -36932,13 +36481,13 @@ starts: { end: /;|$/, contains: [ - a.HEXCOLOR, - s, + s.HEXCOLOR, + a, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.CSS_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE, - a.IMPORTANT, + s.IMPORTANT, ], illegal: /\./, relevance: 0, @@ -36948,7 +36497,7 @@ }; }; }, - 24859: e => { + 9307: e => { e.exports = function(e) { return { name: 'SubUnit', @@ -36982,22 +36531,22 @@ }; }; }, - 86224: e => { + 56450: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(e) { - return r('(?=', e, ')'); + return i('(?=', e, ')'); } - function r(...e) { + function i(...e) { return e.map(e => t(e)).join(''); } - function i(...e) { + function r(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } - const o = e => r(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), - a = ['Protocol', 'Type'].map(o), - s = ['init', 'self'].map(o), + const o = e => i(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), + s = ['Protocol', 'Type'].map(o), + a = ['init', 'self'].map(o), A = ['Any', 'Self'], c = [ 'associatedtype', @@ -37151,7 +36700,7 @@ 'withoutActuallyEscaping', 'zip', ], - h = i( + h = r( /[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, @@ -37171,7 +36720,7 @@ /[\u3008-\u3020]/, /[\u3030]/ ), - C = i( + C = r( h, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, @@ -37179,8 +36728,8 @@ /[\uFE00-\uFE0F]/, /[\uFE20-\uFE2F]/ ), - I = r(h, C, '*'), - p = i( + I = i(h, C, '*'), + p = r( /[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, @@ -37193,16 +36742,16 @@ /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, /[\uFE47-\uFEFE\uFF00-\uFFFD]/ ), - m = i( + m = r( p, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/ ), - f = r(p, m, '*'), - E = r(/[A-Z]/, m, '*'), + f = i(p, m, '*'), + E = i(/[A-Z]/, m, '*'), y = [ 'autoclosure', - r(/convention\(/, i('swift', 'block', 'c'), /\)/), + i(/convention\(/, r('swift', 'block', 'c'), /\)/), 'discardableResult', 'dynamicCallable', 'dynamicMemberLookup', @@ -37220,7 +36769,7 @@ 'NSApplicationMain', 'NSCopying', 'NSManaged', - r(/objc\(/, f, /\)/), + i(/objc\(/, f, /\)/), 'objc', 'objcMembers', 'propertyWrapper', @@ -37249,42 +36798,42 @@ p = [e.C_LINE_COMMENT_MODE, h], w = { className: 'keyword', - begin: r(/\./, n(i(...a, ...s))), - end: i(...a, ...s), + begin: i(/\./, n(r(...s, ...a))), + end: r(...s, ...a), excludeBegin: !0, }, - b = {match: r(/\./, i(...c)), relevance: 0}, - v = c.filter(e => 'string' == typeof e).concat(['_|0']), - M = { + b = {match: i(/\./, r(...c)), relevance: 0}, + M = c.filter(e => 'string' == typeof e).concat(['_|0']), + v = { variants: [ { className: 'keyword', - match: i( + match: r( ...c .filter(e => 'string' != typeof e) .concat(A) .map(o), - ...s + ...a ), }, ], }, N = { - $pattern: i(/\b\w+/, /#\w+/), - keyword: v.concat(u), + $pattern: r(/\b\w+/, /#\w+/), + keyword: M.concat(u), literal: l, }, - S = [w, b, M], + S = [w, b, v], Q = [ - {match: r(/\./, i(...d)), relevance: 0}, + {match: i(/\./, r(...d)), relevance: 0}, { className: 'built_in', - match: r(/\b/, i(...d), /(?=\()/), + match: i(/\b/, r(...d), /(?=\()/), }, ], - F = {match: /->/, relevance: 0}, - x = [ - F, + x = {match: /->/, relevance: 0}, + F = [ + x, { className: 'operator', relevance: 0, @@ -37313,31 +36862,31 @@ Y = (e = '') => ({ className: 'subst', variants: [ - {match: r(/\\/, e, /[0\\tnr"']/)}, - {match: r(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/)}, + {match: i(/\\/, e, /[0\\tnr"']/)}, + {match: i(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/)}, ], }), R = (e = '') => ({ className: 'subst', - match: r(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/), + match: i(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/), }), _ = (e = '') => ({ className: 'subst', label: 'interpol', - begin: r(/\\/, e, /\(/), + begin: i(/\\/, e, /\(/), end: /\)/, }), U = (e = '') => ({ - begin: r(e, /"""/), - end: r(/"""/, e), + begin: i(e, /"""/), + end: i(/"""/, e), contains: [Y(e), R(e), _(e)], }), O = (e = '') => ({ - begin: r(e, /"/), - end: r(/"/, e), + begin: i(e, /"/), + end: i(/"/, e), contains: [Y(e), _(e)], }), - k = { + G = { className: 'string', variants: [ U(), @@ -37350,13 +36899,13 @@ O('###'), ], }, - G = {match: r(/`/, f, /`/)}, - L = [ - G, + L = {match: i(/`/, f, /`/)}, + k = [ + L, {className: 'variable', match: /\$\d+/}, {className: 'variable', match: `\\$${m}+`}, ], - j = [ + z = [ { match: /(@|#)available/, className: 'keyword', @@ -37366,21 +36915,21 @@ begin: /\(/, end: /\)/, keywords: B, - contains: [...x, T, k], + contains: [...F, T, G], }, ], }, }, - {className: 'keyword', match: r(/@/, i(...y))}, - {className: 'meta', match: r(/@/, f)}, + {className: 'keyword', match: i(/@/, r(...y))}, + {className: 'meta', match: i(/@/, f)}, ], - z = { + j = { match: n(/\b[A-Z]/), relevance: 0, contains: [ { className: 'type', - match: r( + match: i( /(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, m, '+' @@ -37389,16 +36938,16 @@ {className: 'type', match: E, relevance: 0}, {match: /[?!]+/, relevance: 0}, {match: /\.\.\./, relevance: 0}, - {match: r(/\s+&\s+/, n(E)), relevance: 0}, + {match: i(/\s+&\s+/, n(E)), relevance: 0}, ], }, P = { begin: //, keywords: N, - contains: [...p, ...S, ...j, F, z], + contains: [...p, ...S, ...z, x, j], }; - z.contains.push(P); + j.contains.push(P); const H = { begin: /\(/, end: /\)/, @@ -37407,19 +36956,19 @@ contains: [ 'self', { - match: r(f, /\s*:/), + match: i(f, /\s*:/), keywords: '_|0', relevance: 0, }, ...p, ...S, ...Q, - ...x, + ...F, T, - k, - ...L, - ...j, - z, + G, + ...k, + ...z, + j, ], }, J = { @@ -37427,23 +36976,23 @@ contains: [ { className: 'title', - match: i(G.match, f, I), + match: r(L.match, f, I), endsParent: !0, relevance: 0, }, t, ], }, - W = {begin: //, contains: [...p, z]}, + W = {begin: //, contains: [...p, j]}, V = { begin: /\(/, end: /\)/, keywords: N, contains: [ { - begin: i( - n(r(f, /\s*:/)), - n(r(f, /\s+/, f, /\s*:/)) + begin: r( + n(i(f, /\s*:/)), + n(i(f, /\s+/, f, /\s*:/)) ), end: /:/, relevance: 0, @@ -37454,11 +37003,11 @@ }, ...p, ...S, - ...x, + ...F, T, - k, - ...j, - z, + G, + ...z, + j, H, ], endsParent: !0, @@ -37503,14 +37052,14 @@ relevance: 0, endsParent: !0, keywords: [...g, ...l], - contains: [z], + contains: [j], }, ], }; - for (const e of k.variants) { + for (const e of G.variants) { const t = e.contains.find(e => 'interpol' === e.label); t.keywords = N; - const n = [...S, ...Q, ...x, T, k, ...L]; + const n = [...S, ...Q, ...F, T, G, ...k]; t.contains = [ ...n, {begin: /\(/, end: /\)/, contains: ['self', ...n]}, @@ -37547,18 +37096,18 @@ }, ...S, ...Q, - ...x, + ...F, T, - k, - ...L, - ...j, - z, + G, + ...k, + ...z, + j, H, ], }; }; }, - 77235: e => { + 87714: e => { e.exports = function(e) { return { name: 'Tagger Script', @@ -37592,7 +37141,7 @@ }; }; }, - 97523: e => { + 31684: e => { e.exports = function(e) { return { name: 'Test Anything Protocol', @@ -37621,7 +37170,7 @@ }; }; }, - 9450: e => { + 53314: e => { function t(...e) { return e .map(e => { @@ -37636,7 +37185,7 @@ } e.exports = function(e) { const n = /[a-zA-Z_][a-zA-Z0-9_]*/, - r = { + i = { className: 'number', variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE], }; @@ -37669,7 +37218,7 @@ { begin: t( /\$/, - ((i = /::/), t('(', i, ')?')), + ((r = /::/), t('(', r, ')?')), n, '(::', n, @@ -37680,7 +37229,7 @@ begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', end: '\\}', - contains: [r], + contains: [i], }, ], }, @@ -37693,13 +37242,13 @@ }), ], }, - r, + i, ], }; - var i; + var r; }; }, - 88503: e => { + 81456: e => { e.exports = function(e) { const t = 'bool byte i16 i32 i64 double string binary'; return { @@ -37739,7 +37288,7 @@ }; }; }, - 20572: e => { + 4658: e => { e.exports = function(e) { const t = { className: 'number', @@ -37800,7 +37349,7 @@ }; }; }, - 22674: e => { + 41546: e => { e.exports = function(e) { var t = 'attribute block constant cycle date dump include max min parent random range source template_from_string', @@ -37812,19 +37361,19 @@ {className: 'params', begin: '\\(', end: '\\)'}, ], }, - r = { + i = { begin: /\|[A-Za-z_]+:?/, keywords: 'abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode', contains: [n], }, - i = + r = 'apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with'; return ( - (i = - i + + (r = + r + ' ' + - i + r .split(' ') .map(function(e) { return 'end' + e; @@ -37845,10 +37394,10 @@ { className: 'name', begin: /\w+/, - keywords: i, + keywords: r, starts: { endsWithParent: !0, - contains: [r, n], + contains: [i, n], relevance: 0, }, }, @@ -37858,14 +37407,14 @@ className: 'template-variable', begin: /\{\{/, end: /\}\}/, - contains: ['self', r, n], + contains: ['self', i, n], }, ], } ); }; }, - 10251: e => { + 3935: e => { const t = '[A-Za-z$_][0-9A-Za-z$_]*', n = [ 'as', @@ -37907,7 +37456,7 @@ 'export', 'extends', ], - r = [ + i = [ 'true', 'false', 'null', @@ -37915,7 +37464,7 @@ 'NaN', 'Infinity', ], - i = [].concat( + r = [].concat( [ 'setInterval', 'setTimeout', @@ -37993,9 +37542,9 @@ ] ); function o(e) { - return a('(?=', e, ')'); + return s('(?=', e, ')'); } - function a(...e) { + function s(...e) { return e .map(e => { return (t = e) @@ -38008,7 +37557,7 @@ .join(''); } e.exports = function(e) { - const s = { + const a = { $pattern: t, keyword: n.concat([ 'type', @@ -38023,8 +37572,8 @@ 'abstract', 'readonly', ]), - literal: r, - built_in: i.concat([ + literal: i, + built_in: r.concat([ 'any', 'void', 'number', @@ -38040,13 +37589,13 @@ begin: '@[A-Za-z$_][0-9A-Za-z$_]*', }, c = (e, t, n) => { - const r = e.contains.findIndex(e => e.label === t); - if (-1 === r) + const i = e.contains.findIndex(e => e.label === t); + if (-1 === i) throw new Error('can not find mode to replace'); - e.contains.splice(r, 1, n); + e.contains.splice(i, 1, n); }, l = (function(e) { - const s = t, + const a = t, A = '<>', c = '', l = { @@ -38054,9 +37603,9 @@ end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (e, t) => { const n = e[0].length + e.index, - r = e.input[n]; - '<' !== r - ? '>' === r && + i = e.input[n]; + '<' !== i + ? '>' === i && (((e, {after: t}) => { const n = ' { + 25136: e => { e.exports = function(e) { return { name: 'Vala', @@ -38461,33 +38010,33 @@ }; }; }, - 3935: e => { + 32122: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { const t = /\d{1,2}\/\d{1,2}\/\d{4}/, - i = /\d{4}-\d{1,2}-\d{1,2}/, + r = /\d{4}-\d{1,2}-\d{1,2}/, o = /(\d|1[012])(:\d+){0,2} *(AM|PM)/, - a = /\d{1,2}(:\d{1,2}){1,2}/, - s = { + s = /\d{1,2}(:\d{1,2}){1,2}/, + a = { className: 'literal', variants: [ - {begin: n(/# */, r(i, t), / *#/)}, - {begin: n(/# */, a, / *#/)}, + {begin: n(/# */, i(r, t), / *#/)}, + {begin: n(/# */, s, / *#/)}, {begin: n(/# */, o, / *#/)}, { begin: n( /# */, - r(i, t), + i(r, t), / +/, - r(o, a), + i(o, s), / *#/ ), }, @@ -38528,7 +38077,7 @@ illegal: /\n/, contains: [{begin: /""/}], }, - s, + a, { className: 'number', relevance: 0, @@ -38559,7 +38108,7 @@ }; }; }, - 67493: e => { + 8150: e => { e.exports = function(e) { return { name: 'VBScript in HTML', @@ -38570,14 +38119,14 @@ }; }; }, - 67926: e => { + 64459: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(...e) { return e.map(e => t(e)).join(''); } - function r(...e) { + function i(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { @@ -38605,7 +38154,7 @@ illegal: '//', contains: [ { - begin: n(r(...t), '\\s*\\('), + begin: n(i(...t), '\\s*\\('), relevance: 0, keywords: {built_in: t}, }, @@ -38618,7 +38167,7 @@ }; }; }, - 74952: e => { + 28845: e => { e.exports = function(e) { return { name: 'Verilog', @@ -38672,7 +38221,7 @@ }; }; }, - 60388: e => { + 52186: e => { e.exports = function(e) { return { name: 'VHDL', @@ -38710,7 +38259,7 @@ }; }; }, - 80398: e => { + 73031: e => { e.exports = function(e) { return { name: 'Vim Script', @@ -38758,7 +38307,7 @@ }; }; }, - 14e3: e => { + 37735: e => { e.exports = function(e) { return { name: 'Intel x86 Assembly', @@ -38827,7 +38376,7 @@ }; }; }, - 91170: e => { + 50190: e => { e.exports = function(e) { const t = { $pattern: /[a-zA-Z][a-zA-Z0-9_?]*/, @@ -38843,13 +38392,13 @@ end: '"', illegal: '\\n', }, - r = { + i = { beginKeywords: 'import', end: '$', keywords: t, contains: [n], }, - i = { + r = { className: 'function', begin: /[a-z][^\n]*->/, returnBegin: !0, @@ -38875,8 +38424,8 @@ illegal: '\\n', }, {className: 'string', begin: '<<', end: '>>'}, - i, r, + i, { className: 'number', begin: @@ -38887,30 +38436,30 @@ }; }; }, - 38498: e => { + 89807: e => { function t(e) { return e ? ('string' == typeof e ? e : e.source) : null; } function n(e) { - return r('(?=', e, ')'); + return i('(?=', e, ')'); } - function r(...e) { + function i(...e) { return e.map(e => t(e)).join(''); } - function i(...e) { + function r(...e) { return '(' + e.map(e => t(e)).join('|') + ')'; } e.exports = function(e) { - const t = r( + const t = i( /[A-Z_]/, - r('(', /[A-Z0-9_.-]*:/, ')?'), + i('(', /[A-Z0-9_.-]*:/, ')?'), /[A-Z0-9_.-]*/ ), o = { className: 'symbol', begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/, }, - a = { + s = { begin: /\s/, contains: [ { @@ -38920,7 +38469,7 @@ }, ], }, - s = e.inherit(a, {begin: /\(/, end: /\)/}), + a = e.inherit(s, {begin: /\(/, end: /\)/}), A = e.inherit(e.APOS_STRING_MODE, { className: 'meta-string', }), @@ -38984,10 +38533,10 @@ end: />/, relevance: 10, contains: [ - a, + s, c, A, - s, + a, { begin: /\[/, end: /\]/, @@ -38996,7 +38545,7 @@ className: 'meta', begin: //, - contains: [a, s, c, A], + contains: [s, a, c, A], }, ], }, @@ -39042,7 +38591,7 @@ {className: 'tag', begin: /<>|<\/>/}, { className: 'tag', - begin: r(//, />/, /\s/)))), + begin: i(//, />/, /\s/)))), end: /\/?>/, contains: [ { @@ -39055,7 +38604,7 @@ }, { className: 'tag', - begin: r(/<\//, n(r(t, />/))), + begin: i(/<\//, n(i(t, />/))), contains: [ {className: 'name', begin: t, relevance: 0}, {begin: />/, relevance: 0, endsParent: !0}, @@ -39065,7 +38614,7 @@ }; }; }, - 28662: e => { + 82530: e => { e.exports = function(e) { return { name: 'XQuery', @@ -39177,11 +38726,11 @@ }; }; }, - 62555: e => { + 27678: e => { e.exports = function(e) { var t = 'true false yes no null', n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", - r = { + i = { className: 'string', relevance: 0, variants: [ @@ -39200,7 +38749,7 @@ }, ], }, - i = e.inherit(r, { + r = e.inherit(i, { variants: [ {begin: /'/, end: /'/}, {begin: /"/, end: /"/}, @@ -39212,24 +38761,24 @@ begin: '\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b', }, - a = { + s = { end: ',', endsWithParent: !0, excludeEnd: !0, keywords: t, relevance: 0, }, - s = { + a = { begin: /\{/, end: /\}/, - contains: [a], + contains: [s], illegal: '\\n', relevance: 0, }, A = { begin: '\\[', end: '\\]', - contains: [a], + contains: [s], illegal: '\\n', relevance: 0, }, @@ -39285,15 +38834,15 @@ begin: e.C_NUMBER_RE + '\\b', relevance: 0, }, - s, + a, A, - r, + i, ], l = [...c]; return ( l.pop(), - l.push(i), - (a.contains = l), + l.push(r), + (s.contains = l), { name: 'YAML', case_insensitive: !0, @@ -39303,7 +38852,7 @@ ); }; }, - 17648: e => { + 10634: e => { e.exports = function(e) { const t = { className: 'string', @@ -39314,13 +38863,13 @@ ], }, n = e.UNDERSCORE_TITLE_MODE, - r = {variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]}, - i = + i = {variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]}, + r = 'namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined'; return { name: 'Zephir', aliases: ['zep'], - keywords: i, + keywords: r, contains: [ e.C_LINE_COMMENT_MODE, e.COMMENT(/\/\*/, /\*\//, { @@ -39349,12 +38898,12 @@ className: 'params', begin: /\(/, end: /\)/, - keywords: i, + keywords: r, contains: [ 'self', e.C_BLOCK_COMMENT_MODE, t, - r, + i, ], }, ], @@ -39379,14 +38928,14 @@ {beginKeywords: 'use', end: /;/, contains: [n]}, {begin: /=>/}, t, - r, + i, ], }; }; }, - 78234: (e, t, n) => { + 92059: (e, t, n) => { 'use strict'; - var r = n(96464); + var i = n(11228); e.exports = function(e, t) { var n, l, @@ -39404,13 +38953,13 @@ B = !1 !== E.delimiterStart, w = !1 !== E.delimiterEnd, b = (E.align || []).concat(), - v = !1 !== E.alignDelimiters, - M = [], + M = !1 !== E.alignDelimiters, + v = [], N = E.stringLength || A, S = -1, Q = e.length, - F = [], x = [], + F = [], D = [], T = [], Y = [], @@ -39428,13 +38977,13 @@ ) (_ = n[l]), (h = null == _ ? '' : String(_)), - !0 === v && + !0 === M && ((d = N(h)), (T[l] = d), (void 0 === (u = Y[l]) || d > u) && (Y[l] = d)), D.push(h); - (F[S] = D), (x[S] = T); + (x[S] = D), (F[S] = T); } var _; if ( @@ -39442,71 +38991,71 @@ (g = R), 'object' == typeof b && 'length' in b) ) - for (; ++l < g; ) M[l] = c(b[l]); - else for (f = c(b); ++l < g; ) M[l] = f; + for (; ++l < g; ) v[l] = c(b[l]); + else for (f = c(b); ++l < g; ) v[l] = f; (l = -1), (g = R), (D = []), (T = []); for (; ++l < g; ) - (f = M[l]), + (f = v[l]), (p = ''), (m = ''), 108 === f - ? (p = a) - : f === s - ? (m = a) - : 99 === f && ((p = a), (m = a)), - (d = v + ? (p = s) + : f === a + ? (m = s) + : 99 === f && ((p = s), (m = s)), + (d = M ? Math.max(1, Y[l] - p.length - m.length) : 1), - (h = p + r('-', d) + m), - !0 === v && + (h = p + i('-', d) + m), + !0 === M && ((d = p.length + d + m.length) > Y[l] && (Y[l] = d), (T[l] = d)), (D[l] = h); - F.splice(1, 0, D), - x.splice(1, 0, T), + x.splice(1, 0, D), + F.splice(1, 0, T), (S = -1), - (Q = F.length), + (Q = x.length), (C = []); for (; ++S < Q; ) { for ( - D = F[S], T = x[S], l = -1, g = R, I = []; + D = x[S], T = F[S], l = -1, g = R, I = []; ++l < g; ) (h = D[l] || ''), (p = ''), (m = ''), - !0 === v && + !0 === M && ((d = Y[l] - (T[l] || 0)), - (f = M[l]) === s - ? (p = r(o, d)) + (f = v[l]) === a + ? (p = i(o, d)) : 99 === f ? d % 2 == 0 - ? ((p = r(o, d / 2)), (m = p)) - : ((p = r(o, d / 2 + 0.5)), - (m = r(o, d / 2 - 0.5))) - : (m = r(o, d))), + ? ((p = i(o, d / 2)), (m = p)) + : ((p = i(o, d / 2 + 0.5)), + (m = i(o, d / 2 - 0.5))) + : (m = i(o, d))), !0 === B && 0 === l && I.push('|'), !0 !== y || - (!1 === v && '' === h) || + (!1 === M && '' === h) || (!0 !== B && 0 === l) || I.push(o), - !0 === v && I.push(p), + !0 === M && I.push(p), I.push(h), - !0 === v && I.push(m), + !0 === M && I.push(m), !0 === y && I.push(o), (!0 !== w && l === g - 1) || I.push('|'); (I = I.join('')), - !1 === w && (I = I.replace(i, '')), + !1 === w && (I = I.replace(r, '')), C.push(I); } return C.join('\n'); }; - var i = / +$/, + var r = / +$/, o = ' ', - a = ':', - s = 114; + s = ':', + a = 114; function A(e) { return e.length; } @@ -39514,28 +39063,67 @@ var t = 'string' == typeof e ? e.charCodeAt(0) : 0; return 76 === t || 108 === t ? 108 - : 82 === t || t === s - ? s + : 82 === t || t === a + ? a : 67 === t || 99 === t ? 99 : 0; } }, - 52962: (e, t, n) => { + 13273: e => { 'use strict'; - e.exports = function(e, t, n, r) { - var i, o; + e.exports = Math.abs; + }, + 88968: e => { + 'use strict'; + e.exports = Math.floor; + }, + 76996: e => { + 'use strict'; + e.exports = + Number.isNaN || + function(e) { + return e != e; + }; + }, + 29479: e => { + 'use strict'; + e.exports = Math.max; + }, + 89316: e => { + 'use strict'; + e.exports = Math.min; + }, + 7459: e => { + 'use strict'; + e.exports = Math.pow; + }, + 22123: e => { + 'use strict'; + e.exports = Math.round; + }, + 15501: (e, t, n) => { + 'use strict'; + var i = n(76996); + e.exports = function(e) { + return i(e) || 0 === e ? e : e < 0 ? -1 : 1; + }; + }, + 85242: (e, t, n) => { + 'use strict'; + e.exports = function(e, t, n, i) { + var r, o; 'string' == typeof t || (t && 'function' == typeof t.exec) ? (o = [[t, n]]) - : ((o = t), (r = n)); + : ((o = t), (i = n)); return ( - s( + a( e, - (i = r || {}), + (r = i || {}), (function e(t) { var n = t[0]; - return r; - function r(r, o) { + return i; + function i(i, o) { var A, c, l, @@ -39544,9 +39132,9 @@ d = n[1], h = [], C = 0, - I = o.children.indexOf(r); + I = o.children.indexOf(i); for ( - u.lastIndex = 0, c = u.exec(r.value); + u.lastIndex = 0, c = u.exec(i.value); c && ((A = c.index), !1 !== @@ -39560,7 +39148,7 @@ (C !== A && h.push({ type: 'text', - value: r.value.slice(C, A), + value: i.value.slice(C, A), }), 'string' == typeof g && g.length > 0 && @@ -39570,17 +39158,17 @@ u.global); ) - c = u.exec(r.value); + c = u.exec(i.value); if ( (void 0 === A - ? ((h = [r]), I--) - : (C < r.value.length && + ? ((h = [i]), I--) + : (C < i.value.length && h.push({ type: 'text', - value: r.value.slice(C), + value: i.value.slice(C), }), h.unshift(I, 1), - a.apply(o.children, h)), + s.apply(o.children, h)), t.length > 1) ) for ( @@ -39588,51 +39176,51 @@ ++A < h.length; ) - 'text' === (r = h[A]).type - ? l(r, o) - : s(r, i, l); + 'text' === (i = h[A]).type + ? l(i, o) + : a(i, r, l); return I + h.length + 1; } })( (function(e) { var t, n, - r = []; + i = []; if ('object' != typeof e) throw new Error( 'Expected array or object as schema' ); if ('length' in e) for (n = -1; ++n < e.length; ) - r.push([A(e[n][0]), c(e[n][1])]); - else for (t in e) r.push([A(t), c(e[t])]); - return r; + i.push([A(e[n][0]), c(e[n][1])]); + else for (t in e) i.push([A(t), c(e[t])]); + return i; })(o) ) ), e ); }; - var r = n(7216), - i = n(99330), - o = n(31719), - a = [].splice; - function s(e, t, n) { - var o = i(t.ignore || []); + var i = n(28434), + r = n(44354), + o = n(19703), + s = [].splice; + function a(e, t, n) { + var o = r(t.ignore || []); return ( - r(e, 'text', function(e, t) { - var r, - i, - a = -1; - for (; ++a < t.length; ) { + i(e, 'text', function(e, t) { + var i, + r, + s = -1; + for (; ++s < t.length; ) { if ( - ((r = t[a]), - o(r, i ? i.children.indexOf(r) : void 0, i)) + ((i = t[s]), + o(i, r ? r.children.indexOf(i) : void 0, r)) ) return; - i = r; + r = i; } - return n(e, i); + return n(e, r); }), [] ); @@ -39648,17 +39236,7 @@ }; } }, - 31719: e => { - 'use strict'; - e.exports = e => { - if ('string' != typeof e) - throw new TypeError('Expected a string'); - return e - .replace(/[|\\{}()[\]^$+*?.]/g, '\\$&') - .replace(/-/g, '\\x2d'); - }; - }, - 99330: e => { + 44354: e => { 'use strict'; function t(e) { if (null == e) return n; @@ -39673,10 +39251,10 @@ return 'length' in e ? (function(e) { var n = [], - r = -1; - for (; ++r < e.length; ) n[r] = t(e[r]); - return i; - function i() { + i = -1; + for (; ++i < e.length; ) n[i] = t(e[i]); + return r; + function r() { for (var e = -1; ++e < n.length; ) if (n[e].apply(this, arguments)) return !0; @@ -39701,29 +39279,29 @@ } e.exports = t; }, - 20076: e => { + 73758: e => { e.exports = function(e) { return e; }; }, - 7216: (e, t, n) => { + 28434: (e, t, n) => { 'use strict'; e.exports = A; - var r = n(99330), - i = n(20076), + var i = n(44354), + r = n(73758), o = !0, - a = 'skip', - s = !1; + s = 'skip', + a = !1; function A(e, t, n, A) { var c, l; 'function' == typeof t && 'function' != typeof n && ((A = n), (n = t), (t = null)), - (l = r(t)), + (l = i(t)), (c = A ? -1 : 1), - (function e(r, g, u) { + (function e(i, g, u) { var d, - h = 'object' == typeof r && null !== r ? r : {}; + h = 'object' == typeof i && null !== i ? i : {}; 'string' == typeof h.type && ((d = 'string' == typeof h.tagName @@ -39733,16 +39311,16 @@ : void 0), (C.displayName = 'node (' + - i(h.type + (d ? '<' + d + '>' : '')) + + r(h.type + (d ? '<' + d + '>' : '')) + ')')); return C; function C() { - var i, + var r, d, - h = u.concat(r), + h = u.concat(i), C = []; if ( - (!t || l(r, g, u[u.length - 1] || null)) && + (!t || l(i, g, u[u.length - 1] || null)) && ((C = (function(e) { if ( null !== e && @@ -39752,43 +39330,43 @@ return e; if ('number' == typeof e) return [o, e]; return [e]; - })(n(r, u))), - C[0] === s) + })(n(i, u))), + C[0] === a) ) return C; - if (r.children && C[0] !== a) + if (i.children && C[0] !== s) for ( - d = (A ? r.children.length : -1) + c; - d > -1 && d < r.children.length; + d = (A ? i.children.length : -1) + c; + d > -1 && d < i.children.length; ) { if ( - ((i = e(r.children[d], d, h)()), - i[0] === s) + ((r = e(i.children[d], d, h)()), + r[0] === a) ) - return i; + return r; d = - 'number' == typeof i[1] - ? i[1] + 'number' == typeof r[1] + ? r[1] : d + c; } return C; } })(e, null, [])(); } - (A.CONTINUE = true), (A.SKIP = a), (A.EXIT = s); + (A.CONTINUE = true), (A.SKIP = s), (A.EXIT = a); }, - 57824: (e, t, n) => { - var r = n(30932), - i = n(52962), - o = n(27938), - a = n(29925); - function s(e) { + 56459: (e, t, n) => { + var i = n(24206), + r = n(85242), + o = n(37456), + s = n(15743); + function a(e) { this.config.enter.autolinkProtocol.call(this, e); } - function A(e, t, n, i, o) { - var a, - s, + function A(e, t, n, r, o) { + var s, + a, A = ''; return ( !!l(o) && @@ -39808,40 +39386,40 @@ return !1; return !0; })(n) && - !!(a = (function(e) { + !!(s = (function(e) { var t, n, - i, + r, o = /[!"&'),.:;<>?\]}]+$/.exec(e); if (o) for ( e = e.slice(0, o.index), t = (o = o[0]).indexOf(')'), - n = r(e, '('), - i = r(e, ')'); - -1 !== t && n > i; + n = i(e, '('), + r = i(e, ')'); + -1 !== t && n > r; ) (e += o.slice(0, t + 1)), (t = (o = o.slice(t + 1)).indexOf( ')' )), - i++; + r++; return [e, o]; - })(n + i))[0] && - ((s = { + })(n + r))[0] && + ((a = { type: 'link', title: null, - url: A + t + a[0], - children: [{type: 'text', value: t + a[0]}], + url: A + t + s[0], + children: [{type: 'text', value: t + s[0]}], }), - a[1] && (s = [s, {type: 'text', value: a[1]}]), - s)) + s[1] && (a = [a, {type: 'text', value: s[1]}]), + a)) ); } - function c(e, t, n, r) { + function c(e, t, n, i) { return ( - !(!l(r, !0) || /[_-]$/.test(n)) && { + !(!l(i, !0) || /[_-]$/.test(n)) && { type: 'link', title: null, url: 'mailto:' + t + '@' + n, @@ -39851,11 +39429,11 @@ } function l(e, t) { var n = e.input.charCodeAt(e.index - 1); - return (n != n || a(n) || o(n)) && (!t || 47 !== n); + return (n != n || s(n) || o(n)) && (!t || 47 !== n); } (t.transforms = [ function(e) { - i( + r( e, [ [ @@ -39880,9 +39458,9 @@ e ); }, - literalAutolinkEmail: s, - literalAutolinkHttp: s, - literalAutolinkWww: s, + literalAutolinkEmail: a, + literalAutolinkHttp: a, + literalAutolinkWww: a, }), (t.exit = { literalAutolink: function(e) { @@ -39901,63 +39479,63 @@ }, }); }, - 27938: (e, t, n) => { + 37456: (e, t, n) => { 'use strict'; - var r = n(38412), - i = n(31581)(r); - e.exports = i; + var i = n(32634), + r = n(47281)(i); + e.exports = r; }, - 29925: (e, t, n) => { + 15743: (e, t, n) => { 'use strict'; - var r = n(31581)(/\s/); - e.exports = r; + var i = n(47281)(/\s/); + e.exports = i; }, - 66305: e => { + 2021: e => { 'use strict'; var t = String.fromCharCode; e.exports = t; }, - 38412: e => { + 32634: e => { 'use strict'; e.exports = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/; }, - 31581: (e, t, n) => { + 47281: (e, t, n) => { 'use strict'; - var r = n(66305); + var i = n(2021); e.exports = function(e) { return function(t) { - return e.test(r(t)); + return e.test(i(t)); }; }; }, - 45574: (e, t) => { + 31072: (e, t) => { var n = 'phrasing', - r = ['autolink', 'link', 'image', 'label']; + i = ['autolink', 'link', 'image', 'label']; t.unsafe = [ { character: '@', before: '[+\\-.\\w]', after: '[\\-.\\w]', inConstruct: n, - notInConstruct: r, + notInConstruct: i, }, { character: '.', before: '[Ww]', after: '[\\-.\\w]', inConstruct: n, - notInConstruct: r, + notInConstruct: i, }, { character: ':', before: '[ps]', after: '\\/', inConstruct: n, - notInConstruct: r, + notInConstruct: i, }, ]; }, - 28740: (e, t) => { + 13513: (e, t) => { (t.canContainEols = ['delete']), (t.enter = { strikethrough: function(e) { @@ -39970,27 +39548,27 @@ }, }); }, - 9888: (e, t, n) => { - var r = n(25362); - function i(e, t, n) { - var i = n.enter('emphasis'), - o = r(e, n, {before: '~', after: '~'}); - return i(), '~~' + o + '~~'; + 75220: (e, t, n) => { + var i = n(30303); + function r(e, t, n) { + var r = n.enter('emphasis'), + o = i(e, n, {before: '~', after: '~'}); + return r(), '~~' + o + '~~'; } (t.unsafe = [{character: '~', inConstruct: 'phrasing'}]), - (t.handlers = {delete: i}), - (i.peek = function() { + (t.handlers = {delete: r}), + (r.peek = function() { return '~'; }); }, - 4865: (e, t) => { + 73477: (e, t) => { function n(e) { this.exit(e); } - function r(e) { + function i(e) { this.enter({type: 'tableCell', children: []}, e); } - function i(e, t) { + function r(e, t) { return '|' === t ? t : e; } (t.enter = { @@ -40001,8 +39579,8 @@ ), this.setData('inTable', !0); }, - tableData: r, - tableHeader: r, + tableData: i, + tableHeader: i, tableRow: function(e) { this.enter({type: 'tableRow', children: []}, e); }, @@ -40011,7 +39589,7 @@ codeText: function(e) { var t = this.resume(); this.getData('inTable') && - (t = t.replace(/\\([\\|])/g, i)); + (t = t.replace(/\\([\\|])/g, r)); (this.stack[this.stack.length - 1].value = t), this.exit(e); }, @@ -40023,15 +39601,15 @@ tableRow: n, }); }, - 63046: (e, t, n) => { - var r = n(25362), - i = n(11595), - o = n(78234); + 11142: (e, t, n) => { + var i = n(30303), + r = n(73638), + o = n(92059); e.exports = function(e) { var t = e || {}, n = t.tableCellPadding, - a = t.tablePipeAlign, - s = t.stringLength, + s = t.tablePipeAlign, + a = t.stringLength, A = n ? ' ' : '|'; return { unsafe: [ @@ -40047,58 +39625,58 @@ return l( (function(e, t) { var n = e.children, - r = -1, - i = n.length, + i = -1, + r = n.length, o = [], - a = t.enter('table'); - for (; ++r < i; ) o[r] = g(n[r], t); - return a(), o; + s = t.enter('table'); + for (; ++i < r; ) o[i] = g(n[i], t); + return s(), o; })(e, n), e.align ); }, tableRow: function(e, t, n) { - var r = l([g(e, n)]); - return r.slice(0, r.indexOf('\n')); + var i = l([g(e, n)]); + return i.slice(0, i.indexOf('\n')); }, tableCell: c, inlineCode: function(e, t, n) { - var r = i(e, t, n); + var i = r(e, t, n); -1 !== n.stack.indexOf('tableCell') && - (r = r.replace(/\|/g, '\\$&')); - return r; + (i = i.replace(/\|/g, '\\$&')); + return i; }, }, }; function c(e, t, n) { - var i = n.enter('tableCell'), - o = r(e, n, {before: A, after: A}); - return i(), o; + var r = n.enter('tableCell'), + o = i(e, n, {before: A, after: A}); + return r(), o; } function l(e, t) { return o(e, { align: t, - alignDelimiters: a, + alignDelimiters: s, padding: n, - stringLength: s, + stringLength: a, }); } function g(e, t) { for ( var n = e.children, - r = -1, - i = n.length, + i = -1, + r = n.length, o = [], - a = t.enter('tableRow'); - ++r < i; + s = t.enter('tableRow'); + ++i < r; ) - o[r] = c(n[r], 0, t); - return a(), o; + o[i] = c(n[i], 0, t); + return s(), o; } }; }, - 29511: (e, t) => { + 61903: (e, t) => { function n(e) { this.stack[this.stack.length - 2].checked = 'taskListCheckValueChecked' === e.type; @@ -40109,10 +39687,10 @@ paragraph: function(e) { var t, n = this.stack[this.stack.length - 2], - r = this.stack[this.stack.length - 1], - i = n.children, - o = r.children[0], - a = -1; + i = this.stack[this.stack.length - 1], + r = n.children, + o = i.children[0], + s = -1; if ( n && 'listItem' === n.type && @@ -40120,18 +39698,18 @@ o && 'text' === o.type ) { - for (; ++a < i.length; ) - if ('paragraph' === i[a].type) { - t = i[a]; + for (; ++s < r.length; ) + if ('paragraph' === r[s].type) { + t = r[s]; break; } - t === r && + t === i && ((o.value = o.value.slice(1)), 0 === o.value.length - ? r.children.shift() + ? i.children.shift() : (o.position.start.column++, o.position.start.offset++, - (r.position.start = Object.assign( + (i.position.start = Object.assign( {}, o.position.start )))); @@ -40140,17 +39718,17 @@ }, }; }, - 94625: (e, t, n) => { - var r = n(48618); + 573: (e, t, n) => { + var i = n(82443); (t.unsafe = [{atBreak: !0, character: '-', after: '[:|-]'}]), (t.handlers = { listItem: function(e, t, n) { - var i = r(e, t, n), + var r = i(e, t, n), o = e.children[0]; 'boolean' == typeof e.checked && o && 'paragraph' === o.type && - (i = i.replace( + (r = r.replace( /^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, function(t) { return ( @@ -40161,43 +39739,43 @@ ); } )); - return i; + return r; }, }); }, - 10438: (e, t, n) => { - var r = n(57824), - i = n(28740), - o = n(4865), - a = n(29511), - s = {}.hasOwnProperty; + 55504: (e, t, n) => { + var i = n(56459), + r = n(13513), + o = n(73477), + s = n(61903), + a = {}.hasOwnProperty; function A(e, t) { - var n, r, i; + var n, i, r; for (n in t) - (r = s.call(e, n) ? e[n] : (e[n] = {})), - (i = t[n]), + (i = a.call(e, n) ? e[n] : (e[n] = {})), + (r = t[n]), 'canContainEols' === n || 'transforms' === n - ? (e[n] = [].concat(r, i)) - : Object.assign(r, i); + ? (e[n] = [].concat(i, r)) + : Object.assign(i, r); } e.exports = (function(e) { var t = {transforms: [], canContainEols: []}, n = e.length, - r = -1; - for (; ++r < n; ) A(t, e[r]); + i = -1; + for (; ++i < n; ) A(t, e[i]); return t; - })([r, i, o, a]); - }, - 48135: (e, t, n) => { - var r = n(45574), - i = n(9888), - o = n(63046), - a = n(94625), - s = n(2564); + })([i, r, o, s]); + }, + 67298: (e, t, n) => { + var i = n(31072), + r = n(75220), + o = n(11142), + s = n(573), + a = n(26918); e.exports = function(e) { - var t = s( + var t = a( {handlers: {}, join: [], unsafe: [], options: {}}, - {extensions: [r, i, o(e), a]} + {extensions: [i, r, o(e), s]} ); return Object.assign(t.options, { handlers: t.handlers, @@ -40206,7 +39784,7 @@ }); }; }, - 54550: (e, t) => { + 85689: (e, t) => { 'use strict'; function n(e) { this.config.enter.data.call(this, e), @@ -40279,7 +39857,7 @@ mathTextData: n, }); }, - 74749: (e, t, n) => { + 72889: (e, t, n) => { 'use strict'; (t.unsafe = [ {character: '\r', inConstruct: ['mathFlowMeta']}, @@ -40289,74 +39867,74 @@ ]), (t.handlers = { math: function(e, t, n) { - var a, - s = e.value || '', - A = r('$', Math.max(i(s, '$') + 1, 2)), + var s, + a = e.value || '', + A = i('$', Math.max(r(a, '$') + 1, 2)), c = n.enter('mathFlow'), l = A; e.meta && - ((a = n.enter('mathFlowMeta')), + ((s = n.enter('mathFlowMeta')), (l += o(n, e.meta, { before: '$', after: ' ', encode: ['$'], })), - a()); - (l += '\n'), s && (l += s + '\n'); + s()); + (l += '\n'), a && (l += a + '\n'); return (l += A), c(), l; }, - inlineMath: a, + inlineMath: s, }), - (a.peek = function() { + (s.peek = function() { return '$'; }); - var r = n(96464), - i = n(52491), - o = n(51113); - function a(e) { + var i = n(11228), + r = n(68951), + o = n(46197); + function s(e) { for ( - var t, n = e.value || '', i = 1, o = ''; - new RegExp('(^|[^$])' + r('\\$', i) + '([^$]|$)').test( + var t, n = e.value || '', r = 1, o = ''; + new RegExp('(^|[^$])' + i('\\$', r) + '([^$]|$)').test( n ); ) - i++; + r++; return ( /[^ \r\n]/.test(n) && (/[ \r\n$]/.test(n.charAt(0)) || /[ \r\n$]/.test(n.charAt(n.length - 1))) && (o = ' '), - (t = r('$', i)) + o + n + o + t + (t = i('$', r)) + o + n + o + t ); } }, - 2564: e => { + 26918: e => { e.exports = function e(t, n) { - var r, - i = -1; + var i, + r = -1; if (n.extensions) - for (; ++i < n.extensions.length; ) - e(t, n.extensions[i]); - for (r in n) - 'extensions' === r || - ('unsafe' === r || 'join' === r - ? (t[r] = t[r].concat(n[r] || [])) - : 'handlers' === r - ? (t[r] = Object.assign(t[r], n[r] || {})) - : (t.options[r] = n[r])); + for (; ++r < n.extensions.length; ) + e(t, n.extensions[r]); + for (i in n) + 'extensions' === i || + ('unsafe' === i || 'join' === i + ? (t[i] = t[i].concat(n[i] || [])) + : 'handlers' === i + ? (t[i] = Object.assign(t[i], n[i] || {})) + : (t.options[i] = n[i])); return t; }; }, - 11595: (e, t, n) => { - (e.exports = i), - (i.peek = function() { + 73638: (e, t, n) => { + (e.exports = r), + (r.peek = function() { return '`'; }); - var r = n(84553); - function i(e, t, n) { + var i = n(6350); + function r(e, t, n) { for ( - var i, o, a, s, A = e.value || '', c = '`', l = -1; + var r, o, s, a, A = e.value || '', c = '`', l = -1; new RegExp('(^|[^`])' + c + '([^`]|$)').test(A); ) @@ -40369,25 +39947,25 @@ ++l < n.unsafe.length; ) - if ((i = n.unsafe[l]).atBreak) - for (o = r(i); (a = o.exec(A)); ) - (s = a.index), - 10 === A.charCodeAt(s) && - 13 === A.charCodeAt(s - 1) && - s--, + if ((r = n.unsafe[l]).atBreak) + for (o = i(r); (s = o.exec(A)); ) + (a = s.index), + 10 === A.charCodeAt(a) && + 13 === A.charCodeAt(a - 1) && + a--, (A = - A.slice(0, s) + + A.slice(0, a) + ' ' + - A.slice(a.index + 1)); + A.slice(s.index + 1)); return c + A + c; } }, - 48618: (e, t, n) => { + 82443: (e, t, n) => { e.exports = function(e, t, n) { var A, c, l, - g = i(n), + g = r(n), u = o(n); t && t.ordered && @@ -40403,21 +39981,21 @@ (A = 4 * Math.ceil(A / 4)); return ( (l = n.enter('listItem')), - (c = s(a(e, n), function(e, t, n) { - if (t) return (n ? '' : r(' ', A)) + e; - return (n ? g : g + r(' ', A - g.length)) + e; + (c = a(s(e, n), function(e, t, n) { + if (t) return (n ? '' : i(' ', A)) + e; + return (n ? g : g + i(' ', A - g.length)) + e; })), l(), c ); }; - var r = n(96464), - i = n(89400), - o = n(56636), - a = n(93493), - s = n(92670); + var i = n(11228), + r = n(32235), + o = n(71043), + s = n(86874), + a = n(12618); }, - 89400: e => { + 32235: e => { e.exports = function(e) { var t = e.options.bullet || '*'; if ('*' !== t && '+' !== t && '-' !== t) @@ -40429,7 +40007,7 @@ return t; }; }, - 56636: e => { + 71043: e => { e.exports = function(e) { var t = e.options.listItemIndent || 'tab'; if (1 === t || '1' === t) return 'one'; @@ -40442,90 +40020,90 @@ return t; }; }, - 93493: (e, t, n) => { + 86874: (e, t, n) => { e.exports = function(e, t) { var n, - i = e.children || [], + r = e.children || [], o = [], - a = -1; - for (; ++a < i.length; ) - (n = i[a]), + s = -1; + for (; ++s < r.length; ) + (n = r[s]), o.push( t.handle(n, e, t, {before: '\n', after: '\n'}) ), - a + 1 < i.length && o.push(s(n, i[a + 1])); + s + 1 < r.length && o.push(a(n, r[s + 1])); return o.join(''); - function s(n, i) { + function a(n, r) { for ( - var o, a = -1; - ++a < t.join.length && - !0 !== (o = t.join[a](n, i, e, t)) && + var o, s = -1; + ++s < t.join.length && + !0 !== (o = t.join[s](n, r, e, t)) && 1 !== o; ) { if ('number' == typeof o) - return r('\n', 1 + Number(o)); + return i('\n', 1 + Number(o)); if (!1 === o) return '\n\n\x3c!----\x3e\n\n'; } return '\n\n'; } }; - var r = n(96464); + var i = n(11228); }, - 25362: e => { + 30303: e => { e.exports = function(e, t, n) { - var r, - i, + var i, + r, o, - a = e.children || [], - s = [], + s = e.children || [], + a = [], A = -1, c = n.before; - for (; ++A < a.length; ) - (o = a[A]), - A + 1 < a.length - ? ((i = t.handle.handlers[a[A + 1].type]) && - i.peek && - (i = i.peek), - (r = i - ? i(a[A + 1], e, t, { + for (; ++A < s.length; ) + (o = s[A]), + A + 1 < s.length + ? ((r = t.handle.handlers[s[A + 1].type]) && + r.peek && + (r = r.peek), + (i = r + ? r(s[A + 1], e, t, { before: '', after: '', }).charAt(0) : '')) - : (r = n.after), - s.length > 0 && + : (i = n.after), + a.length > 0 && ('\r' === c || '\n' === c) && 'html' === o.type && - ((s[s.length - 1] = s[s.length - 1].replace( + ((a[a.length - 1] = a[a.length - 1].replace( /(\r?\n|\r)$/, ' ' )), (c = ' ')), - s.push(t.handle(o, e, t, {before: c, after: r})), - (c = s[s.length - 1].slice(-1)); - return s.join(''); + a.push(t.handle(o, e, t, {before: c, after: i})), + (c = a[a.length - 1].slice(-1)); + return a.join(''); }; }, - 92670: e => { + 12618: e => { e.exports = function(e, n) { - var r, - i = [], + var i, + r = [], o = 0, - a = 0; - for (; (r = t.exec(e)); ) - s(e.slice(o, r.index)), - i.push(r[0]), - (o = r.index + r[0].length), - a++; - return s(e.slice(o)), i.join(''); - function s(e) { - i.push(n(e, a, !e)); + s = 0; + for (; (i = t.exec(e)); ) + a(e.slice(o, i.index)), + r.push(i[0]), + (o = i.index + i[0].length), + s++; + return a(e.slice(o)), r.join(''); + function a(e) { + r.push(n(e, s, !e)); } }; var t = /\r?\n|\r/g; }, - 84553: e => { + 6350: e => { e.exports = function(e) { var t, n; e._compiled || @@ -40544,25 +40122,25 @@ return e._compiled; }; }, - 76112: e => { + 50688: e => { function t(e, t, n) { - var r; + var i; if (!t) return n; for ( - 'string' == typeof t && (t = [t]), r = -1; - ++r < t.length; + 'string' == typeof t && (t = [t]), i = -1; + ++i < t.length; ) - if (-1 !== e.indexOf(t[r])) return !0; + if (-1 !== e.indexOf(t[i])) return !0; return !1; } e.exports = function(e, n) { return t(e, n.inConstruct, !0) && !t(e, n.notInConstruct); }; }, - 51113: (e, t, n) => { + 46197: (e, t, n) => { e.exports = function(e, t, n) { - var s, + var a, A, c, l, @@ -40576,16 +40154,16 @@ m = {}, f = -1; for (; ++f < e.unsafe.length; ) - if (((l = e.unsafe[f]), i(e.stack, l))) - for (g = r(l); (u = g.exec(C)); ) - (s = 'before' in l || l.atBreak), + if (((l = e.unsafe[f]), r(e.stack, l))) + for (g = i(l); (u = g.exec(C)); ) + (a = 'before' in l || l.atBreak), (A = 'after' in l), - (c = u.index + (s ? u[1].length : 0)), + (c = u.index + (a ? u[1].length : 0)), -1 === I.indexOf(c) ? (I.push(c), - (m[c] = {before: s, after: A})) + (m[c] = {before: a, after: A})) : (m[c].before && - !s && + !a && (m[c].before = !1), m[c].after && !A && @@ -40602,7 +40180,7 @@ m[c].after && !m[c + 1].before && !m[c + 1].after) || - (d !== c && p.push(a(C.slice(d, c), '\\')), + (d !== c && p.push(s(C.slice(d, c), '\\')), (d = c), !/[!-/:-@[-`{-~]/.test(C.charAt(c)) || (n.encode && -1 !== n.encode.indexOf(C.charAt(c))) @@ -40615,138 +40193,138 @@ ), d++) : p.push('\\')); - return p.push(a(C.slice(d, h), n.after)), p.join(''); + return p.push(s(C.slice(d, h), n.after)), p.join(''); }; - var r = n(84553), - i = n(76112); + var i = n(6350), + r = n(50688); function o(e, t) { return e - t; } - function a(e, t) { + function s(e, t) { for ( var n, - r = /\\(?=[!-/:-@[-`{-~])/g, - i = [], + i = /\\(?=[!-/:-@[-`{-~])/g, + r = [], o = [], - a = -1, - s = 0, + s = -1, + a = 0, A = e + t; - (n = r.exec(A)); + (n = i.exec(A)); ) - i.push(n.index); - for (; ++a < i.length; ) - s !== i[a] && o.push(e.slice(s, i[a])), + r.push(n.index); + for (; ++s < r.length; ) + a !== r[s] && o.push(e.slice(a, r[s])), o.push('\\'), - (s = i[a]); - return o.push(e.slice(s)), o.join(''); + (a = r[s]); + return o.push(e.slice(a)), o.join(''); } }, - 57539: (e, t, n) => { - e.exports = n(62346); + 63280: (e, t, n) => { + e.exports = n(75217); }, - 51643: (e, t, n) => { + 6987: (e, t, n) => { 'use strict'; - var r = n(25446)(/[A-Za-z]/); - e.exports = r; + var i = n(65733)(/[A-Za-z]/); + e.exports = i; }, - 98968: (e, t, n) => { + 47689: (e, t, n) => { 'use strict'; - var r = n(25446)(/[\dA-Za-z]/); - e.exports = r; + var i = n(65733)(/[\dA-Za-z]/); + e.exports = i; }, - 23322: e => { + 12203: e => { 'use strict'; e.exports = function(e) { return e < 32 || 127 === e; }; }, - 64155: e => { + 21323: e => { 'use strict'; e.exports = function(e) { return e < -2; }; }, - 7824: (e, t, n) => { + 74111: (e, t, n) => { 'use strict'; - var r = n(23922), - i = n(25446)(r); - e.exports = i; + var i = n(72605), + r = n(65733)(i); + e.exports = r; }, - 87066: (e, t, n) => { + 52402: (e, t, n) => { 'use strict'; - var r = n(25446)(/\s/); - e.exports = r; + var i = n(65733)(/\s/); + e.exports = i; }, - 78105: e => { + 24481: e => { 'use strict'; var t = String.fromCharCode; e.exports = t; }, - 23922: e => { + 72605: e => { 'use strict'; e.exports = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/; }, - 25446: (e, t, n) => { + 65733: (e, t, n) => { 'use strict'; - var r = n(78105); + var i = n(24481); e.exports = function(e) { return function(t) { - return e.test(r(t)); + return e.test(i(t)); }; }; }, - 62346: (e, t, n) => { - var r = n(51643), - i = n(98968), - o = n(23322), - a = n(64155), - s = n(7824), - A = n(87066), + 75217: (e, t, n) => { + var i = n(6987), + r = n(47689), + o = n(12203), + s = n(21323), + a = n(74111), + A = n(52402), c = { tokenize: function(e, t, n) { return function(t) { - return e.consume(t), r; + return e.consume(t), i; }; - function r(t) { + function i(t) { return 87 === t || t - 32 == 87 - ? (e.consume(t), i) + ? (e.consume(t), r) : n(t); } - function i(t) { + function r(t) { return 87 === t || t - 32 == 87 ? (e.consume(t), o) : n(t); } function o(t) { - return 46 === t ? (e.consume(t), s) : n(t); + return 46 === t ? (e.consume(t), a) : n(t); } - function s(e) { - return null === e || a(e) ? n(e) : t(e); + function a(e) { + return null === e || s(e) ? n(e) : t(e); } }, partial: !0, }, l = { tokenize: function(e, t, n) { - var r, i; - return a; - function a(t) { + var i, r; + return s; + function s(t) { return 38 === t ? e.check(d, l, c)(t) : 46 === t || 95 === t ? e.check(u, l, c)(t) - : o(t) || A(t) || (45 !== t && s(t)) + : o(t) || A(t) || (45 !== t && a(t)) ? l(t) - : (e.consume(t), a); + : (e.consume(t), s); } function c(t) { return 46 === t - ? ((i = r), (r = void 0), e.consume(t), a) - : (95 === t && (r = !0), e.consume(t), a); + ? ((r = i), (i = void 0), e.consume(t), s) + : (95 === t && (i = !0), e.consume(t), s); } function l(e) { - return i || r ? n(e) : t(e); + return r || i ? n(e) : t(e); } }, partial: !0, @@ -40754,24 +40332,24 @@ g = { tokenize: function(e, t) { var n = 0; - return r; - function r(a) { - return 38 === a - ? e.check(d, t, i)(a) - : (40 === a && n++, - 41 === a - ? e.check(u, o, i)(a) - : E(a) - ? t(a) - : f(a) - ? e.check(u, t, i)(a) - : (e.consume(a), r)); + return i; + function i(s) { + return 38 === s + ? e.check(d, t, r)(s) + : (40 === s && n++, + 41 === s + ? e.check(u, o, r)(s) + : E(s) + ? t(s) + : f(s) + ? e.check(u, t, r)(s) + : (e.consume(s), i)); } - function i(t) { - return e.consume(t), r; + function r(t) { + return e.consume(t), i; } function o(e) { - return --n < 0 ? t(e) : i(e); + return --n < 0 ? t(e) : r(e); } }, partial: !0, @@ -40779,14 +40357,14 @@ u = { tokenize: function(e, t, n) { return function(t) { - return e.consume(t), r; + return e.consume(t), i; }; - function r(i) { - return f(i) - ? (e.consume(i), r) - : E(i) - ? t(i) - : n(i); + function i(r) { + return f(r) + ? (e.consume(r), i) + : E(r) + ? t(r) + : n(r); } }, partial: !0, @@ -40794,11 +40372,11 @@ d = { tokenize: function(e, t, n) { return function(t) { - return e.consume(t), i; + return e.consume(t), r; }; - function i(t) { - return r(t) - ? (e.consume(t), i) + function r(t) { + return i(t) + ? (e.consume(t), r) : 59 === t ? (e.consume(t), o) : n(t); @@ -40811,12 +40389,12 @@ }, h = { tokenize: function(e, t, n) { - var r = this; + var i = this; return function(t) { if ( (87 !== t && t - 32 != 87) || - !B(r.previous) || - v(r.events) + !B(i.previous) || + M(i.events) ) return n(t); return ( @@ -40824,12 +40402,12 @@ e.enter('literalAutolinkWww'), e.check( c, - e.attempt(l, e.attempt(g, i), n), + e.attempt(l, e.attempt(g, r), n), n )(t) ); }; - function i(n) { + function r(n) { return ( e.exit('literalAutolinkWww'), e.exit('literalAutolink'), @@ -40841,27 +40419,27 @@ }, C = { tokenize: function(e, t, n) { - var r = this; + var i = this; return function(t) { if ( (72 !== t && t - 32 != 72) || - !w(r.previous) || - v(r.events) + !w(i.previous) || + M(i.events) ) return n(t); return ( e.enter('literalAutolink'), e.enter('literalAutolinkHttp'), e.consume(t), - i + r ); }; - function i(t) { + function r(t) { return 84 === t || t - 32 == 84 - ? (e.consume(t), a) + ? (e.consume(t), s) : n(t); } - function a(t) { + function s(t) { return 84 === t || t - 32 == 84 ? (e.consume(t), c) : n(t); @@ -40886,7 +40464,7 @@ return 47 === t ? (e.consume(t), I) : n(t); } function I(t) { - return o(t) || A(t) || s(t) + return o(t) || A(t) || a(t) ? n(t) : e.attempt(l, e.attempt(g, p), n)(t); } @@ -40902,48 +40480,48 @@ }, I = { tokenize: function(e, t, n) { - var r, + var i, o = this; return function(t) { - if (!y(t) || !b(o.previous) || v(o.events)) + if (!y(t) || !b(o.previous) || M(o.events)) return n(t); return ( e.enter('literalAutolink'), e.enter('literalAutolinkEmail'), - a(t) + s(t) ); }; - function a(t) { + function s(t) { return y(t) - ? (e.consume(t), a) - : 64 === t ? (e.consume(t), s) + : 64 === t + ? (e.consume(t), a) : n(t); } - function s(t) { + function a(t) { return 46 === t ? e.check(u, g, A)(t) : 45 === t || 95 === t ? e.check(u, n, c)(t) - : i(t) - ? (e.consume(t), s) + : r(t) + ? (e.consume(t), a) : g(t); } function A(t) { - return e.consume(t), (r = !0), s; + return e.consume(t), (i = !0), a; } function c(t) { return e.consume(t), l; } function l(t) { - return 46 === t ? e.check(u, n, A)(t) : s(t); + return 46 === t ? e.check(u, n, A)(t) : a(t); } - function g(i) { - return r + function g(r) { + return i ? (e.exit('literalAutolinkEmail'), e.exit('literalAutolink'), - t(i)) - : n(i); + t(r)) + : n(r); } }, previous: b, @@ -40973,7 +40551,7 @@ return null === e || e < 0 || 32 === e || 60 === e; } function y(e) { - return 43 === e || 45 === e || 46 === e || 95 === e || i(e); + return 43 === e || 45 === e || 46 === e || 95 === e || r(e); } function B(e) { return ( @@ -40987,12 +40565,12 @@ ); } function w(e) { - return null === e || !r(e); + return null === e || !i(e); } function b(e) { return 47 !== e && w(e); } - function v(e) { + function M(e) { for (var t = e.length; t--; ) if ( ('labelLink' === e[t][1].type || @@ -41010,49 +40588,49 @@ (p[87] = [I, h]), (p[119] = [I, h]); }, - 3490: (e, t, n) => { + 96099: (e, t, n) => { e.exports = function(e) { var t = (e || {}).singleTilde, n = { - tokenize: function(e, n, i) { + tokenize: function(e, n, r) { var o = this.previous, - a = this.events, - s = 0; + s = this.events, + a = 0; return A; function A(t) { return 126 !== t || (126 === o && 'characterEscape' !== - a[a.length - 1][1].type) - ? i(t) + s[s.length - 1][1].type) + ? r(t) : (e.enter( 'strikethroughSequenceTemporary' ), c(t)); } - function c(a) { + function c(s) { var A, l, - g = r(o); - return 126 === a - ? s > 1 - ? i(a) - : (e.consume(a), s++, c) - : s < 2 && !t - ? i(a) + g = i(o); + return 126 === s + ? a > 1 + ? r(s) + : (e.consume(s), a++, c) + : a < 2 && !t + ? r(s) : ((A = e.exit( 'strikethroughSequenceTemporary' )), - (l = r(a)), + (l = i(s)), (A._open = !l || (2 === l && g)), (A._close = !g || (2 === g && l)), - n(a)); + n(s)); } }, resolveAll: function(e, t) { var n, - r, - s, + i, + a, A, c = -1; for (; ++c < e.length; ) @@ -41062,39 +40640,39 @@ e[c][1].type && e[c][1]._close ) - for (s = c; s--; ) + for (a = c; a--; ) if ( - 'exit' === e[s][0] && + 'exit' === e[a][0] && 'strikethroughSequenceTemporary' === - e[s][1].type && - e[s][1]._open && + e[a][1].type && + e[a][1]._open && e[c][1].end.offset - e[c][1].start.offset == - e[s][1].end.offset - - e[s][1].start.offset + e[a][1].end.offset - + e[a][1].start.offset ) { (e[c][1].type = 'strikethroughSequence'), - (e[s][1].type = + (e[a][1].type = 'strikethroughSequence'), (n = { type: 'strikethrough', - start: a(e[s][1].start), - end: a(e[c][1].end), + start: s(e[a][1].start), + end: s(e[c][1].end), }), - (r = { + (i = { type: 'strikethroughText', - start: a(e[s][1].end), - end: a(e[c][1].start), + start: s(e[a][1].end), + end: s(e[c][1].start), }), (A = [ ['enter', n, t], - ['enter', e[s][1], t], - ['exit', e[s][1], t], - ['enter', r, t], + ['enter', e[a][1], t], + ['exit', e[a][1], t], + ['enter', i, t], ]), - i( + r( A, A.length, 0, @@ -41102,18 +40680,18 @@ t.parser.constructs .insideSpan .null, - e.slice(s + 1, c), + e.slice(a + 1, c), t ) ), - i(A, A.length, 0, [ - ['exit', r, t], + r(A, A.length, 0, [ + ['exit', i, t], ['enter', e[c][1], t], ['exit', e[c][1], t], ['exit', n, t], ]), - i(e, s - 1, c - s + 3, A), - (c = s + A.length - 2); + r(e, a - 1, c - a + 3, A), + (c = a + A.length - 2); break; } return (function(e) { @@ -41130,135 +40708,135 @@ null == t && (t = !0); return {text: {126: n}, insideSpan: {null: n}}; }; - var r = n(42015), - i = n(83536), - o = n(2519), - a = n(35510); + var i = n(80335), + r = n(54487), + o = n(66888), + s = n(54453); }, - 87166: e => { + 83258: e => { 'use strict'; e.exports = function(e) { return e < 0 || 32 === e; }; }, - 94021: (e, t, n) => { + 51589: (e, t, n) => { 'use strict'; - var r = n(13284), - i = n(58370)(r); - e.exports = i; + var i = n(23432), + r = n(0)(i); + e.exports = r; }, - 26965: (e, t, n) => { + 94647: (e, t, n) => { 'use strict'; - var r = n(58370)(/\s/); - e.exports = r; + var i = n(0)(/\s/); + e.exports = i; }, - 98529: e => { + 21115: e => { 'use strict'; var t = Object.assign; e.exports = t; }, - 74394: e => { + 43086: e => { 'use strict'; var t = String.fromCharCode; e.exports = t; }, - 67896: e => { + 98936: e => { 'use strict'; var t = [].splice; e.exports = t; }, - 13284: e => { + 23432: e => { 'use strict'; e.exports = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/; }, - 83536: (e, t, n) => { + 54487: (e, t, n) => { 'use strict'; - var r = n(67896); - e.exports = function(e, t, n, i) { + var i = n(98936); + e.exports = function(e, t, n, r) { var o, - a = e.length, - s = 0; + s = e.length, + a = 0; if ( - ((t = t < 0 ? (-t > a ? 0 : a + t) : t > a ? a : t), + ((t = t < 0 ? (-t > s ? 0 : s + t) : t > s ? s : t), (n = n > 0 ? n : 0), - i.length < 1e4) + r.length < 1e4) ) - (o = Array.from(i)).unshift(t, n), r.apply(e, o); + (o = Array.from(r)).unshift(t, n), i.apply(e, o); else - for (n && r.apply(e, [t, n]); s < i.length; ) - (o = i.slice(s, s + 1e4)).unshift(t, 0), - r.apply(e, o), - (s += 1e4), + for (n && i.apply(e, [t, n]); a < r.length; ) + (o = r.slice(a, a + 1e4)).unshift(t, 0), + i.apply(e, o), + (a += 1e4), (t += 1e4); }; }, - 42015: (e, t, n) => { + 80335: (e, t, n) => { 'use strict'; - var r = n(87166), - i = n(94021), - o = n(26965); + var i = n(83258), + r = n(51589), + o = n(94647); e.exports = function(e) { - return null === e || r(e) || o(e) ? 1 : i(e) ? 2 : void 0; + return null === e || i(e) || o(e) ? 1 : r(e) ? 2 : void 0; }; }, - 58370: (e, t, n) => { + 0: (e, t, n) => { 'use strict'; - var r = n(74394); + var i = n(43086); e.exports = function(e) { return function(t) { - return e.test(r(t)); + return e.test(i(t)); }; }; }, - 2519: e => { + 66888: e => { 'use strict'; e.exports = function(e, t, n) { - for (var r, i = [], o = -1; ++o < e.length; ) - (r = e[o].resolveAll) && - i.indexOf(r) < 0 && - ((t = r(t, n)), i.push(r)); + for (var i, r = [], o = -1; ++o < e.length; ) + (i = e[o].resolveAll) && + r.indexOf(i) < 0 && + ((t = i(t, n)), r.push(i)); return t; }; }, - 35510: (e, t, n) => { + 54453: (e, t, n) => { 'use strict'; - var r = n(98529); + var i = n(21115); e.exports = function(e) { - return r({}, e); + return i({}, e); }; }, - 81286: (e, t, n) => { - e.exports = n(23993); + 92480: (e, t, n) => { + e.exports = n(10050); }, - 70562: e => { + 91556: e => { 'use strict'; e.exports = function(e) { return -2 === e || -1 === e || 32 === e; }; }, - 95230: (e, t, n) => { + 54068: (e, t, n) => { 'use strict'; - var r = n(70562); - e.exports = function(e, t, n, i) { - var o = i ? i - 1 : 1 / 0, - a = 0; - return function(i) { - if (r(i)) return e.enter(n), s(i); - return t(i); + var i = n(91556); + e.exports = function(e, t, n, r) { + var o = r ? r - 1 : 1 / 0, + s = 0; + return function(r) { + if (i(r)) return e.enter(n), a(r); + return t(r); }; - function s(i) { - return r(i) && a++ < o - ? (e.consume(i), s) - : (e.exit(n), t(i)); + function a(r) { + return i(r) && s++ < o + ? (e.consume(r), a) + : (e.exit(n), t(r)); } }; }, - 23993: (e, t, n) => { + 10050: (e, t, n) => { t.flow = { null: { tokenize: function(e, t, n) { - var a, - s, + var s, + a, A = [], c = 0; return function(t) { @@ -41287,7 +40865,7 @@ e.enter('tableCellDivider'), e.consume(t), e.exit('tableCellDivider'), - (a = !0), + (s = !0), g ); } @@ -41305,15 +40883,15 @@ e.consume(t), e.exit('lineEnding'), e.check( - i, + r, n, - r(e, C, 'linePrefix', 4) + i(e, C, 'linePrefix', 4) ) ); })(t) : -2 === t || -1 === t || 32 === t ? (e.enter('whitespace'), e.consume(t), u) - : (a && ((a = void 0), c++), + : (s && ((s = void 0), c++), 124 === t ? l(t) : (e.enter( @@ -41356,7 +40934,7 @@ : 45 === t ? (e.enter('tableDelimiterFiller'), e.consume(t), - (s = !0), + (a = !0), A.push(null), m) : 58 === t @@ -41396,7 +40974,7 @@ return 45 === t ? (e.enter('tableDelimiterFiller'), e.consume(t), - (s = !0), + (a = !0), m) : n(t); } @@ -41418,7 +40996,7 @@ function y(t) { return ( e.exit('tableDelimiterRow'), - s && c === A.length + a && c === A.length ? null === t ? B(t) : e.check(o, B, w)(t) @@ -41433,22 +41011,22 @@ e.enter('lineEnding'), e.consume(t), e.exit('lineEnding'), - r(e, b, 'linePrefix', 4) + i(e, b, 'linePrefix', 4) ); } function b(t) { - return e.enter('tableBody'), v(t); + return e.enter('tableBody'), M(t); } - function v(t) { + function M(t) { return ( e.enter('tableRow'), 124 === t - ? M(t) + ? v(t) : (e.enter('temporaryTableCellContent'), Q(t)) ); } - function M(t) { + function v(t) { return ( e.enter('tableCellDivider'), e.consume(t), @@ -41463,13 +41041,13 @@ -3 === t ? (function(t) { if ((e.exit('tableRow'), null === t)) - return x(t); - return e.check(o, x, D)(t); + return F(t); + return e.check(o, F, D)(t); })(t) : -2 === t || -1 === t || 32 === t ? (e.enter('whitespace'), e.consume(t), S) : 124 === t - ? M(t) + ? v(t) : (e.enter('temporaryTableCellContent'), Q(t)); } @@ -41485,14 +41063,14 @@ 124 === t ? (e.exit('temporaryTableCellContent'), N(t)) - : (e.consume(t), 92 === t ? F : Q); + : (e.consume(t), 92 === t ? x : Q); } - function F(t) { + function x(t) { return 92 === t || 124 === t ? (e.consume(t), Q) : Q(t); } - function x(t) { + function F(t) { return e.exit('tableBody'), B(t); } function D(t) { @@ -41500,17 +41078,17 @@ e.enter('lineEnding'), e.consume(t), e.exit('lineEnding'), - r(e, v, 'linePrefix', 4) + i(e, M, 'linePrefix', 4) ); } }, resolve: function(e, t) { var n, - r, i, + r, o, - a, s, + a, A, c, l, @@ -41525,24 +41103,24 @@ ('tableCellDivider' !== n.type && 'tableRow' !== n.type) || !l || - ((s = { + ((a = { type: 'tableContent', start: e[c][1].start, end: e[l][1].end, }), (A = { type: 'chunkText', - start: s.start, - end: s.end, + start: a.start, + end: a.end, contentType: 'text', }), e.splice( c, l - c + 1, - ['enter', s, t], + ['enter', a, t], ['enter', A, t], ['exit', A, t], - ['exit', s, t] + ['exit', a, t] ), (d -= l - c - 3), (u = e.length), @@ -41556,10 +41134,10 @@ (g + 3 < d || 'whitespace' !== e[g][1].type))) && - ((a = { - type: i + ((s = { + type: r ? 'tableDelimiter' - : r + : i ? 'tableHeader' : 'tableData', start: e[g][1].start, @@ -41571,9 +41149,9 @@ ? 1 : 0), 0, - ['exit', a, t] + ['exit', s, t] ), - e.splice(g, 0, ['enter', a, t]), + e.splice(g, 0, ['enter', s, t]), (d += 2), (u = e.length), (g = d + 1)), @@ -41581,47 +41159,47 @@ (o = 'enter' === e[d][0]) && (g = d + 1), 'tableDelimiterRow' === n.type && - (i = 'enter' === e[d][0]) && + (r = 'enter' === e[d][0]) && (g = d + 1), 'tableHead' === n.type && - (r = 'enter' === e[d][0]); + (i = 'enter' === e[d][0]); return e; }, interruptible: !0, }, }; - var r = n(95230), - i = { + var i = n(54068), + r = { tokenize: function(e, t, n) { return function(t) { if (45 !== t) return n(t); - return e.enter('setextUnderline'), r(t); + return e.enter('setextUnderline'), i(t); }; - function r(t) { - return 45 === t ? (e.consume(t), r) : i(t); + function i(t) { + return 45 === t ? (e.consume(t), i) : r(t); } - function i(r) { - return -2 === r || -1 === r || 32 === r - ? (e.consume(r), i) - : null === r || - -5 === r || - -4 === r || - -3 === r - ? t(r) - : n(r); + function r(i) { + return -2 === i || -1 === i || 32 === i + ? (e.consume(i), r) + : null === i || + -5 === i || + -4 === i || + -3 === i + ? t(i) + : n(i); } }, partial: !0, }, o = { tokenize: function(e, t, n) { - var r = 0; + var i = 0; return function(t) { - return e.enter('check'), e.consume(t), i; + return e.enter('check'), e.consume(t), r; }; - function i(o) { + function r(o) { return -1 === o || 32 === o - ? (e.consume(o), 4 === ++r ? t : i) + ? (e.consume(o), 4 === ++i ? t : r) : null === o || o < 0 ? t(o) : n(o); @@ -41630,47 +41208,47 @@ partial: !0, }; }, - 5675: (e, t, n) => { - e.exports = n(27224); + 21918: (e, t, n) => { + e.exports = n(44506); }, - 44348: e => { + 11600: e => { 'use strict'; e.exports = function(e) { return e < 0 || 32 === e; }; }, - 69034: e => { + 69076: e => { 'use strict'; e.exports = function(e) { return -2 === e || -1 === e || 32 === e; }; }, - 4232: (e, t, n) => { + 26466: (e, t, n) => { 'use strict'; - var r = n(69034); - e.exports = function(e, t, n, i) { - var o = i ? i - 1 : 1 / 0, - a = 0; - return function(i) { - if (r(i)) return e.enter(n), s(i); - return t(i); + var i = n(69076); + e.exports = function(e, t, n, r) { + var o = r ? r - 1 : 1 / 0, + s = 0; + return function(r) { + if (i(r)) return e.enter(n), a(r); + return t(r); }; - function s(i) { - return r(i) && a++ < o - ? (e.consume(i), s) - : (e.exit(n), t(i)); + function a(r) { + return i(r) && s++ < o + ? (e.consume(r), a) + : (e.exit(n), t(r)); } }; }, - 99585: (e, t, n) => { + 81974: (e, t, n) => { 'use strict'; - var r = n(46539); + var i = n(93114); e.exports = function(e, t) { var n = e[e.length - 1]; - return n && n[1].type === t ? r(n[2].sliceStream(n[1])) : 0; + return n && n[1].type === t ? i(n[2].sliceStream(n[1])) : 0; }; }, - 46539: e => { + 93114: e => { 'use strict'; e.exports = function(e) { for (var t = -1, n = 0; ++t < e.length; ) @@ -41678,18 +41256,18 @@ return n; }; }, - 27224: (e, t, n) => { - var r = n(44348), - i = n(4232), - o = n(99585), - a = { + 44506: (e, t, n) => { + var i = n(11600), + r = n(26466), + o = n(81974), + s = { tokenize: function(e, t, n) { - var r = this; + var i = this; return function(t) { if ( 91 !== t || - null !== r.previous || - !r._gfmTasklistFirstContentOfListItem + null !== i.previous || + !i._gfmTasklistFirstContentOfListItem ) return n(t); return ( @@ -41697,10 +41275,10 @@ e.enter('taskListCheckMarker'), e.consume(t), e.exit('taskListCheckMarker'), - i + r ); }; - function i(t) { + function r(t) { return -2 === t || 32 === t ? (e.enter('taskListCheckValueUnchecked'), e.consume(t), @@ -41713,118 +41291,118 @@ o) : n(t); } - function o(r) { - return 93 === r + function o(i) { + return 93 === i ? (e.enter('taskListCheckMarker'), - e.consume(r), + e.consume(i), e.exit('taskListCheckMarker'), e.exit('taskListCheck'), - e.check({tokenize: s}, t, n)) - : n(r); + e.check({tokenize: a}, t, n)) + : n(i); } }, }; - function s(e, t, n) { - var a = this; - return i( + function a(e, t, n) { + var s = this; + return r( e, function(e) { - return o(a.events, 'whitespace') && + return o(s.events, 'whitespace') && null !== e && - !r(e) + !i(e) ? t(e) : n(e); }, 'whitespace' ); } - t.text = {91: a}; + t.text = {91: s}; }, - 82747: (e, t, n) => { - e.exports = n(2518); + 15241: (e, t, n) => { + e.exports = n(18800); }, - 26646: e => { + 37533: e => { 'use strict'; var t = {}.hasOwnProperty; e.exports = t; }, - 44018: e => { + 21239: e => { 'use strict'; var t = [].splice; e.exports = t; }, - 81223: (e, t, n) => { + 60045: (e, t, n) => { 'use strict'; - var r = n(44018); - e.exports = function(e, t, n, i) { + var i = n(21239); + e.exports = function(e, t, n, r) { var o, - a = e.length, - s = 0; + s = e.length, + a = 0; if ( - ((t = t < 0 ? (-t > a ? 0 : a + t) : t > a ? a : t), + ((t = t < 0 ? (-t > s ? 0 : s + t) : t > s ? s : t), (n = n > 0 ? n : 0), - i.length < 1e4) + r.length < 1e4) ) - (o = Array.from(i)).unshift(t, n), r.apply(e, o); + (o = Array.from(r)).unshift(t, n), i.apply(e, o); else - for (n && r.apply(e, [t, n]); s < i.length; ) - (o = i.slice(s, s + 1e4)).unshift(t, 0), - r.apply(e, o), - (s += 1e4), + for (n && i.apply(e, [t, n]); a < r.length; ) + (o = r.slice(a, a + 1e4)).unshift(t, 0), + i.apply(e, o), + (a += 1e4), (t += 1e4); }; }, - 688: (e, t, n) => { + 95529: (e, t, n) => { 'use strict'; - var r = n(26646), - i = n(81223), - o = n(65888); - function a(e, t) { - var n, i, a, A; + var i = n(37533), + r = n(60045), + o = n(8920); + function s(e, t) { + var n, r, s, A; for (n in t) - for (A in ((i = r.call(e, n) ? e[n] : (e[n] = {})), - (a = t[n]))) - i[A] = s(o(a[A]), r.call(i, A) ? i[A] : []); + for (A in ((r = i.call(e, n) ? e[n] : (e[n] = {})), + (s = t[n]))) + r[A] = a(o(s[A]), i.call(r, A) ? r[A] : []); } - function s(e, t) { - for (var n = -1, r = []; ++n < e.length; ) - ('after' === e[n].add ? t : r).push(e[n]); - return i(t, 0, 0, r), t; + function a(e, t) { + for (var n = -1, i = []; ++n < e.length; ) + ('after' === e[n].add ? t : i).push(e[n]); + return r(t, 0, 0, i), t; } e.exports = function(e) { - for (var t = {}, n = -1; ++n < e.length; ) a(t, e[n]); + for (var t = {}, n = -1; ++n < e.length; ) s(t, e[n]); return t; }; }, - 65888: e => { + 8920: e => { 'use strict'; e.exports = function(e) { return null == e ? [] : 'length' in e ? e : [e]; }; }, - 2518: (e, t, n) => { - var r = n(688), - i = n(57539), - o = n(3490), - a = n(81286), - s = n(5675); + 18800: (e, t, n) => { + var i = n(95529), + r = n(63280), + o = n(96099), + s = n(92480), + a = n(21918); e.exports = function(e) { - return r([i, o(e), a, s]); + return i([r, o(e), s, a]); }; }, - 50444: (e, t, n) => { - e.exports = n(92349); + 70305: (e, t, n) => { + e.exports = n(484); }, - 92349: (e, t, n) => { + 484: (e, t, n) => { 'use strict'; - (t.flow = {36: n(13857)}), (t.text = {36: n(27141)}); + (t.flow = {36: n(83055)}), (t.text = {36: n(70693)}); }, - 13857: (e, t, n) => { + 83055: (e, t, n) => { 'use strict'; (t.tokenize = function(e, t, n) { var o = this, - a = r(this.events, 'linePrefix'), - s = 0; + s = i(this.events, 'linePrefix'), + a = 0; return function(t) { if (36 !== t) throw new Error('expected `$`'); return ( @@ -41836,9 +41414,9 @@ }; function A(t) { return 36 === t - ? (e.consume(t), s++, A) + ? (e.consume(t), a++, A) : (e.exit('mathFlowFenceSequence'), - s < 2 ? n(t) : i(e, c, 'whitespace')(t)); + a < 2 ? n(t) : r(e, c, 'whitespace')(t)); } function c(t) { return null === t || -5 === t || -4 === t || -3 === t @@ -41871,7 +41449,7 @@ e.attempt( {tokenize: C, partial: !0}, h, - a ? i(e, u, 'linePrefix', a + 1) : u + s ? r(e, u, 'linePrefix', s + 1) : u )) : (e.enter('mathFlowValue'), d(t)); } @@ -41884,8 +41462,8 @@ return e.exit('mathFlow'), t(n); } function C(e, t, n) { - var r = 0; - return i( + var i = 0; + return r( e, function(t) { return ( @@ -41899,27 +41477,27 @@ ); function o(t) { return 36 === t - ? (e.consume(t), r++, o) - : r < s + ? (e.consume(t), i++, o) + : i < a ? n(t) : (e.exit('mathFlowFenceSequence'), - i(e, a, 'whitespace')(t)); + r(e, s, 'whitespace')(t)); } - function a(r) { - return null === r || - -5 === r || - -4 === r || - -3 === r - ? (e.exit('mathFlowFence'), t(r)) - : n(r); + function s(i) { + return null === i || + -5 === i || + -4 === i || + -3 === i + ? (e.exit('mathFlowFence'), t(i)) + : n(i); } } }), (t.concrete = !0); - var r = n(95712), - i = n(61743); + var i = n(25884), + r = n(67299); }, - 27141: (e, t) => { + 70693: (e, t) => { 'use strict'; function n(e) { return ( @@ -41928,14 +41506,14 @@ this.events[this.events.length - 1][1].type ); } - (t.tokenize = function(e, t, r) { - var i, + (t.tokenize = function(e, t, i) { + var r, o, - a = this, - s = 0; + s = this, + a = 0; return function(t) { if (36 !== t) throw new Error('expected `$`'); - if (!n.call(a, a.previous)) + if (!n.call(s, s.previous)) throw new Error('expected correct previous'); return ( e.enter('mathText'), @@ -41945,14 +41523,14 @@ }; function A(t) { return 36 === t - ? (e.consume(t), s++, A) + ? (e.consume(t), a++, A) : (e.exit('mathTextSequence'), c(t)); } function c(t) { return null === t - ? r(t) + ? i(t) : 36 === t - ? ((o = e.enter('mathTextSequence')), (i = 0), g(t)) + ? ((o = e.enter('mathTextSequence')), (r = 0), g(t)) : 32 === t ? (e.enter('space'), e.consume(t), @@ -41977,8 +41555,8 @@ } function g(n) { return 36 === n - ? (e.consume(n), i++, g) - : i === s + ? (e.consume(n), r++, g) + : r === a ? (e.exit('mathTextSequence'), e.exit('mathText'), t(n)) @@ -41988,74 +41566,74 @@ (t.resolve = function(e) { var t, n, - r = e.length - 4, - i = 3; + i = e.length - 4, + r = 3; if ( !( - ('lineEnding' !== e[i][1].type && - 'space' !== e[i][1].type) || ('lineEnding' !== e[r][1].type && - 'space' !== e[r][1].type) + 'space' !== e[r][1].type) || + ('lineEnding' !== e[i][1].type && + 'space' !== e[i][1].type) ) ) - for (t = i; ++t < r; ) + for (t = r; ++t < i; ) if ('mathTextData' === e[t][1].type) { - (e[r][1].type = 'mathTextPadding'), - (e[i][1].type = 'mathTextPadding'), - (i += 2), - (r -= 2); + (e[i][1].type = 'mathTextPadding'), + (e[r][1].type = 'mathTextPadding'), + (r += 2), + (i -= 2); break; } - (t = i - 1), r++; - for (; ++t <= r; ) + (t = r - 1), i++; + for (; ++t <= i; ) void 0 === n - ? t !== r && + ? t !== i && 'lineEnding' !== e[t][1].type && (n = t) - : (t !== r && 'lineEnding' !== e[t][1].type) || + : (t !== i && 'lineEnding' !== e[t][1].type) || ((e[n][1].type = 'mathTextData'), t !== n + 2 && ((e[n][1].end = e[t - 1][1].end), e.splice(n + 2, t - n - 2), - (r -= t - n - 2), + (i -= t - n - 2), (t = n + 2)), (n = void 0)); return e; }), (t.previous = n); }, - 99933: e => { + 72933: e => { 'use strict'; e.exports = function(e) { return -2 === e || -1 === e || 32 === e; }; }, - 61743: (e, t, n) => { + 67299: (e, t, n) => { 'use strict'; - var r = n(99933); - e.exports = function(e, t, n, i) { - var o = i ? i - 1 : 1 / 0, - a = 0; - return function(i) { - if (r(i)) return e.enter(n), s(i); - return t(i); + var i = n(72933); + e.exports = function(e, t, n, r) { + var o = r ? r - 1 : 1 / 0, + s = 0; + return function(r) { + if (i(r)) return e.enter(n), a(r); + return t(r); }; - function s(i) { - return r(i) && a++ < o - ? (e.consume(i), s) - : (e.exit(n), t(i)); + function a(r) { + return i(r) && s++ < o + ? (e.consume(r), a) + : (e.exit(n), t(r)); } }; }, - 95712: (e, t, n) => { + 25884: (e, t, n) => { 'use strict'; - var r = n(57375); + var i = n(94760); e.exports = function(e, t) { var n = e[e.length - 1]; - return n && n[1].type === t ? r(n[2].sliceStream(n[1])) : 0; + return n && n[1].type === t ? i(n[2].sliceStream(n[1])) : 0; }; }, - 57375: e => { + 94760: e => { 'use strict'; e.exports = function(e) { for (var t = -1, n = 0; ++t < e.length; ) @@ -42063,10 +41641,592 @@ return n; }; }, - 31515: (e, t, n) => { + 47048: (e, t, n) => { + var i = 'function' == typeof Map && Map.prototype, + r = + Object.getOwnPropertyDescriptor && i + ? Object.getOwnPropertyDescriptor( + Map.prototype, + 'size' + ) + : null, + o = i && r && 'function' == typeof r.get ? r.get : null, + s = i && Map.prototype.forEach, + a = 'function' == typeof Set && Set.prototype, + A = + Object.getOwnPropertyDescriptor && a + ? Object.getOwnPropertyDescriptor( + Set.prototype, + 'size' + ) + : null, + c = a && A && 'function' == typeof A.get ? A.get : null, + l = a && Set.prototype.forEach, + g = + 'function' == typeof WeakMap && WeakMap.prototype + ? WeakMap.prototype.has + : null, + u = + 'function' == typeof WeakSet && WeakSet.prototype + ? WeakSet.prototype.has + : null, + d = + 'function' == typeof WeakRef && WeakRef.prototype + ? WeakRef.prototype.deref + : null, + h = Boolean.prototype.valueOf, + C = Object.prototype.toString, + I = Function.prototype.toString, + p = String.prototype.match, + m = String.prototype.slice, + f = String.prototype.replace, + E = String.prototype.toUpperCase, + y = String.prototype.toLowerCase, + B = RegExp.prototype.test, + w = Array.prototype.concat, + b = Array.prototype.join, + M = Array.prototype.slice, + v = Math.floor, + N = + 'function' == typeof BigInt + ? BigInt.prototype.valueOf + : null, + S = Object.getOwnPropertySymbols, + Q = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? Symbol.prototype.toString + : null, + x = + 'function' == typeof Symbol && + 'object' == typeof Symbol.iterator, + F = + 'function' == typeof Symbol && + Symbol.toStringTag && + (typeof Symbol.toStringTag === x || 'symbol') + ? Symbol.toStringTag + : null, + D = Object.prototype.propertyIsEnumerable, + T = + ('function' == typeof Reflect + ? Reflect.getPrototypeOf + : Object.getPrototypeOf) || + ([].__proto__ === Array.prototype + ? function(e) { + return e.__proto__; + } + : null); + function Y(e, t) { + if ( + e === 1 / 0 || + e === -1 / 0 || + e != e || + (e && e > -1e3 && e < 1e3) || + B.call(/e/, t) + ) + return t; + var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if ('number' == typeof e) { + var i = e < 0 ? -v(-e) : v(e); + if (i !== e) { + var r = String(i), + o = m.call(t, r.length + 1); + return ( + f.call(r, n, '$&_') + + '.' + + f.call( + f.call(o, /([0-9]{3})/g, '$&_'), + /_$/, + '' + ) + ); + } + } + return f.call(t, n, '$&_'); + } + var R = n(78209), + _ = R.custom, + U = H(_) ? _ : null, + O = {__proto__: null, double: '"', single: "'"}, + G = { + __proto__: null, + double: /(["\\])/g, + single: /(['\\])/g, + }; + function L(e, t, n) { + var i = n.quoteStyle || t, + r = O[i]; + return r + e + r; + } + function k(e) { + return f.call(String(e), /"/g, '"'); + } + function z(e) { + return ( + !F || + !('object' == typeof e && (F in e || void 0 !== e[F])) + ); + } + function j(e) { + return '[object Array]' === V(e) && z(e); + } + function P(e) { + return '[object RegExp]' === V(e) && z(e); + } + function H(e) { + if (x) + return e && 'object' == typeof e && e instanceof Symbol; + if ('symbol' == typeof e) return !0; + if (!e || 'object' != typeof e || !Q) return !1; + try { + return Q.call(e), !0; + } catch (e) {} + return !1; + } + e.exports = function e(t, i, r, a) { + var A = i || {}; + if (W(A, 'quoteStyle') && !W(O, A.quoteStyle)) + throw new TypeError( + 'option "quoteStyle" must be "single" or "double"' + ); + if ( + W(A, 'maxStringLength') && + ('number' == typeof A.maxStringLength + ? A.maxStringLength < 0 && + A.maxStringLength !== 1 / 0 + : null !== A.maxStringLength) + ) + throw new TypeError( + 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' + ); + var C = !W(A, 'customInspect') || A.customInspect; + if ('boolean' != typeof C && 'symbol' !== C) + throw new TypeError( + 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`' + ); + if ( + W(A, 'indent') && + null !== A.indent && + '\t' !== A.indent && + !(parseInt(A.indent, 10) === A.indent && A.indent > 0) + ) + throw new TypeError( + 'option "indent" must be "\\t", an integer > 0, or `null`' + ); + if ( + W(A, 'numericSeparator') && + 'boolean' != typeof A.numericSeparator + ) + throw new TypeError( + 'option "numericSeparator", if provided, must be `true` or `false`' + ); + var E = A.numericSeparator; + if (void 0 === t) return 'undefined'; + if (null === t) return 'null'; + if ('boolean' == typeof t) return t ? 'true' : 'false'; + if ('string' == typeof t) return Z(t, A); + if ('number' == typeof t) { + if (0 === t) return 1 / 0 / t > 0 ? '0' : '-0'; + var B = String(t); + return E ? Y(t, B) : B; + } + if ('bigint' == typeof t) { + var v = String(t) + 'n'; + return E ? Y(t, v) : v; + } + var S = void 0 === A.depth ? 5 : A.depth; + if ( + (void 0 === r && (r = 0), + r >= S && S > 0 && 'object' == typeof t) + ) + return j(t) ? '[Array]' : '[Object]'; + var _ = (function(e, t) { + var n; + if ('\t' === e.indent) n = '\t'; + else { + if (!('number' == typeof e.indent && e.indent > 0)) + return null; + n = b.call(Array(e.indent + 1), ' '); + } + return {base: n, prev: b.call(Array(t + 1), n)}; + })(A, r); + if (void 0 === a) a = []; + else if (K(a, t) >= 0) return '[Circular]'; + function G(t, n, i) { + if ((n && (a = M.call(a)).push(n), i)) { + var o = {depth: A.depth}; + return ( + W(A, 'quoteStyle') && + (o.quoteStyle = A.quoteStyle), + e(t, o, r + 1, a) + ); + } + return e(t, A, r + 1, a); + } + if ('function' == typeof t && !P(t)) { + var J = (function(e) { + if (e.name) return e.name; + var t = p.call( + I.call(e), + /^function\s*([\w$]+)/ + ); + if (t) return t[1]; + return null; + })(t), + X = ne(t, G); + return ( + '[Function' + + (J ? ': ' + J : ' (anonymous)') + + ']' + + (X.length > 0 ? ' { ' + b.call(X, ', ') + ' }' : '') + ); + } + if (H(t)) { + var ie = x + ? f.call(String(t), /^(Symbol\(.*\))_[^)]*$/, '$1') + : Q.call(t); + return 'object' != typeof t || x ? ie : q(ie); + } + if ( + (function(e) { + if (!e || 'object' != typeof e) return !1; + if ( + 'undefined' != typeof HTMLElement && + e instanceof HTMLElement + ) + return !0; + return ( + 'string' == typeof e.nodeName && + 'function' == typeof e.getAttribute + ); + })(t) + ) { + for ( + var re = '<' + y.call(String(t.nodeName)), + oe = t.attributes || [], + se = 0; + se < oe.length; + se++ + ) + re += + ' ' + + oe[se].name + + '=' + + L(k(oe[se].value), 'double', A); + return ( + (re += '>'), + t.childNodes && + t.childNodes.length && + (re += '...'), + (re += '') + ); + } + if (j(t)) { + if (0 === t.length) return '[]'; + var ae = ne(t, G); + return _ && + !(function(e) { + for (var t = 0; t < e.length; t++) + if (K(e[t], '\n') >= 0) return !1; + return !0; + })(ae) + ? '[' + te(ae, _) + ']' + : '[ ' + b.call(ae, ', ') + ' ]'; + } + if ( + (function(e) { + return '[object Error]' === V(e) && z(e); + })(t) + ) { + var Ae = ne(t, G); + return 'cause' in Error.prototype || + !('cause' in t) || + D.call(t, 'cause') + ? 0 === Ae.length + ? '[' + String(t) + ']' + : '{ [' + + String(t) + + '] ' + + b.call(Ae, ', ') + + ' }' + : '{ [' + + String(t) + + '] ' + + b.call( + w.call('[cause]: ' + G(t.cause), Ae), + ', ' + ) + + ' }'; + } + if ('object' == typeof t && C) { + if (U && 'function' == typeof t[U] && R) + return R(t, {depth: S - r}); + if ('symbol' !== C && 'function' == typeof t.inspect) + return t.inspect(); + } + if ( + (function(e) { + if (!o || !e || 'object' != typeof e) return !1; + try { + o.call(e); + try { + c.call(e); + } catch (e) { + return !0; + } + return e instanceof Map; + } catch (e) {} + return !1; + })(t) + ) { + var ce = []; + return ( + s && + s.call(t, function(e, n) { + ce.push(G(n, t, !0) + ' => ' + G(e, t)); + }), + ee('Map', o.call(t), ce, _) + ); + } + if ( + (function(e) { + if (!c || !e || 'object' != typeof e) return !1; + try { + c.call(e); + try { + o.call(e); + } catch (e) { + return !0; + } + return e instanceof Set; + } catch (e) {} + return !1; + })(t) + ) { + var le = []; + return ( + l && + l.call(t, function(e) { + le.push(G(e, t)); + }), + ee('Set', c.call(t), le, _) + ); + } + if ( + (function(e) { + if (!g || !e || 'object' != typeof e) return !1; + try { + g.call(e, g); + try { + u.call(e, u); + } catch (e) { + return !0; + } + return e instanceof WeakMap; + } catch (e) {} + return !1; + })(t) + ) + return $('WeakMap'); + if ( + (function(e) { + if (!u || !e || 'object' != typeof e) return !1; + try { + u.call(e, u); + try { + g.call(e, g); + } catch (e) { + return !0; + } + return e instanceof WeakSet; + } catch (e) {} + return !1; + })(t) + ) + return $('WeakSet'); + if ( + (function(e) { + if (!d || !e || 'object' != typeof e) return !1; + try { + return d.call(e), !0; + } catch (e) {} + return !1; + })(t) + ) + return $('WeakRef'); + if ( + (function(e) { + return '[object Number]' === V(e) && z(e); + })(t) + ) + return q(G(Number(t))); + if ( + (function(e) { + if (!e || 'object' != typeof e || !N) return !1; + try { + return N.call(e), !0; + } catch (e) {} + return !1; + })(t) + ) + return q(G(N.call(t))); + if ( + (function(e) { + return '[object Boolean]' === V(e) && z(e); + })(t) + ) + return q(h.call(t)); + if ( + (function(e) { + return '[object String]' === V(e) && z(e); + })(t) + ) + return q(G(String(t))); + if ('undefined' != typeof window && t === window) + return '{ [object Window] }'; + if ( + ('undefined' != typeof globalThis && + t === globalThis) || + (void 0 !== n.g && t === n.g) + ) + return '{ [object globalThis] }'; + if ( + !(function(e) { + return '[object Date]' === V(e) && z(e); + })(t) && + !P(t) + ) { + var ge = ne(t, G), + ue = T + ? T(t) === Object.prototype + : t instanceof Object || + t.constructor === Object, + de = t instanceof Object ? '' : 'null prototype', + he = + !ue && F && Object(t) === t && F in t + ? m.call(V(t), 8, -1) + : de + ? 'Object' + : '', + Ce = + (ue || 'function' != typeof t.constructor + ? '' + : t.constructor.name + ? t.constructor.name + ' ' + : '') + + (he || de + ? '[' + + b.call( + w.call([], he || [], de || []), + ': ' + ) + + '] ' + : ''); + return 0 === ge.length + ? Ce + '{}' + : _ + ? Ce + '{' + te(ge, _) + '}' + : Ce + '{ ' + b.call(ge, ', ') + ' }'; + } + return String(t); + }; + var J = + Object.prototype.hasOwnProperty || + function(e) { + return e in this; + }; + function W(e, t) { + return J.call(e, t); + } + function V(e) { + return C.call(e); + } + function K(e, t) { + if (e.indexOf) return e.indexOf(t); + for (var n = 0, i = e.length; n < i; n++) + if (e[n] === t) return n; + return -1; + } + function Z(e, t) { + if (e.length > t.maxStringLength) { + var n = e.length - t.maxStringLength, + i = + '... ' + + n + + ' more character' + + (n > 1 ? 's' : ''); + return Z(m.call(e, 0, t.maxStringLength), t) + i; + } + var r = G[t.quoteStyle || 'single']; + return ( + (r.lastIndex = 0), + L( + f.call(f.call(e, r, '\\$1'), /[\x00-\x1f]/g, X), + 'single', + t + ) + ); + } + function X(e) { + var t = e.charCodeAt(0), + n = {8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r'}[t]; + return n + ? '\\' + n + : '\\x' + (t < 16 ? '0' : '') + E.call(t.toString(16)); + } + function q(e) { + return 'Object(' + e + ')'; + } + function $(e) { + return e + ' { ? }'; + } + function ee(e, t, n, i) { + return ( + e + + ' (' + + t + + ') {' + + (i ? te(n, i) : b.call(n, ', ')) + + '}' + ); + } + function te(e, t) { + if (0 === e.length) return ''; + var n = '\n' + t.prev + t.base; + return n + b.call(e, ',' + n) + '\n' + t.prev; + } + function ne(e, t) { + var n = j(e), + i = []; + if (n) { + i.length = e.length; + for (var r = 0; r < e.length; r++) + i[r] = W(e, r) ? t(e[r], e) : ''; + } + var o, + s = 'function' == typeof S ? S(e) : []; + if (x) { + o = {}; + for (var a = 0; a < s.length; a++) o['$' + s[a]] = s[a]; + } + for (var A in e) + W(e, A) && + ((n && String(Number(A)) === A && A < e.length) || + (x && o['$' + A] instanceof Symbol) || + (B.call(/[^\w$]/, A) + ? i.push(t(A, e) + ': ' + t(e[A], e)) + : i.push(A + ': ' + t(e[A], e)))); + if ('function' == typeof S) + for (var c = 0; c < s.length; c++) + D.call(e, s[c]) && + i.push('[' + t(s[c]) + ']: ' + t(e[s[c]], e)); + return i; + } + }, + 67943: (e, t, n) => { 'use strict'; - const {DOCUMENT_MODE: r} = n(16152), - i = 'html', + const {DOCUMENT_MODE: i} = n(89459), + r = 'html', o = [ '+//silmaril//dtd html pro v0r11 19970101//', '-//as//dtd html 3.0 aswedit + extensions//', @@ -42124,11 +42284,11 @@ '-//webtechs//dtd mozilla html 2.0//', '-//webtechs//dtd mozilla html//', ], - a = o.concat([ + s = o.concat([ '-//w3c//dtd html 4.01 frameset//', '-//w3c//dtd html 4.01 transitional//', ]), - s = [ + a = [ '-//w3o//dtd w3 html strict 3.0//en//', '-/w3c/dtd html 4.0 transitional/en', 'html', @@ -42152,45 +42312,45 @@ } (t.isConforming = function(e) { return ( - e.name === i && + e.name === r && null === e.publicId && (null === e.systemId || 'about:legacy-compat' === e.systemId) ); }), (t.getDocumentMode = function(e) { - if (e.name !== i) return r.QUIRKS; + if (e.name !== r) return i.QUIRKS; const t = e.systemId; if ( t && 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd' === t.toLowerCase() ) - return r.QUIRKS; + return i.QUIRKS; let n = e.publicId; if (null !== n) { - if (((n = n.toLowerCase()), s.indexOf(n) > -1)) - return r.QUIRKS; - let e = null === t ? a : o; - if (g(n, e)) return r.QUIRKS; + if (((n = n.toLowerCase()), a.indexOf(n) > -1)) + return i.QUIRKS; + let e = null === t ? s : o; + if (g(n, e)) return i.QUIRKS; if (((e = null === t ? A : c), g(n, e))) - return r.LIMITED_QUIRKS; + return i.LIMITED_QUIRKS; } - return r.NO_QUIRKS; + return i.NO_QUIRKS; }), (t.serializeContent = function(e, t, n) { - let r = '!DOCTYPE '; + let i = '!DOCTYPE '; return ( - e && (r += e), + e && (i += e), t - ? (r += ' PUBLIC ' + l(t)) - : n && (r += ' SYSTEM'), - null !== n && (r += ' ' + l(n)), - r + ? (i += ' PUBLIC ' + l(t)) + : n && (i += ' SYSTEM'), + null !== n && (i += ' ' + l(n)), + i ); }); }, - 41734: e => { + 25860: e => { 'use strict'; e.exports = { controlCharacterInInputStream: @@ -42288,13 +42448,13 @@ 'eof-in-element-that-can-contain-only-text', }; }, - 88779: (e, t, n) => { + 32198: (e, t, n) => { 'use strict'; - const r = n(55763), - i = n(16152), - o = i.TAG_NAMES, - a = i.NAMESPACES, - s = i.ATTRS, + const i = n(74820), + r = n(89459), + o = r.TAG_NAMES, + s = r.NAMESPACES, + a = r.ATTRS, A = 'text/html', c = 'application/xhtml+xml', l = { @@ -42361,58 +42521,58 @@ 'xlink:actuate': { prefix: 'xlink', name: 'actuate', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:arcrole': { prefix: 'xlink', name: 'arcrole', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:href': { prefix: 'xlink', name: 'href', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:role': { prefix: 'xlink', name: 'role', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:show': { prefix: 'xlink', name: 'show', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:title': { prefix: 'xlink', name: 'title', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xlink:type': { prefix: 'xlink', name: 'type', - namespace: a.XLINK, + namespace: s.XLINK, }, 'xml:base': { prefix: 'xml', name: 'base', - namespace: a.XML, + namespace: s.XML, }, 'xml:lang': { prefix: 'xml', name: 'lang', - namespace: a.XML, + namespace: s.XML, }, 'xml:space': { prefix: 'xml', name: 'space', - namespace: a.XML, + namespace: s.XML, }, - xmlns: {prefix: '', name: 'xmlns', namespace: a.XMLNS}, + xmlns: {prefix: '', name: 'xmlns', namespace: s.XMLNS}, 'xmlns:xlink': { prefix: 'xmlns', name: 'xlink', - namespace: a.XMLNS, + namespace: s.XMLNS, }, }, u = (t.SVG_TAG_NAMES_ADJUSTMENT_MAP = { @@ -42504,9 +42664,9 @@ return ( !!( t === o.FONT && - (null !== r.getTokenAttr(e, s.COLOR) || - null !== r.getTokenAttr(e, s.SIZE) || - null !== r.getTokenAttr(e, s.FACE)) + (null !== i.getTokenAttr(e, a.COLOR) || + null !== i.getTokenAttr(e, a.SIZE) || + null !== i.getTokenAttr(e, a.FACE)) ) || d[t] ); }), @@ -42536,24 +42696,24 @@ const t = u[e.tagName]; t && (e.tagName = t); }), - (t.isIntegrationPoint = function(e, t, n, r) { + (t.isIntegrationPoint = function(e, t, n, i) { return ( !( - (r && r !== a.HTML) || + (i && i !== s.HTML) || !(function(e, t, n) { if ( - t === a.MATHML && + t === s.MATHML && e === o.ANNOTATION_XML ) for (let e = 0; e < n.length; e++) - if (n[e].name === s.ENCODING) { + if (n[e].name === a.ENCODING) { const t = n[ e ].value.toLowerCase(); return t === A || t === c; } return ( - t === a.SVG && + t === s.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE) @@ -42561,10 +42721,10 @@ })(e, t, n) ) || !( - (r && r !== a.MATHML) || + (i && i !== s.MATHML) || !(function(e, t) { return ( - t === a.MATHML && + t === s.MATHML && (e === o.MI || e === o.MO || e === o.MN || @@ -42576,7 +42736,7 @@ ); }); }, - 16152: (e, t) => { + 89459: (e, t) => { 'use strict'; const n = (t.NAMESPACES = { HTML: 'http://www.w3.org/1999/xhtml', @@ -42601,7 +42761,7 @@ QUIRKS: 'quirks', LIMITED_QUIRKS: 'limited-quirks', }); - const r = (t.TAG_NAMES = { + const i = (t.TAG_NAMES = { A: 'a', ADDRESS: 'address', ANNOTATION_XML: 'annotation-xml', @@ -42727,104 +42887,104 @@ }); t.SPECIAL_ELEMENTS = { [n.HTML]: { - [r.ADDRESS]: !0, - [r.APPLET]: !0, - [r.AREA]: !0, - [r.ARTICLE]: !0, - [r.ASIDE]: !0, - [r.BASE]: !0, - [r.BASEFONT]: !0, - [r.BGSOUND]: !0, - [r.BLOCKQUOTE]: !0, - [r.BODY]: !0, - [r.BR]: !0, - [r.BUTTON]: !0, - [r.CAPTION]: !0, - [r.CENTER]: !0, - [r.COL]: !0, - [r.COLGROUP]: !0, - [r.DD]: !0, - [r.DETAILS]: !0, - [r.DIR]: !0, - [r.DIV]: !0, - [r.DL]: !0, - [r.DT]: !0, - [r.EMBED]: !0, - [r.FIELDSET]: !0, - [r.FIGCAPTION]: !0, - [r.FIGURE]: !0, - [r.FOOTER]: !0, - [r.FORM]: !0, - [r.FRAME]: !0, - [r.FRAMESET]: !0, - [r.H1]: !0, - [r.H2]: !0, - [r.H3]: !0, - [r.H4]: !0, - [r.H5]: !0, - [r.H6]: !0, - [r.HEAD]: !0, - [r.HEADER]: !0, - [r.HGROUP]: !0, - [r.HR]: !0, - [r.HTML]: !0, - [r.IFRAME]: !0, - [r.IMG]: !0, - [r.INPUT]: !0, - [r.LI]: !0, - [r.LINK]: !0, - [r.LISTING]: !0, - [r.MAIN]: !0, - [r.MARQUEE]: !0, - [r.MENU]: !0, - [r.META]: !0, - [r.NAV]: !0, - [r.NOEMBED]: !0, - [r.NOFRAMES]: !0, - [r.NOSCRIPT]: !0, - [r.OBJECT]: !0, - [r.OL]: !0, - [r.P]: !0, - [r.PARAM]: !0, - [r.PLAINTEXT]: !0, - [r.PRE]: !0, - [r.SCRIPT]: !0, - [r.SECTION]: !0, - [r.SELECT]: !0, - [r.SOURCE]: !0, - [r.STYLE]: !0, - [r.SUMMARY]: !0, - [r.TABLE]: !0, - [r.TBODY]: !0, - [r.TD]: !0, - [r.TEMPLATE]: !0, - [r.TEXTAREA]: !0, - [r.TFOOT]: !0, - [r.TH]: !0, - [r.THEAD]: !0, - [r.TITLE]: !0, - [r.TR]: !0, - [r.TRACK]: !0, - [r.UL]: !0, - [r.WBR]: !0, - [r.XMP]: !0, + [i.ADDRESS]: !0, + [i.APPLET]: !0, + [i.AREA]: !0, + [i.ARTICLE]: !0, + [i.ASIDE]: !0, + [i.BASE]: !0, + [i.BASEFONT]: !0, + [i.BGSOUND]: !0, + [i.BLOCKQUOTE]: !0, + [i.BODY]: !0, + [i.BR]: !0, + [i.BUTTON]: !0, + [i.CAPTION]: !0, + [i.CENTER]: !0, + [i.COL]: !0, + [i.COLGROUP]: !0, + [i.DD]: !0, + [i.DETAILS]: !0, + [i.DIR]: !0, + [i.DIV]: !0, + [i.DL]: !0, + [i.DT]: !0, + [i.EMBED]: !0, + [i.FIELDSET]: !0, + [i.FIGCAPTION]: !0, + [i.FIGURE]: !0, + [i.FOOTER]: !0, + [i.FORM]: !0, + [i.FRAME]: !0, + [i.FRAMESET]: !0, + [i.H1]: !0, + [i.H2]: !0, + [i.H3]: !0, + [i.H4]: !0, + [i.H5]: !0, + [i.H6]: !0, + [i.HEAD]: !0, + [i.HEADER]: !0, + [i.HGROUP]: !0, + [i.HR]: !0, + [i.HTML]: !0, + [i.IFRAME]: !0, + [i.IMG]: !0, + [i.INPUT]: !0, + [i.LI]: !0, + [i.LINK]: !0, + [i.LISTING]: !0, + [i.MAIN]: !0, + [i.MARQUEE]: !0, + [i.MENU]: !0, + [i.META]: !0, + [i.NAV]: !0, + [i.NOEMBED]: !0, + [i.NOFRAMES]: !0, + [i.NOSCRIPT]: !0, + [i.OBJECT]: !0, + [i.OL]: !0, + [i.P]: !0, + [i.PARAM]: !0, + [i.PLAINTEXT]: !0, + [i.PRE]: !0, + [i.SCRIPT]: !0, + [i.SECTION]: !0, + [i.SELECT]: !0, + [i.SOURCE]: !0, + [i.STYLE]: !0, + [i.SUMMARY]: !0, + [i.TABLE]: !0, + [i.TBODY]: !0, + [i.TD]: !0, + [i.TEMPLATE]: !0, + [i.TEXTAREA]: !0, + [i.TFOOT]: !0, + [i.TH]: !0, + [i.THEAD]: !0, + [i.TITLE]: !0, + [i.TR]: !0, + [i.TRACK]: !0, + [i.UL]: !0, + [i.WBR]: !0, + [i.XMP]: !0, }, [n.MATHML]: { - [r.MI]: !0, - [r.MO]: !0, - [r.MN]: !0, - [r.MS]: !0, - [r.MTEXT]: !0, - [r.ANNOTATION_XML]: !0, + [i.MI]: !0, + [i.MO]: !0, + [i.MN]: !0, + [i.MS]: !0, + [i.MTEXT]: !0, + [i.ANNOTATION_XML]: !0, }, [n.SVG]: { - [r.TITLE]: !0, - [r.FOREIGN_OBJECT]: !0, - [r.DESC]: !0, + [i.TITLE]: !0, + [i.FOREIGN_OBJECT]: !0, + [i.DESC]: !0, }, }; }, - 54284: (e, t) => { + 72791: (e, t) => { 'use strict'; const n = [ 65534, @@ -42930,10 +43090,10 @@ return (e >= 64976 && e <= 65007) || n.indexOf(e) > -1; }); }, - 23843: (e, t, n) => { + 77646: (e, t, n) => { 'use strict'; - const r = n(81704); - e.exports = class extends r { + const i = n(19); + e.exports = class extends i { constructor(e, t) { super(e), (this.posTracker = null), @@ -42965,13 +43125,13 @@ } }; }, - 22232: (e, t, n) => { + 28096: (e, t, n) => { 'use strict'; - const r = n(23843), - i = n(70050), - o = n(46110), - a = n(81704); - e.exports = class extends r { + const i = n(77646), + r = n(82031), + o = n(51440), + s = n(19); + e.exports = class extends i { constructor(e, t) { super(e, t), (this.opts = t), @@ -42995,10 +43155,10 @@ } _getOverriddenMethods(e, t) { return { - _bootstrap(n, r) { - t._bootstrap.call(this, n, r), - a.install(this.tokenizer, i, e.opts), - a.install(this.tokenizer, o); + _bootstrap(n, i) { + t._bootstrap.call(this, n, i), + s.install(this.tokenizer, r, e.opts), + s.install(this.tokenizer, o); }, _processInputToken(n) { (e.ctLoc = n.location), @@ -43012,15 +43172,15 @@ } }; }, - 23288: (e, t, n) => { + 92177: (e, t, n) => { 'use strict'; - const r = n(23843), - i = n(57930), - o = n(81704); - e.exports = class extends r { + const i = n(77646), + r = n(83544), + o = n(19); + e.exports = class extends i { constructor(e, t) { super(e, t), - (this.posTracker = o.install(e, i)), + (this.posTracker = o.install(e, r)), (this.lastErrOffset = -1); } _reportError(e) { @@ -43030,23 +43190,23 @@ } }; }, - 70050: (e, t, n) => { + 82031: (e, t, n) => { 'use strict'; - const r = n(23843), - i = n(23288), - o = n(81704); - e.exports = class extends r { + const i = n(77646), + r = n(92177), + o = n(19); + e.exports = class extends i { constructor(e, t) { super(e, t); - const n = o.install(e.preprocessor, i, t); + const n = o.install(e.preprocessor, r, t); this.posTracker = n.posTracker; } }; }, - 11077: (e, t, n) => { + 62476: (e, t, n) => { 'use strict'; - const r = n(81704); - e.exports = class extends r { + const i = n(19); + e.exports = class extends i { constructor(e, t) { super(e), (this.onItemPop = t.onItemPop); } @@ -43068,14 +43228,14 @@ } }; }, - 452: (e, t, n) => { + 51579: (e, t, n) => { 'use strict'; - const r = n(81704), - i = n(55763), - o = n(46110), - a = n(11077), - s = n(16152).TAG_NAMES; - e.exports = class extends r { + const i = n(19), + r = n(74820), + o = n(51440), + s = n(62476), + a = n(89459).TAG_NAMES; + e.exports = class extends i { constructor(e) { super(e), (this.parser = e), @@ -43101,9 +43261,9 @@ t.location ) { const n = t.location, - r = this.treeAdapter.getTagName(e), + i = this.treeAdapter.getTagName(e), o = {}; - t.type === i.END_TAG_TOKEN && r === t.tagName + t.type === r.END_TAG_TOKEN && i === t.tagName ? ((o.endTag = Object.assign({}, n)), (o.endLine = n.endLine), (o.endCol = n.endCol), @@ -43119,14 +43279,14 @@ } _getOverriddenMethods(e, t) { return { - _bootstrap(n, i) { - t._bootstrap.call(this, n, i), + _bootstrap(n, r) { + t._bootstrap.call(this, n, r), (e.lastStartTagToken = null), (e.lastFosterParentingLocation = null), (e.currentToken = null); - const s = r.install(this.tokenizer, o); - (e.posTracker = s.posTracker), - r.install(this.openElements, a, { + const a = i.install(this.tokenizer, o); + (e.posTracker = a.posTracker), + i.install(this.openElements, s, { onItemPop: function(t) { e._setEndLocation( t, @@ -43158,11 +43318,11 @@ (e.currentToken = n), t._processToken.call(this, n); if ( - n.type === i.END_TAG_TOKEN && - (n.tagName === s.HTML || - (n.tagName === s.BODY && + n.type === r.END_TAG_TOKEN && + (n.tagName === a.HTML || + (n.tagName === a.BODY && this.openElements.hasInScope( - s.BODY + a.BODY ))) ) for ( @@ -43170,12 +43330,12 @@ t >= 0; t-- ) { - const r = this.openElements.items[t]; + const i = this.openElements.items[t]; if ( - this.treeAdapter.getTagName(r) === + this.treeAdapter.getTagName(i) === n.tagName ) { - e._setEndLocation(r, n); + e._setEndLocation(i, n); break; } } @@ -43185,14 +43345,14 @@ const n = this.treeAdapter.getChildNodes( this.document ), - r = n.length; - for (let t = 0; t < r; t++) { - const r = n[t]; + i = n.length; + for (let t = 0; t < i; t++) { + const i = n[t]; if ( - this.treeAdapter.isDocumentTypeNode(r) + this.treeAdapter.isDocumentTypeNode(i) ) { this.treeAdapter.setNodeSourceCodeLocation( - r, + i, e.location ); break; @@ -43204,22 +43364,22 @@ (e.lastStartTagToken = null), t._attachElementToTree.call(this, n); }, - _appendElement(n, r) { + _appendElement(n, i) { (e.lastStartTagToken = n), - t._appendElement.call(this, n, r); + t._appendElement.call(this, n, i); }, - _insertElement(n, r) { + _insertElement(n, i) { (e.lastStartTagToken = n), - t._insertElement.call(this, n, r); + t._insertElement.call(this, n, i); }, _insertTemplate(n) { (e.lastStartTagToken = n), t._insertTemplate.call(this, n); - const r = this.treeAdapter.getTemplateContent( + const i = this.treeAdapter.getTemplateContent( this.openElements.current ); this.treeAdapter.setNodeSourceCodeLocation( - r, + i, null ); }, @@ -43232,10 +43392,10 @@ }, _appendCommentNode(e, n) { t._appendCommentNode.call(this, e, n); - const r = this.treeAdapter.getChildNodes(n), - i = r[r.length - 1]; + const i = this.treeAdapter.getChildNodes(n), + r = i[i.length - 1]; this.treeAdapter.setNodeSourceCodeLocation( - i, + r, e.location ); }, @@ -43249,16 +43409,16 @@ }, _insertCharacters(n) { t._insertCharacters.call(this, n); - const r = this._shouldFosterParentOnInsertion(), - i = - (r && + const i = this._shouldFosterParentOnInsertion(), + r = + (i && e.lastFosterParentingLocation .parent) || this.openElements.currentTmplContent || this.openElements.current, - o = this.treeAdapter.getChildNodes(i), - a = - r && + o = this.treeAdapter.getChildNodes(r), + s = + i && e.lastFosterParentingLocation .beforeElement ? o.indexOf( @@ -43266,24 +43426,24 @@ .beforeElement ) - 1 : o.length - 1, - s = o[a]; + a = o[s]; if ( this.treeAdapter.getNodeSourceCodeLocation( - s + a ) ) { const { endLine: e, endCol: t, - endOffset: r, + endOffset: i, } = n.location; this.treeAdapter.updateNodeSourceCodeLocation( - s, - {endLine: e, endCol: t, endOffset: r} + a, + {endLine: e, endCol: t, endOffset: i} ); } else this.treeAdapter.setNodeSourceCodeLocation( - s, + a, n.location ); }, @@ -43291,16 +43451,16 @@ } }; }, - 46110: (e, t, n) => { + 51440: (e, t, n) => { 'use strict'; - const r = n(81704), - i = n(55763), - o = n(57930); - e.exports = class extends r { + const i = n(19), + r = n(74820), + o = n(83544); + e.exports = class extends i { constructor(e) { super(e), (this.tokenizer = e), - (this.posTracker = r.install(e.preprocessor, o)), + (this.posTracker = i.install(e.preprocessor, o)), (this.currentAttrLocation = null), (this.ctLoc = null); } @@ -43344,8 +43504,8 @@ t._createDoctypeToken.call(this, n), (this.currentToken.location = e.ctLoc); }, - _createCharacterToken(n, r) { - t._createCharacterToken.call(this, n, r), + _createCharacterToken(n, i) { + t._createCharacterToken.call(this, n, i), (this.currentCharacterToken.location = e.ctLoc); }, @@ -43374,7 +43534,7 @@ n.startCol), (this.currentCharacterToken.location.endOffset = n.startOffset)), - this.currentToken.type === i.EOF_TOKEN + this.currentToken.type === r.EOF_TOKEN ? ((n.endLine = n.startLine), (n.endCol = n.startCol), (n.endOffset = n.startOffset)) @@ -43397,8 +43557,8 @@ }, }; return ( - Object.keys(i.MODE).forEach(r => { - const o = i.MODE[r]; + Object.keys(r.MODE).forEach(i => { + const o = r.MODE[i]; n[o] = function(n) { (e.ctLoc = e._getCurrentLocation()), t[o].call(this, n); @@ -43409,10 +43569,10 @@ } }; }, - 57930: (e, t, n) => { + 83544: (e, t, n) => { 'use strict'; - const r = n(81704); - e.exports = class extends r { + const i = n(19); + e.exports = class extends i { constructor(e) { super(e), (this.preprocessor = e), @@ -43427,14 +43587,14 @@ return { advance() { const n = this.pos + 1, - r = this.html[n]; + i = this.html[n]; return ( e.isEol && ((e.isEol = !1), e.line++, (e.lineStartPos = n)), - ('\n' === r || - ('\r' === r && + ('\n' === i || + ('\r' === i && '\n' !== this.html[n + 1])) && (e.isEol = !0), (e.col = n - e.lineStartPos + 1), @@ -43450,16 +43610,16 @@ dropParsedChunk() { const n = this.pos; t.dropParsedChunk.call(this); - const r = n - this.pos; - (e.lineStartPos -= r), - (e.droppedBufferSize += r), + const i = n - this.pos; + (e.lineStartPos -= i), + (e.droppedBufferSize += i), (e.offset = e.droppedBufferSize + this.pos); }, }; } }; }, - 12484: e => { + 34486: e => { 'use strict'; class t { constructor(e) { @@ -43471,17 +43631,17 @@ _getNoahArkConditionCandidates(e) { const n = []; if (this.length >= 3) { - const r = this.treeAdapter.getAttrList(e).length, - i = this.treeAdapter.getTagName(e), + const i = this.treeAdapter.getAttrList(e).length, + r = this.treeAdapter.getTagName(e), o = this.treeAdapter.getNamespaceURI(e); for (let e = this.length - 1; e >= 0; e--) { - const a = this.entries[e]; - if (a.type === t.MARKER_ENTRY) break; - const s = a.element, - A = this.treeAdapter.getAttrList(s); - this.treeAdapter.getTagName(s) === i && - this.treeAdapter.getNamespaceURI(s) === o && - A.length === r && + const s = this.entries[e]; + if (s.type === t.MARKER_ENTRY) break; + const a = s.element, + A = this.treeAdapter.getAttrList(a); + this.treeAdapter.getTagName(a) === r && + this.treeAdapter.getNamespaceURI(a) === o && + A.length === i && n.push({idx: e, attrs: A}); } } @@ -43491,19 +43651,19 @@ const t = this._getNoahArkConditionCandidates(e); let n = t.length; if (n) { - const r = this.treeAdapter.getAttrList(e), - i = r.length, + const i = this.treeAdapter.getAttrList(e), + r = i.length, o = Object.create(null); - for (let e = 0; e < i; e++) { - const t = r[e]; + for (let e = 0; e < r; e++) { + const t = i[e]; o[t.name] = t.value; } - for (let e = 0; e < i; e++) - for (let r = 0; r < n; r++) { - const i = t[r].attrs[e]; + for (let e = 0; e < r; e++) + for (let i = 0; i < n; i++) { + const r = t[i].attrs[e]; if ( - (o[i.name] !== i.value && - (t.splice(r, 1), n--), + (o[r.name] !== r.value && + (t.splice(i, 1), n--), t.length < 3) ) return; @@ -43526,13 +43686,13 @@ this.length++; } insertElementAfterBookmark(e, n) { - let r = this.length - 1; + let i = this.length - 1; for ( ; - r >= 0 && this.entries[r] !== this.bookmark; - r-- + i >= 0 && this.entries[i] !== this.bookmark; + i-- ); - this.entries.splice(r + 1, 0, { + this.entries.splice(i + 1, 0, { type: t.ELEMENT_ENTRY, element: e, token: n, @@ -43555,18 +43715,18 @@ } getElementEntryInScopeWithTagName(e) { for (let n = this.length - 1; n >= 0; n--) { - const r = this.entries[n]; - if (r.type === t.MARKER_ENTRY) return null; - if (this.treeAdapter.getTagName(r.element) === e) - return r; + const i = this.entries[n]; + if (i.type === t.MARKER_ENTRY) return null; + if (this.treeAdapter.getTagName(i.element) === e) + return i; } return null; } getElementEntry(e) { for (let n = this.length - 1; n >= 0; n--) { - const r = this.entries[n]; - if (r.type === t.ELEMENT_ENTRY && r.element === e) - return r; + const i = this.entries[n]; + if (i.type === t.ELEMENT_ENTRY && i.element === e) + return i; } return null; } @@ -43575,21 +43735,21 @@ (t.ELEMENT_ENTRY = 'ELEMENT_ENTRY'), (e.exports = t); }, - 7045: (e, t, n) => { + 96328: (e, t, n) => { 'use strict'; - const r = n(55763), - i = n(46519), - o = n(12484), - a = n(452), - s = n(22232), - A = n(81704), - c = n(17296), - l = n(8904), - g = n(31515), - u = n(88779), - d = n(41734), - h = n(54284), - C = n(16152), + const i = n(74820), + r = n(30612), + o = n(34486), + s = n(51579), + a = n(28096), + A = n(19), + c = n(79085), + l = n(30103), + g = n(67943), + u = n(32198), + d = n(25860), + h = n(72791), + C = n(89459), I = C.TAG_NAMES, p = C.NAMESPACES, m = C.ATTRS, @@ -43604,13 +43764,13 @@ B = 'BEFORE_HTML_MODE', w = 'BEFORE_HEAD_MODE', b = 'IN_HEAD_MODE', - v = 'IN_HEAD_NO_SCRIPT_MODE', - M = 'AFTER_HEAD_MODE', + M = 'IN_HEAD_NO_SCRIPT_MODE', + v = 'AFTER_HEAD_MODE', N = 'IN_BODY_MODE', S = 'TEXT_MODE', Q = 'IN_TABLE_MODE', - F = 'IN_TABLE_TEXT_MODE', - x = 'IN_CAPTION_MODE', + x = 'IN_TABLE_TEXT_MODE', + F = 'IN_CAPTION_MODE', D = 'IN_COLUMN_GROUP_MODE', T = 'IN_TABLE_BODY_MODE', Y = 'IN_ROW_MODE', @@ -43618,21 +43778,21 @@ _ = 'IN_SELECT_MODE', U = 'IN_SELECT_IN_TABLE_MODE', O = 'IN_TEMPLATE_MODE', - k = 'AFTER_BODY_MODE', - G = 'IN_FRAMESET_MODE', - L = 'AFTER_FRAMESET_MODE', - j = 'AFTER_AFTER_BODY_MODE', - z = 'AFTER_AFTER_FRAMESET_MODE', + G = 'AFTER_BODY_MODE', + L = 'IN_FRAMESET_MODE', + k = 'AFTER_FRAMESET_MODE', + z = 'AFTER_AFTER_BODY_MODE', + j = 'AFTER_AFTER_FRAMESET_MODE', P = { [I.TR]: Y, [I.TBODY]: T, [I.THEAD]: T, [I.TFOOT]: T, - [I.CAPTION]: x, + [I.CAPTION]: F, [I.COLGROUP]: D, [I.TABLE]: Q, [I.BODY]: N, - [I.FRAMESET]: G, + [I.FRAMESET]: L, }, H = { [I.CAPTION]: Q, @@ -43647,11 +43807,11 @@ }, J = { [y]: { - [r.CHARACTER_TOKEN]: ae, - [r.NULL_CHARACTER_TOKEN]: ae, - [r.WHITESPACE_CHARACTER_TOKEN]: ee, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: se, + [i.NULL_CHARACTER_TOKEN]: se, + [i.WHITESPACE_CHARACTER_TOKEN]: ee, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: function(e, t) { e._setDocumentType(t); const n = t.forceQuirks ? C.DOCUMENT_MODE.QUIRKS @@ -43661,49 +43821,49 @@ e.treeAdapter.setDocumentMode(e.document, n), (e.insertionMode = B); }, - [r.START_TAG_TOKEN]: ae, - [r.END_TAG_TOKEN]: ae, - [r.EOF_TOKEN]: ae, + [i.START_TAG_TOKEN]: se, + [i.END_TAG_TOKEN]: se, + [i.EOF_TOKEN]: se, }, [B]: { - [r.CHARACTER_TOKEN]: se, - [r.NULL_CHARACTER_TOKEN]: se, - [r.WHITESPACE_CHARACTER_TOKEN]: ee, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: ae, + [i.NULL_CHARACTER_TOKEN]: ae, + [i.WHITESPACE_CHARACTER_TOKEN]: ee, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { t.tagName === I.HTML ? (e._insertElement(t, p.HTML), (e.insertionMode = w)) - : se(e, t); + : ae(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; (n !== I.HTML && n !== I.HEAD && n !== I.BODY && n !== I.BR) || - se(e, t); + ae(e, t); }, - [r.EOF_TOKEN]: se, + [i.EOF_TOKEN]: ae, }, [w]: { - [r.CHARACTER_TOKEN]: Ae, - [r.NULL_CHARACTER_TOKEN]: Ae, - [r.WHITESPACE_CHARACTER_TOKEN]: ee, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: te, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: Ae, + [i.NULL_CHARACTER_TOKEN]: Ae, + [i.WHITESPACE_CHARACTER_TOKEN]: ee, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: te, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.HEAD ? (e._insertElement(t, p.HTML), (e.headElement = e.openElements.current), (e.insertionMode = b)) : Ae(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HEAD || n === I.BODY || @@ -43714,28 +43874,28 @@ d.endTagWithoutMatchingOpenElement ); }, - [r.EOF_TOKEN]: Ae, + [i.EOF_TOKEN]: Ae, }, [b]: { - [r.CHARACTER_TOKEN]: ge, - [r.NULL_CHARACTER_TOKEN]: ge, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: te, - [r.START_TAG_TOKEN]: ce, - [r.END_TAG_TOKEN]: le, - [r.EOF_TOKEN]: ge, + [i.CHARACTER_TOKEN]: ge, + [i.NULL_CHARACTER_TOKEN]: ge, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: te, + [i.START_TAG_TOKEN]: ce, + [i.END_TAG_TOKEN]: le, + [i.EOF_TOKEN]: ge, }, - [v]: { - [r.CHARACTER_TOKEN]: ue, - [r.NULL_CHARACTER_TOKEN]: ue, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: te, - [r.START_TAG_TOKEN]: function(e, t) { + [M]: { + [i.CHARACTER_TOKEN]: ue, + [i.NULL_CHARACTER_TOKEN]: ue, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: te, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.BASEFONT || n === I.BGSOUND || n === I.HEAD || @@ -43748,7 +43908,7 @@ ? e._err(d.nestedNoscriptInHead) : ue(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.NOSCRIPT ? (e.openElements.pop(), @@ -43759,25 +43919,25 @@ d.endTagWithoutMatchingOpenElement ); }, - [r.EOF_TOKEN]: ue, + [i.EOF_TOKEN]: ue, }, - [M]: { - [r.CHARACTER_TOKEN]: de, - [r.NULL_CHARACTER_TOKEN]: de, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: te, - [r.START_TAG_TOKEN]: function(e, t) { + [v]: { + [i.CHARACTER_TOKEN]: de, + [i.NULL_CHARACTER_TOKEN]: de, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: te, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.BODY ? (e._insertElement(t, p.HTML), (e.framesetOk = !1), (e.insertionMode = N)) : n === I.FRAMESET ? (e._insertElement(t, p.HTML), - (e.insertionMode = G)) + (e.insertionMode = L)) : n === I.BASE || n === I.BASEFONT || n === I.BGSOUND || @@ -43796,7 +43956,7 @@ ? e._err(d.misplacedStartTagForHeadElement) : de(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.BODY || n === I.HTML || n === I.BR ? de(e, t) @@ -43806,32 +43966,32 @@ d.endTagWithoutMatchingOpenElement ); }, - [r.EOF_TOKEN]: de, + [i.EOF_TOKEN]: de, }, [N]: { - [r.CHARACTER_TOKEN]: Ce, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: Me, - [r.END_TAG_TOKEN]: Fe, - [r.EOF_TOKEN]: xe, + [i.CHARACTER_TOKEN]: Ce, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: ve, + [i.END_TAG_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [S]: { - [r.CHARACTER_TOKEN]: ie, - [r.NULL_CHARACTER_TOKEN]: ie, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ee, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: ee, - [r.END_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: re, + [i.NULL_CHARACTER_TOKEN]: re, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ee, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: ee, + [i.END_TAG_TOKEN]: function(e, t) { t.tagName === I.SCRIPT && (e.pendingScript = e.openElements.current); e.openElements.pop(), (e.insertionMode = e.originalInsertionMode); }, - [r.EOF_TOKEN]: function(e, t) { + [i.EOF_TOKEN]: function(e, t) { e._err(d.eofInElementThatCanContainOnlyText), e.openElements.pop(), (e.insertionMode = e.originalInsertionMode), @@ -43839,37 +43999,37 @@ }, }, [Q]: { - [r.CHARACTER_TOKEN]: De, - [r.NULL_CHARACTER_TOKEN]: De, - [r.WHITESPACE_CHARACTER_TOKEN]: De, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: Te, - [r.END_TAG_TOKEN]: Ye, - [r.EOF_TOKEN]: xe, + [i.CHARACTER_TOKEN]: De, + [i.NULL_CHARACTER_TOKEN]: De, + [i.WHITESPACE_CHARACTER_TOKEN]: De, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: Te, + [i.END_TAG_TOKEN]: Ye, + [i.EOF_TOKEN]: Fe, }, - [F]: { - [r.CHARACTER_TOKEN]: function(e, t) { + [x]: { + [i.CHARACTER_TOKEN]: function(e, t) { e.pendingCharacterTokens.push(t), (e.hasNonWhitespacePendingCharacterToken = !0); }, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: function(e, t) { + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: function(e, t) { e.pendingCharacterTokens.push(t); }, - [r.COMMENT_TOKEN]: _e, - [r.DOCTYPE_TOKEN]: _e, - [r.START_TAG_TOKEN]: _e, - [r.END_TAG_TOKEN]: _e, - [r.EOF_TOKEN]: _e, + [i.COMMENT_TOKEN]: _e, + [i.DOCTYPE_TOKEN]: _e, + [i.START_TAG_TOKEN]: _e, + [i.END_TAG_TOKEN]: _e, + [i.EOF_TOKEN]: _e, }, - [x]: { - [r.CHARACTER_TOKEN]: Ce, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [F]: { + [i.CHARACTER_TOKEN]: Ce, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.CAPTION || n === I.COL || @@ -43890,9 +44050,9 @@ e.activeFormattingElements.clearToLastMarker(), (e.insertionMode = Q), e._processToken(t)) - : Me(e, t); + : ve(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.CAPTION || n === I.TABLE ? e.openElements.hasInTableScope( @@ -43915,20 +44075,20 @@ n !== I.TH && n !== I.THEAD && n !== I.TR && - Fe(e, t); + xe(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [D]: { - [r.CHARACTER_TOKEN]: Ue, - [r.NULL_CHARACTER_TOKEN]: Ue, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: Ue, + [i.NULL_CHARACTER_TOKEN]: Ue, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.COL ? (e._appendElement(t, p.HTML), (t.ackSelfClosing = !0)) @@ -43936,7 +44096,7 @@ ? ce(e, t) : Ue(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.COLGROUP ? e.openElements.currentTagName === @@ -43947,15 +44107,15 @@ ? le(e, t) : n !== I.COL && Ue(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [T]: { - [r.CHARACTER_TOKEN]: De, - [r.NULL_CHARACTER_TOKEN]: De, - [r.WHITESPACE_CHARACTER_TOKEN]: De, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: De, + [i.NULL_CHARACTER_TOKEN]: De, + [i.WHITESPACE_CHARACTER_TOKEN]: De, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.TR ? (e.openElements.clearBackToTableBodyContext(), @@ -43979,7 +44139,7 @@ e._processToken(t)) : Te(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.TBODY || n === I.TFOOT || n === I.THEAD ? e.openElements.hasInTableScope(n) && @@ -44002,15 +44162,15 @@ n !== I.TR)) && Ye(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [Y]: { - [r.CHARACTER_TOKEN]: De, - [r.NULL_CHARACTER_TOKEN]: De, - [r.WHITESPACE_CHARACTER_TOKEN]: De, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: De, + [i.NULL_CHARACTER_TOKEN]: De, + [i.WHITESPACE_CHARACTER_TOKEN]: De, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.TH || n === I.TD ? (e.openElements.clearBackToTableRowContext(), @@ -44031,7 +44191,7 @@ e._processToken(t)) : Te(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.TR ? e.openElements.hasInTableScope(I.TR) && @@ -44064,15 +44224,15 @@ n !== I.TH)) && Ye(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [R]: { - [r.CHARACTER_TOKEN]: Ce, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: Ce, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.CAPTION || n === I.COL || @@ -44088,9 +44248,9 @@ I.TH )) && (e._closeTableCell(), e._processToken(t)) - : Me(e, t); + : ve(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.TD || n === I.TH ? e.openElements.hasInTableScope(n) && @@ -44110,27 +44270,27 @@ n !== I.COL && n !== I.COLGROUP && n !== I.HTML && - Fe(e, t); + xe(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [_]: { - [r.CHARACTER_TOKEN]: ie, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: Oe, - [r.END_TAG_TOKEN]: ke, - [r.EOF_TOKEN]: xe, + [i.CHARACTER_TOKEN]: re, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: Oe, + [i.END_TAG_TOKEN]: Ge, + [i.EOF_TOKEN]: Fe, }, [U]: { - [r.CHARACTER_TOKEN]: ie, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: re, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.CAPTION || n === I.TABLE || @@ -44147,7 +44307,7 @@ e._processToken(t)) : Oe(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.CAPTION || n === I.TABLE || @@ -44163,17 +44323,17 @@ ), e._resetInsertionMode(), e._processToken(t)) - : ke(e, t); + : Ge(e, t); }, - [r.EOF_TOKEN]: xe, + [i.EOF_TOKEN]: Fe, }, [O]: { - [r.CHARACTER_TOKEN]: Ce, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [i.CHARACTER_TOKEN]: Ce, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; if ( n === I.BASE || @@ -44189,49 +44349,49 @@ ) ce(e, t); else { - const r = H[n] || N; + const i = H[n] || N; e._popTmplInsertionMode(), - e._pushTmplInsertionMode(r), - (e.insertionMode = r), + e._pushTmplInsertionMode(i), + (e.insertionMode = i), e._processToken(t); } }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { t.tagName === I.TEMPLATE && le(e, t); }, - [r.EOF_TOKEN]: Ge, + [i.EOF_TOKEN]: Le, }, - [k]: { - [r.CHARACTER_TOKEN]: Le, - [r.NULL_CHARACTER_TOKEN]: Le, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: function(e, t) { + [G]: { + [i.CHARACTER_TOKEN]: ke, + [i.NULL_CHARACTER_TOKEN]: ke, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: function(e, t) { e._appendCommentNode( t, e.openElements.items[0] ); }, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { - t.tagName === I.HTML ? Me(e, t) : Le(e, t); + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { + t.tagName === I.HTML ? ve(e, t) : ke(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { t.tagName === I.HTML - ? e.fragmentContext || (e.insertionMode = j) - : Le(e, t); + ? e.fragmentContext || (e.insertionMode = z) + : ke(e, t); }, - [r.EOF_TOKEN]: oe, + [i.EOF_TOKEN]: oe, }, - [G]: { - [r.CHARACTER_TOKEN]: ee, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [L]: { + [i.CHARACTER_TOKEN]: ee, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.FRAMESET ? e._insertElement(t, p.HTML) : n === I.FRAME @@ -44239,60 +44399,60 @@ (t.ackSelfClosing = !0)) : n === I.NOFRAMES && ce(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { + [i.END_TAG_TOKEN]: function(e, t) { t.tagName !== I.FRAMESET || e.openElements.isRootHtmlElementCurrent() || (e.openElements.pop(), e.fragmentContext || e.openElements.currentTagName === I.FRAMESET || - (e.insertionMode = L)); + (e.insertionMode = k)); }, - [r.EOF_TOKEN]: oe, + [i.EOF_TOKEN]: oe, }, - [L]: { - [r.CHARACTER_TOKEN]: ee, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: ie, - [r.COMMENT_TOKEN]: ne, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [k]: { + [i.CHARACTER_TOKEN]: ee, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: re, + [i.COMMENT_TOKEN]: ne, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.NOFRAMES && ce(e, t); }, - [r.END_TAG_TOKEN]: function(e, t) { - t.tagName === I.HTML && (e.insertionMode = z); + [i.END_TAG_TOKEN]: function(e, t) { + t.tagName === I.HTML && (e.insertionMode = j); }, - [r.EOF_TOKEN]: oe, + [i.EOF_TOKEN]: oe, }, - [j]: { - [r.CHARACTER_TOKEN]: je, - [r.NULL_CHARACTER_TOKEN]: je, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: re, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { - t.tagName === I.HTML ? Me(e, t) : je(e, t); + [z]: { + [i.CHARACTER_TOKEN]: ze, + [i.NULL_CHARACTER_TOKEN]: ze, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ie, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { + t.tagName === I.HTML ? ve(e, t) : ze(e, t); }, - [r.END_TAG_TOKEN]: je, - [r.EOF_TOKEN]: oe, + [i.END_TAG_TOKEN]: ze, + [i.EOF_TOKEN]: oe, }, - [z]: { - [r.CHARACTER_TOKEN]: ee, - [r.NULL_CHARACTER_TOKEN]: ee, - [r.WHITESPACE_CHARACTER_TOKEN]: he, - [r.COMMENT_TOKEN]: re, - [r.DOCTYPE_TOKEN]: ee, - [r.START_TAG_TOKEN]: function(e, t) { + [j]: { + [i.CHARACTER_TOKEN]: ee, + [i.NULL_CHARACTER_TOKEN]: ee, + [i.WHITESPACE_CHARACTER_TOKEN]: he, + [i.COMMENT_TOKEN]: ie, + [i.DOCTYPE_TOKEN]: ee, + [i.START_TAG_TOKEN]: function(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.NOFRAMES && ce(e, t); }, - [r.END_TAG_TOKEN]: ee, - [r.EOF_TOKEN]: oe, + [i.END_TAG_TOKEN]: ee, + [i.EOF_TOKEN]: oe, }, }; function W(e, t) { @@ -44312,10 +44472,10 @@ } function V(e, t) { let n = null; - for (let r = e.openElements.stackTop; r >= 0; r--) { - const i = e.openElements.items[r]; - if (i === t.element) break; - e._isSpecialElement(i) && (n = i); + for (let i = e.openElements.stackTop; i >= 0; i--) { + const r = e.openElements.items[i]; + if (r === t.element) break; + e._isSpecialElement(r) && (n = r); } return ( n || @@ -44325,51 +44485,51 @@ ); } function K(e, t, n) { - let r = t, - i = e.openElements.getCommonAncestor(t); - for (let o = 0, a = i; a !== n; o++, a = i) { - i = e.openElements.getCommonAncestor(a); - const n = e.activeFormattingElements.getElementEntry(a), - s = n && o >= 3; - !n || s - ? (s && e.activeFormattingElements.removeEntry(n), - e.openElements.remove(a)) - : ((a = Z(e, n)), - r === t && + let i = t, + r = e.openElements.getCommonAncestor(t); + for (let o = 0, s = r; s !== n; o++, s = r) { + r = e.openElements.getCommonAncestor(s); + const n = e.activeFormattingElements.getElementEntry(s), + a = n && o >= 3; + !n || a + ? (a && e.activeFormattingElements.removeEntry(n), + e.openElements.remove(s)) + : ((s = Z(e, n)), + i === t && (e.activeFormattingElements.bookmark = n), - e.treeAdapter.detachNode(r), - e.treeAdapter.appendChild(a, r), - (r = a)); + e.treeAdapter.detachNode(i), + e.treeAdapter.appendChild(s, i), + (i = s)); } - return r; + return i; } function Z(e, t) { const n = e.treeAdapter.getNamespaceURI(t.element), - r = e.treeAdapter.createElement( + i = e.treeAdapter.createElement( t.token.tagName, n, t.token.attrs ); return ( - e.openElements.replace(t.element, r), (t.element = r), r + e.openElements.replace(t.element, i), (t.element = i), i ); } function X(e, t, n) { if (e._isElementCausesFosterParenting(t)) e._fosterParentElement(n); else { - const r = e.treeAdapter.getTagName(t), - i = e.treeAdapter.getNamespaceURI(t); - r === I.TEMPLATE && - i === p.HTML && + const i = e.treeAdapter.getTagName(t), + r = e.treeAdapter.getNamespaceURI(t); + i === I.TEMPLATE && + r === p.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n); } } function q(e, t, n) { - const r = e.treeAdapter.getNamespaceURI(n.element), - i = n.token, - o = e.treeAdapter.createElement(i.tagName, r, i.attrs); + const i = e.treeAdapter.getNamespaceURI(n.element), + r = n.token, + o = e.treeAdapter.createElement(r.tagName, i, r.attrs); e._adoptNodes(t, o), e.treeAdapter.appendChild(t, o), e.activeFormattingElements.insertElementAfterBookmark( @@ -44382,13 +44542,13 @@ } function $(e, t) { let n; - for (let r = 0; r < 8 && ((n = W(e, t)), n); r++) { + for (let i = 0; i < 8 && ((n = W(e, t)), n); i++) { const t = V(e, n); if (!t) break; e.activeFormattingElements.bookmark = n; - const r = K(e, t, n.element), - i = e.openElements.getCommonAncestor(n.element); - e.treeAdapter.detachNode(r), X(e, i, r), q(e, t, n); + const i = K(e, t, n.element), + r = e.openElements.getCommonAncestor(n.element); + e.treeAdapter.detachNode(i), X(e, r, i), q(e, t, n); } } function ee() {} @@ -44402,16 +44562,16 @@ e.openElements.current ); } - function re(e, t) { + function ie(e, t) { e._appendCommentNode(t, e.document); } - function ie(e, t) { + function re(e, t) { e._insertCharacters(t); } function oe(e) { e.stopped = !0; } - function ae(e, t) { + function se(e, t) { e._err(d.missingDoctype, {beforeToken: !0}), e.treeAdapter.setDocumentMode( e.document, @@ -44420,7 +44580,7 @@ (e.insertionMode = B), e._processToken(t); } - function se(e, t) { + function ae(e, t) { e._insertFakeRootElement(), (e.insertionMode = w), e._processToken(t); @@ -44434,7 +44594,7 @@ function ce(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.BASE || n === I.BASEFONT || n === I.BGSOUND || @@ -44442,16 +44602,16 @@ n === I.META ? (e._appendElement(t, p.HTML), (t.ackSelfClosing = !0)) : n === I.TITLE - ? e._switchToTextParsing(t, r.MODE.RCDATA) + ? e._switchToTextParsing(t, i.MODE.RCDATA) : n === I.NOSCRIPT ? e.options.scriptingEnabled - ? e._switchToTextParsing(t, r.MODE.RAWTEXT) + ? e._switchToTextParsing(t, i.MODE.RAWTEXT) : (e._insertElement(t, p.HTML), - (e.insertionMode = v)) + (e.insertionMode = M)) : n === I.NOFRAMES || n === I.STYLE - ? e._switchToTextParsing(t, r.MODE.RAWTEXT) + ? e._switchToTextParsing(t, i.MODE.RAWTEXT) : n === I.SCRIPT - ? e._switchToTextParsing(t, r.MODE.SCRIPT_DATA) + ? e._switchToTextParsing(t, i.MODE.SCRIPT_DATA) : n === I.TEMPLATE ? (e._insertTemplate(t, p.HTML), e.activeFormattingElements.insertMarker(), @@ -44465,7 +44625,7 @@ function le(e, t) { const n = t.tagName; n === I.HEAD - ? (e.openElements.pop(), (e.insertionMode = M)) + ? (e.openElements.pop(), (e.insertionMode = v)) : n === I.BODY || n === I.BR || n === I.HTML ? ge(e, t) : n === I.TEMPLATE && e.openElements.tmplCount > 0 @@ -44480,12 +44640,12 @@ } function ge(e, t) { e.openElements.pop(), - (e.insertionMode = M), + (e.insertionMode = v), e._processToken(t); } function ue(e, t) { const n = - t.type === r.EOF_TOKEN + t.type === i.EOF_TOKEN ? d.openElementsLeftAfterEof : d.disallowedContentInNoscriptInHead; e._err(n), @@ -44541,7 +44701,7 @@ e._appendElement(t, p.HTML), (t.ackSelfClosing = !0); } function Be(e, t) { - e._switchToTextParsing(t, r.MODE.RAWTEXT); + e._switchToTextParsing(t, i.MODE.RAWTEXT); } function we(e, t) { e.openElements.currentTagName === I.OPTION && @@ -44554,11 +44714,11 @@ e.openElements.generateImpliedEndTags(), e._insertElement(t, p.HTML); } - function ve(e, t) { + function Me(e, t) { e._reconstructActiveFormattingElements(), e._insertElement(t, p.HTML); } - function Me(e, t) { + function ve(e, t) { const n = t.tagName; switch (n.length) { case 1: @@ -44584,7 +44744,7 @@ t ); })(e, t) - : ve(e, t); + : Me(e, t); break; case 2: n === I.DL || n === I.OL || n === I.UL @@ -44617,17 +44777,17 @@ t >= 0; t-- ) { - const r = e.openElements.items[t], - i = e.treeAdapter.getTagName(r); + const i = e.openElements.items[t], + r = e.treeAdapter.getTagName(i); let o = null; if ( - (n === I.LI && i === I.LI + (n === I.LI && r === I.LI ? (o = I.LI) : (n !== I.DD && n !== I.DT) || - (i !== I.DD && - i !== I.DT) || - (o = i), + (r !== I.DD && + r !== I.DT) || + (o = r), o) ) { e.openElements.generateImpliedEndTagsWithExclusion( @@ -44639,10 +44799,10 @@ break; } if ( - i !== I.ADDRESS && - i !== I.DIV && - i !== I.P && - e._isSpecialElement(r) + r !== I.ADDRESS && + r !== I.DIV && + r !== I.P && + e._isSpecialElement(i) ) break; } @@ -44675,7 +44835,7 @@ : n !== I.TH && n !== I.TD && n !== I.TR && - ve(e, t); + Me(e, t); break; case 3: n === I.DIV || n === I.DIR || n === I.NAV @@ -44694,7 +44854,7 @@ (e.framesetOk = !1), e._switchToTextParsing( t, - r.MODE.RAWTEXT + i.MODE.RAWTEXT ); })(e, t) : n === I.SVG @@ -44709,7 +44869,7 @@ })(e, t) : n === I.RTC ? be(e, t) - : n !== I.COL && ve(e, t); + : n !== I.COL && Me(e, t); break; case 4: n === I.HTML @@ -44779,7 +44939,7 @@ e._closePElement(), e._insertElement(t, p.HTML); })(e, t) - : n !== I.HEAD && ve(e, t); + : n !== I.HEAD && Me(e, t); break; case 5: n === I.STYLE || n === I.TITLE @@ -44807,7 +44967,7 @@ ? (function(e, t) { e._reconstructActiveFormattingElements(), e._appendElement(t, p.HTML); - const n = r.getTokenAttr(t, m.TYPE); + const n = i.getTokenAttr(t, m.TYPE); (n && n.toLowerCase() === E) || (e.framesetOk = !1), (t.ackSelfClosing = !0); @@ -44822,7 +44982,7 @@ n !== I.TBODY && n !== I.TFOOT && n !== I.THEAD && - ve(e, t); + Me(e, t); break; case 6: n === I.SCRIPT @@ -44858,7 +45018,7 @@ (e.framesetOk = !1), e._switchToTextParsing( t, - r.MODE.RAWTEXT + i.MODE.RAWTEXT ); })(e, t) : n === I.SELECT @@ -44867,7 +45027,7 @@ e._insertElement(t, p.HTML), (e.framesetOk = !1), e.insertionMode === Q || - e.insertionMode === x || + e.insertionMode === F || e.insertionMode === T || e.insertionMode === Y || e.insertionMode === R @@ -44876,7 +45036,7 @@ })(e, t) : n === I.OPTION ? we(e, t) - : ve(e, t); + : Me(e, t); break; case 7: n === I.BGSOUND @@ -44893,7 +45053,7 @@ ? fe(e, t) : n === I.NOEMBED ? Be(e, t) - : n !== I.CAPTION && ve(e, t); + : n !== I.CAPTION && Me(e, t); break; case 8: n === I.BASEFONT @@ -44906,7 +45066,7 @@ (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, p.HTML), - (e.insertionMode = G)); + (e.insertionMode = L)); })(e, t) : n === I.FIELDSET ? Ie(e, t) @@ -44914,7 +45074,7 @@ ? (function(e, t) { e._insertElement(t, p.HTML), (e.skipNextNewLine = !0), - (e.tokenizer.state = r.MODE.RCDATA), + (e.tokenizer.state = i.MODE.RCDATA), (e.originalInsertionMode = e.insertionMode), (e.framesetOk = !1), @@ -44925,10 +45085,10 @@ : n === I.NOSCRIPT ? e.options.scriptingEnabled ? Be(e, t) - : ve(e, t) + : Me(e, t) : n === I.OPTGROUP ? we(e, t) - : n !== I.COLGROUP && ve(e, t); + : n !== I.COLGROUP && Me(e, t); break; case 9: n === I.PLAINTEXT @@ -44937,17 +45097,17 @@ e._closePElement(), e._insertElement(t, p.HTML), (e.tokenizer.state = - r.MODE.PLAINTEXT); + i.MODE.PLAINTEXT); })(e, t) - : ve(e, t); + : Me(e, t); break; case 10: n === I.BLOCKQUOTE || n === I.FIGCAPTION ? Ie(e, t) - : ve(e, t); + : Me(e, t); break; default: - ve(e, t); + Me(e, t); } } function Ne(e, t) { @@ -44966,18 +45126,18 @@ function Qe(e, t) { const n = t.tagName; for (let t = e.openElements.stackTop; t > 0; t--) { - const r = e.openElements.items[t]; - if (e.treeAdapter.getTagName(r) === n) { + const i = e.openElements.items[t]; + if (e.treeAdapter.getTagName(i) === n) { e.openElements.generateImpliedEndTagsWithExclusion( n ), - e.openElements.popUntilElementPopped(r); + e.openElements.popUntilElementPopped(i); break; } - if (e._isSpecialElement(r)) break; + if (e._isSpecialElement(i)) break; } } - function Fe(e, t) { + function xe(e, t) { const n = t.tagName; switch (n.length) { case 1: @@ -45055,12 +45215,12 @@ n === I.BODY ? (function(e) { e.openElements.hasInScope(I.BODY) && - (e.insertionMode = k); + (e.insertionMode = G); })(e) : n === I.HTML ? (function(e, t) { e.openElements.hasInScope(I.BODY) && - ((e.insertionMode = k), + ((e.insertionMode = G), e._processToken(t)); })(e, t) : n === I.FORM @@ -45134,9 +45294,9 @@ Qe(e, t); } } - function xe(e, t) { + function Fe(e, t) { e.tmplInsertionModeStackTop > -1 - ? Ge(e, t) + ? Le(e, t) : (e.stopped = !0); } function De(e, t) { @@ -45149,7 +45309,7 @@ ? ((e.pendingCharacterTokens = []), (e.hasNonWhitespacePendingCharacterToken = !1), (e.originalInsertionMode = e.insertionMode), - (e.insertionMode = F), + (e.insertionMode = x), e._processToken(t)) : Re(e, t); } @@ -45210,7 +45370,7 @@ })(e, t) : n === I.INPUT ? (function(e, t) { - const n = r.getTokenAttr(t, m.TYPE); + const n = i.getTokenAttr(t, m.TYPE); n && n.toLowerCase() === E ? e._appendElement(t, p.HTML) : Re(e, t), @@ -45227,7 +45387,7 @@ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, p.HTML), - (e.insertionMode = x); + (e.insertionMode = F); })(e, t) : Re(e, t); break; @@ -45293,7 +45453,7 @@ function Oe(e, t) { const n = t.tagName; n === I.HTML - ? Me(e, t) + ? ve(e, t) : n === I.OPTION ? (e.openElements.currentTagName === I.OPTION && e.openElements.pop(), @@ -45314,7 +45474,7 @@ n !== I.SELECT && e._processToken(t)) : (n !== I.SCRIPT && n !== I.TEMPLATE) || ce(e, t); } - function ke(e, t) { + function Ge(e, t) { const n = t.tagName; if (n === I.OPTGROUP) { const t = @@ -45337,7 +45497,7 @@ e._resetInsertionMode()) : n === I.TEMPLATE && le(e, t); } - function Ge(e, t) { + function Le(e, t) { e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(I.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), @@ -45346,10 +45506,10 @@ e._processToken(t)) : (e.stopped = !0); } - function Le(e, t) { + function ke(e, t) { (e.insertionMode = N), e._processToken(t); } - function je(e, t) { + function ze(e, t) { (e.insertionMode = N), e._processToken(t); } e.exports = class { @@ -45358,9 +45518,9 @@ (this.treeAdapter = this.options.treeAdapter), (this.pendingScript = null), this.options.sourceCodeLocationInfo && - A.install(this, a), + A.install(this, s), this.options.onParseError && - A.install(this, s, { + A.install(this, a, { onParseError: this.options.onParseError, }); } @@ -45394,12 +45554,12 @@ this._findFormInFragmentContext(), this.tokenizer.write(e, !0), this._runParsingLoop(null); - const r = this.treeAdapter.getFirstChild(n), - i = this.treeAdapter.createDocumentFragment(); - return this._adoptNodes(r, i), i; + const i = this.treeAdapter.getFirstChild(n), + r = this.treeAdapter.createDocumentFragment(); + return this._adoptNodes(i, r), r; } _bootstrap(e, t) { - (this.tokenizer = new r(this.options)), + (this.tokenizer = new i(this.options)), (this.stopped = !1), (this.insertionMode = y), (this.originalInsertionMode = ''), @@ -45407,7 +45567,7 @@ (this.fragmentContext = t), (this.headElement = null), (this.formElement = null), - (this.openElements = new i( + (this.openElements = new r( this.document, this.treeAdapter )), @@ -45428,11 +45588,11 @@ for (; !this.stopped; ) { this._setupTokenizerCDATAMode(); const t = this.tokenizer.getNextToken(); - if (t.type === r.HIBERNATION_TOKEN) break; + if (t.type === i.HIBERNATION_TOKEN) break; if ( this.skipNextNewLine && ((this.skipNextNewLine = !1), - t.type === r.WHITESPACE_CHARACTER_TOKEN && + t.type === i.WHITESPACE_CHARACTER_TOKEN && '\n' === t.chars[0]) ) { if (1 === t.chars.length) continue; @@ -45471,7 +45631,7 @@ switchToPlaintextParsing() { (this.insertionMode = S), (this.originalInsertionMode = N), - (this.tokenizer.state = r.MODE.PLAINTEXT); + (this.tokenizer.state = i.MODE.PLAINTEXT); } _getAdjustedCurrentElement() { return 0 === this.openElements.stackTop && @@ -45499,29 +45659,29 @@ this.fragmentContext ); e === I.TITLE || e === I.TEXTAREA - ? (this.tokenizer.state = r.MODE.RCDATA) + ? (this.tokenizer.state = i.MODE.RCDATA) : e === I.STYLE || e === I.XMP || e === I.IFRAME || e === I.NOEMBED || e === I.NOFRAMES || e === I.NOSCRIPT - ? (this.tokenizer.state = r.MODE.RAWTEXT) + ? (this.tokenizer.state = i.MODE.RAWTEXT) : e === I.SCRIPT - ? (this.tokenizer.state = r.MODE.SCRIPT_DATA) + ? (this.tokenizer.state = i.MODE.SCRIPT_DATA) : e === I.PLAINTEXT && - (this.tokenizer.state = r.MODE.PLAINTEXT); + (this.tokenizer.state = i.MODE.PLAINTEXT); } } _setDocumentType(e) { const t = e.name || '', n = e.publicId || '', - r = e.systemId || ''; + i = e.systemId || ''; this.treeAdapter.setDocumentType( this.document, t, n, - r + i ); } _attachElementToTree(e) { @@ -45609,25 +45769,25 @@ this.treeAdapter.getTagName(t) === I.ANNOTATION_XML && n === p.MATHML && - e.type === r.START_TAG_TOKEN && + e.type === i.START_TAG_TOKEN && e.tagName === I.SVG ) return !1; - const i = - e.type === r.CHARACTER_TOKEN || - e.type === r.NULL_CHARACTER_TOKEN || - e.type === r.WHITESPACE_CHARACTER_TOKEN; + const r = + e.type === i.CHARACTER_TOKEN || + e.type === i.NULL_CHARACTER_TOKEN || + e.type === i.WHITESPACE_CHARACTER_TOKEN; return ( ((!( - e.type === r.START_TAG_TOKEN && + e.type === i.START_TAG_TOKEN && e.tagName !== I.MGLYPH && e.tagName !== I.MALIGNMARK ) && - !i) || + !r) || !this._isIntegrationPoint(t, p.MATHML)) && - ((e.type !== r.START_TAG_TOKEN && !i) || + ((e.type !== i.START_TAG_TOKEN && !r) || !this._isIntegrationPoint(t, p.HTML)) && - e.type !== r.EOF_TOKEN + e.type !== i.EOF_TOKEN ); } _processToken(e) { @@ -45637,20 +45797,20 @@ J.IN_BODY_MODE[e.type](this, e); } _processTokenInForeignContent(e) { - e.type === r.CHARACTER_TOKEN + e.type === i.CHARACTER_TOKEN ? (function(e, t) { e._insertCharacters(t), (e.framesetOk = !1); })(this, e) - : e.type === r.NULL_CHARACTER_TOKEN + : e.type === i.NULL_CHARACTER_TOKEN ? (function(e, t) { (t.chars = h.REPLACEMENT_CHARACTER), e._insertCharacters(t); })(this, e) - : e.type === r.WHITESPACE_CHARACTER_TOKEN - ? ie(this, e) - : e.type === r.COMMENT_TOKEN + : e.type === i.WHITESPACE_CHARACTER_TOKEN + ? re(this, e) + : e.type === i.COMMENT_TOKEN ? ne(this, e) - : e.type === r.START_TAG_TOKEN + : e.type === i.START_TAG_TOKEN ? (function(e, t) { if (u.causesExit(t) && !e.fragmentContext) { for ( @@ -45667,29 +45827,29 @@ e._processToken(t); } else { const n = e._getAdjustedCurrentElement(), - r = e.treeAdapter.getNamespaceURI(n); - r === p.MATHML + i = e.treeAdapter.getNamespaceURI(n); + i === p.MATHML ? u.adjustTokenMathMLAttrs(t) - : r === p.SVG && + : i === p.SVG && (u.adjustTokenSVGTagName(t), u.adjustTokenSVGAttrs(t)), u.adjustTokenXMLAttrs(t), t.selfClosing - ? e._appendElement(t, r) - : e._insertElement(t, r), + ? e._appendElement(t, i) + : e._insertElement(t, i), (t.ackSelfClosing = !0); } })(this, e) - : e.type === r.END_TAG_TOKEN && + : e.type === i.END_TAG_TOKEN && (function(e, t) { for ( let n = e.openElements.stackTop; n > 0; n-- ) { - const r = e.openElements.items[n]; + const i = e.openElements.items[n]; if ( - e.treeAdapter.getNamespaceURI(r) === + e.treeAdapter.getNamespaceURI(i) === p.HTML ) { e._processToken(t); @@ -45697,11 +45857,11 @@ } if ( e.treeAdapter - .getTagName(r) + .getTagName(i) .toLowerCase() === t.tagName ) { e.openElements.popUntilElementPopped( - r + i ); break; } @@ -45712,7 +45872,7 @@ this._shouldProcessTokenInForeignContent(e) ? this._processTokenInForeignContent(e) : this._processToken(e), - e.type === r.START_TAG_TOKEN && + e.type === i.START_TAG_TOKEN && e.selfClosing && !e.ackSelfClosing && this._err( @@ -45721,9 +45881,9 @@ } _isIntegrationPoint(e, t) { const n = this.treeAdapter.getTagName(e), - r = this.treeAdapter.getNamespaceURI(e), - i = this.treeAdapter.getAttrList(e); - return u.isIntegrationPoint(n, r, i, t); + i = this.treeAdapter.getNamespaceURI(e), + r = this.treeAdapter.getAttrList(e); + return u.isIntegrationPoint(n, i, r, t); } _reconstructActiveFormattingElements() { const e = this.activeFormattingElements.length; @@ -45743,8 +45903,8 @@ break; } } while (t > 0); - for (let r = t; r < e; r++) - (n = this.activeFormattingElements.entries[r]), + for (let i = t; i < e; i++) + (n = this.activeFormattingElements.entries[i]), this._insertElement( n.token, this.treeAdapter.getNamespaceURI( @@ -45777,30 +45937,30 @@ ((t = !0), this.fragmentContext && (n = this.fragmentContext)); - const r = this.treeAdapter.getTagName(n), - i = P[r]; - if (i) { - this.insertionMode = i; + const i = this.treeAdapter.getTagName(n), + r = P[i]; + if (r) { + this.insertionMode = r; break; } - if (!(t || (r !== I.TD && r !== I.TH))) { + if (!(t || (i !== I.TD && i !== I.TH))) { this.insertionMode = R; break; } - if (!t && r === I.HEAD) { + if (!t && i === I.HEAD) { this.insertionMode = b; break; } - if (r === I.SELECT) { + if (i === I.SELECT) { this._resetInsertionModeForSelect(e); break; } - if (r === I.TEMPLATE) { + if (i === I.TEMPLATE) { this.insertionMode = this.currentTmplInsertionMode; break; } - if (r === I.HTML) { - this.insertionMode = this.headElement ? M : w; + if (i === I.HTML) { + this.insertionMode = this.headElement ? v : w; break; } if (t) { @@ -45854,15 +46014,15 @@ const e = {parent: null, beforeElement: null}; for (let t = this.openElements.stackTop; t >= 0; t--) { const n = this.openElements.items[t], - r = this.treeAdapter.getTagName(n), - i = this.treeAdapter.getNamespaceURI(n); - if (r === I.TEMPLATE && i === p.HTML) { + i = this.treeAdapter.getTagName(n), + r = this.treeAdapter.getNamespaceURI(n); + if (i === I.TEMPLATE && r === p.HTML) { e.parent = this.treeAdapter.getTemplateContent( n ); break; } - if (r === I.TABLE) { + if (i === I.TABLE) { (e.parent = this.treeAdapter.getParentNode(n)), e.parent ? (e.beforeElement = n) @@ -45904,101 +46064,101 @@ } }; }, - 46519: (e, t, n) => { + 30612: (e, t, n) => { 'use strict'; - const r = n(16152), - i = r.TAG_NAMES, - o = r.NAMESPACES; - function a(e) { + const i = n(89459), + r = i.TAG_NAMES, + o = i.NAMESPACES; + function s(e) { switch (e.length) { case 1: - return e === i.P; + return e === r.P; case 2: return ( - e === i.RB || - e === i.RP || - e === i.RT || - e === i.DD || - e === i.DT || - e === i.LI + e === r.RB || + e === r.RP || + e === r.RT || + e === r.DD || + e === r.DT || + e === r.LI ); case 3: - return e === i.RTC; + return e === r.RTC; case 6: - return e === i.OPTION; + return e === r.OPTION; case 8: - return e === i.OPTGROUP; + return e === r.OPTGROUP; } return !1; } - function s(e) { + function a(e) { switch (e.length) { case 1: - return e === i.P; + return e === r.P; case 2: return ( - e === i.RB || - e === i.RP || - e === i.RT || - e === i.DD || - e === i.DT || - e === i.LI || - e === i.TD || - e === i.TH || - e === i.TR + e === r.RB || + e === r.RP || + e === r.RT || + e === r.DD || + e === r.DT || + e === r.LI || + e === r.TD || + e === r.TH || + e === r.TR ); case 3: - return e === i.RTC; + return e === r.RTC; case 5: return ( - e === i.TBODY || e === i.TFOOT || e === i.THEAD + e === r.TBODY || e === r.TFOOT || e === r.THEAD ); case 6: - return e === i.OPTION; + return e === r.OPTION; case 7: - return e === i.CAPTION; + return e === r.CAPTION; case 8: - return e === i.OPTGROUP || e === i.COLGROUP; + return e === r.OPTGROUP || e === r.COLGROUP; } return !1; } function A(e, t) { switch (e.length) { case 2: - if (e === i.TD || e === i.TH) return t === o.HTML; + if (e === r.TD || e === r.TH) return t === o.HTML; if ( - e === i.MI || - e === i.MO || - e === i.MN || - e === i.MS + e === r.MI || + e === r.MO || + e === r.MN || + e === r.MS ) return t === o.MATHML; break; case 4: - if (e === i.HTML) return t === o.HTML; - if (e === i.DESC) return t === o.SVG; + if (e === r.HTML) return t === o.HTML; + if (e === r.DESC) return t === o.SVG; break; case 5: - if (e === i.TABLE) return t === o.HTML; - if (e === i.MTEXT) return t === o.MATHML; - if (e === i.TITLE) return t === o.SVG; + if (e === r.TABLE) return t === o.HTML; + if (e === r.MTEXT) return t === o.MATHML; + if (e === r.TITLE) return t === o.SVG; break; case 6: return ( - (e === i.APPLET || e === i.OBJECT) && + (e === r.APPLET || e === r.OBJECT) && t === o.HTML ); case 7: return ( - (e === i.CAPTION || e === i.MARQUEE) && + (e === r.CAPTION || e === r.MARQUEE) && t === o.HTML ); case 8: - return e === i.TEMPLATE && t === o.HTML; + return e === r.TEMPLATE && t === o.HTML; case 13: - return e === i.FOREIGN_OBJECT && t === o.SVG; + return e === r.FOREIGN_OBJECT && t === o.SVG; case 14: - return e === i.ANNOTATION_XML && t === o.MATHML; + return e === r.ANNOTATION_XML && t === o.MATHML; } return !1; } @@ -46023,7 +46183,7 @@ } _isInTemplate() { return ( - this.currentTagName === i.TEMPLATE && + this.currentTagName === r.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === o.HTML ); @@ -46085,12 +46245,12 @@ ); if ( (this.pop(), - e === i.H1 || - e === i.H2 || - e === i.H3 || - e === i.H4 || - e === i.H5 || - (e === i.H6 && t === o.HTML)) + e === r.H1 || + e === r.H2 || + e === r.H3 || + e === r.H4 || + e === r.H5 || + (e === r.H6 && t === o.HTML)) ) break; } @@ -46103,7 +46263,7 @@ ); if ( (this.pop(), - e === i.TD || (e === i.TH && t === o.HTML)) + e === r.TD || (e === r.TH && t === o.HTML)) ) break; } @@ -46114,9 +46274,9 @@ clearBackToTableContext() { for ( ; - (this.currentTagName !== i.TABLE && - this.currentTagName !== i.TEMPLATE && - this.currentTagName !== i.HTML) || + (this.currentTagName !== r.TABLE && + this.currentTagName !== r.TEMPLATE && + this.currentTagName !== r.HTML) || this.treeAdapter.getNamespaceURI(this.current) !== o.HTML; @@ -46126,11 +46286,11 @@ clearBackToTableBodyContext() { for ( ; - (this.currentTagName !== i.TBODY && - this.currentTagName !== i.TFOOT && - this.currentTagName !== i.THEAD && - this.currentTagName !== i.TEMPLATE && - this.currentTagName !== i.HTML) || + (this.currentTagName !== r.TBODY && + this.currentTagName !== r.TFOOT && + this.currentTagName !== r.THEAD && + this.currentTagName !== r.TEMPLATE && + this.currentTagName !== r.HTML) || this.treeAdapter.getNamespaceURI(this.current) !== o.HTML; @@ -46140,9 +46300,9 @@ clearBackToTableRowContext() { for ( ; - (this.currentTagName !== i.TR && - this.currentTagName !== i.TEMPLATE && - this.currentTagName !== i.HTML) || + (this.currentTagName !== r.TR && + this.currentTagName !== r.TEMPLATE && + this.currentTagName !== r.HTML) || this.treeAdapter.getNamespaceURI(this.current) !== o.HTML; @@ -46160,7 +46320,7 @@ } tryPeekProperlyNestedBodyElement() { const e = this.items[1]; - return e && this.treeAdapter.getTagName(e) === i.BODY + return e && this.treeAdapter.getTagName(e) === r.BODY ? e : null; } @@ -46174,7 +46334,7 @@ isRootHtmlElementCurrent() { return ( 0 === this.stackTop && - this.currentTagName === i.HTML + this.currentTagName === r.HTML ); } hasInScope(e) { @@ -46182,11 +46342,11 @@ const n = this.treeAdapter.getTagName( this.items[t] ), - r = this.treeAdapter.getNamespaceURI( + i = this.treeAdapter.getNamespaceURI( this.items[t] ); - if (n === e && r === o.HTML) return !0; - if (A(n, r)) return !1; + if (n === e && i === o.HTML) return !0; + if (A(n, i)) return !1; } return !0; } @@ -46199,12 +46359,12 @@ this.items[e] ); if ( - (t === i.H1 || - t === i.H2 || - t === i.H3 || - t === i.H4 || - t === i.H5 || - t === i.H6) && + (t === r.H1 || + t === r.H2 || + t === r.H3 || + t === r.H4 || + t === r.H5 || + t === r.H6) && n === o.HTML ) return !0; @@ -46217,13 +46377,13 @@ const n = this.treeAdapter.getTagName( this.items[t] ), - r = this.treeAdapter.getNamespaceURI( + i = this.treeAdapter.getNamespaceURI( this.items[t] ); - if (n === e && r === o.HTML) return !0; + if (n === e && i === o.HTML) return !0; if ( - ((n === i.UL || n === i.OL) && r === o.HTML) || - A(n, r) + ((n === r.UL || n === r.OL) && i === o.HTML) || + A(n, i) ) return !1; } @@ -46234,11 +46394,11 @@ const n = this.treeAdapter.getTagName( this.items[t] ), - r = this.treeAdapter.getNamespaceURI( + i = this.treeAdapter.getNamespaceURI( this.items[t] ); - if (n === e && r === o.HTML) return !0; - if ((n === i.BUTTON && r === o.HTML) || A(n, r)) + if (n === e && i === o.HTML) return !0; + if ((n === r.BUTTON && i === o.HTML) || A(n, i)) return !1; } return !0; @@ -46255,9 +46415,9 @@ ) { if (n === e) return !0; if ( - n === i.TABLE || - n === i.TEMPLATE || - n === i.HTML + n === r.TABLE || + n === r.TEMPLATE || + n === r.HTML ) return !1; } @@ -46275,12 +46435,12 @@ ) === o.HTML ) { if ( - t === i.TBODY || - t === i.THEAD || - t === i.TFOOT + t === r.TBODY || + t === r.THEAD || + t === r.TFOOT ) return !0; - if (t === i.TABLE || t === i.HTML) return !1; + if (t === r.TABLE || t === r.HTML) return !1; } } return !0; @@ -46296,36 +46456,36 @@ ) === o.HTML ) { if (n === e) return !0; - if (n !== i.OPTION && n !== i.OPTGROUP) + if (n !== r.OPTION && n !== r.OPTGROUP) return !1; } } return !0; } generateImpliedEndTags() { - for (; a(this.currentTagName); ) this.pop(); + for (; s(this.currentTagName); ) this.pop(); } generateImpliedEndTagsThoroughly() { - for (; s(this.currentTagName); ) this.pop(); + for (; a(this.currentTagName); ) this.pop(); } generateImpliedEndTagsWithExclusion(e) { for ( ; - a(this.currentTagName) && this.currentTagName !== e; + s(this.currentTagName) && this.currentTagName !== e; ) this.pop(); } }; }, - 55763: (e, t, n) => { + 74820: (e, t, n) => { 'use strict'; - const r = n(77118), - i = n(54284), - o = n(5482), - a = n(41734), - s = i.CODE_POINTS, - A = i.CODE_POINT_SEQUENCES, + const i = n(23499), + r = n(72791), + o = n(65261), + s = n(25860), + a = r.CODE_POINTS, + A = r.CODE_POINT_SEQUENCES, c = { 128: 8364, 130: 8218, @@ -46370,13 +46530,13 @@ B = 'RAWTEXT_END_TAG_OPEN_STATE', w = 'RAWTEXT_END_TAG_NAME_STATE', b = 'SCRIPT_DATA_LESS_THAN_SIGN_STATE', - v = 'SCRIPT_DATA_END_TAG_OPEN_STATE', - M = 'SCRIPT_DATA_END_TAG_NAME_STATE', + M = 'SCRIPT_DATA_END_TAG_OPEN_STATE', + v = 'SCRIPT_DATA_END_TAG_NAME_STATE', N = 'SCRIPT_DATA_ESCAPE_START_STATE', S = 'SCRIPT_DATA_ESCAPE_START_DASH_STATE', Q = 'SCRIPT_DATA_ESCAPED_STATE', - F = 'SCRIPT_DATA_ESCAPED_DASH_STATE', - x = 'SCRIPT_DATA_ESCAPED_DASH_DASH_STATE', + x = 'SCRIPT_DATA_ESCAPED_DASH_STATE', + F = 'SCRIPT_DATA_ESCAPED_DASH_DASH_STATE', D = 'SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE', T = 'SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE', Y = 'SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE', @@ -46384,11 +46544,11 @@ _ = 'SCRIPT_DATA_DOUBLE_ESCAPED_STATE', U = 'SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE', O = 'SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE', - k = 'SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE', - G = 'SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE', - L = 'BEFORE_ATTRIBUTE_NAME_STATE', - j = 'ATTRIBUTE_NAME_STATE', - z = 'AFTER_ATTRIBUTE_NAME_STATE', + G = 'SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE', + L = 'SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE', + k = 'BEFORE_ATTRIBUTE_NAME_STATE', + z = 'ATTRIBUTE_NAME_STATE', + j = 'AFTER_ATTRIBUTE_NAME_STATE', P = 'BEFORE_ATTRIBUTE_VALUE_STATE', H = 'ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE', J = 'ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE', @@ -46402,11 +46562,11 @@ ee = 'COMMENT_STATE', te = 'COMMENT_LESS_THAN_SIGN_STATE', ne = 'COMMENT_LESS_THAN_SIGN_BANG_STATE', - re = 'COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE', - ie = 'COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE', + ie = 'COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE', + re = 'COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE', oe = 'COMMENT_END_DASH_STATE', - ae = 'COMMENT_END_STATE', - se = 'COMMENT_END_BANG_STATE', + se = 'COMMENT_END_STATE', + ae = 'COMMENT_END_BANG_STATE', Ae = 'DOCTYPE_STATE', ce = 'BEFORE_DOCTYPE_NAME_STATE', le = 'DOCTYPE_NAME_STATE', @@ -46424,45 +46584,45 @@ Be = 'AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE', we = 'BOGUS_DOCTYPE_STATE', be = 'CDATA_SECTION_STATE', - ve = 'CDATA_SECTION_BRACKET_STATE', - Me = 'CDATA_SECTION_END_STATE', + Me = 'CDATA_SECTION_BRACKET_STATE', + ve = 'CDATA_SECTION_END_STATE', Ne = 'CHARACTER_REFERENCE_STATE', Se = 'NAMED_CHARACTER_REFERENCE_STATE', Qe = 'AMBIGUOS_AMPERSAND_STATE', - Fe = 'NUMERIC_CHARACTER_REFERENCE_STATE', - xe = 'HEXADEMICAL_CHARACTER_REFERENCE_START_STATE', + xe = 'NUMERIC_CHARACTER_REFERENCE_STATE', + Fe = 'HEXADEMICAL_CHARACTER_REFERENCE_START_STATE', De = 'DECIMAL_CHARACTER_REFERENCE_START_STATE', Te = 'HEXADEMICAL_CHARACTER_REFERENCE_STATE', Ye = 'DECIMAL_CHARACTER_REFERENCE_STATE', Re = 'NUMERIC_CHARACTER_REFERENCE_END_STATE'; function _e(e) { return ( - e === s.SPACE || - e === s.LINE_FEED || - e === s.TABULATION || - e === s.FORM_FEED + e === a.SPACE || + e === a.LINE_FEED || + e === a.TABULATION || + e === a.FORM_FEED ); } function Ue(e) { - return e >= s.DIGIT_0 && e <= s.DIGIT_9; + return e >= a.DIGIT_0 && e <= a.DIGIT_9; } function Oe(e) { - return e >= s.LATIN_CAPITAL_A && e <= s.LATIN_CAPITAL_Z; - } - function ke(e) { - return e >= s.LATIN_SMALL_A && e <= s.LATIN_SMALL_Z; + return e >= a.LATIN_CAPITAL_A && e <= a.LATIN_CAPITAL_Z; } function Ge(e) { - return ke(e) || Oe(e); + return e >= a.LATIN_SMALL_A && e <= a.LATIN_SMALL_Z; } function Le(e) { - return Ge(e) || Ue(e); + return Ge(e) || Oe(e); } - function je(e) { - return e >= s.LATIN_CAPITAL_A && e <= s.LATIN_CAPITAL_F; + function ke(e) { + return Le(e) || Ue(e); } function ze(e) { - return e >= s.LATIN_SMALL_A && e <= s.LATIN_SMALL_F; + return e >= a.LATIN_CAPITAL_A && e <= a.LATIN_CAPITAL_F; + } + function je(e) { + return e >= a.LATIN_SMALL_A && e <= a.LATIN_SMALL_F; } function Pe(e) { return e + 32; @@ -46479,22 +46639,22 @@ } function We(e, t) { const n = o[++e]; - let r = ++e, - i = r + n - 1; - for (; r <= i; ) { - const e = (r + i) >>> 1, - a = o[e]; - if (a < t) r = e + 1; + let i = ++e, + r = i + n - 1; + for (; i <= r; ) { + const e = (i + r) >>> 1, + s = o[e]; + if (s < t) i = e + 1; else { - if (!(a > t)) return o[e + n]; - i = e - 1; + if (!(s > t)) return o[e + n]; + r = e - 1; } } return -1; } class Ve { constructor() { - (this.preprocessor = new r()), + (this.preprocessor = new i()), (this.tokenQueue = []), (this.allowCDATA = !1), (this.state = l), @@ -46559,27 +46719,27 @@ (this.state = e), this._unconsume(); } _consumeSequenceIfMatch(e, t, n) { - let r = 0, - i = !0; + let i = 0, + r = !0; const o = e.length; - let a, + let s, A = 0, c = t; for (; A < o; A++) { if ( - (A > 0 && ((c = this._consume()), r++), - c === s.EOF) + (A > 0 && ((c = this._consume()), i++), + c === a.EOF) ) { - i = !1; + r = !1; break; } - if (((a = e[A]), c !== a && (n || c !== Pe(a)))) { - i = !1; + if (((s = e[A]), c !== s && (n || c !== Pe(s)))) { + r = !1; break; } } - if (!i) for (; r--; ) this._unconsume(); - return i; + if (!r) for (; i--; ) this._unconsume(); + return r; } _isTempBufferEqualToScriptString() { if (this.tempBuff.length !== A.SCRIPT_STRING.length) @@ -46634,7 +46794,7 @@ this.currentAttr.name ) ? this.currentToken.attrs.push(this.currentAttr) - : this._err(a.duplicateAttribute), + : this._err(s.duplicateAttribute), (this.state = e); } _leaveAttrValue(e) { @@ -46648,9 +46808,9 @@ ? (this.lastStartTagName = e.tagName) : e.type === Ve.END_TAG_TOKEN && (e.attrs.length > 0 && - this._err(a.endTagWithAttributes), + this._err(s.endTagWithAttributes), e.selfClosing && - this._err(a.endTagWithTrailingSolidus)), + this._err(s.endTagWithTrailingSolidus)), this.tokenQueue.push(e); } _emitCurrentCharacterToken() { @@ -46673,7 +46833,7 @@ let t = Ve.CHARACTER_TOKEN; _e(e) ? (t = Ve.WHITESPACE_CHARACTER_TOKEN) - : e === s.NULL && (t = Ve.NULL_CHARACTER_TOKEN), + : e === a.NULL && (t = Ve.NULL_CHARACTER_TOKEN), this._appendCharToCurrentCharacterToken(t, He(e)); } _emitSeveralCodePoints(e) { @@ -46689,23 +46849,23 @@ _matchNamedCharacterReference(e) { let t = null, n = 1, - r = We(0, e); - for (this.tempBuff.push(e); r > -1; ) { - const e = o[r], - i = e < 7; - i && + i = We(0, e); + for (this.tempBuff.push(e); i > -1; ) { + const e = o[i], + r = e < 7; + r && 1 & e && - ((t = 2 & e ? [o[++r], o[++r]] : [o[++r]]), + ((t = 2 & e ? [o[++i], o[++i]] : [o[++i]]), (n = 0)); - const a = this._consume(); - if ((this.tempBuff.push(a), n++, a === s.EOF)) + const s = this._consume(); + if ((this.tempBuff.push(s), n++, s === a.EOF)) break; - r = i + i = r ? 4 & e - ? We(r, a) + ? We(i, s) : -1 - : a === e - ? ++r + : s === e + ? ++i : -1; } for (; n--; ) this.tempBuff.pop(), this._unconsume(); @@ -46722,7 +46882,7 @@ if (!e && this._isCharacterReferenceInAttribute()) { const e = this._consume(); return ( - this._unconsume(), e === s.EQUALS_SIGN || Le(e) + this._unconsume(), e === a.EQUALS_SIGN || ke(e) ); } return !1; @@ -46736,121 +46896,121 @@ } [l](e) { this.preprocessor.dropParsedChunk(), - e === s.LESS_THAN_SIGN + e === a.LESS_THAN_SIGN ? (this.state = C) - : e === s.AMPERSAND + : e === a.AMPERSAND ? ((this.returnState = l), (this.state = Ne)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), this._emitCodePoint(e)) - : e === s.EOF + : e === a.EOF ? this._emitEOFToken() : this._emitCodePoint(e); } [g](e) { this.preprocessor.dropParsedChunk(), - e === s.AMPERSAND + e === a.AMPERSAND ? ((this.returnState = g), (this.state = Ne)) - : e === s.LESS_THAN_SIGN + : e === a.LESS_THAN_SIGN ? (this.state = m) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF ? this._emitEOFToken() : this._emitCodePoint(e); } [u](e) { this.preprocessor.dropParsedChunk(), - e === s.LESS_THAN_SIGN + e === a.LESS_THAN_SIGN ? (this.state = y) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF ? this._emitEOFToken() : this._emitCodePoint(e); } [d](e) { this.preprocessor.dropParsedChunk(), - e === s.LESS_THAN_SIGN + e === a.LESS_THAN_SIGN ? (this.state = b) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF ? this._emitEOFToken() : this._emitCodePoint(e); } [h](e) { this.preprocessor.dropParsedChunk(), - e === s.NULL - ? (this._err(a.unexpectedNullCharacter), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF + e === a.NULL + ? (this._err(s.unexpectedNullCharacter), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF ? this._emitEOFToken() : this._emitCodePoint(e); } [C](e) { - e === s.EXCLAMATION_MARK + e === a.EXCLAMATION_MARK ? (this.state = X) - : e === s.SOLIDUS + : e === a.SOLIDUS ? (this.state = I) - : Ge(e) + : Le(e) ? (this._createStartTagToken(), this._reconsumeInState(p)) - : e === s.QUESTION_MARK + : e === a.QUESTION_MARK ? (this._err( - a.unexpectedQuestionMarkInsteadOfTagName + s.unexpectedQuestionMarkInsteadOfTagName ), this._createCommentToken(), this._reconsumeInState(Z)) - : e === s.EOF - ? (this._err(a.eofBeforeTagName), + : e === a.EOF + ? (this._err(s.eofBeforeTagName), this._emitChars('<'), this._emitEOFToken()) - : (this._err(a.invalidFirstCharacterOfTagName), + : (this._err(s.invalidFirstCharacterOfTagName), this._emitChars('<'), this._reconsumeInState(l)); } [I](e) { - Ge(e) + Le(e) ? (this._createEndTagToken(), this._reconsumeInState(p)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingEndTagName), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofBeforeTagName), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingEndTagName), (this.state = l)) + : e === a.EOF + ? (this._err(s.eofBeforeTagName), this._emitChars('')) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.state = Q), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInScriptHtmlCommentLikeText), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInScriptHtmlCommentLikeText), this._emitEOFToken()) : ((this.state = Q), this._emitCodePoint(e)); } [D](e) { - e === s.SOLIDUS + e === a.SOLIDUS ? ((this.tempBuff = []), (this.state = T)) - : Ge(e) + : Le(e) ? ((this.tempBuff = []), this._emitChars('<'), this._reconsumeInState(R)) : (this._emitChars('<'), this._reconsumeInState(Q)); } [T](e) { - Ge(e) + Le(e) ? (this._createEndTagToken(), this._reconsumeInState(Y)) : (this._emitChars('')) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.state = _), - this._emitChars(i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInScriptHtmlCommentLikeText), + this._emitChars(r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInScriptHtmlCommentLikeText), this._emitEOFToken()) : ((this.state = _), this._emitCodePoint(e)); } - [k](e) { - e === s.SOLIDUS + [G](e) { + e === a.SOLIDUS ? ((this.tempBuff = []), - (this.state = G), + (this.state = L), this._emitChars('/')) : this._reconsumeInState(_); } - [G](e) { - _e(e) || e === s.SOLIDUS || e === s.GREATER_THAN_SIGN + [L](e) { + _e(e) || e === a.SOLIDUS || e === a.GREATER_THAN_SIGN ? ((this.state = this._isTempBufferEqualToScriptString() ? Q : _), @@ -47127,154 +47287,154 @@ : Oe(e) ? (this.tempBuff.push(Pe(e)), this._emitCodePoint(e)) - : ke(e) + : Ge(e) ? (this.tempBuff.push(e), this._emitCodePoint(e)) : this._reconsumeInState(_); } - [L](e) { + [k](e) { _e(e) || - (e === s.SOLIDUS || - e === s.GREATER_THAN_SIGN || - e === s.EOF - ? this._reconsumeInState(z) - : e === s.EQUALS_SIGN + (e === a.SOLIDUS || + e === a.GREATER_THAN_SIGN || + e === a.EOF + ? this._reconsumeInState(j) + : e === a.EQUALS_SIGN ? (this._err( - a.unexpectedEqualsSignBeforeAttributeName + s.unexpectedEqualsSignBeforeAttributeName ), this._createAttr('='), - (this.state = j)) + (this.state = z)) : (this._createAttr(''), - this._reconsumeInState(j))); + this._reconsumeInState(z))); } - [j](e) { + [z](e) { _e(e) || - e === s.SOLIDUS || - e === s.GREATER_THAN_SIGN || - e === s.EOF - ? (this._leaveAttrName(z), this._unconsume()) - : e === s.EQUALS_SIGN + e === a.SOLIDUS || + e === a.GREATER_THAN_SIGN || + e === a.EOF + ? (this._leaveAttrName(j), this._unconsume()) + : e === a.EQUALS_SIGN ? this._leaveAttrName(P) : Oe(e) ? (this.currentAttr.name += Je(e)) - : e === s.QUOTATION_MARK || - e === s.APOSTROPHE || - e === s.LESS_THAN_SIGN - ? (this._err(a.unexpectedCharacterInAttributeName), + : e === a.QUOTATION_MARK || + e === a.APOSTROPHE || + e === a.LESS_THAN_SIGN + ? (this._err(s.unexpectedCharacterInAttributeName), (this.currentAttr.name += He(e))) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentAttr.name += - i.REPLACEMENT_CHARACTER)) + r.REPLACEMENT_CHARACTER)) : (this.currentAttr.name += He(e)); } - [z](e) { + [j](e) { _e(e) || - (e === s.SOLIDUS + (e === a.SOLIDUS ? (this.state = K) - : e === s.EQUALS_SIGN + : e === a.EQUALS_SIGN ? (this.state = P) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) : (this._createAttr(''), - this._reconsumeInState(j))); + this._reconsumeInState(z))); } [P](e) { _e(e) || - (e === s.QUOTATION_MARK + (e === a.QUOTATION_MARK ? (this.state = H) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? (this.state = J) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingAttributeValue), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingAttributeValue), (this.state = l), this._emitCurrentToken()) : this._reconsumeInState(W)); } [H](e) { - e === s.QUOTATION_MARK + e === a.QUOTATION_MARK ? (this.state = V) - : e === s.AMPERSAND + : e === a.AMPERSAND ? ((this.returnState = H), (this.state = Ne)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentAttr.value += - i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) + r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) : (this.currentAttr.value += He(e)); } [J](e) { - e === s.APOSTROPHE + e === a.APOSTROPHE ? (this.state = V) - : e === s.AMPERSAND + : e === a.AMPERSAND ? ((this.returnState = J), (this.state = Ne)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentAttr.value += - i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) + r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) : (this.currentAttr.value += He(e)); } [W](e) { _e(e) - ? this._leaveAttrValue(L) - : e === s.AMPERSAND + ? this._leaveAttrValue(k) + : e === a.AMPERSAND ? ((this.returnState = W), (this.state = Ne)) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? (this._leaveAttrValue(l), this._emitCurrentToken()) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentAttr.value += - i.REPLACEMENT_CHARACTER)) - : e === s.QUOTATION_MARK || - e === s.APOSTROPHE || - e === s.LESS_THAN_SIGN || - e === s.EQUALS_SIGN || - e === s.GRAVE_ACCENT + r.REPLACEMENT_CHARACTER)) + : e === a.QUOTATION_MARK || + e === a.APOSTROPHE || + e === a.LESS_THAN_SIGN || + e === a.EQUALS_SIGN || + e === a.GRAVE_ACCENT ? (this._err( - a.unexpectedCharacterInUnquotedAttributeValue + s.unexpectedCharacterInUnquotedAttributeValue ), (this.currentAttr.value += He(e))) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) : (this.currentAttr.value += He(e)); } [V](e) { _e(e) - ? this._leaveAttrValue(L) - : e === s.SOLIDUS + ? this._leaveAttrValue(k) + : e === a.SOLIDUS ? this._leaveAttrValue(K) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? (this._leaveAttrValue(l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) - : (this._err(a.missingWhitespaceBetweenAttributes), - this._reconsumeInState(L)); + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) + : (this._err(s.missingWhitespaceBetweenAttributes), + this._reconsumeInState(k)); } [K](e) { - e === s.GREATER_THAN_SIGN + e === a.GREATER_THAN_SIGN ? ((this.currentToken.selfClosing = !0), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInTag), this._emitEOFToken()) - : (this._err(a.unexpectedSolidusInTag), - this._reconsumeInState(L)); + : e === a.EOF + ? (this._err(s.eofInTag), this._emitEOFToken()) + : (this._err(s.unexpectedSolidusInTag), + this._reconsumeInState(k)); } [Z](e) { - e === s.GREATER_THAN_SIGN + e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) - : e === s.EOF + : e === a.EOF ? (this._emitCurrentToken(), this._emitEOFToken()) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.data += - i.REPLACEMENT_CHARACTER)) + r.REPLACEMENT_CHARACTER)) : (this.currentToken.data += He(e)); } [X](e) { @@ -47293,112 +47453,112 @@ ) ? this.allowCDATA ? (this.state = be) - : (this._err(a.cdataInHtmlContent), + : (this._err(s.cdataInHtmlContent), this._createCommentToken(), (this.currentToken.data = '[CDATA['), (this.state = Z)) : this._ensureHibernation() || - (this._err(a.incorrectlyOpenedComment), + (this._err(s.incorrectlyOpenedComment), this._createCommentToken(), this._reconsumeInState(Z)); } [q](e) { - e === s.HYPHEN_MINUS + e === a.HYPHEN_MINUS ? (this.state = $) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptClosingOfEmptyComment), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptClosingOfEmptyComment), (this.state = l), this._emitCurrentToken()) : this._reconsumeInState(ee); } [$](e) { - e === s.HYPHEN_MINUS - ? (this.state = ae) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptClosingOfEmptyComment), + e === a.HYPHEN_MINUS + ? (this.state = se) + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptClosingOfEmptyComment), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInComment), + : e === a.EOF + ? (this._err(s.eofInComment), this._emitCurrentToken(), this._emitEOFToken()) : ((this.currentToken.data += '-'), this._reconsumeInState(ee)); } [ee](e) { - e === s.HYPHEN_MINUS + e === a.HYPHEN_MINUS ? (this.state = oe) - : e === s.LESS_THAN_SIGN + : e === a.LESS_THAN_SIGN ? ((this.currentToken.data += '<'), (this.state = te)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.data += - i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInComment), + r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInComment), this._emitCurrentToken(), this._emitEOFToken()) : (this.currentToken.data += He(e)); } [te](e) { - e === s.EXCLAMATION_MARK + e === a.EXCLAMATION_MARK ? ((this.currentToken.data += '!'), (this.state = ne)) - : e === s.LESS_THAN_SIGN + : e === a.LESS_THAN_SIGN ? (this.currentToken.data += '!') : this._reconsumeInState(ee); } [ne](e) { - e === s.HYPHEN_MINUS - ? (this.state = re) + e === a.HYPHEN_MINUS + ? (this.state = ie) : this._reconsumeInState(ee); } - [re](e) { - e === s.HYPHEN_MINUS - ? (this.state = ie) + [ie](e) { + e === a.HYPHEN_MINUS + ? (this.state = re) : this._reconsumeInState(oe); } - [ie](e) { - e !== s.GREATER_THAN_SIGN && - e !== s.EOF && - this._err(a.nestedComment), - this._reconsumeInState(ae); + [re](e) { + e !== a.GREATER_THAN_SIGN && + e !== a.EOF && + this._err(s.nestedComment), + this._reconsumeInState(se); } [oe](e) { - e === s.HYPHEN_MINUS - ? (this.state = ae) - : e === s.EOF - ? (this._err(a.eofInComment), + e === a.HYPHEN_MINUS + ? (this.state = se) + : e === a.EOF + ? (this._err(s.eofInComment), this._emitCurrentToken(), this._emitEOFToken()) : ((this.currentToken.data += '-'), this._reconsumeInState(ee)); } - [ae](e) { - e === s.GREATER_THAN_SIGN + [se](e) { + e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) - : e === s.EXCLAMATION_MARK - ? (this.state = se) - : e === s.HYPHEN_MINUS + : e === a.EXCLAMATION_MARK + ? (this.state = ae) + : e === a.HYPHEN_MINUS ? (this.currentToken.data += '-') - : e === s.EOF - ? (this._err(a.eofInComment), + : e === a.EOF + ? (this._err(s.eofInComment), this._emitCurrentToken(), this._emitEOFToken()) : ((this.currentToken.data += '--'), this._reconsumeInState(ee)); } - [se](e) { - e === s.HYPHEN_MINUS + [ae](e) { + e === a.HYPHEN_MINUS ? ((this.currentToken.data += '--!'), (this.state = oe)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.incorrectlyClosedComment), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.incorrectlyClosedComment), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInComment), + : e === a.EOF + ? (this._err(s.eofInComment), this._emitCurrentToken(), this._emitEOFToken()) : ((this.currentToken.data += '--!'), @@ -47407,15 +47567,15 @@ [Ae](e) { _e(e) ? (this.state = ce) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? this._reconsumeInState(ce) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), this._createDoctypeToken(null), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) - : (this._err(a.missingWhitespaceBeforeDoctypeName), + : (this._err(s.missingWhitespaceBeforeDoctypeName), this._reconsumeInState(ce)); } [ce](e) { @@ -47423,20 +47583,20 @@ (Oe(e) ? (this._createDoctypeToken(Je(e)), (this.state = le)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), this._createDoctypeToken( - i.REPLACEMENT_CHARACTER + r.REPLACEMENT_CHARACTER ), (this.state = le)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingDoctypeName), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingDoctypeName), this._createDoctypeToken(null), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), this._createDoctypeToken(null), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), @@ -47447,16 +47607,16 @@ [le](e) { _e(e) ? (this.state = ge) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) : Oe(e) ? (this.currentToken.name += Je(e)) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.name += - i.REPLACEMENT_CHARACTER)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + r.REPLACEMENT_CHARACTER)) + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) @@ -47464,10 +47624,10 @@ } [ge](e) { _e(e) || - (e === s.GREATER_THAN_SIGN + (e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) @@ -47485,7 +47645,7 @@ ? (this.state = me) : this._ensureHibernation() || (this._err( - a.invalidCharacterSequenceAfterDoctypeName + s.invalidCharacterSequenceAfterDoctypeName ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we))); @@ -47493,91 +47653,91 @@ [ue](e) { _e(e) ? (this.state = de) - : e === s.QUOTATION_MARK + : e === a.QUOTATION_MARK ? (this._err( - a.missingWhitespaceAfterDoctypePublicKeyword + s.missingWhitespaceAfterDoctypePublicKeyword ), (this.currentToken.publicId = ''), (this.state = he)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? (this._err( - a.missingWhitespaceAfterDoctypePublicKeyword + s.missingWhitespaceAfterDoctypePublicKeyword ), (this.currentToken.publicId = ''), (this.state = Ce)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingDoctypePublicIdentifier), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingDoctypePublicIdentifier), (this.currentToken.forceQuirks = !0), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypePublicIdentifier + s.missingQuoteBeforeDoctypePublicIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we)); } [de](e) { _e(e) || - (e === s.QUOTATION_MARK + (e === a.QUOTATION_MARK ? ((this.currentToken.publicId = ''), (this.state = he)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? ((this.currentToken.publicId = ''), (this.state = Ce)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingDoctypePublicIdentifier), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingDoctypePublicIdentifier), (this.currentToken.forceQuirks = !0), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypePublicIdentifier + s.missingQuoteBeforeDoctypePublicIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we))); } [he](e) { - e === s.QUOTATION_MARK + e === a.QUOTATION_MARK ? (this.state = Ie) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.publicId += - i.REPLACEMENT_CHARACTER)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptDoctypePublicIdentifier), + r.REPLACEMENT_CHARACTER)) + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptDoctypePublicIdentifier), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this.currentToken.publicId += He(e)); } [Ce](e) { - e === s.APOSTROPHE + e === a.APOSTROPHE ? (this.state = Ie) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.publicId += - i.REPLACEMENT_CHARACTER)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptDoctypePublicIdentifier), + r.REPLACEMENT_CHARACTER)) + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptDoctypePublicIdentifier), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) @@ -47586,48 +47746,48 @@ [Ie](e) { _e(e) ? (this.state = pe) - : e === s.GREATER_THAN_SIGN + : e === a.GREATER_THAN_SIGN ? ((this.state = l), this._emitCurrentToken()) - : e === s.QUOTATION_MARK + : e === a.QUOTATION_MARK ? (this._err( - a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers + s.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers ), (this.currentToken.systemId = ''), (this.state = Ee)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? (this._err( - a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers + s.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers ), (this.currentToken.systemId = ''), (this.state = ye)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypeSystemIdentifier + s.missingQuoteBeforeDoctypeSystemIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we)); } [pe](e) { _e(e) || - (e === s.GREATER_THAN_SIGN + (e === a.GREATER_THAN_SIGN ? (this._emitCurrentToken(), (this.state = l)) - : e === s.QUOTATION_MARK + : e === a.QUOTATION_MARK ? ((this.currentToken.systemId = ''), (this.state = Ee)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? ((this.currentToken.systemId = ''), (this.state = ye)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypeSystemIdentifier + s.missingQuoteBeforeDoctypeSystemIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we))); @@ -47635,91 +47795,91 @@ [me](e) { _e(e) ? (this.state = fe) - : e === s.QUOTATION_MARK + : e === a.QUOTATION_MARK ? (this._err( - a.missingWhitespaceAfterDoctypeSystemKeyword + s.missingWhitespaceAfterDoctypeSystemKeyword ), (this.currentToken.systemId = ''), (this.state = Ee)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? (this._err( - a.missingWhitespaceAfterDoctypeSystemKeyword + s.missingWhitespaceAfterDoctypeSystemKeyword ), (this.currentToken.systemId = ''), (this.state = ye)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingDoctypeSystemIdentifier), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingDoctypeSystemIdentifier), (this.currentToken.forceQuirks = !0), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypeSystemIdentifier + s.missingQuoteBeforeDoctypeSystemIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we)); } [fe](e) { _e(e) || - (e === s.QUOTATION_MARK + (e === a.QUOTATION_MARK ? ((this.currentToken.systemId = ''), (this.state = Ee)) - : e === s.APOSTROPHE + : e === a.APOSTROPHE ? ((this.currentToken.systemId = ''), (this.state = ye)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.missingDoctypeSystemIdentifier), + : e === a.GREATER_THAN_SIGN + ? (this._err(s.missingDoctypeSystemIdentifier), (this.currentToken.forceQuirks = !0), (this.state = l), this._emitCurrentToken()) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.missingQuoteBeforeDoctypeSystemIdentifier + s.missingQuoteBeforeDoctypeSystemIdentifier ), (this.currentToken.forceQuirks = !0), this._reconsumeInState(we))); } [Ee](e) { - e === s.QUOTATION_MARK + e === a.QUOTATION_MARK ? (this.state = Be) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.systemId += - i.REPLACEMENT_CHARACTER)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptDoctypeSystemIdentifier), + r.REPLACEMENT_CHARACTER)) + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptDoctypeSystemIdentifier), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this.currentToken.systemId += He(e)); } [ye](e) { - e === s.APOSTROPHE + e === a.APOSTROPHE ? (this.state = Be) - : e === s.NULL - ? (this._err(a.unexpectedNullCharacter), + : e === a.NULL + ? (this._err(s.unexpectedNullCharacter), (this.currentToken.systemId += - i.REPLACEMENT_CHARACTER)) - : e === s.GREATER_THAN_SIGN - ? (this._err(a.abruptDoctypeSystemIdentifier), + r.REPLACEMENT_CHARACTER)) + : e === a.GREATER_THAN_SIGN + ? (this._err(s.abruptDoctypeSystemIdentifier), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) @@ -47727,52 +47887,52 @@ } [Be](e) { _e(e) || - (e === s.GREATER_THAN_SIGN + (e === a.GREATER_THAN_SIGN ? (this._emitCurrentToken(), (this.state = l)) - : e === s.EOF - ? (this._err(a.eofInDoctype), + : e === a.EOF + ? (this._err(s.eofInDoctype), (this.currentToken.forceQuirks = !0), this._emitCurrentToken(), this._emitEOFToken()) : (this._err( - a.unexpectedCharacterAfterDoctypeSystemIdentifier + s.unexpectedCharacterAfterDoctypeSystemIdentifier ), this._reconsumeInState(we))); } [we](e) { - e === s.GREATER_THAN_SIGN + e === a.GREATER_THAN_SIGN ? (this._emitCurrentToken(), (this.state = l)) - : e === s.NULL - ? this._err(a.unexpectedNullCharacter) - : e === s.EOF && + : e === a.NULL + ? this._err(s.unexpectedNullCharacter) + : e === a.EOF && (this._emitCurrentToken(), this._emitEOFToken()); } [be](e) { - e === s.RIGHT_SQUARE_BRACKET - ? (this.state = ve) - : e === s.EOF - ? (this._err(a.eofInCdata), this._emitEOFToken()) + e === a.RIGHT_SQUARE_BRACKET + ? (this.state = Me) + : e === a.EOF + ? (this._err(s.eofInCdata), this._emitEOFToken()) : this._emitCodePoint(e); } - [ve](e) { - e === s.RIGHT_SQUARE_BRACKET - ? (this.state = Me) + [Me](e) { + e === a.RIGHT_SQUARE_BRACKET + ? (this.state = ve) : (this._emitChars(']'), this._reconsumeInState(be)); } - [Me](e) { - e === s.GREATER_THAN_SIGN + [ve](e) { + e === a.GREATER_THAN_SIGN ? (this.state = l) - : e === s.RIGHT_SQUARE_BRACKET + : e === a.RIGHT_SQUARE_BRACKET ? this._emitChars(']') : (this._emitChars(']]'), this._reconsumeInState(be)); } [Ne](e) { - (this.tempBuff = [s.AMPERSAND]), - e === s.NUMBER_SIGN - ? (this.tempBuff.push(e), (this.state = Fe)) - : Le(e) + (this.tempBuff = [a.AMPERSAND]), + e === a.NUMBER_SIGN + ? (this.tempBuff.push(e), (this.state = xe)) + : ke(e) ? this._reconsumeInState(Se) : (this._flushCodePointsConsumedAsCharacterReference(), this._reconsumeInState(this.returnState)); @@ -47780,15 +47940,15 @@ [Se](e) { const t = this._matchNamedCharacterReference(e); if (this._ensureHibernation()) - this.tempBuff = [s.AMPERSAND]; + this.tempBuff = [a.AMPERSAND]; else if (t) { const e = this.tempBuff[this.tempBuff.length - 1] === - s.SEMICOLON; + a.SEMICOLON; this._isCharacterReferenceAttributeQuirk(e) || (e || this._errOnNextCodePoint( - a.missingSemicolonAfterCharacterReference + s.missingSemicolonAfterCharacterReference ), (this.tempBuff = t)), this._flushCodePointsConsumedAsCharacterReference(), @@ -47798,26 +47958,26 @@ (this.state = Qe); } [Qe](e) { - Le(e) + ke(e) ? this._isCharacterReferenceInAttribute() ? (this.currentAttr.value += He(e)) : this._emitCodePoint(e) - : (e === s.SEMICOLON && - this._err(a.unknownNamedCharacterReference), + : (e === a.SEMICOLON && + this._err(s.unknownNamedCharacterReference), this._reconsumeInState(this.returnState)); } - [Fe](e) { + [xe](e) { (this.charRefCode = 0), - e === s.LATIN_SMALL_X || e === s.LATIN_CAPITAL_X - ? (this.tempBuff.push(e), (this.state = xe)) + e === a.LATIN_SMALL_X || e === a.LATIN_CAPITAL_X + ? (this.tempBuff.push(e), (this.state = Fe)) : this._reconsumeInState(De); } - [xe](e) { + [Fe](e) { !(function(e) { - return Ue(e) || je(e) || ze(e); + return Ue(e) || ze(e) || je(e); })(e) ? (this._err( - a.absenceOfDigitsInNumericCharacterReference + s.absenceOfDigitsInNumericCharacterReference ), this._flushCodePointsConsumedAsCharacterReference(), this._reconsumeInState(this.returnState)) @@ -47827,25 +47987,25 @@ Ue(e) ? this._reconsumeInState(Ye) : (this._err( - a.absenceOfDigitsInNumericCharacterReference + s.absenceOfDigitsInNumericCharacterReference ), this._flushCodePointsConsumedAsCharacterReference(), this._reconsumeInState(this.returnState)); } [Te](e) { - je(e) + ze(e) ? (this.charRefCode = 16 * this.charRefCode + e - 55) - : ze(e) + : je(e) ? (this.charRefCode = 16 * this.charRefCode + e - 87) : Ue(e) ? (this.charRefCode = 16 * this.charRefCode + e - 48) - : e === s.SEMICOLON + : e === a.SEMICOLON ? (this.state = Re) : (this._err( - a.missingSemicolonAfterCharacterReference + s.missingSemicolonAfterCharacterReference ), this._reconsumeInState(Re)); } @@ -47853,30 +48013,30 @@ Ue(e) ? (this.charRefCode = 10 * this.charRefCode + e - 48) - : e === s.SEMICOLON + : e === a.SEMICOLON ? (this.state = Re) : (this._err( - a.missingSemicolonAfterCharacterReference + s.missingSemicolonAfterCharacterReference ), this._reconsumeInState(Re)); } [Re]() { - if (this.charRefCode === s.NULL) - this._err(a.nullCharacterReference), - (this.charRefCode = s.REPLACEMENT_CHARACTER); + if (this.charRefCode === a.NULL) + this._err(s.nullCharacterReference), + (this.charRefCode = a.REPLACEMENT_CHARACTER); else if (this.charRefCode > 1114111) - this._err(a.characterReferenceOutsideUnicodeRange), - (this.charRefCode = s.REPLACEMENT_CHARACTER); - else if (i.isSurrogate(this.charRefCode)) - this._err(a.surrogateCharacterReference), - (this.charRefCode = s.REPLACEMENT_CHARACTER); - else if (i.isUndefinedCodePoint(this.charRefCode)) - this._err(a.noncharacterCharacterReference); + this._err(s.characterReferenceOutsideUnicodeRange), + (this.charRefCode = a.REPLACEMENT_CHARACTER); + else if (r.isSurrogate(this.charRefCode)) + this._err(s.surrogateCharacterReference), + (this.charRefCode = a.REPLACEMENT_CHARACTER); + else if (r.isUndefinedCodePoint(this.charRefCode)) + this._err(s.noncharacterCharacterReference); else if ( - i.isControlCodePoint(this.charRefCode) || - this.charRefCode === s.CARRIAGE_RETURN + r.isControlCodePoint(this.charRefCode) || + this.charRefCode === a.CARRIAGE_RETURN ) { - this._err(a.controlCharacterReference); + this._err(s.controlCharacterReference); const e = c[this.charRefCode]; e && (this.charRefCode = e); } @@ -47909,7 +48069,7 @@ }), (e.exports = Ve); }, - 5482: e => { + 65261: e => { 'use strict'; e.exports = new Uint16Array([ 4, @@ -67419,11 +67579,11 @@ 8204, ]); }, - 77118: (e, t, n) => { + 23499: (e, t, n) => { 'use strict'; - const r = n(54284), - i = n(41734), - o = r.CODE_POINTS; + const i = n(72791), + r = n(25860), + o = i.CODE_POINTS; e.exports = class { constructor() { (this.html = null), @@ -67444,15 +67604,15 @@ _processSurrogate(e) { if (this.pos !== this.lastCharPos) { const t = this.html.charCodeAt(this.pos + 1); - if (r.isSurrogatePair(t)) + if (i.isSurrogatePair(t)) return ( this.pos++, this._addGap(), - r.getSurrogatePairCodePoint(e, t) + i.getSurrogatePairCodePoint(e, t) ); } else if (!this.lastChunkWritten) return (this.endOfChunkHit = !0), o.EOF; - return this._err(i.surrogateInInputStream), e; + return this._err(r.surrogateInInputStream), e; } dropParsedChunk() { this.pos > this.bufferWaterline && @@ -67495,7 +67655,7 @@ if (e === o.CARRIAGE_RETURN) return (this.skipNextNewLine = !0), o.LINE_FEED; (this.skipNextNewLine = !1), - r.isSurrogate(e) && (e = this._processSurrogate(e)); + i.isSurrogate(e) && (e = this._processSurrogate(e)); return ( (e > 31 && e < 127) || e === o.LINE_FEED || @@ -67506,10 +67666,10 @@ ); } _checkForProblematicCharacters(e) { - r.isControlCodePoint(e) - ? this._err(i.controlCharacterInInputStream) - : r.isUndefinedCodePoint(e) && - this._err(i.noncharacterInInputStream); + i.isControlCodePoint(e) + ? this._err(r.controlCharacterInInputStream) + : i.isUndefinedCodePoint(e) && + this._err(r.noncharacterInInputStream); } retreat() { this.pos === this.lastGapPos && @@ -67519,13 +67679,13 @@ } }; }, - 17296: (e, t, n) => { + 79085: (e, t, n) => { 'use strict'; - const {DOCUMENT_MODE: r} = n(16152); + const {DOCUMENT_MODE: i} = n(89459); (t.createDocument = function() { return { nodeName: '#document', - mode: r.NO_QUIRKS, + mode: i.NO_QUIRKS, childNodes: [], }; }), @@ -67549,15 +67709,15 @@ parentNode: null, }; }); - const i = function(e) { + const r = function(e) { return {nodeName: '#text', value: e, parentNode: null}; }, o = (t.appendChild = function(e, t) { e.childNodes.push(t), (t.parentNode = e); }), - a = (t.insertBefore = function(e, t, n) { - const r = e.childNodes.indexOf(n); - e.childNodes.splice(r, 0, t), (t.parentNode = e); + s = (t.insertBefore = function(e, t, n) { + const i = e.childNodes.indexOf(n); + e.childNodes.splice(i, 0, t), (t.parentNode = e); }); (t.setTemplateContent = function(e, t) { e.content = t; @@ -67565,20 +67725,20 @@ (t.getTemplateContent = function(e) { return e.content; }), - (t.setDocumentType = function(e, t, n, r) { - let i = null; + (t.setDocumentType = function(e, t, n, i) { + let r = null; for (let t = 0; t < e.childNodes.length; t++) if ('#documentType' === e.childNodes[t].nodeName) { - i = e.childNodes[t]; + r = e.childNodes[t]; break; } - i - ? ((i.name = t), (i.publicId = n), (i.systemId = r)) + r + ? ((r.name = t), (r.publicId = n), (r.systemId = i)) : o(e, { nodeName: '#documentType', name: t, publicId: n, - systemId: r, + systemId: i, }); }), (t.setDocumentMode = function(e, t) { @@ -67600,20 +67760,20 @@ if ('#text' === n.nodeName) return void (n.value += t); } - o(e, i(t)); + o(e, r(t)); }), (t.insertTextBefore = function(e, t, n) { - const r = e.childNodes[e.childNodes.indexOf(n) - 1]; - r && '#text' === r.nodeName - ? (r.value += t) - : a(e, i(t), n); + const i = e.childNodes[e.childNodes.indexOf(n) - 1]; + i && '#text' === i.nodeName + ? (i.value += t) + : s(e, r(t), n); }), (t.adoptAttributes = function(e, t) { const n = []; for (let t = 0; t < e.attrs.length; t++) n.push(e.attrs[t].name); - for (let r = 0; r < t.length; r++) - -1 === n.indexOf(t[r].name) && e.attrs.push(t[r]); + for (let i = 0; i < t.length; i++) + -1 === n.indexOf(t[i].name) && e.attrs.push(t[i]); }), (t.getFirstChild = function(e) { return e.childNodes[0]; @@ -67673,7 +67833,7 @@ ); }); }, - 8904: e => { + 30103: e => { 'use strict'; e.exports = function(e, t) { return [e, (t = t || Object.create(null))].reduce( @@ -67687,15 +67847,15 @@ ); }; }, - 81704: e => { + 19: e => { 'use strict'; class t { constructor(e) { const t = {}, n = this._getOverriddenMethods(this, t); - for (const r of Object.keys(n)) - 'function' == typeof n[r] && - ((t[r] = e[r]), (e[r] = n[r])); + for (const i of Object.keys(n)) + 'function' == typeof n[i] && + ((t[i] = e[i]), (e[i] = n[i])); } _getOverriddenMethods() { throw new Error('Not implemented'); @@ -67706,15 +67866,15 @@ for (let n = 0; n < e.__mixins.length; n++) if (e.__mixins[n].constructor === t) return e.__mixins[n]; - const r = new t(e, n); - return e.__mixins.push(r), r; + const i = new t(e, n); + return e.__mixins.push(i), i; }), (e.exports = t); }, - 26470: (e, t, n) => { + 62989: (e, t, n) => { 'use strict'; - var r = n(34155); - function i(e) { + var i = n(14549); + function r(e) { if ('string' != typeof e) throw new TypeError( 'Path must be a string. Received ' + @@ -67723,73 +67883,73 @@ } function o(e, t) { for ( - var n, r = '', i = 0, o = -1, a = 0, s = 0; - s <= e.length; - ++s + var n, i = '', r = 0, o = -1, s = 0, a = 0; + a <= e.length; + ++a ) { - if (s < e.length) n = e.charCodeAt(s); + if (a < e.length) n = e.charCodeAt(a); else { if (47 === n) break; n = 47; } if (47 === n) { - if (o === s - 1 || 1 === a); - else if (o !== s - 1 && 2 === a) { + if (o === a - 1 || 1 === s); + else if (o !== a - 1 && 2 === s) { if ( - r.length < 2 || - 2 !== i || - 46 !== r.charCodeAt(r.length - 1) || - 46 !== r.charCodeAt(r.length - 2) + i.length < 2 || + 2 !== r || + 46 !== i.charCodeAt(i.length - 1) || + 46 !== i.charCodeAt(i.length - 2) ) - if (r.length > 2) { - var A = r.lastIndexOf('/'); - if (A !== r.length - 1) { + if (i.length > 2) { + var A = i.lastIndexOf('/'); + if (A !== i.length - 1) { -1 === A - ? ((r = ''), (i = 0)) - : (i = - (r = r.slice(0, A)) + ? ((i = ''), (r = 0)) + : (r = + (i = i.slice(0, A)) .length - 1 - - r.lastIndexOf('/')), - (o = s), - (a = 0); + i.lastIndexOf('/')), + (o = a), + (s = 0); continue; } } else if ( - 2 === r.length || - 1 === r.length + 2 === i.length || + 1 === i.length ) { - (r = ''), (i = 0), (o = s), (a = 0); + (i = ''), (r = 0), (o = a), (s = 0); continue; } t && - (r.length > 0 ? (r += '/..') : (r = '..'), - (i = 2)); + (i.length > 0 ? (i += '/..') : (i = '..'), + (r = 2)); } else - r.length > 0 - ? (r += '/' + e.slice(o + 1, s)) - : (r = e.slice(o + 1, s)), - (i = s - o - 1); - (o = s), (a = 0); - } else 46 === n && -1 !== a ? ++a : (a = -1); + i.length > 0 + ? (i += '/' + e.slice(o + 1, a)) + : (i = e.slice(o + 1, a)), + (r = a - o - 1); + (o = a), (s = 0); + } else 46 === n && -1 !== s ? ++s : (s = -1); } - return r; + return i; } - var a = { + var s = { resolve: function() { for ( - var e, t = '', n = !1, a = arguments.length - 1; - a >= -1 && !n; - a-- + var e, t = '', n = !1, s = arguments.length - 1; + s >= -1 && !n; + s-- ) { - var s; - a >= 0 - ? (s = arguments[a]) - : (void 0 === e && (e = r.cwd()), (s = e)), - i(s), - 0 !== s.length && - ((t = s + '/' + t), - (n = 47 === s.charCodeAt(0))); + var a; + s >= 0 + ? (a = arguments[s]) + : (void 0 === e && (e = i.cwd()), (a = e)), + r(a), + 0 !== a.length && + ((t = a + '/' + t), + (n = 47 === a.charCodeAt(0))); } return ( (t = o(t, !n)), @@ -67803,7 +67963,7 @@ ); }, normalize: function(e) { - if ((i(e), 0 === e.length)) return '.'; + if ((r(e), 0 === e.length)) return '.'; var t = 47 === e.charCodeAt(0), n = 47 === e.charCodeAt(e.length - 1); return ( @@ -67813,21 +67973,21 @@ ); }, isAbsolute: function(e) { - return i(e), e.length > 0 && 47 === e.charCodeAt(0); + return r(e), e.length > 0 && 47 === e.charCodeAt(0); }, join: function() { if (0 === arguments.length) return '.'; for (var e, t = 0; t < arguments.length; ++t) { var n = arguments[t]; - i(n), + r(n), n.length > 0 && (void 0 === e ? (e = n) : (e += '/' + n)); } - return void 0 === e ? '.' : a.normalize(e); + return void 0 === e ? '.' : s.normalize(e); }, relative: function(e, t) { - if ((i(e), i(t), e === t)) return ''; - if ((e = a.resolve(e)) === (t = a.resolve(t))) + if ((r(e), r(t), e === t)) return ''; + if ((e = s.resolve(e)) === (t = s.resolve(t))) return ''; for ( var n = 1; @@ -67835,12 +67995,12 @@ ++n ); for ( - var r = e.length, o = r - n, s = 1; - s < t.length && 47 === t.charCodeAt(s); - ++s + var i = e.length, o = i - n, a = 1; + a < t.length && 47 === t.charCodeAt(a); + ++a ); for ( - var A = t.length - s, + var A = t.length - a, c = o < A ? o : A, l = -1, g = 0; @@ -67849,9 +68009,9 @@ ) { if (g === c) { if (A > c) { - if (47 === t.charCodeAt(s + g)) - return t.slice(s + g + 1); - if (0 === g) return t.slice(s + g); + if (47 === t.charCodeAt(a + g)) + return t.slice(a + g + 1); + if (0 === g) return t.slice(a + g); } else o > c && (47 === e.charCodeAt(n + g) @@ -67860,124 +68020,124 @@ break; } var u = e.charCodeAt(n + g); - if (u !== t.charCodeAt(s + g)) break; + if (u !== t.charCodeAt(a + g)) break; 47 === u && (l = g); } var d = ''; - for (g = n + l + 1; g <= r; ++g) - (g !== r && 47 !== e.charCodeAt(g)) || + for (g = n + l + 1; g <= i; ++g) + (g !== i && 47 !== e.charCodeAt(g)) || (0 === d.length ? (d += '..') : (d += '/..')); return d.length > 0 - ? d + t.slice(s + l) - : ((s += l), - 47 === t.charCodeAt(s) && ++s, - t.slice(s)); + ? d + t.slice(a + l) + : ((a += l), + 47 === t.charCodeAt(a) && ++a, + t.slice(a)); }, _makeLong: function(e) { return e; }, dirname: function(e) { - if ((i(e), 0 === e.length)) return '.'; + if ((r(e), 0 === e.length)) return '.'; for ( var t = e.charCodeAt(0), n = 47 === t, - r = -1, + i = -1, o = !0, - a = e.length - 1; - a >= 1; - --a + s = e.length - 1; + s >= 1; + --s ) - if (47 === (t = e.charCodeAt(a))) { + if (47 === (t = e.charCodeAt(s))) { if (!o) { - r = a; + i = s; break; } } else o = !1; - return -1 === r + return -1 === i ? n ? '/' : '.' - : n && 1 === r + : n && 1 === i ? '//' - : e.slice(0, r); + : e.slice(0, i); }, basename: function(e, t) { if (void 0 !== t && 'string' != typeof t) throw new TypeError( '"ext" argument must be a string' ); - i(e); + r(e); var n, - r = 0, + i = 0, o = -1, - a = !0; + s = !0; if ( void 0 !== t && t.length > 0 && t.length <= e.length ) { if (t.length === e.length && t === e) return ''; - var s = t.length - 1, + var a = t.length - 1, A = -1; for (n = e.length - 1; n >= 0; --n) { var c = e.charCodeAt(n); if (47 === c) { - if (!a) { - r = n + 1; + if (!s) { + i = n + 1; break; } } else - -1 === A && ((a = !1), (A = n + 1)), - s >= 0 && - (c === t.charCodeAt(s) - ? -1 == --s && (o = n) - : ((s = -1), (o = A))); + -1 === A && ((s = !1), (A = n + 1)), + a >= 0 && + (c === t.charCodeAt(a) + ? -1 == --a && (o = n) + : ((a = -1), (o = A))); } return ( - r === o ? (o = A) : -1 === o && (o = e.length), - e.slice(r, o) + i === o ? (o = A) : -1 === o && (o = e.length), + e.slice(i, o) ); } for (n = e.length - 1; n >= 0; --n) if (47 === e.charCodeAt(n)) { - if (!a) { - r = n + 1; + if (!s) { + i = n + 1; break; } - } else -1 === o && ((a = !1), (o = n + 1)); - return -1 === o ? '' : e.slice(r, o); + } else -1 === o && ((s = !1), (o = n + 1)); + return -1 === o ? '' : e.slice(i, o); }, extname: function(e) { - i(e); + r(e); for ( var t = -1, n = 0, - r = -1, + i = -1, o = !0, - a = 0, - s = e.length - 1; - s >= 0; - --s + s = 0, + a = e.length - 1; + a >= 0; + --a ) { - var A = e.charCodeAt(s); + var A = e.charCodeAt(a); if (47 !== A) - -1 === r && ((o = !1), (r = s + 1)), + -1 === i && ((o = !1), (i = a + 1)), 46 === A ? -1 === t - ? (t = s) - : 1 !== a && (a = 1) - : -1 !== t && (a = -1); + ? (t = a) + : 1 !== s && (s = 1) + : -1 !== t && (s = -1); else if (!o) { - n = s + 1; + n = a + 1; break; } } return -1 === t || - -1 === r || - 0 === a || - (1 === a && t === r - 1 && t === n + 1) + -1 === i || + 0 === s || + (1 === s && t === i - 1 && t === n + 1) ? '' - : e.slice(t, r); + : e.slice(t, i); }, format: function(e) { if (null === e || 'object' != typeof e) @@ -67987,12 +68147,12 @@ ); return (function(e, t) { var n = t.dir || t.root, - r = t.base || (t.name || '') + (t.ext || ''); - return n ? (n === t.root ? n + r : n + e + r) : r; + i = t.base || (t.name || '') + (t.ext || ''); + return n ? (n === t.root ? n + i : n + e + i) : i; })('/', e); }, parse: function(e) { - i(e); + r(e); var t = { root: '', dir: '', @@ -68002,12 +68162,12 @@ }; if (0 === e.length) return t; var n, - r = e.charCodeAt(0), - o = 47 === r; + i = e.charCodeAt(0), + o = 47 === i; o ? ((t.root = '/'), (n = 1)) : (n = 0); for ( - var a = -1, - s = 0, + var s = -1, + a = 0, A = -1, c = !0, l = e.length - 1, @@ -68015,35 +68175,35 @@ l >= n; --l ) - if (47 !== (r = e.charCodeAt(l))) + if (47 !== (i = e.charCodeAt(l))) -1 === A && ((c = !1), (A = l + 1)), - 46 === r - ? -1 === a - ? (a = l) + 46 === i + ? -1 === s + ? (s = l) : 1 !== g && (g = 1) - : -1 !== a && (g = -1); + : -1 !== s && (g = -1); else if (!c) { - s = l + 1; + a = l + 1; break; } return ( - -1 === a || + -1 === s || -1 === A || 0 === g || - (1 === g && a === A - 1 && a === s + 1) + (1 === g && s === A - 1 && s === a + 1) ? -1 !== A && (t.base = t.name = - 0 === s && o + 0 === a && o ? e.slice(1, A) - : e.slice(s, A)) - : (0 === s && o - ? ((t.name = e.slice(1, a)), + : e.slice(a, A)) + : (0 === a && o + ? ((t.name = e.slice(1, s)), (t.base = e.slice(1, A))) - : ((t.name = e.slice(s, a)), - (t.base = e.slice(s, A))), - (t.ext = e.slice(a, A))), - s > 0 - ? (t.dir = e.slice(0, s - 1)) + : ((t.name = e.slice(a, s)), + (t.base = e.slice(a, A))), + (t.ext = e.slice(s, A))), + a > 0 + ? (t.dir = e.slice(0, a - 1)) : o && (t.dir = '/'), t ); @@ -68053,18 +68213,18 @@ win32: null, posix: null, }; - (a.posix = a), (e.exports = a); + (s.posix = s), (e.exports = s); }, - 14779: (e, t, n) => { - var r = n(5826); - (e.exports = d), + 34069: (e, t, n) => { + var i = n(7360); + (e.exports = h), (e.exports.parse = o), (e.exports.compile = function(e, t) { - return s(o(e, t)); + return A(o(e, t), t); }), - (e.exports.tokensToFunction = s), - (e.exports.tokensToRegExp = u); - var i = new RegExp( + (e.exports.tokensToFunction = A), + (e.exports.tokensToRegExp = d); + var r = new RegExp( [ '(\\\\.)', '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))', @@ -68074,19 +68234,19 @@ function o(e, t) { for ( var n, - r = [], + i = [], o = 0, a = 0, - s = '', - l = (t && t.delimiter) || '/'; - null != (n = i.exec(e)); + A = '', + c = (t && t.delimiter) || '/'; + null != (n = r.exec(e)); ) { var g = n[0], u = n[1], d = n.index; - if (((s += e.slice(a, d)), (a = d + g.length), u)) - s += u[1]; + if (((A += e.slice(a, d)), (a = d + g.length), u)) + A += u[1]; else { var h = e[a], C = n[2], @@ -68095,13 +68255,18 @@ m = n[5], f = n[6], E = n[7]; - s && (r.push(s), (s = '')); + A && (i.push(A), (A = '')); var y = null != C && null != h && h !== C, B = '+' === f || '*' === f, w = '?' === f || '*' === f, - b = n[2] || l, - v = p || m; - r.push({ + b = C || c, + M = p || m, + v = + C || + ('string' == typeof i[i.length - 1] + ? i[i.length - 1] + : ''); + i.push({ name: I || o++, prefix: C || '', delimiter: b, @@ -68109,18 +68274,19 @@ repeat: B, partial: y, asterisk: !!E, - pattern: v - ? c(v) - : E - ? '.*' - : '[^' + A(b) + ']+?', + pattern: M ? l(M) : E ? '.*' : s(b, v), }); } } return ( - a < e.length && (s += e.substr(a)), s && r.push(s), r + a < e.length && (A += e.substr(a)), A && i.push(A), i ); } + function s(e, t) { + return !t || t.indexOf(e) > -1 + ? '[^' + c(e) + ']+?' + : c(t) + '|(?:(?!' + c(t) + ')[^' + c(e) + '])+?'; + } function a(e) { return encodeURI(e).replace(/[\/?#]/g, function(e) { return ( @@ -68132,15 +68298,18 @@ ); }); } - function s(e) { - for (var t = new Array(e.length), n = 0; n < e.length; n++) - 'object' == typeof e[n] && - (t[n] = new RegExp('^(?:' + e[n].pattern + ')$')); - return function(n, i) { + function A(e, t) { + for (var n = new Array(e.length), r = 0; r < e.length; r++) + 'object' == typeof e[r] && + (n[r] = new RegExp( + '^(?:' + e[r].pattern + ')$', + u(t) + )); + return function(t, r) { for ( var o = '', - s = n || {}, - A = (i || {}).pretty ? a : encodeURIComponent, + s = t || {}, + A = (r || {}).pretty ? a : encodeURIComponent, c = 0; c < e.length; c++ @@ -68160,7 +68329,7 @@ '" to be defined' ); } - if (r(u)) { + if (i(u)) { if (!l.repeat) throw new TypeError( 'Expected "' + @@ -68178,7 +68347,7 @@ ); } for (var d = 0; d < u.length; d++) { - if (((g = A(u[d])), !t[c].test(g))) + if (((g = A(u[d])), !n[c].test(g))) throw new TypeError( 'Expected all "' + l.name + @@ -68208,7 +68377,7 @@ } ) : A(u)), - !t[c].test(g)) + !n[c].test(g)) ) throw new TypeError( 'Expected "' + @@ -68226,66 +68395,66 @@ return o; }; } - function A(e) { + function c(e) { return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); } - function c(e) { + function l(e) { return e.replace(/([=!:$\/()])/g, '\\$1'); } - function l(e, t) { + function g(e, t) { return (e.keys = t), e; } - function g(e) { - return e.sensitive ? '' : 'i'; + function u(e) { + return e && e.sensitive ? '' : 'i'; } - function u(e, t, n) { - r(t) || ((n = t || n), (t = [])); + function d(e, t, n) { + i(t) || ((n = t || n), (t = [])); for ( - var i = (n = n || {}).strict, + var r = (n = n || {}).strict, o = !1 !== n.end, - a = '', - s = 0; - s < e.length; - s++ + s = '', + a = 0; + a < e.length; + a++ ) { - var c = e[s]; - if ('string' == typeof c) a += A(c); + var A = e[a]; + if ('string' == typeof A) s += c(A); else { - var u = A(c.prefix), - d = '(?:' + c.pattern + ')'; - t.push(c), - c.repeat && (d += '(?:' + u + d + ')*'), - (a += d = c.optional - ? c.partial - ? u + '(' + d + ')?' - : '(?:' + u + '(' + d + '))?' - : u + '(' + d + ')'); - } - } - var h = A(n.delimiter || '/'), - C = a.slice(-h.length) === h; + var l = c(A.prefix), + d = '(?:' + A.pattern + ')'; + t.push(A), + A.repeat && (d += '(?:' + l + d + ')*'), + (s += d = A.optional + ? A.partial + ? l + '(' + d + ')?' + : '(?:' + l + '(' + d + '))?' + : l + '(' + d + ')'); + } + } + var h = c(n.delimiter || '/'), + C = s.slice(-h.length) === h; return ( - i || - (a = - (C ? a.slice(0, -h.length) : a) + + r || + (s = + (C ? s.slice(0, -h.length) : s) + '(?:' + h + '(?=$))?'), - (a += o ? '$' : i && C ? '' : '(?=' + h + '|$)'), - l(new RegExp('^' + a, g(n)), t) + (s += o ? '$' : r && C ? '' : '(?=' + h + '|$)'), + g(new RegExp('^' + s, u(n)), t) ); } - function d(e, t, n) { + function h(e, t, n) { return ( - r(t) || ((n = t || n), (t = [])), + i(t) || ((n = t || n), (t = [])), (n = n || {}), e instanceof RegExp ? (function(e, t) { var n = e.source.match(/\((?!\?)/g); if (n) - for (var r = 0; r < n.length; r++) + for (var i = 0; i < n.length; i++) t.push({ - name: r, + name: i, prefix: null, delimiter: null, optional: !1, @@ -68294,39 +68463,39 @@ asterisk: !1, pattern: null, }); - return l(e, t); + return g(e, t); })(e, t) - : r(e) + : i(e) ? (function(e, t, n) { - for (var r = [], i = 0; i < e.length; i++) - r.push(d(e[i], t, n).source); - return l( + for (var i = [], r = 0; r < e.length; r++) + i.push(h(e[r], t, n).source); + return g( new RegExp( - '(?:' + r.join('|') + ')', - g(n) + '(?:' + i.join('|') + ')', + u(n) ), t ); })(e, t, n) : (function(e, t, n) { - return u(o(e, n), t, n); + return d(o(e, n), t, n); })(e, t, n) ); } }, - 34155: e => { + 14549: e => { var t, n, - r = (e.exports = {}); - function i() { + i = (e.exports = {}); + function r() { throw new Error('setTimeout has not been defined'); } function o() { throw new Error('clearTimeout has not been defined'); } - function a(e) { + function s(e) { if (t === setTimeout) return setTimeout(e, 0); - if ((t === i || !t) && setTimeout) + if ((t === r || !t) && setTimeout) return (t = setTimeout), setTimeout(e, 0); try { return t(e, 0); @@ -68340,9 +68509,9 @@ } !(function() { try { - t = 'function' == typeof setTimeout ? setTimeout : i; + t = 'function' == typeof setTimeout ? setTimeout : r; } catch (e) { - t = i; + t = r; } try { n = @@ -68353,26 +68522,26 @@ n = o; } })(); - var s, + var a, A = [], c = !1, l = -1; function g() { c && - s && + a && ((c = !1), - s.length ? (A = s.concat(A)) : (l = -1), + a.length ? (A = a.concat(A)) : (l = -1), A.length && u()); } function u() { if (!c) { - var e = a(g); + var e = s(g); c = !0; for (var t = A.length; t; ) { - for (s = A, A = []; ++l < t; ) s && s[l].run(); + for (a = A, A = []; ++l < t; ) a && a[l].run(); (l = -1), (t = A.length); } - (s = null), + (a = null), (c = !1), (function(e) { if (n === clearTimeout) return clearTimeout(e); @@ -68394,55 +68563,55 @@ (this.fun = e), (this.array = t); } function h() {} - (r.nextTick = function(e) { + (i.nextTick = function(e) { var t = new Array(arguments.length - 1); if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; - A.push(new d(e, t)), 1 !== A.length || c || a(u); + A.push(new d(e, t)), 1 !== A.length || c || s(u); }), (d.prototype.run = function() { this.fun.apply(null, this.array); }), - (r.title = 'browser'), - (r.browser = !0), - (r.env = {}), - (r.argv = []), - (r.version = ''), - (r.versions = {}), - (r.on = h), - (r.addListener = h), - (r.once = h), - (r.off = h), - (r.removeListener = h), - (r.removeAllListeners = h), - (r.emit = h), - (r.prependListener = h), - (r.prependOnceListener = h), - (r.listeners = function(e) { + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = h), + (i.addListener = h), + (i.once = h), + (i.off = h), + (i.removeListener = h), + (i.removeAllListeners = h), + (i.emit = h), + (i.prependListener = h), + (i.prependOnceListener = h), + (i.listeners = function(e) { return []; }), - (r.binding = function(e) { + (i.binding = function(e) { throw new Error('process.binding is not supported'); }), - (r.cwd = function() { + (i.cwd = function() { return '/'; }), - (r.chdir = function(e) { + (i.chdir = function(e) { throw new Error('process.chdir is not supported'); }), - (r.umask = function() { + (i.umask = function() { return 0; }); }, - 55798: e => { + 85532: e => { 'use strict'; var t = String.prototype.replace, n = /%20/g, - r = 'RFC1738', - i = 'RFC3986'; + i = 'RFC1738', + r = 'RFC3986'; e.exports = { - default: i, + default: r, formatters: { RFC1738: function(e) { return t.call(e, n, '+'); @@ -68451,23 +68620,23 @@ return String(e); }, }, - RFC1738: r, - RFC3986: i, + RFC1738: i, + RFC3986: r, }; }, - 80129: (e, t, n) => { + 14136: (e, t, n) => { 'use strict'; - var r = n(58261), - i = n(55235), - o = n(55798); - e.exports = {formats: o, parse: i, stringify: r}; + var i = n(88409), + r = n(51674), + o = n(85532); + e.exports = {formats: o, parse: r, stringify: i}; }, - 55235: (e, t, n) => { + 51674: (e, t, n) => { 'use strict'; - var r = n(12769), - i = Object.prototype.hasOwnProperty, + var i = n(35017), + r = Object.prototype.hasOwnProperty, o = Array.isArray, - a = { + s = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, @@ -68477,7 +68646,7 @@ charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, - decoder: r.decode, + decoder: i.decode, delimiter: '&', depth: 5, duplicates: 'combine', @@ -68488,116 +68657,136 @@ plainObjects: !1, strictDepth: !1, strictNullHandling: !1, + throwOnLimitExceeded: !1, }, - s = function(e) { + a = function(e) { return e.replace(/&#(\d+);/g, function(e, t) { return String.fromCharCode(parseInt(t, 10)); }); }, - A = function(e, t) { - return e && + A = function(e, t, n) { + if ( + e && 'string' == typeof e && t.comma && e.indexOf(',') > -1 - ? e.split(',') - : e; + ) + return e.split(','); + if (t.throwOnLimitExceeded && n >= t.arrayLimit) + throw new RangeError( + 'Array limit exceeded. Only ' + + t.arrayLimit + + ' element' + + (1 === t.arrayLimit ? '' : 's') + + ' allowed in an array.' + ); + return e; }, - c = function(e, t, n, r) { + c = function(e, t, n, o) { if (e) { - var o = n.allowDots + var s = n.allowDots ? e.replace(/\.([^.[]+)/g, '[$1]') : e, a = /(\[[^[\]]*])/g, - s = n.depth > 0 && /(\[[^[\]]*])/.exec(o), - c = s ? o.slice(0, s.index) : o, - l = []; - if (c) { + c = n.depth > 0 && /(\[[^[\]]*])/.exec(s), + l = c ? s.slice(0, c.index) : s, + g = []; + if (l) { if ( !n.plainObjects && - i.call(Object.prototype, c) && + r.call(Object.prototype, l) && !n.allowPrototypes ) return; - l.push(c); + g.push(l); } for ( - var g = 0; + var u = 0; n.depth > 0 && - null !== (s = a.exec(o)) && - g < n.depth; + null !== (c = a.exec(s)) && + u < n.depth; ) { if ( - ((g += 1), + ((u += 1), !n.plainObjects && - i.call( + r.call( Object.prototype, - s[1].slice(1, -1) + c[1].slice(1, -1) ) && !n.allowPrototypes) ) return; - l.push(s[1]); + g.push(c[1]); } - if (s) { + if (c) { if (!0 === n.strictDepth) throw new RangeError( 'Input depth exceeded depth option of ' + n.depth + ' and strictDepth is true' ); - l.push('[' + o.slice(s.index) + ']'); + g.push('[' + s.slice(c.index) + ']'); } return (function(e, t, n, r) { + var o = 0; + if (e.length > 0 && '[]' === e[e.length - 1]) { + var s = e.slice(0, -1).join(''); + o = + Array.isArray(t) && t[s] + ? t[s].length + : 0; + } for ( - var i = r ? t : A(t, n), o = e.length - 1; - o >= 0; - --o + var a = r ? t : A(t, n, o), + c = e.length - 1; + c >= 0; + --c ) { - var a, - s = e[o]; - if ('[]' === s && n.parseArrays) - a = + var l, + g = e[c]; + if ('[]' === g && n.parseArrays) + l = n.allowEmptyArrays && - ('' === i || + ('' === a || (n.strictNullHandling && - null === i)) + null === a)) ? [] - : [].concat(i); + : i.combine([], a); else { - a = n.plainObjects - ? Object.create(null) + l = n.plainObjects + ? {__proto__: null} : {}; - var c = - '[' === s.charAt(0) && - ']' === s.charAt(s.length - 1) - ? s.slice(1, -1) - : s, - l = n.decodeDotInKeys - ? c.replace(/%2E/g, '.') - : c, - g = parseInt(l, 10); - n.parseArrays || '' !== l - ? !isNaN(g) && - s !== l && - String(g) === l && - g >= 0 && + var u = + '[' === g.charAt(0) && + ']' === g.charAt(g.length - 1) + ? g.slice(1, -1) + : g, + d = n.decodeDotInKeys + ? u.replace(/%2E/g, '.') + : u, + h = parseInt(d, 10); + n.parseArrays || '' !== d + ? !isNaN(h) && + g !== d && + String(h) === d && + h >= 0 && n.parseArrays && - g <= n.arrayLimit - ? ((a = [])[g] = i) - : '__proto__' !== l && - (a[l] = i) - : (a = {0: i}); + h <= n.arrayLimit + ? ((l = [])[h] = a) + : '__proto__' !== d && + (l[d] = a) + : (l = {0: a}); } - i = a; + a = l; } - return i; - })(l, t, n, r); + return a; + })(g, t, n, o); } }; e.exports = function(e, t) { var n = (function(e) { - if (!e) return a; + if (!e) return s; if ( void 0 !== e.allowEmptyArrays && 'boolean' != typeof e.allowEmptyArrays @@ -68628,10 +68817,17 @@ throw new TypeError( 'The charset option must be either utf-8, iso-8859-1, or undefined' ); - var t = void 0 === e.charset ? a.charset : e.charset, + if ( + void 0 !== e.throwOnLimitExceeded && + 'boolean' != typeof e.throwOnLimitExceeded + ) + throw new TypeError( + '`throwOnLimitExceeded` option must be a boolean' + ); + var t = void 0 === e.charset ? s.charset : e.charset, n = void 0 === e.duplicates - ? a.duplicates + ? s.duplicates : e.duplicates; if ('combine' !== n && 'first' !== n && 'last' !== n) throw new TypeError( @@ -68640,75 +68836,78 @@ return { allowDots: void 0 === e.allowDots - ? !0 === e.decodeDotInKeys || a.allowDots + ? !0 === e.decodeDotInKeys || s.allowDots : !!e.allowDots, allowEmptyArrays: 'boolean' == typeof e.allowEmptyArrays ? !!e.allowEmptyArrays - : a.allowEmptyArrays, + : s.allowEmptyArrays, allowPrototypes: 'boolean' == typeof e.allowPrototypes ? e.allowPrototypes - : a.allowPrototypes, + : s.allowPrototypes, allowSparse: 'boolean' == typeof e.allowSparse ? e.allowSparse - : a.allowSparse, + : s.allowSparse, arrayLimit: 'number' == typeof e.arrayLimit ? e.arrayLimit - : a.arrayLimit, + : s.arrayLimit, charset: t, charsetSentinel: 'boolean' == typeof e.charsetSentinel ? e.charsetSentinel - : a.charsetSentinel, + : s.charsetSentinel, comma: - 'boolean' == typeof e.comma ? e.comma : a.comma, + 'boolean' == typeof e.comma ? e.comma : s.comma, decodeDotInKeys: 'boolean' == typeof e.decodeDotInKeys ? e.decodeDotInKeys - : a.decodeDotInKeys, + : s.decodeDotInKeys, decoder: 'function' == typeof e.decoder ? e.decoder - : a.decoder, + : s.decoder, delimiter: 'string' == typeof e.delimiter || - r.isRegExp(e.delimiter) + i.isRegExp(e.delimiter) ? e.delimiter - : a.delimiter, + : s.delimiter, depth: 'number' == typeof e.depth || !1 === e.depth ? +e.depth - : a.depth, + : s.depth, duplicates: n, ignoreQueryPrefix: !0 === e.ignoreQueryPrefix, interpretNumericEntities: 'boolean' == typeof e.interpretNumericEntities ? e.interpretNumericEntities - : a.interpretNumericEntities, + : s.interpretNumericEntities, parameterLimit: 'number' == typeof e.parameterLimit ? e.parameterLimit - : a.parameterLimit, + : s.parameterLimit, parseArrays: !1 !== e.parseArrays, plainObjects: 'boolean' == typeof e.plainObjects ? e.plainObjects - : a.plainObjects, + : s.plainObjects, strictDepth: 'boolean' == typeof e.strictDepth ? !!e.strictDepth - : a.strictDepth, + : s.strictDepth, strictNullHandling: 'boolean' == typeof e.strictNullHandling ? e.strictNullHandling - : a.strictNullHandling, + : s.strictNullHandling, + throwOnLimitExceeded: + 'boolean' == typeof e.throwOnLimitExceeded && + e.throwOnLimitExceeded, }; })(t); if ('' === e || null == e) - return n.plainObjects ? Object.create(null) : {}; + return n.plainObjects ? {__proto__: null} : {}; for ( var l = 'string' == typeof e @@ -68720,29 +68919,45 @@ c = c .replace(/%5B/gi, '[') .replace(/%5D/gi, ']'); - var l, - g = + var l = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, - u = c.split(t.delimiter, g), + g = c.split( + t.delimiter, + t.throwOnLimitExceeded + ? l + 1 + : l + ); + if ( + t.throwOnLimitExceeded && + g.length > l + ) + throw new RangeError( + 'Parameter limit exceeded. Only ' + + l + + ' parameter' + + (1 === l ? '' : 's') + + ' allowed.' + ); + var u, d = -1, h = t.charset; if (t.charsetSentinel) - for (l = 0; l < u.length; ++l) - 0 === u[l].indexOf('utf8=') && - ('utf8=%E2%9C%93' === u[l] + for (u = 0; u < g.length; ++u) + 0 === g[u].indexOf('utf8=') && + ('utf8=%E2%9C%93' === g[u] ? (h = 'utf-8') : 'utf8=%26%2310003%3B' === - u[l] && + g[u] && (h = 'iso-8859-1'), - (d = l), - (l = u.length)); - for (l = 0; l < u.length; ++l) - if (l !== d) { + (d = u), + (u = g.length)); + for (u = 0; u < g.length; ++u) + if (u !== d) { var C, I, - p = u[l], + p = g[u], m = p.indexOf(']='), f = -1 === m @@ -68751,7 +68966,7 @@ -1 === f ? ((C = t.decoder( p, - a.decoder, + s.decoder, h, 'key' )), @@ -68760,19 +68975,23 @@ : '')) : ((C = t.decoder( p.slice(0, f), - a.decoder, + s.decoder, h, 'key' )), - (I = r.maybeMap( + (I = i.maybeMap( A( p.slice(f + 1), - t + t, + o(n[C]) + ? n[C] + .length + : 0 ), function(e) { return t.decoder( e, - a.decoder, + s.decoder, h, 'value' ); @@ -68781,13 +69000,13 @@ I && t.interpretNumericEntities && 'iso-8859-1' === h && - (I = s(I)), + (I = a(String(I))), p.indexOf('[]=') > -1 && (I = o(I) ? [I] : I); - var E = i.call(n, C); + var E = r.call(n, C); E && 'combine' === t.duplicates - ? (n[C] = r.combine( + ? (n[C] = i.combine( n[C], I )) @@ -68799,7 +69018,7 @@ return n; })(e, n) : e, - g = n.plainObjects ? Object.create(null) : {}, + g = n.plainObjects ? {__proto__: null} : {}, u = Object.keys(l), d = 0; d < u.length; @@ -68807,18 +69026,18 @@ ) { var h = u[d], C = c(h, l[h], n, 'string' == typeof e); - g = r.merge(g, C, n); + g = i.merge(g, C, n); } - return !0 === n.allowSparse ? g : r.compact(g); + return !0 === n.allowSparse ? g : i.compact(g); }; }, - 58261: (e, t, n) => { + 88409: (e, t, n) => { 'use strict'; - var r = n(51874), - i = n(12769), - o = n(55798), - a = Object.prototype.hasOwnProperty, - s = { + var i = n(57065), + r = n(35017), + o = n(85532), + s = Object.prototype.hasOwnProperty, + a = { brackets: function(e) { return e + '[]'; }, @@ -68844,11 +69063,13 @@ arrayFormat: 'indices', charset: 'utf-8', charsetSentinel: !1, + commaRoundTrip: !1, delimiter: '&', encode: !0, encodeDotInKeys: !1, - encoder: i.encode, + encoder: r.encode, encodeValuesOnly: !1, + filter: void 0, format: u, formatter: o.formatters[u], indices: !1, @@ -68863,8 +69084,8 @@ t, n, o, - a, s, + a, c, g, u, @@ -68880,13 +69101,13 @@ b ) { for ( - var v, M = t, N = b, S = 0, Q = !1; + var M, v = t, N = b, S = 0, Q = !1; void 0 !== (N = N.get(h)) && !Q; ) { - var F = N.get(t); - if (((S += 1), void 0 !== F)) { - if (F === S) + var x = N.get(t); + if (((S += 1), void 0 !== x)) { + if (x === S) throw new RangeError('Cyclic object value'); Q = !0; } @@ -68894,86 +69115,91 @@ } if ( ('function' == typeof I - ? (M = I(n, M)) - : M instanceof Date - ? (M = f(M)) + ? (v = I(n, v)) + : v instanceof Date + ? (v = f(v)) : 'comma' === o && - A(M) && - (M = i.maybeMap(M, function(e) { + A(v) && + (v = r.maybeMap(v, function(e) { return e instanceof Date ? f(e) : e; })), - null === M) + null === v) ) { if (c) return C && !B ? C(n, d.encoder, w, 'key', E) : n; - M = ''; + v = ''; } if ( - 'string' == typeof (v = M) || - 'number' == typeof v || - 'boolean' == typeof v || - 'symbol' == typeof v || - 'bigint' == typeof v || - i.isBuffer(M) + 'string' == typeof (M = v) || + 'number' == typeof M || + 'boolean' == typeof M || + 'symbol' == typeof M || + 'bigint' == typeof M || + r.isBuffer(v) ) return C ? [ y(B ? n : C(n, d.encoder, w, 'key', E)) + '=' + - y(C(M, d.encoder, w, 'value', E)), + y(C(v, d.encoder, w, 'value', E)), ] - : [y(n) + '=' + y(String(M))]; - var x, + : [y(n) + '=' + y(String(v))]; + var F, D = []; - if (void 0 === M) return D; - if ('comma' === o && A(M)) - B && C && (M = i.maybeMap(M, C)), - (x = [ + if (void 0 === v) return D; + if ('comma' === o && A(v)) + B && C && (v = r.maybeMap(v, C)), + (F = [ { value: - M.length > 0 - ? M.join(',') || null + v.length > 0 + ? v.join(',') || null : void 0, }, ]); - else if (A(I)) x = I; + else if (A(I)) F = I; else { - var T = Object.keys(M); - x = p ? T.sort(p) : T; - } - var Y = u ? n.replace(/\./g, '%2E') : n, - R = a && A(M) && 1 === M.length ? Y + '[]' : Y; - if (s && A(M) && 0 === M.length) return R + '[]'; - for (var _ = 0; _ < x.length; ++_) { - var U = x[_], + var T = Object.keys(v); + F = p ? T.sort(p) : T; + } + var Y = u ? String(n).replace(/\./g, '%2E') : String(n), + R = s && A(v) && 1 === v.length ? Y + '[]' : Y; + if (a && A(v) && 0 === v.length) return R + '[]'; + for (var _ = 0; _ < F.length; ++_) { + var U = F[_], O = - 'object' == typeof U && void 0 !== U.value + 'object' == typeof U && + U && + void 0 !== U.value ? U.value - : M[U]; + : v[U]; if (!g || null !== O) { - var k = m && u ? U.replace(/\./g, '%2E') : U, - G = A(M) + var G = + m && u + ? String(U).replace(/\./g, '%2E') + : String(U), + L = A(v) ? 'function' == typeof o - ? o(R, k) + ? o(R, G) : R - : R + (m ? '.' + k : '[' + k + ']'); + : R + (m ? '.' + G : '[' + G + ']'); b.set(t, S); - var L = r(); - L.set(h, b), + var k = i(); + k.set(h, b), l( D, e( O, - G, + L, o, - a, s, + a, c, g, u, - 'comma' === o && B && A(M) + 'comma' === o && B && A(v) ? null : C, I, @@ -68984,7 +69210,7 @@ y, B, w, - L + k ) ); } @@ -68993,7 +69219,7 @@ }; e.exports = function(e, t) { var n, - i = e, + r = e, c = (function(e) { if (!e) return d; if ( @@ -69029,21 +69255,21 @@ ); var n = o.default; if (void 0 !== e.format) { - if (!a.call(o.formatters, e.format)) + if (!s.call(o.formatters, e.format)) throw new TypeError( 'Unknown format option provided.' ); n = e.format; } - var r, - i = o.formatters[n], + var i, + r = o.formatters[n], c = d.filter; if ( (('function' == typeof e.filter || A(e.filter)) && (c = e.filter), - (r = - e.arrayFormat in s + (i = + e.arrayFormat in a ? e.arrayFormat : 'indices' in e ? e.indices @@ -69070,13 +69296,13 @@ 'boolean' == typeof e.allowEmptyArrays ? !!e.allowEmptyArrays : d.allowEmptyArrays, - arrayFormat: r, + arrayFormat: i, charset: t, charsetSentinel: 'boolean' == typeof e.charsetSentinel ? e.charsetSentinel : d.charsetSentinel, - commaRoundTrip: e.commaRoundTrip, + commaRoundTrip: !!e.commaRoundTrip, delimiter: void 0 === e.delimiter ? d.delimiter @@ -69099,7 +69325,7 @@ : d.encodeValuesOnly, filter: c, format: n, - formatter: i, + formatter: r, serializeDate: 'function' == typeof e.serializeDate ? e.serializeDate @@ -69117,20 +69343,21 @@ }; })(t); 'function' == typeof c.filter - ? (i = (0, c.filter)('', i)) + ? (r = (0, c.filter)('', r)) : A(c.filter) && (n = c.filter); var g = []; - if ('object' != typeof i || null === i) return ''; - var u = s[c.arrayFormat], + if ('object' != typeof r || null === r) return ''; + var u = a[c.arrayFormat], h = 'comma' === u && c.commaRoundTrip; - n || (n = Object.keys(i)), c.sort && n.sort(c.sort); - for (var I = r(), p = 0; p < n.length; ++p) { - var m = n[p]; - (c.skipNulls && null === i[m]) || + n || (n = Object.keys(r)), c.sort && n.sort(c.sort); + for (var I = i(), p = 0; p < n.length; ++p) { + var m = n[p], + f = r[m]; + (c.skipNulls && null === f) || l( g, C( - i[m], + f, m, u, h, @@ -69151,23 +69378,23 @@ ) ); } - var f = g.join(c.delimiter), - E = !0 === c.addQueryPrefix ? '?' : ''; + var E = g.join(c.delimiter), + y = !0 === c.addQueryPrefix ? '?' : ''; return ( c.charsetSentinel && ('iso-8859-1' === c.charset - ? (E += 'utf8=%26%2310003%3B&') - : (E += 'utf8=%E2%9C%93&')), - f.length > 0 ? E + f : '' + ? (y += 'utf8=%26%2310003%3B&') + : (y += 'utf8=%E2%9C%93&')), + E.length > 0 ? y + E : '' ); }; }, - 12769: (e, t, n) => { + 35017: (e, t, n) => { 'use strict'; - var r = n(55798), - i = Object.prototype.hasOwnProperty, + var i = n(85532), + r = Object.prototype.hasOwnProperty, o = Array.isArray, - a = (function() { + s = (function() { for (var e = [], t = 0; t < 256; ++t) e.push( '%' + @@ -69177,22 +69404,22 @@ ); return e; })(), - s = function(e, t) { + a = function(e, t) { for ( var n = t && t.plainObjects - ? Object.create(null) + ? {__proto__: null} : {}, - r = 0; - r < e.length; - ++r + i = 0; + i < e.length; + ++i ) - void 0 !== e[r] && (n[r] = e[r]); + void 0 !== e[i] && (n[i] = e[i]); return n; }, A = 1024; e.exports = { - arrayToObject: s, + arrayToObject: a, assign: function(e, t) { return Object.keys(t).reduce(function(e, n) { return (e[n] = t[n]), e; @@ -69203,24 +69430,24 @@ }, compact: function(e) { for ( - var t = [{obj: {o: e}, prop: 'o'}], n = [], r = 0; - r < t.length; - ++r + var t = [{obj: {o: e}, prop: 'o'}], n = [], i = 0; + i < t.length; + ++i ) for ( - var i = t[r], - a = i.obj[i.prop], - s = Object.keys(a), + var r = t[i], + s = r.obj[r.prop], + a = Object.keys(s), A = 0; - A < s.length; + A < a.length; ++A ) { - var c = s[A], - l = a[c]; + var c = a[A], + l = s[c]; 'object' == typeof l && null !== l && -1 === n.indexOf(l) && - (t.push({obj: a, prop: c}), n.push(l)); + (t.push({obj: s, prop: c}), n.push(l)); } return ( (function(e) { @@ -69229,12 +69456,12 @@ n = t.obj[t.prop]; if (o(n)) { for ( - var r = [], i = 0; - i < n.length; - ++i + var i = [], r = 0; + r < n.length; + ++r ) - void 0 !== n[i] && r.push(n[i]); - t.obj[t.prop] = r; + void 0 !== n[r] && i.push(n[r]); + t.obj[t.prop] = i; } } })(t), @@ -69242,25 +69469,25 @@ ); }, decode: function(e, t, n) { - var r = e.replace(/\+/g, ' '); + var i = e.replace(/\+/g, ' '); if ('iso-8859-1' === n) - return r.replace(/%[0-9a-f]{2}/gi, unescape); + return i.replace(/%[0-9a-f]{2}/gi, unescape); try { - return decodeURIComponent(r); + return decodeURIComponent(i); } catch (e) { - return r; + return i; } }, - encode: function(e, t, n, i, o) { + encode: function(e, t, n, r, o) { if (0 === e.length) return e; - var s = e; + var a = e; if ( ('symbol' == typeof e - ? (s = Symbol.prototype.toString.call(e)) - : 'string' != typeof e && (s = String(e)), + ? (a = Symbol.prototype.toString.call(e)) + : 'string' != typeof e && (a = String(e)), 'iso-8859-1' === n) ) - return escape(s).replace( + return escape(a).replace( /%u[0-9a-f]{4}/gi, function(e) { return ( @@ -69270,9 +69497,9 @@ ); } ); - for (var c = '', l = 0; l < s.length; l += A) { + for (var c = '', l = 0; l < a.length; l += A) { for ( - var g = s.length >= A ? s.slice(l, l + A) : s, + var g = a.length >= A ? a.slice(l, l + A) : a, u = [], d = 0; d < g.length; @@ -69286,28 +69513,28 @@ (h >= 48 && h <= 57) || (h >= 65 && h <= 90) || (h >= 97 && h <= 122) || - (o === r.RFC1738 && (40 === h || 41 === h)) + (o === i.RFC1738 && (40 === h || 41 === h)) ? (u[u.length] = g.charAt(d)) : h < 128 - ? (u[u.length] = a[h]) + ? (u[u.length] = s[h]) : h < 2048 ? (u[u.length] = - a[192 | (h >> 6)] + a[128 | (63 & h)]) + s[192 | (h >> 6)] + s[128 | (63 & h)]) : h < 55296 || h >= 57344 ? (u[u.length] = - a[224 | (h >> 12)] + - a[128 | ((h >> 6) & 63)] + - a[128 | (63 & h)]) + s[224 | (h >> 12)] + + s[128 | ((h >> 6) & 63)] + + s[128 | (63 & h)]) : ((d += 1), (h = 65536 + (((1023 & h) << 10) | (1023 & g.charCodeAt(d)))), (u[u.length] = - a[240 | (h >> 18)] + - a[128 | ((h >> 12) & 63)] + - a[128 | ((h >> 6) & 63)] + - a[128 | (63 & h)])); + s[240 | (h >> 18)] + + s[128 | ((h >> 12) & 63)] + + s[128 | ((h >> 6) & 63)] + + s[128 | (63 & h)])); } c += u.join(''); } @@ -69331,1314 +69558,61 @@ }, maybeMap: function(e, t) { if (o(e)) { - for (var n = [], r = 0; r < e.length; r += 1) - n.push(t(e[r])); + for (var n = [], i = 0; i < e.length; i += 1) + n.push(t(e[i])); return n; } return t(e); }, - merge: function e(t, n, r) { + merge: function e(t, n, i) { if (!n) return t; - if ('object' != typeof n) { + if ('object' != typeof n && 'function' != typeof n) { if (o(t)) t.push(n); else { if (!t || 'object' != typeof t) return [t, n]; - ((r && (r.plainObjects || r.allowPrototypes)) || - !i.call(Object.prototype, n)) && + ((i && (i.plainObjects || i.allowPrototypes)) || + !r.call(Object.prototype, n)) && (t[n] = !0); } return t; } if (!t || 'object' != typeof t) return [t].concat(n); - var a = t; + var s = t; return ( - o(t) && !o(n) && (a = s(t, r)), + o(t) && !o(n) && (s = a(t, i)), o(t) && o(n) ? (n.forEach(function(n, o) { - if (i.call(t, o)) { - var a = t[o]; - a && - 'object' == typeof a && + if (r.call(t, o)) { + var s = t[o]; + s && + 'object' == typeof s && n && 'object' == typeof n - ? (t[o] = e(a, n, r)) + ? (t[o] = e(s, n, i)) : t.push(n); } else t[o] = n; }), t) : Object.keys(n).reduce(function(t, o) { - var a = n[o]; + var s = n[o]; return ( - i.call(t, o) - ? (t[o] = e(t[o], a, r)) - : (t[o] = a), + r.call(t, o) + ? (t[o] = e(t[o], s, i)) + : (t[o] = s), t ); - }, a) - ); - }, - }; - }, - 78376: (e, t, n) => { - 'use strict'; - var r = n(18654), - i = n(61705), - o = i(r('String.prototype.indexOf')); - e.exports = function(e, t) { - var n = r(e, !!t); - return 'function' == typeof n && o(e, '.prototype.') > -1 - ? i(n) - : n; - }; - }, - 61705: (e, t, n) => { - 'use strict'; - var r = n(75050), - i = n(18654), - o = n(67771), - a = n(14453), - s = i('%Function.prototype.apply%'), - A = i('%Function.prototype.call%'), - c = i('%Reflect.apply%', !0) || r.call(A, s), - l = n(24429), - g = i('%Math.max%'); - e.exports = function(e) { - if ('function' != typeof e) - throw new a('a function is required'); - var t = c(r, A, arguments); - return o( - t, - 1 + g(0, e.length - (arguments.length - 1)), - !0 - ); - }; - var u = function() { - return c(r, s, arguments); - }; - l ? l(e.exports, 'apply', {value: u}) : (e.exports.apply = u); - }, - 14277: e => { - 'use strict'; - var t = 'Function.prototype.bind called on incompatible ', - n = Object.prototype.toString, - r = Math.max, - i = '[object Function]', - o = function(e, t) { - for (var n = [], r = 0; r < e.length; r += 1) - n[r] = e[r]; - for (var i = 0; i < t.length; i += 1) - n[i + e.length] = t[i]; - return n; - }, - a = function(e, t) { - for ( - var n = [], r = t || 0, i = 0; - r < e.length; - r += 1, i += 1 - ) - n[i] = e[r]; - return n; - }, - s = function(e, t) { - for (var n = '', r = 0; r < e.length; r += 1) - (n += e[r]), r + 1 < e.length && (n += t); - return n; - }; - e.exports = function(e) { - var A = this; - if ('function' != typeof A || n.apply(A) !== i) - throw new TypeError(t + A); - for ( - var c, - l = a(arguments, 1), - g = function() { - if (this instanceof c) { - var t = A.apply(this, o(l, arguments)); - return Object(t) === t ? t : this; - } - return A.apply(e, o(l, arguments)); - }, - u = r(0, A.length - l.length), - d = [], - h = 0; - h < u; - h++ - ) - d[h] = '$' + h; - if ( - ((c = Function( - 'binder', - 'return function (' + - s(d, ',') + - '){ return binder.apply(this,arguments); }' - )(g)), - A.prototype) - ) { - var C = function() {}; - (C.prototype = A.prototype), - (c.prototype = new C()), - (C.prototype = null); - } - return c; - }; - }, - 75050: (e, t, n) => { - 'use strict'; - var r = n(14277); - e.exports = Function.prototype.bind || r; - }, - 18654: (e, t, n) => { - 'use strict'; - var r, - i = n(81648), - o = n(53981), - a = n(24726), - s = n(26712), - A = n(33464), - c = n(14453), - l = n(43915), - g = Function, - u = function(e) { - try { - return g( - '"use strict"; return (' + e + ').constructor;' - )(); - } catch (e) {} - }, - d = Object.getOwnPropertyDescriptor; - if (d) - try { - d({}, ''); - } catch (e) { - d = null; - } - var h = function() { - throw new c(); - }, - C = d - ? (function() { - try { - return h; - } catch (e) { - try { - return d(arguments, 'callee').get; - } catch (e) { - return h; - } - } - })() - : h, - I = n(97247)(), - p = n(28185)(), - m = - Object.getPrototypeOf || - (p - ? function(e) { - return e.__proto__; - } - : null), - f = {}, - E = - 'undefined' != typeof Uint8Array && m - ? m(Uint8Array) - : r, - y = { - __proto__: null, - '%AggregateError%': - 'undefined' == typeof AggregateError - ? r - : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': - 'undefined' == typeof ArrayBuffer ? r : ArrayBuffer, - '%ArrayIteratorPrototype%': - I && m ? m([][Symbol.iterator]()) : r, - '%AsyncFromSyncIteratorPrototype%': r, - '%AsyncFunction%': f, - '%AsyncGenerator%': f, - '%AsyncGeneratorFunction%': f, - '%AsyncIteratorPrototype%': f, - '%Atomics%': - 'undefined' == typeof Atomics ? r : Atomics, - '%BigInt%': 'undefined' == typeof BigInt ? r : BigInt, - '%BigInt64Array%': - 'undefined' == typeof BigInt64Array - ? r - : BigInt64Array, - '%BigUint64Array%': - 'undefined' == typeof BigUint64Array - ? r - : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': - 'undefined' == typeof DataView ? r : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': i, - '%eval%': eval, - '%EvalError%': o, - '%Float32Array%': - 'undefined' == typeof Float32Array - ? r - : Float32Array, - '%Float64Array%': - 'undefined' == typeof Float64Array - ? r - : Float64Array, - '%FinalizationRegistry%': - 'undefined' == typeof FinalizationRegistry - ? r - : FinalizationRegistry, - '%Function%': g, - '%GeneratorFunction%': f, - '%Int8Array%': - 'undefined' == typeof Int8Array ? r : Int8Array, - '%Int16Array%': - 'undefined' == typeof Int16Array ? r : Int16Array, - '%Int32Array%': - 'undefined' == typeof Int32Array ? r : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': - I && m ? m(m([][Symbol.iterator]())) : r, - '%JSON%': 'object' == typeof JSON ? JSON : r, - '%Map%': 'undefined' == typeof Map ? r : Map, - '%MapIteratorPrototype%': - 'undefined' != typeof Map && I && m - ? m(new Map()[Symbol.iterator]()) - : r, - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': - 'undefined' == typeof Promise ? r : Promise, - '%Proxy%': 'undefined' == typeof Proxy ? r : Proxy, - '%RangeError%': a, - '%ReferenceError%': s, - '%Reflect%': - 'undefined' == typeof Reflect ? r : Reflect, - '%RegExp%': RegExp, - '%Set%': 'undefined' == typeof Set ? r : Set, - '%SetIteratorPrototype%': - 'undefined' != typeof Set && I && m - ? m(new Set()[Symbol.iterator]()) - : r, - '%SharedArrayBuffer%': - 'undefined' == typeof SharedArrayBuffer - ? r - : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': - I && m ? m(''[Symbol.iterator]()) : r, - '%Symbol%': I ? Symbol : r, - '%SyntaxError%': A, - '%ThrowTypeError%': C, - '%TypedArray%': E, - '%TypeError%': c, - '%Uint8Array%': - 'undefined' == typeof Uint8Array ? r : Uint8Array, - '%Uint8ClampedArray%': - 'undefined' == typeof Uint8ClampedArray - ? r - : Uint8ClampedArray, - '%Uint16Array%': - 'undefined' == typeof Uint16Array ? r : Uint16Array, - '%Uint32Array%': - 'undefined' == typeof Uint32Array ? r : Uint32Array, - '%URIError%': l, - '%WeakMap%': - 'undefined' == typeof WeakMap ? r : WeakMap, - '%WeakRef%': - 'undefined' == typeof WeakRef ? r : WeakRef, - '%WeakSet%': - 'undefined' == typeof WeakSet ? r : WeakSet, - }; - if (m) - try { - null.error; - } catch (e) { - var B = m(m(e)); - y['%Error.prototype%'] = B; - } - var w = function e(t) { - var n; - if ('%AsyncFunction%' === t) - n = u('async function () {}'); - else if ('%GeneratorFunction%' === t) - n = u('function* () {}'); - else if ('%AsyncGeneratorFunction%' === t) - n = u('async function* () {}'); - else if ('%AsyncGenerator%' === t) { - var r = e('%AsyncGeneratorFunction%'); - r && (n = r.prototype); - } else if ('%AsyncIteratorPrototype%' === t) { - var i = e('%AsyncGenerator%'); - i && m && (n = m(i.prototype)); - } - return (y[t] = n), n; - }, - b = { - __proto__: null, - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': [ - 'Array', - 'prototype', - 'entries', - ], - '%ArrayProto_forEach%': [ - 'Array', - 'prototype', - 'forEach', - ], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': [ - 'AsyncFunction', - 'prototype', - ], - '%AsyncGenerator%': [ - 'AsyncGeneratorFunction', - 'prototype', - ], - '%AsyncGeneratorPrototype%': [ - 'AsyncGeneratorFunction', - 'prototype', - 'prototype', - ], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': [ - 'Float32Array', - 'prototype', - ], - '%Float64ArrayPrototype%': [ - 'Float64Array', - 'prototype', - ], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': [ - 'GeneratorFunction', - 'prototype', - 'prototype', - ], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': [ - 'Object', - 'prototype', - 'toString', - ], - '%ObjProto_valueOf%': [ - 'Object', - 'prototype', - 'valueOf', - ], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': [ - 'ReferenceError', - 'prototype', - ], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': [ - 'SharedArrayBuffer', - 'prototype', - ], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': [ - 'Uint8ClampedArray', - 'prototype', - ], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'], - }, - v = n(75050), - M = n(48824), - N = v.call(Function.call, Array.prototype.concat), - S = v.call(Function.apply, Array.prototype.splice), - Q = v.call(Function.call, String.prototype.replace), - F = v.call(Function.call, String.prototype.slice), - x = v.call(Function.call, RegExp.prototype.exec), - D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - T = /\\(\\)?/g, - Y = function(e) { - var t = F(e, 0, 1), - n = F(e, -1); - if ('%' === t && '%' !== n) - throw new A( - 'invalid intrinsic syntax, expected closing `%`' - ); - if ('%' === n && '%' !== t) - throw new A( - 'invalid intrinsic syntax, expected opening `%`' - ); - var r = []; - return ( - Q(e, D, function(e, t, n, i) { - r[r.length] = n ? Q(i, T, '$1') : t || e; - }), - r + }, s) ); }, - R = function(e, t) { - var n, - r = e; - if ( - (M(b, r) && (r = '%' + (n = b[r])[0] + '%'), - M(y, r)) - ) { - var i = y[r]; - if ((i === f && (i = w(r)), void 0 === i && !t)) - throw new c( - 'intrinsic ' + - e + - ' exists, but is not available. Please file an issue!' - ); - return {alias: n, name: r, value: i}; - } - throw new A('intrinsic ' + e + ' does not exist!'); - }; - e.exports = function(e, t) { - if ('string' != typeof e || 0 === e.length) - throw new c( - 'intrinsic name must be a non-empty string' - ); - if (arguments.length > 1 && 'boolean' != typeof t) - throw new c( - '"allowMissing" argument must be a boolean' - ); - if (null === x(/^%?[^%]*%?$/, e)) - throw new A( - '`%` may not be present anywhere but at the beginning and end of the intrinsic name' - ); - var n = Y(e), - r = n.length > 0 ? n[0] : '', - i = R('%' + r + '%', t), - o = i.name, - a = i.value, - s = !1, - l = i.alias; - l && ((r = l[0]), S(n, N([0, 1], l))); - for (var g = 1, u = !0; g < n.length; g += 1) { - var h = n[g], - C = F(h, 0, 1), - I = F(h, -1); - if ( - ('"' === C || - "'" === C || - '`' === C || - '"' === I || - "'" === I || - '`' === I) && - C !== I - ) - throw new A( - 'property names with quotes must have matching quotes' - ); - if ( - (('constructor' !== h && u) || (s = !0), - M(y, (o = '%' + (r += '.' + h) + '%'))) - ) - a = y[o]; - else if (null != a) { - if (!(h in a)) { - if (!t) - throw new c( - 'base intrinsic for ' + - e + - ' exists, but the property is not available.' - ); - return; - } - if (d && g + 1 >= n.length) { - var p = d(a, h); - a = - (u = !!p) && - 'get' in p && - !('originalValue' in p.get) - ? p.get - : a[h]; - } else (u = M(a, h)), (a = a[h]); - u && !s && (y[o] = a); - } - } - return a; - }; - }, - 97247: (e, t, n) => { - 'use strict'; - var r = 'undefined' != typeof Symbol && Symbol, - i = n(65177); - e.exports = function() { - return ( - 'function' == typeof r && - 'function' == typeof Symbol && - 'symbol' == typeof r('foo') && - 'symbol' == typeof Symbol('bar') && i() - ); }; }, - 65177: e => { + 58669: (e, t, n) => { 'use strict'; - e.exports = function() { - if ( - 'function' != typeof Symbol || - 'function' != typeof Object.getOwnPropertySymbols - ) - return !1; - if ('symbol' == typeof Symbol.iterator) return !0; - var e = {}, - t = Symbol('test'), - n = Object(t); - if ('string' == typeof t) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(t)) - return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(n)) - return !1; - for (t in ((e[t] = 42), e)) return !1; - if ( - 'function' == typeof Object.keys && - 0 !== Object.keys(e).length - ) - return !1; - if ( - 'function' == typeof Object.getOwnPropertyNames && - 0 !== Object.getOwnPropertyNames(e).length - ) - return !1; - var r = Object.getOwnPropertySymbols(e); - if (1 !== r.length || r[0] !== t) return !1; - if (!Object.prototype.propertyIsEnumerable.call(e, t)) - return !1; - if ('function' == typeof Object.getOwnPropertyDescriptor) { - var i = Object.getOwnPropertyDescriptor(e, t); - if (42 !== i.value || !0 !== i.enumerable) return !1; - } - return !0; - }; - }, - 57594: (e, t, n) => { - var r = 'function' == typeof Map && Map.prototype, - i = - Object.getOwnPropertyDescriptor && r - ? Object.getOwnPropertyDescriptor( - Map.prototype, - 'size' - ) - : null, - o = r && i && 'function' == typeof i.get ? i.get : null, - a = r && Map.prototype.forEach, - s = 'function' == typeof Set && Set.prototype, - A = - Object.getOwnPropertyDescriptor && s - ? Object.getOwnPropertyDescriptor( - Set.prototype, - 'size' - ) - : null, - c = s && A && 'function' == typeof A.get ? A.get : null, - l = s && Set.prototype.forEach, - g = - 'function' == typeof WeakMap && WeakMap.prototype - ? WeakMap.prototype.has - : null, - u = - 'function' == typeof WeakSet && WeakSet.prototype - ? WeakSet.prototype.has - : null, - d = - 'function' == typeof WeakRef && WeakRef.prototype - ? WeakRef.prototype.deref - : null, - h = Boolean.prototype.valueOf, - C = Object.prototype.toString, - I = Function.prototype.toString, - p = String.prototype.match, - m = String.prototype.slice, - f = String.prototype.replace, - E = String.prototype.toUpperCase, - y = String.prototype.toLowerCase, - B = RegExp.prototype.test, - w = Array.prototype.concat, - b = Array.prototype.join, - v = Array.prototype.slice, - M = Math.floor, - N = - 'function' == typeof BigInt - ? BigInt.prototype.valueOf - : null, - S = Object.getOwnPropertySymbols, - Q = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? Symbol.prototype.toString - : null, - F = - 'function' == typeof Symbol && - 'object' == typeof Symbol.iterator, - x = - 'function' == typeof Symbol && - Symbol.toStringTag && - (typeof Symbol.toStringTag === F || 'symbol') - ? Symbol.toStringTag - : null, - D = Object.prototype.propertyIsEnumerable, - T = - ('function' == typeof Reflect - ? Reflect.getPrototypeOf - : Object.getPrototypeOf) || - ([].__proto__ === Array.prototype - ? function(e) { - return e.__proto__; - } - : null); - function Y(e, t) { - if ( - e === 1 / 0 || - e === -1 / 0 || - e != e || - (e && e > -1e3 && e < 1e3) || - B.call(/e/, t) - ) - return t; - var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if ('number' == typeof e) { - var r = e < 0 ? -M(-e) : M(e); - if (r !== e) { - var i = String(r), - o = m.call(t, i.length + 1); - return ( - f.call(i, n, '$&_') + - '.' + - f.call( - f.call(o, /([0-9]{3})/g, '$&_'), - /_$/, - '' - ) - ); - } - } - return f.call(t, n, '$&_'); - } - var R = n(46536), - _ = R.custom, - U = j(_) ? _ : null; - function O(e, t, n) { - var r = 'double' === (n.quoteStyle || t) ? '"' : "'"; - return r + e + r; - } - function k(e) { - return f.call(String(e), /"/g, '"'); - } - function G(e) { - return !( - '[object Array]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - } - function L(e) { - return !( - '[object RegExp]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - } - function j(e) { - if (F) - return e && 'object' == typeof e && e instanceof Symbol; - if ('symbol' == typeof e) return !0; - if (!e || 'object' != typeof e || !Q) return !1; - try { - return Q.call(e), !0; - } catch (e) {} - return !1; - } - e.exports = function e(t, r, i, s) { - var A = r || {}; - if ( - P(A, 'quoteStyle') && - 'single' !== A.quoteStyle && - 'double' !== A.quoteStyle - ) - throw new TypeError( - 'option "quoteStyle" must be "single" or "double"' - ); - if ( - P(A, 'maxStringLength') && - ('number' == typeof A.maxStringLength - ? A.maxStringLength < 0 && - A.maxStringLength !== 1 / 0 - : null !== A.maxStringLength) - ) - throw new TypeError( - 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' - ); - var C = !P(A, 'customInspect') || A.customInspect; - if ('boolean' != typeof C && 'symbol' !== C) - throw new TypeError( - 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`' - ); - if ( - P(A, 'indent') && - null !== A.indent && - '\t' !== A.indent && - !(parseInt(A.indent, 10) === A.indent && A.indent > 0) - ) - throw new TypeError( - 'option "indent" must be "\\t", an integer > 0, or `null`' - ); - if ( - P(A, 'numericSeparator') && - 'boolean' != typeof A.numericSeparator - ) - throw new TypeError( - 'option "numericSeparator", if provided, must be `true` or `false`' - ); - var E = A.numericSeparator; - if (void 0 === t) return 'undefined'; - if (null === t) return 'null'; - if ('boolean' == typeof t) return t ? 'true' : 'false'; - if ('string' == typeof t) return W(t, A); - if ('number' == typeof t) { - if (0 === t) return 1 / 0 / t > 0 ? '0' : '-0'; - var B = String(t); - return E ? Y(t, B) : B; - } - if ('bigint' == typeof t) { - var M = String(t) + 'n'; - return E ? Y(t, M) : M; - } - var S = void 0 === A.depth ? 5 : A.depth; - if ( - (void 0 === i && (i = 0), - i >= S && S > 0 && 'object' == typeof t) - ) - return G(t) ? '[Array]' : '[Object]'; - var _ = (function(e, t) { - var n; - if ('\t' === e.indent) n = '\t'; - else { - if (!('number' == typeof e.indent && e.indent > 0)) - return null; - n = b.call(Array(e.indent + 1), ' '); - } - return {base: n, prev: b.call(Array(t + 1), n)}; - })(A, i); - if (void 0 === s) s = []; - else if (J(s, t) >= 0) return '[Circular]'; - function z(t, n, r) { - if ((n && (s = v.call(s)).push(n), r)) { - var o = {depth: A.depth}; - return ( - P(A, 'quoteStyle') && - (o.quoteStyle = A.quoteStyle), - e(t, o, i + 1, s) - ); - } - return e(t, A, i + 1, s); - } - if ('function' == typeof t && !L(t)) { - var V = (function(e) { - if (e.name) return e.name; - var t = p.call( - I.call(e), - /^function\s*([\w$]+)/ - ); - if (t) return t[1]; - return null; - })(t), - ee = $(t, z); - return ( - '[Function' + - (V ? ': ' + V : ' (anonymous)') + - ']' + - (ee.length > 0 - ? ' { ' + b.call(ee, ', ') + ' }' - : '') - ); - } - if (j(t)) { - var te = F - ? f.call(String(t), /^(Symbol\(.*\))_[^)]*$/, '$1') - : Q.call(t); - return 'object' != typeof t || F ? te : K(te); - } - if ( - (function(e) { - if (!e || 'object' != typeof e) return !1; - if ( - 'undefined' != typeof HTMLElement && - e instanceof HTMLElement - ) - return !0; - return ( - 'string' == typeof e.nodeName && - 'function' == typeof e.getAttribute - ); - })(t) - ) { - for ( - var ne = '<' + y.call(String(t.nodeName)), - re = t.attributes || [], - ie = 0; - ie < re.length; - ie++ - ) - ne += - ' ' + - re[ie].name + - '=' + - O(k(re[ie].value), 'double', A); - return ( - (ne += '>'), - t.childNodes && - t.childNodes.length && - (ne += '...'), - (ne += '') - ); - } - if (G(t)) { - if (0 === t.length) return '[]'; - var oe = $(t, z); - return _ && - !(function(e) { - for (var t = 0; t < e.length; t++) - if (J(e[t], '\n') >= 0) return !1; - return !0; - })(oe) - ? '[' + q(oe, _) + ']' - : '[ ' + b.call(oe, ', ') + ' ]'; - } - if ( - (function(e) { - return !( - '[object Error]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - })(t) - ) { - var ae = $(t, z); - return 'cause' in Error.prototype || - !('cause' in t) || - D.call(t, 'cause') - ? 0 === ae.length - ? '[' + String(t) + ']' - : '{ [' + - String(t) + - '] ' + - b.call(ae, ', ') + - ' }' - : '{ [' + - String(t) + - '] ' + - b.call( - w.call('[cause]: ' + z(t.cause), ae), - ', ' - ) + - ' }'; - } - if ('object' == typeof t && C) { - if (U && 'function' == typeof t[U] && R) - return R(t, {depth: S - i}); - if ('symbol' !== C && 'function' == typeof t.inspect) - return t.inspect(); - } - if ( - (function(e) { - if (!o || !e || 'object' != typeof e) return !1; - try { - o.call(e); - try { - c.call(e); - } catch (e) { - return !0; - } - return e instanceof Map; - } catch (e) {} - return !1; - })(t) - ) { - var se = []; - return ( - a && - a.call(t, function(e, n) { - se.push(z(n, t, !0) + ' => ' + z(e, t)); - }), - X('Map', o.call(t), se, _) - ); - } - if ( - (function(e) { - if (!c || !e || 'object' != typeof e) return !1; - try { - c.call(e); - try { - o.call(e); - } catch (e) { - return !0; - } - return e instanceof Set; - } catch (e) {} - return !1; - })(t) - ) { - var Ae = []; - return ( - l && - l.call(t, function(e) { - Ae.push(z(e, t)); - }), - X('Set', c.call(t), Ae, _) - ); - } - if ( - (function(e) { - if (!g || !e || 'object' != typeof e) return !1; - try { - g.call(e, g); - try { - u.call(e, u); - } catch (e) { - return !0; - } - return e instanceof WeakMap; - } catch (e) {} - return !1; - })(t) - ) - return Z('WeakMap'); - if ( - (function(e) { - if (!u || !e || 'object' != typeof e) return !1; - try { - u.call(e, u); - try { - g.call(e, g); - } catch (e) { - return !0; - } - return e instanceof WeakSet; - } catch (e) {} - return !1; - })(t) - ) - return Z('WeakSet'); - if ( - (function(e) { - if (!d || !e || 'object' != typeof e) return !1; - try { - return d.call(e), !0; - } catch (e) {} - return !1; - })(t) - ) - return Z('WeakRef'); - if ( - (function(e) { - return !( - '[object Number]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - })(t) - ) - return K(z(Number(t))); - if ( - (function(e) { - if (!e || 'object' != typeof e || !N) return !1; - try { - return N.call(e), !0; - } catch (e) {} - return !1; - })(t) - ) - return K(z(N.call(t))); - if ( - (function(e) { - return !( - '[object Boolean]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - })(t) - ) - return K(h.call(t)); - if ( - (function(e) { - return !( - '[object String]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - })(t) - ) - return K(z(String(t))); - if ('undefined' != typeof window && t === window) - return '{ [object Window] }'; - if ( - ('undefined' != typeof globalThis && - t === globalThis) || - (void 0 !== n.g && t === n.g) - ) - return '{ [object globalThis] }'; - if ( - !(function(e) { - return !( - '[object Date]' !== H(e) || - (x && 'object' == typeof e && x in e) - ); - })(t) && - !L(t) - ) { - var ce = $(t, z), - le = T - ? T(t) === Object.prototype - : t instanceof Object || - t.constructor === Object, - ge = t instanceof Object ? '' : 'null prototype', - ue = - !le && x && Object(t) === t && x in t - ? m.call(H(t), 8, -1) - : ge - ? 'Object' - : '', - de = - (le || 'function' != typeof t.constructor - ? '' - : t.constructor.name - ? t.constructor.name + ' ' - : '') + - (ue || ge - ? '[' + - b.call( - w.call([], ue || [], ge || []), - ': ' - ) + - '] ' - : ''); - return 0 === ce.length - ? de + '{}' - : _ - ? de + '{' + q(ce, _) + '}' - : de + '{ ' + b.call(ce, ', ') + ' }'; - } - return String(t); - }; - var z = - Object.prototype.hasOwnProperty || - function(e) { - return e in this; - }; - function P(e, t) { - return z.call(e, t); - } - function H(e) { - return C.call(e); - } - function J(e, t) { - if (e.indexOf) return e.indexOf(t); - for (var n = 0, r = e.length; n < r; n++) - if (e[n] === t) return n; - return -1; - } - function W(e, t) { - if (e.length > t.maxStringLength) { - var n = e.length - t.maxStringLength, - r = - '... ' + - n + - ' more character' + - (n > 1 ? 's' : ''); - return W(m.call(e, 0, t.maxStringLength), t) + r; - } - return O( - f.call( - f.call(e, /(['\\])/g, '\\$1'), - /[\x00-\x1f]/g, - V - ), - 'single', - t - ); - } - function V(e) { - var t = e.charCodeAt(0), - n = {8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r'}[t]; - return n - ? '\\' + n - : '\\x' + (t < 16 ? '0' : '') + E.call(t.toString(16)); - } - function K(e) { - return 'Object(' + e + ')'; - } - function Z(e) { - return e + ' { ? }'; - } - function X(e, t, n, r) { - return ( - e + - ' (' + - t + - ') {' + - (r ? q(n, r) : b.call(n, ', ')) + - '}' - ); - } - function q(e, t) { - if (0 === e.length) return ''; - var n = '\n' + t.prev + t.base; - return n + b.call(e, ',' + n) + '\n' + t.prev; - } - function $(e, t) { - var n = G(e), - r = []; - if (n) { - r.length = e.length; - for (var i = 0; i < e.length; i++) - r[i] = P(e, i) ? t(e[i], e) : ''; - } - var o, - a = 'function' == typeof S ? S(e) : []; - if (F) { - o = {}; - for (var s = 0; s < a.length; s++) o['$' + a[s]] = a[s]; - } - for (var A in e) - P(e, A) && - ((n && String(Number(A)) === A && A < e.length) || - (F && o['$' + A] instanceof Symbol) || - (B.call(/[^\w$]/, A) - ? r.push(t(A, e) + ': ' + t(e[A], e)) - : r.push(A + ': ' + t(e[A], e)))); - if ('function' == typeof S) - for (var c = 0; c < a.length; c++) - D.call(e, a[c]) && - r.push('[' + t(a[c]) + ']: ' + t(e[a[c]], e)); - return r; - } - }, - 51874: (e, t, n) => { - 'use strict'; - var r = n(18654), - i = n(78376), - o = n(57594), - a = n(14453), - s = r('%WeakMap%', !0), - A = r('%Map%', !0), - c = i('WeakMap.prototype.get', !0), - l = i('WeakMap.prototype.set', !0), - g = i('WeakMap.prototype.has', !0), - u = i('Map.prototype.get', !0), - d = i('Map.prototype.set', !0), - h = i('Map.prototype.has', !0), - C = function(e, t) { - for (var n, r = e; null !== (n = r.next); r = n) - if (n.key === t) - return ( - (r.next = n.next), - (n.next = e.next), - (e.next = n), - n - ); - }; - e.exports = function() { - var e, - t, - n, - r = { - assert: function(e) { - if (!r.has(e)) - throw new a( - 'Side channel does not contain ' + o(e) - ); - }, - get: function(r) { - if ( - s && - r && - ('object' == typeof r || - 'function' == typeof r) - ) { - if (e) return c(e, r); - } else if (A) { - if (t) return u(t, r); - } else if (n) - return (function(e, t) { - var n = C(e, t); - return n && n.value; - })(n, r); - }, - has: function(r) { - if ( - s && - r && - ('object' == typeof r || - 'function' == typeof r) - ) { - if (e) return g(e, r); - } else if (A) { - if (t) return h(t, r); - } else if (n) - return (function(e, t) { - return !!C(e, t); - })(n, r); - return !1; - }, - set: function(r, i) { - s && - r && - ('object' == typeof r || 'function' == typeof r) - ? (e || (e = new s()), l(e, r, i)) - : A - ? (t || (t = new A()), d(t, r, i)) - : (n || (n = {key: {}, next: null}), - (function(e, t, n) { - var r = C(e, t); - r - ? (r.value = n) - : (e.next = { - key: t, - next: e.next, - value: n, - }); - })(n, r, i)); - }, - }; - return r; - }; - }, - 17563: (e, t, n) => { - 'use strict'; - const r = n(70610), - i = n(25459), - o = n(80500), - a = n(92806), - s = Symbol('encodeFragmentIdentifier'); + const i = n(92019), + r = n(75758), + o = n(37250), + s = n(73884), + a = Symbol('encodeFragmentIdentifier'); function A(e) { if ('string' != typeof e || 1 !== e.length) throw new TypeError( @@ -70648,12 +69622,12 @@ function c(e, t) { return t.encode ? t.strict - ? r(e) + ? i(e) : encodeURIComponent(e) : e; } function l(e, t) { - return t.decode ? i(e) : e; + return t.decode ? r(e) : e; } function g(e) { return Array.isArray(e) @@ -70705,58 +69679,58 @@ let t; switch (e.arrayFormat) { case 'index': - return (e, n, r) => { + return (e, n, i) => { (t = /\[(\d*)\]$/.exec(e)), (e = e.replace(/\[\d*\]$/, '')), t - ? (void 0 === r[e] && - (r[e] = {}), - (r[e][t[1]] = n)) - : (r[e] = n); + ? (void 0 === i[e] && + (i[e] = {}), + (i[e][t[1]] = n)) + : (i[e] = n); }; case 'bracket': - return (e, n, r) => { + return (e, n, i) => { (t = /(\[\])$/.exec(e)), (e = e.replace(/\[\]$/, '')), t - ? void 0 !== r[e] - ? (r[e] = [].concat( - r[e], + ? void 0 !== i[e] + ? (i[e] = [].concat( + i[e], n )) - : (r[e] = [n]) - : (r[e] = n); + : (i[e] = [n]) + : (i[e] = n); }; case 'colon-list-separator': - return (e, n, r) => { + return (e, n, i) => { (t = /(:list)$/.exec(e)), (e = e.replace(/:list$/, '')), t - ? void 0 !== r[e] - ? (r[e] = [].concat( - r[e], + ? void 0 !== i[e] + ? (i[e] = [].concat( + i[e], n )) - : (r[e] = [n]) - : (r[e] = n); + : (i[e] = [n]) + : (i[e] = n); }; case 'comma': case 'separator': - return (t, n, r) => { - const i = + return (t, n, i) => { + const r = 'string' == typeof n && n.includes( e.arrayFormatSeparator ), o = 'string' == typeof n && - !i && + !r && l(n, e).includes( e.arrayFormatSeparator ); n = o ? l(n, e) : n; - const a = - i || o + const s = + r || o ? n .split( e.arrayFormatSeparator @@ -70765,13 +69739,13 @@ : null === n ? n : l(n, e); - r[t] = a; + i[t] = s; }; case 'bracket-separator': - return (t, n, r) => { - const i = /(\[\])$/.test(t); - if (((t = t.replace(/\[\]$/, '')), !i)) - return void (r[t] = n + return (t, n, i) => { + const r = /(\[\])$/.test(t); + if (((t = t.replace(/\[\]$/, '')), !r)) + return void (i[t] = n ? l(n, e) : n); const o = @@ -70782,9 +69756,9 @@ e.arrayFormatSeparator ) .map(t => l(t, e)); - void 0 !== r[t] - ? (r[t] = [].concat(r[t], o)) - : (r[t] = o); + void 0 !== i[t] + ? (i[t] = [].concat(i[t], o)) + : (i[t] = o); }; default: return (e, t, n) => { @@ -70794,40 +69768,40 @@ }; } })(t), - r = Object.create(null); - if ('string' != typeof e) return r; - if (!(e = e.trim().replace(/^[?#&]/, ''))) return r; - for (const i of e.split('&')) { - if ('' === i) continue; - let [e, a] = o( - t.decode ? i.replace(/\+/g, ' ') : i, + i = Object.create(null); + if ('string' != typeof e) return i; + if (!(e = e.trim().replace(/^[?#&]/, ''))) return i; + for (const r of e.split('&')) { + if ('' === r) continue; + let [e, s] = o( + t.decode ? r.replace(/\+/g, ' ') : r, '=' ); - (a = - void 0 === a + (s = + void 0 === s ? null : [ 'comma', 'separator', 'bracket-separator', ].includes(t.arrayFormat) - ? a - : l(a, t)), - n(l(e, t), a, r); + ? s + : l(s, t)), + n(l(e, t), s, i); } - for (const e of Object.keys(r)) { - const n = r[e]; + for (const e of Object.keys(i)) { + const n = i[e]; if ('object' == typeof n && null !== n) for (const e of Object.keys(n)) n[e] = h(n[e], t); - else r[e] = h(n, t); + else i[e] = h(n, t); } return !1 === t.sort - ? r + ? i : (!0 === t.sort - ? Object.keys(r).sort() - : Object.keys(r).sort(t.sort) + ? Object.keys(i).sort() + : Object.keys(i).sort(t.sort) ).reduce((e, t) => { - const n = r[t]; + const n = i[t]; return ( Boolean(n) && 'object' == typeof n && @@ -70856,22 +69830,22 @@ const n = n => (t.skipNull && null == e[n]) || (t.skipEmptyString && '' === e[n]), - r = (function(e) { + i = (function(e) { switch (e.arrayFormat) { case 'index': - return t => (n, r) => { - const i = n.length; - return void 0 === r || - (e.skipNull && null === r) || - (e.skipEmptyString && '' === r) + return t => (n, i) => { + const r = n.length; + return void 0 === i || + (e.skipNull && null === i) || + (e.skipEmptyString && '' === i) ? n - : null === r + : null === i ? [ ...n, [ c(t, e), '[', - i, + r, ']', ].join(''), ] @@ -70880,19 +69854,19 @@ [ c(t, e), '[', - c(i, e), - ']=', c(r, e), + ']=', + c(i, e), ].join(''), ]; }; case 'bracket': - return t => (n, r) => - void 0 === r || - (e.skipNull && null === r) || - (e.skipEmptyString && '' === r) + return t => (n, i) => + void 0 === i || + (e.skipNull && null === i) || + (e.skipEmptyString && '' === i) ? n - : null === r + : null === i ? [ ...n, [c(t, e), '[]'].join(''), @@ -70902,16 +69876,16 @@ [ c(t, e), '[]=', - c(r, e), + c(i, e), ].join(''), ]; case 'colon-list-separator': - return t => (n, r) => - void 0 === r || - (e.skipNull && null === r) || - (e.skipEmptyString && '' === r) + return t => (n, i) => + void 0 === i || + (e.skipNull && null === i) || + (e.skipEmptyString && '' === i) ? n - : null === r + : null === i ? [ ...n, [c(t, e), ':list='].join( @@ -70923,7 +69897,7 @@ [ c(t, e), ':list=', - c(r, e), + c(i, e), ].join(''), ]; case 'comma': @@ -70934,62 +69908,62 @@ e.arrayFormat ? '[]=' : '='; - return n => (r, i) => - void 0 === i || - (e.skipNull && null === i) || - (e.skipEmptyString && '' === i) - ? r - : ((i = null === i ? '' : i), - 0 === r.length + return n => (i, r) => + void 0 === r || + (e.skipNull && null === r) || + (e.skipEmptyString && '' === r) + ? i + : ((r = null === r ? '' : r), + 0 === i.length ? [ [ c(n, e), t, - c(i, e), + c(r, e), ].join(''), ] : [ - [r, c(i, e)].join( + [i, c(r, e)].join( e.arrayFormatSeparator ), ]); } default: - return t => (n, r) => - void 0 === r || - (e.skipNull && null === r) || - (e.skipEmptyString && '' === r) + return t => (n, i) => + void 0 === i || + (e.skipNull && null === i) || + (e.skipEmptyString && '' === i) ? n - : null === r + : null === i ? [...n, c(t, e)] : [ ...n, [ c(t, e), '=', - c(r, e), + c(i, e), ].join(''), ]; } })(t), - i = {}; - for (const t of Object.keys(e)) n(t) || (i[t] = e[t]); - const o = Object.keys(i); + r = {}; + for (const t of Object.keys(e)) n(t) || (r[t] = e[t]); + const o = Object.keys(r); return ( !1 !== t.sort && o.sort(t.sort), o .map(n => { - const i = e[n]; - return void 0 === i + const r = e[n]; + return void 0 === r ? '' - : null === i + : null === r ? c(n, t) - : Array.isArray(i) - ? 0 === i.length && + : Array.isArray(r) + ? 0 === r.length && 'bracket-separator' === t.arrayFormat ? c(n, t) + '[]' - : i.reduce(r(n), []).join('&') - : c(n, t) + '=' + c(i, t); + : r.reduce(i(n), []).join('&') + : c(n, t) + '=' + c(r, t); }) .filter(e => e.length > 0) .join('&') @@ -70997,21 +69971,21 @@ }), (t.parseUrl = (e, t) => { t = Object.assign({decode: !0}, t); - const [n, r] = o(e, '#'); + const [n, i] = o(e, '#'); return Object.assign( {url: n.split('?')[0] || '', query: C(d(e), t)}, - t && t.parseFragmentIdentifier && r - ? {fragmentIdentifier: l(r, t)} + t && t.parseFragmentIdentifier && i + ? {fragmentIdentifier: l(i, t)} : {} ); }), (t.stringifyUrl = (e, n) => { - n = Object.assign({encode: !0, strict: !0, [s]: !0}, n); - const r = u(e.url).split('?')[0] || '', - i = t.extract(e.url), - o = t.parse(i, {sort: !1}), - a = Object.assign(o, e.query); - let A = t.stringify(a, n); + n = Object.assign({encode: !0, strict: !0, [a]: !0}, n); + const i = u(e.url).split('?')[0] || '', + r = t.extract(e.url), + o = t.parse(r, {sort: !1}), + s = Object.assign(o, e.query); + let A = t.stringify(s, n); A && (A = `?${A}`); let l = (function(e) { let t = ''; @@ -71021,109 +69995,44 @@ return ( e.fragmentIdentifier && (l = `#${ - n[s] + n[a] ? c(e.fragmentIdentifier, n) : e.fragmentIdentifier }`), - `${r}${A}${l}` + `${i}${A}${l}` ); }), - (t.pick = (e, n, r) => { - r = Object.assign( - {parseFragmentIdentifier: !0, [s]: !1}, - r + (t.pick = (e, n, i) => { + i = Object.assign( + {parseFragmentIdentifier: !0, [a]: !1}, + i ); const { - url: i, + url: r, query: o, fragmentIdentifier: A, - } = t.parseUrl(e, r); + } = t.parseUrl(e, i); return t.stringifyUrl( - {url: i, query: a(o, n), fragmentIdentifier: A}, - r + {url: r, query: s(o, n), fragmentIdentifier: A}, + i ); }), - (t.exclude = (e, n, r) => { - const i = Array.isArray(n) + (t.exclude = (e, n, i) => { + const r = Array.isArray(n) ? e => !n.includes(e) : (e, t) => !n(e, t); - return t.pick(e, i, r); + return t.pick(e, r, i); }); }, - 25459: e => { + 92696: (e, t, n) => { 'use strict'; - var t = '%[a-f0-9]{2}', - n = new RegExp('(' + t + ')|([^%]+?)', 'gi'), - r = new RegExp('(' + t + ')+', 'gi'); function i(e, t) { - try { - return [decodeURIComponent(e.join(''))]; - } catch (e) {} - if (1 === e.length) return e; - t = t || 1; - var n = e.slice(0, t), - r = e.slice(t); - return Array.prototype.concat.call([], i(n), i(r)); - } - function o(e) { - try { - return decodeURIComponent(e); - } catch (o) { - for (var t = e.match(n) || [], r = 1; r < t.length; r++) - t = (e = i(t, r).join('')).match(n) || []; - return e; - } - } - e.exports = function(e) { - if ('string' != typeof e) - throw new TypeError( - 'Expected `encodedURI` to be of type `string`, got `' + - typeof e + - '`' - ); - try { - return ( - (e = e.replace(/\+/g, ' ')), decodeURIComponent(e) - ); - } catch (t) { - return (function(e) { - for ( - var t = {'%FE%FF': '��', '%FF%FE': '��'}, - n = r.exec(e); - n; - - ) { - try { - t[n[0]] = decodeURIComponent(n[0]); - } catch (e) { - var i = o(n[0]); - i !== n[0] && (t[n[0]] = i); - } - n = r.exec(e); - } - t['%C2'] = '�'; - for ( - var a = Object.keys(t), s = 0; - s < a.length; - s++ - ) { - var A = a[s]; - e = e.replace(new RegExp(A, 'g'), t[A]); - } - return e; - })(e); - } - }; - }, - 39505: (e, t, n) => { - 'use strict'; - function r(e, t) { if (!(e instanceof t)) throw new TypeError( 'Cannot call a class as a function' ); } - function i(e, t) { + function r(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -71134,36 +70043,36 @@ : t; } var o = n(99196), - a = n(69064), - s = n(69984), - A = n(79544).refType, - c = n(57892), + s = n(69064), + a = n(53927), + A = n(63609).refType, + c = n(7521), l = { - ambManager: a.object.isRequired, - children: a.node.isRequired, - disabled: a.bool, + ambManager: s.object.isRequired, + children: s.node.isRequired, + disabled: s.bool, forwardedRef: A, - tag: a.string, + tag: s.string, }, g = (function(e) { function t() { - var n, a; - r(this, t); + var n, s; + i(this, t); for ( - var s = arguments.length, A = Array(s), c = 0; - c < s; + var a = arguments.length, A = Array(a), c = 0; + c < a; c++ ) A[c] = arguments[c]; return ( - (n = a = i( + (n = s = r( this, e.call.apply(e, [this].concat(A)) )), - (a.ref = o.createRef()), - (a.handleKeyDown = function(e) { - if (!a.props.disabled) { - var t = a.props.ambManager; + (s.ref = o.createRef()), + (s.handleKeyDown = function(e) { + if (!s.props.disabled) { + var t = s.props.ambManager; switch (e.key) { case 'ArrowDown': e.preventDefault(), @@ -71184,22 +70093,22 @@ } } }), - (a.handleClick = function() { - a.props.disabled || - a.props.ambManager.toggleMenu( + (s.handleClick = function() { + s.props.disabled || + s.props.ambManager.toggleMenu( {}, {focusMenu: !1} ); }), - (a.setRef = function(e) { - (a.ref.current = e), + (s.setRef = function(e) { + (s.ref.current = e), 'function' == - typeof a.props.forwardedRef - ? a.props.forwardedRef(e) - : a.props.forwardedRef && - (a.props.forwardedRef.current = e); + typeof s.props.forwardedRef + ? s.props.forwardedRef(e) + : s.props.forwardedRef && + (s.props.forwardedRef.current = e); }), - i(a, n) + r(s, n) ); } return ( @@ -71240,9 +70149,9 @@ onKeyDown: this.handleKeyDown, onClick: this.handleClick, }, - r = {}; + i = {}; return ( - c(r, l), + c(i, l), [ 'button', 'fieldset', @@ -71251,10 +70160,10 @@ 'option', 'select', 'textarea', - ].indexOf(e.tag) >= 0 && delete r.disabled, + ].indexOf(e.tag) >= 0 && delete i.disabled, t.options.closeOnBlur && (n.onBlur = t.handleBlur), - c(n, e, r), + c(n, e, i), c(n, {ref: this.setRef}), o.createElement(e.tag, n, e.children) ); @@ -71265,33 +70174,33 @@ (g.propTypes = l), (g.defaultProps = {tag: 'span'}), (e.exports = o.forwardRef(function(e, t) { - return o.createElement(s.Consumer, null, function(n) { - var r = {ambManager: n, forwardedRef: t}; + return o.createElement(a.Consumer, null, function(n) { + var i = {ambManager: n, forwardedRef: t}; return ( - c(r, e, { + c(i, e, { ambManager: l.ambManager, children: l.children, forwardedRef: l.forwardedRef, }), - o.createElement(g, r, e.children) + o.createElement(g, i, e.children) ); }); })); }, - 69984: (e, t, n) => { + 53927: (e, t, n) => { 'use strict'; - var r = n(99196).createContext(); - e.exports = r; + var i = n(99196).createContext(); + e.exports = i; }, - 14403: (e, t, n) => { + 55249: (e, t, n) => { 'use strict'; - function r(e, t) { + function i(e, t) { if (!(e instanceof t)) throw new TypeError( 'Cannot call a class as a function' ); } - function i(e, t) { + function r(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -71302,21 +70211,21 @@ : t; } var o = n(99196), - a = n(69064), - s = n(49222), - A = n(69984), - c = n(79544).refType, - l = n(57892), + s = n(69064), + a = n(67899), + A = n(53927), + c = n(63609).refType, + l = n(7521), g = { - ambManager: a.object.isRequired, - children: a.oneOfType([a.func, a.node]).isRequired, + ambManager: s.object.isRequired, + children: s.oneOfType([s.func, s.node]).isRequired, forwardedRef: c, - tag: a.string, + tag: s.string, }, u = (function(e) { function t() { - var n, a; - r(this, t); + var n, s; + i(this, t); for ( var A = arguments.length, c = Array(A), l = 0; l < A; @@ -71324,38 +70233,38 @@ ) c[l] = arguments[l]; return ( - (n = a = i( + (n = s = r( this, e.call.apply(e, [this].concat(c)) )), - (a.ref = o.createRef()), - (a.addTapListener = function() { - var e = a.ref.current; + (s.ref = o.createRef()), + (s.addTapListener = function() { + var e = s.ref.current; if (e) { var t = e.ownerDocument; t && - (a.tapListener = s( + (s.tapListener = a( t.documentElement, - a.handleTap + s.handleTap )); } }), - (a.handleTap = function(e) { - a.ref.current.contains(e.target) || - a.props.ambManager.button.ref.current.contains( + (s.handleTap = function(e) { + s.ref.current.contains(e.target) || + s.props.ambManager.button.ref.current.contains( e.target ) || - a.props.ambManager.closeMenu(); + s.props.ambManager.closeMenu(); }), - (a.setRef = function(e) { - (a.ref.current = e), + (s.setRef = function(e) { + (s.ref.current = e), 'function' == - typeof a.props.forwardedRef - ? a.props.forwardedRef(e) - : a.props.forwardedRef && - (a.props.forwardedRef.current = e); + typeof s.props.forwardedRef + ? s.props.forwardedRef(e) + : s.props.forwardedRef && + (s.props.forwardedRef.current = e); }), - i(a, n) + r(s, n) ); } return ( @@ -71404,17 +70313,17 @@ ? e.children({isOpen: t.isOpen}) : !!t.isOpen && e.children; if (!n) return !1; - var r = { + var i = { onKeyDown: t.handleMenuKey, role: 'menu', tabIndex: -1, }; return ( t.options.closeOnBlur && - (r.onBlur = t.handleBlur), - l(r, e, g), - l(r, {ref: this.setRef}), - o.createElement(e.tag, r, n) + (i.onBlur = t.handleBlur), + l(i, e, g), + l(i, {ref: this.setRef}), + o.createElement(e.tag, i, n) ); }), t @@ -71424,27 +70333,27 @@ (u.defaultProps = {tag: 'div'}), (e.exports = o.forwardRef(function(e, t) { return o.createElement(A.Consumer, null, function(n) { - var r = {ambManager: n, forwardedRef: t}; + var i = {ambManager: n, forwardedRef: t}; return ( - l(r, e, { + l(i, e, { ambManager: g.ambManager, children: g.children, forwardedRef: g.forwardedRef, }), - o.createElement(u, r, e.children) + o.createElement(u, i, e.children) ); }); })); }, - 94715: (e, t, n) => { + 280: (e, t, n) => { 'use strict'; - function r(e, t) { + function i(e, t) { if (!(e instanceof t)) throw new TypeError( 'Cannot call a class as a function' ); } - function i(e, t) { + function r(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -71455,55 +70364,55 @@ : t; } var o = n(99196), - a = n(69064), - s = n(69984), - A = n(79544).refType, - c = n(57892), + s = n(69064), + a = n(53927), + A = n(63609).refType, + c = n(7521), l = { - ambManager: a.object.isRequired, - children: a.node.isRequired, + ambManager: s.object.isRequired, + children: s.node.isRequired, forwardedRef: A, - tag: a.string, - text: a.string, - value: a.any, + tag: s.string, + text: s.string, + value: s.any, }, g = (function(e) { function t() { - var n, a; - r(this, t); + var n, s; + i(this, t); for ( - var s = arguments.length, A = Array(s), c = 0; - c < s; + var a = arguments.length, A = Array(a), c = 0; + c < a; c++ ) A[c] = arguments[c]; return ( - (n = a = i( + (n = s = r( this, e.call.apply(e, [this].concat(A)) )), - (a.ref = o.createRef()), - (a.handleKeyDown = function(e) { + (s.ref = o.createRef()), + (s.handleKeyDown = function(e) { ('Enter' !== e.key && ' ' !== e.key) || - ('a' === a.props.tag && a.props.href) || - (e.preventDefault(), a.selectItem(e)); + ('a' === s.props.tag && s.props.href) || + (e.preventDefault(), s.selectItem(e)); }), - (a.selectItem = function(e) { + (s.selectItem = function(e) { var t = - void 0 !== a.props.value - ? a.props.value - : a.props.children; - a.props.ambManager.handleSelection(t, e); + void 0 !== s.props.value + ? s.props.value + : s.props.children; + s.props.ambManager.handleSelection(t, e); }), - (a.setRef = function(e) { - (a.ref.current = e), + (s.setRef = function(e) { + (s.ref.current = e), 'function' == - typeof a.props.forwardedRef - ? a.props.forwardedRef(e) - : a.props.forwardedRef && - (a.props.forwardedRef.current = e); + typeof s.props.forwardedRef + ? s.props.forwardedRef(e) + : s.props.forwardedRef && + (s.props.forwardedRef.current = e); }), - i(a, n) + r(s, n) ); } return ( @@ -71555,35 +70464,35 @@ (g.propTypes = l), (g.defaultProps = {tag: 'div'}), (e.exports = o.forwardRef(function(e, t) { - return o.createElement(s.Consumer, null, function(n) { - var r = {ambManager: n, forwardedRef: t}; + return o.createElement(a.Consumer, null, function(n) { + var i = {ambManager: n, forwardedRef: t}; return ( - c(r, e, { + c(i, e, { ambManager: l.ambManager, children: l.children, forwardedRef: l.forwardedRef, }), - o.createElement(g, r, e.children) + o.createElement(g, i, e.children) ); }); })); }, - 65287: (e, t, n) => { + 975: (e, t, n) => { 'use strict'; - var r = n(99196), - i = n(69064), - o = n(73017), - a = n(69984), - s = n(79544).refType, - A = n(57892), + var i = n(99196), + r = n(69064), + o = n(71819), + s = n(53927), + a = n(63609).refType, + A = n(7521), c = { - children: i.node.isRequired, - forwardedRef: s, - onMenuToggle: i.func, - onSelection: i.func, - closeOnSelection: i.bool, - closeOnBlur: i.bool, - tag: i.string, + children: r.node.isRequired, + forwardedRef: a, + onMenuToggle: r.func, + onSelection: r.func, + closeOnSelection: r.bool, + closeOnBlur: r.bool, + tag: r.string, }, l = function(e) { return { @@ -71602,7 +70511,7 @@ 'Cannot call a class as a function' ); })(this, t); - var r = (function(e, t) { + var i = (function(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -71613,7 +70522,7 @@ ? e : t; })(this, e.call(this, n)); - return (r.manager = o(l(n))), r; + return (i.manager = o(l(n))), i; } return ( (function(e, t) { @@ -71642,10 +70551,10 @@ var e = {}; return ( A(e, this.props, c), - r.createElement( - a.Provider, + i.createElement( + s.Provider, {value: this.manager}, - r.createElement( + i.createElement( this.props.tag, e, this.props.children @@ -71655,10 +70564,10 @@ }), t ); - })(r.Component); + })(i.Component); (g.propTypes = c), (g.defaultProps = {tag: 'div'}), - (e.exports = r.forwardRef(function(e, t) { + (e.exports = i.forwardRef(function(e, t) { var n = {forwardedRef: t}; return ( A(n, e, { @@ -71666,22 +70575,22 @@ forwardedRef: c.forwardedRef, }), A(n, {forwardedRef: t}), - r.createElement(g, n, e.children) + i.createElement(g, n, e.children) ); })); }, - 73017: (e, t, n) => { + 71819: (e, t, n) => { 'use strict'; - var r = n(21838), - i = n(5821), + var i = n(50192), + r = n(30365), o = {wrap: !0, stringSearch: !0}, - a = { + s = { init: function(e) { this.updateOptions(e), - (this.handleBlur = s.bind(this)), + (this.handleBlur = a.bind(this)), (this.handleSelection = A.bind(this)), (this.handleMenuKey = c.bind(this)), - (this.focusGroup = r(o)), + (this.focusGroup = i(o)), (this.button = null), (this.menu = null), (this.isOpen = !1); @@ -71694,11 +70603,11 @@ void 0 === this.options.closeOnBlur && (this.options.closeOnBlur = !0), this.options.id && - i.registerManager(this.options.id, this), + r.registerManager(this.options.id, this), t && t.id && t.id !== this.options.id && - i.unregisterManager(this.options.id, this); + r.unregisterManager(this.options.id, this); }, focusItem: function(e) { this.focusGroup.focusNodeAtIndex(e); @@ -71759,7 +70668,7 @@ : this.openMenu(t); }, }; - function s() { + function a() { var e = this; e.blurTimer = setTimeout(function() { if (e.button) { @@ -71767,9 +70676,9 @@ if (t) { var n = t.ownerDocument.activeElement; if (!t || n !== t) { - var r = e.menu.ref.current; - r !== n - ? (r && r.contains(n)) || + var i = e.menu.ref.current; + i !== n + ? (i && i.contains(n)) || (e.isOpen && e.closeMenu({focusButton: !1})) : e.focusItem(0); @@ -71801,11 +70710,11 @@ } } e.exports = function(e) { - var t = Object.create(a); + var t = Object.create(s); return t.init(e), t; }; }, - 5821: e => { + 30365: e => { 'use strict'; var t = {}, n = @@ -71817,70 +70726,70 @@ unregisterManager: function(e) { delete t[e]; }, - openMenu: function(e, r) { - var i = t[e]; - if (!i) throw new Error('Cannot open ' + n); - i.openMenu(r); + openMenu: function(e, i) { + var r = t[e]; + if (!r) throw new Error('Cannot open ' + n); + r.openMenu(i); }, - closeMenu: function(e, r) { - var i = t[e]; - if (!i) throw new Error('Cannot close ' + n); - i.closeMenu(r); + closeMenu: function(e, i) { + var r = t[e]; + if (!r) throw new Error('Cannot close ' + n); + r.closeMenu(i); }, }; }, - 91556: (e, t, n) => { + 4454: (e, t, n) => { 'use strict'; - var r = n(5821); + var i = n(30365); e.exports = { - Wrapper: n(65287), - Button: n(39505), - Menu: n(14403), - MenuItem: n(94715), - openMenu: r.openMenu, - closeMenu: r.closeMenu, + Wrapper: n(975), + Button: n(92696), + Menu: n(55249), + MenuItem: n(280), + openMenu: i.openMenu, + closeMenu: i.closeMenu, }; }, - 79544: (e, t, n) => { + 63609: (e, t, n) => { 'use strict'; - var r = n(69064); + var i = n(69064); e.exports = { - refType: r.oneOfType([ - r.func, - r.shape({current: r.elementType}), + refType: i.oneOfType([ + i.func, + i.shape({current: i.elementType}), ]), }; }, - 57892: e => { + 7521: e => { 'use strict'; e.exports = function(e, t, n) { - for (var r in ((n = n || {}), t)) - t.hasOwnProperty(r) && (n[r] || (e[r] = t[r])); + for (var i in ((n = n || {}), t)) + t.hasOwnProperty(i) && (n[i] || (e[i] = t[i])); }; }, - 97893: function(e, t, n) { - var r; + 35668: function(e, t, n) { + var i; e.exports = - ((r = n(99196)), + ((i = n(99196)), (function(e) { var t = {}; - function n(r) { - if (t[r]) return t[r].exports; - var i = (t[r] = {i: r, l: !1, exports: {}}); + function n(i) { + if (t[i]) return t[i].exports; + var r = (t[i] = {i, l: !1, exports: {}}); return ( - e[r].call(i.exports, i, i.exports, n), - (i.l = !0), - i.exports + e[i].call(r.exports, r, r.exports, n), + (r.l = !0), + r.exports ); } return ( (n.m = e), (n.c = t), - (n.d = function(e, t, r) { + (n.d = function(e, t, i) { n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, - get: r, + get: i, }); }), (n.r = function(e) { @@ -71904,24 +70813,24 @@ e.__esModule ) return e; - var r = Object.create(null); + var i = Object.create(null); if ( - (n.r(r), - Object.defineProperty(r, 'default', { + (n.r(i), + Object.defineProperty(i, 'default', { enumerable: !0, value: e, }), 2 & t && 'string' != typeof e) ) - for (var i in e) + for (var r in e) n.d( - r, i, + r, function(t) { return e[t]; - }.bind(null, i) + }.bind(null, r) ); - return r; + return i; }), (n.n = function(e) { var t = @@ -71948,23 +70857,23 @@ e.exports = n(2)(); }, function(e, t) { - e.exports = r; + e.exports = i; }, function(e, t, n) { 'use strict'; - var r = n(3); - function i() {} + var i = n(3); + function r() {} function o() {} - (o.resetWarningCache = i), + (o.resetWarningCache = r), (e.exports = function() { - function e(e, t, n, i, o, a) { - if (a !== r) { - var s = new Error( + function e(e, t, n, r, o, s) { + if (s !== i) { + var a = new Error( 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types' ); - throw ((s.name = + throw ((a.name = 'Invariant Violation'), - s); + a); } } function t() { @@ -71992,7 +70901,7 @@ shape: t, exact: t, checkPropTypes: o, - resetWarningCache: i, + resetWarningCache: r, }; return (n.PropTypes = n), n; }); @@ -72005,11 +70914,11 @@ function(e, t, n) { 'use strict'; n.r(t); - var r = n(1), - i = n.n(r), + var i = n(1), + r = n.n(i), o = n(0), - a = n.n(o), - s = function(e) { + s = n.n(o), + a = function(e) { return 0 !== e; }; function A() { @@ -72022,11 +70931,11 @@ t++ ) { var n = arguments[t]; - for (var r in n) + for (var i in n) Object.prototype.hasOwnProperty.call( n, - r - ) && (e[r] = n[r]); + i + ) && (e[i] = n[i]); } return e; }).apply(this, arguments); @@ -72049,11 +70958,11 @@ } function l(e, t) { for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + var i = t[n]; + (i.enumerable = i.enumerable || !1), + (i.configurable = !0), + 'value' in i && (i.writable = !0), + Object.defineProperty(e, i.key, i); } } function g(e, t) { @@ -72089,11 +70998,11 @@ })(); return function() { var n, - r = C(e); + i = C(e); if (t) { - var i = C(this).constructor; - n = Reflect.construct(r, arguments, i); - } else n = r.apply(this, arguments); + var r = C(this).constructor; + n = Reflect.construct(i, arguments, r); + } else n = i.apply(this, arguments); return d(this, n); }; } @@ -72160,12 +71069,12 @@ writable: !1, }), t && g(e, t); - })(a, e); + })(s, e); var t, n, - r, - o = u(a); - function a(e) { + i, + o = u(s); + function s(e) { var t; return ( (function(e, t) { @@ -72173,7 +71082,7 @@ throw new TypeError( 'Cannot call a class as a function' ); - })(this, a), + })(this, s), I( h((t = o.call(this, e))), 'continueOpenCollapsible', @@ -72190,7 +71099,7 @@ .concat(t.props.easing), isClosed: !1, hasBeenOpened: !0, - inTransition: s( + inTransition: a( e.scrollHeight ), shouldOpenOnNextCycle: !1, @@ -72276,7 +71185,7 @@ ); } return ( - (t = a), + (t = s), (n = [ { key: 'componentDidUpdate', @@ -72342,7 +71251,7 @@ .concat( this.props.easing ), - inTransition: s( + inTransition: a( e.scrollHeight ), }); @@ -72352,7 +71261,7 @@ key: 'openCollapsible', value: function() { this.setState({ - inTransition: s( + inTransition: a( this.innerRef .scrollHeight ), @@ -72370,7 +71279,7 @@ if (!t) return null; switch (c(t)) { case 'string': - return i.a.createElement( + return r.a.createElement( 'span', { className: ''.concat( @@ -72408,7 +71317,7 @@ n = this.state.isClosed ? 'is-closed' : 'is-open', - r = this.props + i = this.props .triggerDisabled ? 'is-disabled' : '', @@ -72423,9 +71332,9 @@ .triggerWhenOpen : this.props .trigger, - a = this.props - .contentContainerTagName, s = this.props + .contentContainerTagName, + a = this.props .triggerTagName, c = this.props.lazyRender && @@ -72443,7 +71352,7 @@ h = '' .concat(g, '__trigger ') .concat(n, ' ') - .concat(r, ' ') + .concat(i, ' ') .concat( this.state.isClosed ? this.props @@ -72472,15 +71381,15 @@ '__contentInner ' ) .concat(d); - return i.a.createElement( - a, + return r.a.createElement( + s, A( {className: C.trim()}, this.props .containerElementProps ), - i.a.createElement( - s, + r.a.createElement( + a, A( { id: this @@ -72529,7 +71438,7 @@ o ), this.renderNonClickableTriggerElement(), - i.a.createElement( + r.a.createElement( 'div', { id: this.contentId, @@ -72550,7 +71459,7 @@ 'aria-labelledby': this .triggerId, }, - i.a.createElement( + r.a.createElement( 'div', { className: p.trim(), @@ -72562,52 +71471,52 @@ }, }, ]) && l(t.prototype, n), - r && l(t, r), + i && l(t, i), Object.defineProperty(t, 'prototype', { writable: !1, }), - a + s ); - })(r.Component); + })(i.Component); (p.propTypes = { - transitionTime: a.a.number, - transitionCloseTime: a.a.number, - triggerTagName: a.a.string, - easing: a.a.string, - open: a.a.bool, - containerElementProps: a.a.object, - triggerElementProps: a.a.object, - contentElementId: a.a.string, - classParentString: a.a.string, - className: a.a.string, - openedClassName: a.a.string, - triggerStyle: a.a.object, - triggerClassName: a.a.string, - triggerOpenedClassName: a.a.string, - contentOuterClassName: a.a.string, - contentInnerClassName: a.a.string, - accordionPosition: a.a.oneOfType([ - a.a.string, - a.a.number, + transitionTime: s.a.number, + transitionCloseTime: s.a.number, + triggerTagName: s.a.string, + easing: s.a.string, + open: s.a.bool, + containerElementProps: s.a.object, + triggerElementProps: s.a.object, + contentElementId: s.a.string, + classParentString: s.a.string, + className: s.a.string, + openedClassName: s.a.string, + triggerStyle: s.a.object, + triggerClassName: s.a.string, + triggerOpenedClassName: s.a.string, + contentOuterClassName: s.a.string, + contentInnerClassName: s.a.string, + accordionPosition: s.a.oneOfType([ + s.a.string, + s.a.number, ]), - handleTriggerClick: a.a.func, - onOpen: a.a.func, - onClose: a.a.func, - onOpening: a.a.func, - onClosing: a.a.func, - onTriggerOpening: a.a.func, - onTriggerClosing: a.a.func, - trigger: a.a.oneOfType([ - a.a.string, - a.a.element, + handleTriggerClick: s.a.func, + onOpen: s.a.func, + onClose: s.a.func, + onOpening: s.a.func, + onClosing: s.a.func, + onTriggerOpening: s.a.func, + onTriggerClosing: s.a.func, + trigger: s.a.oneOfType([ + s.a.string, + s.a.element, ]), - triggerWhenOpen: a.a.oneOfType([ - a.a.string, - a.a.element, + triggerWhenOpen: s.a.oneOfType([ + s.a.string, + s.a.element, ]), - triggerDisabled: a.a.bool, - lazyRender: a.a.bool, - overflowWhenOpen: a.a.oneOf([ + triggerDisabled: s.a.bool, + lazyRender: s.a.bool, + overflowWhenOpen: s.a.oneOf([ 'hidden', 'visible', 'auto', @@ -72616,17 +71525,17 @@ 'initial', 'unset', ]), - contentHiddenWhenClosed: a.a.bool, - triggerSibling: a.a.oneOfType([ - a.a.string, - a.a.element, - a.a.func, + contentHiddenWhenClosed: s.a.bool, + triggerSibling: s.a.oneOfType([ + s.a.string, + s.a.element, + s.a.func, ]), - tabIndex: a.a.number, - contentContainerTagName: a.a.string, - children: a.a.oneOfType([ - a.a.string, - a.a.element, + tabIndex: s.a.number, + contentContainerTagName: s.a.string, + children: s.a.oneOfType([ + s.a.string, + s.a.element, ]), }), (p.defaultProps = { @@ -72662,17 +71571,17 @@ }, ])); }, - 90044: (e, t, n) => { + 59086: (e, t, n) => { 'use strict'; - var r = n(99196), - i = n(51117); + var i = n(99196), + r = n(80161); function o(e) { return e && 'object' == typeof e && 'default' in e ? e : {default: e}; } - var a = o(r), - s = o(i); + var s = o(i), + a = o(r); function A(e) { return (A = 'function' == typeof Symbol && @@ -72708,19 +71617,19 @@ function(e) { for (var t = 1; t < arguments.length; t++) { var n, - r = arguments[t]; - for (n in r) + i = arguments[t]; + for (n in i) Object.prototype.hasOwnProperty.call( - r, + i, n - ) && (e[n] = r[n]); + ) && (e[n] = i[n]); } return e; }).apply(this, arguments); } function g(e, t) { var n, - r = Object.keys(e); + i = Object.keys(e); return ( Object.getOwnPropertySymbols && ((n = Object.getOwnPropertySymbols(e)), @@ -72731,8 +71640,8 @@ t ).enumerable; })), - r.push.apply(r, n)), - r + i.push.apply(i, n)), + i ); } function u(e) { @@ -72778,23 +71687,23 @@ Symbol.iterator in Object(e) ) { var n = [], - r = !0, - i = !1, + i = !0, + r = !1, o = void 0; try { for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 + var s, a = e[Symbol.iterator](); + !(i = (s = a.next()).done) && + (n.push(s.value), !t || n.length !== t); + i = !0 ); } catch (e) { - (i = !0), (o = e); + (r = !0), (o = e); } finally { try { - r || null == s.return || s.return(); + i || null == a.return || a.return(); } finally { - if (i) throw o; + if (r) throw o; } } return n; @@ -72849,8 +71758,8 @@ } function p(e, t) { (null == t || t > e.length) && (t = e.length); - for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; - return r; + for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n]; + return i; } var m = 'undefined' != typeof globalThis @@ -72870,13 +71779,13 @@ B = E ? Symbol.for('react.portal') : 60106, w = E ? Symbol.for('react.fragment') : 60107, b = E ? Symbol.for('react.strict_mode') : 60108, - v = E ? Symbol.for('react.profiler') : 60114, - M = E ? Symbol.for('react.provider') : 60109, + M = E ? Symbol.for('react.profiler') : 60114, + v = E ? Symbol.for('react.provider') : 60109, N = E ? Symbol.for('react.context') : 60110, S = E ? Symbol.for('react.async_mode') : 60111, Q = E ? Symbol.for('react.concurrent_mode') : 60111, - F = E ? Symbol.for('react.forward_ref') : 60112, - x = E ? Symbol.for('react.suspense') : 60113, + x = E ? Symbol.for('react.forward_ref') : 60112, + F = E ? Symbol.for('react.suspense') : 60113, D = E ? Symbol.for('react.suspense_list') : 60120, T = E ? Symbol.for('react.memo') : 60115, Y = E ? Symbol.for('react.lazy') : 60116, @@ -72884,7 +71793,7 @@ _ = E ? Symbol.for('react.fundamental') : 60117, U = E ? Symbol.for('react.responder') : 60118, O = E ? Symbol.for('react.scope') : 60119; - function k(e) { + function G(e) { if ('object' == typeof e && null !== e) { var t = e.$$typeof; switch (t) { @@ -72893,17 +71802,17 @@ case S: case Q: case w: - case v: + case M: case b: - case x: + case F: return e; default: switch ((e = e && e.$$typeof)) { case N: - case F: + case x: case Y: case T: - case M: + case v: return e; default: return t; @@ -72914,32 +71823,32 @@ } } } - function G(e) { - return k(e) === Q; + function L(e) { + return G(e) === Q; } - var L = { + var k = { AsyncMode: S, ConcurrentMode: Q, ContextConsumer: N, - ContextProvider: M, + ContextProvider: v, Element: y, - ForwardRef: F, + ForwardRef: x, Fragment: w, Lazy: Y, Memo: T, Portal: B, - Profiler: v, + Profiler: M, StrictMode: b, - Suspense: x, + Suspense: F, isAsyncMode: function(e) { - return G(e) || k(e) === S; + return L(e) || G(e) === S; }, - isConcurrentMode: G, + isConcurrentMode: L, isContextConsumer: function(e) { - return k(e) === N; + return G(e) === N; }, isContextProvider: function(e) { - return k(e) === M; + return G(e) === v; }, isElement: function(e) { return ( @@ -72949,28 +71858,28 @@ ); }, isForwardRef: function(e) { - return k(e) === F; + return G(e) === x; }, isFragment: function(e) { - return k(e) === w; + return G(e) === w; }, isLazy: function(e) { - return k(e) === Y; + return G(e) === Y; }, isMemo: function(e) { - return k(e) === T; + return G(e) === T; }, isPortal: function(e) { - return k(e) === B; + return G(e) === B; }, isProfiler: function(e) { - return k(e) === v; + return G(e) === M; }, isStrictMode: function(e) { - return k(e) === b; + return G(e) === b; }, isSuspense: function(e) { - return k(e) === x; + return G(e) === F; }, isValidElementType: function(e) { return ( @@ -72978,57 +71887,57 @@ 'function' == typeof e || e === w || e === Q || - e === v || + e === M || e === b || - e === x || + e === F || e === D || ('object' == typeof e && null !== e && (e.$$typeof === Y || e.$$typeof === T || - e.$$typeof === M || + e.$$typeof === v || e.$$typeof === N || - e.$$typeof === F || + e.$$typeof === x || e.$$typeof === _ || e.$$typeof === U || e.$$typeof === O || e.$$typeof === R)) ); }, - typeOf: k, + typeOf: G, }, - j = f(function(e, t) {}), - z = - (j.AsyncMode, - j.ConcurrentMode, - j.ContextConsumer, - j.ContextProvider, - j.Element, - j.ForwardRef, - j.Fragment, - j.Lazy, - j.Memo, - j.Portal, - j.Profiler, - j.StrictMode, - j.Suspense, - j.isAsyncMode, - j.isConcurrentMode, - j.isContextConsumer, - j.isContextProvider, - j.isElement, - j.isForwardRef, - j.isFragment, - j.isLazy, - j.isMemo, - j.isPortal, - j.isProfiler, - j.isStrictMode, - j.isSuspense, - j.isValidElementType, - j.typeOf, + z = f(function(e, t) {}), + j = + (z.AsyncMode, + z.ConcurrentMode, + z.ContextConsumer, + z.ContextProvider, + z.Element, + z.ForwardRef, + z.Fragment, + z.Lazy, + z.Memo, + z.Portal, + z.Profiler, + z.StrictMode, + z.Suspense, + z.isAsyncMode, + z.isConcurrentMode, + z.isContextConsumer, + z.isContextProvider, + z.isElement, + z.isForwardRef, + z.isFragment, + z.isLazy, + z.isMemo, + z.isPortal, + z.isProfiler, + z.isStrictMode, + z.isSuspense, + z.isValidElementType, + z.typeOf, f(function(e) { - e.exports = L; + e.exports = k; }), Object.getOwnPropertySymbols), P = Object.prototype.hasOwnProperty, @@ -73060,22 +71969,22 @@ .join('') ) return !1; - var r = {}; + var i = {}; return ( 'abcdefghijklmnopqrst' .split('') .forEach(function(e) { - r[e] = e; + i[e] = e; }), 'abcdefghijklmnopqrst' === - Object.keys(Object.assign({}, r)).join('') + Object.keys(Object.assign({}, i)).join('') ); } catch (e) { return !1; } })() && Object.assign; var W = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - function V(e, t, n, r, i) {} + function V(e, t, n, i, r) {} V.resetWarningCache = function() {}; Function.call.bind(Object.prototype.hasOwnProperty); function K() {} @@ -73083,7 +71992,7 @@ Z.resetWarningCache = K; var X = f(function(e) { e.exports = (function() { - function e(e, t, n, r, i, o) { + function e(e, t, n, i, r, o) { if (o !== W) throw (((o = new Error( 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types' @@ -73118,14 +72027,14 @@ return (n.PropTypes = n); })(); }), - q = r.createContext(), + q = i.createContext(), $ = function() { - return r.useContext(q); + return i.useContext(q); }, ee = function(e) { var t = e.children; e = e.initialState; - return a.default.createElement( + return s.default.createElement( q.Provider, {value: e}, t @@ -73138,8 +72047,8 @@ }; var te = 1; var ne, - re, ie, + re, oe = { nextValue: function() { return (te = (9301 * te + 49297) % 233280) / 233280; @@ -73148,18 +72057,18 @@ te = e; }, }, - ae = + se = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-'; - function se() { - ie = !1; + function ae() { + re = !1; } function Ae(e) { if (e) { if (e !== ne) { - if (e.length !== ae.length) + if (e.length !== se.length) throw new Error( 'Custom alphabet for shortid must be ' + - ae.length + + se.length + ' unique characters. You submitted ' + e.length + ' characters: ' + @@ -73171,42 +72080,42 @@ if (t.length) throw new Error( 'Custom alphabet for shortid must be ' + - ae.length + + se.length + ' unique characters. These characters were not unique: ' + t.join(', ') ); - (ne = e), se(); + (ne = e), ae(); } - } else ne !== ae && ((ne = ae), se()); + } else ne !== se && ((ne = se), ae()); } function ce() { - return (ie = - ie || + return (re = + re || (function() { - ne || Ae(ae); + ne || Ae(se); for ( var e, t = ne.split(''), n = [], - r = oe.nextValue(); + i = oe.nextValue(); 0 < t.length; ) - (r = oe.nextValue()), - (e = Math.floor(r * t.length)), + (i = oe.nextValue()), + (e = Math.floor(i * t.length)), n.push(t.splice(e, 1)[0]); return n.join(''); })()); } var le = { get: function() { - return ne || ae; + return ne || se; }, characters: function(e) { return Ae(e), ne; }, seed: function(e) { - oe.seed(e), re !== e && (se(), (re = e)); + oe.seed(e), ie !== e && (ae(), (ie = e)); }, lookup: function(e) { return ce()[e]; @@ -73229,26 +72138,26 @@ de = ue, he = function(e, t, n) { for ( - var r = + var i = (2 << (Math.log(t.length - 1) / Math.LN2)) - 1, - i = -~((1.6 * r * n) / t.length), + r = -~((1.6 * i * n) / t.length), o = ''; ; ) - for (var a = e(i), s = i; s--; ) - if ((o += t[a[s] & r] || '').length === +n) + for (var s = e(r), a = r; a--; ) + if ((o += t[s[a] & i] || '').length === +n) return o; }; var Ce, Ie, pe = function(e) { - for (var t, n = 0, r = ''; !t; ) - (r += he(de, le.get(), 1)), + for (var t, n = 0, i = ''; !t; ) + (i += he(de, le.get(), 1)), (t = e < Math.pow(16, n + 1)), n++; - return r; + return i; }; var me = function(e) { var t = '', @@ -73308,11 +72217,11 @@ Ee), Be = f(function(e, t) { var n = '__lodash_hash_undefined__', - r = 1 / 0, - i = 9007199254740991, + i = 1 / 0, + r = 9007199254740991, o = '[object Arguments]', - a = '[object Array]', - s = '[object Boolean]', + s = '[object Array]', + a = '[object Boolean]', A = '[object Date]', c = '[object Error]', l = '[object Function]', @@ -73329,27 +72238,27 @@ B = '[object DataView]', w = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, b = /^\w*$/, - v = /^\./, - M = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + M = /^\./, + v = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, N = /\\(\\)?/g, S = /^\[object .+?Constructor\]$/, Q = /^(?:0|[1-9]\d*)$/, - F = {}; - (F['[object Float32Array]'] = F[ + x = {}; + (x['[object Float32Array]'] = x[ '[object Float64Array]' - ] = F['[object Int8Array]'] = F[ + ] = x['[object Int8Array]'] = x[ '[object Int16Array]' - ] = F['[object Int32Array]'] = F[ + ] = x['[object Int32Array]'] = x[ '[object Uint8Array]' - ] = F['[object Uint8ClampedArray]'] = F[ + ] = x['[object Uint8ClampedArray]'] = x[ '[object Uint16Array]' - ] = F['[object Uint32Array]'] = !0), - (F[o] = F[a] = F[y] = F[s] = F[B] = F[A] = F[c] = F[ + ] = x['[object Uint32Array]'] = !0), + (x[o] = x[s] = x[y] = x[a] = x[B] = x[A] = x[c] = x[ l - ] = F[g] = F[u] = F[d] = F[C] = F[I] = F[p] = F[ + ] = x[g] = x[u] = x[d] = x[C] = x[I] = x[p] = x[ E ] = !1); - var x = + var F = 'object' == typeof m && m && m.Object === Object && @@ -73359,15 +72268,15 @@ self && self.Object === Object && self, - T = x || D || Function('return this')(), + T = F || D || Function('return this')(), Y = - (j = - (z = t && !t.nodeType && t) && + (z = + (j = t && !t.nodeType && t) && e && !e.nodeType && e) && - j.exports === z && - x.process; + z.exports === j && + F.process; t = (D = (function() { try { @@ -73376,12 +72285,12 @@ })()) && D.isTypedArray; function R(e, t) { for ( - var n = -1, r = e ? e.length : 0, i = Array(r); - ++n < r; + var n = -1, i = e ? e.length : 0, r = Array(i); + ++n < i; ) - i[n] = t(e[n], n, e); - return i; + r[n] = t(e[n], n, e); + return r; } function _(e) { return function(t) { @@ -73400,13 +72309,13 @@ var t = -1, n = Array(e.size); return ( - e.forEach(function(e, r) { - n[++t] = [r, e]; + e.forEach(function(e, i) { + n[++t] = [i, e]; }), n ); } - function k(e) { + function G(e) { var t = -1, n = Array(e.size); return ( @@ -73416,19 +72325,19 @@ n ); } - var G, - L, - j = Array.prototype, - z = Function.prototype, + var L, + k, + z = Array.prototype, + j = Function.prototype, P = Object.prototype, H = - ((x = T['__core-js_shared__']), + ((F = T['__core-js_shared__']), (D = /[^.]+$/.exec( - (x && x.keys && x.keys.IE_PROTO) || '' + (F && F.keys && F.keys.IE_PROTO) || '' )) ? 'Symbol(src)_1.' + D : ''), - J = z.toString, + J = j.toString, W = P.hasOwnProperty, V = P.toString, K = RegExp( @@ -73441,52 +72350,52 @@ ) + '$' ), - Z = ((x = T.Symbol), T.Uint8Array), + Z = ((F = T.Symbol), T.Uint8Array), X = P.propertyIsEnumerable, - q = j.splice, + q = z.splice, $ = - ((G = Object.keys), - (L = Object), + ((L = Object.keys), + (k = Object), function(e) { - return G(L(e)); + return L(k(e)); }), ee = ((D = Ne(T, 'DataView')), Ne(T, 'Map')), te = - ((z = Ne(T, 'Promise')), - (j = Ne(T, 'Set')), + ((j = Ne(T, 'Promise')), + (z = Ne(T, 'Set')), (T = Ne(T, 'WeakMap')), Ne(Object, 'create')), ne = Re(D), - re = Re(ee), - ie = Re(z), - oe = Re(j), - ae = Re(T), - se = (x = x ? x.prototype : void 0) - ? x.valueOf + ie = Re(ee), + re = Re(j), + oe = Re(z), + se = Re(T), + ae = (F = F ? F.prototype : void 0) + ? F.valueOf : void 0, - Ae = x ? x.toString : void 0; + Ae = F ? F.toString : void 0; function ce(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } function le(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } function ge(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); + var i = e[t]; + this.set(i[0], i[1]); } } function ue(e) { @@ -73500,25 +72409,25 @@ } function he(e, t) { var n, - r = - ke(e) || Oe(e) + i = + Ge(e) || Oe(e) ? (function(e, t) { for ( - var n = -1, r = Array(e); + var n = -1, i = Array(e); ++n < e; ) - r[n] = t(n); - return r; + i[n] = t(n); + return i; })(e.length, String) : [], - i = r.length, - o = !!i; + r = i.length, + o = !!r; for (n in e) (!t && !W.call(e, n)) || - (o && ('length' == n || Qe(n, i))) || - r.push(n); - return r; + (o && ('length' == n || Qe(n, r))) || + i.push(n); + return i; } function Ce(e, t) { for (var n = e.length; n--; ) @@ -73534,8 +72443,8 @@ (ce.prototype.get = function(e) { var t = this.__data__; if (te) { - var r = t[e]; - return r === n ? void 0 : r; + var i = t[e]; + return i === n ? void 0 : i; } return W.call(t, e) ? t[e] : void 0; }), @@ -73572,9 +72481,9 @@ }), (le.prototype.set = function(e, t) { var n = this.__data__, - r = Ce(n, e); + i = Ce(n, e); return ( - r < 0 ? n.push([e, t]) : (n[r][1] = t), this + i < 0 ? n.push([e, t]) : (n[i][1] = t), this ); }), (ge.prototype.clear = function() { @@ -73585,16 +72494,16 @@ }; }), (ge.prototype.delete = function(e) { - return Me(this, e).delete(e); + return ve(this, e).delete(e); }), (ge.prototype.get = function(e) { - return Me(this, e).get(e); + return ve(this, e).get(e); }), (ge.prototype.has = function(e) { - return Me(this, e).has(e); + return ve(this, e).has(e); }), (ge.prototype.set = function(e, t) { - return Me(this, e).set(e, t), this; + return ve(this, e).set(e, t), this; }), (ue.prototype.add = ue.prototype.push = function( e @@ -73619,10 +72528,10 @@ (de.prototype.set = function(e, t) { var n = this.__data__; if (n instanceof le) { - var r = n.__data__; - if (!ee || r.length < 199) - return r.push([e, t]), this; - n = this.__data__ = new ge(r); + var i = n.__data__; + if (!ee || i.length < 199) + return i.push([e, t]), this; + n = this.__data__ = new ge(i); } return n.set(e, t), this; }); @@ -73633,51 +72542,51 @@ }), function(e, t) { if (null == e) return e; - if (!Ge(e)) return Ie(e, t); + if (!Le(e)) return Ie(e, t); for ( - var n = e.length, r = -1, i = Object(e); - ++r < n && !1 !== t(i[r], r, i); + var n = e.length, i = -1, r = Object(e); + ++i < n && !1 !== t(r[i], i, r); ); return e; }), me = function(e, t, n) { for ( - var r = -1, - i = Object(e), + var i = -1, + r = Object(e), o = n(e), - a = o.length; - a--; + s = o.length; + s--; ) { - var s = o[++r]; - if (!1 === t(i[s], s, i)) break; + var a = o[++i]; + if (!1 === t(r[a], a, r)) break; } return e; }; function fe(e, t) { for ( var n = 0, - r = (t = Fe(t, e) ? [t] : be(t)).length; - null != e && n < r; + i = (t = xe(t, e) ? [t] : be(t)).length; + null != e && n < i; ) e = e[Ye(t[n++])]; - return n && n == r ? e : void 0; + return n && n == i ? e : void 0; } function Ee(e, t) { return null != e && t in Object(e); } - function ye(e, t, n, r, i) { + function ye(e, t, n, i, r) { return ( e === t || - (null == e || null == t || (!ze(e) && !Pe(t)) + (null == e || null == t || (!je(e) && !Pe(t)) ? e != e && t != t - : (function(e, t, n, r, i, l) { - var h = ke(e), - m = ke(t), - E = a, - w = a; + : (function(e, t, n, i, r, l) { + var h = Ge(e), + m = Ge(t), + E = s, + w = s; h || (E = (E = Se(e)) == o ? d : E), m || (w = @@ -73687,15 +72596,15 @@ return (w = E == w) && !b ? ((l = l || new de()), h || Je(e) - ? ve(e, t, n, r, i, l) + ? Me(e, t, n, i, r, l) : (function( e, t, n, - r, i, + r, o, - a + s ) { switch (n) { case B: @@ -73714,7 +72623,7 @@ return !( e.byteLength != t.byteLength || - !r( + !i( new Z( e ), @@ -73723,7 +72632,7 @@ ) ) ); - case s: + case a: case A: case u: return Ue( @@ -73752,52 +72661,52 @@ o), (l = l || - k), + G), e.size == t.size || n - ? (n = a.get( + ? (n = s.get( e )) ? n == t : ((o |= 1), - a.set( + s.set( e, t ), - (o = ve( + (o = Me( l( e ), l( t ), - r, i, + r, o, - a + s )), - a.delete( + s.delete( e ), o) : !1 ); case f: - if (se) + if (ae) return ( - se.call( + ae.call( e ) == - se.call( + ae.call( t ) ); } return !1; - })(e, t, E, n, r, i, l)) - : 2 & i || + })(e, t, E, n, i, r, l)) + : 2 & r || ((b = b && W.call(e, '__wrapped__')), @@ -73806,16 +72715,16 @@ W.call(t, '__wrapped__')), !b && !m) ? w && - (function(e, t, n, r, i, o) { - var a = 2 & i, - s = We(e), - A = s.length, + (function(e, t, n, i, r, o) { + var s = 2 & r, + a = We(e), + A = a.length, c = We(t).length; - if (A != c && !a) return !1; + if (A != c && !s) return !1; for (var l = A; l--; ) { - var g = s[l]; + var g = a[l]; if ( - !(a + !(s ? g in t : W.call(t, g)) ) @@ -73826,14 +72735,14 @@ return u == t; var d = !0; o.set(e, t), o.set(t, e); - for (var h = a; ++l < A; ) { + for (var h = s; ++l < A; ) { var C, - I = e[(g = s[l])], + I = e[(g = a[l])], p = t[g]; if ( - (r && - (C = a - ? r( + (i && + (C = s + ? i( p, I, g, @@ -73841,7 +72750,7 @@ e, o ) - : r( + : i( I, p, g, @@ -73854,8 +72763,8 @@ n( I, p, - r, i, + r, o ) : C)) @@ -73897,18 +72806,18 @@ e, t, n, - r, i, + r, (l = l || new de()) ) : n( (b = b ? e.value() : e), (m = m ? t.value() : t), - r, i, + r, (l = l || new de()) ); - })(e, t, ye, n, r, i)) + })(e, t, ye, n, i, r)) ); } function Be(e) { @@ -73917,12 +72826,12 @@ : null == e ? Ve : 'object' == typeof e - ? ke(e) + ? Ge(e) ? (function(e, t) { - return Fe(e) && xe(t) + return xe(e) && Fe(t) ? De(Ye(e), t) : function(n) { - var r = (function(e, t, n) { + var i = (function(e, t, n) { return void 0 === (t = null == e @@ -73931,8 +72840,8 @@ ? void 0 : t; })(n, e); - return void 0 === r && - r === t + return void 0 === i && + i === t ? null != (n = n) && (function( e, @@ -73940,9 +72849,9 @@ n ) { for ( - var r, - i = -1, - o = (t = Fe( + var i, + r = -1, + o = (t = xe( t, e ) @@ -73953,37 +72862,37 @@ t )) .length; - ++i < o; + ++r < o; ) { - var a = Ye( - t[i] + var s = Ye( + t[r] ); if ( - !(r = + !(i = null != e && n( e, - a + s )) ) break; - e = e[a]; + e = e[s]; } return ( - r || + i || (!!(o = e ? e.length : 0) && - je( + ze( o ) && Qe( - a, + s, o ) && - (ke( + (Ge( e ) || Oe( @@ -73991,7 +72900,7 @@ ))) ); })(n, e, Ee) - : ye(t, r, void 0, 3); + : ye(t, i, void 0, 3); }; })(e[0], e[1]) : (function(e) { @@ -74001,9 +72910,9 @@ n--; ) { - var r = t[n], - i = e[r]; - t[n] = [r, i, xe(i)]; + var i = t[n], + r = e[i]; + t[n] = [i, r, Fe(r)]; } return t; })(e); @@ -74012,43 +72921,43 @@ : function(n) { return ( n === e || - (function(e, t, n, r) { - var i = n.length, - o = i; + (function(e, t, n, i) { + var r = n.length, + o = r; if (null == e) return !o; for ( e = Object(e); - i--; + r--; ) { - var a = n[i]; + var s = n[r]; if ( - a[2] - ? a[1] !== + s[2] + ? s[1] !== e[ - a[0] + s[0] ] : !( - a[0] in + s[0] in e ) ) return !1; } - for (; ++i < o; ) { - var s = (a = + for (; ++r < o; ) { + var a = (s = n[ - i + r ])[0], - A = e[s], - c = a[1]; - if (a[2]) { + A = e[a], + c = s[1]; + if (s[2]) { if ( void 0 === A && !( - s in + a in e ) ) @@ -74062,7 +72971,7 @@ ? ye( c, A, - r, + i, 3, g ) @@ -74076,7 +72985,7 @@ ); }; })(e) - : Fe((e = e)) + : xe((e = e)) ? (function(e) { return function(t) { return null == t ? void 0 : t[e]; @@ -74100,33 +73009,33 @@ return $(e); var t, n, - r, - i = []; - for (r in Object(e)) - W.call(e, r) && 'constructor' != r && i.push(r); - return i; + i, + r = []; + for (i in Object(e)) + W.call(e, i) && 'constructor' != i && r.push(i); + return r; } function be(e) { - return ke(e) ? e : Te(e); + return Ge(e) ? e : Te(e); } - function ve(e, t, n, r, i, o) { - var a = 2 & i, - s = e.length, + function Me(e, t, n, i, r, o) { + var s = 2 & r, + a = e.length, A = t.length; - if (s != A && !(a && s < A)) return !1; + if (a != A && !(s && a < A)) return !1; if ((A = o.get(e)) && o.get(t)) return A == t; var c = -1, l = !0, - g = 1 & i ? new ue() : void 0; - for (o.set(e, t), o.set(t, e); ++c < s; ) { + g = 1 & r ? new ue() : void 0; + for (o.set(e, t), o.set(t, e); ++c < a; ) { var u, d = e[c], h = t[c]; if ( - (r && - (u = a - ? r(h, d, c, t, e, o) - : r(d, h, c, e, t, o)), + (i && + (u = s + ? i(h, d, c, t, e, o) + : i(d, h, c, e, t, o)), void 0 !== u) ) { if (u) continue; @@ -74138,15 +73047,15 @@ !(function(e, t) { for ( var n = -1, - r = e ? e.length : 0; - ++n < r; + i = e ? e.length : 0; + ++n < i; ) if (t(e[n], n)) return 1; })(t, function(e, t) { return ( !g.has(t) && - (d === e || n(d, e, r, i, o)) && + (d === e || n(d, e, i, r, o)) && g.add(t) ); }) @@ -74154,33 +73063,33 @@ l = !1; break; } - } else if (d !== h && !n(d, h, r, i, o)) { + } else if (d !== h && !n(d, h, i, r, o)) { l = !1; break; } } return o.delete(e), o.delete(t), l; } - function Me(e, t) { + function ve(e, t) { var n, - r = e.__data__; + i = e.__data__; return ('string' == (e = typeof (n = t)) || 'number' == e || 'symbol' == e || 'boolean' == e ? '__proto__' !== n : null === n) - ? r['string' == typeof t ? 'string' : 'hash'] - : r.map; + ? i['string' == typeof t ? 'string' : 'hash'] + : i.map; } function Ne(e, t) { return ( (t = t), (function(e) { return ( - ze(e) && + je(e) && !(H && H in e) && - (Le(e) || U(e) ? K : S).test(Re(e)) + (ke(e) || U(e) ? K : S).test(Re(e)) ); })((t = null == (e = e) ? void 0 : e[t])) ? t @@ -74192,15 +73101,15 @@ }; function Qe(e, t) { return ( - !!(t = null == t ? i : t) && + !!(t = null == t ? r : t) && ('number' == typeof e || Q.test(e)) && -1 < e && e % 1 == 0 && e < t ); } - function Fe(e, t) { - if (!ke(e)) { + function xe(e, t) { + if (!Ge(e)) { var n = typeof e; return ( 'number' == n || @@ -74214,8 +73123,8 @@ ); } } - function xe(e) { - return e == e && !ze(e); + function Fe(e) { + return e == e && !je(e); } function De(e, t) { return function(n) { @@ -74228,8 +73137,8 @@ } ((D && Se(new D(new ArrayBuffer(1))) != B) || (ee && Se(new ee()) != g) || - (z && Se(z.resolve()) != h) || - (j && Se(new j()) != I) || + (j && Se(j.resolve()) != h) || + (z && Se(new z()) != I) || (T && Se(new T()) != E)) && (Se = function(e) { var t = V.call(e); @@ -74241,13 +73150,13 @@ switch (e) { case ne: return B; - case re: - return g; case ie: + return g; + case re: return h; case oe: return I; - case ae: + case se: return E; } return t; @@ -74262,15 +73171,15 @@ if (He(e)) return Ae ? Ae.call(e) : ''; var t = e + ''; - return '0' == t && 1 / e == -r + return '0' == t && 1 / e == -i ? '-0' : t; })(t); var n = []; return ( - v.test(e) && n.push(''), - e.replace(M, function(e, t, r, i) { - n.push(r ? i.replace(N, '$1') : t || e); + M.test(e) && n.push(''), + e.replace(v, function(e, t, i, r) { + n.push(i ? r.replace(N, '$1') : t || e); }), n ); @@ -74278,7 +73187,7 @@ function Ye(e) { if ('string' == typeof e || He(e)) return e; var t = e + ''; - return '0' == t && 1 / e == -r ? '-0' : t; + return '0' == t && 1 / e == -i ? '-0' : t; } function Re(e) { if (null != e) { @@ -74298,14 +73207,14 @@ ) throw new TypeError('Expected a function'); var n = function() { - var r = arguments, - i = t ? t.apply(this, r) : r[0], + var i = arguments, + r = t ? t.apply(this, i) : i[0], o = n.cache; - return o.has(i) - ? o.get(i) - : ((r = e.apply(this, r)), - (n.cache = o.set(i, r)), - r); + return o.has(r) + ? o.get(r) + : ((i = e.apply(this, i)), + (n.cache = o.set(r, i)), + i); }; return (n.cache = new (_e.Cache || ge)()), n; } @@ -74315,32 +73224,32 @@ function Oe(e) { return ( Pe((t = e)) && - Ge(t) && + Le(t) && W.call(e, 'callee') && (!X.call(e, 'callee') || V.call(e) == o) ); var t; } _e.Cache = ge; - var ke = Array.isArray; - function Ge(e) { - return null != e && je(e.length) && !Le(e); - } + var Ge = Array.isArray; function Le(e) { + return null != e && ze(e.length) && !ke(e); + } + function ke(e) { return ( - (e = ze(e) ? V.call(e) : '') == l || + (e = je(e) ? V.call(e) : '') == l || '[object GeneratorFunction]' == e ); } - function je(e) { + function ze(e) { return ( 'number' == typeof e && -1 < e && e % 1 == 0 && - e <= i + e <= r ); } - function ze(e) { + function je(e) { var t = typeof e; return e && ('object' == t || 'function' == t); } @@ -74357,26 +73266,26 @@ ? _(t) : function(e) { return ( - Pe(e) && je(e.length) && !!F[V.call(e)] + Pe(e) && ze(e.length) && !!x[V.call(e)] ); }; function We(e) { - return (Ge(e) ? he : we)(e); + return (Le(e) ? he : we)(e); } function Ve(e) { return e; } - e.exports = function(e, t, n, r) { + e.exports = function(e, t, n, i) { return null == e ? [] - : (ke(t) || (t = null == t ? [] : [t]), - ke((n = r ? void 0 : n)) || + : (Ge(t) || (t = null == t ? [] : [t]), + Ge((n = i ? void 0 : n)) || (n = null == n ? [] : [n]), (function(e, t, n) { - var r, - i, + var i, + r, o, - a = -1; + s = -1; return ( (t = R(t.length ? t : [Ve], _(Be))), (function(e, t) { @@ -74385,34 +73294,34 @@ e[n] = e[n].value; return e; })( - ((r = function(e, n, r) { + ((i = function(e, n, i) { return { criteria: R(t, function( t ) { return t(e); }), - index: ++a, + index: ++s, value: e, }; }), - (i = -1), - (o = Ge((e = e)) + (r = -1), + (o = Le((e = e)) ? Array(e.length) : []), pe(e, function(e, t, n) { - o[++i] = r(e); + o[++r] = i(e); }), o), function(e, t) { return (function(e, t, n) { for ( - var r = -1, - i = e.criteria, + var i = -1, + r = e.criteria, o = t.criteria, - a = i.length, - s = n.length; - ++r < a; + s = r.length, + a = n.length; + ++i < s; ) { var A = (function( @@ -74423,17 +73332,17 @@ var n = void 0 !== e, - r = + i = null === e, - i = + r = e == e, o = He(e), - a = + s = void 0 !== t, - s = + a = null === t, A = @@ -74441,52 +73350,52 @@ t, c = He(t); if ( - (!s && + (!a && !c && !o && t < e) || (o && - a && + s && A && - !s && + !a && !c) || - (r && - a && + (i && + s && A) || (!n && A) || - !i + !r ) return 1; if ( - (!r && + (!i && !o && !c && e < t) || (c && n && - i && - !r && + r && + !i && !o) || - (s && + (a && n && - i) || - (!a && - i) || + r) || + (!s && + r) || !A ) return -1; } return 0; - })(i[r], o[r]); + })(r[i], o[i]); if (A) - return s <= r + return a <= i ? A : A * ('desc' == - n[r] + n[i] ? -1 : 1); } @@ -74515,33 +73424,33 @@ ); }, be = function(e, t, n) { - var r = 1 < arguments.length && void 0 !== t ? t : {}, - i = 2 < arguments.length ? n : void 0; + var i = 1 < arguments.length && void 0 !== t ? t : {}, + r = 2 < arguments.length ? n : void 0; e = (0 < arguments.length && void 0 !== e ? e : [] ).slice(); return ( - r[i] + i[r] ? e.splice( e.findIndex(function(e) { - return e[i] === r[i]; + return e[r] === i[r]; }), 1 ) : e.splice( e.findIndex(function(e) { - return e === r; + return e === i; }), 1 ), e ); }, - ve = function(e) { + Me = function(e) { return e ? 'asc' : 'desc'; }, - Me = function(e, t) { + ve = function(e, t) { return Math.ceil(e / t); }, Ne = function(e, t) { @@ -74552,7 +73461,7 @@ }, Qe = function(e, t) { var n = 0 < arguments.length && void 0 !== e ? e : {}, - r = {}; + i = {}; return ( (t = 1 < arguments.length && void 0 !== t ? t : []) .length && @@ -74562,16 +73471,16 @@ '"when" must be defined in the conditional style object and must be function' ); e.when(n) && - ((r = e.style || {}), + ((i = e.style || {}), 'function' == typeof e.style && - (r = e.style(n) || {})); + (i = e.style(n) || {})); }), - r + i ); }, - Fe = function(e, t, n) { - var r = 0 < arguments.length && void 0 !== e ? e : {}, - i = + xe = function(e, t, n) { + var i = 0 < arguments.length && void 0 !== e ? e : {}, + r = ((t = 1 < arguments.length && void 0 !== t ? t @@ -74579,15 +73488,15 @@ 2 < arguments.length && void 0 !== n ? n : 'id'); - return r[i] + return i[r] ? t.some(function(e) { - return e[i] === r[i]; + return e[r] === i[r]; }) : t.some(function(e) { - return e === r; + return e === i; }); }, - xe = function(e) { + Fe = function(e) { return 'auto' !== (e = 0 < arguments.length && void 0 !== e @@ -74612,17 +73521,17 @@ switch (t.type) { case 'SELECT_ALL_ROWS': var n = t.rows, - r = t.rowCount, - i = t.mergeSelections, + i = t.rowCount, + r = t.mergeSelections, o = t.keyField, - a = !e.allSelected; - if (i) { - var s = a + s = !e.allSelected; + if (r) { + var a = s ? [].concat( C(e.selectedRows), C( n.filter(function(t) { - return !Fe( + return !xe( t, e.selectedRows, o @@ -74631,15 +73540,15 @@ ) ) : e.selectedRows.filter(function(e) { - return !Fe(e, n, o); + return !xe(e, n, o); }); return u( u({}, e), {}, { - allSelected: a, - selectedCount: s.length, - selectedRows: s, + allSelected: s, + selectedCount: a.length, + selectedRows: a, } ); } @@ -74647,21 +73556,21 @@ u({}, e), {}, { - allSelected: a, - selectedCount: a ? r : 0, - selectedRows: a ? n : [], + allSelected: s, + selectedCount: s ? i : 0, + selectedRows: s ? n : [], } ); case 'SELECT_SINGLE_ROW': return ( - (i = t.row), - (s = t.isSelected), - (r = t.keyField), - (a = t.rowCount), + (r = t.row), + (a = t.isSelected), + (i = t.keyField), + (s = t.rowCount), u( u({}, e), {}, - s + a ? { selectedCount: 0 < e.selectedRows.length @@ -74671,8 +73580,8 @@ allSelected: !1, selectedRows: be( e.selectedRows, - i, - r + r, + i ), } : { @@ -74680,10 +73589,10 @@ e.selectedRows.length + 1, allSelected: e.selectedRows.length + 1 === - a, + s, selectedRows: we( e.selectedRows, - i + r ), } ) @@ -74698,7 +73607,7 @@ C(e.selectedRows), C( A.filter(function(t) { - return !Fe(t, e.selectedRows, g); + return !xe(t, e.selectedRows, g); }) ) ); @@ -74815,8 +73724,8 @@ e ); } - var Re = i.css(Ye()), - _e = s.default.div( + var Re = r.css(Ye()), + _e = a.default.div( Te(), function(e) { return e.disabled && Re; @@ -74837,10 +73746,10 @@ e ); } - var Oe = s.default.div(Ue(), function(e) { + var Oe = a.default.div(Ue(), function(e) { return e.theme.head.style; }); - function ke() { + function Ge() { var e = d([ '\n display: flex;\n align-items: stretch;\n width: 100%;\n ', ';\n ', @@ -74848,24 +73757,24 @@ ';\n', ]); return ( - (ke = function() { + (Ge = function() { return e; }), e ); } - function Ge() { + function Le() { var e = d(['\n pointer-events: none;\n']); return ( - (Ge = function() { + (Le = function() { return e; }), e ); } - var Le = i.css(Ge()), - je = s.default.div( - ke(), + var ke = r.css(Le()), + ze = a.default.div( + Ge(), function(e) { return e.theme.headRow.style; }, @@ -74873,17 +73782,17 @@ return e.dense && e.theme.headRow.denseStyle; }, function(e) { - return e.disabled && Le; + return e.disabled && ke; } ); - function ze() { + function je() { var e = d([ '\n @media screen and (max-width: ', 'px) {\n ', '\n }\n ', ]); return ( - (ze = function() { + (je = function() { return e; }), e @@ -74929,24 +73838,24 @@ ); } var We = function() { - return i.css(Je(), 599, i.css.apply(void 0, arguments)); + return r.css(Je(), 599, r.css.apply(void 0, arguments)); }, Ve = function() { - return i.css(He(), 959, i.css.apply(void 0, arguments)); + return r.css(He(), 959, r.css.apply(void 0, arguments)); }, Ke = function() { - return i.css( + return r.css( Pe(), 1280, - i.css.apply(void 0, arguments) + r.css.apply(void 0, arguments) ); }, Ze = function(e) { return function() { - return i.css( - ze(), + return r.css( + je(), e, - i.css.apply(void 0, arguments) + r.css.apply(void 0, arguments) ); }; }; @@ -75021,21 +73930,21 @@ e ); } - function rt() { + function it() { var e = d([ '\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n line-height: normal;\n ', ';\n ', ';\n', ]); return ( - (rt = function() { + (it = function() { return e; }), e ); } - var it = s.default.div( - rt(), + var rt = a.default.div( + it(), function(e) { return e.theme[e.head ? 'headCells' : 'cells'] .style; @@ -75044,7 +73953,7 @@ return e.noPadding && 'padding: 0'; } ), - ot = s.default(it)( + ot = a.default(rt)( nt(), function(e) { return 0 === e.column.grow || e.column.button @@ -75060,7 +73969,7 @@ function(e) { return ( e.column.width && - i.css(tt(), e.column.width, e.column.width) + r.css(tt(), e.column.width, e.column.width) ); }, function(e) { @@ -75109,8 +74018,8 @@ ); } ), - at = 'allowRowEvents'; - function st() { + st = 'allowRowEvents'; + function at() { var e = d([ '\n font-size: ', ';\n font-weight: 400;\n ', @@ -75119,7 +74028,7 @@ ';\n', ]); return ( - (st = function() { + (at = function() { return e; }), e @@ -75138,7 +74047,7 @@ e ); } - var ct = i.css( + var ct = r.css( At(), function(e) { return e.column.wrap ? 'normal' : 'nowrap'; @@ -75149,8 +74058,8 @@ : 'hidden'; } ), - lt = s.default(ot)( - st(), + lt = a.default(ot)( + at(), function(e) { return e.theme.rows.fontSize; }, @@ -75164,29 +74073,29 @@ return e.extendedCellStyle; } ), - gt = r.memo(function(e) { + gt = i.memo(function(e) { var t = e.id, n = e.rowIndex, - r = e.column, - i = e.row; - if (r.omit) return null; - var o = r.ignoreRowClick || r.button ? null : at; - e = Qe(i, r.conditionalCellStyles); - return a.default.createElement( + i = e.column, + r = e.row; + if (i.omit) return null; + var o = i.ignoreRowClick || i.button ? null : st; + e = Qe(r, i.conditionalCellStyles); + return s.default.createElement( lt, { id: t, role: 'gridcell', - column: r, + column: i, 'data-tag': o, className: 'rdt_TableCell', extendedCellStyle: e, }, - !r.cell && - a.default.createElement( + !i.cell && + s.default.createElement( 'div', {'data-tag': o}, - (function(e, t, n, r) { + (function(e, t, n, i) { if (!t) return null; if ( 'string' != typeof t && @@ -75196,9 +74105,9 @@ 'selector must be a . delimited string eg (my.property) or function (e.g. row => row.field' ); return n && 'function' == typeof n - ? n(e, r) + ? n(e, i) : t && 'function' == typeof t - ? t(e, r) + ? t(e, i) : t .split('.') .reduce(function(e, t) { @@ -75210,9 +74119,9 @@ ? e[n[0]][n[1]] : e[t]; }, e); - })(i, r.selector, r.format, n) + })(r, i.selector, i.format, n) ), - r.cell && r.cell(i, n, r, t) + i.cell && i.cell(r, n, i, t) ); }); gt.propTypes = { @@ -75221,12 +74130,12 @@ column: X.object.isRequired, row: X.object.isRequired, }; - var ut = r.memo(function(e) { + var ut = i.memo(function(e) { var t = e.component, n = e.componentOptions, - i = e.indeterminate, + r = e.indeterminate, o = e.checked, - s = e.name, + a = e.name, A = e.onClick, g = e.disabled, d = t; @@ -75248,24 +74157,24 @@ } ); })(g)), - (t = r.useMemo( + (t = i.useMemo( function() { return (function(e) { for ( var t, n = arguments.length, - r = new Array(1 < n ? n - 1 : 0), - i = 1; - i < n; - i++ + i = new Array(1 < n ? n - 1 : 0), + r = 1; + r < n; + r++ ) - r[i - 1] = arguments[i]; + i[r - 1] = arguments[r]; return ( Object.keys(e) .map(function(t) { return e[t]; }) - .forEach(function(n, i) { + .forEach(function(n, r) { var o = e; 'function' == typeof n && ((t = u( @@ -75273,30 +74182,30 @@ {}, c( {}, - Object.keys(e)[i], - n.apply(void 0, r) + Object.keys(e)[r], + n.apply(void 0, i) ) )), delete o[n]); }), t || e ); - })(n, i); + })(n, r); }, - [n, i] + [n, r] )); - return a.default.createElement( + return s.default.createElement( d, l( { type: 'checkbox', ref: function(e) { - e && (e.indeterminate = i); + e && (e.indeterminate = r); }, style: e, onClick: g ? Se : A, - name: s, - 'aria-label': s, + name: a, + 'aria-label': a, checked: o, disabled: g, }, @@ -75338,30 +74247,30 @@ disabled: !1, onClick: null, }); - var ht = s.default(it)(dt()), + var ht = a.default(rt)(dt()), Ct = function(e) { var t = e.name, n = e.row, - i = e.selected, + r = e.selected, o = (g = $()).dispatch, - s = g.data, + a = g.data, A = g.keyField, c = g.selectableRowsComponent, l = g.selectableRowsComponentProps, g = (e = g.selectableRowDisabled) && e(n); - e = r.useCallback( + e = i.useCallback( function() { return o({ type: 'SELECT_SINGLE_ROW', row: n, - isSelected: i, + isSelected: r, keyField: A, - rowCount: s.length, + rowCount: a.length, }); }, - [o, n, i, A, s.length] + [o, n, r, A, a.length] ); - return a.default.createElement( + return s.default.createElement( ht, { onClick: function(e) { @@ -75370,12 +74279,12 @@ className: 'rdt_TableCell', noPadding: !0, }, - a.default.createElement(ut, { + s.default.createElement(ut, { name: t, component: c, componentOptions: l, - checked: i, - 'aria-checked': i, + checked: r, + 'aria-checked': r, onClick: e, disabled: g, }) @@ -75398,25 +74307,25 @@ row: X.object.isRequired, selected: X.bool.isRequired, }; - var pt = s.default.button(It(), function(e) { + var pt = a.default.button(It(), function(e) { return e.theme.expanderButton.style; }), mt = function(e) { var t = e.expanded, n = e.row, - r = e.onToggled, - i = e.disabled, + i = e.onToggled, + r = e.disabled, o = ((e = (o = $()).expandableIcon), o.keyField); e = t ? e.expanded : e.collapsed; - return a.default.createElement( + return s.default.createElement( pt, { - 'aria-disabled': i, + 'aria-disabled': r, onClick: function(e) { - return r && r(n, e); + return i && i(n, e); }, 'data-testid': 'expander-button-'.concat(n[o]), - disabled: i, + disabled: r, 'aria-label': t ? 'Collapse Row' : 'Expand Row', role: 'button', type: 'button', @@ -75447,16 +74356,16 @@ expanded: !1, disabled: !1, }); - var Et = s.default(it)(ft(), function(e) { + var Et = a.default(rt)(ft(), function(e) { return e.theme.expanderCell.style; }), yt = function(e) { var t = e.column, n = e.row, - r = e.expanded, - i = e.onRowExpandToggled; + i = e.expanded, + r = e.onRowExpandToggled; e = e.disabled; - return a.default.createElement( + return s.default.createElement( Et, { column: t, @@ -75465,10 +74374,10 @@ }, noPadding: !0, }, - a.default.createElement(mt, { - onToggled: i, + s.default.createElement(mt, { + onToggled: r, row: n, - expanded: r, + expanded: i, disabled: e, }) ); @@ -75499,7 +74408,7 @@ expanded: !1, disabled: !1, }); - var wt = s.default.div( + var wt = a.default.div( Bt(), function(e) { return e.theme.expanderRow.style; @@ -75512,17 +74421,17 @@ var t = e.data, n = e.children; e = e.extendedRowStyle; - return a.default.createElement( + return s.default.createElement( wt, {className: 'rdt_ExpanderRow', extendedRowStyle: e}, (function(e, t) { - return r.Children.map(e, function(e) { - return r.cloneElement(e, {data: t}); + return i.Children.map(e, function(e) { + return i.cloneElement(e, {data: t}); }); })(n, t) ); }; - function vt() { + function Mt() { var e = d([ '\n display: flex;\n align-items: stretch;\n align-content: stretch;\n width: 100%;\n box-sizing: border-box;\n ', ';\n ', @@ -75534,16 +74443,16 @@ ';\n', ]); return ( - (vt = function() { + (Mt = function() { return e; }), e ); } - function Mt() { + function vt() { var e = d(['\n &:hover {\n cursor: pointer;\n }\n']); return ( - (Mt = function() { + (vt = function() { return e; }), e @@ -75568,15 +74477,15 @@ children: null, extendedRowStyle: null, }); - var St = i.css(Nt(), function(e) { + var St = r.css(Nt(), function(e) { return ( e.highlightOnHover && e.theme.rows.highlightOnHoverStyle ); }), - Qt = i.css(Mt()), - Ft = s.default.div( - vt(), + Qt = r.css(vt()), + xt = a.default.div( + Mt(), function(e) { return e.theme.rows.style; }, @@ -75602,12 +74511,12 @@ return e.extendedRowStyle; } ), - xt = r.memo(function(e) { + Ft = i.memo(function(e) { var t = e.id, n = e.keyField, - i = e.columns, + r = e.columns, o = e.row, - s = e.onRowClicked, + a = e.onRowClicked, A = e.onRowDoubleClicked, c = e.selectableRows, l = e.expandableRows, @@ -75624,56 +74533,56 @@ B = e.conditionalRowStyles, w = e.inheritConditionalStyles, b = e.onRowExpandToggled, - v = e.selected, - M = e.selectableRowsHighlight, + M = e.selected, + v = e.selectableRowsHighlight, N = e.rowIndex, - S = (x = h(r.useState(m), 2))[0], - Q = x[1]; - r.useEffect( + S = (F = h(i.useState(m), 2))[0], + Q = F[1]; + i.useEffect( function() { Q(m); }, [m] ); - var F = r.useCallback( + var x = i.useCallback( function() { Q(!S), b(!S, o); }, [S, b, o] ), - x = + F = ((e = d || (l && (E || y))), - r.useCallback( + i.useCallback( function(e) { e.target && e.target.getAttribute( 'data-tag' - ) === at && - (s(o, e), !p && l && E && F()); + ) === st && + (a(o, e), !p && l && E && x()); }, - [p, E, l, F, s, o] + [p, E, l, x, a, o] )); - (d = r.useCallback( + (d = i.useCallback( function(e) { e.target && - e.target.getAttribute('data-tag') === at && - (A(o, e), !p && l && y && F()); + e.target.getAttribute('data-tag') === st && + (A(o, e), !p && l && y && x()); }, - [p, y, l, F, A, o] + [p, y, l, x, A, o] )), (B = Qe(o, B)), - (M = M && v), + (v = v && M), (w = w ? B : null), (g = g && (function(e) { return e % 2; })(N)); - return a.default.createElement( - a.default.Fragment, + return s.default.createElement( + s.default.Fragment, null, - a.default.createElement( - Ft, + s.default.createElement( + xt, { id: 'row-'.concat(t), role: 'row', @@ -75681,28 +74590,28 @@ highlightOnHover: u, pointerOnHover: !p && e, dense: C, - onClick: x, + onClick: F, onDoubleClick: d, className: 'rdt_TableRow', extendedRowStyle: B, - selected: M, + selected: v, }, c && - a.default.createElement(Ct, { + s.default.createElement(Ct, { name: 'select-row-'.concat(o[n]), row: o, - selected: v, + selected: M, }), l && !f && - a.default.createElement(yt, { + s.default.createElement(yt, { expanded: S, row: o, - onRowExpandToggled: F, + onRowExpandToggled: x, disabled: p, }), - i.map(function(e) { - return a.default.createElement(gt, { + r.map(function(e) { + return s.default.createElement(gt, { id: 'cell-' .concat(e.id, '-') .concat(o[n]), @@ -75717,7 +74626,7 @@ ), l && S && - a.default.createElement( + s.default.createElement( bt, { key: 'expander--'.concat(o[n]), @@ -75741,7 +74650,7 @@ e ); } - (xt.propTypes = { + (Ft.propTypes = { id: X.any.isRequired, keyField: X.string.isRequired, columns: X.array.isRequired, @@ -75771,11 +74680,11 @@ selected: X.bool.isRequired, selectableRowsHighlight: X.bool.isRequired, }), - (xt.defaultProps = { + (Ft.defaultProps = { defaultExpanded: !1, defaultExpanderDisabled: !1, }); - var Tt = s.default.span( + var Tt = a.default.span( Dt(), function(e) { return e.sortActive ? 'opacity: 1' : 'opacity: 0'; @@ -75791,7 +74700,7 @@ var t = e.sortActive, n = e.sortDirection; e = e.sortIcon; - return a.default.createElement( + return s.default.createElement( Tt, {sortActive: t, sortDirection: n}, e @@ -75829,16 +74738,16 @@ }), (Yt.defaultProps = { sortActive: !1, - sortIcon: a.default.createElement( - a.default.Fragment, + sortIcon: s.default.createElement( + s.default.Fragment, null, '▲' ), }); - var Ut = s.default(ot)(_t(), function(e) { + var Ut = a.default(ot)(_t(), function(e) { return e.column.button && 'text-align: center'; }), - Ot = s.default.div( + Ot = a.default.div( Rt(), function(e) { return e.sortActive @@ -75862,13 +74771,13 @@ return !t && e.sortable && 'opacity: 1'; } ), - kt = r.memo(function(e) { + Gt = i.memo(function(e) { var t = e.column, n = e.sortIcon, - r = (m = $()).dispatch, - i = m.pagination, + i = (m = $()).dispatch, + r = m.pagination, o = m.paginationServer, - s = m.sortColumn, + a = m.sortColumn, A = m.sortDirection, c = m.sortServer, l = m.selectableRowsVisibleOnly, @@ -75878,29 +74787,29 @@ var e; t.sortable && ((e = A), - s === t.selector && + a === t.selector && (e = 'asc' === A ? 'desc' : 'asc'), - r({ + i({ type: 'SORT_CHANGE', sortDirection: e, sortColumn: t.selector, sortServer: c, selectedColumn: t, - pagination: i, + pagination: r, paginationServer: o, visibleOnly: l, persistSelectedOnSort: g, })); } function d(e) { - return a.default.createElement(Yt, { + return s.default.createElement(Yt, { column: t, sortActive: e, sortDirection: A, }); } function h() { - return a.default.createElement( + return s.default.createElement( 'span', { className: [ @@ -75911,17 +74820,17 @@ n ); } - var C = t.sortable && s === t.selector, + var C = t.sortable && a === t.selector, I = t.sortable && !n && !t.right, p = t.sortable && !n && t.right, m = ((e = t.sortable && n && !t.right), t.sortable && n && t.right); - return a.default.createElement( + return s.default.createElement( Ut, {className: 'rdt_TableCol', column: t, head: !0}, t.name && - a.default.createElement( + s.default.createElement( Ot, { id: 'column-'.concat(t.selector), @@ -75937,7 +74846,7 @@ }, m && h(), p && d(C), - a.default.createElement( + s.default.createElement( 'div', null, t.name @@ -75947,44 +74856,44 @@ ) ); }); - function Gt() { + function Lt() { var e = d([ '\n flex: 0 0 48px;\n justify-content: center;\n align-items: center;\n user-select: none;\n white-space: nowrap;\n', ]); return ( - (Gt = function() { + (Lt = function() { return e; }), e ); } - kt.propTypes = { + Gt.propTypes = { column: X.object.isRequired, sortIcon: X.oneOfType([X.bool, X.object]).isRequired, }; - var Lt = s.default(it)(Gt()), - jt = function(e) { + var kt = a.default(rt)(Lt()), + zt = function(e) { var t = e.head, n = (u = $()).dispatch, - i = u.data, + r = u.data, o = u.selectedRows, - s = u.allSelected, + a = u.allSelected, A = u.selectableRowsComponent, c = ((e = u.selectableRowsComponentProps), u.selectableRowDisabled), l = u.keyField, g = u.mergeSelections, - u = 0 < o.length && !s, + u = 0 < o.length && !a, d = c - ? i.filter(function(e) { + ? r.filter(function(e) { return !c(e); }) - : i, + : r, h = ((o = 0 === d.length), - Math.min(i.length, d.length)); - i = r.useCallback( + Math.min(r.length, d.length)); + r = i.useCallback( function() { return n({ type: 'SELECT_ALL_ROWS', @@ -75996,28 +74905,28 @@ }, [n, l, g, h, d] ); - return a.default.createElement( - Lt, + return s.default.createElement( + kt, {className: 'rdt_TableCol', head: t, noPadding: !0}, - a.default.createElement(ut, { + s.default.createElement(ut, { name: 'select-all-rows', component: A, componentOptions: e, - onClick: i, - checked: s, + onClick: r, + checked: a, indeterminate: u, disabled: o, }) ); }; - function zt() { + function jt() { var e = d([ '\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-sizing: inherit;\n z-index: 1;\n align-items: center;\n justify-content: space-between;\n display: flex;\n ', ';\n ', ';\n', ]); return ( - (zt = function() { + (jt = function() { return e; }), e @@ -76047,8 +74956,8 @@ e ); } - (jt.propTypes = {head: X.bool}), (jt.defaultProps = {head: !0}); - var Jt = s.default.div( + (zt.propTypes = {head: X.bool}), (zt.defaultProps = {head: !0}); + var Jt = a.default.div( Ht(), function(e) { return e.theme.contextMenu.fontColor; @@ -76057,9 +74966,9 @@ return e.theme.contextMenu.fontSize; } ), - Wt = s.default.div(Pt()), - Vt = s.default.div( - zt(), + Wt = a.default.div(Pt()), + Vt = a.default.div( + jt(), function(e) { return e.theme.contextMenu.style; }, @@ -76068,43 +74977,43 @@ } ), Kt = function() { - var e = (s = $()).contextMessage, - t = s.contextActions, - n = s.contextComponent, - i = s.selectedCount, - o = s.direction, - s = 0 < i; + var e = (a = $()).contextMessage, + t = a.contextActions, + n = a.contextComponent, + r = a.selectedCount, + o = a.direction, + a = 0 < r; return n - ? a.default.createElement( + ? s.default.createElement( Vt, - {visible: s}, - r.cloneElement(n, {selectedCount: i}) + {visible: a}, + i.cloneElement(n, {selectedCount: r}) ) - : a.default.createElement( + : s.default.createElement( Vt, - {visible: s}, - a.default.createElement( + {visible: a}, + s.default.createElement( Jt, null, (function(e, t, n) { if (0 === t) return null; - var r = + var i = 1 === t ? e.singular : e.plural; - return xe(n) + return Fe(n) ? '' .concat(t, ' ') .concat( e.message || '', ' ' ) - .concat(r) + .concat(i) : '' .concat(t, ' ') - .concat(r, ' ') + .concat(i, ' ') .concat(e.message || ''); - })(e, i, o) + })(e, r, o) ), - a.default.createElement(Wt, null, t) + s.default.createElement(Wt, null, t) ); }; function Zt() { @@ -76143,10 +75052,10 @@ e ); } - var $t = s.default.div(qt(), function(e) { + var $t = a.default.div(qt(), function(e) { return e.theme.header.style; }), - en = s.default.div( + en = a.default.div( Xt(), function(e) { return e.theme.header.fontColor; @@ -76155,21 +75064,21 @@ return e.theme.header.fontSize; } ), - tn = s.default.div(Zt()), + tn = a.default.div(Zt()), nn = function(e) { var t = e.title, n = e.actions; e = e.showMenu; - return a.default.createElement( + return s.default.createElement( $t, { className: 'rdt_TableHeader', role: 'heading', 'aria-level': '1', }, - a.default.createElement(en, null, t), - a.default.createElement(tn, null, n), - e && a.default.createElement(Kt, null) + s.default.createElement(en, null, t), + s.default.createElement(tn, null, n), + e && s.default.createElement(Kt, null) ); }; function rn() { @@ -76197,7 +75106,7 @@ right: 'flex-end', center: 'center', }, - an = s.default.header( + sn = a.default.header( rn(), function(e) { return on[e.align]; @@ -76209,12 +75118,12 @@ return e.theme.subHeader.style; } ), - sn = function(e) { + an = function(e) { var t = e.align, n = e.wrapContent; e = e.children; - return a.default.createElement( - an, + return s.default.createElement( + sn, {align: t, wrapContent: n}, e ); @@ -76243,7 +75152,7 @@ e ); } - (sn.propTypes = { + (an.propTypes = { children: X.oneOfType([ X.arrayOf(X.node), X.node, @@ -76252,21 +75161,21 @@ align: X.oneOf(['center', 'left', 'right']), wrapContent: X.bool, }), - (sn.defaultProps = { + (an.defaultProps = { children: null, align: 'right', wrapContent: !0, }); - var ln = s.default.div(cn(), function(e) { + var ln = a.default.div(cn(), function(e) { var t = e.fixedHeader, n = e.hasOffset, - r = e.offset; + i = e.offset; e = e.fixedHeaderScrollHeight; return ( t && - i.css( + r.css( An(), - n ? 'calc('.concat(e, ' - ').concat(r, ')') : e + n ? 'calc('.concat(e, ' - ').concat(i, ')') : e ) ); }); @@ -76308,17 +75217,17 @@ ); } ln.defaultProps = {fixedHeaderScrollHeight: '100vh', offset: 0}; - var hn = s.default.div( + var hn = a.default.div( dn(), function(e) { - return e.responsive && i.css(un()); + return e.responsive && r.css(un()); }, function(e) { return ( e.overflowY && e.responsive && e.overflowYOffset && - i.css(gn(), e.overflowYOffset, e.overflowYOffset) + r.css(gn(), e.overflowYOffset, e.overflowYOffset) ); } ); @@ -76334,13 +75243,13 @@ e ); } - var In = s.default.div(Cn(), function(e) { + var In = a.default.div(Cn(), function(e) { return e.theme.progress.style; }), pn = function(e) { return ( (e = e.children), - a.default.createElement(In, null, e) + s.default.createElement(In, null, e) ); }; function mn() { @@ -76359,7 +75268,7 @@ children: X.oneOfType([X.string, X.node, X.func]) .isRequired, }; - var fn = s.default.div(mn(), function(e) { + var fn = a.default.div(mn(), function(e) { return e.theme.tableWrapper.style; }); function En() { @@ -76371,7 +75280,7 @@ e ); } - var yn = s.default(it)(En(), function(e) { + var yn = a.default(rt)(En(), function(e) { return e.theme.expanderCell.style; }); function Bn() { @@ -76386,20 +75295,20 @@ e ); } - var wn = s.default.div(Bn(), function(e) { + var wn = a.default.div(Bn(), function(e) { return e.theme.noData.style; }), bn = function(e) { return ( (e = e.children), - a.default.createElement(wn, null, e) + s.default.createElement(wn, null, e) ); }; bn.propTypes = { children: X.oneOfType([X.string, X.node]).isRequired, }; - var vn = function() { - return a.default.createElement( + var Mn = function() { + return s.default.createElement( 'svg', { xmlns: 'http://www.w3.org/2000/svg', @@ -76407,19 +75316,19 @@ height: '24', viewBox: '0 0 24 24', }, - a.default.createElement('path', {d: 'M7 10l5 5 5-5z'}), - a.default.createElement('path', { + s.default.createElement('path', {d: 'M7 10l5 5 5-5z'}), + s.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none', }) ); }; - function Mn() { + function vn() { var e = d([ '\n position: relative;\n flex-shrink: 0;\n font-size: inherit;\n color: inherit;\n margin-top: 1px;\n\n svg {\n top: 0;\n right: 0;\n color: inherit;\n position: absolute;\n fill: currentColor;\n width: 24px;\n height: 24px;\n display: inline-block;\n user-select: none;\n pointer-events: none;\n }\n', ]); return ( - (Mn = function() { + (vn = function() { return e; }), e @@ -76436,20 +75345,20 @@ e ); } - var Sn = s.default.select(Nn()), - Qn = s.default.div(Mn()), - Fn = function(e) { - return a.default.createElement( + var Sn = a.default.select(Nn()), + Qn = a.default.div(vn()), + xn = function(e) { + return s.default.createElement( Qn, null, - a.default.createElement(Sn, e), - a.default.createElement(vn, null) + s.default.createElement(Sn, e), + s.default.createElement(Mn, null) ); }; - function xn() { + function Fn() { var e = d(['\n margin: 0 4px;\n']); return ( - (xn = function() { + (Fn = function() { return e; }), e @@ -76528,10 +75437,10 @@ selectAllRowsItem: !1, selectAllRowsItemText: 'All', }, - kn = s.default.nav(Un(), function(e) { + Gn = a.default.nav(Un(), function(e) { return e.theme.pagination.style; }), - Gn = s.default.button( + Ln = a.default.button( _n(), function(e) { return e.theme.pagination.pageButtonsStyle; @@ -76540,16 +75449,16 @@ return e.isRTL && 'transform: scale(-1, -1)'; } ), - Ln = s.default.div(Rn(), We(Yn())), - jn = s.default.span(Tn()), - zn = s.default(jn)(Dn()), - Pn = s.default(jn)(xn()), + kn = a.default.div(Rn(), We(Yn())), + zn = a.default.span(Tn()), + jn = a.default(zn)(Dn()), + Pn = a.default(zn)(Fn()), Hn = function(e) { var t = e.rowsPerPage, n = e.rowCount, - i = e.onChangePage, + r = e.onChangePage, o = e.onChangeRowsPerPage, - s = e.currentPage, + a = e.currentPage, c = (b = $()).direction, l = b.paginationRowsPerPageOptions, g = b.paginationIconLastPage, @@ -76574,11 +75483,11 @@ : void 0, }; } - var n = h(r.useState(t), 2), - i = n[0], + var n = h(i.useState(t), 2), + r = n[0], o = n[1]; return ( - r.useEffect(function() { + i.useEffect(function() { return ( !!e && (window.addEventListener( @@ -76596,58 +75505,58 @@ o(t()); } }, []), - i + r ); })().width > 599, - f = xe(c), - E = Me(n, t), - y = (v = s * t) - t + 1, - B = 1 === s, - w = s === E, + f = Fe(c), + E = ve(n, t), + y = (M = a * t) - t + 1, + B = 1 === a, + w = a === E, b = ((e = u(u({}, On), p)), - (s === E + (a === E ? ''.concat(y, '-').concat(n, ' ') - : ''.concat(y, '-').concat(v, ' ') + : ''.concat(y, '-').concat(M, ' ') ) .concat(e.rangeSeparatorText, ' ') .concat(n)), - v = - ((c = r.useCallback( + M = + ((c = i.useCallback( function() { - return i(s - 1); + return r(a - 1); }, - [s, i] + [a, r] )), - (p = r.useCallback( + (p = i.useCallback( function() { - return i(s + 1); + return r(a + 1); }, - [s, i] + [a, r] )), - (E = r.useCallback( + (E = i.useCallback( function() { - return i(1); + return r(1); }, - [i] + [r] )), - (y = r.useCallback( + (y = i.useCallback( function() { - return i(Me(n, t)); + return r(ve(n, t)); }, - [i, n, t] + [r, n, t] )), - r.useCallback( + i.useCallback( function(e) { return ( (e = e.target), - o(Number(e.value), s) + o(Number(e.value), a) ); }, - [s, o] + [a, o] )); l = l.map(function(e) { - return a.default.createElement( + return s.default.createElement( 'option', {key: e, value: e}, e @@ -76656,42 +75565,42 @@ return ( e.selectAllRowsItem && l.push( - a.default.createElement( + s.default.createElement( 'option', {key: -1, value: n}, e.selectAllRowsItemText ) ), - (l = a.default.createElement( - Fn, + (l = s.default.createElement( + xn, { - onChange: v, + onChange: M, defaultValue: t, 'aria-label': e.rowsPerPageText, }, l )), - a.default.createElement( - kn, + s.default.createElement( + Gn, {className: 'rdt_Pagination'}, !e.noRowsPerPage && m && - a.default.createElement( - a.default.Fragment, + s.default.createElement( + s.default.Fragment, null, - a.default.createElement( + s.default.createElement( Pn, null, e.rowsPerPageText ), l ), - m && a.default.createElement(zn, null, b), - a.default.createElement( - Ln, + m && s.default.createElement(jn, null, b), + s.default.createElement( + kn, null, - a.default.createElement( - Gn, + s.default.createElement( + Ln, { id: 'pagination-first-page', type: 'button', @@ -76703,8 +75612,8 @@ }, d ), - a.default.createElement( - Gn, + s.default.createElement( + Ln, { id: 'pagination-previous-page', type: 'button', @@ -76717,8 +75626,8 @@ I ), !m && l, - a.default.createElement( - Gn, + s.default.createElement( + Ln, { id: 'pagination-next-page', type: 'button', @@ -76730,8 +75639,8 @@ }, C ), - a.default.createElement( - Gn, + s.default.createElement( + Ln, { id: 'pagination-last-page', type: 'button', @@ -76748,8 +75657,8 @@ ); }; function Jn(e, t) { - var n = r.useRef(!0); - r.useEffect(function() { + var n = i.useRef(!0); + i.useEffect(function() { n.current ? (n.current = !1) : e(); }, t); } @@ -76925,7 +75834,7 @@ return null; }, progressPending: !1, - progressComponent: a.default.createElement( + progressComponent: s.default.createElement( 'div', { style: { @@ -76937,14 +75846,14 @@ 'Loading...' ), persistTableHead: !1, - expandableRowsComponent: a.default.createElement( + expandableRowsComponent: s.default.createElement( 'div', {style: {padding: '24px'}}, 'Add a custom expander component. Use props.data for row data' ), expandableIcon: { - collapsed: a.default.createElement(function() { - return a.default.createElement( + collapsed: s.default.createElement(function() { + return s.default.createElement( 'svg', { fill: 'currentColor', @@ -76953,18 +75862,18 @@ width: '24', xmlns: 'http://www.w3.org/2000/svg', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z', }), - a.default.createElement('path', { + s.default.createElement('path', { d: 'M0-.25h24v24H0z', fill: 'none', }) ); }, null), - expanded: a.default.createElement(function() { - return a.default.createElement( + expanded: s.default.createElement(function() { + return s.default.createElement( 'svg', { fill: 'currentColor', @@ -76973,11 +75882,11 @@ width: '24', xmlns: 'http://www.w3.org/2000/svg', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z', }), - a.default.createElement('path', { + s.default.createElement('path', { d: 'M0-.75h24v24H0z', fill: 'none', }) @@ -77010,7 +75919,7 @@ responsive: !0, overflowY: !1, overflowYOffset: '250px', - noDataComponent: a.default.createElement( + noDataComponent: s.default.createElement( 'div', {style: {padding: '24px'}}, 'There are no records to display' @@ -77049,9 +75958,9 @@ }, paginationComponent: null, paginationComponentOptions: {}, - paginationIconFirstPage: a.default.createElement( + paginationIconFirstPage: s.default.createElement( function() { - return a.default.createElement( + return s.default.createElement( 'svg', { xmlns: 'http://www.w3.org/2000/svg', @@ -77061,11 +75970,11 @@ 'aria-hidden': 'true', role: 'presentation', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z', }), - a.default.createElement('path', { + s.default.createElement('path', { fill: 'none', d: 'M24 24H0V0h24v24z', }) @@ -77073,9 +75982,9 @@ }, null ), - paginationIconLastPage: a.default.createElement( + paginationIconLastPage: s.default.createElement( function() { - return a.default.createElement( + return s.default.createElement( 'svg', { xmlns: 'http://www.w3.org/2000/svg', @@ -77085,11 +75994,11 @@ 'aria-hidden': 'true', role: 'presentation', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z', }), - a.default.createElement('path', { + s.default.createElement('path', { fill: 'none', d: 'M0 0h24v24H0V0z', }) @@ -77097,8 +76006,8 @@ }, null ), - paginationIconNext: a.default.createElement(function() { - return a.default.createElement( + paginationIconNext: s.default.createElement(function() { + return s.default.createElement( 'svg', { xmlns: 'http://www.w3.org/2000/svg', @@ -77108,19 +76017,19 @@ 'aria-hidden': 'true', role: 'presentation', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z', }), - a.default.createElement('path', { + s.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none', }) ); }, null), - paginationIconPrevious: a.default.createElement( + paginationIconPrevious: s.default.createElement( function() { - return a.default.createElement( + return s.default.createElement( 'svg', { xmlns: 'http://www.w3.org/2000/svg', @@ -77130,11 +76039,11 @@ 'aria-hidden': 'true', role: 'presentation', }, - a.default.createElement('path', { + s.default.createElement('path', { d: 'M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z', }), - a.default.createElement('path', { + s.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none', }) @@ -77171,7 +76080,7 @@ : 60103; function Xn(e, t) { return !1 !== t.clone && t.isMergeableObject(e) - ? nr( + ? ni( (function(e) { return Array.isArray(e) ? [] : {}; })(e), @@ -77198,63 +76107,63 @@ })(e) ); } - function er(e, t) { + function ei(e, t) { try { return t in e; } catch (e) { return !1; } } - function tr(e, t, n) { - var r = {}; + function ti(e, t, n) { + var i = {}; return ( n.isMergeableObject(e) && $n(e).forEach(function(t) { - r[t] = Xn(e[t], n); + i[t] = Xn(e[t], n); }), - $n(t).forEach(function(i) { + $n(t).forEach(function(r) { (function(e, t) { return ( - er(e, t) && + ei(e, t) && !( Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t) ) ); - })(e, i) || - (er(e, i) && n.isMergeableObject(t[i]) - ? (r[i] = (function(e, t) { + })(e, r) || + (ei(e, r) && n.isMergeableObject(t[r]) + ? (i[r] = (function(e, t) { return t.customMerge && 'function' == typeof (e = t.customMerge(e)) ? e - : nr; - })(i, n)(e[i], t[i], n)) - : (r[i] = Xn(t[i], n))); + : ni; + })(r, n)(e[r], t[r], n)) + : (i[r] = Xn(t[r], n))); }), - r + i ); } - function nr(e, t, n) { + function ni(e, t, n) { ((n = n || {}).arrayMerge = n.arrayMerge || qn), (n.isMergeableObject = n.isMergeableObject || Kn), (n.cloneUnlessOtherwiseSpecified = Xn); - var r = Array.isArray(t); - return r === Array.isArray(e) - ? r + var i = Array.isArray(t); + return i === Array.isArray(e) + ? i ? n.arrayMerge(e, t, n) - : tr(e, t, n) + : ti(e, t, n) : Xn(t, n); } - nr.all = function(e, t) { + ni.all = function(e, t) { if (!Array.isArray(e)) throw new Error('first argument should be an array'); return e.reduce(function(e, n) { - return nr(e, n, t); + return ni(e, n, t); }, {}); }; - var rr = nr, - ir = { + var ii = ni, + ri = { default: { text: { primary: 'rgba(0, 0, 0, 0.87)', @@ -77317,7 +76226,7 @@ }, }, }, - or = function(e) { + oi = function(e) { return { table: { style: { @@ -77520,7 +76429,7 @@ }, }; }, - ar = r.memo(function(e) { + si = i.memo(function(e) { function t(e) { return et({ type: 'CHANGE_PAGE', @@ -77532,7 +76441,7 @@ } var n = e.data, o = e.columns, - s = e.title, + a = e.title, A = e.actions, g = e.keyField, d = e.striped, @@ -77545,13 +76454,13 @@ B = e.selectableRowsVisibleOnly, w = e.selectableRowSelected, b = e.selectableRowDisabled, - v = e.selectableRowsComponent, - M = e.selectableRowsComponentProps, + M = e.selectableRowsComponent, + v = e.selectableRowsComponentProps, N = e.onRowExpandToggled, S = e.onSelectedRowsChange, Q = e.expandableIcon, - F = e.onChangeRowsPerPage, - x = e.onChangePage, + x = e.onChangeRowsPerPage, + F = e.onChangePage, D = e.paginationServer, T = e.paginationServerOptions, Y = e.paginationTotalRows, @@ -77559,11 +76468,11 @@ _ = e.paginationResetDefaultPage, U = e.paginationPerPage, O = e.paginationRowsPerPageOptions, - k = e.paginationIconLastPage, - G = e.paginationIconFirstPage, - L = e.paginationIconNext, - j = e.paginationIconPrevious, - z = e.paginationComponent, + G = e.paginationIconLastPage, + L = e.paginationIconFirstPage, + k = e.paginationIconNext, + z = e.paginationIconPrevious, + j = e.paginationComponent, P = e.paginationComponentOptions, H = e.className, J = e.style, @@ -77576,11 +76485,11 @@ $ = e.noDataComponent, te = e.disabled, ne = e.noTableHead, - re = e.noHeader, - ie = e.fixedHeader, + ie = e.noHeader, + re = e.fixedHeader, oe = e.fixedHeaderScrollHeight, - ae = e.pagination, - se = e.subHeader, + se = e.pagination, + ae = e.subHeader, Ae = e.subHeaderAlign, ce = e.subHeaderWrap, le = e.subHeaderComponent, @@ -77598,15 +76507,15 @@ be = e.expandableRowsComponent, Se = e.expandableRowDisabled, Qe = e.expandableRowsHideExpander, - xe = e.expandOnRowClicked, + Fe = e.expandOnRowClicked, Te = e.expandOnRowDoubleClicked, Ye = e.expandableRowExpanded, Re = e.expandableInheritConditionalStyles, Ue = e.defaultSortField, - ke = e.defaultSortAsc, - Ge = e.clearSelectedRows, - Le = e.conditionalRowStyles, - ze = e.theme, + Ge = e.defaultSortAsc, + Le = e.clearSelectedRows, + ke = e.conditionalRowStyles, + je = e.theme, Pe = e.customStyles, He = e.direction, Je = @@ -77616,28 +76525,28 @@ selectedRows: [], sortColumn: Ue, selectedColumn: {}, - sortDirection: ve(ke), + sortDirection: Me(Ge), currentPage: R, rowsPerPage: U, }), - (ke = (Ue = h(r.useReducer(De, e), 2))[0]) + (Ge = (Ue = h(i.useReducer(De, e), 2))[0]) .rowsPerPage), - We = ke.currentPage, - Ve = ke.selectedRows, - Ke = ke.allSelected, - Ze = ke.selectedCount, - Xe = ke.sortColumn, - qe = ke.selectedColumn, - $e = ke.sortDirection, + We = Ge.currentPage, + Ve = Ge.selectedRows, + Ke = Ge.allSelected, + Ze = Ge.selectedCount, + Xe = Ge.sortColumn, + qe = Ge.selectedColumn, + $e = Ge.sortDirection, et = Ue[1], tt = ((U = T.persistSelectedOnSort), T.persistSelectedOnPageChange), nt = D && (tt || U), - rt = - ((e = ae && !Z && 0 < n.length), - (ke = z || Hn), - r.useMemo( + it = + ((e = se && !Z && 0 < n.length), + (Ge = j || Hn), + i.useMemo( function() { return (function(e) { return e.map(function(e) { @@ -77657,7 +76566,7 @@ [o] )), ot = - ((Ue = r.useMemo( + ((Ue = i.useMemo( function() { return (function(e, t) { return ( @@ -77666,7 +76575,7 @@ void 0 !== e ? e : {}), - (t = ir[ + (t = ri[ (t = 1 < arguments.length && void 0 !== t @@ -77675,20 +76584,20 @@ ] ? t : 'default'), - rr(or(ir[t]), e) + ii(oi(ri[t]), e) ); - })(Pe, ze); + })(Pe, je); }, - [Pe, ze] + [Pe, je] )), - r.useMemo( + i.useMemo( function() { return be; }, [be] )), - at = - ((z = r.useMemo( + st = + ((j = i.useMemo( function() { return u( {}, @@ -77697,13 +76606,13 @@ }, [He] )), - r.useCallback( + i.useCallback( function(e, t) { return Ie(e, t); }, [Ie] )), - st = r.useCallback( + at = i.useCallback( function(e, t) { return pe(e, t); }, @@ -77721,13 +76630,13 @@ ), Jn( function() { - x(We, Y || n.length); + F(We, Y || n.length); }, [We] ), Jn( function() { - F(Je, We); + x(Je, We); }, [Je] ), @@ -77737,14 +76646,14 @@ }, [Xe, $e] ), - r.useEffect( + i.useEffect( function() { et({ type: 'CLEAR_SELECTED_ROWS', - selectedRowsFlag: Ge, + selectedRowsFlag: Le, }); }, - [Ge] + [Le] ), Jn( function() { @@ -77752,7 +76661,7 @@ }, [R, _] ), - r.useEffect( + i.useEffect( function() { var e; w && @@ -77771,16 +76680,16 @@ Jn( function() { var e; - ae && + se && D && 0 < Y && - ((e = Me(Y, Je)), + ((e = ve(Y, Je)), (e = Ne(We, e)), We !== e && t(e)); }, [Y] ); - var At = r.useMemo( + var At = i.useMemo( function() { return o.reduce(function(e, t) { return u( @@ -77792,18 +76701,18 @@ }, [o] ), - ct = r.useMemo( + ct = i.useMemo( function() { if (we) return n; var e = Xe && At[Xe]; if (!e || !e.sortFunction) - return (function(e, t, n, r) { - return ((r = + return (function(e, t, n, i) { + return ((i = 3 < arguments.length - ? r + ? i : void 0) && - 'function' == typeof r - ? r + 'function' == typeof i + ? i : Be)( e, (t = @@ -77829,21 +76738,21 @@ }, [we, Xe, At, $e, n, Ee] ), - lt = r.useMemo( + lt = i.useMemo( function() { - if (!ae || D) return ct; + if (!se || D) return ct; var e = We * Je, t = e - Je; return ct.slice(t, e); }, - [We, ae, D, Je, ct] + [We, se, D, Je, ct] ); return ( - ae && + se && !D && 0 < n.length && 0 === lt.length && - ((_ = Me(n.length, Je)), t((_ = Ne(We, _)))), + ((_ = ve(n.length, Je)), t((_ = Ne(We, _)))), (P = { dispatch: et, data: B ? lt : n, @@ -77860,43 +76769,43 @@ selectableRowsVisibleOnly: B, selectableRowSelected: w, selectableRowDisabled: b, - selectableRowsComponent: v, - selectableRowsComponentProps: M, + selectableRowsComponent: M, + selectableRowsComponentProps: v, persistSelectedOnSort: U, expandableIcon: Q, - pagination: ae, + pagination: se, paginationServer: D, paginationServerOptions: T, paginationTotalRows: Y, paginationRowsPerPageOptions: O, - paginationIconLastPage: k, - paginationIconFirstPage: G, - paginationIconNext: L, - paginationIconPrevious: j, + paginationIconLastPage: G, + paginationIconFirstPage: L, + paginationIconNext: k, + paginationIconPrevious: z, paginationComponentOptions: P, direction: He, mergeSelections: nt, }), (y = tt || y), - a.default.createElement( - i.ThemeProvider, + s.default.createElement( + r.ThemeProvider, {theme: Ue}, - a.default.createElement( + s.default.createElement( ee, {initialState: P}, - !re && - a.default.createElement(nn, { - title: s, + !ie && + s.default.createElement(nn, { + title: a, actions: A, showMenu: !ge, }), - se && - a.default.createElement( - sn, + ae && + s.default.createElement( + an, {align: Ae, wrapContent: ce}, le ), - a.default.createElement( + s.default.createElement( hn, l( { @@ -77906,19 +76815,19 @@ overflowYOffset: K, overflowY: V, }, - z + j ), - a.default.createElement( + s.default.createElement( fn, null, Z && !q && - a.default.createElement( + s.default.createElement( pn, null, X ), - a.default.createElement( + s.default.createElement( _e, { disabled: te, @@ -77928,15 +76837,15 @@ !ne && (!!q || (0 < n.length && !Z)) && - a.default.createElement( + s.default.createElement( Oe, { className: 'rdt_TableHead', role: 'rowgroup', }, - a.default.createElement( - je, + s.default.createElement( + ze, { className: 'rdt_TableHeadRow', @@ -77949,8 +76858,8 @@ }, f && (y - ? a.default.createElement( - it, + ? s.default.createElement( + rt, { style: { flex: @@ -77958,19 +76867,19 @@ }, } ) - : a.default.createElement( - jt, + : s.default.createElement( + zt, null )), Ce && !Qe && - a.default.createElement( + s.default.createElement( yn, null ), - rt.map(function(e) { - return a.default.createElement( - kt, + it.map(function(e) { + return s.default.createElement( + Gt, { key: e.id, @@ -77983,24 +76892,24 @@ ), 0 < !n.length && !Z && - a.default.createElement( + s.default.createElement( bn, null, $ ), Z && q && - a.default.createElement( + s.default.createElement( pn, null, X ), !Z && 0 < n.length && - a.default.createElement( + s.default.createElement( ln, { - fixedHeader: ie, + fixedHeader: re, fixedHeaderScrollHeight: oe, hasOffset: V, offset: K, @@ -78027,12 +76936,12 @@ })(e[g]) ? t : e[g], - r = Fe( + i = xe( e, Ve, g ), - i = + r = Ce && Ye && Ye(e), @@ -78040,32 +76949,32 @@ Ce && Se && Se(e); - return a.default.createElement( - xt, + return s.default.createElement( + Ft, { id: n, key: n, keyField: g, row: e, - columns: rt, + columns: it, selectableRows: f, expandableRows: Ce, striped: d, highlightOnHover: I, pointerOnHover: p, dense: m, - expandOnRowClicked: xe, + expandOnRowClicked: Fe, expandOnRowDoubleClicked: Te, expandableRowsComponent: ot, expandableRowsHideExpander: Qe, onRowExpandToggled: N, defaultExpanderDisabled: o, - defaultExpanded: i, + defaultExpanded: r, inheritConditionalStyles: Re, - onRowClicked: at, - onRowDoubleClicked: st, - conditionalRowStyles: Le, - selected: r, + onRowClicked: st, + onRowDoubleClicked: at, + conditionalRowStyles: ke, + selected: i, selectableRowsHighlight: E, rowIndex: t, } @@ -78076,16 +76985,16 @@ ) ), e && - a.default.createElement( + s.default.createElement( 'div', null, - a.default.createElement(ke, { + s.default.createElement(Ge, { onChangePage: t, onChangeRowsPerPage: function( e ) { var n = Y || lt.length; - (n = Me(n, e)), + (n = ve(n, e)), (n = Ne(We, n)); D || t(n), et({ @@ -78104,32 +77013,32 @@ ) ); }); - (ar.propTypes = Wn), (ar.defaultProps = Vn), (t.ZP = ar); + (si.propTypes = Wn), (si.defaultProps = Vn), (t.ZP = si); }, - 56123: (e, t, n) => { + 62850: (e, t, n) => { 'use strict'; - var r = (function() { + var i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + var i = t[n]; + (i.enumerable = i.enumerable || !1), + (i.configurable = !0), + 'value' in i && (i.writable = !0), + Object.defineProperty(e, i.key, i); } } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; + return function(t, n, i) { + return n && e(t.prototype, n), i && e(t, i), t; }; })(), - i = n(99196), - o = d(i), - a = d(n(44419)), - s = d(n(18446)), - A = d(n(29521)), - c = n(30404), - l = n(1054), - g = d(n(31215)), + r = n(99196), + o = d(r), + s = d(n(17365)), + a = d(n(89943)), + A = d(n(79786)), + c = n(42154), + l = n(51038), + g = d(n(19801)), u = d(n(69064)); function d(e) { return e && e.__esModule ? e : {default: e}; @@ -78159,11 +77068,11 @@ e ) ), - r = e.identifier; + i = e.identifier; return ( (n.updateGraph = n.updateGraph.bind(n)), (n.state = { - identifier: void 0 !== r ? r : g.default.v4(), + identifier: void 0 !== i ? i : g.default.v4(), }), (n.container = o.default.createRef()), n @@ -78189,7 +77098,7 @@ ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - r(t, [ + i(t, [ { key: 'componentDidMount', value: function() { @@ -78203,41 +77112,41 @@ { key: 'shouldComponentUpdate', value: function(e, t) { - var n = !(0, s.default)( + var n = !(0, a.default)( this.props.graph.nodes, e.graph.nodes ), - r = !(0, s.default)( + i = !(0, a.default)( this.props.graph.edges, e.graph.edges ), - i = !(0, s.default)( + r = !(0, a.default)( this.props.options, e.options ), - o = !(0, s.default)( + o = !(0, a.default)( this.props.events, e.events ); if (n) { - var a = function(e, t) { + var s = function(e, t) { return e.id === t.id; }, c = (0, A.default)( this.props.graph.nodes, e.graph.nodes, - a + s ), l = (0, A.default)( e.graph.nodes, this.props.graph.nodes, - a + s ), g = (0, A.default)( (0, A.default)( e.graph.nodes, this.props.graph.nodes, - s.default + a.default ), l ); @@ -78247,22 +77156,22 @@ nodesChanged: g, }); } - if (r) { + if (i) { var u = (0, A.default)( this.props.graph.edges, e.graph.edges, - s.default + a.default ), d = (0, A.default)( e.graph.edges, this.props.graph.edges, - s.default + a.default ), h = (0, A.default)( (0, A.default)( e.graph.edges, this.props.graph.edges, - s.default + a.default ), d ); @@ -78273,7 +77182,7 @@ }); } if ( - (i && + (r && this.Network.setOptions(e.options), o) ) { @@ -78308,21 +77217,21 @@ b = void 0; try { for ( - var v, - M = Object.keys(C)[ + var M, + v = Object.keys(C)[ Symbol.iterator ](); - !(B = (v = M.next()).done); + !(B = (M = v.next()).done); B = !0 ) { - var N = v.value; + var N = M.value; this.Network.on(N, C[N]); } } catch (e) { (w = !0), (b = e); } finally { try { - !B && M.return && M.return(); + !B && v.return && v.return(); } finally { if (w) throw b; } @@ -78342,10 +77251,10 @@ value: function(e) { var t = e.edgesRemoved, n = e.edgesAdded, - r = e.edgesChanged; + i = e.edgesChanged; this.edges.remove(t), this.edges.add(n), - this.edges.update(r); + this.edges.update(i); }, }, { @@ -78353,16 +77262,16 @@ value: function(e) { var t = e.nodesRemoved, n = e.nodesAdded, - r = e.nodesChanged; + i = e.nodesChanged; this.nodes.remove(t), this.nodes.add(n), - this.nodes.update(r); + this.nodes.update(i); }, }, { key: 'updateGraph', value: function() { - var e = (0, a.default)( + var e = (0, s.default)( { physics: {stabilization: !1}, autoResize: !1, @@ -78396,27 +77305,27 @@ this.props.getEdges(this.edges); var t = this.props.events || {}, n = !0, - r = !1, - i = void 0; + i = !1, + r = void 0; try { for ( var o, - s = Object.keys(t)[ + a = Object.keys(t)[ Symbol.iterator ](); - !(n = (o = s.next()).done); + !(n = (o = a.next()).done); n = !0 ) { var A = o.value; this.Network.on(A, t[A]); } } catch (e) { - (r = !0), (i = e); + (i = !0), (r = e); } finally { try { - !n && s.return && s.return(); + !n && a.return && a.return(); } finally { - if (r) throw i; + if (i) throw r; } } }, @@ -78436,7 +77345,7 @@ ]), t ); - })(i.Component); + })(r.Component); (h.defaultProps = { graph: {}, style: {width: '100%', height: '100%'}, @@ -78450,140 +77359,139 @@ }), (t.Z = h); }, - 51637: (e, t, n) => { - var r, - i = n.g.crypto || n.g.msCrypto; - if (i && i.getRandomValues) { + 74461: (e, t, n) => { + var i, + r = n.g.crypto || n.g.msCrypto; + if (r && r.getRandomValues) { var o = new Uint8Array(16); - r = function() { - return i.getRandomValues(o), o; + i = function() { + return r.getRandomValues(o), o; }; } - if (!r) { - var a = new Array(16); - r = function() { + if (!i) { + var s = new Array(16); + i = function() { for (var e, t = 0; t < 16; t++) 0 == (3 & t) && (e = 4294967296 * Math.random()), - (a[t] = (e >>> ((3 & t) << 3)) & 255); - return a; + (s[t] = (e >>> ((3 & t) << 3)) & 255); + return s; }; } - e.exports = r; + e.exports = i; }, - 31215: (e, t, n) => { - for (var r = n(51637), i = [], o = {}, a = 0; a < 256; a++) - (i[a] = (a + 256).toString(16).substr(1)), (o[i[a]] = a); - function s(e, t) { + 19801: (e, t, n) => { + for (var i = n(74461), r = [], o = {}, s = 0; s < 256; s++) + (r[s] = (s + 256).toString(16).substr(1)), (o[r[s]] = s); + function a(e, t) { var n = t || 0, - r = i; + i = r; return ( - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + + i[e[n++]] + + i[e[n++]] + + i[e[n++]] + + i[e[n++]] + '-' + - r[e[n++]] + - r[e[n++]] + + i[e[n++]] + + i[e[n++]] + '-' + - r[e[n++]] + - r[e[n++]] + + i[e[n++]] + + i[e[n++]] + '-' + - r[e[n++]] + - r[e[n++]] + + i[e[n++]] + + i[e[n++]] + '-' + - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + - r[e[n++]] + i[e[n++]] + + i[e[n++]] + + i[e[n++]] + + i[e[n++]] + + i[e[n++]] + + i[e[n++]] ); } - var A = r(), + var A = i(), c = [1 | A[0], A[1], A[2], A[3], A[4], A[5]], l = 16383 & ((A[6] << 8) | A[7]), g = 0, u = 0; function d(e, t, n) { - var i = (t && n) || 0; + var r = (t && n) || 0; 'string' == typeof e && ((t = 'binary' == e ? new Array(16) : null), (e = null)); - var o = (e = e || {}).random || (e.rng || r)(); + var o = (e = e || {}).random || (e.rng || i)(); if ( ((o[6] = (15 & o[6]) | 64), (o[8] = (63 & o[8]) | 128), t) ) - for (var a = 0; a < 16; a++) t[i + a] = o[a]; - return t || s(o); + for (var s = 0; s < 16; s++) t[r + s] = o[s]; + return t || a(o); } var h = d; (h.v1 = function(e, t, n) { - var r = (t && n) || 0, - i = t || [], + var i = (t && n) || 0, + r = t || [], o = void 0 !== (e = e || {}).clockseq ? e.clockseq : l, - a = void 0 !== e.msecs ? e.msecs : new Date().getTime(), + s = void 0 !== e.msecs ? e.msecs : new Date().getTime(), A = void 0 !== e.nsecs ? e.nsecs : u + 1, - d = a - g + (A - u) / 1e4; + d = s - g + (A - u) / 1e4; if ( (d < 0 && void 0 === e.clockseq && (o = (o + 1) & 16383), - (d < 0 || a > g) && void 0 === e.nsecs && (A = 0), + (d < 0 || s > g) && void 0 === e.nsecs && (A = 0), A >= 1e4) ) throw new Error( "uuid.v1(): Can't create more than 10M uuids/sec" ); - (g = a), (u = A), (l = o); + (g = s), (u = A), (l = o); var h = - (1e4 * (268435455 & (a += 122192928e5)) + A) % + (1e4 * (268435455 & (s += 122192928e5)) + A) % 4294967296; - (i[r++] = (h >>> 24) & 255), - (i[r++] = (h >>> 16) & 255), - (i[r++] = (h >>> 8) & 255), - (i[r++] = 255 & h); - var C = ((a / 4294967296) * 1e4) & 268435455; - (i[r++] = (C >>> 8) & 255), - (i[r++] = 255 & C), - (i[r++] = ((C >>> 24) & 15) | 16), - (i[r++] = (C >>> 16) & 255), - (i[r++] = (o >>> 8) | 128), - (i[r++] = 255 & o); + (r[i++] = (h >>> 24) & 255), + (r[i++] = (h >>> 16) & 255), + (r[i++] = (h >>> 8) & 255), + (r[i++] = 255 & h); + var C = ((s / 4294967296) * 1e4) & 268435455; + (r[i++] = (C >>> 8) & 255), + (r[i++] = 255 & C), + (r[i++] = ((C >>> 24) & 15) | 16), + (r[i++] = (C >>> 16) & 255), + (r[i++] = (o >>> 8) | 128), + (r[i++] = 255 & o); for (var I = e.node || c, p = 0; p < 6; p++) - i[r + p] = I[p]; - return t || s(i); + r[i + p] = I[p]; + return t || a(r); }), (h.v4 = d), (h.parse = function(e, t, n) { - var r = (t && n) || 0, - i = 0; + var i = (t && n) || 0, + r = 0; for ( t = t || [], e .toLowerCase() .replace(/[0-9a-f]{2}/g, function(e) { - i < 16 && (t[r + i++] = o[e]); + r < 16 && (t[i + r++] = o[e]); }); - i < 16; + r < 16; ) - t[r + i++] = 0; + t[i + r++] = 0; return t; }), - (h.unparse = s), + (h.unparse = a), (e.exports = h); }, - 69921: (e, t) => { + 35830: (e, t) => { 'use strict'; - Object.defineProperty(t, '__esModule', {value: !0}); var n = 'function' == typeof Symbol && Symbol.for, - r = n ? Symbol.for('react.element') : 60103, - i = n ? Symbol.for('react.portal') : 60106, + i = n ? Symbol.for('react.element') : 60103, + r = n ? Symbol.for('react.portal') : 60106, o = n ? Symbol.for('react.fragment') : 60107, - a = n ? Symbol.for('react.strict_mode') : 60108, - s = n ? Symbol.for('react.profiler') : 60114, + s = n ? Symbol.for('react.strict_mode') : 60108, + a = n ? Symbol.for('react.profiler') : 60114, A = n ? Symbol.for('react.provider') : 60109, c = n ? Symbol.for('react.context') : 60110, l = n ? Symbol.for('react.async_mode') : 60111, @@ -78593,147 +77501,149 @@ h = n ? Symbol.for('react.suspense_list') : 60120, C = n ? Symbol.for('react.memo') : 60115, I = n ? Symbol.for('react.lazy') : 60116, - p = n ? Symbol.for('react.fundamental') : 60117, - m = n ? Symbol.for('react.responder') : 60118, - f = n ? Symbol.for('react.scope') : 60119; - function E(e) { + p = n ? Symbol.for('react.block') : 60121, + m = n ? Symbol.for('react.fundamental') : 60117, + f = n ? Symbol.for('react.responder') : 60118, + E = n ? Symbol.for('react.scope') : 60119; + function y(e) { if ('object' == typeof e && null !== e) { var t = e.$$typeof; switch (t) { - case r: + case i: switch ((e = e.type)) { case l: case g: case o: - case s: case a: + case s: case d: return e; default: switch ((e = e && e.$$typeof)) { case c: case u: + case I: + case C: case A: return e; default: return t; } } - case I: - case C: - case i: + case r: return t; } } } - function y(e) { - return E(e) === g; + function B(e) { + return y(e) === g; } - (t.typeOf = E), - (t.AsyncMode = l), + (t.AsyncMode = l), (t.ConcurrentMode = g), (t.ContextConsumer = c), (t.ContextProvider = A), - (t.Element = r), + (t.Element = i), (t.ForwardRef = u), (t.Fragment = o), (t.Lazy = I), (t.Memo = C), - (t.Portal = i), - (t.Profiler = s), - (t.StrictMode = a), + (t.Portal = r), + (t.Profiler = a), + (t.StrictMode = s), (t.Suspense = d), - (t.isValidElementType = function(e) { - return ( - 'string' == typeof e || - 'function' == typeof e || - e === o || - e === g || - e === s || - e === a || - e === d || - e === h || - ('object' == typeof e && - null !== e && - (e.$$typeof === I || - e.$$typeof === C || - e.$$typeof === A || - e.$$typeof === c || - e.$$typeof === u || - e.$$typeof === p || - e.$$typeof === m || - e.$$typeof === f)) - ); - }), (t.isAsyncMode = function(e) { - return y(e) || E(e) === l; + return B(e) || y(e) === l; }), - (t.isConcurrentMode = y), + (t.isConcurrentMode = B), (t.isContextConsumer = function(e) { - return E(e) === c; + return y(e) === c; }), (t.isContextProvider = function(e) { - return E(e) === A; + return y(e) === A; }), (t.isElement = function(e) { return ( 'object' == typeof e && null !== e && - e.$$typeof === r + e.$$typeof === i ); }), (t.isForwardRef = function(e) { - return E(e) === u; + return y(e) === u; }), (t.isFragment = function(e) { - return E(e) === o; + return y(e) === o; }), (t.isLazy = function(e) { - return E(e) === I; + return y(e) === I; }), (t.isMemo = function(e) { - return E(e) === C; + return y(e) === C; }), (t.isPortal = function(e) { - return E(e) === i; + return y(e) === r; }), (t.isProfiler = function(e) { - return E(e) === s; + return y(e) === a; }), (t.isStrictMode = function(e) { - return E(e) === a; + return y(e) === s; }), (t.isSuspense = function(e) { - return E(e) === d; - }); + return y(e) === d; + }), + (t.isValidElementType = function(e) { + return ( + 'string' == typeof e || + 'function' == typeof e || + e === o || + e === g || + e === a || + e === s || + e === d || + e === h || + ('object' == typeof e && + null !== e && + (e.$$typeof === I || + e.$$typeof === C || + e.$$typeof === A || + e.$$typeof === c || + e.$$typeof === u || + e.$$typeof === m || + e.$$typeof === f || + e.$$typeof === E || + e.$$typeof === p)) + ); + }), + (t.typeOf = y); }, - 59864: (e, t, n) => { + 32826: (e, t, n) => { 'use strict'; - e.exports = n(69921); + e.exports = n(35830); }, - 55171: function(e, t, n) { - var r; + 69749: function(e, t, n) { + var i; e.exports = - ((r = n(99196)), + ((i = n(99196)), (function(e) { var t = {}; - function n(r) { - if (t[r]) return t[r].exports; - var i = (t[r] = {i: r, l: !1, exports: {}}); + function n(i) { + if (t[i]) return t[i].exports; + var r = (t[i] = {i, l: !1, exports: {}}); return ( - e[r].call(i.exports, i, i.exports, n), - (i.l = !0), - i.exports + e[i].call(r.exports, r, r.exports, n), + (r.l = !0), + r.exports ); } return ( (n.m = e), (n.c = t), - (n.d = function(e, t, r) { + (n.d = function(e, t, i) { n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, - get: r, + get: i, }); }), (n.r = function(e) { @@ -78757,24 +77667,24 @@ e.__esModule ) return e; - var r = Object.create(null); + var i = Object.create(null); if ( - (n.r(r), - Object.defineProperty(r, 'default', { + (n.r(i), + Object.defineProperty(i, 'default', { enumerable: !0, value: e, }), 2 & t && 'string' != typeof e) ) - for (var i in e) + for (var r in e) n.d( - r, i, + r, function(t) { return e[t]; - }.bind(null, i) + }.bind(null, r) ); - return r; + return i; }), (n.n = function(e) { var t = @@ -78798,25 +77708,25 @@ ); })([ function(e, t) { - e.exports = r; + e.exports = i; }, function(e, t) { var n = (e.exports = {version: '2.6.12'}); 'number' == typeof __e && (__e = n); }, function(e, t, n) { - var r = n(26)('wks'), - i = n(17), + var i = n(26)('wks'), + r = n(17), o = n(3).Symbol, - a = 'function' == typeof o; + s = 'function' == typeof o; (e.exports = function(e) { return ( - r[e] || - (r[e] = - (a && o[e]) || - (a ? o : i)('Symbol.' + e)) + i[e] || + (i[e] = + (s && o[e]) || + (s ? o : r)('Symbol.' + e)) ); - }).store = r; + }).store = i; }, function(e, t) { var n = (e.exports = @@ -78848,27 +77758,27 @@ }; }, function(e, t, n) { - var r = n(7), - i = n(16); + var i = n(7), + r = n(16); e.exports = n(4) ? function(e, t, n) { - return r.f(e, t, i(1, n)); + return i.f(e, t, r(1, n)); } : function(e, t, n) { return (e[t] = n), e; }; }, function(e, t, n) { - var r = n(10), - i = n(35), + var i = n(10), + r = n(35), o = n(23), - a = Object.defineProperty; + s = Object.defineProperty; t.f = n(4) ? Object.defineProperty : function(e, t, n) { - if ((r(e), (t = o(t, !0)), r(n), i)) + if ((i(e), (t = o(t, !0)), i(n), r)) try { - return a(e, t, n); + return s(e, t, n); } catch (e) {} if ('get' in n || 'set' in n) throw TypeError( @@ -78889,16 +77799,16 @@ }; }, function(e, t, n) { - var r = n(40), - i = n(22); + var i = n(40), + r = n(22); e.exports = function(e) { - return r(i(e)); + return i(r(e)); }; }, function(e, t, n) { - var r = n(11); + var i = n(11); e.exports = function(e) { - if (!r(e)) + if (!i(e)) throw TypeError(e + ' is not an object!'); return e; }; @@ -78914,23 +77824,23 @@ e.exports = {}; }, function(e, t, n) { - var r = n(39), - i = n(27); + var i = n(39), + r = n(27); e.exports = Object.keys || function(e) { - return r(e, i); + return i(e, r); }; }, function(e, t) { e.exports = !0; }, function(e, t, n) { - var r = n(3), - i = n(1), + var i = n(3), + r = n(1), o = n(53), - a = n(6), - s = n(5), + s = n(6), + a = n(5), A = function(e, t, n) { var c, l, @@ -78941,28 +77851,28 @@ C = e & A.P, I = e & A.B, p = e & A.W, - m = d ? i : i[t] || (i[t] = {}), + m = d ? r : r[t] || (r[t] = {}), f = m.prototype, E = d - ? r + ? i : h - ? r[t] - : (r[t] || {}).prototype; + ? i[t] + : (i[t] || {}).prototype; for (c in (d && (n = t), n)) ((l = !u && E && void 0 !== E[c]) && - s(m, c)) || + a(m, c)) || ((g = l ? E[c] : n[c]), (m[c] = d && 'function' != typeof E[c] ? n[c] : I && l - ? o(g, r) + ? o(g, i) : p && E[c] == g ? (function(e) { var t = function( t, n, - r + i ) { if ( this instanceof @@ -78986,7 +77896,7 @@ return new e( t, n, - r + i ); } return e.apply( @@ -79010,7 +77920,7 @@ e & A.R && f && !f[c] && - a(f, c, g))); + s(f, c, g))); }; (A.F = 1), (A.G = 2), @@ -79034,19 +77944,19 @@ }, function(e, t) { var n = 0, - r = Math.random(); + i = Math.random(); e.exports = function(e) { return 'Symbol('.concat( void 0 === e ? '' : e, ')_', - (++n + r).toString(36) + (++n + i).toString(36) ); }; }, function(e, t, n) { - var r = n(22); + var i = n(22); e.exports = function(e) { - return Object(r(e)); + return Object(i(e)); }; }, function(e, t) { @@ -79054,7 +77964,7 @@ }, function(e, t, n) { 'use strict'; - var r = n(52)(!0); + var i = n(52)(!0); n(34)( String, 'String', @@ -79067,7 +77977,7 @@ n = this._i; return n >= t.length ? {value: void 0, done: !0} - : ((e = r(t, n)), + : ((e = i(t, n)), (this._i += e.length), {value: e, done: !1}); } @@ -79075,9 +77985,9 @@ }, function(e, t) { var n = Math.ceil, - r = Math.floor; + i = Math.floor; e.exports = function(e) { - return isNaN((e = +e)) ? 0 : (e > 0 ? r : n)(e); + return isNaN((e = +e)) ? 0 : (e > 0 ? i : n)(e); }; }, function(e, t) { @@ -79090,27 +78000,27 @@ }; }, function(e, t, n) { - var r = n(11); + var i = n(11); e.exports = function(e, t) { - if (!r(e)) return e; - var n, i; + if (!i(e)) return e; + var n, r; if ( t && 'function' == typeof (n = e.toString) && - !r((i = n.call(e))) + !i((r = n.call(e))) ) - return i; + return r; if ( 'function' == typeof (n = e.valueOf) && - !r((i = n.call(e))) + !i((r = n.call(e))) ) - return i; + return r; if ( !t && 'function' == typeof (n = e.toString) && - !r((i = n.call(e))) + !i((r = n.call(e))) ) - return i; + return r; throw TypeError( "Can't convert object to primitive value" ); @@ -79123,22 +78033,22 @@ }; }, function(e, t, n) { - var r = n(26)('keys'), - i = n(17); + var i = n(26)('keys'), + r = n(17); e.exports = function(e) { - return r[e] || (r[e] = i(e)); + return i[e] || (i[e] = r(e)); }; }, function(e, t, n) { - var r = n(1), - i = n(3), + var i = n(1), + r = n(3), o = - i['__core-js_shared__'] || - (i['__core-js_shared__'] = {}); + r['__core-js_shared__'] || + (r['__core-js_shared__'] = {}); (e.exports = function(e, t) { return o[e] || (o[e] = void 0 !== t ? t : {}); })('versions', []).push({ - version: r.version, + version: i.version, mode: n(14) ? 'pure' : 'global', copyright: '© 2020 Denis Pushkarev (zloirock.ru)', @@ -79150,51 +78060,51 @@ ); }, function(e, t, n) { - var r = n(7).f, - i = n(5), + var i = n(7).f, + r = n(5), o = n(2)('toStringTag'); e.exports = function(e, t, n) { e && - !i((e = n ? e : e.prototype), o) && - r(e, o, {configurable: !0, value: t}); + !r((e = n ? e : e.prototype), o) && + i(e, o, {configurable: !0, value: t}); }; }, function(e, t, n) { n(62); for ( - var r = n(3), - i = n(6), + var i = n(3), + r = n(6), o = n(12), - a = n(2)('toStringTag'), - s = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( + s = n(2)('toStringTag'), + a = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( ',' ), A = 0; - A < s.length; + A < a.length; A++ ) { - var c = s[A], - l = r[c], + var c = a[A], + l = i[c], g = l && l.prototype; - g && !g[a] && i(g, a, c), (o[c] = o.Array); + g && !g[s] && r(g, s, c), (o[c] = o.Array); } }, function(e, t, n) { t.f = n(2); }, function(e, t, n) { - var r = n(3), - i = n(1), + var i = n(3), + r = n(1), o = n(14), - a = n(30), - s = n(7).f; + s = n(30), + a = n(7).f; e.exports = function(e) { var t = - i.Symbol || - (i.Symbol = o ? {} : r.Symbol || {}); + r.Symbol || + (r.Symbol = o ? {} : i.Symbol || {}); '_' == e.charAt(0) || e in t || - s(t, e, {value: a.f(e)}); + a(t, e, {value: s.f(e)}); }; }, function(e, t) { @@ -79207,11 +78117,11 @@ }, function(e, t, n) { 'use strict'; - var r = n(14), - i = n(15), + var i = n(14), + r = n(15), o = n(37), - a = n(6), - s = n(12), + s = n(6), + a = n(12), A = n(55), c = n(28), l = n(61), @@ -79226,7 +78136,7 @@ f, E, y = function(e) { - if (!u && e in v) return v[e]; + if (!u && e in M) return M[e]; switch (e) { case 'keys': case 'values': @@ -79241,32 +78151,32 @@ B = t + ' Iterator', w = 'values' == C, b = !1, - v = e.prototype, - M = v[g] || v['@@iterator'] || (C && v[C]), - N = M || y(C), + M = e.prototype, + v = M[g] || M['@@iterator'] || (C && M[C]), + N = v || y(C), S = C ? (w ? y('entries') : N) : void 0, - Q = ('Array' == t && v.entries) || M; + Q = ('Array' == t && M.entries) || v; if ( (Q && (E = l(Q.call(new e()))) !== Object.prototype && E.next && (c(E, B, !0), - r || + i || 'function' == typeof E[g] || - a(E, g, d)), + s(E, g, d)), w && - M && - 'values' !== M.name && + v && + 'values' !== v.name && ((b = !0), (N = function() { - return M.call(this); + return v.call(this); })), - (r && !p) || - (!u && !b && v[g]) || - a(v, g, N), - (s[t] = N), - (s[B] = d), + (i && !p) || + (!u && !b && M[g]) || + s(M, g, N), + (a[t] = N), + (a[B] = d), C) ) if ( @@ -79277,8 +78187,8 @@ }), p) ) - for (f in m) f in v || o(v, f, m[f]); - else i(i.P + i.F * (u || b), t, m); + for (f in m) f in M || o(M, f, m[f]); + else r(r.P + r.F * (u || b), t, m); return m; }; }, @@ -79301,26 +78211,26 @@ }); }, function(e, t, n) { - var r = n(11), - i = n(3).document, - o = r(i) && r(i.createElement); + var i = n(11), + r = n(3).document, + o = i(r) && i(r.createElement); e.exports = function(e) { - return o ? i.createElement(e) : {}; + return o ? r.createElement(e) : {}; }; }, function(e, t, n) { e.exports = n(6); }, function(e, t, n) { - var r = n(10), - i = n(56), + var i = n(10), + r = n(56), o = n(27), - a = n(25)('IE_PROTO'), - s = function() {}, + s = n(25)('IE_PROTO'), + a = function() {}, A = function() { var e, t = n(36)('iframe'), - r = o.length; + i = o.length; for ( t.style.display = 'none', n(60).appendChild(t), @@ -79333,10 +78243,10 @@ ), e.close(), A = e.F; - r--; + i--; ) - delete A.prototype[o[r]]; + delete A.prototype[o[i]]; return A(); }; e.exports = @@ -79345,63 +78255,63 @@ var n; return ( null !== e - ? ((s.prototype = r(e)), - (n = new s()), - (s.prototype = null), - (n[a] = e)) + ? ((a.prototype = i(e)), + (n = new a()), + (a.prototype = null), + (n[s] = e)) : (n = A()), - void 0 === t ? n : i(n, t) + void 0 === t ? n : r(n, t) ); }; }, function(e, t, n) { - var r = n(5), - i = n(9), + var i = n(5), + r = n(9), o = n(57)(!1), - a = n(25)('IE_PROTO'); + s = n(25)('IE_PROTO'); e.exports = function(e, t) { var n, - s = i(e), + a = r(e), A = 0, c = []; - for (n in s) n != a && r(s, n) && c.push(n); + for (n in a) n != s && i(a, n) && c.push(n); for (; t.length > A; ) - r(s, (n = t[A++])) && + i(a, (n = t[A++])) && (~o(c, n) || c.push(n)); return c; }; }, function(e, t, n) { - var r = n(24); + var i = n(24); e.exports = Object('z').propertyIsEnumerable(0) ? Object : function(e) { - return 'String' == r(e) + return 'String' == i(e) ? e.split('') : Object(e); }; }, function(e, t, n) { - var r = n(39), - i = n(27).concat('length', 'prototype'); + var i = n(39), + r = n(27).concat('length', 'prototype'); t.f = Object.getOwnPropertyNames || function(e) { - return r(e, i); + return i(e, r); }; }, function(e, t, n) { - var r = n(24), - i = n(2)('toStringTag'), + var i = n(24), + r = n(2)('toStringTag'), o = 'Arguments' == - r( + i( (function() { return arguments; })() ); e.exports = function(e) { - var t, n, a; + var t, n, s; return void 0 === e ? 'Undefined' : null === e @@ -79411,14 +78321,14 @@ try { return e[t]; } catch (e) {} - })((t = Object(e)), i)) + })((t = Object(e)), r)) ? n : o - ? r(t) - : 'Object' == (a = r(t)) && + ? i(t) + : 'Object' == (s = i(t)) && 'function' == typeof t.callee ? 'Arguments' - : a; + : s; }; }, function(e, t) { @@ -79443,11 +78353,11 @@ 'use strict'; Object.defineProperty(t, '__esModule', {value: !0}), (t.getBase16Theme = t.createStyling = t.invertTheme = void 0); - var r = d(n(49)), - i = d(n(76)), + var i = d(n(49)), + r = d(n(76)), o = d(n(81)), - a = d(n(89)), - s = d(n(93)), + s = d(n(89)), + a = d(n(93)), A = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -79467,7 +78377,7 @@ return e && e.__esModule ? e : {default: e}; } var h = A.default, - C = (0, a.default)(h), + C = (0, s.default)(h), I = (0, g.default)( l.default, u.rgb2yuv, @@ -79497,7 +78407,7 @@ ] .filter(Boolean) .join(' '), - style: (0, i.default)( + style: (0, r.default)( {}, t.style || {}, e.style || {} @@ -79506,7 +78416,7 @@ }; }, m = function(e, t) { - var n = (0, a.default)(t); + var n = (0, s.default)(t); for (var o in e) -1 === n.indexOf(o) && n.push(o); return n.reduce(function(n, o) { @@ -79517,11 +78427,11 @@ var n = void 0 === e ? 'undefined' - : (0, r.default)(e), + : (0, i.default)(e), o = void 0 === t ? 'undefined' - : (0, r.default)(t); + : (0, i.default)(t); switch (n) { case 'string': switch (o) { @@ -79541,20 +78451,20 @@ n ) { for ( - var r = + var i = arguments.length, - i = Array( - r > + r = Array( + i > 1 - ? r - + ? i - 1 : 0 ), o = 1; - o < r; + o < i; o++ ) - i[ + r[ o - 1 ] = @@ -79569,7 +78479,7 @@ [ n, ].concat( - i + r ) ) ); @@ -79584,7 +78494,7 @@ }); case 'object': return (0, - i.default)( + r.default)( {}, t, e @@ -79594,20 +78504,20 @@ n ) { for ( - var r = + var i = arguments.length, - i = Array( - r > + r = Array( + i > 1 - ? r - + ? i - 1 : 0 ), o = 1; - o < r; + o < i; o++ ) - i[ + r[ o - 1 ] = @@ -79622,7 +78532,7 @@ [ n, ].concat( - i + r ) ) ); @@ -79635,20 +78545,20 @@ n ) { for ( - var r = + var i = arguments.length, - i = Array( - r > + r = Array( + i > 1 - ? r - + ? i - 1 : 0 ), o = 1; - o < r; + o < i; o++ ) - i[ + r[ o - 1 ] = @@ -79664,7 +78574,7 @@ className: t, }), ].concat( - i + r ) ); }; @@ -79673,20 +78583,20 @@ n ) { for ( - var r = + var i = arguments.length, - i = Array( - r > + r = Array( + i > 1 - ? r - + ? i - 1 : 0 ), o = 1; - o < r; + o < i; o++ ) - i[ + r[ o - 1 ] = @@ -79702,7 +78612,7 @@ style: t, }), ].concat( - i + r ) ); }; @@ -79711,20 +78621,20 @@ n ) { for ( - var r = + var i = arguments.length, - i = Array( - r > + r = Array( + i > 1 - ? r - + ? i - 1 : 0 ), o = 1; - o < r; + o < i; o++ ) - i[ + r[ o - 1 ] = @@ -79739,11 +78649,11 @@ [ n, ].concat( - i + r ) ), ].concat( - i + r ) ); }; @@ -79758,11 +78668,11 @@ for ( var n = arguments.length, o = Array(n > 2 ? n - 2 : 0), - s = 2; - s < n; - s++ + a = 2; + a < n; + a++ ) - o[s - 2] = arguments[s]; + o[a - 2] = arguments[a]; if (null === t) return e; Array.isArray(t) || (t = [t]); var A = t @@ -79783,18 +78693,18 @@ : 'object' === (void 0 === t ? 'undefined' - : (0, r.default)( + : (0, i.default)( t )) ? (e.style = (0, - i.default)( + r.default)( {}, e.style, t )) : 'function' == typeof t && - (e = (0, i.default)( + (e = (0, r.default)( {}, e, t.apply( @@ -79809,13 +78719,13 @@ ); return ( A.className || delete A.className, - 0 === (0, a.default)(A.style).length && + 0 === (0, s.default)(A.style).length && delete A.style, A ); }, E = (t.invertTheme = function(e) { - return (0, a.default)(e).reduce(function( + return (0, s.default)(e).reduce(function( t, n ) { @@ -79831,17 +78741,17 @@ {}); }), y = - ((t.createStyling = (0, s.default)(function( + ((t.createStyling = (0, a.default)(function( e ) { for ( var t = arguments.length, n = Array(t > 3 ? t - 3 : 0), - r = 3; - r < t; - r++ + i = 3; + i < t; + i++ ) - n[r - 3] = arguments[r]; + n[i - 3] = arguments[i]; var o = arguments.length > 1 && void 0 !== arguments[1] @@ -79856,11 +78766,11 @@ l = void 0 === c ? h : c, g = o.base16Themes, u = y(A, void 0 === g ? null : g); - u && (A = (0, i.default)({}, u, A)); + u && (A = (0, r.default)({}, u, A)); var d = C.reduce(function(e, t) { return (e[t] = A[t] || l[t]), e; }, {}), - I = (0, a.default)(A).reduce( + I = (0, s.default)(A).reduce( function(e, t) { return -1 === C.indexOf(t) ? ((e[t] = A[t]), e) @@ -79870,7 +78780,7 @@ ), p = e(d), E = m(I, p); - return (0, s.default)(f, 2).apply( + return (0, a.default)(f, 2).apply( void 0, [E].concat(n) ); @@ -79882,11 +78792,11 @@ 'string' == typeof e) ) { var n = e.split(':'), - r = (0, o.default)(n, 2), - i = r[0], - a = r[1]; - (e = (t || {})[i] || A[i]), - 'inverted' === a && (e = E(e)); + i = (0, o.default)(n, 2), + r = i[0], + s = i[1]; + (e = (t || {})[r] || A[r]), + 'inverted' === s && (e = E(e)); } return e && e.hasOwnProperty('base00') ? e @@ -79895,11 +78805,11 @@ }, function(e, t, n) { 'use strict'; - var r, - i = 'object' == typeof Reflect ? Reflect : null, + var i, + r = 'object' == typeof Reflect ? Reflect : null, o = - i && 'function' == typeof i.apply - ? i.apply + r && 'function' == typeof r.apply + ? r.apply : function(e, t, n) { return Function.prototype.apply.call( e, @@ -79907,9 +78817,9 @@ n ); }; - r = - i && 'function' == typeof i.ownKeys - ? i.ownKeys + i = + r && 'function' == typeof r.ownKeys + ? r.ownKeys : Object.getOwnPropertySymbols ? function(e) { return Object.getOwnPropertyNames( @@ -79921,18 +78831,18 @@ : function(e) { return Object.getOwnPropertyNames(e); }; - var a = + var s = Number.isNaN || function(e) { return e != e; }; - function s() { - s.init.call(this); + function a() { + a.init.call(this); } - (e.exports = s), + (e.exports = a), (e.exports.once = function(e, t) { - return new Promise(function(n, r) { - function i() { + return new Promise(function(n, i) { + function r() { void 0 !== o && e.removeListener('error', o), n([].slice.call(arguments)); @@ -79940,16 +78850,16 @@ var o; 'error' !== t && ((o = function(n) { - e.removeListener(t, i), r(n); + e.removeListener(t, r), i(n); }), e.once('error', o)), - e.once(t, i); + e.once(t, r); }); }), - (s.EventEmitter = s), - (s.prototype._events = void 0), - (s.prototype._eventsCount = 0), - (s.prototype._maxListeners = void 0); + (a.EventEmitter = a), + (a.prototype._events = void 0), + (a.prototype._eventsCount = 0), + (a.prototype._maxListeners = void 0); var A = 10; function c(e) { if ('function' != typeof e) @@ -79960,11 +78870,11 @@ } function l(e) { return void 0 === e._maxListeners - ? s.defaultMaxListeners + ? a.defaultMaxListeners : e._maxListeners; } - function g(e, t, n, r) { - var i, o, a, s; + function g(e, t, n, i) { + var r, o, s, a; if ( (c(n), void 0 === (o = e._events) @@ -79979,22 +78889,22 @@ n.listener ? n.listener : n ), (o = e._events)), - (a = o[t])), - void 0 === a) + (s = o[t])), + void 0 === s) ) - (a = o[t] = n), ++e._eventsCount; + (s = o[t] = n), ++e._eventsCount; else if ( - ('function' == typeof a - ? (a = o[t] = r ? [n, a] : [a, n]) - : r - ? a.unshift(n) - : a.push(n), - (i = l(e)) > 0 && a.length > i && !a.warned) + ('function' == typeof s + ? (s = o[t] = i ? [n, s] : [s, n]) + : i + ? s.unshift(n) + : s.push(n), + (r = l(e)) > 0 && s.length > r && !s.warned) ) { - a.warned = !0; + s.warned = !0; var A = new Error( 'Possible EventEmitter memory leak detected. ' + - a.length + + s.length + ' ' + String(t) + ' listeners added. Use emitter.setMaxListeners() to increase limit' @@ -80002,11 +78912,11 @@ (A.name = 'MaxListenersExceededWarning'), (A.emitter = e), (A.type = t), - (A.count = a.length), - (s = A), + (A.count = s.length), + (a = A), console && console.warn && - console.warn(s); + console.warn(a); } return e; } @@ -80027,26 +78937,26 @@ ); } function d(e, t, n) { - var r = { + var i = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n, }, - i = u.bind(r); - return (i.listener = n), (r.wrapFn = i), i; + r = u.bind(i); + return (r.listener = n), (i.wrapFn = r), r; } function h(e, t, n) { - var r = e._events; - if (void 0 === r) return []; - var i = r[t]; - return void 0 === i + var i = e._events; + if (void 0 === i) return []; + var r = i[t]; + return void 0 === r ? [] - : 'function' == typeof i + : 'function' == typeof r ? n - ? [i.listener || i] - : [i] + ? [r.listener || r] + : [r] : n ? (function(e) { for ( @@ -80057,8 +78967,8 @@ ) t[n] = e[n].listener || e[n]; return t; - })(i) - : I(i, i.length); + })(r) + : I(r, r.length); } function C(e) { var t = this._events; @@ -80070,17 +78980,17 @@ return 0; } function I(e, t) { - for (var n = new Array(t), r = 0; r < t; ++r) - n[r] = e[r]; + for (var n = new Array(t), i = 0; i < t; ++i) + n[i] = e[i]; return n; } - Object.defineProperty(s, 'defaultMaxListeners', { + Object.defineProperty(a, 'defaultMaxListeners', { enumerable: !0, get: function() { return A; }, set: function(e) { - if ('number' != typeof e || e < 0 || a(e)) + if ('number' != typeof e || e < 0 || s(e)) throw new RangeError( 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + @@ -80089,7 +78999,7 @@ A = e; }, }), - (s.init = function() { + (a.init = function() { (void 0 !== this._events && this._events !== Object.getPrototypeOf(this) @@ -80099,8 +79009,8 @@ (this._maxListeners = this._maxListeners || void 0); }), - (s.prototype.setMaxListeners = function(e) { - if ('number' != typeof e || e < 0 || a(e)) + (a.prototype.setMaxListeners = function(e) { + if ('number' != typeof e || e < 0 || s(e)) throw new RangeError( 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + @@ -80108,37 +79018,37 @@ ); return (this._maxListeners = e), this; }), - (s.prototype.getMaxListeners = function() { + (a.prototype.getMaxListeners = function() { return l(this); }), - (s.prototype.emit = function(e) { + (a.prototype.emit = function(e) { for ( var t = [], n = 1; n < arguments.length; n++ ) t.push(arguments[n]); - var r = 'error' === e, - i = this._events; - if (void 0 !== i) - r = r && void 0 === i.error; - else if (!r) return !1; - if (r) { - var a; + var i = 'error' === e, + r = this._events; + if (void 0 !== r) + i = i && void 0 === r.error; + else if (!i) return !1; + if (i) { + var s; if ( - (t.length > 0 && (a = t[0]), - a instanceof Error) + (t.length > 0 && (s = t[0]), + s instanceof Error) ) - throw a; - var s = new Error( + throw s; + var a = new Error( 'Unhandled error.' + - (a - ? ' (' + a.message + ')' + (s + ? ' (' + s.message + ')' : '') ); - throw ((s.context = a), s); + throw ((a.context = s), a); } - var A = i[e]; + var A = r[e]; if (void 0 === A) return !1; if ('function' == typeof A) o(A, this, t); else { @@ -80149,19 +79059,19 @@ } return !0; }), - (s.prototype.addListener = function(e, t) { + (a.prototype.addListener = function(e, t) { return g(this, e, t, !1); }), - (s.prototype.on = s.prototype.addListener), - (s.prototype.prependListener = function(e, t) { + (a.prototype.on = a.prototype.addListener), + (a.prototype.prependListener = function(e, t) { return g(this, e, t, !0); }), - (s.prototype.once = function(e, t) { + (a.prototype.once = function(e, t) { return ( c(t), this.on(e, d(this, e, t)), this ); }), - (s.prototype.prependOnceListener = function( + (a.prototype.prependOnceListener = function( e, t ) { @@ -80171,18 +79081,18 @@ this ); }), - (s.prototype.removeListener = function(e, t) { - var n, r, i, o, a; - if ((c(t), void 0 === (r = this._events))) + (a.prototype.removeListener = function(e, t) { + var n, i, r, o, s; + if ((c(t), void 0 === (i = this._events))) return this; - if (void 0 === (n = r[e])) return this; + if (void 0 === (n = i[e])) return this; if (n === t || n.listener === t) 0 == --this._eventsCount ? (this._events = Object.create( null )) - : (delete r[e], - r.removeListener && + : (delete i[e], + i.removeListener && this.emit( 'removeListener', e, @@ -80190,7 +79100,7 @@ )); else if ('function' != typeof n) { for ( - i = -1, o = n.length - 1; + r = -1, o = n.length - 1; o >= 0; o-- ) @@ -80198,30 +79108,30 @@ n[o] === t || n[o].listener === t ) { - (a = n[o].listener), (i = o); + (s = n[o].listener), (r = o); break; } - if (i < 0) return this; - 0 === i + if (r < 0) return this; + 0 === r ? n.shift() : (function(e, t) { for (; t + 1 < e.length; t++) e[t] = e[t + 1]; e.pop(); - })(n, i), - 1 === n.length && (r[e] = n[0]), - void 0 !== r.removeListener && + })(n, r), + 1 === n.length && (i[e] = n[0]), + void 0 !== i.removeListener && this.emit( 'removeListener', e, - a || t + s || t ); } return this; }), - (s.prototype.off = s.prototype.removeListener), - (s.prototype.removeAllListeners = function(e) { - var t, n, r; + (a.prototype.off = a.prototype.removeListener), + (a.prototype.removeAllListeners = function(e) { + var t, n, i; if (void 0 === (n = this._events)) return this; if (void 0 === n.removeListener) @@ -80240,11 +79150,11 @@ this ); if (0 === arguments.length) { - var i, + var r, o = Object.keys(n); - for (r = 0; r < o.length; ++r) - 'removeListener' !== (i = o[r]) && - this.removeAllListeners(i); + for (i = 0; i < o.length; ++i) + 'removeListener' !== (r = o[i]) && + this.removeAllListeners(r); return ( this.removeAllListeners( 'removeListener' @@ -80259,25 +79169,25 @@ if ('function' == typeof (t = n[e])) this.removeListener(e, t); else if (void 0 !== t) - for (r = t.length - 1; r >= 0; r--) - this.removeListener(e, t[r]); + for (i = t.length - 1; i >= 0; i--) + this.removeListener(e, t[i]); return this; }), - (s.prototype.listeners = function(e) { + (a.prototype.listeners = function(e) { return h(this, e, !0); }), - (s.prototype.rawListeners = function(e) { + (a.prototype.rawListeners = function(e) { return h(this, e, !1); }), - (s.listenerCount = function(e, t) { + (a.listenerCount = function(e, t) { return 'function' == typeof e.listenerCount ? e.listenerCount(t) : C.call(e, t); }), - (s.prototype.listenerCount = C), - (s.prototype.eventNames = function() { + (a.prototype.listenerCount = C), + (a.prototype.eventNames = function() { return this._eventsCount > 0 - ? r(this._events) + ? i(this._events) : []; }); }, @@ -80290,29 +79200,29 @@ function(e, t, n) { 'use strict'; t.__esModule = !0; - var r = a(n(50)), - i = a(n(65)), + var i = s(n(50)), + r = s(n(65)), o = - 'function' == typeof i.default && - 'symbol' == typeof r.default + 'function' == typeof r.default && + 'symbol' == typeof i.default ? function(e) { return typeof e; } : function(e) { return e && 'function' == - typeof i.default && - e.constructor === i.default && - e !== i.default.prototype + typeof r.default && + e.constructor === r.default && + e !== r.default.prototype ? 'symbol' : typeof e; }; - function a(e) { + function s(e) { return e && e.__esModule ? e : {default: e}; } t.default = - 'function' == typeof i.default && - 'symbol' === o(r.default) + 'function' == typeof r.default && + 'symbol' === o(i.default) ? function(e) { return void 0 === e ? 'undefined' @@ -80320,9 +79230,9 @@ } : function(e) { return e && - 'function' == typeof i.default && - e.constructor === i.default && - e !== i.default.prototype + 'function' == typeof r.default && + e.constructor === r.default && + e !== r.default.prototype ? 'symbol' : void 0 === e ? 'undefined' @@ -80336,30 +79246,30 @@ n(20), n(29), (e.exports = n(30).f('iterator')); }, function(e, t, n) { - var r = n(21), - i = n(22); + var i = n(21), + r = n(22); e.exports = function(e) { return function(t, n) { var o, - a, - s = String(i(t)), - A = r(n), - c = s.length; + s, + a = String(r(t)), + A = i(n), + c = a.length; return A < 0 || A >= c ? e ? '' : void 0 - : (o = s.charCodeAt(A)) < 55296 || + : (o = a.charCodeAt(A)) < 55296 || o > 56319 || A + 1 === c || - (a = s.charCodeAt(A + 1)) < 56320 || - a > 57343 + (s = a.charCodeAt(A + 1)) < 56320 || + s > 57343 ? e - ? s.charAt(A) + ? a.charAt(A) : o : e - ? s.slice(A, A + 2) - : a - + ? a.slice(A, A + 2) + : s - 56320 + ((o - 55296) << 10) + 65536; @@ -80367,21 +79277,21 @@ }; }, function(e, t, n) { - var r = n(54); + var i = n(54); e.exports = function(e, t, n) { - if ((r(e), void 0 === t)) return e; + if ((i(e), void 0 === t)) return e; switch (n) { case 1: return function(n) { return e.call(t, n); }; case 2: - return function(n, r) { - return e.call(t, n, r); + return function(n, i) { + return e.call(t, n, i); }; case 3: - return function(n, r, i) { - return e.call(t, n, r, i); + return function(n, i, r) { + return e.call(t, n, i, r); }; } return function() { @@ -80398,48 +79308,48 @@ }, function(e, t, n) { 'use strict'; - var r = n(38), - i = n(16), + var i = n(38), + r = n(16), o = n(28), - a = {}; - n(6)(a, n(2)('iterator'), function() { + s = {}; + n(6)(s, n(2)('iterator'), function() { return this; }), (e.exports = function(e, t, n) { - (e.prototype = r(a, {next: i(1, n)})), + (e.prototype = i(s, {next: r(1, n)})), o(e, t + ' Iterator'); }); }, function(e, t, n) { - var r = n(7), - i = n(10), + var i = n(7), + r = n(10), o = n(13); e.exports = n(4) ? Object.defineProperties : function(e, t) { - i(e); + r(e); for ( - var n, a = o(t), s = a.length, A = 0; - s > A; + var n, s = o(t), a = s.length, A = 0; + a > A; ) - r.f(e, (n = a[A++]), t[n]); + i.f(e, (n = s[A++]), t[n]); return e; }; }, function(e, t, n) { - var r = n(9), - i = n(58), + var i = n(9), + r = n(58), o = n(59); e.exports = function(e) { - return function(t, n, a) { - var s, - A = r(t), - c = i(A.length), - l = o(a, c); + return function(t, n, s) { + var a, + A = i(t), + c = r(A.length), + l = o(s, c); if (e && n != n) { for (; c > l; ) - if ((s = A[l++]) != s) return !0; + if ((a = A[l++]) != a) return !0; } else for (; c > l; l++) if ((e || l in A) && A[l] === n) @@ -80449,57 +79359,57 @@ }; }, function(e, t, n) { - var r = n(21), - i = Math.min; + var i = n(21), + r = Math.min; e.exports = function(e) { - return e > 0 ? i(r(e), 9007199254740991) : 0; + return e > 0 ? r(i(e), 9007199254740991) : 0; }; }, function(e, t, n) { - var r = n(21), - i = Math.max, + var i = n(21), + r = Math.max, o = Math.min; e.exports = function(e, t) { - return (e = r(e)) < 0 ? i(e + t, 0) : o(e, t); + return (e = i(e)) < 0 ? r(e + t, 0) : o(e, t); }; }, function(e, t, n) { - var r = n(3).document; - e.exports = r && r.documentElement; + var i = n(3).document; + e.exports = i && i.documentElement; }, function(e, t, n) { - var r = n(5), - i = n(18), + var i = n(5), + r = n(18), o = n(25)('IE_PROTO'), - a = Object.prototype; + s = Object.prototype; e.exports = Object.getPrototypeOf || function(e) { return ( - (e = i(e)), - r(e, o) + (e = r(e)), + i(e, o) ? e[o] : 'function' == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object - ? a + ? s : null ); }; }, function(e, t, n) { 'use strict'; - var r = n(63), - i = n(64), + var i = n(63), + r = n(64), o = n(12), - a = n(9); + s = n(9); (e.exports = n(34)( Array, 'Array', function(e, t) { - (this._t = a(e)), + (this._t = s(e)), (this._i = 0), (this._k = t); }, @@ -80508,8 +79418,8 @@ t = this._k, n = this._i++; return !e || n >= e.length - ? ((this._t = void 0), i(1)) - : i( + ? ((this._t = void 0), r(1)) + : r( 0, 'keys' == t ? n @@ -80521,9 +79431,9 @@ 'values' )), (o.Arguments = o.Array), - r('keys'), - r('values'), - r('entries'); + i('keys'), + i('values'), + i('entries'); }, function(e, t) { e.exports = function() {}; @@ -80545,11 +79455,11 @@ }, function(e, t, n) { 'use strict'; - var r = n(3), - i = n(5), + var i = n(3), + r = n(5), o = n(4), - a = n(15), - s = n(37), + s = n(15), + a = n(37), A = n(68).KEY, c = n(8), l = n(26), @@ -80567,26 +79477,26 @@ B = n(23), w = n(16), b = n(38), - v = n(71), - M = n(72), + M = n(71), + v = n(72), N = n(32), S = n(7), Q = n(13), - F = M.f, - x = S.f, - D = v.f, - T = r.Symbol, - Y = r.JSON, + x = v.f, + F = S.f, + D = M.f, + T = i.Symbol, + Y = i.JSON, R = Y && Y.stringify, _ = d('_hidden'), U = d('toPrimitive'), O = {}.propertyIsEnumerable, - k = l('symbol-registry'), - G = l('symbols'), - L = l('op-symbols'), - j = Object.prototype, - z = 'function' == typeof T && !!N.f, - P = r.QObject, + G = l('symbol-registry'), + L = l('symbols'), + k = l('op-symbols'), + z = Object.prototype, + j = 'function' == typeof T && !!N.f, + P = i.QObject, H = !P || !P.prototype || @@ -80597,9 +79507,9 @@ return ( 7 != b( - x({}, 'a', { + F({}, 'a', { get: function() { - return x(this, 'a', { + return F(this, 'a', { value: 7, }).a; }, @@ -80608,18 +79518,18 @@ ); }) ? function(e, t, n) { - var r = F(j, t); - r && delete j[t], - x(e, t, n), - r && e !== j && x(j, t, r); + var i = x(z, t); + i && delete z[t], + F(e, t, n), + i && e !== z && F(z, t, i); } - : x, + : F, W = function(e) { - var t = (G[e] = b(T.prototype)); + var t = (L[e] = b(T.prototype)); return (t._k = e), t; }, V = - z && 'symbol' == typeof T.iterator + j && 'symbol' == typeof T.iterator ? function(e) { return 'symbol' == typeof e; } @@ -80628,47 +79538,47 @@ }, K = function(e, t, n) { return ( - e === j && K(L, t, n), + e === z && K(k, t, n), m(e), (t = B(t, !0)), m(n), - i(G, t) + r(L, t) ? (n.enumerable - ? (i(e, _) && + ? (r(e, _) && e[_][t] && (e[_][t] = !1), (n = b(n, { enumerable: w(0, !1), }))) - : (i(e, _) || - x(e, _, w(1, {})), + : (r(e, _) || + F(e, _, w(1, {})), (e[_][t] = !0)), J(e, t, n)) - : x(e, t, n) + : F(e, t, n) ); }, Z = function(e, t) { m(e); for ( var n, - r = I((t = y(t))), - i = 0, - o = r.length; - o > i; + i = I((t = y(t))), + r = 0, + o = i.length; + o > r; ) - K(e, (n = r[i++]), t[n]); + K(e, (n = i[r++]), t[n]); return e; }, X = function(e) { var t = O.call(this, (e = B(e, !0))); return ( - !(this === j && i(G, e) && !i(L, e)) && + !(this === z && r(L, e) && !r(k, e)) && (!( t || - !i(this, e) || - !i(G, e) || - (i(this, _) && this[_][e]) + !r(this, e) || + !r(L, e) || + (r(this, _) && this[_][e]) ) || t) ); @@ -80677,13 +79587,13 @@ if ( ((e = y(e)), (t = B(t, !0)), - e !== j || !i(G, t) || i(L, t)) + e !== z || !r(L, t) || r(k, t)) ) { - var n = F(e, t); + var n = x(e, t); return ( !n || - !i(G, t) || - (i(e, _) && e[_][t]) || + !r(L, t) || + (r(e, _) && e[_][t]) || (n.enumerable = !0), n ); @@ -80691,33 +79601,33 @@ }, $ = function(e) { for ( - var t, n = D(y(e)), r = [], o = 0; + var t, n = D(y(e)), i = [], o = 0; n.length > o; ) - i(G, (t = n[o++])) || + r(L, (t = n[o++])) || t == _ || t == A || - r.push(t); - return r; + i.push(t); + return i; }, ee = function(e) { for ( var t, - n = e === j, - r = D(n ? L : y(e)), + n = e === z, + i = D(n ? k : y(e)), o = [], - a = 0; - r.length > a; + s = 0; + i.length > s; ) - !i(G, (t = r[a++])) || - (n && !i(j, t)) || - o.push(G[t]); + !r(L, (t = i[s++])) || + (n && !r(z, t)) || + o.push(L[t]); return o; }; - z || - (s( + j || + (a( (T = function() { if (this instanceof T) throw TypeError( @@ -80729,16 +79639,16 @@ : void 0 ), t = function(n) { - this === j && t.call(L, n), - i(this, _) && - i(this[_], e) && + this === z && t.call(k, n), + r(this, _) && + r(this[_], e) && (this[_][e] = !1), J(this, e, w(1, n)); }; return ( o && H && - J(j, e, { + J(z, e, { configurable: !0, set: t, }), @@ -80750,18 +79660,18 @@ return this._k; } ), - (M.f = q), + (v.f = q), (S.f = K), - (n(41).f = v.f = $), + (n(41).f = M.f = $), (n(19).f = X), (N.f = ee), o && !n(14) && - s(j, 'propertyIsEnumerable', X, !0), + a(z, 'propertyIsEnumerable', X, !0), (h.f = function(e) { return W(d(e)); })), - a(a.G + a.W + a.F * !z, {Symbol: T}); + s(s.G + s.W + s.F * !j, {Symbol: T}); for ( var te = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( ',' @@ -80771,20 +79681,20 @@ ) d(te[ne++]); - for (var re = Q(d.store), ie = 0; re.length > ie; ) - C(re[ie++]); - a(a.S + a.F * !z, 'Symbol', { + for (var ie = Q(d.store), re = 0; ie.length > re; ) + C(ie[re++]); + s(s.S + s.F * !j, 'Symbol', { for: function(e) { - return i(k, (e += '')) - ? k[e] - : (k[e] = T(e)); + return r(G, (e += '')) + ? G[e] + : (G[e] = T(e)); }, keyFor: function(e) { if (!V(e)) throw TypeError( e + ' is not a symbol!' ); - for (var t in k) if (k[t] === e) return t; + for (var t in G) if (G[t] === e) return t; }, useSetter: function() { H = !0; @@ -80793,7 +79703,7 @@ H = !1; }, }), - a(a.S + a.F * !z, 'Object', { + s(s.S + s.F * !j, 'Object', { create: function(e, t) { return void 0 === t ? b(e) : Z(b(e), t); }, @@ -80806,16 +79716,16 @@ var oe = c(function() { N.f(1); }); - a(a.S + a.F * oe, 'Object', { + s(s.S + s.F * oe, 'Object', { getOwnPropertySymbols: function(e) { return N.f(E(e)); }, }), Y && - a( - a.S + - a.F * - (!z || + s( + s.S + + s.F * + (!j || c(function() { var e = T(); return ( @@ -80829,13 +79739,13 @@ { stringify: function(e) { for ( - var t, n, r = [e], i = 1; - arguments.length > i; + var t, n, i = [e], r = 1; + arguments.length > r; ) - r.push(arguments[i++]); + i.push(arguments[r++]); if ( - ((n = t = r[1]), + ((n = t = i[1]), (f(t) || void 0 !== e) && !V(e)) ) @@ -80857,8 +79767,8 @@ ) return t; }), - (r[1] = t), - R.apply(Y, r) + (i[1] = t), + R.apply(Y, i) ); }, } @@ -80867,14 +79777,14 @@ n(6)(T.prototype, U, T.prototype.valueOf), g(T, 'Symbol'), g(Math, 'Math', !0), - g(r.JSON, 'JSON', !0); + g(i.JSON, 'JSON', !0); }, function(e, t, n) { - var r = n(17)('meta'), - i = n(11), + var i = n(17)('meta'), + r = n(11), o = n(5), - a = n(7).f, - s = 0, + s = n(7).f, + a = 0, A = Object.isExtensible || function() { @@ -80884,39 +79794,39 @@ return A(Object.preventExtensions({})); }), l = function(e) { - a(e, r, {value: {i: 'O' + ++s, w: {}}}); + s(e, i, {value: {i: 'O' + ++a, w: {}}}); }, g = (e.exports = { - KEY: r, + KEY: i, NEED: !1, fastKey: function(e, t) { - if (!i(e)) + if (!r(e)) return 'symbol' == typeof e ? e : ('string' == typeof e ? 'S' : 'P') + e; - if (!o(e, r)) { + if (!o(e, i)) { if (!A(e)) return 'F'; if (!t) return 'E'; l(e); } - return e[r].i; + return e[i].i; }, getWeak: function(e, t) { - if (!o(e, r)) { + if (!o(e, i)) { if (!A(e)) return !0; if (!t) return !1; l(e); } - return e[r].w; + return e[i].w; }, onFreeze: function(e) { return ( c && g.NEED && A(e) && - !o(e, r) && + !o(e, i) && l(e), e ); @@ -80924,69 +79834,69 @@ }); }, function(e, t, n) { - var r = n(13), - i = n(32), + var i = n(13), + r = n(32), o = n(19); e.exports = function(e) { - var t = r(e), - n = i.f; + var t = i(e), + n = r.f; if (n) for ( - var a, s = n(e), A = o.f, c = 0; - s.length > c; + var s, a = n(e), A = o.f, c = 0; + a.length > c; ) - A.call(e, (a = s[c++])) && t.push(a); + A.call(e, (s = a[c++])) && t.push(s); return t; }; }, function(e, t, n) { - var r = n(24); + var i = n(24); e.exports = Array.isArray || function(e) { - return 'Array' == r(e); + return 'Array' == i(e); }; }, function(e, t, n) { - var r = n(9), - i = n(41).f, + var i = n(9), + r = n(41).f, o = {}.toString, - a = + s = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; e.exports.f = function(e) { - return a && '[object Window]' == o.call(e) + return s && '[object Window]' == o.call(e) ? (function(e) { try { - return i(e); + return r(e); } catch (e) { - return a.slice(); + return s.slice(); } })(e) - : i(r(e)); + : r(i(e)); }; }, function(e, t, n) { - var r = n(19), - i = n(16), + var i = n(19), + r = n(16), o = n(9), - a = n(23), - s = n(5), + s = n(23), + a = n(5), A = n(35), c = Object.getOwnPropertyDescriptor; t.f = n(4) ? c : function(e, t) { - if (((e = o(e)), (t = a(t, !0)), A)) + if (((e = o(e)), (t = s(t, !0)), A)) try { return c(e, t); } catch (e) {} - if (s(e, t)) - return i(!r.f.call(e, t), e[t]); + if (a(e, t)) + return r(!i.f.call(e, t), e[t]); }; }, function(e, t) {}, @@ -80999,21 +79909,21 @@ function(e, t, n) { 'use strict'; t.__esModule = !0; - var r, - i = - (r = n(77)) && r.__esModule - ? r - : {default: r}; + var i, + r = + (i = n(77)) && i.__esModule + ? i + : {default: i}; t.default = - i.default || + r.default || function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; - for (var r in n) + for (var i in n) Object.prototype.hasOwnProperty.call( n, - r - ) && (e[r] = n[r]); + i + ) && (e[i] = n[i]); } return e; }; @@ -81025,16 +79935,16 @@ n(79), (e.exports = n(1).Object.assign); }, function(e, t, n) { - var r = n(15); - r(r.S + r.F, 'Object', {assign: n(80)}); + var i = n(15); + i(i.S + i.F, 'Object', {assign: n(80)}); }, function(e, t, n) { 'use strict'; - var r = n(4), - i = n(13), + var i = n(4), + r = n(13), o = n(32), - a = n(19), - s = n(18), + s = n(19), + a = n(18), A = n(40), c = Object.assign; e.exports = @@ -81043,23 +79953,23 @@ var e = {}, t = {}, n = Symbol(), - r = 'abcdefghijklmnopqrst'; + i = 'abcdefghijklmnopqrst'; return ( (e[n] = 7), - r.split('').forEach(function(e) { + i.split('').forEach(function(e) { t[e] = e; }), 7 != c({}, e)[n] || - Object.keys(c({}, t)).join('') != r + Object.keys(c({}, t)).join('') != i ); }) ? function(e, t) { for ( - var n = s(e), + var n = a(e), c = arguments.length, l = 1, g = o.f, - u = a.f; + u = s.f; c > l; ) @@ -81067,15 +79977,15 @@ var d, h = A(arguments[l++]), C = g - ? i(h).concat(g(h)) - : i(h), + ? r(h).concat(g(h)) + : r(h), I = C.length, p = 0; I > p; ) (d = C[p++]), - (r && !u.call(h, d)) || + (i && !u.call(h, d)) || (n[d] = h[d]); return n; } @@ -81084,34 +79994,34 @@ function(e, t, n) { 'use strict'; t.__esModule = !0; - var r = o(n(82)), - i = o(n(85)); + var i = o(n(82)), + r = o(n(85)); function o(e) { return e && e.__esModule ? e : {default: e}; } t.default = function(e, t) { if (Array.isArray(e)) return e; - if ((0, r.default)(Object(e))) + if ((0, i.default)(Object(e))) return (function(e, t) { var n = [], - r = !0, + i = !0, o = !1, - a = void 0; + s = void 0; try { for ( - var s, A = (0, i.default)(e); - !(r = (s = A.next()).done) && - (n.push(s.value), + var a, A = (0, r.default)(e); + !(i = (a = A.next()).done) && + (n.push(a.value), !t || n.length !== t); - r = !0 + i = !0 ); } catch (e) { - (o = !0), (a = e); + (o = !0), (s = e); } finally { try { - !r && A.return && A.return(); + !i && A.return && A.return(); } finally { - if (o) throw a; + if (o) throw s; } } return n; @@ -81128,15 +80038,15 @@ n(29), n(20), (e.exports = n(84)); }, function(e, t, n) { - var r = n(42), - i = n(2)('iterator'), + var i = n(42), + r = n(2)('iterator'), o = n(12); e.exports = n(1).isIterable = function(e) { var t = Object(e); return ( - void 0 !== t[i] || + void 0 !== t[r] || '@@iterator' in t || - o.hasOwnProperty(r(t)) + o.hasOwnProperty(i(t)) ); }; }, @@ -81147,22 +80057,22 @@ n(29), n(20), (e.exports = n(87)); }, function(e, t, n) { - var r = n(10), - i = n(88); + var i = n(10), + r = n(88); e.exports = n(1).getIterator = function(e) { - var t = i(e); + var t = r(e); if ('function' != typeof t) throw TypeError(e + ' is not iterable!'); - return r(t.call(e)); + return i(t.call(e)); }; }, function(e, t, n) { - var r = n(42), - i = n(2)('iterator'), + var i = n(42), + r = n(2)('iterator'), o = n(12); e.exports = n(1).getIteratorMethod = function(e) { if (null != e) - return e[i] || e['@@iterator'] || o[r(e)]; + return e[r] || e['@@iterator'] || o[i(e)]; }; }, function(e, t, n) { @@ -81172,30 +80082,30 @@ n(91), (e.exports = n(1).Object.keys); }, function(e, t, n) { - var r = n(18), - i = n(13); + var i = n(18), + r = n(13); n(92)('keys', function() { return function(e) { - return i(r(e)); + return r(i(e)); }; }); }, function(e, t, n) { - var r = n(15), - i = n(1), + var i = n(15), + r = n(1), o = n(8); e.exports = function(e, t) { - var n = (i.Object || {})[e] || Object[e], - a = {}; - (a[e] = t(n)), - r( - r.S + - r.F * + var n = (r.Object || {})[e] || Object[e], + s = {}; + (s[e] = t(n)), + i( + i.S + + i.F * o(function() { n(1); }), 'Object', - a + s ); }; }, @@ -81212,11 +80122,11 @@ ['partialRight', 64], ['rearg', 256], ], - r = /^\s+|\s+$/g, - i = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + i = /^\s+|\s+$/g, + r = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, o = /\{\n\/\* \[wrapped with (.+)\] \*/, - a = /,? & /, - s = /^[-+]0x[0-9a-f]+$/i, + s = /,? & /, + a = /^[-+]0x[0-9a-f]+$/i, A = /^0b[01]+$/i, c = /^\[object .+?Constructor\]$/, l = /^0o[0-7]+$/i, @@ -81251,13 +80161,13 @@ !(!e || !e.length) && (function(e, t, n) { if (t != t) - return (function(e, t, n, r) { + return (function(e, t, n, i) { for ( - var i = e.length, + var r = e.length, o = n + - (r ? 1 : -1); - r ? o-- : ++o < i; + (i ? 1 : -1); + i ? o-- : ++o < r; ) if (t(e[o], o, e)) @@ -81265,11 +80175,11 @@ return -1; })(e, m, n); for ( - var r = n - 1, i = e.length; - ++r < i; + var i = n - 1, r = e.length; + ++i < r; ) - if (e[r] === t) return r; + if (e[i] === t) return i; return -1; })(e, t, 0) > -1 ); @@ -81278,21 +80188,21 @@ return e != e; } function f(e, t) { - for (var n = e.length, r = 0; n--; ) - e[n] === t && r++; - return r; + for (var n = e.length, i = 0; n--; ) + e[n] === t && i++; + return i; } function E(e, t) { for ( - var n = -1, r = e.length, i = 0, o = []; - ++n < r; + var n = -1, i = e.length, r = 0, o = []; + ++n < i; ) { - var a = e[n]; - (a !== t && - '__lodash_placeholder__' !== a) || + var s = e[n]; + (s !== t && + '__lodash_placeholder__' !== s) || ((e[n] = '__lodash_placeholder__'), - (o[i++] = n)); + (o[r++] = n)); } return o; } @@ -81300,17 +80210,17 @@ B, w, b = Function.prototype, - v = Object.prototype, - M = C['__core-js_shared__'], + M = Object.prototype, + v = C['__core-js_shared__'], N = (y = /[^.]+$/.exec( - (M && M.keys && M.keys.IE_PROTO) || '' + (v && v.keys && v.keys.IE_PROTO) || '' )) ? 'Symbol(src)_1.' + y : '', S = b.toString, - Q = v.hasOwnProperty, - F = v.toString, - x = RegExp( + Q = M.hasOwnProperty, + x = M.toString, + F = RegExp( '^' + S.call(Q) .replace( @@ -81343,7 +80253,7 @@ })(e) ) && ((function(e) { - var t = $(e) ? F.call(e) : ''; + var t = $(e) ? x.call(e) : ''; return ( '[object Function]' == t || '[object GeneratorFunction]' == @@ -81361,7 +80271,7 @@ } catch (e) {} return t; })(e) - ? x + ? F : c ).test( (function(e) { @@ -81378,46 +80288,46 @@ ) ); } - function O(e, t, n, r) { + function O(e, t, n, i) { for ( - var i = -1, + var r = -1, o = e.length, - a = n.length, - s = -1, + s = n.length, + a = -1, A = t.length, - c = T(o - a, 0), + c = T(o - s, 0), l = Array(A + c), - g = !r; - ++s < A; + g = !i; + ++a < A; ) - l[s] = t[s]; - for (; ++i < a; ) - (g || i < o) && (l[n[i]] = e[i]); - for (; c--; ) l[s++] = e[i++]; + l[a] = t[a]; + for (; ++r < s; ) + (g || r < o) && (l[n[r]] = e[r]); + for (; c--; ) l[a++] = e[r++]; return l; } - function k(e, t, n, r) { + function G(e, t, n, i) { for ( - var i = -1, + var r = -1, o = e.length, - a = -1, - s = n.length, + s = -1, + a = n.length, A = -1, c = t.length, - l = T(o - s, 0), + l = T(o - a, 0), g = Array(l + c), - u = !r; - ++i < l; + u = !i; + ++r < l; ) - g[i] = e[i]; - for (var d = i; ++A < c; ) g[d + A] = t[A]; - for (; ++a < s; ) - (u || i < o) && (g[d + n[a]] = e[i++]); + g[r] = e[r]; + for (var d = r; ++A < c; ) g[d + A] = t[A]; + for (; ++s < a; ) + (u || r < o) && (g[d + n[s]] = e[r++]); return g; } - function G(e) { + function L(e) { return function() { var t = arguments; switch (t.length) { @@ -81465,17 +80375,17 @@ ); } var n = _(e.prototype), - r = e.apply(n, t); - return $(r) ? r : n; + i = e.apply(n, t); + return $(i) ? i : n; }; } - function L(e, t, n, r, i, o, a, s, A, c) { + function k(e, t, n, i, r, o, s, a, A, c) { var l = 128 & t, g = 1 & t, u = 2 & t, d = 24 & t, h = 512 & t, - I = u ? void 0 : G(e); + I = u ? void 0 : L(e); return function p() { for ( var m = arguments.length, @@ -81489,85 +80399,85 @@ var w = P(p), b = f(y, w); if ( - (r && (y = O(y, r, i, d)), - o && (y = k(y, o, a, d)), + (i && (y = O(y, i, r, d)), + o && (y = G(y, o, s, d)), (m -= b), d && m < c) ) { - var v = E(y, w); - return j( + var M = E(y, w); + return z( e, t, - L, + k, p.placeholder, n, y, - v, - s, + M, + a, A, c - m ); } - var M = g ? n : this, - N = u ? M[e] : e; + var v = g ? n : this, + N = u ? v[e] : e; return ( (m = y.length), - s - ? (y = K(y, s)) + a + ? (y = K(y, a)) : h && m > 1 && y.reverse(), l && A < m && (y.length = A), this && this !== C && this instanceof p && - (N = I || G(N)), - N.apply(M, y) + (N = I || L(N)), + N.apply(v, y) ); }; } - function j(e, t, n, r, i, o, a, s, A, c) { + function z(e, t, n, i, r, o, s, a, A, c) { var l = 8 & t; (t |= l ? 32 : 64), 4 & (t &= ~(l ? 64 : 32)) || (t &= -4); var g = n( e, t, - i, + r, l ? o : void 0, - l ? a : void 0, + l ? s : void 0, l ? void 0 : o, - l ? void 0 : a, - s, + l ? void 0 : s, + a, A, c ); - return (g.placeholder = r), Z(g, e, t); + return (g.placeholder = i), Z(g, e, t); } - function z(e, t, n, r, i, o, a, s) { + function j(e, t, n, i, r, o, s, a) { var A = 2 & t; if (!A && 'function' != typeof e) throw new TypeError( 'Expected a function' ); - var c = r ? r.length : 0; + var c = i ? i.length : 0; if ( - (c || ((t &= -97), (r = i = void 0)), - (a = void 0 === a ? a : T(te(a), 0)), - (s = void 0 === s ? s : te(s)), - (c -= i ? i.length : 0), + (c || ((t &= -97), (i = r = void 0)), + (s = void 0 === s ? s : T(te(s), 0)), + (a = void 0 === a ? a : te(a)), + (c -= r ? r.length : 0), 64 & t) ) { - var l = r, - g = i; - r = i = void 0; + var l = i, + g = r; + i = r = void 0; } - var u = [e, t, n, r, i, l, g, o, a, s]; + var u = [e, t, n, i, r, l, g, o, s, a]; if ( ((e = u[0]), (t = u[1]), (n = u[2]), - (r = u[3]), - (i = u[4]), - !(s = u[9] = + (i = u[3]), + (r = u[4]), + !(a = u[9] = null == u[9] ? A ? 0 @@ -81580,34 +80490,34 @@ d = 8 == t || 16 == t ? (function(e, t, n) { - var r = G(e); - return function i() { + var i = L(e); + return function r() { for ( var o = arguments.length, - a = Array(o), - s = o, - A = P(i); - s--; + s = Array(o), + a = o, + A = P(r); + a--; ) - a[s] = - arguments[s]; + s[a] = + arguments[a]; var c = o < 3 && - a[0] !== A && - a[o - 1] !== A + s[0] !== A && + s[o - 1] !== A ? [] - : E(a, A); + : E(s, A); return (o -= c.length) < n - ? j( + ? z( e, t, - L, - i.placeholder, + k, + r.placeholder, void 0, - a, + s, c, void 0, void 0, @@ -81618,29 +80528,29 @@ this !== C && this instanceof - i - ? r + r + ? i : e, this, - a + s ); }; - })(e, t, s) + })(e, t, a) : (32 != t && 33 != t) || - i.length - ? L.apply(void 0, u) - : (function(e, t, n, r) { - var i = 1 & t, - o = G(e); + r.length + ? k.apply(void 0, u) + : (function(e, t, n, i) { + var r = 1 & t, + o = L(e); return function t() { for ( - var a = -1, - s = + var s = -1, + a = arguments.length, A = -1, - c = r.length, + c = i.length, l = Array( - c + s + c + a ), g = this && @@ -81653,31 +80563,31 @@ ++A < c; ) - l[A] = r[A]; - for (; s--; ) + l[A] = i[A]; + for (; a--; ) l[A++] = arguments[ - ++a + ++s ]; return I( g, - i ? n : this, + r ? n : this, l ); }; - })(e, t, n, r); + })(e, t, n, i); else var d = (function(e, t, n) { - var r = 1 & t, - i = G(e); + var i = 1 & t, + r = L(e); return function t() { return (this && this !== C && this instanceof t - ? i + ? r : e ).apply( - r ? n : this, + i ? n : this, arguments ); }; @@ -81695,16 +80605,16 @@ } function J(e) { var t = e.match(o); - return t ? t[1].split(a) : []; + return t ? t[1].split(s) : []; } function W(e, t) { var n = t.length, - r = n - 1; + i = n - 1; return ( - (t[r] = (n > 1 ? '& ' : '') + t[r]), + (t[i] = (n > 1 ? '& ' : '') + t[i]), (t = t.join(n > 2 ? ', ' : ' ')), e.replace( - i, + r, '{\n/* [wrapped with ' + t + '] */\n' @@ -81724,37 +80634,37 @@ function K(e, t) { for ( var n = e.length, - r = Y(t.length, n), - i = (function(e, t) { + i = Y(t.length, n), + r = (function(e, t) { var n = -1, - r = e.length; + i = e.length; for ( - t || (t = Array(r)); - ++n < r; + t || (t = Array(i)); + ++n < i; ) t[n] = e[n]; return t; })(e); - r--; + i--; ) { - var o = t[r]; - e[r] = V(o, n) ? i[o] : void 0; + var o = t[i]; + e[i] = V(o, n) ? r[o] : void 0; } return e; } var Z = R ? function(e, t, n) { - var r, - i = t + ''; + var i, + r = t + ''; return R(e, 'toString', { configurable: !0, enumerable: !1, value: - ((r = W(i, X(J(i), n))), + ((i = W(r, X(J(r), n))), function() { - return r; + return i; }), }); } @@ -81766,19 +80676,19 @@ (function(e, t) { for ( var n = -1, - r = e ? e.length : 0; - ++n < r && !1 !== t(e[n], n, e); + i = e ? e.length : 0; + ++n < i && !1 !== t(e[n], n, e); ); })(n, function(n) { - var r = '_.' + n[0]; - t & n[1] && !p(e, r) && e.push(r); + var i = '_.' + n[0]; + t & n[1] && !p(e, i) && e.push(i); }), e.sort() ); } function q(e, t, n) { - var r = z( + var i = j( e, 8, void 0, @@ -81788,7 +80698,7 @@ void 0, (t = n ? void 0 : t) ); - return (r.placeholder = q.placeholder), r; + return (i.placeholder = q.placeholder), i; } function $(e) { var t = typeof e; @@ -81815,7 +80725,7 @@ ); })(e) && '[object Symbol]' == - F.call(e)) + x.call(e)) ); })(e) ) @@ -81830,11 +80740,11 @@ } if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(r, ''); + e = e.replace(i, ''); var n = A.test(e); return n || l.test(e) ? u(e.slice(2), n ? 2 : 8) - : s.test(e) + : a.test(e) ? NaN : +e; })(e)) === @@ -81858,84 +80768,84 @@ }, function(e, t, n) { 'use strict'; - function r(e) { + function i(e) { return e && e.__esModule ? e.default : e; } t.__esModule = !0; - var i = n(95); - t.threezerotwofour = r(i); + var r = n(95); + t.threezerotwofour = i(r); var o = n(96); - t.apathy = r(o); - var a = n(97); - t.ashes = r(a); - var s = n(98); - t.atelierDune = r(s); + t.apathy = i(o); + var s = n(97); + t.ashes = i(s); + var a = n(98); + t.atelierDune = i(a); var A = n(99); - t.atelierForest = r(A); + t.atelierForest = i(A); var c = n(100); - t.atelierHeath = r(c); + t.atelierHeath = i(c); var l = n(101); - t.atelierLakeside = r(l); + t.atelierLakeside = i(l); var g = n(102); - t.atelierSeaside = r(g); + t.atelierSeaside = i(g); var u = n(103); - t.bespin = r(u); + t.bespin = i(u); var d = n(104); - t.brewer = r(d); + t.brewer = i(d); var h = n(105); - t.bright = r(h); + t.bright = i(h); var C = n(106); - t.chalk = r(C); + t.chalk = i(C); var I = n(107); - t.codeschool = r(I); + t.codeschool = i(I); var p = n(108); - t.colors = r(p); + t.colors = i(p); var m = n(109); - t.default = r(m); + t.default = i(m); var f = n(110); - t.eighties = r(f); + t.eighties = i(f); var E = n(111); - t.embers = r(E); + t.embers = i(E); var y = n(112); - t.flat = r(y); + t.flat = i(y); var B = n(113); - t.google = r(B); + t.google = i(B); var w = n(114); - t.grayscale = r(w); + t.grayscale = i(w); var b = n(115); - t.greenscreen = r(b); - var v = n(116); - t.harmonic = r(v); - var M = n(117); - t.hopscotch = r(M); + t.greenscreen = i(b); + var M = n(116); + t.harmonic = i(M); + var v = n(117); + t.hopscotch = i(v); var N = n(118); - t.isotope = r(N); + t.isotope = i(N); var S = n(119); - t.marrakesh = r(S); + t.marrakesh = i(S); var Q = n(120); - t.mocha = r(Q); - var F = n(121); - t.monokai = r(F); - var x = n(122); - t.ocean = r(x); + t.mocha = i(Q); + var x = n(121); + t.monokai = i(x); + var F = n(122); + t.ocean = i(F); var D = n(123); - t.paraiso = r(D); + t.paraiso = i(D); var T = n(124); - t.pop = r(T); + t.pop = i(T); var Y = n(125); - t.railscasts = r(Y); + t.railscasts = i(Y); var R = n(126); - t.shapeshifter = r(R); + t.shapeshifter = i(R); var _ = n(127); - t.solarized = r(_); + t.solarized = i(_); var U = n(128); - t.summerfruit = r(U); + t.summerfruit = i(U); var O = n(129); - t.tomorrow = r(O); - var k = n(130); - t.tube = r(k); - var G = n(131); - t.twilight = r(G); + t.tomorrow = i(O); + var G = n(130); + t.tube = i(G); + var L = n(131); + t.twilight = i(L); }, function(e, t, n) { 'use strict'; @@ -82892,26 +81802,26 @@ (e.exports = t.default); }, function(e, t, n) { - var r = n(33); - function i(e) { - var t = Math.round(r(e, 0, 255)).toString(16); + var i = n(33); + function r(e) { + var t = Math.round(i(e, 0, 255)).toString(16); return 1 == t.length ? '0' + t : t; } e.exports = function(e) { - var t = 4 === e.length ? i(255 * e[3]) : ''; - return '#' + i(e[0]) + i(e[1]) + i(e[2]) + t; + var t = 4 === e.length ? r(255 * e[3]) : ''; + return '#' + r(e[0]) + r(e[1]) + r(e[2]) + t; }; }, function(e, t, n) { - var r = n(134), - i = n(135), + var i = n(134), + r = n(135), o = n(136), - a = n(137), - s = { - '#': i, + s = n(137), + a = { + '#': r, hsl: function(e) { - var t = r(e), - n = a(t); + var t = i(e), + n = s(t); return ( 4 === t.length && n.push(t[3]), n ); @@ -82919,30 +81829,30 @@ rgb: o, }; function A(e) { - for (var t in s) - if (0 === e.indexOf(t)) return s[t](e); + for (var t in a) + if (0 === e.indexOf(t)) return a[t](e); } (A.rgb = o), - (A.hsl = r), - (A.hex = i), + (A.hsl = i), + (A.hex = r), (e.exports = A); }, function(e, t, n) { - var r = n(44), - i = n(33); + var i = n(44), + r = n(33); function o(e, t) { switch (((e = parseFloat(e)), t)) { case 0: - return i(e, 0, 360); + return r(e, 0, 360); case 1: case 2: - return i(e, 0, 100); + return r(e, 0, 100); case 3: - return i(e, 0, 1); + return r(e, 0, 1); } } e.exports = function(e) { - return r(e).map(o); + return i(e).map(o); }; }, function(e, t) { @@ -82954,8 +81864,8 @@ n < e.length; n++ ) { - var r = e.charAt(n); - t += r + r; + var i = e.charAt(n); + t += i + i; } return t; })(e)); @@ -82977,52 +81887,52 @@ }; }, function(e, t, n) { - var r = n(44), - i = n(33); + var i = n(44), + r = n(33); function o(e, t) { return t < 3 ? -1 != e.indexOf('%') ? Math.round( (255 * - i(parseInt(e, 10), 0, 100)) / + r(parseInt(e, 10), 0, 100)) / 100 ) - : i(parseInt(e, 10), 0, 255) - : i(parseFloat(e), 0, 1); + : r(parseInt(e, 10), 0, 255) + : r(parseFloat(e), 0, 1); } e.exports = function(e) { - return r(e).map(o); + return i(e).map(o); }; }, function(e, t) { e.exports = function(e) { var t, n, - r, i, + r, o, - a = e[0] / 360, - s = e[1] / 100, + s = e[0] / 360, + a = e[1] / 100, A = e[2] / 100; - if (0 == s) return [(o = 255 * A), o, o]; + if (0 == a) return [(o = 255 * A), o, o]; (t = 2 * A - (n = - A < 0.5 ? A * (1 + s) : A + s - A * s)), - (i = [0, 0, 0]); + A < 0.5 ? A * (1 + a) : A + a - A * a)), + (r = [0, 0, 0]); for (var c = 0; c < 3; c++) - (r = a + (1 / 3) * -(c - 1)) < 0 && r++, - r > 1 && r--, + (i = s + (1 / 3) * -(c - 1)) < 0 && i++, + i > 1 && i--, (o = - 6 * r < 1 - ? t + 6 * (n - t) * r - : 2 * r < 1 + 6 * i < 1 + ? t + 6 * (n - t) * i + : 2 * i < 1 ? n - : 3 * r < 2 - ? t + (n - t) * (2 / 3 - r) * 6 + : 3 * i < 2 + ? t + (n - t) * (2 / 3 - i) * 6 : t), - (i[c] = 255 * o); - return i; + (r[c] = 255 * o); + return r; }; }, function(e, t, n) { @@ -83032,12 +81942,12 @@ t && t.Object === Object && t, - r = + i = 'object' == typeof self && self && self.Object === Object && self, - i = n || r || Function('return this')(); + r = n || i || Function('return this')(); function o(e, t, n) { switch (n.length) { case 0: @@ -83051,20 +81961,20 @@ } return e.apply(t, n); } - function a(e, t) { + function s(e, t) { for ( - var n = -1, r = t.length, i = e.length; - ++n < r; + var n = -1, i = t.length, r = e.length; + ++n < i; ) - e[i + n] = t[n]; + e[r + n] = t[n]; return e; } - var s = Object.prototype, - A = s.hasOwnProperty, - c = s.toString, - l = i.Symbol, - g = s.propertyIsEnumerable, + var a = Object.prototype, + A = a.hasOwnProperty, + c = a.toString, + l = r.Symbol, + g = a.propertyIsEnumerable, u = l ? l.isConcatSpreadable : void 0, d = Math.max; function h(e) { @@ -83142,30 +82052,30 @@ var t = (e = (function e( t, n, - r, i, + r, o ) { - var s = -1, + var a = -1, A = t.length; for ( - r || (r = h), + i || (i = h), o || (o = []); - ++s < A; + ++a < A; ) { - var c = t[s]; - n > 0 && r(c) + var c = t[a]; + n > 0 && i(c) ? n > 1 ? e( c, n - 1, - r, i, + r, o ) - : a(o, c) - : i || + : s(o, c) + : r || (o[o.length] = c); } return o; @@ -83179,7 +82089,7 @@ return function() { for ( var n = 0, - r = t + i = t ? e[n].apply( this, arguments @@ -83188,8 +82098,8 @@ ++n < t; ) - r = e[n].call(this, r); - return r; + i = e[n].call(this, i); + return i; }; }), (p = d( @@ -83201,19 +82111,19 @@ var e = arguments, t = -1, n = d(e.length - p, 0), - r = Array(n); + i = Array(n); ++t < n; ) - r[t] = e[p + t]; + i[t] = e[p + t]; t = -1; for ( - var i = Array(p + 1); + var r = Array(p + 1); ++t < p; ) - i[t] = e[t]; - return (i[p] = r), o(I, this, i); + r[t] = e[t]; + return (r[p] = i), o(I, this, r); }); e.exports = f; }.call(this, n(43))); @@ -83224,15 +82134,15 @@ (t.yuv2rgb = function(e) { var t, n, - r, - i = e[0], + i, + r = e[0], o = e[1], - a = e[2]; + s = e[2]; return ( - (t = 1 * i + 0 * o + 1.13983 * a), + (t = 1 * r + 0 * o + 1.13983 * s), (n = - 1 * i + -0.39465 * o + -0.5806 * a), - (r = 1 * i + 2.02311 * o + 0 * a), + 1 * r + -0.39465 * o + -0.5806 * s), + (i = 1 * r + 2.02311 * o + 0 * s), [ 255 * (t = Math.min( @@ -83245,8 +82155,8 @@ 1 )), 255 * - (r = Math.min( - Math.max(0, r), + (i = Math.min( + Math.max(0, i), 1 )), ] @@ -83255,17 +82165,17 @@ (t.rgb2yuv = function(e) { var t = e[0] / 255, n = e[1] / 255, - r = e[2] / 255; + i = e[2] / 255; return [ - 0.299 * t + 0.587 * n + 0.114 * r, - -0.14713 * t + -0.28886 * n + 0.436 * r, - 0.615 * t + -0.51499 * n + -0.10001 * r, + 0.299 * t + 0.587 * n + 0.114 * i, + -0.14713 * t + -0.28886 * n + 0.436 * i, + 0.615 * t + -0.51499 * n + -0.10001 * i, ]; }); }, function(e, t, n) { 'use strict'; - function r(e, t, n) { + function i(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -83278,15 +82188,15 @@ e ); } - var i = n(141), + var r = n(141), o = (function() { function e() { - r(this, '_callbacks', void 0), - r(this, '_isDispatching', void 0), - r(this, '_isHandled', void 0), - r(this, '_isPending', void 0), - r(this, '_lastID', void 0), - r(this, '_pendingPayload', void 0), + i(this, '_callbacks', void 0), + i(this, '_isDispatching', void 0), + i(this, '_isHandled', void 0), + i(this, '_isPending', void 0), + i(this, '_lastID', void 0), + i(this, '_pendingPayload', void 0), (this._callbacks = {}), (this._isDispatching = !1), (this._isHandled = {}), @@ -83300,23 +82210,23 @@ return (this._callbacks[t] = e), t; }), (t.unregister = function(e) { - this._callbacks[e] || i(!1), + this._callbacks[e] || r(!1), delete this._callbacks[e]; }), (t.waitFor = function(e) { - this._isDispatching || i(!1); + this._isDispatching || r(!1); for (var t = 0; t < e.length; t++) { var n = e[t]; this._isPending[n] ? this._isHandled[n] || - i(!1) + r(!1) : (this._callbacks[n] || - i(!1), + r(!1), this._invokeCallback(n)); } }), (t.dispatch = function(e) { - this._isDispatching && i(!1), + this._isDispatching && r(!1), this._startDispatching(e); try { for (var t in this._callbacks) @@ -83354,37 +82264,37 @@ }, function(e, t, n) { 'use strict'; - var r = function(e) {}; + var i = function(e) {}; e.exports = function(e, t) { for ( var n = arguments.length, - i = new Array(n > 2 ? n - 2 : 0), + r = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++ ) - i[o - 2] = arguments[o]; - if ((r(t), !e)) { - var a; + r[o - 2] = arguments[o]; + if ((i(t), !e)) { + var s; if (void 0 === t) - a = new Error( + s = new Error( 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' ); else { - var s = 0; - (a = new Error( + var a = 0; + (s = new Error( t.replace(/%s/g, function() { - return String(i[s++]); + return String(r[a++]); }) )).name = 'Invariant Violation'; } - throw ((a.framesToPop = 1), a); + throw ((s.framesToPop = 1), s); } }; }, function(e, t, n) { 'use strict'; - function r(e, t, n) { + function i(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -83397,18 +82307,18 @@ e ); } - function i(e, t) { + function r(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); + var i = Object.getOwnPropertySymbols(e); t && - (r = r.filter(function(t) { + (i = i.filter(function(t) { return Object.getOwnPropertyDescriptor( e, t ).enumerable; })), - n.push.apply(n, r); + n.push.apply(n, i); } return n; } @@ -83419,8 +82329,8 @@ ? arguments[t] : {}; t % 2 - ? i(Object(n), !0).forEach(function(t) { - r(e, t, n[t]); + ? r(Object(n), !0).forEach(function(t) { + i(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( @@ -83429,7 +82339,7 @@ n ) ) - : i(Object(n)).forEach(function(t) { + : r(Object(n)).forEach(function(t) { Object.defineProperty( e, t, @@ -83442,23 +82352,23 @@ } return e; } - function a(e, t) { + function s(e, t) { if (!(e instanceof t)) throw new TypeError( 'Cannot call a class as a function' ); } - function s(e, t) { + function a(e, t) { for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + var i = t[n]; + (i.enumerable = i.enumerable || !1), + (i.configurable = !0), + 'value' in i && (i.writable = !0), + Object.defineProperty(e, i.key, i); } } function A(e, t, n) { - return t && s(e.prototype, t), n && s(e, n), e; + return t && a(e.prototype, t), n && a(e, n), e; } function c(e, t) { return (c = @@ -83547,11 +82457,11 @@ })(); return function() { var n, - r = g(e); + i = g(e); if (t) { - var i = g(this).constructor; - n = Reflect.construct(r, arguments, i); - } else n = r.apply(this, arguments); + var r = g(this).constructor; + n = Reflect.construct(i, arguments, r); + } else n = i.apply(this, arguments); return h(this, n); }; } @@ -83579,16 +82489,16 @@ function E(e, t) { try { var n = this.props, - r = this.state; + i = this.state; (this.props = e), (this.state = t), (this.__reactInternalSnapshotFlag = !0), (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( n, - r + i )); } finally { - (this.props = n), (this.state = r); + (this.props = n), (this.state = i); } } function y(e) { @@ -83605,8 +82515,8 @@ ) return e; var n = null, - r = null, - i = null; + i = null, + r = null; if ( ('function' == typeof t.componentWillMount ? (n = 'componentWillMount') @@ -83615,20 +82525,20 @@ (n = 'UNSAFE_componentWillMount'), 'function' == typeof t.componentWillReceiveProps - ? (r = 'componentWillReceiveProps') + ? (i = 'componentWillReceiveProps') : 'function' == typeof t.UNSAFE_componentWillReceiveProps && - (r = + (i = 'UNSAFE_componentWillReceiveProps'), 'function' == typeof t.componentWillUpdate - ? (i = 'componentWillUpdate') + ? (r = 'componentWillUpdate') : 'function' == typeof t.UNSAFE_componentWillUpdate && - (i = 'UNSAFE_componentWillUpdate'), - null !== n || null !== r || null !== i) + (r = 'UNSAFE_componentWillUpdate'), + null !== n || null !== i || null !== r) ) { var o = e.displayName || e.name, - a = + s = 'function' == typeof e.getDerivedStateFromProps ? 'getDerivedStateFromProps()' @@ -83637,11 +82547,11 @@ 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + o + ' uses ' + - a + + s + ' but also contains the following legacy lifecycles:' + (null !== n ? '\n ' + n : '') + - (null !== r ? '\n ' + r : '') + (null !== i ? '\n ' + i : '') + + (null !== r ? '\n ' + r : '') + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks' ); } @@ -83661,12 +82571,12 @@ 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' ); t.componentWillUpdate = E; - var s = t.componentDidUpdate; + var a = t.componentDidUpdate; t.componentDidUpdate = function(e, t, n) { - var r = this.__reactInternalSnapshotFlag + var i = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : n; - s.call(this, e, t, r); + a.call(this, e, t, i); }; } return e; @@ -83674,31 +82584,31 @@ function B(e, t) { if (null == e) return {}; var n, - r, - i = (function(e, t) { + i, + r = (function(e, t) { if (null == e) return {}; var n, - r, - i = {}, + i, + r = {}, o = Object.keys(e); - for (r = 0; r < o.length; r++) - (n = o[r]), + for (i = 0; i < o.length; i++) + (n = o[i]), t.indexOf(n) >= 0 || - (i[n] = e[n]); - return i; + (r[n] = e[n]); + return r; })(e, t); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); - for (r = 0; r < o.length; r++) - (n = o[r]), + for (i = 0; i < o.length; i++) + (n = o[i]), t.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call( e, n ) && - (i[n] = e[n])); + (r[n] = e[n])); } - return i; + return r; } function w(e) { var t = (function(e) { @@ -83740,7 +82650,7 @@ base0E: '#2aa198', base0F: '#268bd2', }, - v = { + M = { scheme: 'rjv-grey', author: 'mac gainor', base00: 'rgba(1, 1, 1, 0)', @@ -83760,7 +82670,7 @@ base0E: 'rgba(1, 1, 1, 0.8)', base0F: 'rgba(1, 1, 1, 0.8)', }, - M = { + v = { white: '#fff', black: '#000', transparent: 'rgba(1, 1, 1, 0)', @@ -83885,17 +82795,17 @@ })(e); return { 'app-container': { - fontFamily: M.globalFontFamily, - cursor: M.globalCursor, + fontFamily: v.globalFontFamily, + cursor: v.globalCursor, backgroundColor: t.backgroundColor, position: 'relative', }, ellipsis: { display: 'inline-block', color: t.ellipsisColor, - fontSize: M.ellipsisFontSize, - lineHeight: M.ellipsisLineHeight, - cursor: M.ellipsisCursor, + fontSize: v.ellipsisFontSize, + lineHeight: v.ellipsisLineHeight, + cursor: v.ellipsisCursor, }, 'brace-row': { display: 'inline-block', @@ -83903,8 +82813,8 @@ }, brace: { display: 'inline-block', - cursor: M.braceCursor, - fontWeight: M.braceFontWeight, + cursor: v.braceCursor, + fontWeight: v.braceFontWeight, color: t.braceColor, }, 'expanded-icon': { @@ -83915,7 +82825,7 @@ }, colon: { display: 'inline-block', - margin: M.keyMargin, + margin: v.keyMargin, color: t.keyColor, verticalAlign: 'top', }, @@ -83924,13 +82834,13 @@ style: o( { paddingTop: - M.keyValPaddingTop, + v.keyValPaddingTop, paddingRight: - M.keyValPaddingRight, + v.keyValPaddingRight, paddingBottom: - M.keyValPaddingBottom, + v.keyValPaddingBottom, borderLeft: - M.keyValBorderLeft + + v.keyValBorderLeft + ' ' + t.objectBorder, ':hover': { @@ -83939,7 +82849,7 @@ 1 + 'px', borderLeft: - M.keyValBorderHover + + v.keyValBorderHover + ' ' + t.objectBorder, }, @@ -83949,11 +82859,11 @@ }; }, 'object-key-val-no-border': { - padding: M.keyValPadding, + padding: v.keyValPadding, }, 'pushed-content': { marginLeft: - M.pushedContentMarginLeft, + v.pushedContentMarginLeft, }, variableValue: function(e, t) { return { @@ -83961,7 +82871,7 @@ { display: 'inline-block', paddingRight: - M.variableValuePaddingRight, + v.variableValuePaddingRight, position: 'relative', }, t @@ -83971,37 +82881,37 @@ 'object-name': { display: 'inline-block', color: t.keyColor, - letterSpacing: M.keyLetterSpacing, - fontStyle: M.keyFontStyle, - verticalAlign: M.keyVerticalAlign, - opacity: M.keyOpacity, + letterSpacing: v.keyLetterSpacing, + fontStyle: v.keyFontStyle, + verticalAlign: v.keyVerticalAlign, + opacity: v.keyOpacity, ':hover': { - opacity: M.keyOpacityHover, + opacity: v.keyOpacityHover, }, }, 'array-key': { display: 'inline-block', color: t.arrayKeyColor, - letterSpacing: M.keyLetterSpacing, - fontStyle: M.keyFontStyle, - verticalAlign: M.keyVerticalAlign, - opacity: M.keyOpacity, + letterSpacing: v.keyLetterSpacing, + fontStyle: v.keyFontStyle, + verticalAlign: v.keyVerticalAlign, + opacity: v.keyOpacity, ':hover': { - opacity: M.keyOpacityHover, + opacity: v.keyOpacityHover, }, }, 'object-size': { color: t.objectSize, borderRadius: - M.objectSizeBorderRadius, - fontStyle: M.objectSizeFontStyle, - margin: M.objectSizeMargin, + v.objectSizeBorderRadius, + fontStyle: v.objectSizeFontStyle, + margin: v.objectSizeMargin, cursor: 'default', }, 'data-type-label': { - fontSize: M.dataTypeFontSize, - marginRight: M.dataTypeMarginRight, - opacity: M.datatypeOpacity, + fontSize: v.dataTypeFontSize, + marginRight: v.dataTypeMarginRight, + opacity: v.datatypeOpacity, }, boolean: { display: 'inline-block', @@ -84012,7 +82922,7 @@ color: t.dataTypes.date, }, 'date-value': { - marginLeft: M.dateValueMarginLeft, + marginLeft: v.dateValueMarginLeft, }, float: { display: 'inline-block', @@ -84036,30 +82946,30 @@ nan: { display: 'inline-block', color: t.dataTypes.nan, - fontSize: M.nanFontSize, - fontWeight: M.nanFontWeight, + fontSize: v.nanFontSize, + fontWeight: v.nanFontWeight, backgroundColor: t.dataTypes.background, - padding: M.nanPadding, - borderRadius: M.nanBorderRadius, + padding: v.nanPadding, + borderRadius: v.nanBorderRadius, }, null: { display: 'inline-block', color: t.dataTypes.null, - fontSize: M.nullFontSize, - fontWeight: M.nullFontWeight, + fontSize: v.nullFontSize, + fontWeight: v.nullFontWeight, backgroundColor: t.dataTypes.background, - padding: M.nullPadding, - borderRadius: M.nullBorderRadius, + padding: v.nullPadding, + borderRadius: v.nullBorderRadius, }, undefined: { display: 'inline-block', color: t.dataTypes.undefined, - fontSize: M.undefinedFontSize, - padding: M.undefinedPadding, + fontSize: v.undefinedFontSize, + padding: v.undefinedPadding, borderRadius: - M.undefinedBorderRadius, + v.undefinedBorderRadius, backgroundColor: t.dataTypes.background, }, @@ -84068,55 +82978,55 @@ color: t.dataTypes.regexp, }, 'copy-to-clipboard': { - cursor: M.clipboardCursor, + cursor: v.clipboardCursor, }, 'copy-icon': { color: t.copyToClipboard, - fontSize: M.iconFontSize, - marginRight: M.iconMarginRight, + fontSize: v.iconFontSize, + marginRight: v.iconMarginRight, verticalAlign: 'top', }, 'copy-icon-copied': { color: t.copyToClipboardCheck, marginLeft: - M.clipboardCheckMarginLeft, + v.clipboardCheckMarginLeft, }, 'array-group-meta-data': { display: 'inline-block', - padding: M.arrayGroupMetaPadding, + padding: v.arrayGroupMetaPadding, }, 'object-meta-data': { display: 'inline-block', - padding: M.metaDataPadding, + padding: v.metaDataPadding, }, 'icon-container': { display: 'inline-block', - width: M.iconContainerWidth, + width: v.iconContainerWidth, }, - tooltip: {padding: M.tooltipPadding}, + tooltip: {padding: v.tooltipPadding}, removeVarIcon: { verticalAlign: 'top', display: 'inline-block', color: t.editVariable.removeIcon, - cursor: M.iconCursor, - fontSize: M.iconFontSize, - marginRight: M.iconMarginRight, + cursor: v.iconCursor, + fontSize: v.iconFontSize, + marginRight: v.iconMarginRight, }, addVarIcon: { verticalAlign: 'top', display: 'inline-block', color: t.editVariable.addIcon, - cursor: M.iconCursor, - fontSize: M.iconFontSize, - marginRight: M.iconMarginRight, + cursor: v.iconCursor, + fontSize: v.iconFontSize, + marginRight: v.iconMarginRight, }, editVarIcon: { verticalAlign: 'top', display: 'inline-block', color: t.editVariable.editIcon, - cursor: M.iconCursor, - fontSize: M.iconFontSize, - marginRight: M.iconMarginRight, + cursor: v.iconCursor, + fontSize: v.iconFontSize, + marginRight: v.iconMarginRight, }, 'edit-icon-container': { display: 'inline-block', @@ -84124,50 +83034,50 @@ }, 'check-icon': { display: 'inline-block', - cursor: M.iconCursor, + cursor: v.iconCursor, color: t.editVariable.checkIcon, - fontSize: M.iconFontSize, - paddingRight: M.iconPaddingRight, + fontSize: v.iconFontSize, + paddingRight: v.iconPaddingRight, }, 'cancel-icon': { display: 'inline-block', - cursor: M.iconCursor, + cursor: v.iconCursor, color: t.editVariable.cancelIcon, - fontSize: M.iconFontSize, - paddingRight: M.iconPaddingRight, + fontSize: v.iconFontSize, + paddingRight: v.iconPaddingRight, }, 'edit-input': { display: 'inline-block', - minWidth: M.editInputMinWidth, + minWidth: v.editInputMinWidth, borderRadius: - M.editInputBorderRadius, + v.editInputBorderRadius, backgroundColor: t.editVariable.background, color: t.editVariable.color, - padding: M.editInputPadding, - marginRight: M.editInputMarginRight, - fontFamily: M.editInputFontFamily, + padding: v.editInputPadding, + marginRight: v.editInputMarginRight, + fontFamily: v.editInputFontFamily, }, 'detected-row': { - paddingTop: M.detectedRowPaddingTop, + paddingTop: v.detectedRowPaddingTop, }, 'key-modal-request': { - position: M.addKeyCoverPosition, - top: M.addKeyCoverPositionPx, - left: M.addKeyCoverPositionPx, - right: M.addKeyCoverPositionPx, - bottom: M.addKeyCoverPositionPx, + position: v.addKeyCoverPosition, + top: v.addKeyCoverPositionPx, + left: v.addKeyCoverPositionPx, + right: v.addKeyCoverPositionPx, + bottom: v.addKeyCoverPositionPx, backgroundColor: - M.addKeyCoverBackground, + v.addKeyCoverBackground, }, 'key-modal': { - width: M.addKeyModalWidth, + width: v.addKeyModalWidth, backgroundColor: t.addKeyModal.background, - marginLeft: M.addKeyModalMargin, - marginRight: M.addKeyModalMargin, - padding: M.addKeyModalPadding, - borderRadius: M.addKeyModalRadius, + marginLeft: v.addKeyModalMargin, + marginRight: v.addKeyModalMargin, + padding: v.addKeyModalPadding, + borderRadius: v.addKeyModalRadius, marginTop: '15px', position: 'relative', }, @@ -84200,12 +83110,12 @@ }, 'key-modal-cancel-icon': { color: t.addKeyModal.labelColor, - fontSize: M.iconFontSize, + fontSize: v.iconFontSize, transform: 'rotate(45deg)', }, 'key-modal-submit': { color: t.editVariable.addIcon, - fontSize: M.iconFontSize, + fontSize: v.iconFontSize, position: 'absolute', right: '2px', top: '3px', @@ -84214,9 +83124,9 @@ 'function-ellipsis': { display: 'inline-block', color: t.ellipsisColor, - fontSize: M.ellipsisFontSize, - lineHeight: M.ellipsisLineHeight, - cursor: M.ellipsisCursor, + fontSize: v.ellipsisFontSize, + lineHeight: v.ellipsisLineHeight, + cursor: v.ellipsisCursor, }, 'validation-failure': { float: 'right', @@ -84237,7 +83147,7 @@ cursor: 'pointer', color: t.validationFailure.iconColor, - fontSize: M.iconFontSize, + fontSize: v.iconFontSize, transform: 'rotate(45deg)', }, }; @@ -84250,7 +83160,7 @@ var t = b; return ( (!1 !== e && 'none' !== e) || - (t = v), + (t = M), Object(N.createStyling)(S, { defaultBase16: t, })(e) @@ -84258,12 +83168,12 @@ })(e)(t, n) ); } - var F = (function(e) { + var x = (function(e) { l(n, e); var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84276,7 +83186,7 @@ (e.rjvId, e.type_name), n = e.displayDataTypes, - r = e.theme; + i = e.theme; return n ? p.a.createElement( 'span', @@ -84286,7 +83196,7 @@ 'data-type-label', }, Q( - r, + i, 'data-type-label' ) ), @@ -84299,12 +83209,12 @@ n ); })(p.a.PureComponent), - x = (function(e) { + F = (function(e) { l(n, e); var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84317,7 +83227,7 @@ 'div', Q(e.theme, 'boolean'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84341,7 +83251,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84354,7 +83264,7 @@ 'div', Q(e.theme, 'date'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84405,7 +83315,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84418,7 +83328,7 @@ 'div', Q(e.theme, 'float'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84437,9 +83347,9 @@ })(p.a.PureComponent); function Y(e, t) { (null == t || t > e.length) && (t = e.length); - for (var n = 0, r = new Array(t); n < t; n++) - r[n] = e[n]; - return r; + for (var n = 0, i = new Array(t); n < t; n++) + i[n] = e[n]; + return i; } function R(e, t) { if (e) { @@ -84474,19 +83384,19 @@ (t && e && 'number' == typeof e.length) ) { n && (e = n); - var r = 0, - i = function() {}; + var i = 0, + r = function() {}; return { - s: i, + s: r, n: function() { - return r >= e.length + return i >= e.length ? {done: !0} - : {done: !1, value: e[r++]}; + : {done: !1, value: e[i++]}; }, e: function(e) { throw e; }, - f: i, + f: r, }; } throw new TypeError( @@ -84494,24 +83404,24 @@ ); } var o, - a = !0, - s = !1; + s = !0, + a = !1; return { s: function() { n = e[Symbol.iterator](); }, n: function() { var e = n.next(); - return (a = e.done), e; + return (s = e.done), e; }, e: function(e) { - (s = !0), (o = e); + (a = !0), (o = e); }, f: function() { try { - a || null == n.return || n.return(); + s || null == n.return || n.return(); } finally { - if (s) throw o; + if (a) throw o; } }, }; @@ -84537,46 +83447,46 @@ ); } var O = n(46), - k = new (n(47).Dispatcher)(), - G = new ((function(e) { + G = new (n(47).Dispatcher)(), + L = new ((function(e) { l(n, e); var t = C(n); function n() { var e; - a(this, n); + s(this, n); for ( - var r = arguments.length, - i = new Array(r), - s = 0; - s < r; - s++ + var i = arguments.length, + r = new Array(i), + a = 0; + a < i; + a++ ) - i[s] = arguments[s]; + r[a] = arguments[a]; return ( ((e = t.call.apply( t, - [this].concat(i) + [this].concat(r) )).objects = {}), - (e.set = function(t, n, r, i) { + (e.set = function(t, n, i, r) { void 0 === e.objects[t] && (e.objects[t] = {}), void 0 === e.objects[t][n] && (e.objects[t][n] = {}), - (e.objects[t][n][r] = i); + (e.objects[t][n][i] = r); }), - (e.get = function(t, n, r, i) { + (e.get = function(t, n, i, r) { return void 0 === e.objects[t] || void 0 === e.objects[t][n] || - null == e.objects[t][n][r] - ? i - : e.objects[t][n][r]; + null == e.objects[t][n][i] + ? r + : e.objects[t][n][i]; }), (e.handleAction = function(t) { var n = t.rjvId, - r = t.data; + i = t.data; switch (t.name) { case 'RESET': e.emit('reset-' + n); @@ -84584,14 +83494,14 @@ case 'VARIABLE_UPDATED': (t.data.updated_src = e.updateSrc( n, - r + i )), e.set( n, 'action', 'variable-update', o( - o({}, r), + o({}, i), {}, { type: @@ -84607,14 +83517,14 @@ case 'VARIABLE_REMOVED': (t.data.updated_src = e.updateSrc( n, - r + i )), e.set( n, 'action', 'variable-update', o( - o({}, r), + o({}, i), {}, { type: @@ -84630,14 +83540,14 @@ case 'VARIABLE_ADDED': (t.data.updated_src = e.updateSrc( n, - r + i )), e.set( n, 'action', 'variable-update', o( - o({}, r), + o({}, i), {}, { type: @@ -84655,7 +83565,7 @@ n, 'action', 'new-key-request', - r + i ), e.emit( 'add-key-request-' + @@ -84664,41 +83574,41 @@ } }), (e.updateSrc = function(t, n) { - var r = n.name, - i = n.namespace, + var i = n.name, + r = n.namespace, o = n.new_value, - a = + s = (n.existing_value, n.variable_removed); - i.shift(); - var s, + r.shift(); + var a, A = e.get( t, 'global', 'src' ), - c = e.deepCopy(A, U(i)), + c = e.deepCopy(A, U(r)), l = c, - g = _(i); + g = _(r); try { for ( g.s(); - !(s = g.n()).done; + !(a = g.n()).done; ) - l = l[s.value]; + l = l[a.value]; } catch (e) { g.e(e); } finally { g.f(); } return ( - a + s ? 'array' == w(l) - ? l.splice(r, 1) - : delete l[r] - : null !== r - ? (l[r] = o) + ? l.splice(i, 1) + : delete l[i] + : null !== i + ? (l[i] = o) : (c = o), e.set( t, @@ -84710,20 +83620,20 @@ ); }), (e.deepCopy = function(t, n) { - var r, - i = w(t), - a = n.shift(); + var i, + r = w(t), + s = n.shift(); return ( - 'array' == i - ? (r = U(t)) - : 'object' == i && - (r = o({}, t)), - void 0 !== a && - (r[a] = e.deepCopy( - t[a], + 'array' == r + ? (i = U(t)) + : 'object' == r && + (i = o({}, t)), + void 0 !== s && + (i[s] = e.deepCopy( + t[s], n )), - r + i ); }), e @@ -84731,43 +83641,43 @@ } return n; })(O.EventEmitter))(); - k.register(G.handleAction.bind(G)); - var L = G, - j = (function(e) { + G.register(L.handleAction.bind(L)); + var k = L, + z = (function(e) { l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).toggleCollapsed = function() { - r.setState( + i.setState( { - collapsed: !r.state + collapsed: !i.state .collapsed, }, function() { - L.set( - r.props.rjvId, - r.props.namespace, + k.set( + i.props.rjvId, + i.props.namespace, 'collapsed', - r.state.collapsed + i.state.collapsed ); } ); }), - (r.getFunctionDisplay = function( + (i.getFunctionDisplay = function( e ) { - var t = d(r).props; + var t = d(i).props; return e ? p.a.createElement( 'span', null, - r.props.value + i.props.value .toString() .slice(9, -1) .replace( @@ -84804,19 +83714,19 @@ ) ) ) - : r.props.value + : i.props.value .toString() .slice(9, -1); }), - (r.state = { - collapsed: L.get( + (i.state = { + collapsed: k.get( e.rjvId, e.namespace, 'collapsed', !0 ), }), - r + i ); } return ( @@ -84831,7 +83741,7 @@ 'div', Q(e.theme, 'function'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84866,12 +83776,12 @@ n ); })(p.a.PureComponent), - z = (function(e) { + j = (function(e) { l(n, e); var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84898,7 +83808,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84925,7 +83835,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84938,7 +83848,7 @@ 'div', Q(e.theme, 'integer'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84960,7 +83870,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -84973,7 +83883,7 @@ 'div', Q(e.theme, 'regexp'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -84994,37 +83904,37 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).toggleCollapsed = function() { - r.setState( + i.setState( { - collapsed: !r.state + collapsed: !i.state .collapsed, }, function() { - L.set( - r.props.rjvId, - r.props.namespace, + k.set( + i.props.rjvId, + i.props.namespace, 'collapsed', - r.state.collapsed + i.state.collapsed ); } ); }), - (r.state = { - collapsed: L.get( + (i.state = { + collapsed: k.get( e.rjvId, e.namespace, 'collapsed', !0 ), }), - r + i ); } return ( @@ -85037,8 +83947,8 @@ t = e.collapseStringsAfterLength, n = e.theme, - r = e.value, - i = { + i = e.value, + r = { style: { cursor: 'default', @@ -85046,15 +83956,15 @@ }; return ( 'integer' === w(t) && - r.length > t && - ((i.style.cursor = + i.length > t && + ((r.style.cursor = 'pointer'), this.state .collapsed && - (r = p.a.createElement( + (i = p.a.createElement( 'span', null, - r.substring( + i.substring( 0, t ), @@ -85071,7 +83981,7 @@ 'div', Q(n, 'string'), p.a.createElement( - F, + x, Object.assign( { type_name: @@ -85087,14 +83997,14 @@ className: 'string-value', }, - i, + r, { onClick: this .toggleCollapsed, } ), '"', - r, + i, '"' ) ) @@ -85110,7 +84020,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85142,11 +84052,11 @@ t++ ) { var n = arguments[t]; - for (var r in n) + for (var i in n) Object.prototype.hasOwnProperty.call( n, - r - ) && (e[r] = n[r]); + i + ) && (e[i] = n[i]); } return e; }).apply(this, arguments); @@ -85169,11 +84079,11 @@ $ = function(e, t) { var n = Object(I.useRef)(); return Object(I.useCallback)( - function(r) { - (e.current = r), + function(i) { + (e.current = i), n.current && q(n.current, null), (n.current = t), - t && q(t, r); + t && q(t, i); }, [t] ); @@ -85199,8 +84109,8 @@ }); }, ne = null, - re = function() {}, - ie = [ + ie = function() {}, + re = [ 'borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', @@ -85223,26 +84133,26 @@ 'width', ], oe = !!document.documentElement.currentStyle, - ae = function(e, t) { + se = function(e, t) { var n, - r = e.cacheMeasurements, - i = e.maxRows, + i = e.cacheMeasurements, + r = e.maxRows, o = e.minRows, - a = e.onChange, - s = void 0 === a ? re : a, + s = e.onChange, + a = void 0 === s ? ie : s, A = e.onHeightChange, - c = void 0 === A ? re : A, + c = void 0 === A ? ie : A, l = (function(e, t) { if (null == e) return {}; var n, - r, - i = {}, + i, + r = {}, o = Object.keys(e); - for (r = 0; r < o.length; r++) - (n = o[r]), + for (i = 0; i < o.length; i++) + (n = o[i]), t.indexOf(n) >= 0 || - (i[n] = e[n]); - return i; + (r[n] = e[n]); + return r; })(e, [ 'cacheMeasurements', 'maxRows', @@ -85258,7 +84168,7 @@ p = function() { var e = u.current, t = - r && C.current + i && C.current ? C.current : (function(e) { var t = window.getComputedStyle( @@ -85267,9 +84177,9 @@ if (null === t) return null; var n, - r = + i = ((n = t), - ie.reduce( + re.reduce( function( e, t @@ -85286,54 +84196,54 @@ }, {} )), - i = - r.boxSizing; - return '' === i + r = + i.boxSizing; + return '' === r ? null : (oe && 'border-box' === - i && - (r.width = + r && + (i.width = parseFloat( - r.width + i.width ) + parseFloat( - r.borderRightWidth + i.borderRightWidth ) + parseFloat( - r.borderLeftWidth + i.borderLeftWidth ) + parseFloat( - r.paddingRight + i.paddingRight ) + parseFloat( - r.paddingLeft + i.paddingLeft ) + 'px'), { - sizingStyle: r, + sizingStyle: i, paddingSize: parseFloat( - r.paddingBottom + i.paddingBottom ) + parseFloat( - r.paddingTop + i.paddingTop ), borderSize: parseFloat( - r.borderBottomWidth + i.borderBottomWidth ) + parseFloat( - r.borderTopWidth + i.borderTopWidth ), }); })(e); if (t) { C.current = t; - var n = (function(e, t, n, r) { + var n = (function(e, t, n, i) { void 0 === n && (n = 1), - void 0 === r && - (r = 1 / 0), + void 0 === i && + (i = 1 / 0), ne || ((ne = document.createElement( 'textarea' @@ -85351,15 +84261,15 @@ document.body.appendChild( ne ); - var i = e.paddingSize, + var r = e.paddingSize, o = e.borderSize, - a = e.sizingStyle, - s = a.boxSizing; - Object.keys(a).forEach( + s = e.sizingStyle, + a = s.boxSizing; + Object.keys(s).forEach( function(e) { var t = e; ne.style[t] = - a[t]; + s[t]; } ), te(ne), @@ -85381,19 +84291,19 @@ ne.value = 'x'; var c = ne.scrollHeight - - i, + r, l = c * n; - 'border-box' === s && - (l = l + i + o), + 'border-box' === a && + (l = l + r + o), (A = Math.max( l, A )); - var g = c * r; + var g = c * i; return ( 'border-box' === - s && - (g = g + i + o), + a && + (g = g + r + o), [ (A = Math.min( g, @@ -85408,18 +84318,18 @@ e.placeholder || 'x', o, - i + r ), - a = n[0], - s = n[1]; - h.current !== a && - ((h.current = a), + s = n[0], + a = n[1]; + h.current !== s && + ((h.current = s), e.style.setProperty( 'height', - a + 'px', + s + 'px', 'important' ), - c(a, {rowHeight: s})); + c(s, {rowHeight: a})); } }; return ( @@ -85446,14 +84356,14 @@ 'textarea', K({}, l, { onChange: function(e) { - g || p(), s(e); + g || p(), a(e); }, ref: d, }) ) ); }, - se = Object(I.forwardRef)(ae); + ae = Object(I.forwardRef)(se); function Ae(e) { e = e.trim(); try { @@ -85510,7 +84420,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85558,7 +84468,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85606,7 +84516,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85617,17 +84527,17 @@ var e = this.props, t = e.style, n = B(e, ['style']), - r = Be(t).style; + i = Be(t).style; return p.a.createElement( 'span', n, p.a.createElement( 'svg', { - fill: r.color, - width: r.height, - height: r.width, - style: r, + fill: i.color, + width: i.height, + height: i.width, + style: i, viewBox: '0 0 1792 1792', }, @@ -85651,7 +84561,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85662,17 +84572,17 @@ var e = this.props, t = e.style, n = B(e, ['style']), - r = Be(t).style; + i = Be(t).style; return p.a.createElement( 'span', n, p.a.createElement( 'svg', { - fill: r.color, - width: r.height, - height: r.width, - style: r, + fill: i.color, + width: i.height, + height: i.width, + style: i, viewBox: '0 0 1792 1792', }, @@ -85696,7 +84606,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85752,7 +84662,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85808,7 +84718,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85860,7 +84770,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85912,7 +84822,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -85964,7 +84874,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -86016,7 +84926,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -86068,7 +84978,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -86137,23 +85047,23 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).copiedTimer = null), - (r.handleCopy = function() { + (i.handleCopy = function() { var e = document.createElement( 'textarea' ), - t = r.props, + t = i.props, n = t.clickCallback, - i = t.src, + r = t.src, o = t.namespace; (e.innerHTML = JSON.stringify( - r.clipboardValue(i), + i.clipboardValue(r), null, ' ' )), @@ -86167,21 +85077,21 @@ document.body.removeChild( e ), - (r.copiedTimer = setTimeout( + (i.copiedTimer = setTimeout( function() { - r.setState({ + i.setState({ copied: !1, }); }, 5500 )), - r.setState( + i.setState( {copied: !0}, function() { 'function' == typeof n && n({ - src: i, + src: r, namespace: o, name: o[ @@ -86192,9 +85102,9 @@ } ); }), - (r.getClippyIcon = function() { - var e = r.props.theme; - return r.state.copied + (i.getClippyIcon = function() { + var e = i.props.theme; + return i.state.copied ? p.a.createElement( 'span', null, @@ -86231,7 +85141,7 @@ ) ); }), - (r.clipboardValue = function(e) { + (i.clipboardValue = function(e) { switch (w(e)) { case 'function': case 'regexp': @@ -86240,8 +85150,8 @@ return e; } }), - (r.state = {copied: !1}), - r + (i.state = {copied: !1}), + i ); } return ( @@ -86262,14 +85172,14 @@ var e = this.props, t = (e.src, e.theme), n = e.hidden, - r = e.rowHovered, - i = Q( + i = e.rowHovered, + r = Q( t, 'copy-to-clipboard' ).style, - a = 'inline'; + s = 'inline'; return ( - n && (a = 'none'), + n && (s = 'none'), p.a.createElement( 'span', { @@ -86280,7 +85190,7 @@ style: { verticalAlign: 'top', - display: r + display: i ? 'inline-block' : 'none', }, @@ -86291,11 +85201,11 @@ style: o( o( {}, - i + r ), {}, { - display: a, + display: s, } ), onClick: this @@ -86315,14 +85225,14 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).getEditIcon = function() { - var e = r.props, + var e = i.props, t = e.variable, n = e.theme; return p.a.createElement( @@ -86333,7 +85243,7 @@ style: { verticalAlign: 'top', - display: r.state + display: i.state .hovered ? 'inline-block' : 'none', @@ -86349,7 +85259,7 @@ Q(n, 'editVarIcon'), { onClick: function() { - r.prepopInput( + i.prepopInput( t ); }, @@ -86358,8 +85268,8 @@ ) ); }), - (r.prepopInput = function(e) { - if (!1 !== r.props.onEdit) { + (i.prepopInput = function(e) { + if (!1 !== i.props.onEdit) { var t = (function(e) { var t; switch (w(e)) { @@ -86392,7 +85302,7 @@ return t; })(e.value), n = Ae(t); - r.setState({ + i.setState({ editMode: !0, editValue: t, parsedInput: { @@ -86402,11 +85312,11 @@ }); } }), - (r.getRemoveIcon = function() { - var e = r.props, + (i.getRemoveIcon = function() { + var e = i.props, t = e.variable, n = e.namespace, - i = e.theme, + r = e.theme, o = e.rjvId; return p.a.createElement( 'div', @@ -86416,7 +85326,7 @@ style: { verticalAlign: 'top', - display: r.state + display: i.state .hovered ? 'inline-block' : 'none', @@ -86430,12 +85340,12 @@ 'click-to-remove-icon', }, Q( - i, + r, 'removeVarIcon' ), { onClick: function() { - k.dispatch({ + G.dispatch({ name: 'VARIABLE_REMOVED', rjvId: o, @@ -86454,12 +85364,12 @@ ) ); }), - (r.getValue = function(e, t) { + (i.getValue = function(e, t) { var n = !t && e.type, - i = d(r).props; + r = d(i).props; switch (n) { case !1: - return r.getEditInput(); + return i.getEditInput(); case 'string': return p.a.createElement( W, @@ -86468,7 +85378,7 @@ value: e.value, }, - i + r ) ); case 'integer': @@ -86479,7 +85389,7 @@ value: e.value, }, - i + r ) ); case 'float': @@ -86490,45 +85400,45 @@ value: e.value, }, - i + r ) ); case 'boolean': return p.a.createElement( - x, + F, Object.assign( { value: e.value, }, - i + r ) ); case 'function': return p.a.createElement( - j, + z, Object.assign( { value: e.value, }, - i + r ) ); case 'null': return p.a.createElement( P, - i + r ); case 'nan': return p.a.createElement( - z, - i + j, + r ); case 'undefined': return p.a.createElement( V, - i + r ); case 'date': return p.a.createElement( @@ -86538,7 +85448,7 @@ value: e.value, }, - i + r ) ); case 'regexp': @@ -86549,7 +85459,7 @@ value: e.value, }, - i + r ) ); default: @@ -86565,14 +85475,14 @@ ); } }), - (r.getEditInput = function() { - var e = r.props.theme, - t = r.state.editValue; + (i.getEditInput = function() { + var e = i.props.theme, + t = i.state.editValue; return p.a.createElement( 'div', null, p.a.createElement( - se, + ae, Object.assign( { type: 'text', @@ -86597,7 +85507,7 @@ n = Ae( t ); - r.setState({ + i.setState({ editValue: t, parsedInput: { type: @@ -86614,7 +85524,7 @@ e.key ) { case 'Escape': - r.setState( + i.setState( { editMode: !1, editValue: @@ -86625,7 +85535,7 @@ case 'Enter': (e.ctrlKey || e.metaKey) && - r.submitEdit( + i.submitEdit( !0 ); } @@ -86657,7 +85567,7 @@ ), { onClick: function() { - r.setState( + i.setState( { editMode: !1, editValue: @@ -86681,7 +85591,7 @@ ), { onClick: function() { - r.submitEdit(); + i.submitEdit(); }, } ) @@ -86689,29 +85599,29 @@ p.a.createElement( 'div', null, - r.showDetected() + i.showDetected() ) ) ); }), - (r.submitEdit = function(e) { - var t = r.props, + (i.submitEdit = function(e) { + var t = i.props, n = t.variable, - i = t.namespace, + r = t.namespace, o = t.rjvId, - a = r.state, - s = a.editValue, - A = a.parsedInput, - c = s; + s = i.state, + a = s.editValue, + A = s.parsedInput, + c = a; e && A.type && (c = A.value), - r.setState({editMode: !1}), - k.dispatch({ + i.setState({editMode: !1}), + G.dispatch({ name: 'VARIABLE_UPDATED', rjvId: o, data: { name: n.name, - namespace: i, + namespace: r, existing_value: n.value, new_value: c, @@ -86719,19 +85629,19 @@ }, }); }), - (r.showDetected = function() { - var e = r.props, + (i.showDetected = function() { + var e = i.props, t = e.theme, n = (e.variable, e.namespace, e.rjvId, - r.state.parsedInput), - i = + i.state.parsedInput), + r = (n.type, n.value, - r.getDetectedInput()); - if (i) + i.getDetectedInput()); + if (r) return p.a.createElement( 'div', null, @@ -86741,7 +85651,7 @@ t, 'detected-row' ), - i, + r, p.a.createElement( ye, { @@ -86760,7 +85670,7 @@ ).style ), onClick: function() { - r.submitEdit( + i.submitEdit( !0 ); }, @@ -86769,12 +85679,12 @@ ) ); }), - (r.getDetectedInput = function() { - var e = r.state.parsedInput, + (i.getDetectedInput = function() { + var e = i.state.parsedInput, t = e.type, n = e.value, - i = d(r).props, - a = i.theme; + r = d(i).props, + s = r.theme; if (!1 !== t) switch (t.toLowerCase()) { case 'object': @@ -86788,7 +85698,7 @@ o( {}, Q( - a, + s, 'brace' ) .style @@ -86809,7 +85719,7 @@ o( {}, Q( - a, + s, 'ellipsis' ) .style @@ -86830,7 +85740,7 @@ o( {}, Q( - a, + s, 'brace' ) .style @@ -86856,7 +85766,7 @@ o( {}, Q( - a, + s, 'brace' ) .style @@ -86877,7 +85787,7 @@ o( {}, Q( - a, + s, 'ellipsis' ) .style @@ -86898,7 +85808,7 @@ o( {}, Q( - a, + s, 'brace' ) .style @@ -86918,7 +85828,7 @@ W, Object.assign( {value: n}, - i + r ) ); case 'integer': @@ -86926,7 +85836,7 @@ H, Object.assign( {value: n}, - i + r ) ); case 'float': @@ -86934,39 +85844,39 @@ T, Object.assign( {value: n}, - i + r ) ); case 'boolean': return p.a.createElement( - x, + F, Object.assign( {value: n}, - i + r ) ); case 'function': return p.a.createElement( - j, + z, Object.assign( {value: n}, - i + r ) ); case 'null': return p.a.createElement( P, - i + r ); case 'nan': return p.a.createElement( - z, - i + j, + r ); case 'undefined': return p.a.createElement( V, - i + r ); case 'date': return p.a.createElement( @@ -86977,12 +85887,12 @@ n ), }, - i + r ) ); } }), - (r.state = { + (i.state = { editMode: !1, editValue: '', hovered: !1, @@ -86992,7 +85902,7 @@ value: null, }, }), - r + i ); } return ( @@ -87003,10 +85913,10 @@ var e = this, t = this.props, n = t.variable, - r = t.singleIndent, - i = t.type, - a = t.theme, - s = t.namespace, + i = t.singleIndent, + r = t.type, + s = t.theme, + a = t.namespace, A = t.indentWidth, c = t.enableClipboard, l = t.onEdit, @@ -87020,11 +85930,11 @@ Object.assign( {}, Q( - a, + s, 'objectKeyVal', { paddingLeft: - A * r, + A * i, } ), { @@ -87061,28 +85971,28 @@ key: n.name, } ), - 'array' == i + 'array' == r ? d ? p.a.createElement( 'span', Object.assign( {}, Q( - a, + s, 'array-key' ), { key: n.name + '_' + - s, + a, } ), n.name, p.a.createElement( 'div', Q( - a, + s, 'colon' ), ':' @@ -87097,7 +86007,7 @@ Object.assign( {}, Q( - a, + s, 'object-name' ), { @@ -87106,7 +86016,7 @@ key: n.name + '_' + - s, + a, } ), !!h && @@ -87145,7 +86055,7 @@ p.a.createElement( 'span', Q( - a, + s, 'colon' ), ':' @@ -87165,8 +86075,8 @@ : function( t ) { - var r = U( - s + var i = U( + a ); (t.ctrlKey || t.metaKey) && @@ -87177,7 +86087,7 @@ ) : !1 !== u && - (r.shift(), + (i.shift(), u( o( o( @@ -87186,14 +86096,14 @@ ), {}, { - namespace: r, + namespace: i, } ) )); }, }, Q( - a, + s, 'variableValue', { cursor: @@ -87217,9 +86127,9 @@ src: n.value, clickCallback: c, - theme: a, + theme: s, namespace: [].concat( - U(s), + U(a), [ n.name, ] @@ -87240,28 +86150,28 @@ n ); })(p.a.PureComponent), - ve = (function(e) { + Me = (function(e) { l(n, e); var t = C(n); function n() { var e; - a(this, n); + s(this, n); for ( - var r = arguments.length, - i = new Array(r), - s = 0; - s < r; - s++ + var i = arguments.length, + r = new Array(i), + a = 0; + a < i; + a++ ) - i[s] = arguments[s]; + r[a] = arguments[a]; return ( ((e = t.call.apply( t, - [this].concat(i) + [this].concat(r) )).getObjectSize = function() { var t = e.props, n = t.size, - r = t.theme; + i = t.theme; if (t.displayObjectSize) return p.a.createElement( 'span', @@ -87270,7 +86180,7 @@ className: 'object-size', }, - Q(r, 'object-size') + Q(i, 'object-size') ), n, ' item', @@ -87279,10 +86189,10 @@ }), (e.getAddAttribute = function(t) { var n = e.props, - r = n.theme, - i = n.namespace, - a = n.name, - s = n.src, + i = n.theme, + r = n.namespace, + s = n.name, + a = n.src, A = n.rjvId, c = n.depth; return p.a.createElement( @@ -87305,27 +86215,27 @@ className: 'click-to-add-icon', }, - Q(r, 'addVarIcon'), + Q(i, 'addVarIcon'), { onClick: function() { var e = { name: c > 0 - ? a + ? s : null, - namespace: i.splice( + namespace: r.splice( 0, - i.length - + r.length - 1 ), - existing_value: s, + existing_value: a, variable_removed: !1, key_name: null, }; 'object' === - w(s) - ? k.dispatch( + w(a) + ? G.dispatch( { name: 'ADD_VARIABLE_KEY_REQUEST', @@ -87333,7 +86243,7 @@ data: e, } ) - : k.dispatch( + : G.dispatch( { name: 'VARIABLE_ADDED', @@ -87347,7 +86257,7 @@ { new_value: [].concat( U( - s + a ), [ null, @@ -87365,12 +86275,12 @@ }), (e.getRemoveObject = function(t) { var n = e.props, - r = n.theme, - i = (n.hover, n.namespace), + i = n.theme, + r = (n.hover, n.namespace), o = n.name, - a = n.src, - s = n.rjvId; - if (1 !== i.length) + s = n.src, + a = n.rjvId; + if (1 !== r.length) return p.a.createElement( 'span', { @@ -87390,24 +86300,24 @@ 'click-to-remove-icon', }, Q( - r, + i, 'removeVarIcon' ), { onClick: function() { - k.dispatch( + G.dispatch( { name: 'VARIABLE_REMOVED', - rjvId: s, + rjvId: a, data: { name: o, - namespace: i.splice( + namespace: r.splice( 0, - i.length - + r.length - 1 ), - existing_value: a, + existing_value: s, variable_removed: !0, }, } @@ -87421,11 +86331,11 @@ (e.render = function() { var t = e.props, n = t.theme, - r = t.onDelete, - i = t.onAdd, + i = t.onDelete, + r = t.onAdd, o = t.enableClipboard, - a = t.src, - s = t.namespace, + s = t.src, + a = t.namespace, A = t.rowHovered; return p.a.createElement( 'div', @@ -87452,16 +86362,16 @@ { rowHovered: A, clickCallback: o, - src: a, + src: s, theme: n, - namespace: s, + namespace: a, } ) : null, - !1 !== i + !1 !== r ? e.getAddAttribute(A) : null, - !1 !== r + !1 !== i ? e.getRemoveObject(A) : null ); @@ -87471,23 +86381,23 @@ } return n; })(p.a.PureComponent); - function Me(e) { + function ve(e) { var t = e.parent_type, n = e.namespace, - r = e.quotesOnKeys, - i = e.theme, + i = e.quotesOnKeys, + r = e.theme, o = e.jsvRoot, - a = e.name, - s = e.displayArrayKey, + s = e.name, + a = e.displayArrayKey, A = e.name ? e.name : ''; - return !o || (!1 !== a && null !== a) + return !o || (!1 !== s && null !== s) ? 'array' == t - ? s + ? a ? p.a.createElement( 'span', Object.assign( {}, - Q(i, 'array-key'), + Q(r, 'array-key'), {key: n} ), p.a.createElement( @@ -87497,7 +86407,7 @@ ), p.a.createElement( 'span', - Q(i, 'colon'), + Q(r, 'colon'), ':' ) ) @@ -87506,13 +86416,13 @@ 'span', Object.assign( {}, - Q(i, 'object-name'), + Q(r, 'object-name'), {key: n} ), p.a.createElement( 'span', {className: 'object-key'}, - r && + i && p.a.createElement( 'span', { @@ -87528,7 +86438,7 @@ null, A ), - r && + i && p.a.createElement( 'span', { @@ -87542,7 +86452,7 @@ ), p.a.createElement( 'span', - Q(i, 'colon'), + Q(r, 'colon'), ':' ) ) @@ -87616,21 +86526,21 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).toggleCollapsed = function(e) { var t = []; - for (var n in r.state.expanded) - t.push(r.state.expanded[n]); + for (var n in i.state.expanded) + t.push(i.state.expanded[n]); (t[e] = !t[e]), - r.setState({expanded: t}); + i.setState({expanded: t}); }), - (r.state = {expanded: []}), - r + (i.state = {expanded: []}), + i ); } return ( @@ -87640,7 +86550,7 @@ value: function(e) { var t = this.props, n = t.theme, - r = t.iconStyle; + i = t.iconStyle; return this.state.expanded[ e ] @@ -87648,14 +86558,14 @@ Ne, { theme: n, - iconStyle: r, + iconStyle: i, } ) : p.a.createElement( Se, { theme: n, - iconStyle: r, + iconStyle: i, } ); }, @@ -87666,12 +86576,12 @@ var e = this, t = this.props, n = t.src, - r = + i = t.groupArraysAfterLength, - i = (t.depth, t.name), + r = (t.depth, t.name), o = t.theme, - a = t.jsvRoot, - s = t.namespace, + s = t.jsvRoot, + a = t.namespace, A = (t.parent_type, B(t, [ @@ -87689,12 +86599,12 @@ 5 * this.props .indentWidth; - a || + s || (c = 5 * this.props .indentWidth); - var g = r, + var g = i, u = Math.ceil( n.length / g ); @@ -87707,21 +86617,21 @@ }, Q( o, - a + s ? 'jsv-root' : 'objectKeyVal', {paddingLeft: c} ) ), p.a.createElement( - Me, + ve, this.props ), p.a.createElement( 'span', null, p.a.createElement( - ve, + Me, Object.assign( { size: @@ -87732,12 +86642,12 @@ ) ), U(Array(u)).map( - function(t, r) { + function(t, i) { return p.a.createElement( 'div', Object.assign( { - key: r, + key: i, className: 'object-key-val array-group', }, @@ -87772,41 +86682,41 @@ t ) { e.toggleCollapsed( - r + i ); }, } ), e.getExpandedIcon( - r + i ) ), e.state .expanded[ - r + i ] ? p.a.createElement( De, Object.assign( { key: - i + - r, + r + + i, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: g, index_offset: - r * + i * g, src: n.slice( - r * + i * g, - r * + i * g + g ), - namespace: s, + namespace: a, type: 'array', parent_type: @@ -87829,7 +86739,7 @@ t ) { e.toggleCollapsed( - r + i ); }, className: @@ -87862,15 +86772,15 @@ 'object-size' ) ), - r * + i * g, ' - ', - r * + i * g + g > n.length ? n.length - : r * + : i * g + g ) @@ -87888,32 +86798,32 @@ n ); })(p.a.PureComponent), - Fe = (function(e) { + xe = (function(e) { l(n, e); var t = C(n); function n(e) { - var r; - a(this, n), - ((r = t.call( + var i; + s(this, n), + ((i = t.call( this, e )).toggleCollapsed = function() { - r.setState( + i.setState( { - expanded: !r.state + expanded: !i.state .expanded, }, function() { - L.set( - r.props.rjvId, - r.props.namespace, + k.set( + i.props.rjvId, + i.props.namespace, 'expanded', - r.state.expanded + i.state.expanded ); } ); }), - (r.getObjectContent = function( + (i.getObjectContent = function( e, t, n @@ -87932,90 +86842,90 @@ 'object-content', }, Q( - r.props.theme, + i.props.theme, 'pushed-content' ) ), - r.renderObjectContents( + i.renderObjectContents( t, n ) ) ); }), - (r.getEllipsis = function() { - return 0 === r.state.size + (i.getEllipsis = function() { + return 0 === i.state.size ? null : p.a.createElement( 'div', Object.assign( {}, Q( - r.props.theme, + i.props.theme, 'ellipsis' ), { className: 'node-ellipsis', onClick: - r.toggleCollapsed, + i.toggleCollapsed, } ), '...' ); }), - (r.getObjectMetaData = function(e) { - var t = r.props, + (i.getObjectMetaData = function(e) { + var t = i.props, n = (t.rjvId, t.theme, - r.state), - i = n.size, + i.state), + r = n.size, o = n.hovered; return p.a.createElement( - ve, + Me, Object.assign( { rowHovered: o, - size: i, + size: r, }, - r.props + i.props ) ); }), - (r.renderObjectContents = function( + (i.renderObjectContents = function( e, t ) { var n, - i = r.props, - o = i.depth, - a = i.parent_type, - s = i.index_offset, + r = i.props, + o = r.depth, + s = r.parent_type, + a = r.index_offset, A = - i.groupArraysAfterLength, - c = i.namespace, - l = r.state.object_type, + r.groupArraysAfterLength, + c = r.namespace, + l = i.state.object_type, g = [], u = Object.keys(e || {}); return ( - r.props.sortKeys && + i.props.sortKeys && 'array' !== l && (u = u.sort()), - u.forEach(function(i) { + u.forEach(function(r) { if ( - ((n = new xe( - i, - e[i] + ((n = new Fe( + r, + e[r] )), 'array_group' === - a && s && + a && (n.name = parseInt( n.name - ) + s), - e.hasOwnProperty(i)) + ) + a), + e.hasOwnProperty(r)) ) if ( 'object' === @@ -88093,7 +87003,7 @@ singleIndent: 5, namespace: c, type: - r + i .props .type, }, @@ -88105,14 +87015,14 @@ g ); }); - var i = n.getState(e); + var r = n.getState(e); return ( - (r.state = o( - o({}, i), + (i.state = o( + o({}, r), {}, {prevProps: {}} )), - r + i ); } return ( @@ -88123,13 +87033,13 @@ key: 'getBraceStart', value: function(e, t) { var n = this, - r = this.props, - i = r.src, - o = r.theme, - a = r.iconStyle; + i = this.props, + r = i.src, + o = i.theme, + s = i.iconStyle; if ( 'array_group' === - r.parent_type + i.parent_type ) return p.a.createElement( 'span', @@ -88147,11 +87057,11 @@ ), t ? this.getObjectMetaData( - i + r ) : null ); - var s = t ? Ne : Se; + var a = t ? Ne : Se; return p.a.createElement( 'span', null, @@ -88183,15 +87093,15 @@ ) ), p.a.createElement( - s, + a, { theme: o, - iconStyle: a, + iconStyle: s, } ) ), p.a.createElement( - Me, + ve, this.props ), p.a.createElement( @@ -88208,7 +87118,7 @@ ), t ? this.getObjectMetaData( - i + r ) : null ); @@ -88220,14 +87130,14 @@ var e = this, t = this.props, n = t.depth, - r = t.src, - i = + i = t.src, + r = (t.namespace, t.name, t.type, t.parent_type), - a = t.theme, - s = t.jsvRoot, + s = t.theme, + a = t.jsvRoot, A = t.iconStyle, c = B(t, [ 'depth', @@ -88245,10 +87155,10 @@ u = l.expanded, d = {}; return ( - s || - 'array_group' === i + a || + 'array_group' === r ? 'array_group' === - i && + r && ((d.borderLeft = 0), (d.display = 'inline')) @@ -88292,8 +87202,8 @@ }, }, Q( - a, - s + s, + a ? 'jsv-root' : 'objectKeyVal', d @@ -88306,10 +87216,10 @@ u ? this.getObjectContent( n, - r, + i, o( { - theme: a, + theme: s, iconStyle: A, }, c @@ -88329,7 +87239,7 @@ o( {}, Q( - a, + s, 'brace' ) .style @@ -88350,7 +87260,7 @@ u ? null : this.getObjectMetaData( - r + i ) ) ) @@ -88363,15 +87273,15 @@ key: 'getDerivedStateFromProps', value: function(e, t) { - var r = t.prevProps; + var i = t.prevProps; return e.src !== - r.src || + i.src || e.collapsed !== - r.collapsed || - e.name !== r.name || + i.collapsed || + e.name !== i.name || e.namespace !== - r.namespace || - e.rjvId !== r.rjvId + i.namespace || + e.rjvId !== i.rjvId ? o( o( {}, @@ -88390,7 +87300,7 @@ n ); })(p.a.PureComponent); - Fe.getState = function(e) { + xe.getState = function(e) { var t = Object.keys(e.src).length, n = (!1 === e.collapsed || @@ -88406,7 +87316,7 @@ })) && 0 !== t; return { - expanded: L.get( + expanded: k.get( e.rjvId, e.namespace, 'expanded', @@ -88420,42 +87330,42 @@ hovered: !1, }; }; - var xe = function e(t, n) { - a(this, e), + var Fe = function e(t, n) { + s(this, e), (this.name = t), (this.value = n), (this.type = w(n)); }; - y(Fe); - var De = Fe, + y(xe); + var De = xe, Te = (function(e) { l(n, e); var t = C(n); function n() { var e; - a(this, n); + s(this, n); for ( - var r = arguments.length, - i = new Array(r), + var i = arguments.length, + r = new Array(i), o = 0; - o < r; + o < i; o++ ) - i[o] = arguments[o]; + r[o] = arguments[o]; return ( ((e = t.call.apply( t, - [this].concat(i) + [this].concat(r) )).render = function() { var t = d(e).props, n = [t.name], - r = De; + i = De; return ( Array.isArray(t.src) && t.groupArraysAfterLength && t.src.length > t.groupArraysAfterLength && - (r = Qe), + (i = Qe), p.a.createElement( 'div', { @@ -88469,7 +87379,7 @@ 'object-content', }, p.a.createElement( - r, + i, Object.assign( { namespace: n, @@ -88492,25 +87402,25 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).closeModal = function() { - k.dispatch({ - rjvId: r.props.rjvId, + G.dispatch({ + rjvId: i.props.rjvId, name: 'RESET', }); }), - (r.submit = function() { - r.props.submit(r.state.input); + (i.submit = function() { + i.props.submit(i.state.input); }), - (r.state = { + (i.state = { input: e.input ? e.input : '', }), - r + i ); } return ( @@ -88521,10 +87431,10 @@ var e = this, t = this.props, n = t.theme, - r = t.rjvId, - i = t.isValid, + i = t.rjvId, + r = t.isValid, o = this.state.input, - a = i(o); + s = r(o); return p.a.createElement( 'div', Object.assign( @@ -88611,7 +87521,7 @@ onKeyPress: function( t ) { - a && + s && 'Enter' === t.key ? e.submit() @@ -88622,7 +87532,7 @@ } ) ), - a + s ? p.a.createElement( ye, Object.assign( @@ -88662,9 +87572,9 @@ className: 'key-modal-cancel', onClick: function() { - k.dispatch( + G.dispatch( { - rjvId: r, + rjvId: i, name: 'RESET', } @@ -88687,22 +87597,22 @@ var t = C(n); function n() { var e; - a(this, n); + s(this, n); for ( - var r = arguments.length, - i = new Array(r), - s = 0; - s < r; - s++ + var i = arguments.length, + r = new Array(i), + a = 0; + a < i; + a++ ) - i[s] = arguments[s]; + r[a] = arguments[a]; return ( ((e = t.call.apply( t, - [this].concat(i) + [this].concat(r) )).isValid = function(t) { var n = e.props.rjvId, - r = L.get( + i = k.get( n, 'action', 'new-key-request' @@ -88711,27 +87621,27 @@ '' != t && -1 === Object.keys( - r.existing_value + i.existing_value ).indexOf(t) ); }), (e.submit = function(t) { var n = e.props.rjvId, - r = L.get( + i = k.get( n, 'action', 'new-key-request' ); - (r.new_value = o( + (i.new_value = o( {}, - r.existing_value + i.existing_value )), - (r.new_value[t] = + (i.new_value[t] = e.props.defaultValue), - k.dispatch({ + G.dispatch({ name: 'VARIABLE_ADDED', rjvId: n, - data: r, + data: i, }); }), e @@ -88745,12 +87655,12 @@ var e = this.props, t = e.active, n = e.theme, - r = e.rjvId; + i = e.rjvId; return t ? p.a.createElement( Ye, { - rjvId: r, + rjvId: i, theme: n, isValid: this .isValid, @@ -88770,7 +87680,7 @@ var t = C(n); function n() { return ( - a(this, n), t.apply(this, arguments) + s(this, n), t.apply(this, arguments) ); } return ( @@ -88781,8 +87691,8 @@ var e = this.props, t = e.message, n = e.active, - r = e.theme, - i = e.rjvId; + i = e.theme, + r = e.rjvId; return n ? p.a.createElement( 'div', @@ -88792,14 +87702,14 @@ 'validation-failure', }, Q( - r, + i, 'validation-failure' ), { onClick: function() { - k.dispatch( + G.dispatch( { - rjvId: i, + rjvId: r, name: 'RESET', } @@ -88810,7 +87720,7 @@ p.a.createElement( 'span', Q( - r, + i, 'validation-failure-label' ), t @@ -88818,7 +87728,7 @@ p.a.createElement( fe, Q( - r, + i, 'validation-failure-clear' ) ) @@ -88834,49 +87744,49 @@ l(n, e); var t = C(n); function n(e) { - var r; + var i; return ( - a(this, n), - ((r = t.call( + s(this, n), + ((i = t.call( this, e )).rjvId = Date.now().toString()), - (r.getListeners = function() { + (i.getListeners = function() { return { - reset: r.resetState, + reset: i.resetState, 'variable-update': - r.updateSrc, + i.updateSrc, 'add-key-request': - r.addKeyRequest, + i.addKeyRequest, }; }), - (r.updateSrc = function() { + (i.updateSrc = function() { var e, - t = L.get( - r.rjvId, + t = k.get( + i.rjvId, 'action', 'variable-update' ), n = t.name, - i = t.namespace, + r = t.namespace, o = t.new_value, - a = t.existing_value, - s = + s = t.existing_value, + a = (t.variable_removed, t.updated_src), A = t.type, - c = r.props, + c = i.props, l = c.onEdit, g = c.onDelete, u = c.onAdd, d = { existing_src: - r.state.src, + i.state.src, new_value: o, - updated_src: s, + updated_src: a, name: n, - namespace: i, - existing_value: a, + namespace: r, + existing_value: s, }; switch (A) { case 'variable-added': @@ -88889,27 +87799,27 @@ e = g(d); } !1 !== e - ? (L.set( - r.rjvId, + ? (k.set( + i.rjvId, 'global', 'src', - s + a ), - r.setState({src: s})) - : r.setState({ + i.setState({src: a})) + : i.setState({ validationFailure: !0, }); }), - (r.addKeyRequest = function() { - r.setState({addKeyRequest: !0}); + (i.addKeyRequest = function() { + i.setState({addKeyRequest: !0}); }), - (r.resetState = function() { - r.setState({ + (i.resetState = function() { + i.setState({ validationFailure: !1, addKeyRequest: !1, }); }), - (r.state = { + (i.state = { addKeyRequest: !1, editKeyRequest: !1, validationFailure: !1, @@ -88923,7 +87833,7 @@ prevName: n.defaultProps.name, prevTheme: n.defaultProps.theme, }), - r + i ); } return ( @@ -88933,7 +87843,7 @@ { key: 'componentDidMount', value: function() { - L.set( + k.set( this.rjvId, 'global', 'src', @@ -88941,7 +87851,7 @@ ); var e = this.getListeners(); for (var t in e) - L.on( + k.on( t + '-' + this.rjvId, @@ -88969,7 +87879,7 @@ e.src !== this.state .src && - L.set( + k.set( this.rjvId, 'global', 'src', @@ -88983,7 +87893,7 @@ value: function() { var e = this.getListeners(); for (var t in e) - L.removeListener( + k.removeListener( t + '-' + this.rjvId, @@ -88999,10 +87909,10 @@ e.validationFailure, n = e.validationMessage, - r = e.addKeyRequest, - i = e.theme, - a = e.src, - s = e.name, + i = e.addKeyRequest, + r = e.theme, + s = e.src, + a = e.name, A = this.props, c = A.style, l = A.defaultValue; @@ -89015,7 +87925,7 @@ o( {}, Q( - i, + r, 'app-container' ).style ), @@ -89027,7 +87937,7 @@ { message: n, active: t, - theme: i, + theme: r, rjvId: this .rjvId, } @@ -89038,11 +87948,11 @@ {}, this.props, { - src: a, - name: s, - theme: i, + src: s, + name: a, + theme: r, type: w( - a + s ), rjvId: this .rjvId, @@ -89052,8 +87962,8 @@ p.a.createElement( Re, { - active: r, - theme: i, + active: i, + theme: r, rjvId: this .rjvId, defaultValue: l, @@ -89076,7 +87986,7 @@ e.theme !== t.prevTheme ) { - var r = { + var i = { src: e.src, name: e.name, theme: e.theme, @@ -89089,7 +87999,7 @@ e.theme, }; return n.validateState( - r + i ); } return null; @@ -89184,14 +88094,14 @@ }, ])); }, - 71471: (e, t) => { + 33330: (e, t) => { 'use strict'; var n, - r = Symbol.for('react.element'), - i = Symbol.for('react.portal'), + i = Symbol.for('react.element'), + r = Symbol.for('react.portal'), o = Symbol.for('react.fragment'), - a = Symbol.for('react.strict_mode'), - s = Symbol.for('react.profiler'), + s = Symbol.for('react.strict_mode'), + a = Symbol.for('react.profiler'), A = Symbol.for('react.provider'), c = Symbol.for('react.context'), l = Symbol.for('react.server_context'), @@ -89205,11 +88115,11 @@ if ('object' == typeof e && null !== e) { var t = e.$$typeof; switch (t) { - case r: + case i: switch ((e = e.type)) { case o: - case s: case a: + case s: case u: case d: return e; @@ -89226,7 +88136,7 @@ return t; } } - case i: + case r: return t; } } @@ -89234,14 +88144,14 @@ (n = Symbol.for('react.module.reference')), (t.ContextConsumer = c), (t.ContextProvider = A), - (t.Element = r), + (t.Element = i), (t.ForwardRef = g), (t.Fragment = o), (t.Lazy = C), (t.Memo = h), - (t.Portal = i), - (t.Profiler = s), - (t.StrictMode = a), + (t.Portal = r), + (t.Profiler = a), + (t.StrictMode = s), (t.Suspense = u), (t.SuspenseList = d), (t.isAsyncMode = function() { @@ -89260,7 +88170,7 @@ return ( 'object' == typeof e && null !== e && - e.$$typeof === r + e.$$typeof === i ); }), (t.isForwardRef = function(e) { @@ -89276,13 +88186,13 @@ return p(e) === h; }), (t.isPortal = function(e) { - return p(e) === i; + return p(e) === r; }), (t.isProfiler = function(e) { - return p(e) === s; + return p(e) === a; }), (t.isStrictMode = function(e) { - return p(e) === a; + return p(e) === s; }), (t.isSuspense = function(e) { return p(e) === u; @@ -89295,8 +88205,8 @@ 'string' == typeof e || 'function' == typeof e || e === o || - e === s || e === a || + e === s || e === u || e === d || e === I || @@ -89313,18 +88223,18 @@ }), (t.typeOf = p); }, - 82143: (e, t, n) => { + 61783: (e, t, n) => { 'use strict'; - e.exports = n(71471); + e.exports = n(33330); }, - 73039: function(e, t, n) { + 10298: function(e, t, n) { 'use strict'; - var r, - i = + var i, + r = (this && this.__extends) || - ((r = function(e, t) { + ((i = function(e, t) { return ( - (r = + (i = Object.setPrototypeOf || ({__proto__: []} instanceof Array && function(e, t) { @@ -89337,7 +88247,7 @@ n ) && (e[n] = t[n]); }), - r(e, t) + i(e, t) ); }), function(e, t) { @@ -89350,7 +88260,7 @@ function n() { this.constructor = e; } - r(e, t), + i(e, t), (e.prototype = null === t ? Object.create(t) @@ -89360,25 +88270,25 @@ o = (this && this.__createBinding) || (Object.create - ? function(e, t, n, r) { - void 0 === r && (r = n); - var i = Object.getOwnPropertyDescriptor(t, n); - (i && - !('get' in i + ? function(e, t, n, i) { + void 0 === i && (i = n); + var r = Object.getOwnPropertyDescriptor(t, n); + (r && + !('get' in r ? !t.__esModule - : i.writable || i.configurable)) || - (i = { + : r.writable || r.configurable)) || + (r = { enumerable: !0, get: function() { return t[n]; }, }), - Object.defineProperty(e, r, i); + Object.defineProperty(e, i, r); } - : function(e, t, n, r) { - void 0 === r && (r = n), (e[r] = t[n]); + : function(e, t, n, i) { + void 0 === i && (i = n), (e[i] = t[n]); }), - a = + s = (this && this.__setModuleDefault) || (Object.create ? function(e, t) { @@ -89390,7 +88300,7 @@ : function(e, t) { e.default = t; }), - s = + a = (this && this.__importStar) || function(e) { if (e && e.__esModule) return e; @@ -89403,27 +88313,27 @@ n ) && o(t, e, n); - return a(t, e), t; + return s(t, e), t; }, A = (this && this.__spreadArray) || function(e, t, n) { if (n || 2 === arguments.length) - for (var r, i = 0, o = t.length; i < o; i++) - (!r && i in t) || - (r || - (r = Array.prototype.slice.call( + for (var i, r = 0, o = t.length; r < o; r++) + (!i && r in t) || + (i || + (i = Array.prototype.slice.call( t, 0, - i + r )), - (r[i] = t[i])); - return e.concat(r || Array.prototype.slice.call(t)); + (i[r] = t[r])); + return e.concat(i || Array.prototype.slice.call(t)); }; Object.defineProperty(t, '__esModule', {value: !0}); - var c = s(n(99196)), - l = n(91826), - g = n(26234), + var c = a(n(99196)), + l = n(45287), + g = n(56096), u = ['ArrowRight', 'ArrowUp', 'k', 'PageUp'], d = ['ArrowLeft', 'ArrowDown', 'j', 'PageDown'], h = (function(e) { @@ -89448,106 +88358,106 @@ (n.getOffsets = function() { var e = n.props, t = e.direction, - r = e.values, - i = e.min, + i = e.values, + r = e.min, o = e.max, - a = n.trackRef.current; - if (!a) + s = n.trackRef.current; + if (!s) return ( console.warn( 'No track element found.' ), [] ); - var s = a.getBoundingClientRect(), - A = (0, l.getPaddingAndBorder)(a); + var a = s.getBoundingClientRect(), + A = (0, l.getPaddingAndBorder)(s); return n.getThumbs().map(function(e, n) { - var a = {x: 0, y: 0}, + var s = {x: 0, y: 0}, c = e.getBoundingClientRect(), u = (0, l.getMargin)(e); switch (t) { case g.Direction.Right: return ( - (a.x = + (s.x = -1 * (u.left + A.left)), - (a.y = + (s.y = -1 * - ((c.height - s.height) / + ((c.height - a.height) / 2 + A.top)), - (a.x += - s.width * + (s.x += + a.width * (0, l.relativeValue)( - r[n], - i, + i[n], + r, o ) - c.width / 2), - a + s ); case g.Direction.Left: return ( - (a.x = + (s.x = -1 * (u.right + A.right)), - (a.y = + (s.y = -1 * - ((c.height - s.height) / + ((c.height - a.height) / 2 + A.top)), - (a.x += - s.width - - s.width * + (s.x += + a.width - + a.width * (0, l.relativeValue)( - r[n], - i, + i[n], + r, o ) - c.width / 2), - a + s ); case g.Direction.Up: return ( - (a.x = + (s.x = -1 * - ((c.width - s.width) / + ((c.width - a.width) / 2 + u.left + A.left)), - (a.y = -A.left), - (a.y += - s.height - - s.height * + (s.y = -A.left), + (s.y += + a.height - + a.height * (0, l.relativeValue)( - r[n], - i, + i[n], + r, o ) - c.height / 2), - a + s ); case g.Direction.Down: return ( - (a.x = + (s.x = -1 * - ((c.width - s.width) / + ((c.width - a.width) / 2 + u.left + A.left)), - (a.y = -A.left), - (a.y += - s.height * + (s.y = -A.left), + (s.y += + a.height * (0, l.relativeValue)( - r[n], - i, + i[n], + r, o ) - c.height / 2), - a + s ); default: return (0, @@ -89640,7 +88550,7 @@ } ); } else { - var r = (0, l.getClosestThumbIndex)( + var i = (0, l.getClosestThumbIndex)( n.thumbRefs.map(function(e) { return e.current; }), @@ -89649,11 +88559,11 @@ n.props.direction ); null === - (t = n.thumbRefs[r].current) || + (t = n.thumbRefs[i].current) || void 0 === t || t.focus(), n.setState( - {draggedThumbIndex: r}, + {draggedThumbIndex: i}, function() { return n.onMove( e.clientX, @@ -89705,7 +88615,7 @@ } ); } else { - var r = (0, l.getClosestThumbIndex)( + var i = (0, l.getClosestThumbIndex)( n.thumbRefs.map(function(e) { return e.current; }), @@ -89713,11 +88623,11 @@ e.touches[0].clientY, n.props.direction ); - null === (t = n.thumbRefs[r].current) || + null === (t = n.thumbRefs[i].current) || void 0 === t || t.focus(), n.setState( - {draggedThumbIndex: r}, + {draggedThumbIndex: i}, function() { return n.onMove( e.touches[0].clientX, @@ -89731,16 +88641,16 @@ if (!n.props.disabled) { var t = (0, l.isTouchEvent)(e); if (t || 0 === e.button) { - var r = n.getTargetIndex(e); - -1 !== r && + var i = n.getTargetIndex(e); + -1 !== i && (t ? n.addTouchEvents(e) : n.addMouseEvents(e), n.setState({ - draggedThumbIndex: r, + draggedThumbIndex: i, thumbZIndexes: n.state.thumbZIndexes.map( function(e, t) { - return t === r + return t === i ? Math.max.apply( Math, n.state @@ -89749,7 +88659,7 @@ : e <= n.state .thumbZIndexes[ - r + i ] ? e : e - 1; @@ -89772,17 +88682,17 @@ }), (n.onKeyDown = function(e) { var t = n.props, - r = t.values, - i = t.onChange, + i = t.values, + r = t.onChange, o = t.step, - a = t.rtl, - s = t.direction, + s = t.rtl, + a = t.direction, A = n.state.isChanged, c = n.getTargetIndex(e.nativeEvent), h = - a || - s === g.Direction.Left || - s === g.Direction.Down + s || + a === g.Direction.Left || + a === g.Direction.Down ? -1 : 1; -1 !== c && @@ -89792,12 +88702,12 @@ draggedThumbIndex: c, isChanged: !0, }), - i( + r( (0, l.replaceAt)( - r, + i, c, n.normalizeValue( - r[c] + + i[c] + h * ('PageUp' === e.key @@ -89813,12 +88723,12 @@ draggedThumbIndex: c, isChanged: !0, }), - i( + r( (0, l.replaceAt)( - r, + i, c, n.normalizeValue( - r[c] - + i[c] - h * ('PageDown' === e.key @@ -89848,30 +88758,30 @@ ); }), (n.onMove = function(e, t) { - var r = n.state, - i = r.draggedThumbIndex, - o = r.draggedTrackPos, - a = n.props, - s = a.direction, - A = a.min, - c = a.max, - u = a.onChange, - d = a.values, - h = a.step, - C = a.rtl; - if (-1 === i && -1 === o[0] && -1 === o[1]) + var i = n.state, + r = i.draggedThumbIndex, + o = i.draggedTrackPos, + s = n.props, + a = s.direction, + A = s.min, + c = s.max, + u = s.onChange, + d = s.values, + h = s.step, + C = s.rtl; + if (-1 === r && -1 === o[0] && -1 === o[1]) return null; var I = n.trackRef.current; if (!I) return null; var p = I.getBoundingClientRect(), - m = (0, l.isVertical)(s) + m = (0, l.isVertical)(a) ? p.height : p.width; if (-1 !== o[0] && -1 !== o[1]) { var f = e - o[0], E = t - o[1], y = 0; - switch (s) { + switch (a) { case g.Direction.Right: case g.Direction.Left: y = (f / m) * (c - A); @@ -89881,7 +88791,7 @@ y = (E / m) * (c - A); break; default: - (0, l.assertUnreachable)(s); + (0, l.assertUnreachable)(a); } if ( (C && (y *= -1), @@ -89924,60 +88834,60 @@ u(b); } } else { - var v = 0; - switch (s) { + var M = 0; + switch (a) { case g.Direction.Right: - v = + M = ((e - p.left) / m) * (c - A) + A; break; case g.Direction.Left: - v = + M = ((m - (e - p.left)) / m) * (c - A) + A; break; case g.Direction.Down: - v = + M = ((t - p.top) / m) * (c - A) + A; break; case g.Direction.Up: - v = + M = ((m - (t - p.top)) / m) * (c - A) + A; break; default: - (0, l.assertUnreachable)(s); + (0, l.assertUnreachable)(a); } - C && (v = c + A - v), - Math.abs(d[i] - v) >= h / 2 && + C && (M = c + A - M), + Math.abs(d[r] - M) >= h / 2 && u( (0, l.replaceAt)( d, - i, - n.normalizeValue(v, i) + r, + n.normalizeValue(M, r) ) ); } }), (n.normalizeValue = function(e, t) { - var r = n.props, - i = r.min, - o = r.max, - a = r.step, - s = r.allowOverlap, - A = r.values; + var i = n.props, + r = i.min, + o = i.max, + s = i.step, + a = i.allowOverlap, + A = i.values; return (0, l.normalizeValue)( e, t, - i, + r, o, - a, s, + a, A ); }), @@ -90023,8 +88933,8 @@ n.setState({isChanged: !1}); var e = n.props, t = e.onFinalChange, - r = e.values; - t && t(r); + i = e.values; + t && t(i); }), (n.updateMarkRefs = function(e) { if (!e.renderMark) @@ -90051,19 +88961,19 @@ n.trackRef.current ), t = parseInt(e.width, 10), - r = parseInt(e.height, 10), - i = parseInt(e.paddingLeft, 10), + i = parseInt(e.height, 10), + r = parseInt(e.paddingLeft, 10), o = parseInt(e.paddingTop, 10), - a = [], - s = 0; - s < n.numOfMarks + 1; - s++ + s = [], + a = 0; + a < n.numOfMarks + 1; + a++ ) { var A = 9999, c = 9999; - if (n.markRefs[s].current) { + if (n.markRefs[a].current) { var l = n.markRefs[ - s + a ].current.getBoundingClientRect(); (A = l.height), (c = l.width); } @@ -90071,26 +88981,26 @@ g.Direction.Left || n.props.direction === g.Direction.Right - ? a.push([ + ? s.push([ Math.round( (t / n.numOfMarks) * - s + - i - + a + + r - c / 2 ), - -Math.round((A - r) / 2), + -Math.round((A - i) / 2), ]) - : a.push([ + : s.push([ Math.round( - (r / n.numOfMarks) * - s + + (i / n.numOfMarks) * + a + o - A / 2 ), -Math.round((c - t) / 2), ]); } - n.setState({markOffsets: a}); + n.setState({markOffsets: s}); } }), 0 === t.step) @@ -90114,13 +89024,13 @@ ); } return ( - i(t, e), + r(t, e), (t.prototype.componentDidMount = function() { var e = this, t = this.props, n = t.values, - r = t.min, - i = t.step; + i = t.min, + r = t.step; (this.resizeObserver = window.ResizeObserver ? new window.ResizeObserver(this.onResize) : { @@ -90165,7 +89075,7 @@ ), this.calculateMarkOffsets(), n.forEach(function(e) { - (0, l.isStepDivisible)(r, e, i) || + (0, l.isStepDivisible)(i, e, r) || console.warn( 'The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.' ); @@ -90173,26 +89083,26 @@ }), (t.prototype.componentDidUpdate = function(e, t) { var n = this.props, - r = n.max, - i = n.min, + i = n.max, + r = n.min, o = n.step, - a = n.values, - s = n.rtl; - (e.max === r && e.min === i && e.step === o) || + s = n.values, + a = n.rtl; + (e.max === i && e.min === r && e.step === o) || this.updateMarkRefs(this.props), (0, l.translateThumbs)( this.getThumbs(), this.getOffsets(), - s + a ), - (e.max === r && - e.min === i && + (e.max === i && + e.min === r && e.step === o && t.markOffsets.length === this.state.markOffsets.length) || (this.calculateMarkOffsets(), - a.forEach(function(e) { - (0, l.isStepDivisible)(i, e, o) || + s.forEach(function(e) { + (0, l.isStepDivisible)(r, e, o) || console.warn( 'The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.' ); @@ -90232,16 +89142,16 @@ var e = this, t = this.props, n = t.label, - r = t.labelledBy, - i = t.renderTrack, + i = t.labelledBy, + r = t.renderTrack, o = t.renderThumb, - a = t.renderMark, - s = - void 0 === a + s = t.renderMark, + a = + void 0 === s ? function() { return null; } - : a, + : s, c = t.values, u = t.min, d = t.max, @@ -90251,7 +89161,7 @@ p = I.draggedThumbIndex, m = I.thumbZIndexes, f = I.markOffsets; - return i({ + return r({ props: { style: { transform: 'scale(1)', @@ -90282,8 +89192,8 @@ children: A( A( [], - f.map(function(t, n, r) { - return s({ + f.map(function(t, n, i) { + return a({ props: { style: e.props @@ -90326,20 +89236,20 @@ }), !0 ), - c.map(function(t, i) { - var a = - e.state.draggedThumbIndex === i; + c.map(function(t, r) { + var s = + e.state.draggedThumbIndex === r; return o({ - index: i, + index: r, value: t, - isDragged: a, + isDragged: s, props: { style: { position: 'absolute', - zIndex: m[i], + zIndex: m[r], cursor: C ? 'inherit' - : a + : s ? 'grabbing' : 'grab', userSelect: 'none', @@ -90349,19 +89259,19 @@ MozUserSelect: 'none', msUserSelect: 'none', }, - key: i, + key: r, tabIndex: C ? void 0 : 0, 'aria-valuemax': h ? d - : c[i + 1] || d, + : c[r + 1] || d, 'aria-valuemin': h ? u - : c[i - 1] || u, + : c[r - 1] || u, 'aria-valuenow': t, draggable: !1, - ref: e.thumbRefs[i], + ref: e.thumbRefs[r], 'aria-label': n, - 'aria-labelledby': r, + 'aria-labelledby': i, role: 'slider', onKeyDown: C ? l.voidFn @@ -90393,18 +89303,18 @@ })(c.Component); t.default = h; }, - 94398: function(e, t, n) { + 87228: function(e, t, n) { 'use strict'; - var r = + var i = (this && this.__importDefault) || function(e) { return e && e.__esModule ? e : {default: e}; }; Object.defineProperty(t, '__esModule', {value: !0}), (t.checkValuesAgainstBoundaries = t.relativeValue = t.useThumbOverlap = t.Direction = t.getTrackBackground = t.Range = void 0); - var i = r(n(73039)); - t.Range = i.default; - var o = n(91826); + var r = i(n(10298)); + t.Range = r.default; + var o = n(45287); Object.defineProperty(t, 'getTrackBackground', { enumerable: !0, get: function() { @@ -90429,15 +89339,15 @@ return o.checkValuesAgainstBoundaries; }, }); - var a = n(26234); + var s = n(56096); Object.defineProperty(t, 'Direction', { enumerable: !0, get: function() { - return a.Direction; + return s.Direction; }, }); }, - 26234: (e, t) => { + 56096: (e, t) => { 'use strict'; var n; Object.defineProperty(t, '__esModule', {value: !0}), @@ -90449,31 +89359,31 @@ (e.Up = 'to top'); })(n || (t.Direction = n = {})); }, - 91826: function(e, t, n) { + 45287: function(e, t, n) { 'use strict'; - var r = + var i = (this && this.__spreadArray) || function(e, t, n) { if (n || 2 === arguments.length) - for (var r, i = 0, o = t.length; i < o; i++) - (!r && i in t) || - (r || - (r = Array.prototype.slice.call( + for (var i, r = 0, o = t.length; r < o; r++) + (!i && r in t) || + (i || + (i = Array.prototype.slice.call( t, 0, - i + r )), - (r[i] = t[i])); - return e.concat(r || Array.prototype.slice.call(t)); + (i[r] = t[r])); + return e.concat(i || Array.prototype.slice.call(t)); }; Object.defineProperty(t, '__esModule', {value: !0}), (t.isIOS = t.useThumbOverlap = t.assertUnreachable = t.voidFn = t.getTrackBackground = t.replaceAt = t.schd = t.translate = t.getClosestThumbIndex = t.translateThumbs = t.getPaddingAndBorder = t.getMargin = t.checkInitialOverlap = t.checkValuesAgainstBoundaries = t.checkBoundaries = t.isVertical = t.relativeValue = t.normalizeValue = t.isStepDivisible = t.isTouchEvent = t.getStepDecimals = void 0); - var i = n(99196), - o = n(26234); - function a(e) { + var r = n(99196), + o = n(56096); + function s(e) { return e === o.Direction.Up || e === o.Direction.Down; } - function s(e, t, n) { + function a(e, t, n) { e.style.transform = 'translate(' .concat(t, 'px, ') .concat(n, 'px)'); @@ -90489,20 +89399,20 @@ ); }), (t.isStepDivisible = function(e, t, n) { - var r = Number(((t - e) / n).toFixed(8)); - return parseInt(r.toString(), 10) === r; + var i = Number(((t - e) / n).toFixed(8)); + return parseInt(i.toString(), 10) === i; }), - (t.normalizeValue = function(e, n, r, i, o, a, s) { + (t.normalizeValue = function(e, n, i, r, o, s, a) { var A = 1e11; - if (((e = Math.round(e * A) / A), !a)) { - var c = s[n - 1], - l = s[n + 1]; + if (((e = Math.round(e * A) / A), !s)) { + var c = a[n - 1], + l = a[n + 1]; if (c && c > e) return c; if (l && l < e) return l; } - if (e > i) return i; - if (e < r) return r; - var g = Math.floor(e * A - r * A) % Math.floor(o * A), + if (e > r) return r; + if (e < i) return i; + var g = Math.floor(e * A - i * A) % Math.floor(o * A), u = Math.floor(e * A - Math.abs(g)), d = 0 === g ? e : u / A, h = Math.abs(g / A) < o / 2 ? d : d + o, @@ -90512,7 +89422,7 @@ (t.relativeValue = function(e, t, n) { return (e - t) / (n - t); }), - (t.isVertical = a), + (t.isVertical = s), (t.checkBoundaries = function(e, t, n) { if (t >= n) throw new RangeError( @@ -90579,30 +89489,30 @@ }; }), (t.translateThumbs = function(e, t, n) { - var r = n ? -1 : 1; + var i = n ? -1 : 1; e.forEach(function(e, n) { - return s(e, r * t[n].x, t[n].y); + return a(e, i * t[n].x, t[n].y); }); }), - (t.getClosestThumbIndex = function(e, t, n, r) { + (t.getClosestThumbIndex = function(e, t, n, i) { for ( - var i = 0, o = c(e[0], t, n, r), a = 1; - a < e.length; - a++ + var r = 0, o = c(e[0], t, n, i), s = 1; + s < e.length; + s++ ) { - var s = c(e[a], t, n, r); - s < o && ((o = s), (i = a)); + var a = c(e[s], t, n, i); + a < o && ((o = a), (r = s)); } - return i; + return r; }), - (t.translate = s); + (t.translate = a); (t.schd = function(e) { var t = [], n = null; return function() { - for (var r = [], i = 0; i < arguments.length; i++) - r[i] = arguments[i]; - (t = r), + for (var i = [], r = 0; r < arguments.length; r++) + i[r] = arguments[r]; + (t = i), n || (n = requestAnimationFrame(function() { (n = null), e.apply(void 0, t); @@ -90610,39 +89520,39 @@ }; }), (t.replaceAt = function(e, t, n) { - var r = e.slice(0); - return (r[t] = n), r; + var i = e.slice(0); + return (i[t] = n), i; }), (t.getTrackBackground = function(e) { var t = e.values, n = e.colors, - r = e.min, - i = e.max, - a = e.direction, - s = void 0 === a ? o.Direction.Right : a, + i = e.min, + r = e.max, + s = e.direction, + a = void 0 === s ? o.Direction.Right : s, A = e.rtl, c = void 0 !== A && A; - c && s === o.Direction.Right - ? (s = o.Direction.Left) - : c && o.Direction.Left && (s = o.Direction.Right); + c && a === o.Direction.Right + ? (a = o.Direction.Left) + : c && o.Direction.Left && (a = o.Direction.Right); var l = t .slice(0) .sort(function(e, t) { return e - t; }) .map(function(e) { - return ((e - r) / (i - r)) * 100; + return ((e - i) / (r - i)) * 100; }) - .reduce(function(e, t, r) { + .reduce(function(e, t, i) { return '' .concat(e, ', ') - .concat(n[r], ' ') + .concat(n[i], ' ') .concat(t, '%, ') - .concat(n[r + 1], ' ') + .concat(n[i + 1], ' ') .concat(t, '%'); }, ''); return 'linear-gradient(' - .concat(s, ', ') + .concat(a, ', ') .concat(n[0], ' 0%') .concat(l, ', ') .concat(n[n.length - 1], ' 100%)'); @@ -90651,95 +89561,95 @@ (t.assertUnreachable = function(e) { throw new Error("Didn't expect to get here"); }); - var A = function(e, t, n, i, o) { + var A = function(e, t, n, r, o) { return ( void 0 === o && (o = function(e) { return e; }), Math.ceil( - r([e], Array.from(e.children), !0).reduce(function( + i([e], Array.from(e.children), !0).reduce(function( e, - r + i ) { - var a = Math.ceil( - r.getBoundingClientRect().width + var s = Math.ceil( + i.getBoundingClientRect().width ); if ( - r.innerText && - r.innerText.includes(n) && - 0 === r.childElementCount + i.innerText && + i.innerText.includes(n) && + 0 === i.childElementCount ) { - var s = r.cloneNode(!0); - (s.innerHTML = o(t.toFixed(i))), - (s.style.visibility = 'hidden'), - document.body.appendChild(s), - (a = Math.ceil( - s.getBoundingClientRect().width + var a = i.cloneNode(!0); + (a.innerHTML = o(t.toFixed(r))), + (a.style.visibility = 'hidden'), + document.body.appendChild(a), + (s = Math.ceil( + a.getBoundingClientRect().width )), - document.body.removeChild(s); + document.body.removeChild(a); } - return a > e ? a : e; + return s > e ? s : e; }, e.getBoundingClientRect().width) ) ); }; - function c(e, t, n, r) { - var i = e.getBoundingClientRect(), - o = i.left, - s = i.top, - A = i.width, - c = i.height; - return a(r) - ? Math.abs(n - (s + c / 2)) + function c(e, t, n, i) { + var r = e.getBoundingClientRect(), + o = r.left, + a = r.top, + A = r.width, + c = r.height; + return s(i) + ? Math.abs(n - (a + c / 2)) : Math.abs(t - (o + A / 2)); } - t.useThumbOverlap = function(e, n, o, a, s, c) { - void 0 === a && (a = 0.1), - void 0 === s && (s = ' - '), + t.useThumbOverlap = function(e, n, o, s, a, c) { + void 0 === s && (s = 0.1), + void 0 === a && (a = ' - '), void 0 === c && (c = function(e) { return e; }); - var l = (0, t.getStepDecimals)(a), - g = (0, i.useState)({}), + var l = (0, t.getStepDecimals)(s), + g = (0, r.useState)({}), u = g[0], d = g[1], - h = (0, i.useState)(c(n[o].toFixed(l))), + h = (0, r.useState)(c(n[o].toFixed(l))), C = h[0], I = h[1]; return ( - (0, i.useEffect)( + (0, r.useEffect)( function() { if (e) { var t = e.getThumbs(); if (t.length < 1) return; - var i = {}, - a = e.getOffsets(), - g = (function(e, t, n, i, o, a, s) { - void 0 === s && - (s = function(e) { + var r = {}, + s = e.getOffsets(), + g = (function(e, t, n, r, o, s, a) { + void 0 === a && + (a = function(e) { return e; }); var c = [], l = function(e) { var g = A( n[e], - i[e], + r[e], o, - a, - s + s, + a ), u = t[e].x; t.forEach(function(t, d) { var h = t.x, C = A( n[d], - i[d], + r[d], o, - a, - s + s, + a ); e !== d && ((u >= h && @@ -90751,8 +89661,8 @@ (c.includes(d) || (c.push(e), c.push(d), - (c = r( - r( + (c = i( + i( [], c, !0 @@ -90767,20 +89677,20 @@ l(e), Array.from(new Set(c.sort())) ); - })(o, a, t, n, s, l, c), + })(o, s, t, n, a, l, c), u = c(n[o].toFixed(l)); if (g.length) { - var h = g.reduce(function(e, t, n, i) { + var h = g.reduce(function(e, t, n, r) { return e.length - ? r( - r([], e, !0), - [a[i[n]].x], + ? i( + i([], e, !0), + [s[r[n]].x], !1 ) - : [a[i[n]].x]; + : [s[r[n]].x]; }, []); if ( - Math.min.apply(Math, h) === a[o].x + Math.min.apply(Math, h) === s[o].x ) { var C = []; g.forEach(function(e) { @@ -90797,21 +89707,21 @@ ) ) .map(c) - .join(s)); + .join(a)); var p = Math.min.apply(Math, h), m = Math.max.apply(Math, h), f = t[ g[h.indexOf(m)] ].getBoundingClientRect().width; - (i.left = ''.concat( + (r.left = ''.concat( Math.abs(p - (m + f)) / 2, 'px' )), - (i.transform = + (r.transform = 'translate(-50%, 0)'); - } else i.visibility = 'hidden'; + } else r.visibility = 'hidden'; } - I(u), d(i); + I(u), d(r); } }, [e, n] @@ -90840,31 +89750,31 @@ ); }; }, - 1852: function(e, t, n) { - var r; + 25157: function(e, t, n) { + var i; 'undefined' != typeof self && self, (e.exports = - ((r = n(99196)), + ((i = n(99196)), (function(e) { - function t(r) { - if (n[r]) return n[r].exports; - var i = (n[r] = {i: r, l: !1, exports: {}}); + function t(i) { + if (n[i]) return n[i].exports; + var r = (n[i] = {i, l: !1, exports: {}}); return ( - e[r].call(i.exports, i, i.exports, t), - (i.l = !0), - i.exports + e[i].call(r.exports, r, r.exports, t), + (r.l = !0), + r.exports ); } var n = {}; return ( (t.m = e), (t.c = n), - (t.d = function(e, n, r) { + (t.d = function(e, n, i) { t.o(e, n) || Object.defineProperty(e, n, { configurable: !1, enumerable: !0, - get: r, + get: i, }); }), (t.n = function(e) { @@ -90890,10 +89800,10 @@ })([ function(e, t, n) { 'use strict'; - function r(e, t) { - return A(e) || s(e, t) || o(e, t) || i(); + function i(e, t) { + return A(e) || a(e, t) || o(e, t) || r(); } - function i() { + function r() { throw new TypeError( 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' ); @@ -90901,7 +89811,7 @@ function o(e, t) { if (e) { if ('string' == typeof e) - return a(e, t); + return s(e, t); var n = Object.prototype.toString .call(e) .slice(8, -1); @@ -90915,48 +89825,48 @@ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test( n ) - ? a(e, t) + ? s(e, t) : void 0 ); } } - function a(e, t) { + function s(e, t) { (null == t || t > e.length) && (t = e.length); for ( - var n = 0, r = new Array(t); + var n = 0, i = new Array(t); n < t; n++ ) - r[n] = e[n]; - return r; + i[n] = e[n]; + return i; } - function s(e, t) { + function a(e, t) { if ( 'undefined' != typeof Symbol && Symbol.iterator in Object(e) ) { var n = [], - r = !0, - i = !1, + i = !0, + r = !1, o = void 0; try { for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), + var s, a = e[Symbol.iterator](); + !(i = (s = a.next()).done) && + (n.push(s.value), !t || n.length !== t); - r = !0 + i = !0 ); } catch (e) { - (i = !0), (o = e); + (r = !0), (o = e); } finally { try { - r || - null == s.return || - s.return(); + i || + null == a.return || + a.return(); } finally { - if (i) throw o; + if (r) throw o; } } return n; @@ -91004,14 +89914,14 @@ n = function() { return f(e) || f(t); }, - i = r(l.a.useState(n), 2), - o = i[0], - a = i[1]; + r = i(l.a.useState(n), 2), + o = r[0], + s = r[1]; return ( l.a.useEffect( function() { var e = n(); - C()(o, e) || a(e); + C()(o, e) || s(e); }, [e, t] ), @@ -91022,33 +89932,33 @@ var t = function() { return m(e); }, - n = r(l.a.useState(t), 2), - i = n[0], + n = i(l.a.useState(t), 2), + r = n[0], o = n[1]; return ( l.a.useEffect( function() { var e = t(); - i !== e && o(e); + r !== e && o(e); }, [e] ), - i + r ); }, w = function(e, t) { var n = function() { return u()(e, t || {}, !!t); }, - i = r(l.a.useState(n), 2), - o = i[0], - a = i[1], - s = E(); + r = i(l.a.useState(n), 2), + o = r[0], + s = r[1], + a = E(); return ( l.a.useEffect( function() { return ( - s && a(n()), + a && s(n()), function() { o.dispose(); } @@ -91060,14 +89970,14 @@ ); }, b = function(e) { - var t = r(l.a.useState(e.matches), 2), + var t = i(l.a.useState(e.matches), 2), n = t[0], - i = t[1]; + r = t[1]; return ( l.a.useEffect( function() { var t = function() { - i(e.matches); + r(e.matches); }; return ( e.addListener(t), @@ -91082,55 +89992,55 @@ n ); }, - v = function(e, t, n) { - var r = y(t), - i = B(e); - if (!i) + M = function(e, t, n) { + var i = y(t), + r = B(e); + if (!r) throw new Error( 'Invalid or missing MediaQuery!' ); - var o = w(i, r), - a = b(o), - s = E(); + var o = w(r, i), + s = b(o), + a = E(); return ( l.a.useEffect( function() { - s && n && n(a); + a && n && n(s); }, - [a] + [s] ), - a + s ); }; - t.a = v; + t.a = M; }, function(e, t) { - e.exports = r; + e.exports = i; }, function(e, t, n) { 'use strict'; - function r(e) { + function i(e) { return '-' + e.toLowerCase(); } - function i(e) { - if (s.hasOwnProperty(e)) return s[e]; - var t = e.replace(o, r); - return (s[e] = a.test(t) ? '-' + t : t); + function r(e) { + if (a.hasOwnProperty(e)) return a[e]; + var t = e.replace(o, i); + return (a[e] = s.test(t) ? '-' + t : t); } var o = /[A-Z]/g, - a = /^ms-/, - s = {}; - t.a = i; + s = /^ms-/, + a = {}; + t.a = r; }, function(e, t, n) { 'use strict'; - var r = n(2), - i = n(11), + var i = n(2), + r = n(11), o = function(e) { return 'not '.concat(e); }, - a = function(e, t) { - var n = Object(r.a)(e); + s = function(e, t) { + var n = Object(i.a)(e); return ( 'number' == typeof t && (t = ''.concat(t, 'px')), @@ -91143,20 +90053,20 @@ .concat(t, ')') ); }, - s = function(e) { + a = function(e) { return e.join(' and '); }, A = function(e) { var t = []; return ( - Object.keys(i.a.all).forEach( + Object.keys(r.a.all).forEach( function(n) { - var r = e[n]; - null != r && - t.push(a(n, r)); + var i = e[n]; + null != i && + t.push(s(n, i)); } ), - s(t) + a(t) ); }; t.a = A; @@ -91172,86 +90082,86 @@ }, function(e, t, n) { 'use strict'; - var r = n(1), - i = n.n(r).a.createContext(); - t.a = i; + var i = n(1), + r = n.n(i).a.createContext(); + t.a = r; }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0, }); - var r = n(0), - i = n(17), + var i = n(0), + r = n(17), o = n(3), - a = n(6); + s = n(6); n.d(t, 'default', function() { - return i.a; + return r.a; }), n.d(t, 'useMediaQuery', function() { - return r.a; + return i.a; }), n.d(t, 'toQuery', function() { return o.a; }), n.d(t, 'Context', function() { - return a.a; + return s.a; }); }, function(e, t, n) { 'use strict'; - function r(e, t, n) { - function r(e) { + function i(e, t, n) { + function i(e) { l && l.addListener(e); } - function i(e) { + function r(e) { l && l.removeListener(e); } - function s(e) { + function a(e) { (c.matches = e.matches), (c.media = e.media); } function A() { - l && l.removeListener(s); + l && l.removeListener(a); } var c = this; - if (a && !n) { - var l = a.call(window, e); + if (s && !n) { + var l = s.call(window, e); (this.matches = l.matches), (this.media = l.media), - l.addListener(s); + l.addListener(a); } else (this.matches = o(e, t)), (this.media = e); - (this.addListener = r), - (this.removeListener = i), + (this.addListener = i), + (this.removeListener = r), (this.dispose = A); } - function i(e, t, n) { - return new r(e, t, n); + function r(e, t, n) { + return new i(e, t, n); } var o = n(9).match, - a = + s = 'undefined' != typeof window ? window.matchMedia : null; - e.exports = i; + e.exports = r; }, function(e, t, n) { 'use strict'; - function r(e, t) { - return i(e).some(function(e) { + function i(e, t) { + return r(e).some(function(e) { var n = e.inverse, - r = + i = 'all' === e.type || t.type === e.type; - if ((r && n) || (!r && !n)) return !1; - var i = e.expressions.every(function( + if ((i && n) || (!i && !n)) return !1; + var r = e.expressions.every(function( e ) { var n = e.feature, - r = e.modifier, - i = e.value, + i = e.modifier, + r = e.value, A = t[n]; if (!A) return !1; switch (n) { @@ -91259,59 +90169,59 @@ case 'scan': return ( A.toLowerCase() === - i.toLowerCase() + r.toLowerCase() ); case 'width': case 'height': case 'device-width': case 'device-height': - (i = s(i)), (A = s(A)); + (r = a(r)), (A = a(A)); break; case 'resolution': - (i = a(i)), (A = a(A)); + (r = s(r)), (A = s(A)); break; case 'aspect-ratio': case 'device-aspect-ratio': case 'device-pixel-ratio': - (i = o(i)), (A = o(A)); + (r = o(r)), (A = o(A)); break; case 'grid': case 'color': case 'color-index': case 'monochrome': - (i = parseInt(i, 10) || 1), + (r = parseInt(r, 10) || 1), (A = parseInt(A, 10) || 0); } - switch (r) { + switch (i) { case 'min': - return A >= i; + return A >= r; case 'max': - return A <= i; + return A <= r; default: - return A === i; + return A === r; } }); - return (i && !n) || (!i && n); + return (r && !n) || (!r && n); }); } - function i(e) { + function r(e) { return e.split(',').map(function(e) { var t = (e = e.trim()).match(A), n = t[1], - r = t[2], - i = t[3] || '', + i = t[2], + r = t[3] || '', o = {}; return ( (o.inverse = !!n && 'not' === n.toLowerCase()), - (o.type = r - ? r.toLowerCase() + (o.type = i + ? i.toLowerCase() : 'all'), - (i = i.match(/\([^\)]+\)/g) || []), - (o.expressions = i.map(function(e) { + (r = r.match(/\([^\)]+\)/g) || []), + (o.expressions = r.map(function(e) { var t = e.match(c), n = t[1] .toLowerCase() @@ -91338,7 +90248,7 @@ n ); } - function a(e) { + function s(e) { var t = parseFloat(e); switch (String(e).match(u)[1]) { case 'dpcm': @@ -91349,7 +90259,7 @@ return t; } } - function s(e) { + function a(e) { var t = parseFloat(e); switch (String(e).match(g)[1]) { case 'em': @@ -91369,7 +90279,7 @@ return t; } } - (t.match = r), (t.parse = i); + (t.match = i), (t.parse = r); var A = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, c = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, l = /^(?:(min|max)-)?(.+)/, @@ -91378,53 +90288,53 @@ }, function(e, t, n) { 'use strict'; - function r(e, t) { + function i(e, t) { if (e === t) return !0; if (!e || !t) return !1; var n = Object.keys(e), - r = Object.keys(t), - i = n.length; - if (r.length !== i) return !1; - for (var o = 0; o < i; o++) { - var a = n[o]; + i = Object.keys(t), + r = n.length; + if (i.length !== r) return !1; + for (var o = 0; o < r; o++) { + var s = n[o]; if ( - e[a] !== t[a] || + e[s] !== t[s] || !Object.prototype.hasOwnProperty.call( t, - a + s ) ) return !1; } return !0; } - e.exports = r; + e.exports = i; }, function(e, t, n) { 'use strict'; - function r(e, t) { + function i(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); + var i = Object.getOwnPropertySymbols(e); t && - (r = r.filter(function(t) { + (i = i.filter(function(t) { return Object.getOwnPropertyDescriptor( e, t ).enumerable; })), - n.push.apply(n, r); + n.push.apply(n, i); } return n; } - function i(e) { + function r(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? r(Object(n), !0).forEach(function( + ? i(Object(n), !0).forEach(function( t ) { o(e, t, n[t]); @@ -91436,7 +90346,7 @@ n ) ) - : r(Object(n)).forEach(function(t) { + : i(Object(n)).forEach(function(t) { Object.defineProperty( e, t, @@ -91462,35 +90372,35 @@ e ); } - var a = n(12), - s = n.n(a), - A = s.a.oneOfType([s.a.string, s.a.number]), + var s = n(12), + a = n.n(s), + A = a.a.oneOfType([a.a.string, a.a.number]), c = { - orientation: s.a.oneOf([ + orientation: a.a.oneOf([ 'portrait', 'landscape', ]), - scan: s.a.oneOf([ + scan: a.a.oneOf([ 'progressive', 'interlace', ]), - aspectRatio: s.a.string, - deviceAspectRatio: s.a.string, + aspectRatio: a.a.string, + deviceAspectRatio: a.a.string, height: A, deviceHeight: A, width: A, deviceWidth: A, - color: s.a.bool, - colorIndex: s.a.bool, - monochrome: s.a.bool, + color: a.a.bool, + colorIndex: a.a.bool, + monochrome: a.a.bool, resolution: A, }, - l = i( + l = r( { - minAspectRatio: s.a.string, - maxAspectRatio: s.a.string, - minDeviceAspectRatio: s.a.string, - maxDeviceAspectRatio: s.a.string, + minAspectRatio: a.a.string, + maxAspectRatio: a.a.string, + minDeviceAspectRatio: a.a.string, + maxDeviceAspectRatio: a.a.string, minHeight: A, maxHeight: A, minDeviceHeight: A, @@ -91499,31 +90409,31 @@ maxWidth: A, minDeviceWidth: A, maxDeviceWidth: A, - minColor: s.a.number, - maxColor: s.a.number, - minColorIndex: s.a.number, - maxColorIndex: s.a.number, - minMonochrome: s.a.number, - maxMonochrome: s.a.number, + minColor: a.a.number, + maxColor: a.a.number, + minColorIndex: a.a.number, + maxColorIndex: a.a.number, + minMonochrome: a.a.number, + maxMonochrome: a.a.number, minResolution: A, maxResolution: A, }, c ), g = { - all: s.a.bool, - grid: s.a.bool, - aural: s.a.bool, - braille: s.a.bool, - handheld: s.a.bool, - print: s.a.bool, - projection: s.a.bool, - screen: s.a.bool, - tty: s.a.bool, - tv: s.a.bool, - embossed: s.a.bool, - }, - u = i(i({}, g), l); + all: a.a.bool, + grid: a.a.bool, + aural: a.a.bool, + braille: a.a.bool, + handheld: a.a.bool, + print: a.a.bool, + projection: a.a.bool, + screen: a.a.bool, + tty: a.a.bool, + tv: a.a.bool, + embossed: a.a.bool, + }, + u = r(r({}, g), l); (c.type = Object.keys(g)), (t.a = { all: u, @@ -91533,8 +90443,8 @@ }); }, function(e, t, n) { - var r = n(4); - e.exports = n(14)(r.isElement, !0); + var i = n(4); + e.exports = n(14)(i.isElement, !0); }, function(e, t, n) { 'use strict'; @@ -91544,22 +90454,22 @@ 'string' == typeof e || 'function' == typeof e || e === f || - e === v || + e === M || e === y || e === E || e === N || e === S || ('object' == typeof e && null !== e && - (e.$$typeof === F || + (e.$$typeof === x || e.$$typeof === Q || e.$$typeof === B || e.$$typeof === w || - e.$$typeof === M || + e.$$typeof === v || e.$$typeof === D || e.$$typeof === T || e.$$typeof === Y || - e.$$typeof === x)) + e.$$typeof === F)) ); } function n(e) { @@ -91573,22 +90483,22 @@ var n = e.type; switch (n) { case b: - case v: + case M: case f: case y: case E: case N: return n; default: - var r = + var i = n && n.$$typeof; - switch (r) { + switch (i) { case w: - case M: - case F: + case v: + case x: case Q: case B: - return r; + return i; default: return t; } @@ -91598,26 +90508,26 @@ } } } - function r(e) { + function i(e) { return ( V || ((V = !0), console.warn( 'The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.' )), - i(e) || n(e) === b + r(e) || n(e) === b ); } - function i(e) { - return n(e) === v; + function r(e) { + return n(e) === M; } function o(e) { return n(e) === w; } - function a(e) { + function s(e) { return n(e) === B; } - function s(e) { + function a(e) { return ( 'object' == typeof e && null !== e && @@ -91625,13 +90535,13 @@ ); } function A(e) { - return n(e) === M; + return n(e) === v; } function c(e) { return n(e) === f; } function l(e) { - return n(e) === F; + return n(e) === x; } function g(e) { return n(e) === Q; @@ -91675,12 +90585,12 @@ b = I ? Symbol.for('react.async_mode') : 60111, - v = I + M = I ? Symbol.for( 'react.concurrent_mode' ) : 60111, - M = I + v = I ? Symbol.for('react.forward_ref') : 60112, N = I @@ -91692,10 +90602,10 @@ Q = I ? Symbol.for('react.memo') : 60115, - F = I + x = I ? Symbol.for('react.lazy') : 60116, - x = I + F = I ? Symbol.for('react.block') : 60121, D = I @@ -91708,14 +90618,14 @@ ? Symbol.for('react.scope') : 60119, R = b, - _ = v, + _ = M, U = w, O = B, - k = p, - G = M, - L = f, - j = F, - z = Q, + G = p, + L = v, + k = f, + z = x, + j = Q, P = m, H = y, J = E, @@ -91725,20 +90635,20 @@ (t.ConcurrentMode = _), (t.ContextConsumer = U), (t.ContextProvider = O), - (t.Element = k), - (t.ForwardRef = G), - (t.Fragment = L), - (t.Lazy = j), - (t.Memo = z), + (t.Element = G), + (t.ForwardRef = L), + (t.Fragment = k), + (t.Lazy = z), + (t.Memo = j), (t.Portal = P), (t.Profiler = H), (t.StrictMode = J), (t.Suspense = W), - (t.isAsyncMode = r), - (t.isConcurrentMode = i), + (t.isAsyncMode = i), + (t.isConcurrentMode = r), (t.isContextConsumer = o), - (t.isContextProvider = a), - (t.isElement = s), + (t.isContextProvider = s), + (t.isElement = a), (t.isForwardRef = A), (t.isFragment = c), (t.isLazy = l), @@ -91753,13 +90663,13 @@ }, function(e, t, n) { 'use strict'; - function r() { + function i() { return null; } - var i = n(4), + var r = n(4), o = n(15), - a = n(5), - s = n(16), + s = n(5), + a = n(16), A = Function.call.bind( Object.prototype.hasOwnProperty ), @@ -91788,11 +90698,11 @@ (this.stack = ''); } function u(e) { - function n(n, o, s, A, l, u, d) { + function n(n, o, a, A, l, u, d) { if ( ((A = A || Q), - (u = u || s), - d !== a) + (u = u || a), + d !== s) ) { if (t) { var h = new Error( @@ -91806,9 +90716,9 @@ 'undefined' != typeof console ) { - var C = A + ':' + s; - !r[C] && - i < 3 && + var C = A + ':' + a; + !i[C] && + r < 3 && (c( 'You are manually calling a React.PropTypes validation function for the `' + u + @@ -91816,14 +90726,14 @@ A + '`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.' ), - (r[C] = !0), - i++); + (i[C] = !0), + r++); } } - return null == o[s] + return null == o[a] ? n ? new g( - null === o[s] + null === o[a] ? 'The ' + l + ' `' + @@ -91840,10 +90750,10 @@ '`, but its value is `undefined`.' ) : null - : e(o, s, A, l, u); + : e(o, a, A, l, u); } - var r = {}, - i = 0, + var i = {}, + r = 0, o = n.bind(null, !1); return ( (o.isRequired = n.bind( @@ -91854,18 +90764,18 @@ ); } function d(e) { - function t(t, n, r, i, o, a) { - var s = t[n]; - return w(s) !== e + function t(t, n, i, r, o, s) { + var a = t[n]; + return w(a) !== e ? new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + - b(s) + + b(a) + '` supplied to `' + - r + + i + '`, expected `' + e + '`.' @@ -91875,40 +90785,40 @@ return u(t); } function h(e) { - function t(t, n, r, i, o) { + function t(t, n, i, r, o) { if ('function' != typeof e) return new g( 'Property `' + o + '` of component `' + - r + + i + '` has invalid PropType notation inside arrayOf.' ); - var s = t[n]; - if (!Array.isArray(s)) + var a = t[n]; + if (!Array.isArray(a)) return new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + - w(s) + + w(a) + '` supplied to `' + - r + + i + '`, expected an array.' ); for ( var A = 0; - A < s.length; + A < a.length; A++ ) { var c = e( - s, + a, A, - r, i, + r, o + '[' + A + ']', - a + s ); if (c instanceof Error) return c; @@ -91918,20 +90828,20 @@ return u(t); } function C(e) { - function t(t, n, r, i, o) { + function t(t, n, i, r, o) { if (!(t[n] instanceof e)) { - var a = e.name || Q; + var s = e.name || Q; return new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + - M(t[n]) + + v(t[n]) + '` supplied to `' + - r + + i + '`, expected instance of `' + - a + + s + '`.' ); } @@ -91940,13 +90850,13 @@ return u(t); } function I(e) { - function t(t, n, r, i, o) { + function t(t, n, i, r, o) { for ( - var a = t[n], s = 0; - s < e.length; - s++ + var s = t[n], a = 0; + a < e.length; + a++ ) - if (l(a, e[s])) return null; + if (l(s, e[a])) return null; var A = JSON.stringify( e, function(e, t) { @@ -91957,13 +90867,13 @@ ); return new g( 'Invalid ' + - i + + r + ' `' + o + '` of value `' + - String(a) + + String(s) + '` supplied to `' + - r + + i + '`, expected one of ' + A + '.' @@ -91978,41 +90888,41 @@ ' arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' : 'Invalid argument supplied to oneOf, expected an array.' ), - r); + i); } function p(e) { - function t(t, n, r, i, o) { + function t(t, n, i, r, o) { if ('function' != typeof e) return new g( 'Property `' + o + '` of component `' + - r + + i + '` has invalid PropType notation inside objectOf.' ); - var s = t[n], - c = w(s); + var a = t[n], + c = w(a); if ('object' !== c) return new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + c + '` supplied to `' + - r + + i + '`, expected an object.' ); - for (var l in s) - if (A(s, l)) { + for (var l in a) + if (A(a, l)) { var u = e( - s, + a, l, - r, i, + r, o + '.' + l, - a + s ); if (u instanceof Error) return u; @@ -92022,31 +90932,31 @@ return u(t); } function m(e) { - function t(t, n, r, i, o) { + function t(t, n, i, r, o) { for ( - var s = 0; - s < e.length; - s++ + var a = 0; + a < e.length; + a++ ) if ( null == - (0, e[s])( + (0, e[a])( t, n, - r, i, + r, o, - a + s ) ) return null; return new g( 'Invalid ' + - i + + r + ' `' + o + '` supplied to `' + - r + + i + '`.' ); } @@ -92055,50 +90965,50 @@ c( 'Invalid argument supplied to oneOfType, expected an instance of array.' ), - r + i ); for (var n = 0; n < e.length; n++) { - var i = e[n]; - if ('function' != typeof i) + var r = e[n]; + if ('function' != typeof r) return ( c( 'Invalid argument supplied to oneOfType. Expected an array of check functions, but received ' + - v(i) + + M(r) + ' at index ' + n + '.' ), - r + i ); } return u(t); } function f(e) { - function t(t, n, r, i, o) { - var s = t[n], - A = w(s); + function t(t, n, i, r, o) { + var a = t[n], + A = w(a); if ('object' !== A) return new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + A + '` supplied to `' + - r + + i + '`, expected `object`.' ); for (var c in e) { var l = e[c]; if (l) { var u = l( - s, + a, c, - r, i, + r, o + '.' + c, - a + s ); if (u) return u; } @@ -92108,19 +91018,19 @@ return u(t); } function E(e) { - function t(t, n, r, i, s) { + function t(t, n, i, r, a) { var A = t[n], c = w(A); if ('object' !== c) return new g( 'Invalid ' + - i + + r + ' `' + - s + + a + '` of type `' + c + '` supplied to `' + - r + + i + '`, expected `object`.' ); var l = o({}, t[n], e); @@ -92129,13 +91039,13 @@ if (!d) return new g( 'Invalid ' + - i + + r + ' `' + - s + + a + '` key `' + u + '` supplied to `' + - r + + i + '`.\nBad object: ' + JSON.stringify( t[n], @@ -92154,10 +91064,10 @@ var h = d( A, u, - r, i, - s + '.' + u, - a + r, + a + '.' + u, + s ); if (h) return h; } @@ -92178,28 +91088,28 @@ return t.every(y); if (null === t || e(t)) return !0; - var r = n(t); - if (!r) return !1; - var i, - o = r.call(t); - if (r !== t.entries) { + var i = n(t); + if (!i) return !1; + var r, + o = i.call(t); + if (i !== t.entries) { for ( ; - !(i = o.next()) + !(r = o.next()) .done; ) - if (!y(i.value)) + if (!y(r.value)) return !1; } else for ( ; - !(i = o.next()) + !(r = o.next()) .done; ) { - var a = i.value; - if (a && !y(a[1])) + var s = r.value; + if (s && !y(s[1])) return !1; } return !0; @@ -92240,7 +91150,7 @@ } return t; } - function v(e) { + function M(e) { var t = b(e); switch (t) { case 'array': @@ -92254,7 +91164,7 @@ return t; } } - function M(e) { + function v(e) { return e.constructor && e.constructor.name ? e.constructor.name @@ -92265,7 +91175,7 @@ Symbol.iterator, S = '@@iterator', Q = '<>', - F = { + x = { array: d('array'), bool: d('boolean'), func: d('function'), @@ -92273,41 +91183,41 @@ object: d('object'), string: d('string'), symbol: d('symbol'), - any: u(r), + any: u(i), arrayOf: h, element: (function() { - function t(t, n, r, i, o) { - var a = t[n]; - return e(a) + function t(t, n, i, r, o) { + var s = t[n]; + return e(s) ? null : new g( 'Invalid ' + - i + + r + ' `' + o + '` of type `' + - w(a) + + w(s) + '` supplied to `' + - r + + i + '`, expected a single ReactElement.' ); } return u(t); })(), elementType: (function() { - function e(e, t, n, r, o) { - var a = e[t]; - return i.isValidElementType( - a + function e(e, t, n, i, o) { + var s = e[t]; + return r.isValidElementType( + s ) ? null : new g( 'Invalid ' + - r + + i + ' `' + o + '` of type `' + - w(a) + + w(s) + '` supplied to `' + n + '`, expected a single ReactElement type.' @@ -92317,14 +91227,14 @@ })(), instanceOf: C, node: (function() { - function e(e, t, n, r, i) { + function e(e, t, n, i, r) { return y(e[t]) ? null : new g( 'Invalid ' + - r + - ' `' + i + + ' `' + + r + '` supplied to `' + n + '`, expected a ReactNode.' @@ -92340,26 +91250,26 @@ }; return ( (g.prototype = Error.prototype), - (F.checkPropTypes = s), - (F.resetWarningCache = - s.resetWarningCache), - (F.PropTypes = F), - F + (x.checkPropTypes = a), + (x.resetWarningCache = + a.resetWarningCache), + (x.PropTypes = x), + x ); }); }, function(e, t, n) { 'use strict'; - function r(e) { + function i(e) { if (null == e) throw new TypeError( 'Object.assign cannot be called with null or undefined' ); return Object(e); } - var i = Object.getOwnPropertySymbols, + var r = Object.getOwnPropertySymbols, o = Object.prototype.hasOwnProperty, - a = Object.prototype.propertyIsEnumerable; + s = Object.prototype.propertyIsEnumerable; e.exports = (function() { try { if (!Object.assign) return !1; @@ -92383,16 +91293,16 @@ .join('') ) return !1; - var r = {}; + var i = {}; return ( 'abcdefghijklmnopqrst' .split('') .forEach(function(e) { - r[e] = e; + i[e] = e; }), 'abcdefghijklmnopqrst' === Object.keys( - Object.assign({}, r) + Object.assign({}, i) ).join('') ); } catch (e) { @@ -92402,7 +91312,7 @@ ? Object.assign : function(e, t) { for ( - var n, s, A = r(e), c = 1; + var n, a, A = i(e), c = 1; c < arguments.length; c++ ) { @@ -92410,15 +91320,15 @@ arguments[c] ))) o.call(n, l) && (A[l] = n[l]); - if (i) { - s = i(n); + if (r) { + a = r(n); for ( var g = 0; - g < s.length; + g < a.length; g++ ) - a.call(n, s[g]) && - (A[s[g]] = n[s[g]]); + s.call(n, a[g]) && + (A[a[g]] = n[a[g]]); } } return A; @@ -92426,14 +91336,14 @@ }, function(e, t, n) { 'use strict'; - function r(e, t, n, r, A) { + function i(e, t, n, i, A) { for (var c in e) - if (s(e, c)) { + if (a(e, c)) { var l; try { if ('function' != typeof e[c]) { var g = Error( - (r || 'React class') + + (i || 'React class') + ': ' + n + ' type `' + @@ -92446,15 +91356,15 @@ 'Invariant Violation'), g); } - l = e[c](t, c, r, n, null, o); + l = e[c](t, c, i, n, null, o); } catch (e) { l = e; } if ( (!l || l instanceof Error || - i( - (r || 'React class') + + r( + (i || 'React class') + ': type specification of ' + n + ' `' + @@ -92464,11 +91374,11 @@ '. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).' ), l instanceof Error && - !(l.message in a)) + !(l.message in s)) ) { - a[l.message] = !0; + s[l.message] = !0; var u = A ? A() : ''; - i( + r( 'Failed ' + n + ' type: ' + @@ -92478,13 +91388,13 @@ } } } - var i = function() {}, + var r = function() {}, o = n(5), - a = {}, - s = Function.call.bind( + s = {}, + a = Function.call.bind( Object.prototype.hasOwnProperty ); - (i = function(e) { + (r = function(e) { var t = 'Warning: ' + e; 'undefined' != typeof console && console.error(t); @@ -92492,22 +91402,22 @@ throw new Error(t); } catch (e) {} }), - (r.resetWarningCache = function() { - a = {}; + (i.resetWarningCache = function() { + s = {}; }), - (e.exports = r); + (e.exports = i); }, function(e, t, n) { 'use strict'; - function r(e, t) { + function i(e, t) { if (null == e) return {}; var n, - r, - o = i(e, t); + i, + o = r(e, t); if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) - (n = a[r]), + var s = Object.getOwnPropertySymbols(e); + for (i = 0; i < s.length; i++) + (n = s[i]), t.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call( e, @@ -92517,65 +91427,65 @@ } return o; } - function i(e, t) { + function r(e, t) { if (null == e) return {}; var n, - r, - i = {}, + i, + r = {}, o = Object.keys(e); - for (r = 0; r < o.length; r++) - (n = o[r]), - t.indexOf(n) >= 0 || (i[n] = e[n]); - return i; + for (i = 0; i < o.length; i++) + (n = o[i]), + t.indexOf(n) >= 0 || (r[n] = e[n]); + return r; } function o(e) { var t = e.children, n = e.device, - i = e.onChange, - o = r(e, [ + r = e.onChange, + o = i(e, [ 'children', 'device', 'onChange', ]), - s = Object(a.a)(o, n, i); + a = Object(s.a)(o, n, r); return 'function' == typeof t - ? t(s) - : s + ? t(a) + : a ? t : null; } t.a = o; - var a = n(0); + var s = n(0); }, ]))); }, - 71167: (e, t, n) => { - const r = n(54751), - i = n(67060).renderToString, - o = n(61351), - a = n(13322), - s = n(85330); + 87712: (e, t, n) => { + const i = n(34863), + r = n(18472).renderToString, + o = n(72512), + s = n(5573), + a = n(82985); e.exports = function(e) { const t = e || {}, n = t.throwOnError || !1; return function(e, o) { - function a(e) { - const r = e.properties.className || [], - a = r.includes('math-inline'), - g = r.includes('math-display'); - if (!a && !g) return; - const u = s(e); + function s(e) { + const i = e.properties.className || [], + s = i.includes('math-inline'), + g = i.includes('math-display'); + if (!s && !g) return; + const u = a(e); let d; try { - d = i( + d = r( u, A({}, t, {displayMode: g, throwOnError: !0}) ); - } catch (r) { - const a = n ? 'fail' : 'message', - s = [l, r.name.toLowerCase()].join(':'); - o[a](r.message, e.position, s), - (d = i( + } catch (i) { + const s = n ? 'fail' : 'message', + a = [l, i.name.toLowerCase()].join(':'); + o[s](i.message, e.position, a), + (d = r( u, A({}, t, { displayMode: g, @@ -92586,30 +91496,20 @@ } e.children = c.parse(d).children; } - r(e, 'element', a); + i(e, 'element', s); }; }; const A = Object.assign, - c = o().use(a, {fragment: !0, position: !1}), + c = o().use(s, {fragment: !0, position: !1}), l = 'rehype-katex'; }, - 43038: e => { + 87901: e => { 'use strict'; e.exports = function(e) { if (e) throw e; }; }, - 88348: e => { - e.exports = function(e) { - return ( - null != e && - null != e.constructor && - 'function' == typeof e.constructor.isBuffer && - e.constructor.isBuffer(e) - ); - }; - }, - 90973: e => { + 8048: e => { 'use strict'; e.exports = e => { if ('[object Object]' !== Object.prototype.toString.call(e)) @@ -92618,7 +91518,7 @@ return null === t || t === Object.prototype; }; }, - 67060: function(e) { + 18472: function(e) { var t; 'undefined' != typeof self && self, (t = function() { @@ -92626,12 +91526,12 @@ 'use strict'; var e = { d: function(t, n) { - for (var r in n) - e.o(n, r) && - !e.o(t, r) && - Object.defineProperty(t, r, { + for (var i in n) + e.o(n, i) && + !e.o(t, i) && + Object.defineProperty(t, i, { enumerable: !0, - get: n[r], + get: n[i], }); }, o: function(e, t) { @@ -92644,43 +91544,43 @@ t = {}; e.d(t, { default: function() { - return Jr; + return Ji; }, }); var n = function e(t, n) { this.position = void 0; - var r, - i = 'KaTeX parse error: ' + t, + var i, + r = 'KaTeX parse error: ' + t, o = n && n.loc; if (o && o.start <= o.end) { - var a = o.lexer.input; - r = o.start; - var s = o.end; - r === a.length - ? (i += ' at end of input: ') - : (i += - ' at position ' + (r + 1) + ': '); - var A = a.slice(r, s).replace(/[^]/g, '$&̲'); - i += - (r > 15 - ? '…' + a.slice(r - 15, r) - : a.slice(0, r)) + + var s = o.lexer.input; + i = o.start; + var a = o.end; + i === s.length + ? (r += ' at end of input: ') + : (r += + ' at position ' + (i + 1) + ': '); + var A = s.slice(i, a).replace(/[^]/g, '$&̲'); + r += + (i > 15 + ? '…' + s.slice(i - 15, i) + : s.slice(0, i)) + A + - (s + 15 < a.length - ? a.slice(s, s + 15) + '…' - : a.slice(s)); + (a + 15 < s.length + ? s.slice(a, a + 15) + '…' + : s.slice(a)); } - var c = new Error(i); + var c = new Error(r); return ( (c.name = 'ParseError'), (c.__proto__ = e.prototype), - (c.position = r), + (c.position = i), c ); }; n.prototype.__proto__ = Error.prototype; - var r = n, - i = /([A-Z])/g, + var i = n, + r = /([A-Z])/g, o = { '&': '&', '>': '>', @@ -92688,8 +91588,8 @@ '"': '"', "'": ''', }, - a = /[&><"']/g, - s = function e(t) { + s = /[&><"']/g, + a = function e(t) { return 'ordgroup' === t.type || 'color' === t.type ? 1 === t.body.length @@ -92707,7 +91607,7 @@ return void 0 === e ? t : e; }, escape: function(e) { - return String(e).replace(a, function( + return String(e).replace(s, function( e ) { return o[e]; @@ -92715,12 +91615,12 @@ }, hyphenate: function(e) { return e - .replace(i, '-$1') + .replace(r, '-$1') .toLowerCase(); }, - getBaseElem: s, + getBaseElem: a, isCharacterBox: function(e) { - var t = s(e); + var t = a(e); return ( 'mathord' === t.type || 'textord' === t.type || @@ -92799,14 +91699,14 @@ var t = e.prototype; return ( (t.reportNonstrict = function(e, t, n) { - var i = this.strict; + var r = this.strict; if ( - ('function' == typeof i && - (i = i(e, t, n)), - i && 'ignore' !== i) + ('function' == typeof r && + (r = r(e, t, n)), + r && 'ignore' !== r) ) { - if (!0 === i || 'error' === i) - throw new r( + if (!0 === r || 'error' === r) + throw new i( "LaTeX-incompatible input and strict mode is set to 'error': " + t + ' [' + @@ -92814,7 +91714,7 @@ ']', n ); - 'warn' === i + 'warn' === r ? 'undefined' != typeof console && console.warn( @@ -92828,7 +91728,7 @@ typeof console && console.warn( "LaTeX-incompatible input and strict mode is set to unrecognized '" + - i + + r + "': " + t + ' [' + @@ -92842,19 +91742,19 @@ t, n ) { - var r = this.strict; - if ('function' == typeof r) + var i = this.strict; + if ('function' == typeof i) try { - r = r(e, t, n); + i = i(e, t, n); } catch (e) { - r = 'error'; + i = 'error'; } return !( - !r || - 'ignore' === r || - (!0 !== r && - 'error' !== r && - ('warn' === r + !i || + 'ignore' === i || + (!0 !== i && + 'error' !== i && + ('warn' === i ? ('undefined' != typeof console && console.warn( @@ -92869,7 +91769,7 @@ typeof console && console.warn( "LaTeX-incompatible input and strict mode is set to unrecognized '" + - r + + i + "': " + t + ' [' + @@ -93151,7 +92051,7 @@ e ); })(), - v = { + M = { 'AMS-Regular': { 32: [0, 0, 0, 0, 0.25], 65: [0, 0.68889, 0, 0, 0.72222], @@ -96643,7 +95543,7 @@ 9251: [0.11111, 0.21944, 0, 0, 0.525], }, }, - M = { + v = { slant: [0.25, 0.25, 0.25], space: [0, 0, 0], stretch: [0, 0, 0], @@ -96752,34 +95652,34 @@ я: 'r', }; function S(e, t, n) { - if (!v[t]) + if (!M[t]) throw new Error( 'Font metrics not found for font: ' + t + '.' ); - var r = e.charCodeAt(0), - i = v[t][r]; + var i = e.charCodeAt(0), + r = M[t][i]; if ( - (!i && + (!r && e[0] in N && - ((r = N[e[0]].charCodeAt(0)), - (i = v[t][r])), - i || + ((i = N[e[0]].charCodeAt(0)), + (r = M[t][i])), + r || 'text' !== n || - (y(r) && (i = v[t][77])), - i) + (y(i) && (r = M[t][77])), + r) ) return { - depth: i[0], - height: i[1], - italic: i[2], - skew: i[3], - width: i[4], + depth: r[0], + height: r[1], + italic: r[2], + skew: r[3], + width: r[4], }; } var Q = {}, - F = [ + x = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -96792,7 +95692,7 @@ [10, 8, 7], [11, 10, 9], ], - x = [ + F = [ 0.5, 0.6, 0.7, @@ -96808,7 +95708,7 @@ D = function(e, t) { return t.size < 2 ? e - : F[e - 1][t.size - 1]; + : x[e - 1][t.size - 1]; }, T = (function() { function e(t) { @@ -96839,7 +95739,7 @@ (this.fontShape = t.fontShape || ''), (this.sizeMultiplier = - x[this.size - 1]), + F[this.size - 1]), (this.maxSize = t.maxSize), (this.minRuleThickness = t.minRuleThickness), @@ -96862,9 +95762,9 @@ minRuleThickness: this .minRuleThickness, }; - for (var r in t) - t.hasOwnProperty(r) && - (n[r] = t[r]); + for (var i in t) + t.hasOwnProperty(i) && + (n[i] = t[i]); return new e(n); }), (t.havingStyle = function(e) { @@ -96888,7 +95788,7 @@ style: this.style.text(), size: e, textSize: e, - sizeMultiplier: x[e - 1], + sizeMultiplier: F[e - 1], }); }), (t.havingBaseStyle = function(t) { @@ -96986,15 +95886,15 @@ ) { var n = (Q[t] = { cssEmPerMu: - M.quad[t] / + v.quad[t] / 18, }); - for (var r in M) - M.hasOwnProperty( - r + for (var i in v) + v.hasOwnProperty( + i ) && - (n[r] = - M[r][ + (n[i] = + v[i][ t ]); } @@ -97044,41 +95944,41 @@ else if ('mu' === e.unit) n = t.fontMetrics().cssEmPerMu; else { - var i; + var r; if ( - ((i = t.style.isTight() + ((r = t.style.isTight() ? t.havingStyle(t.style.text()) : t), 'ex' === e.unit) ) - n = i.fontMetrics().xHeight; + n = r.fontMetrics().xHeight; else { if ('em' !== e.unit) - throw new r( + throw new i( "Invalid unit: '" + e.unit + "'" ); - n = i.fontMetrics().quad; + n = r.fontMetrics().quad; } - i !== t && + r !== t && (n *= - i.sizeMultiplier / + r.sizeMultiplier / t.sizeMultiplier); } return Math.min(e.number * n, t.maxSize); }, - k = function(e) { + G = function(e) { return +e.toFixed(4) + 'em'; }, - G = function(e) { + L = function(e) { return e .filter(function(e) { return e; }) .join(' '); }, - L = function(e, t, n) { + k = function(e, t, n) { if ( ((this.classes = e || []), (this.attributes = {}), @@ -97090,58 +95990,58 @@ ) { t.style.isTight() && this.classes.push('mtight'); - var r = t.getColor(); - r && (this.style.color = r); + var i = t.getColor(); + i && (this.style.color = i); } }, - j = function(e) { + z = function(e) { var t = document.createElement(e); - for (var n in ((t.className = G( + for (var n in ((t.className = L( this.classes )), this.style)) this.style.hasOwnProperty(n) && (t.style[n] = this.style[n]); - for (var r in this.attributes) - this.attributes.hasOwnProperty(r) && + for (var i in this.attributes) + this.attributes.hasOwnProperty(i) && t.setAttribute( - r, - this.attributes[r] + i, + this.attributes[i] ); for ( - var i = 0; - i < this.children.length; - i++ + var r = 0; + r < this.children.length; + r++ ) t.appendChild( - this.children[i].toNode() + this.children[r].toNode() ); return t; }, - z = function(e) { + j = function(e) { var t = '<' + e; this.classes.length && (t += ' class="' + - A.escape(G(this.classes)) + + A.escape(L(this.classes)) + '"'); var n = ''; - for (var r in this.style) - this.style.hasOwnProperty(r) && + for (var i in this.style) + this.style.hasOwnProperty(i) && (n += - A.hyphenate(r) + + A.hyphenate(i) + ':' + - this.style[r] + + this.style[i] + ';'); - for (var i in (n && + for (var r in (n && (t += ' style="' + A.escape(n) + '"'), this.attributes)) - this.attributes.hasOwnProperty(i) && + this.attributes.hasOwnProperty(r) && (t += ' ' + - i + + r + '="' + - A.escape(this.attributes[i]) + + A.escape(this.attributes[r]) + '"'); t += '>'; for ( @@ -97153,7 +96053,7 @@ return (t += ''); }, P = (function() { - function e(e, t, n, r) { + function e(e, t, n, i) { (this.children = void 0), (this.attributes = void 0), (this.classes = void 0), @@ -97162,7 +96062,7 @@ (this.width = void 0), (this.maxFontSize = void 0), (this.style = void 0), - L.call(this, e, n, r), + k.call(this, e, n, i), (this.children = t || []); } var t = e.prototype; @@ -97174,16 +96074,16 @@ return A.contains(this.classes, e); }), (t.toNode = function() { - return j.call(this, 'span'); + return z.call(this, 'span'); }), (t.toMarkup = function() { - return z.call(this, 'span'); + return j.call(this, 'span'); }), e ); })(), H = (function() { - function e(e, t, n, r) { + function e(e, t, n, i) { (this.children = void 0), (this.attributes = void 0), (this.classes = void 0), @@ -97191,7 +96091,7 @@ (this.depth = void 0), (this.maxFontSize = void 0), (this.style = void 0), - L.call(this, t, r), + k.call(this, t, i), (this.children = n || []), this.setAttribute('href', e); } @@ -97204,10 +96104,10 @@ return A.contains(this.classes, e); }), (t.toNode = function() { - return j.call(this, 'a'); + return z.call(this, 'a'); }), (t.toMarkup = function() { - return z.call(this, 'a'); + return j.call(this, 'a'); }), e ); @@ -97274,7 +96174,7 @@ })(), W = {î: 'ı̂', ï: 'ı̈', í: 'ı́', ì: 'ı̀'}, V = (function() { - function e(e, t, n, r, i, o, a, s) { + function e(e, t, n, i, r, o, s, a) { (this.text = void 0), (this.height = void 0), (this.depth = void 0), @@ -97287,21 +96187,21 @@ (this.text = e), (this.height = t || 0), (this.depth = n || 0), - (this.italic = r || 0), - (this.skew = i || 0), + (this.italic = i || 0), + (this.skew = r || 0), (this.width = o || 0), - (this.classes = a || []), - (this.style = s || {}), + (this.classes = s || []), + (this.style = a || {}), (this.maxFontSize = 0); var A = (function(e) { for (var t = 0; t < f.length; t++) for ( - var n = f[t], r = 0; - r < n.blocks.length; - r++ + var n = f[t], i = 0; + i < n.blocks.length; + i++ ) { - var i = n.blocks[r]; - if (e >= i[0] && e <= i[1]) + var r = n.blocks[i]; + if (e >= r[0] && e <= r[1]) return n.name; } return null; @@ -97323,7 +96223,7 @@ for (var n in (this.italic > 0 && ((t = document.createElement( 'span' - )).style.marginRight = k( + )).style.marginRight = G( this.italic )), this.classes.length > 0 && @@ -97331,7 +96231,7 @@ t || document.createElement( 'span' - )).className = G( + )).className = L( this.classes )), this.style)) @@ -97354,21 +96254,21 @@ ((e = !0), (t += ' class="'), (t += A.escape( - G(this.classes) + L(this.classes) )), (t += '"')); var n = ''; - for (var r in (this.italic > 0 && + for (var i in (this.italic > 0 && (n += 'margin-right:' + this.italic + 'em;'), this.style)) - this.style.hasOwnProperty(r) && + this.style.hasOwnProperty(i) && (n += - A.hyphenate(r) + + A.hyphenate(i) + ':' + - this.style[r] + + this.style[i] + ';'); n && ((e = !0), @@ -97376,12 +96276,12 @@ ' style="' + A.escape(n) + '"')); - var i = A.escape(this.text); + var r = A.escape(this.text); return e ? ((t += '>'), - (t += i), + (t += r), (t += '')) - : i; + : r; }), e ); @@ -97552,14 +96452,14 @@ }, te = {math: {}, text: {}}, ne = te; - function re(e, t, n, r, i, o) { - (te[e][i] = {font: t, group: n, replace: r}), - o && r && (te[e][r] = te[e][i]); + function ie(e, t, n, i, r, o) { + (te[e][r] = {font: t, group: n, replace: i}), + o && i && (te[e][i] = te[e][r]); } - var ie = 'math', + var re = 'math', oe = 'text', - ae = 'main', - se = 'ams', + se = 'main', + ae = 'ams', Ae = 'accent-token', ce = 'bin', le = 'close', @@ -97571,774 +96471,774 @@ Ie = 'rel', pe = 'spacing', me = 'textord'; - re(ie, ae, Ie, '≡', '\\equiv', !0), - re(ie, ae, Ie, '≺', '\\prec', !0), - re(ie, ae, Ie, '≻', '\\succ', !0), - re(ie, ae, Ie, '∼', '\\sim', !0), - re(ie, ae, Ie, '⊥', '\\perp'), - re(ie, ae, Ie, '⪯', '\\preceq', !0), - re(ie, ae, Ie, '⪰', '\\succeq', !0), - re(ie, ae, Ie, '≃', '\\simeq', !0), - re(ie, ae, Ie, '∣', '\\mid', !0), - re(ie, ae, Ie, '≪', '\\ll', !0), - re(ie, ae, Ie, '≫', '\\gg', !0), - re(ie, ae, Ie, '≍', '\\asymp', !0), - re(ie, ae, Ie, '∥', '\\parallel'), - re(ie, ae, Ie, '⋈', '\\bowtie', !0), - re(ie, ae, Ie, '⌣', '\\smile', !0), - re(ie, ae, Ie, '⊑', '\\sqsubseteq', !0), - re(ie, ae, Ie, '⊒', '\\sqsupseteq', !0), - re(ie, ae, Ie, '≐', '\\doteq', !0), - re(ie, ae, Ie, '⌢', '\\frown', !0), - re(ie, ae, Ie, '∋', '\\ni', !0), - re(ie, ae, Ie, '∝', '\\propto', !0), - re(ie, ae, Ie, '⊢', '\\vdash', !0), - re(ie, ae, Ie, '⊣', '\\dashv', !0), - re(ie, ae, Ie, '∋', '\\owns'), - re(ie, ae, Ce, '.', '\\ldotp'), - re(ie, ae, Ce, '⋅', '\\cdotp'), - re(ie, ae, me, '#', '\\#'), - re(oe, ae, me, '#', '\\#'), - re(ie, ae, me, '&', '\\&'), - re(oe, ae, me, '&', '\\&'), - re(ie, ae, me, 'ℵ', '\\aleph', !0), - re(ie, ae, me, '∀', '\\forall', !0), - re(ie, ae, me, 'ℏ', '\\hbar', !0), - re(ie, ae, me, '∃', '\\exists', !0), - re(ie, ae, me, '∇', '\\nabla', !0), - re(ie, ae, me, '♭', '\\flat', !0), - re(ie, ae, me, 'ℓ', '\\ell', !0), - re(ie, ae, me, '♮', '\\natural', !0), - re(ie, ae, me, '♣', '\\clubsuit', !0), - re(ie, ae, me, '℘', '\\wp', !0), - re(ie, ae, me, '♯', '\\sharp', !0), - re(ie, ae, me, '♢', '\\diamondsuit', !0), - re(ie, ae, me, 'ℜ', '\\Re', !0), - re(ie, ae, me, '♡', '\\heartsuit', !0), - re(ie, ae, me, 'ℑ', '\\Im', !0), - re(ie, ae, me, '♠', '\\spadesuit', !0), - re(ie, ae, me, '§', '\\S', !0), - re(oe, ae, me, '§', '\\S'), - re(ie, ae, me, '¶', '\\P', !0), - re(oe, ae, me, '¶', '\\P'), - re(ie, ae, me, '†', '\\dag'), - re(oe, ae, me, '†', '\\dag'), - re(oe, ae, me, '†', '\\textdagger'), - re(ie, ae, me, '‡', '\\ddag'), - re(oe, ae, me, '‡', '\\ddag'), - re(oe, ae, me, '‡', '\\textdaggerdbl'), - re(ie, ae, le, '⎱', '\\rmoustache', !0), - re(ie, ae, he, '⎰', '\\lmoustache', !0), - re(ie, ae, le, '⟯', '\\rgroup', !0), - re(ie, ae, he, '⟮', '\\lgroup', !0), - re(ie, ae, ce, '∓', '\\mp', !0), - re(ie, ae, ce, '⊖', '\\ominus', !0), - re(ie, ae, ce, '⊎', '\\uplus', !0), - re(ie, ae, ce, '⊓', '\\sqcap', !0), - re(ie, ae, ce, '∗', '\\ast'), - re(ie, ae, ce, '⊔', '\\sqcup', !0), - re(ie, ae, ce, '◯', '\\bigcirc', !0), - re(ie, ae, ce, '∙', '\\bullet'), - re(ie, ae, ce, '‡', '\\ddagger'), - re(ie, ae, ce, '≀', '\\wr', !0), - re(ie, ae, ce, '⨿', '\\amalg'), - re(ie, ae, ce, '&', '\\And'), - re(ie, ae, Ie, '⟵', '\\longleftarrow', !0), - re(ie, ae, Ie, '⇐', '\\Leftarrow', !0), - re(ie, ae, Ie, '⟸', '\\Longleftarrow', !0), - re(ie, ae, Ie, '⟶', '\\longrightarrow', !0), - re(ie, ae, Ie, '⇒', '\\Rightarrow', !0), - re(ie, ae, Ie, '⟹', '\\Longrightarrow', !0), - re(ie, ae, Ie, '↔', '\\leftrightarrow', !0), - re(ie, ae, Ie, '⟷', '\\longleftrightarrow', !0), - re(ie, ae, Ie, '⇔', '\\Leftrightarrow', !0), - re(ie, ae, Ie, '⟺', '\\Longleftrightarrow', !0), - re(ie, ae, Ie, '↦', '\\mapsto', !0), - re(ie, ae, Ie, '⟼', '\\longmapsto', !0), - re(ie, ae, Ie, '↗', '\\nearrow', !0), - re(ie, ae, Ie, '↩', '\\hookleftarrow', !0), - re(ie, ae, Ie, '↪', '\\hookrightarrow', !0), - re(ie, ae, Ie, '↘', '\\searrow', !0), - re(ie, ae, Ie, '↼', '\\leftharpoonup', !0), - re(ie, ae, Ie, '⇀', '\\rightharpoonup', !0), - re(ie, ae, Ie, '↙', '\\swarrow', !0), - re(ie, ae, Ie, '↽', '\\leftharpoondown', !0), - re(ie, ae, Ie, '⇁', '\\rightharpoondown', !0), - re(ie, ae, Ie, '↖', '\\nwarrow', !0), - re(ie, ae, Ie, '⇌', '\\rightleftharpoons', !0), - re(ie, se, Ie, '≮', '\\nless', !0), - re(ie, se, Ie, '', '\\@nleqslant'), - re(ie, se, Ie, '', '\\@nleqq'), - re(ie, se, Ie, '⪇', '\\lneq', !0), - re(ie, se, Ie, '≨', '\\lneqq', !0), - re(ie, se, Ie, '', '\\@lvertneqq'), - re(ie, se, Ie, '⋦', '\\lnsim', !0), - re(ie, se, Ie, '⪉', '\\lnapprox', !0), - re(ie, se, Ie, '⊀', '\\nprec', !0), - re(ie, se, Ie, '⋠', '\\npreceq', !0), - re(ie, se, Ie, '⋨', '\\precnsim', !0), - re(ie, se, Ie, '⪹', '\\precnapprox', !0), - re(ie, se, Ie, '≁', '\\nsim', !0), - re(ie, se, Ie, '', '\\@nshortmid'), - re(ie, se, Ie, '∤', '\\nmid', !0), - re(ie, se, Ie, '⊬', '\\nvdash', !0), - re(ie, se, Ie, '⊭', '\\nvDash', !0), - re(ie, se, Ie, '⋪', '\\ntriangleleft'), - re(ie, se, Ie, '⋬', '\\ntrianglelefteq', !0), - re(ie, se, Ie, '⊊', '\\subsetneq', !0), - re(ie, se, Ie, '', '\\@varsubsetneq'), - re(ie, se, Ie, '⫋', '\\subsetneqq', !0), - re(ie, se, Ie, '', '\\@varsubsetneqq'), - re(ie, se, Ie, '≯', '\\ngtr', !0), - re(ie, se, Ie, '', '\\@ngeqslant'), - re(ie, se, Ie, '', '\\@ngeqq'), - re(ie, se, Ie, '⪈', '\\gneq', !0), - re(ie, se, Ie, '≩', '\\gneqq', !0), - re(ie, se, Ie, '', '\\@gvertneqq'), - re(ie, se, Ie, '⋧', '\\gnsim', !0), - re(ie, se, Ie, '⪊', '\\gnapprox', !0), - re(ie, se, Ie, '⊁', '\\nsucc', !0), - re(ie, se, Ie, '⋡', '\\nsucceq', !0), - re(ie, se, Ie, '⋩', '\\succnsim', !0), - re(ie, se, Ie, '⪺', '\\succnapprox', !0), - re(ie, se, Ie, '≆', '\\ncong', !0), - re(ie, se, Ie, '', '\\@nshortparallel'), - re(ie, se, Ie, '∦', '\\nparallel', !0), - re(ie, se, Ie, '⊯', '\\nVDash', !0), - re(ie, se, Ie, '⋫', '\\ntriangleright'), - re(ie, se, Ie, '⋭', '\\ntrianglerighteq', !0), - re(ie, se, Ie, '', '\\@nsupseteqq'), - re(ie, se, Ie, '⊋', '\\supsetneq', !0), - re(ie, se, Ie, '', '\\@varsupsetneq'), - re(ie, se, Ie, '⫌', '\\supsetneqq', !0), - re(ie, se, Ie, '', '\\@varsupsetneqq'), - re(ie, se, Ie, '⊮', '\\nVdash', !0), - re(ie, se, Ie, '⪵', '\\precneqq', !0), - re(ie, se, Ie, '⪶', '\\succneqq', !0), - re(ie, se, Ie, '', '\\@nsubseteqq'), - re(ie, se, ce, '⊴', '\\unlhd'), - re(ie, se, ce, '⊵', '\\unrhd'), - re(ie, se, Ie, '↚', '\\nleftarrow', !0), - re(ie, se, Ie, '↛', '\\nrightarrow', !0), - re(ie, se, Ie, '⇍', '\\nLeftarrow', !0), - re(ie, se, Ie, '⇏', '\\nRightarrow', !0), - re(ie, se, Ie, '↮', '\\nleftrightarrow', !0), - re(ie, se, Ie, '⇎', '\\nLeftrightarrow', !0), - re(ie, se, Ie, '△', '\\vartriangle'), - re(ie, se, me, 'ℏ', '\\hslash'), - re(ie, se, me, '▽', '\\triangledown'), - re(ie, se, me, '◊', '\\lozenge'), - re(ie, se, me, 'Ⓢ', '\\circledS'), - re(ie, se, me, '®', '\\circledR'), - re(oe, se, me, '®', '\\circledR'), - re(ie, se, me, '∡', '\\measuredangle', !0), - re(ie, se, me, '∄', '\\nexists'), - re(ie, se, me, '℧', '\\mho'), - re(ie, se, me, 'Ⅎ', '\\Finv', !0), - re(ie, se, me, '⅁', '\\Game', !0), - re(ie, se, me, '‵', '\\backprime'), - re(ie, se, me, '▲', '\\blacktriangle'), - re(ie, se, me, '▼', '\\blacktriangledown'), - re(ie, se, me, '■', '\\blacksquare'), - re(ie, se, me, '⧫', '\\blacklozenge'), - re(ie, se, me, '★', '\\bigstar'), - re(ie, se, me, '∢', '\\sphericalangle', !0), - re(ie, se, me, '∁', '\\complement', !0), - re(ie, se, me, 'ð', '\\eth', !0), - re(oe, ae, me, 'ð', 'ð'), - re(ie, se, me, '╱', '\\diagup'), - re(ie, se, me, '╲', '\\diagdown'), - re(ie, se, me, '□', '\\square'), - re(ie, se, me, '□', '\\Box'), - re(ie, se, me, '◊', '\\Diamond'), - re(ie, se, me, '¥', '\\yen', !0), - re(oe, se, me, '¥', '\\yen', !0), - re(ie, se, me, '✓', '\\checkmark', !0), - re(oe, se, me, '✓', '\\checkmark'), - re(ie, se, me, 'ℶ', '\\beth', !0), - re(ie, se, me, 'ℸ', '\\daleth', !0), - re(ie, se, me, 'ℷ', '\\gimel', !0), - re(ie, se, me, 'ϝ', '\\digamma', !0), - re(ie, se, me, 'ϰ', '\\varkappa'), - re(ie, se, he, '┌', '\\@ulcorner', !0), - re(ie, se, le, '┐', '\\@urcorner', !0), - re(ie, se, he, '└', '\\@llcorner', !0), - re(ie, se, le, '┘', '\\@lrcorner', !0), - re(ie, se, Ie, '≦', '\\leqq', !0), - re(ie, se, Ie, '⩽', '\\leqslant', !0), - re(ie, se, Ie, '⪕', '\\eqslantless', !0), - re(ie, se, Ie, '≲', '\\lesssim', !0), - re(ie, se, Ie, '⪅', '\\lessapprox', !0), - re(ie, se, Ie, '≊', '\\approxeq', !0), - re(ie, se, ce, '⋖', '\\lessdot'), - re(ie, se, Ie, '⋘', '\\lll', !0), - re(ie, se, Ie, '≶', '\\lessgtr', !0), - re(ie, se, Ie, '⋚', '\\lesseqgtr', !0), - re(ie, se, Ie, '⪋', '\\lesseqqgtr', !0), - re(ie, se, Ie, '≑', '\\doteqdot'), - re(ie, se, Ie, '≓', '\\risingdotseq', !0), - re(ie, se, Ie, '≒', '\\fallingdotseq', !0), - re(ie, se, Ie, '∽', '\\backsim', !0), - re(ie, se, Ie, '⋍', '\\backsimeq', !0), - re(ie, se, Ie, '⫅', '\\subseteqq', !0), - re(ie, se, Ie, '⋐', '\\Subset', !0), - re(ie, se, Ie, '⊏', '\\sqsubset', !0), - re(ie, se, Ie, '≼', '\\preccurlyeq', !0), - re(ie, se, Ie, '⋞', '\\curlyeqprec', !0), - re(ie, se, Ie, '≾', '\\precsim', !0), - re(ie, se, Ie, '⪷', '\\precapprox', !0), - re(ie, se, Ie, '⊲', '\\vartriangleleft'), - re(ie, se, Ie, '⊴', '\\trianglelefteq'), - re(ie, se, Ie, '⊨', '\\vDash', !0), - re(ie, se, Ie, '⊪', '\\Vvdash', !0), - re(ie, se, Ie, '⌣', '\\smallsmile'), - re(ie, se, Ie, '⌢', '\\smallfrown'), - re(ie, se, Ie, '≏', '\\bumpeq', !0), - re(ie, se, Ie, '≎', '\\Bumpeq', !0), - re(ie, se, Ie, '≧', '\\geqq', !0), - re(ie, se, Ie, '⩾', '\\geqslant', !0), - re(ie, se, Ie, '⪖', '\\eqslantgtr', !0), - re(ie, se, Ie, '≳', '\\gtrsim', !0), - re(ie, se, Ie, '⪆', '\\gtrapprox', !0), - re(ie, se, ce, '⋗', '\\gtrdot'), - re(ie, se, Ie, '⋙', '\\ggg', !0), - re(ie, se, Ie, '≷', '\\gtrless', !0), - re(ie, se, Ie, '⋛', '\\gtreqless', !0), - re(ie, se, Ie, '⪌', '\\gtreqqless', !0), - re(ie, se, Ie, '≖', '\\eqcirc', !0), - re(ie, se, Ie, '≗', '\\circeq', !0), - re(ie, se, Ie, '≜', '\\triangleq', !0), - re(ie, se, Ie, '∼', '\\thicksim'), - re(ie, se, Ie, '≈', '\\thickapprox'), - re(ie, se, Ie, '⫆', '\\supseteqq', !0), - re(ie, se, Ie, '⋑', '\\Supset', !0), - re(ie, se, Ie, '⊐', '\\sqsupset', !0), - re(ie, se, Ie, '≽', '\\succcurlyeq', !0), - re(ie, se, Ie, '⋟', '\\curlyeqsucc', !0), - re(ie, se, Ie, '≿', '\\succsim', !0), - re(ie, se, Ie, '⪸', '\\succapprox', !0), - re(ie, se, Ie, '⊳', '\\vartriangleright'), - re(ie, se, Ie, '⊵', '\\trianglerighteq'), - re(ie, se, Ie, '⊩', '\\Vdash', !0), - re(ie, se, Ie, '∣', '\\shortmid'), - re(ie, se, Ie, '∥', '\\shortparallel'), - re(ie, se, Ie, '≬', '\\between', !0), - re(ie, se, Ie, '⋔', '\\pitchfork', !0), - re(ie, se, Ie, '∝', '\\varpropto'), - re(ie, se, Ie, '◀', '\\blacktriangleleft'), - re(ie, se, Ie, '∴', '\\therefore', !0), - re(ie, se, Ie, '∍', '\\backepsilon'), - re(ie, se, Ie, '▶', '\\blacktriangleright'), - re(ie, se, Ie, '∵', '\\because', !0), - re(ie, se, Ie, '⋘', '\\llless'), - re(ie, se, Ie, '⋙', '\\gggtr'), - re(ie, se, ce, '⊲', '\\lhd'), - re(ie, se, ce, '⊳', '\\rhd'), - re(ie, se, Ie, '≂', '\\eqsim', !0), - re(ie, ae, Ie, '⋈', '\\Join'), - re(ie, se, Ie, '≑', '\\Doteq', !0), - re(ie, se, ce, '∔', '\\dotplus', !0), - re(ie, se, ce, '∖', '\\smallsetminus'), - re(ie, se, ce, '⋒', '\\Cap', !0), - re(ie, se, ce, '⋓', '\\Cup', !0), - re(ie, se, ce, '⩞', '\\doublebarwedge', !0), - re(ie, se, ce, '⊟', '\\boxminus', !0), - re(ie, se, ce, '⊞', '\\boxplus', !0), - re(ie, se, ce, '⋇', '\\divideontimes', !0), - re(ie, se, ce, '⋉', '\\ltimes', !0), - re(ie, se, ce, '⋊', '\\rtimes', !0), - re(ie, se, ce, '⋋', '\\leftthreetimes', !0), - re(ie, se, ce, '⋌', '\\rightthreetimes', !0), - re(ie, se, ce, '⋏', '\\curlywedge', !0), - re(ie, se, ce, '⋎', '\\curlyvee', !0), - re(ie, se, ce, '⊝', '\\circleddash', !0), - re(ie, se, ce, '⊛', '\\circledast', !0), - re(ie, se, ce, '⋅', '\\centerdot'), - re(ie, se, ce, '⊺', '\\intercal', !0), - re(ie, se, ce, '⋒', '\\doublecap'), - re(ie, se, ce, '⋓', '\\doublecup'), - re(ie, se, ce, '⊠', '\\boxtimes', !0), - re(ie, se, Ie, '⇢', '\\dashrightarrow', !0), - re(ie, se, Ie, '⇠', '\\dashleftarrow', !0), - re(ie, se, Ie, '⇇', '\\leftleftarrows', !0), - re(ie, se, Ie, '⇆', '\\leftrightarrows', !0), - re(ie, se, Ie, '⇚', '\\Lleftarrow', !0), - re(ie, se, Ie, '↞', '\\twoheadleftarrow', !0), - re(ie, se, Ie, '↢', '\\leftarrowtail', !0), - re(ie, se, Ie, '↫', '\\looparrowleft', !0), - re(ie, se, Ie, '⇋', '\\leftrightharpoons', !0), - re(ie, se, Ie, '↶', '\\curvearrowleft', !0), - re(ie, se, Ie, '↺', '\\circlearrowleft', !0), - re(ie, se, Ie, '↰', '\\Lsh', !0), - re(ie, se, Ie, '⇈', '\\upuparrows', !0), - re(ie, se, Ie, '↿', '\\upharpoonleft', !0), - re(ie, se, Ie, '⇃', '\\downharpoonleft', !0), - re(ie, ae, Ie, '⊶', '\\origof', !0), - re(ie, ae, Ie, '⊷', '\\imageof', !0), - re(ie, se, Ie, '⊸', '\\multimap', !0), - re( - ie, - se, + ie(re, se, Ie, '≡', '\\equiv', !0), + ie(re, se, Ie, '≺', '\\prec', !0), + ie(re, se, Ie, '≻', '\\succ', !0), + ie(re, se, Ie, '∼', '\\sim', !0), + ie(re, se, Ie, '⊥', '\\perp'), + ie(re, se, Ie, '⪯', '\\preceq', !0), + ie(re, se, Ie, '⪰', '\\succeq', !0), + ie(re, se, Ie, '≃', '\\simeq', !0), + ie(re, se, Ie, '∣', '\\mid', !0), + ie(re, se, Ie, '≪', '\\ll', !0), + ie(re, se, Ie, '≫', '\\gg', !0), + ie(re, se, Ie, '≍', '\\asymp', !0), + ie(re, se, Ie, '∥', '\\parallel'), + ie(re, se, Ie, '⋈', '\\bowtie', !0), + ie(re, se, Ie, '⌣', '\\smile', !0), + ie(re, se, Ie, '⊑', '\\sqsubseteq', !0), + ie(re, se, Ie, '⊒', '\\sqsupseteq', !0), + ie(re, se, Ie, '≐', '\\doteq', !0), + ie(re, se, Ie, '⌢', '\\frown', !0), + ie(re, se, Ie, '∋', '\\ni', !0), + ie(re, se, Ie, '∝', '\\propto', !0), + ie(re, se, Ie, '⊢', '\\vdash', !0), + ie(re, se, Ie, '⊣', '\\dashv', !0), + ie(re, se, Ie, '∋', '\\owns'), + ie(re, se, Ce, '.', '\\ldotp'), + ie(re, se, Ce, '⋅', '\\cdotp'), + ie(re, se, me, '#', '\\#'), + ie(oe, se, me, '#', '\\#'), + ie(re, se, me, '&', '\\&'), + ie(oe, se, me, '&', '\\&'), + ie(re, se, me, 'ℵ', '\\aleph', !0), + ie(re, se, me, '∀', '\\forall', !0), + ie(re, se, me, 'ℏ', '\\hbar', !0), + ie(re, se, me, '∃', '\\exists', !0), + ie(re, se, me, '∇', '\\nabla', !0), + ie(re, se, me, '♭', '\\flat', !0), + ie(re, se, me, 'ℓ', '\\ell', !0), + ie(re, se, me, '♮', '\\natural', !0), + ie(re, se, me, '♣', '\\clubsuit', !0), + ie(re, se, me, '℘', '\\wp', !0), + ie(re, se, me, '♯', '\\sharp', !0), + ie(re, se, me, '♢', '\\diamondsuit', !0), + ie(re, se, me, 'ℜ', '\\Re', !0), + ie(re, se, me, '♡', '\\heartsuit', !0), + ie(re, se, me, 'ℑ', '\\Im', !0), + ie(re, se, me, '♠', '\\spadesuit', !0), + ie(re, se, me, '§', '\\S', !0), + ie(oe, se, me, '§', '\\S'), + ie(re, se, me, '¶', '\\P', !0), + ie(oe, se, me, '¶', '\\P'), + ie(re, se, me, '†', '\\dag'), + ie(oe, se, me, '†', '\\dag'), + ie(oe, se, me, '†', '\\textdagger'), + ie(re, se, me, '‡', '\\ddag'), + ie(oe, se, me, '‡', '\\ddag'), + ie(oe, se, me, '‡', '\\textdaggerdbl'), + ie(re, se, le, '⎱', '\\rmoustache', !0), + ie(re, se, he, '⎰', '\\lmoustache', !0), + ie(re, se, le, '⟯', '\\rgroup', !0), + ie(re, se, he, '⟮', '\\lgroup', !0), + ie(re, se, ce, '∓', '\\mp', !0), + ie(re, se, ce, '⊖', '\\ominus', !0), + ie(re, se, ce, '⊎', '\\uplus', !0), + ie(re, se, ce, '⊓', '\\sqcap', !0), + ie(re, se, ce, '∗', '\\ast'), + ie(re, se, ce, '⊔', '\\sqcup', !0), + ie(re, se, ce, '◯', '\\bigcirc', !0), + ie(re, se, ce, '∙', '\\bullet'), + ie(re, se, ce, '‡', '\\ddagger'), + ie(re, se, ce, '≀', '\\wr', !0), + ie(re, se, ce, '⨿', '\\amalg'), + ie(re, se, ce, '&', '\\And'), + ie(re, se, Ie, '⟵', '\\longleftarrow', !0), + ie(re, se, Ie, '⇐', '\\Leftarrow', !0), + ie(re, se, Ie, '⟸', '\\Longleftarrow', !0), + ie(re, se, Ie, '⟶', '\\longrightarrow', !0), + ie(re, se, Ie, '⇒', '\\Rightarrow', !0), + ie(re, se, Ie, '⟹', '\\Longrightarrow', !0), + ie(re, se, Ie, '↔', '\\leftrightarrow', !0), + ie(re, se, Ie, '⟷', '\\longleftrightarrow', !0), + ie(re, se, Ie, '⇔', '\\Leftrightarrow', !0), + ie(re, se, Ie, '⟺', '\\Longleftrightarrow', !0), + ie(re, se, Ie, '↦', '\\mapsto', !0), + ie(re, se, Ie, '⟼', '\\longmapsto', !0), + ie(re, se, Ie, '↗', '\\nearrow', !0), + ie(re, se, Ie, '↩', '\\hookleftarrow', !0), + ie(re, se, Ie, '↪', '\\hookrightarrow', !0), + ie(re, se, Ie, '↘', '\\searrow', !0), + ie(re, se, Ie, '↼', '\\leftharpoonup', !0), + ie(re, se, Ie, '⇀', '\\rightharpoonup', !0), + ie(re, se, Ie, '↙', '\\swarrow', !0), + ie(re, se, Ie, '↽', '\\leftharpoondown', !0), + ie(re, se, Ie, '⇁', '\\rightharpoondown', !0), + ie(re, se, Ie, '↖', '\\nwarrow', !0), + ie(re, se, Ie, '⇌', '\\rightleftharpoons', !0), + ie(re, ae, Ie, '≮', '\\nless', !0), + ie(re, ae, Ie, '', '\\@nleqslant'), + ie(re, ae, Ie, '', '\\@nleqq'), + ie(re, ae, Ie, '⪇', '\\lneq', !0), + ie(re, ae, Ie, '≨', '\\lneqq', !0), + ie(re, ae, Ie, '', '\\@lvertneqq'), + ie(re, ae, Ie, '⋦', '\\lnsim', !0), + ie(re, ae, Ie, '⪉', '\\lnapprox', !0), + ie(re, ae, Ie, '⊀', '\\nprec', !0), + ie(re, ae, Ie, '⋠', '\\npreceq', !0), + ie(re, ae, Ie, '⋨', '\\precnsim', !0), + ie(re, ae, Ie, '⪹', '\\precnapprox', !0), + ie(re, ae, Ie, '≁', '\\nsim', !0), + ie(re, ae, Ie, '', '\\@nshortmid'), + ie(re, ae, Ie, '∤', '\\nmid', !0), + ie(re, ae, Ie, '⊬', '\\nvdash', !0), + ie(re, ae, Ie, '⊭', '\\nvDash', !0), + ie(re, ae, Ie, '⋪', '\\ntriangleleft'), + ie(re, ae, Ie, '⋬', '\\ntrianglelefteq', !0), + ie(re, ae, Ie, '⊊', '\\subsetneq', !0), + ie(re, ae, Ie, '', '\\@varsubsetneq'), + ie(re, ae, Ie, '⫋', '\\subsetneqq', !0), + ie(re, ae, Ie, '', '\\@varsubsetneqq'), + ie(re, ae, Ie, '≯', '\\ngtr', !0), + ie(re, ae, Ie, '', '\\@ngeqslant'), + ie(re, ae, Ie, '', '\\@ngeqq'), + ie(re, ae, Ie, '⪈', '\\gneq', !0), + ie(re, ae, Ie, '≩', '\\gneqq', !0), + ie(re, ae, Ie, '', '\\@gvertneqq'), + ie(re, ae, Ie, '⋧', '\\gnsim', !0), + ie(re, ae, Ie, '⪊', '\\gnapprox', !0), + ie(re, ae, Ie, '⊁', '\\nsucc', !0), + ie(re, ae, Ie, '⋡', '\\nsucceq', !0), + ie(re, ae, Ie, '⋩', '\\succnsim', !0), + ie(re, ae, Ie, '⪺', '\\succnapprox', !0), + ie(re, ae, Ie, '≆', '\\ncong', !0), + ie(re, ae, Ie, '', '\\@nshortparallel'), + ie(re, ae, Ie, '∦', '\\nparallel', !0), + ie(re, ae, Ie, '⊯', '\\nVDash', !0), + ie(re, ae, Ie, '⋫', '\\ntriangleright'), + ie(re, ae, Ie, '⋭', '\\ntrianglerighteq', !0), + ie(re, ae, Ie, '', '\\@nsupseteqq'), + ie(re, ae, Ie, '⊋', '\\supsetneq', !0), + ie(re, ae, Ie, '', '\\@varsupsetneq'), + ie(re, ae, Ie, '⫌', '\\supsetneqq', !0), + ie(re, ae, Ie, '', '\\@varsupsetneqq'), + ie(re, ae, Ie, '⊮', '\\nVdash', !0), + ie(re, ae, Ie, '⪵', '\\precneqq', !0), + ie(re, ae, Ie, '⪶', '\\succneqq', !0), + ie(re, ae, Ie, '', '\\@nsubseteqq'), + ie(re, ae, ce, '⊴', '\\unlhd'), + ie(re, ae, ce, '⊵', '\\unrhd'), + ie(re, ae, Ie, '↚', '\\nleftarrow', !0), + ie(re, ae, Ie, '↛', '\\nrightarrow', !0), + ie(re, ae, Ie, '⇍', '\\nLeftarrow', !0), + ie(re, ae, Ie, '⇏', '\\nRightarrow', !0), + ie(re, ae, Ie, '↮', '\\nleftrightarrow', !0), + ie(re, ae, Ie, '⇎', '\\nLeftrightarrow', !0), + ie(re, ae, Ie, '△', '\\vartriangle'), + ie(re, ae, me, 'ℏ', '\\hslash'), + ie(re, ae, me, '▽', '\\triangledown'), + ie(re, ae, me, '◊', '\\lozenge'), + ie(re, ae, me, 'Ⓢ', '\\circledS'), + ie(re, ae, me, '®', '\\circledR'), + ie(oe, ae, me, '®', '\\circledR'), + ie(re, ae, me, '∡', '\\measuredangle', !0), + ie(re, ae, me, '∄', '\\nexists'), + ie(re, ae, me, '℧', '\\mho'), + ie(re, ae, me, 'Ⅎ', '\\Finv', !0), + ie(re, ae, me, '⅁', '\\Game', !0), + ie(re, ae, me, '‵', '\\backprime'), + ie(re, ae, me, '▲', '\\blacktriangle'), + ie(re, ae, me, '▼', '\\blacktriangledown'), + ie(re, ae, me, '■', '\\blacksquare'), + ie(re, ae, me, '⧫', '\\blacklozenge'), + ie(re, ae, me, '★', '\\bigstar'), + ie(re, ae, me, '∢', '\\sphericalangle', !0), + ie(re, ae, me, '∁', '\\complement', !0), + ie(re, ae, me, 'ð', '\\eth', !0), + ie(oe, se, me, 'ð', 'ð'), + ie(re, ae, me, '╱', '\\diagup'), + ie(re, ae, me, '╲', '\\diagdown'), + ie(re, ae, me, '□', '\\square'), + ie(re, ae, me, '□', '\\Box'), + ie(re, ae, me, '◊', '\\Diamond'), + ie(re, ae, me, '¥', '\\yen', !0), + ie(oe, ae, me, '¥', '\\yen', !0), + ie(re, ae, me, '✓', '\\checkmark', !0), + ie(oe, ae, me, '✓', '\\checkmark'), + ie(re, ae, me, 'ℶ', '\\beth', !0), + ie(re, ae, me, 'ℸ', '\\daleth', !0), + ie(re, ae, me, 'ℷ', '\\gimel', !0), + ie(re, ae, me, 'ϝ', '\\digamma', !0), + ie(re, ae, me, 'ϰ', '\\varkappa'), + ie(re, ae, he, '┌', '\\@ulcorner', !0), + ie(re, ae, le, '┐', '\\@urcorner', !0), + ie(re, ae, he, '└', '\\@llcorner', !0), + ie(re, ae, le, '┘', '\\@lrcorner', !0), + ie(re, ae, Ie, '≦', '\\leqq', !0), + ie(re, ae, Ie, '⩽', '\\leqslant', !0), + ie(re, ae, Ie, '⪕', '\\eqslantless', !0), + ie(re, ae, Ie, '≲', '\\lesssim', !0), + ie(re, ae, Ie, '⪅', '\\lessapprox', !0), + ie(re, ae, Ie, '≊', '\\approxeq', !0), + ie(re, ae, ce, '⋖', '\\lessdot'), + ie(re, ae, Ie, '⋘', '\\lll', !0), + ie(re, ae, Ie, '≶', '\\lessgtr', !0), + ie(re, ae, Ie, '⋚', '\\lesseqgtr', !0), + ie(re, ae, Ie, '⪋', '\\lesseqqgtr', !0), + ie(re, ae, Ie, '≑', '\\doteqdot'), + ie(re, ae, Ie, '≓', '\\risingdotseq', !0), + ie(re, ae, Ie, '≒', '\\fallingdotseq', !0), + ie(re, ae, Ie, '∽', '\\backsim', !0), + ie(re, ae, Ie, '⋍', '\\backsimeq', !0), + ie(re, ae, Ie, '⫅', '\\subseteqq', !0), + ie(re, ae, Ie, '⋐', '\\Subset', !0), + ie(re, ae, Ie, '⊏', '\\sqsubset', !0), + ie(re, ae, Ie, '≼', '\\preccurlyeq', !0), + ie(re, ae, Ie, '⋞', '\\curlyeqprec', !0), + ie(re, ae, Ie, '≾', '\\precsim', !0), + ie(re, ae, Ie, '⪷', '\\precapprox', !0), + ie(re, ae, Ie, '⊲', '\\vartriangleleft'), + ie(re, ae, Ie, '⊴', '\\trianglelefteq'), + ie(re, ae, Ie, '⊨', '\\vDash', !0), + ie(re, ae, Ie, '⊪', '\\Vvdash', !0), + ie(re, ae, Ie, '⌣', '\\smallsmile'), + ie(re, ae, Ie, '⌢', '\\smallfrown'), + ie(re, ae, Ie, '≏', '\\bumpeq', !0), + ie(re, ae, Ie, '≎', '\\Bumpeq', !0), + ie(re, ae, Ie, '≧', '\\geqq', !0), + ie(re, ae, Ie, '⩾', '\\geqslant', !0), + ie(re, ae, Ie, '⪖', '\\eqslantgtr', !0), + ie(re, ae, Ie, '≳', '\\gtrsim', !0), + ie(re, ae, Ie, '⪆', '\\gtrapprox', !0), + ie(re, ae, ce, '⋗', '\\gtrdot'), + ie(re, ae, Ie, '⋙', '\\ggg', !0), + ie(re, ae, Ie, '≷', '\\gtrless', !0), + ie(re, ae, Ie, '⋛', '\\gtreqless', !0), + ie(re, ae, Ie, '⪌', '\\gtreqqless', !0), + ie(re, ae, Ie, '≖', '\\eqcirc', !0), + ie(re, ae, Ie, '≗', '\\circeq', !0), + ie(re, ae, Ie, '≜', '\\triangleq', !0), + ie(re, ae, Ie, '∼', '\\thicksim'), + ie(re, ae, Ie, '≈', '\\thickapprox'), + ie(re, ae, Ie, '⫆', '\\supseteqq', !0), + ie(re, ae, Ie, '⋑', '\\Supset', !0), + ie(re, ae, Ie, '⊐', '\\sqsupset', !0), + ie(re, ae, Ie, '≽', '\\succcurlyeq', !0), + ie(re, ae, Ie, '⋟', '\\curlyeqsucc', !0), + ie(re, ae, Ie, '≿', '\\succsim', !0), + ie(re, ae, Ie, '⪸', '\\succapprox', !0), + ie(re, ae, Ie, '⊳', '\\vartriangleright'), + ie(re, ae, Ie, '⊵', '\\trianglerighteq'), + ie(re, ae, Ie, '⊩', '\\Vdash', !0), + ie(re, ae, Ie, '∣', '\\shortmid'), + ie(re, ae, Ie, '∥', '\\shortparallel'), + ie(re, ae, Ie, '≬', '\\between', !0), + ie(re, ae, Ie, '⋔', '\\pitchfork', !0), + ie(re, ae, Ie, '∝', '\\varpropto'), + ie(re, ae, Ie, '◀', '\\blacktriangleleft'), + ie(re, ae, Ie, '∴', '\\therefore', !0), + ie(re, ae, Ie, '∍', '\\backepsilon'), + ie(re, ae, Ie, '▶', '\\blacktriangleright'), + ie(re, ae, Ie, '∵', '\\because', !0), + ie(re, ae, Ie, '⋘', '\\llless'), + ie(re, ae, Ie, '⋙', '\\gggtr'), + ie(re, ae, ce, '⊲', '\\lhd'), + ie(re, ae, ce, '⊳', '\\rhd'), + ie(re, ae, Ie, '≂', '\\eqsim', !0), + ie(re, se, Ie, '⋈', '\\Join'), + ie(re, ae, Ie, '≑', '\\Doteq', !0), + ie(re, ae, ce, '∔', '\\dotplus', !0), + ie(re, ae, ce, '∖', '\\smallsetminus'), + ie(re, ae, ce, '⋒', '\\Cap', !0), + ie(re, ae, ce, '⋓', '\\Cup', !0), + ie(re, ae, ce, '⩞', '\\doublebarwedge', !0), + ie(re, ae, ce, '⊟', '\\boxminus', !0), + ie(re, ae, ce, '⊞', '\\boxplus', !0), + ie(re, ae, ce, '⋇', '\\divideontimes', !0), + ie(re, ae, ce, '⋉', '\\ltimes', !0), + ie(re, ae, ce, '⋊', '\\rtimes', !0), + ie(re, ae, ce, '⋋', '\\leftthreetimes', !0), + ie(re, ae, ce, '⋌', '\\rightthreetimes', !0), + ie(re, ae, ce, '⋏', '\\curlywedge', !0), + ie(re, ae, ce, '⋎', '\\curlyvee', !0), + ie(re, ae, ce, '⊝', '\\circleddash', !0), + ie(re, ae, ce, '⊛', '\\circledast', !0), + ie(re, ae, ce, '⋅', '\\centerdot'), + ie(re, ae, ce, '⊺', '\\intercal', !0), + ie(re, ae, ce, '⋒', '\\doublecap'), + ie(re, ae, ce, '⋓', '\\doublecup'), + ie(re, ae, ce, '⊠', '\\boxtimes', !0), + ie(re, ae, Ie, '⇢', '\\dashrightarrow', !0), + ie(re, ae, Ie, '⇠', '\\dashleftarrow', !0), + ie(re, ae, Ie, '⇇', '\\leftleftarrows', !0), + ie(re, ae, Ie, '⇆', '\\leftrightarrows', !0), + ie(re, ae, Ie, '⇚', '\\Lleftarrow', !0), + ie(re, ae, Ie, '↞', '\\twoheadleftarrow', !0), + ie(re, ae, Ie, '↢', '\\leftarrowtail', !0), + ie(re, ae, Ie, '↫', '\\looparrowleft', !0), + ie(re, ae, Ie, '⇋', '\\leftrightharpoons', !0), + ie(re, ae, Ie, '↶', '\\curvearrowleft', !0), + ie(re, ae, Ie, '↺', '\\circlearrowleft', !0), + ie(re, ae, Ie, '↰', '\\Lsh', !0), + ie(re, ae, Ie, '⇈', '\\upuparrows', !0), + ie(re, ae, Ie, '↿', '\\upharpoonleft', !0), + ie(re, ae, Ie, '⇃', '\\downharpoonleft', !0), + ie(re, se, Ie, '⊶', '\\origof', !0), + ie(re, se, Ie, '⊷', '\\imageof', !0), + ie(re, ae, Ie, '⊸', '\\multimap', !0), + ie( + re, + ae, Ie, '↭', '\\leftrightsquigarrow', !0 ), - re(ie, se, Ie, '⇉', '\\rightrightarrows', !0), - re(ie, se, Ie, '⇄', '\\rightleftarrows', !0), - re(ie, se, Ie, '↠', '\\twoheadrightarrow', !0), - re(ie, se, Ie, '↣', '\\rightarrowtail', !0), - re(ie, se, Ie, '↬', '\\looparrowright', !0), - re(ie, se, Ie, '↷', '\\curvearrowright', !0), - re(ie, se, Ie, '↻', '\\circlearrowright', !0), - re(ie, se, Ie, '↱', '\\Rsh', !0), - re(ie, se, Ie, '⇊', '\\downdownarrows', !0), - re(ie, se, Ie, '↾', '\\upharpoonright', !0), - re(ie, se, Ie, '⇂', '\\downharpoonright', !0), - re(ie, se, Ie, '⇝', '\\rightsquigarrow', !0), - re(ie, se, Ie, '⇝', '\\leadsto'), - re(ie, se, Ie, '⇛', '\\Rrightarrow', !0), - re(ie, se, Ie, '↾', '\\restriction'), - re(ie, ae, me, '‘', '`'), - re(ie, ae, me, '$', '\\$'), - re(oe, ae, me, '$', '\\$'), - re(oe, ae, me, '$', '\\textdollar'), - re(ie, ae, me, '%', '\\%'), - re(oe, ae, me, '%', '\\%'), - re(ie, ae, me, '_', '\\_'), - re(oe, ae, me, '_', '\\_'), - re(oe, ae, me, '_', '\\textunderscore'), - re(ie, ae, me, '∠', '\\angle', !0), - re(ie, ae, me, '∞', '\\infty', !0), - re(ie, ae, me, '′', '\\prime'), - re(ie, ae, me, '△', '\\triangle'), - re(ie, ae, me, 'Γ', '\\Gamma', !0), - re(ie, ae, me, 'Δ', '\\Delta', !0), - re(ie, ae, me, 'Θ', '\\Theta', !0), - re(ie, ae, me, 'Λ', '\\Lambda', !0), - re(ie, ae, me, 'Ξ', '\\Xi', !0), - re(ie, ae, me, 'Π', '\\Pi', !0), - re(ie, ae, me, 'Σ', '\\Sigma', !0), - re(ie, ae, me, 'Υ', '\\Upsilon', !0), - re(ie, ae, me, 'Φ', '\\Phi', !0), - re(ie, ae, me, 'Ψ', '\\Psi', !0), - re(ie, ae, me, 'Ω', '\\Omega', !0), - re(ie, ae, me, 'A', 'Α'), - re(ie, ae, me, 'B', 'Β'), - re(ie, ae, me, 'E', 'Ε'), - re(ie, ae, me, 'Z', 'Ζ'), - re(ie, ae, me, 'H', 'Η'), - re(ie, ae, me, 'I', 'Ι'), - re(ie, ae, me, 'K', 'Κ'), - re(ie, ae, me, 'M', 'Μ'), - re(ie, ae, me, 'N', 'Ν'), - re(ie, ae, me, 'O', 'Ο'), - re(ie, ae, me, 'P', 'Ρ'), - re(ie, ae, me, 'T', 'Τ'), - re(ie, ae, me, 'X', 'Χ'), - re(ie, ae, me, '¬', '\\neg', !0), - re(ie, ae, me, '¬', '\\lnot'), - re(ie, ae, me, '⊤', '\\top'), - re(ie, ae, me, '⊥', '\\bot'), - re(ie, ae, me, '∅', '\\emptyset'), - re(ie, se, me, '∅', '\\varnothing'), - re(ie, ae, ue, 'α', '\\alpha', !0), - re(ie, ae, ue, 'β', '\\beta', !0), - re(ie, ae, ue, 'γ', '\\gamma', !0), - re(ie, ae, ue, 'δ', '\\delta', !0), - re(ie, ae, ue, 'ϵ', '\\epsilon', !0), - re(ie, ae, ue, 'ζ', '\\zeta', !0), - re(ie, ae, ue, 'η', '\\eta', !0), - re(ie, ae, ue, 'θ', '\\theta', !0), - re(ie, ae, ue, 'ι', '\\iota', !0), - re(ie, ae, ue, 'κ', '\\kappa', !0), - re(ie, ae, ue, 'λ', '\\lambda', !0), - re(ie, ae, ue, 'μ', '\\mu', !0), - re(ie, ae, ue, 'ν', '\\nu', !0), - re(ie, ae, ue, 'ξ', '\\xi', !0), - re(ie, ae, ue, 'ο', '\\omicron', !0), - re(ie, ae, ue, 'π', '\\pi', !0), - re(ie, ae, ue, 'ρ', '\\rho', !0), - re(ie, ae, ue, 'σ', '\\sigma', !0), - re(ie, ae, ue, 'τ', '\\tau', !0), - re(ie, ae, ue, 'υ', '\\upsilon', !0), - re(ie, ae, ue, 'ϕ', '\\phi', !0), - re(ie, ae, ue, 'χ', '\\chi', !0), - re(ie, ae, ue, 'ψ', '\\psi', !0), - re(ie, ae, ue, 'ω', '\\omega', !0), - re(ie, ae, ue, 'ε', '\\varepsilon', !0), - re(ie, ae, ue, 'ϑ', '\\vartheta', !0), - re(ie, ae, ue, 'ϖ', '\\varpi', !0), - re(ie, ae, ue, 'ϱ', '\\varrho', !0), - re(ie, ae, ue, 'ς', '\\varsigma', !0), - re(ie, ae, ue, 'φ', '\\varphi', !0), - re(ie, ae, ce, '∗', '*', !0), - re(ie, ae, ce, '+', '+'), - re(ie, ae, ce, '−', '-', !0), - re(ie, ae, ce, '⋅', '\\cdot', !0), - re(ie, ae, ce, '∘', '\\circ'), - re(ie, ae, ce, '÷', '\\div', !0), - re(ie, ae, ce, '±', '\\pm', !0), - re(ie, ae, ce, '×', '\\times', !0), - re(ie, ae, ce, '∩', '\\cap', !0), - re(ie, ae, ce, '∪', '\\cup', !0), - re(ie, ae, ce, '∖', '\\setminus'), - re(ie, ae, ce, '∧', '\\land'), - re(ie, ae, ce, '∨', '\\lor'), - re(ie, ae, ce, '∧', '\\wedge', !0), - re(ie, ae, ce, '∨', '\\vee', !0), - re(ie, ae, me, '√', '\\surd'), - re(ie, ae, he, '⟨', '\\langle', !0), - re(ie, ae, he, '∣', '\\lvert'), - re(ie, ae, he, '∥', '\\lVert'), - re(ie, ae, le, '?', '?'), - re(ie, ae, le, '!', '!'), - re(ie, ae, le, '⟩', '\\rangle', !0), - re(ie, ae, le, '∣', '\\rvert'), - re(ie, ae, le, '∥', '\\rVert'), - re(ie, ae, Ie, '=', '='), - re(ie, ae, Ie, ':', ':'), - re(ie, ae, Ie, '≈', '\\approx', !0), - re(ie, ae, Ie, '≅', '\\cong', !0), - re(ie, ae, Ie, '≥', '\\ge'), - re(ie, ae, Ie, '≥', '\\geq', !0), - re(ie, ae, Ie, '←', '\\gets'), - re(ie, ae, Ie, '>', '\\gt', !0), - re(ie, ae, Ie, '∈', '\\in', !0), - re(ie, ae, Ie, '', '\\@not'), - re(ie, ae, Ie, '⊂', '\\subset', !0), - re(ie, ae, Ie, '⊃', '\\supset', !0), - re(ie, ae, Ie, '⊆', '\\subseteq', !0), - re(ie, ae, Ie, '⊇', '\\supseteq', !0), - re(ie, se, Ie, '⊈', '\\nsubseteq', !0), - re(ie, se, Ie, '⊉', '\\nsupseteq', !0), - re(ie, ae, Ie, '⊨', '\\models'), - re(ie, ae, Ie, '←', '\\leftarrow', !0), - re(ie, ae, Ie, '≤', '\\le'), - re(ie, ae, Ie, '≤', '\\leq', !0), - re(ie, ae, Ie, '<', '\\lt', !0), - re(ie, ae, Ie, '→', '\\rightarrow', !0), - re(ie, ae, Ie, '→', '\\to'), - re(ie, se, Ie, '≱', '\\ngeq', !0), - re(ie, se, Ie, '≰', '\\nleq', !0), - re(ie, ae, pe, ' ', '\\ '), - re(ie, ae, pe, ' ', '\\space'), - re(ie, ae, pe, ' ', '\\nobreakspace'), - re(oe, ae, pe, ' ', '\\ '), - re(oe, ae, pe, ' ', ' '), - re(oe, ae, pe, ' ', '\\space'), - re(oe, ae, pe, ' ', '\\nobreakspace'), - re(ie, ae, pe, null, '\\nobreak'), - re(ie, ae, pe, null, '\\allowbreak'), - re(ie, ae, Ce, ',', ','), - re(ie, ae, Ce, ';', ';'), - re(ie, se, ce, '⊼', '\\barwedge', !0), - re(ie, se, ce, '⊻', '\\veebar', !0), - re(ie, ae, ce, '⊙', '\\odot', !0), - re(ie, ae, ce, '⊕', '\\oplus', !0), - re(ie, ae, ce, '⊗', '\\otimes', !0), - re(ie, ae, me, '∂', '\\partial', !0), - re(ie, ae, ce, '⊘', '\\oslash', !0), - re(ie, se, ce, '⊚', '\\circledcirc', !0), - re(ie, se, ce, '⊡', '\\boxdot', !0), - re(ie, ae, ce, '△', '\\bigtriangleup'), - re(ie, ae, ce, '▽', '\\bigtriangledown'), - re(ie, ae, ce, '†', '\\dagger'), - re(ie, ae, ce, '⋄', '\\diamond'), - re(ie, ae, ce, '⋆', '\\star'), - re(ie, ae, ce, '◃', '\\triangleleft'), - re(ie, ae, ce, '▹', '\\triangleright'), - re(ie, ae, he, '{', '\\{'), - re(oe, ae, me, '{', '\\{'), - re(oe, ae, me, '{', '\\textbraceleft'), - re(ie, ae, le, '}', '\\}'), - re(oe, ae, me, '}', '\\}'), - re(oe, ae, me, '}', '\\textbraceright'), - re(ie, ae, he, '{', '\\lbrace'), - re(ie, ae, le, '}', '\\rbrace'), - re(ie, ae, he, '[', '\\lbrack', !0), - re(oe, ae, me, '[', '\\lbrack', !0), - re(ie, ae, le, ']', '\\rbrack', !0), - re(oe, ae, me, ']', '\\rbrack', !0), - re(ie, ae, he, '(', '\\lparen', !0), - re(ie, ae, le, ')', '\\rparen', !0), - re(oe, ae, me, '<', '\\textless', !0), - re(oe, ae, me, '>', '\\textgreater', !0), - re(ie, ae, he, '⌊', '\\lfloor', !0), - re(ie, ae, le, '⌋', '\\rfloor', !0), - re(ie, ae, he, '⌈', '\\lceil', !0), - re(ie, ae, le, '⌉', '\\rceil', !0), - re(ie, ae, me, '\\', '\\backslash'), - re(ie, ae, me, '∣', '|'), - re(ie, ae, me, '∣', '\\vert'), - re(oe, ae, me, '|', '\\textbar', !0), - re(ie, ae, me, '∥', '\\|'), - re(ie, ae, me, '∥', '\\Vert'), - re(oe, ae, me, '∥', '\\textbardbl'), - re(oe, ae, me, '~', '\\textasciitilde'), - re(oe, ae, me, '\\', '\\textbackslash'), - re(oe, ae, me, '^', '\\textasciicircum'), - re(ie, ae, Ie, '↑', '\\uparrow', !0), - re(ie, ae, Ie, '⇑', '\\Uparrow', !0), - re(ie, ae, Ie, '↓', '\\downarrow', !0), - re(ie, ae, Ie, '⇓', '\\Downarrow', !0), - re(ie, ae, Ie, '↕', '\\updownarrow', !0), - re(ie, ae, Ie, '⇕', '\\Updownarrow', !0), - re(ie, ae, de, '∐', '\\coprod'), - re(ie, ae, de, '⋁', '\\bigvee'), - re(ie, ae, de, '⋀', '\\bigwedge'), - re(ie, ae, de, '⨄', '\\biguplus'), - re(ie, ae, de, '⋂', '\\bigcap'), - re(ie, ae, de, '⋃', '\\bigcup'), - re(ie, ae, de, '∫', '\\int'), - re(ie, ae, de, '∫', '\\intop'), - re(ie, ae, de, '∬', '\\iint'), - re(ie, ae, de, '∭', '\\iiint'), - re(ie, ae, de, '∏', '\\prod'), - re(ie, ae, de, '∑', '\\sum'), - re(ie, ae, de, '⨂', '\\bigotimes'), - re(ie, ae, de, '⨁', '\\bigoplus'), - re(ie, ae, de, '⨀', '\\bigodot'), - re(ie, ae, de, '∮', '\\oint'), - re(ie, ae, de, '∯', '\\oiint'), - re(ie, ae, de, '∰', '\\oiiint'), - re(ie, ae, de, '⨆', '\\bigsqcup'), - re(ie, ae, de, '∫', '\\smallint'), - re(oe, ae, ge, '…', '\\textellipsis'), - re(ie, ae, ge, '…', '\\mathellipsis'), - re(oe, ae, ge, '…', '\\ldots', !0), - re(ie, ae, ge, '…', '\\ldots', !0), - re(ie, ae, ge, '⋯', '\\@cdots', !0), - re(ie, ae, ge, '⋱', '\\ddots', !0), - re(ie, ae, me, '⋮', '\\varvdots'), - re(ie, ae, Ae, 'ˊ', '\\acute'), - re(ie, ae, Ae, 'ˋ', '\\grave'), - re(ie, ae, Ae, '¨', '\\ddot'), - re(ie, ae, Ae, '~', '\\tilde'), - re(ie, ae, Ae, 'ˉ', '\\bar'), - re(ie, ae, Ae, '˘', '\\breve'), - re(ie, ae, Ae, 'ˇ', '\\check'), - re(ie, ae, Ae, '^', '\\hat'), - re(ie, ae, Ae, '⃗', '\\vec'), - re(ie, ae, Ae, '˙', '\\dot'), - re(ie, ae, Ae, '˚', '\\mathring'), - re(ie, ae, ue, '', '\\@imath'), - re(ie, ae, ue, '', '\\@jmath'), - re(ie, ae, me, 'ı', 'ı'), - re(ie, ae, me, 'ȷ', 'ȷ'), - re(oe, ae, me, 'ı', '\\i', !0), - re(oe, ae, me, 'ȷ', '\\j', !0), - re(oe, ae, me, 'ß', '\\ss', !0), - re(oe, ae, me, 'æ', '\\ae', !0), - re(oe, ae, me, 'œ', '\\oe', !0), - re(oe, ae, me, 'ø', '\\o', !0), - re(oe, ae, me, 'Æ', '\\AE', !0), - re(oe, ae, me, 'Œ', '\\OE', !0), - re(oe, ae, me, 'Ø', '\\O', !0), - re(oe, ae, Ae, 'ˊ', "\\'"), - re(oe, ae, Ae, 'ˋ', '\\`'), - re(oe, ae, Ae, 'ˆ', '\\^'), - re(oe, ae, Ae, '˜', '\\~'), - re(oe, ae, Ae, 'ˉ', '\\='), - re(oe, ae, Ae, '˘', '\\u'), - re(oe, ae, Ae, '˙', '\\.'), - re(oe, ae, Ae, '¸', '\\c'), - re(oe, ae, Ae, '˚', '\\r'), - re(oe, ae, Ae, 'ˇ', '\\v'), - re(oe, ae, Ae, '¨', '\\"'), - re(oe, ae, Ae, '˝', '\\H'), - re(oe, ae, Ae, '◯', '\\textcircled'); + ie(re, ae, Ie, '⇉', '\\rightrightarrows', !0), + ie(re, ae, Ie, '⇄', '\\rightleftarrows', !0), + ie(re, ae, Ie, '↠', '\\twoheadrightarrow', !0), + ie(re, ae, Ie, '↣', '\\rightarrowtail', !0), + ie(re, ae, Ie, '↬', '\\looparrowright', !0), + ie(re, ae, Ie, '↷', '\\curvearrowright', !0), + ie(re, ae, Ie, '↻', '\\circlearrowright', !0), + ie(re, ae, Ie, '↱', '\\Rsh', !0), + ie(re, ae, Ie, '⇊', '\\downdownarrows', !0), + ie(re, ae, Ie, '↾', '\\upharpoonright', !0), + ie(re, ae, Ie, '⇂', '\\downharpoonright', !0), + ie(re, ae, Ie, '⇝', '\\rightsquigarrow', !0), + ie(re, ae, Ie, '⇝', '\\leadsto'), + ie(re, ae, Ie, '⇛', '\\Rrightarrow', !0), + ie(re, ae, Ie, '↾', '\\restriction'), + ie(re, se, me, '‘', '`'), + ie(re, se, me, '$', '\\$'), + ie(oe, se, me, '$', '\\$'), + ie(oe, se, me, '$', '\\textdollar'), + ie(re, se, me, '%', '\\%'), + ie(oe, se, me, '%', '\\%'), + ie(re, se, me, '_', '\\_'), + ie(oe, se, me, '_', '\\_'), + ie(oe, se, me, '_', '\\textunderscore'), + ie(re, se, me, '∠', '\\angle', !0), + ie(re, se, me, '∞', '\\infty', !0), + ie(re, se, me, '′', '\\prime'), + ie(re, se, me, '△', '\\triangle'), + ie(re, se, me, 'Γ', '\\Gamma', !0), + ie(re, se, me, 'Δ', '\\Delta', !0), + ie(re, se, me, 'Θ', '\\Theta', !0), + ie(re, se, me, 'Λ', '\\Lambda', !0), + ie(re, se, me, 'Ξ', '\\Xi', !0), + ie(re, se, me, 'Π', '\\Pi', !0), + ie(re, se, me, 'Σ', '\\Sigma', !0), + ie(re, se, me, 'Υ', '\\Upsilon', !0), + ie(re, se, me, 'Φ', '\\Phi', !0), + ie(re, se, me, 'Ψ', '\\Psi', !0), + ie(re, se, me, 'Ω', '\\Omega', !0), + ie(re, se, me, 'A', 'Α'), + ie(re, se, me, 'B', 'Β'), + ie(re, se, me, 'E', 'Ε'), + ie(re, se, me, 'Z', 'Ζ'), + ie(re, se, me, 'H', 'Η'), + ie(re, se, me, 'I', 'Ι'), + ie(re, se, me, 'K', 'Κ'), + ie(re, se, me, 'M', 'Μ'), + ie(re, se, me, 'N', 'Ν'), + ie(re, se, me, 'O', 'Ο'), + ie(re, se, me, 'P', 'Ρ'), + ie(re, se, me, 'T', 'Τ'), + ie(re, se, me, 'X', 'Χ'), + ie(re, se, me, '¬', '\\neg', !0), + ie(re, se, me, '¬', '\\lnot'), + ie(re, se, me, '⊤', '\\top'), + ie(re, se, me, '⊥', '\\bot'), + ie(re, se, me, '∅', '\\emptyset'), + ie(re, ae, me, '∅', '\\varnothing'), + ie(re, se, ue, 'α', '\\alpha', !0), + ie(re, se, ue, 'β', '\\beta', !0), + ie(re, se, ue, 'γ', '\\gamma', !0), + ie(re, se, ue, 'δ', '\\delta', !0), + ie(re, se, ue, 'ϵ', '\\epsilon', !0), + ie(re, se, ue, 'ζ', '\\zeta', !0), + ie(re, se, ue, 'η', '\\eta', !0), + ie(re, se, ue, 'θ', '\\theta', !0), + ie(re, se, ue, 'ι', '\\iota', !0), + ie(re, se, ue, 'κ', '\\kappa', !0), + ie(re, se, ue, 'λ', '\\lambda', !0), + ie(re, se, ue, 'μ', '\\mu', !0), + ie(re, se, ue, 'ν', '\\nu', !0), + ie(re, se, ue, 'ξ', '\\xi', !0), + ie(re, se, ue, 'ο', '\\omicron', !0), + ie(re, se, ue, 'π', '\\pi', !0), + ie(re, se, ue, 'ρ', '\\rho', !0), + ie(re, se, ue, 'σ', '\\sigma', !0), + ie(re, se, ue, 'τ', '\\tau', !0), + ie(re, se, ue, 'υ', '\\upsilon', !0), + ie(re, se, ue, 'ϕ', '\\phi', !0), + ie(re, se, ue, 'χ', '\\chi', !0), + ie(re, se, ue, 'ψ', '\\psi', !0), + ie(re, se, ue, 'ω', '\\omega', !0), + ie(re, se, ue, 'ε', '\\varepsilon', !0), + ie(re, se, ue, 'ϑ', '\\vartheta', !0), + ie(re, se, ue, 'ϖ', '\\varpi', !0), + ie(re, se, ue, 'ϱ', '\\varrho', !0), + ie(re, se, ue, 'ς', '\\varsigma', !0), + ie(re, se, ue, 'φ', '\\varphi', !0), + ie(re, se, ce, '∗', '*', !0), + ie(re, se, ce, '+', '+'), + ie(re, se, ce, '−', '-', !0), + ie(re, se, ce, '⋅', '\\cdot', !0), + ie(re, se, ce, '∘', '\\circ'), + ie(re, se, ce, '÷', '\\div', !0), + ie(re, se, ce, '±', '\\pm', !0), + ie(re, se, ce, '×', '\\times', !0), + ie(re, se, ce, '∩', '\\cap', !0), + ie(re, se, ce, '∪', '\\cup', !0), + ie(re, se, ce, '∖', '\\setminus'), + ie(re, se, ce, '∧', '\\land'), + ie(re, se, ce, '∨', '\\lor'), + ie(re, se, ce, '∧', '\\wedge', !0), + ie(re, se, ce, '∨', '\\vee', !0), + ie(re, se, me, '√', '\\surd'), + ie(re, se, he, '⟨', '\\langle', !0), + ie(re, se, he, '∣', '\\lvert'), + ie(re, se, he, '∥', '\\lVert'), + ie(re, se, le, '?', '?'), + ie(re, se, le, '!', '!'), + ie(re, se, le, '⟩', '\\rangle', !0), + ie(re, se, le, '∣', '\\rvert'), + ie(re, se, le, '∥', '\\rVert'), + ie(re, se, Ie, '=', '='), + ie(re, se, Ie, ':', ':'), + ie(re, se, Ie, '≈', '\\approx', !0), + ie(re, se, Ie, '≅', '\\cong', !0), + ie(re, se, Ie, '≥', '\\ge'), + ie(re, se, Ie, '≥', '\\geq', !0), + ie(re, se, Ie, '←', '\\gets'), + ie(re, se, Ie, '>', '\\gt', !0), + ie(re, se, Ie, '∈', '\\in', !0), + ie(re, se, Ie, '', '\\@not'), + ie(re, se, Ie, '⊂', '\\subset', !0), + ie(re, se, Ie, '⊃', '\\supset', !0), + ie(re, se, Ie, '⊆', '\\subseteq', !0), + ie(re, se, Ie, '⊇', '\\supseteq', !0), + ie(re, ae, Ie, '⊈', '\\nsubseteq', !0), + ie(re, ae, Ie, '⊉', '\\nsupseteq', !0), + ie(re, se, Ie, '⊨', '\\models'), + ie(re, se, Ie, '←', '\\leftarrow', !0), + ie(re, se, Ie, '≤', '\\le'), + ie(re, se, Ie, '≤', '\\leq', !0), + ie(re, se, Ie, '<', '\\lt', !0), + ie(re, se, Ie, '→', '\\rightarrow', !0), + ie(re, se, Ie, '→', '\\to'), + ie(re, ae, Ie, '≱', '\\ngeq', !0), + ie(re, ae, Ie, '≰', '\\nleq', !0), + ie(re, se, pe, ' ', '\\ '), + ie(re, se, pe, ' ', '\\space'), + ie(re, se, pe, ' ', '\\nobreakspace'), + ie(oe, se, pe, ' ', '\\ '), + ie(oe, se, pe, ' ', ' '), + ie(oe, se, pe, ' ', '\\space'), + ie(oe, se, pe, ' ', '\\nobreakspace'), + ie(re, se, pe, null, '\\nobreak'), + ie(re, se, pe, null, '\\allowbreak'), + ie(re, se, Ce, ',', ','), + ie(re, se, Ce, ';', ';'), + ie(re, ae, ce, '⊼', '\\barwedge', !0), + ie(re, ae, ce, '⊻', '\\veebar', !0), + ie(re, se, ce, '⊙', '\\odot', !0), + ie(re, se, ce, '⊕', '\\oplus', !0), + ie(re, se, ce, '⊗', '\\otimes', !0), + ie(re, se, me, '∂', '\\partial', !0), + ie(re, se, ce, '⊘', '\\oslash', !0), + ie(re, ae, ce, '⊚', '\\circledcirc', !0), + ie(re, ae, ce, '⊡', '\\boxdot', !0), + ie(re, se, ce, '△', '\\bigtriangleup'), + ie(re, se, ce, '▽', '\\bigtriangledown'), + ie(re, se, ce, '†', '\\dagger'), + ie(re, se, ce, '⋄', '\\diamond'), + ie(re, se, ce, '⋆', '\\star'), + ie(re, se, ce, '◃', '\\triangleleft'), + ie(re, se, ce, '▹', '\\triangleright'), + ie(re, se, he, '{', '\\{'), + ie(oe, se, me, '{', '\\{'), + ie(oe, se, me, '{', '\\textbraceleft'), + ie(re, se, le, '}', '\\}'), + ie(oe, se, me, '}', '\\}'), + ie(oe, se, me, '}', '\\textbraceright'), + ie(re, se, he, '{', '\\lbrace'), + ie(re, se, le, '}', '\\rbrace'), + ie(re, se, he, '[', '\\lbrack', !0), + ie(oe, se, me, '[', '\\lbrack', !0), + ie(re, se, le, ']', '\\rbrack', !0), + ie(oe, se, me, ']', '\\rbrack', !0), + ie(re, se, he, '(', '\\lparen', !0), + ie(re, se, le, ')', '\\rparen', !0), + ie(oe, se, me, '<', '\\textless', !0), + ie(oe, se, me, '>', '\\textgreater', !0), + ie(re, se, he, '⌊', '\\lfloor', !0), + ie(re, se, le, '⌋', '\\rfloor', !0), + ie(re, se, he, '⌈', '\\lceil', !0), + ie(re, se, le, '⌉', '\\rceil', !0), + ie(re, se, me, '\\', '\\backslash'), + ie(re, se, me, '∣', '|'), + ie(re, se, me, '∣', '\\vert'), + ie(oe, se, me, '|', '\\textbar', !0), + ie(re, se, me, '∥', '\\|'), + ie(re, se, me, '∥', '\\Vert'), + ie(oe, se, me, '∥', '\\textbardbl'), + ie(oe, se, me, '~', '\\textasciitilde'), + ie(oe, se, me, '\\', '\\textbackslash'), + ie(oe, se, me, '^', '\\textasciicircum'), + ie(re, se, Ie, '↑', '\\uparrow', !0), + ie(re, se, Ie, '⇑', '\\Uparrow', !0), + ie(re, se, Ie, '↓', '\\downarrow', !0), + ie(re, se, Ie, '⇓', '\\Downarrow', !0), + ie(re, se, Ie, '↕', '\\updownarrow', !0), + ie(re, se, Ie, '⇕', '\\Updownarrow', !0), + ie(re, se, de, '∐', '\\coprod'), + ie(re, se, de, '⋁', '\\bigvee'), + ie(re, se, de, '⋀', '\\bigwedge'), + ie(re, se, de, '⨄', '\\biguplus'), + ie(re, se, de, '⋂', '\\bigcap'), + ie(re, se, de, '⋃', '\\bigcup'), + ie(re, se, de, '∫', '\\int'), + ie(re, se, de, '∫', '\\intop'), + ie(re, se, de, '∬', '\\iint'), + ie(re, se, de, '∭', '\\iiint'), + ie(re, se, de, '∏', '\\prod'), + ie(re, se, de, '∑', '\\sum'), + ie(re, se, de, '⨂', '\\bigotimes'), + ie(re, se, de, '⨁', '\\bigoplus'), + ie(re, se, de, '⨀', '\\bigodot'), + ie(re, se, de, '∮', '\\oint'), + ie(re, se, de, '∯', '\\oiint'), + ie(re, se, de, '∰', '\\oiiint'), + ie(re, se, de, '⨆', '\\bigsqcup'), + ie(re, se, de, '∫', '\\smallint'), + ie(oe, se, ge, '…', '\\textellipsis'), + ie(re, se, ge, '…', '\\mathellipsis'), + ie(oe, se, ge, '…', '\\ldots', !0), + ie(re, se, ge, '…', '\\ldots', !0), + ie(re, se, ge, '⋯', '\\@cdots', !0), + ie(re, se, ge, '⋱', '\\ddots', !0), + ie(re, se, me, '⋮', '\\varvdots'), + ie(re, se, Ae, 'ˊ', '\\acute'), + ie(re, se, Ae, 'ˋ', '\\grave'), + ie(re, se, Ae, '¨', '\\ddot'), + ie(re, se, Ae, '~', '\\tilde'), + ie(re, se, Ae, 'ˉ', '\\bar'), + ie(re, se, Ae, '˘', '\\breve'), + ie(re, se, Ae, 'ˇ', '\\check'), + ie(re, se, Ae, '^', '\\hat'), + ie(re, se, Ae, '⃗', '\\vec'), + ie(re, se, Ae, '˙', '\\dot'), + ie(re, se, Ae, '˚', '\\mathring'), + ie(re, se, ue, '', '\\@imath'), + ie(re, se, ue, '', '\\@jmath'), + ie(re, se, me, 'ı', 'ı'), + ie(re, se, me, 'ȷ', 'ȷ'), + ie(oe, se, me, 'ı', '\\i', !0), + ie(oe, se, me, 'ȷ', '\\j', !0), + ie(oe, se, me, 'ß', '\\ss', !0), + ie(oe, se, me, 'æ', '\\ae', !0), + ie(oe, se, me, 'œ', '\\oe', !0), + ie(oe, se, me, 'ø', '\\o', !0), + ie(oe, se, me, 'Æ', '\\AE', !0), + ie(oe, se, me, 'Œ', '\\OE', !0), + ie(oe, se, me, 'Ø', '\\O', !0), + ie(oe, se, Ae, 'ˊ', "\\'"), + ie(oe, se, Ae, 'ˋ', '\\`'), + ie(oe, se, Ae, 'ˆ', '\\^'), + ie(oe, se, Ae, '˜', '\\~'), + ie(oe, se, Ae, 'ˉ', '\\='), + ie(oe, se, Ae, '˘', '\\u'), + ie(oe, se, Ae, '˙', '\\.'), + ie(oe, se, Ae, '¸', '\\c'), + ie(oe, se, Ae, '˚', '\\r'), + ie(oe, se, Ae, 'ˇ', '\\v'), + ie(oe, se, Ae, '¨', '\\"'), + ie(oe, se, Ae, '˝', '\\H'), + ie(oe, se, Ae, '◯', '\\textcircled'); var fe = {'--': !0, '---': !0, '``': !0, "''": !0}; - re(oe, ae, me, '–', '--', !0), - re(oe, ae, me, '–', '\\textendash'), - re(oe, ae, me, '—', '---', !0), - re(oe, ae, me, '—', '\\textemdash'), - re(oe, ae, me, '‘', '`', !0), - re(oe, ae, me, '‘', '\\textquoteleft'), - re(oe, ae, me, '’', "'", !0), - re(oe, ae, me, '’', '\\textquoteright'), - re(oe, ae, me, '“', '``', !0), - re(oe, ae, me, '“', '\\textquotedblleft'), - re(oe, ae, me, '”', "''", !0), - re(oe, ae, me, '”', '\\textquotedblright'), - re(ie, ae, me, '°', '\\degree', !0), - re(oe, ae, me, '°', '\\degree'), - re(oe, ae, me, '°', '\\textdegree', !0), - re(ie, ae, me, '£', '\\pounds'), - re(ie, ae, me, '£', '\\mathsterling', !0), - re(oe, ae, me, '£', '\\pounds'), - re(oe, ae, me, '£', '\\textsterling', !0), - re(ie, se, me, '✠', '\\maltese'), - re(oe, se, me, '✠', '\\maltese'); + ie(oe, se, me, '–', '--', !0), + ie(oe, se, me, '–', '\\textendash'), + ie(oe, se, me, '—', '---', !0), + ie(oe, se, me, '—', '\\textemdash'), + ie(oe, se, me, '‘', '`', !0), + ie(oe, se, me, '‘', '\\textquoteleft'), + ie(oe, se, me, '’', "'", !0), + ie(oe, se, me, '’', '\\textquoteright'), + ie(oe, se, me, '“', '``', !0), + ie(oe, se, me, '“', '\\textquotedblleft'), + ie(oe, se, me, '”', "''", !0), + ie(oe, se, me, '”', '\\textquotedblright'), + ie(re, se, me, '°', '\\degree', !0), + ie(oe, se, me, '°', '\\degree'), + ie(oe, se, me, '°', '\\textdegree', !0), + ie(re, se, me, '£', '\\pounds'), + ie(re, se, me, '£', '\\mathsterling', !0), + ie(oe, se, me, '£', '\\pounds'), + ie(oe, se, me, '£', '\\textsterling', !0), + ie(re, ae, me, '✠', '\\maltese'), + ie(oe, ae, me, '✠', '\\maltese'); for ( var Ee = '0123456789/@."', ye = 0; ye < Ee.length; ye++ ) { var Be = Ee.charAt(ye); - re(ie, ae, me, Be, Be); + ie(re, se, me, Be, Be); } for ( var we = '0123456789!@*()-=+";:?/.,', be = 0; be < we.length; be++ ) { - var ve = we.charAt(be); - re(oe, ae, me, ve, ve); + var Me = we.charAt(be); + ie(oe, se, me, Me, Me); } for ( - var Me = + var ve = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', Ne = 0; - Ne < Me.length; + Ne < ve.length; Ne++ ) { - var Se = Me.charAt(Ne); - re(ie, ae, ue, Se, Se), re(oe, ae, me, Se, Se); - } - re(ie, se, me, 'C', 'ℂ'), - re(oe, se, me, 'C', 'ℂ'), - re(ie, se, me, 'H', 'ℍ'), - re(oe, se, me, 'H', 'ℍ'), - re(ie, se, me, 'N', 'ℕ'), - re(oe, se, me, 'N', 'ℕ'), - re(ie, se, me, 'P', 'ℙ'), - re(oe, se, me, 'P', 'ℙ'), - re(ie, se, me, 'Q', 'ℚ'), - re(oe, se, me, 'Q', 'ℚ'), - re(ie, se, me, 'R', 'ℝ'), - re(oe, se, me, 'R', 'ℝ'), - re(ie, se, me, 'Z', 'ℤ'), - re(oe, se, me, 'Z', 'ℤ'), - re(ie, ae, ue, 'h', 'ℎ'), - re(oe, ae, ue, 'h', 'ℎ'); - for (var Qe = '', Fe = 0; Fe < Me.length; Fe++) { - var xe = Me.charAt(Fe); - re( - ie, - ae, + var Se = ve.charAt(Ne); + ie(re, se, ue, Se, Se), ie(oe, se, me, Se, Se); + } + ie(re, ae, me, 'C', 'ℂ'), + ie(oe, ae, me, 'C', 'ℂ'), + ie(re, ae, me, 'H', 'ℍ'), + ie(oe, ae, me, 'H', 'ℍ'), + ie(re, ae, me, 'N', 'ℕ'), + ie(oe, ae, me, 'N', 'ℕ'), + ie(re, ae, me, 'P', 'ℙ'), + ie(oe, ae, me, 'P', 'ℙ'), + ie(re, ae, me, 'Q', 'ℚ'), + ie(oe, ae, me, 'Q', 'ℚ'), + ie(re, ae, me, 'R', 'ℝ'), + ie(oe, ae, me, 'R', 'ℝ'), + ie(re, ae, me, 'Z', 'ℤ'), + ie(oe, ae, me, 'Z', 'ℤ'), + ie(re, se, ue, 'h', 'ℎ'), + ie(oe, se, ue, 'h', 'ℎ'); + for (var Qe = '', xe = 0; xe < ve.length; xe++) { + var Fe = ve.charAt(xe); + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56320 + Fe + 56320 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56372 + Fe + 56372 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56424 + Fe + 56424 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56580 + Fe + 56580 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56736 + Fe + 56736 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56788 + Fe + 56788 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56840 + Fe + 56840 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56944 + Fe + 56944 + xe )) ), - re(oe, ae, me, xe, Qe), - Fe < 26 && - (re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + xe < 26 && + (ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56632 + Fe + 56632 + xe )) ), - re(oe, ae, me, xe, Qe), - re( - ie, - ae, + ie(oe, se, me, Fe, Qe), + ie( + re, + se, ue, - xe, + Fe, (Qe = String.fromCharCode( 55349, - 56476 + Fe + 56476 + xe )) ), - re(oe, ae, me, xe, Qe)); + ie(oe, se, me, Fe, Qe)); } - re( - ie, - ae, + ie( + re, + se, ue, 'k', (Qe = String.fromCharCode(55349, 56668)) ), - re(oe, ae, me, 'k', Qe); + ie(oe, se, me, 'k', Qe); for (var De = 0; De < 10; De++) { var Te = De.toString(); - re( - ie, - ae, + ie( + re, + se, ue, Te, (Qe = String.fromCharCode( @@ -98346,10 +97246,10 @@ 57294 + De )) ), - re(oe, ae, me, Te, Qe), - re( - ie, - ae, + ie(oe, se, me, Te, Qe), + ie( + re, + se, ue, Te, (Qe = String.fromCharCode( @@ -98357,10 +97257,10 @@ 57314 + De )) ), - re(oe, ae, me, Te, Qe), - re( - ie, - ae, + ie(oe, se, me, Te, Qe), + ie( + re, + se, ue, Te, (Qe = String.fromCharCode( @@ -98368,10 +97268,10 @@ 57324 + De )) ), - re(oe, ae, me, Te, Qe), - re( - ie, - ae, + ie(oe, se, me, Te, Qe), + ie( + re, + se, ue, Te, (Qe = String.fromCharCode( @@ -98379,11 +97279,11 @@ 57334 + De )) ), - re(oe, ae, me, Te, Qe); + ie(oe, se, me, Te, Qe); } for (var Ye = 'ÐÞþ', Re = 0; Re < Ye.length; Re++) { var _e = Ye.charAt(Re); - re(ie, ae, ue, _e, _e), re(oe, ae, me, _e, _e); + ie(re, se, ue, _e, _e), ie(oe, se, me, _e, _e); } var Ue = [ ['mathbf', 'textbf', 'Main-Bold'], @@ -98448,7 +97348,7 @@ ], ['mathtt', 'texttt', 'Typewriter-Regular'], ], - ke = function(e, t, n) { + Ge = function(e, t, n) { return ( ne[n][e] && ne[n][e].replace && @@ -98456,23 +97356,23 @@ {value: e, metrics: S(e, t, n)} ); }, - Ge = function(e, t, n, r, i) { + Le = function(e, t, n, i, r) { var o, - a = ke(e, t, n), - s = a.metrics; - if (((e = a.value), s)) { - var A = s.italic; + s = Ge(e, t, n), + a = s.metrics; + if (((e = s.value), a)) { + var A = a.italic; ('text' === n || - (r && 'mathit' === r.font)) && + (i && 'mathit' === i.font)) && (A = 0), (o = new V( e, - s.height, - s.depth, + a.height, + a.depth, A, - s.skew, - s.width, - i + a.skew, + a.width, + r )); } else 'undefined' != typeof console && @@ -98485,19 +97385,19 @@ n + "'" ), - (o = new V(e, 0, 0, 0, 0, 0, i)); - if (r) { - (o.maxFontSize = r.sizeMultiplier), - r.style.isTight() && + (o = new V(e, 0, 0, 0, 0, 0, r)); + if (i) { + (o.maxFontSize = i.sizeMultiplier), + i.style.isTight() && o.classes.push('mtight'); - var c = r.getColor(); + var c = i.getColor(); c && (o.style.color = c); } return o; }, - Le = function(e, t) { + ke = function(e, t) { if ( - G(e.classes) !== G(t.classes) || + L(e.classes) !== L(t.classes) || e.skew !== t.skew || e.maxFontSize !== t.maxFontSize ) @@ -98507,67 +97407,67 @@ if ('mbin' === n || 'mord' === n) return !1; } - for (var r in e.style) + for (var i in e.style) if ( - e.style.hasOwnProperty(r) && - e.style[r] !== t.style[r] + e.style.hasOwnProperty(i) && + e.style[i] !== t.style[i] ) return !1; - for (var i in t.style) + for (var r in t.style) if ( - t.style.hasOwnProperty(i) && - e.style[i] !== t.style[i] + t.style.hasOwnProperty(r) && + e.style[r] !== t.style[r] ) return !1; return !0; }, - je = function(e) { + ze = function(e) { for ( - var t = 0, n = 0, r = 0, i = 0; - i < e.children.length; - i++ + var t = 0, n = 0, i = 0, r = 0; + r < e.children.length; + r++ ) { - var o = e.children[i]; + var o = e.children[r]; o.height > t && (t = o.height), o.depth > n && (n = o.depth), - o.maxFontSize > r && - (r = o.maxFontSize); + o.maxFontSize > i && + (i = o.maxFontSize); } (e.height = t), (e.depth = n), - (e.maxFontSize = r); + (e.maxFontSize = i); }, - ze = function(e, t, n, r) { - var i = new P(e, t, n, r); - return je(i), i; + je = function(e, t, n, i) { + var r = new P(e, t, n, i); + return ze(r), r; }, - Pe = function(e, t, n, r) { - return new P(e, t, n, r); + Pe = function(e, t, n, i) { + return new P(e, t, n, i); }, He = function(e) { var t = new b(e); - return je(t), t; + return ze(t), t; }, Je = function(e, t, n) { - var r = ''; + var i = ''; switch (e) { case 'amsrm': - r = 'AMS'; + i = 'AMS'; break; case 'textrm': - r = 'Main'; + i = 'Main'; break; case 'textsf': - r = 'SansSerif'; + i = 'SansSerif'; break; case 'texttt': - r = 'Typewriter'; + i = 'Typewriter'; break; default: - r = e; + i = e; } return ( - r + + i + '-' + ('textbf' === t && 'textit' === n ? 'BoldItalic' @@ -98633,57 +97533,57 @@ }, Ke = { fontMap: We, - makeSymbol: Ge, - mathsym: function(e, t, n, r) { + makeSymbol: Le, + mathsym: function(e, t, n, i) { return ( - void 0 === r && (r = []), + void 0 === i && (i = []), 'boldsymbol' === n.font && - ke(e, 'Main-Bold', t).metrics - ? Ge( + Ge(e, 'Main-Bold', t).metrics + ? Le( e, 'Main-Bold', t, n, - r.concat(['mathbf']) + i.concat(['mathbf']) ) : '\\' === e || 'main' === ne[t][e].font - ? Ge(e, 'Main-Regular', t, n, r) - : Ge( + ? Le(e, 'Main-Regular', t, n, i) + : Le( e, 'AMS-Regular', t, n, - r.concat(['amsrm']) + i.concat(['amsrm']) ) ); }, - makeSpan: ze, + makeSpan: je, makeSvgSpan: Pe, makeLineSpan: function(e, t, n) { - var r = ze([e], [], t); + var i = je([e], [], t); return ( - (r.height = Math.max( + (i.height = Math.max( n || t.fontMetrics() .defaultRuleThickness, t.minRuleThickness )), - (r.style.borderBottomWidth = k( - r.height + (i.style.borderBottomWidth = G( + i.height )), - (r.maxFontSize = 1), - r + (i.maxFontSize = 1), + i ); }, - makeAnchor: function(e, t, n, r) { - var i = new H(e, t, n, r); - return je(i), i; + makeAnchor: function(e, t, n, i) { + var r = new H(e, t, n, i); + return ze(r), r; }, makeFragment: He, wrapFragment: function(e, t) { return e instanceof b - ? ze([], [e], t) + ? je([], [e], t) : e; }, makeVList: function(e, t) { @@ -98696,41 +97596,41 @@ for ( var t = e.children, n = [t[0]], - r = + i = -t[0] .shift - t[0].elem .depth, - i = r, + r = i, o = 1; o < t.length; o++ ) { - var a = + var s = -t[o] .shift - - i - + r - t[o].elem .depth, - s = - a - + a = + s - (t[o - 1] .elem .height + t[o - 1] .elem .depth); - (i += a), + (r += s), n.push({ type: 'kern', - size: s, + size: a, }), n.push(t[o]); } return { children: n, - depth: r, + depth: i, }; } var A; @@ -98793,16 +97693,16 @@ depth: A, }; })(e), - r = n.children, - i = n.depth, + i = n.children, + r = n.depth, o = 0, - a = 0; - a < r.length; - a++ + s = 0; + s < i.length; + s++ ) { - var s = r[a]; - if ('elem' === s.type) { - var A = s.elem; + var a = i[s]; + if ('elem' === a.type) { + var A = a.elem; o = Math.max( o, A.maxFontSize, @@ -98811,30 +97711,30 @@ } } o += 2; - var c = ze(['pstrut'], []); - c.style.height = k(o); + var c = je(['pstrut'], []); + c.style.height = G(o); for ( var l = [], - g = i, - u = i, - d = i, + g = r, + u = r, + d = r, h = 0; - h < r.length; + h < i.length; h++ ) { - var C = r[h]; + var C = i[h]; if ('kern' === C.type) d += C.size; else { var I = C.elem, p = C.wrapperClasses || [], m = C.wrapperStyle || {}, - f = ze( + f = je( p, [c, I], void 0, m ); - (f.style.top = k( + (f.style.top = G( -o - d - I.depth )), C.marginLeft && @@ -98850,37 +97750,37 @@ (u = Math.max(u, d)); } var E, - y = ze(['vlist'], l); - if (((y.style.height = k(u)), g < 0)) { - var B = ze([], []), - w = ze(['vlist'], [B]); - w.style.height = k(-g); - var b = ze( + y = je(['vlist'], l); + if (((y.style.height = G(u)), g < 0)) { + var B = je([], []), + w = je(['vlist'], [B]); + w.style.height = G(-g); + var b = je( ['vlist-s'], [new V('​')] ); E = [ - ze(['vlist-r'], [y, b]), - ze(['vlist-r'], [w]), + je(['vlist-r'], [y, b]), + je(['vlist-r'], [w]), ]; - } else E = [ze(['vlist-r'], [y])]; - var v = ze(['vlist-t'], E); + } else E = [je(['vlist-r'], [y])]; + var M = je(['vlist-t'], E); return ( 2 === E.length && - v.classes.push('vlist-t2'), - (v.height = u), - (v.depth = -g), - v + M.classes.push('vlist-t2'), + (M.height = u), + (M.depth = -g), + M ); }, makeOrd: function(e, t, n) { - var i = e.mode, + var r = e.mode, o = e.text, - a = ['mord'], - s = - 'math' === i || - ('text' === i && t.font), - A = s ? t.font : t.fontFamily; + s = ['mord'], + a = + 'math' === r || + ('text' === r && t.font), + A = a ? t.font : t.fontFamily; if (55349 === o.charCodeAt(0)) { var c = (function(e, t) { var n = @@ -98892,7 +97792,7 @@ (e.charCodeAt(1) - 56320) + 65536, - i = + r = 'math' === t ? 0 : 1; @@ -98905,19 +97805,19 @@ ); return [ Ue[o][2], - Ue[o][i], + Ue[o][r], ]; } if ( 120782 <= n && n <= 120831 ) { - var a = Math.floor( + var s = Math.floor( (n - 120782) / 10 ); return [ - Oe[a][2], - Oe[a][i], + Oe[s][2], + Oe[s][r], ]; } if ( @@ -98926,21 +97826,21 @@ ) return [ Ue[0][2], - Ue[0][i], + Ue[0][r], ]; if ( 120486 < n && n < 120782 ) return ['', '']; - throw new r( + throw new i( 'Unsupported character: ' + e ); - })(o, i), + })(o, r), l = c[0], g = c[1]; - return Ge(o, l, i, t, a.concat(g)); + return Le(o, l, r, t, s.concat(g)); } if (A) { var u, d; @@ -98949,11 +97849,11 @@ e, t, n, - r, - i + i, + r ) { - return 'textord' !== i && - ke( + return 'textord' !== r && + Ge( e, 'Math-BoldItalic', t @@ -98970,11 +97870,11 @@ fontClass: 'mathbf', }; - })(o, i, 0, 0, n); + })(o, r, 0, 0, n); (u = h.fontName), (d = [h.fontClass]); } else - s + a ? ((u = We[A].fontName), (d = [A])) : ((u = Je( @@ -98987,13 +97887,13 @@ t.fontWeight, t.fontShape, ])); - if (ke(o, u, i).metrics) - return Ge( + if (Ge(o, u, r).metrics) + return Le( o, u, - i, + r, t, - a.concat(d) + s.concat(d) ); if ( fe.hasOwnProperty(o) && @@ -99005,39 +97905,39 @@ I++ ) C.push( - Ge( + Le( o[I], u, - i, + r, t, - a.concat(d) + s.concat(d) ) ); return He(C); } } if ('mathord' === n) - return Ge( + return Le( o, 'Math-Italic', - i, + r, t, - a.concat(['mathnormal']) + s.concat(['mathnormal']) ); if ('textord' === n) { - var p = ne[i][o] && ne[i][o].font; + var p = ne[r][o] && ne[r][o].font; if ('ams' === p) { var m = Je( 'amsrm', t.fontWeight, t.fontShape ); - return Ge( + return Le( o, m, - i, + r, t, - a.concat( + s.concat( 'amsrm', t.fontWeight, t.fontShape @@ -99050,12 +97950,12 @@ t.fontWeight, t.fontShape ); - return Ge( + return Le( o, f, - i, + r, t, - a.concat( + s.concat( f, t.fontWeight, t.fontShape @@ -99067,12 +97967,12 @@ t.fontWeight, t.fontShape ); - return Ge( + return Le( o, E, - i, + r, t, - a.concat( + s.concat( t.fontWeight, t.fontShape ) @@ -99085,32 +97985,32 @@ ); }, makeGlue: function(e, t) { - var n = ze(['mspace'], [], t), - r = O(e, t); - return (n.style.marginRight = k(r)), n; + var n = je(['mspace'], [], t), + i = O(e, t); + return (n.style.marginRight = G(i)), n; }, staticSvg: function(e, t) { var n = Ve[e], - r = n[0], - i = n[1], + i = n[0], + r = n[1], o = n[2], - a = new Z(r), - s = new K([a], { - width: k(i), - height: k(o), - style: 'width:' + k(i), + s = new Z(i), + a = new K([s], { + width: G(r), + height: G(o), + style: 'width:' + G(r), viewBox: '0 0 ' + - 1e3 * i + + 1e3 * r + ' ' + 1e3 * o, preserveAspectRatio: 'xMinYMin', }), - A = Pe(['overlay'], [s], t); + A = Pe(['overlay'], [a], t); return ( (A.height = o), - (A.style.height = k(o)), - (A.style.width = k(i)), + (A.style.height = G(o)), + (A.style.width = G(r)), A ); }, @@ -99118,20 +98018,20 @@ tryCombineChars: function(e) { for (var t = 0; t < e.length - 1; t++) { var n = e[t], - r = e[t + 1]; + i = e[t + 1]; n instanceof V && - r instanceof V && - Le(n, r) && - ((n.text += r.text), + i instanceof V && + ke(n, i) && + ((n.text += i.text), (n.height = Math.max( n.height, - r.height + i.height )), (n.depth = Math.max( n.depth, - r.depth + i.depth )), - (n.italic = r.italic), + (n.italic = i.italic), e.splice(t + 1, 1), t--); } @@ -99204,39 +98104,39 @@ }, tt = {}, nt = {}, - rt = {}; - function it(e) { + it = {}; + function rt(e) { for ( var t = e.type, n = e.names, - r = e.props, - i = e.handler, + i = e.props, + r = e.handler, o = e.htmlBuilder, - a = e.mathmlBuilder, - s = { + s = e.mathmlBuilder, + a = { type: t, - numArgs: r.numArgs, - argTypes: r.argTypes, - allowedInArgument: !!r.allowedInArgument, - allowedInText: !!r.allowedInText, + numArgs: i.numArgs, + argTypes: i.argTypes, + allowedInArgument: !!i.allowedInArgument, + allowedInText: !!i.allowedInText, allowedInMath: - void 0 === r.allowedInMath || - r.allowedInMath, + void 0 === i.allowedInMath || + i.allowedInMath, numOptionalArgs: - r.numOptionalArgs || 0, - infix: !!r.infix, - primitive: !!r.primitive, - handler: i, + i.numOptionalArgs || 0, + infix: !!i.infix, + primitive: !!i.primitive, + handler: r, }, A = 0; A < n.length; ++A ) - tt[n[A]] = s; - t && (o && (nt[t] = o), a && (rt[t] = a)); + tt[n[A]] = a; + t && (o && (nt[t] = o), s && (it[t] = s)); } function ot(e) { - it({ + rt({ type: e.type, names: [], props: {numArgs: 0}, @@ -99249,13 +98149,13 @@ mathmlBuilder: e.mathmlBuilder, }); } - var at = function(e) { + var st = function(e) { return 'ordgroup' === e.type && 1 === e.body.length ? e.body[0] : e; }, - st = function(e) { + at = function(e) { return 'ordgroup' === e.type ? e.body : [e]; }, At = Ke.makeSpan, @@ -99284,16 +98184,16 @@ mpunct: 'mpunct', minner: 'minner', }, - dt = function(e, t, n, r) { - void 0 === r && (r = [null, null]); - for (var i = [], o = 0; o < e.length; o++) { - var a = ft(e[o], t); - if (a instanceof b) { - var s = a.children; - i.push.apply(i, s); - } else i.push(a); + dt = function(e, t, n, i) { + void 0 === i && (i = [null, null]); + for (var r = [], o = 0; o < e.length; o++) { + var s = ft(e[o], t); + if (s instanceof b) { + var a = s.children; + r.push.apply(r, a); + } else r.push(s); } - if ((Ke.tryCombineChars(i), !n)) return i; + if ((Ke.tryCombineChars(r), !n)) return r; var c = t; if (1 === e.length) { var l = e[0]; @@ -99302,19 +98202,19 @@ : 'styling' === l.type && (c = t.havingStyle(gt[l.style])); } - var g = At([r[0] || 'leftmost'], [], t), - u = At([r[1] || 'rightmost'], [], t), + var g = At([i[0] || 'leftmost'], [], t), + u = At([i[1] || 'rightmost'], [], t), d = 'root' === n; return ( ht( - i, + r, function(e, t) { var n = t.classes[0], - r = e.classes[0]; + i = e.classes[0]; 'mbin' === n && - A.contains(lt, r) + A.contains(lt, i) ? (t.classes[0] = 'mord') - : 'mbin' === r && + : 'mbin' === i && A.contains(ct, n) && (e.classes[0] = 'mord'); }, @@ -99323,56 +98223,56 @@ d ), ht( - i, + r, function(e, t) { var n = pt(t), - r = pt(e), - i = - n && r + i = pt(e), + r = + n && i ? e.hasClass( 'mtight' ) - ? et[n][r] - : $e[n][r] + ? et[n][i] + : $e[n][i] : null; - if (i) return Ke.makeGlue(i, c); + if (r) return Ke.makeGlue(r, c); }, {node: g}, u, d ), - i + r ); }, - ht = function e(t, n, r, i, o) { - i && t.push(i); - for (var a = 0; a < t.length; a++) { - var s = t[a], - A = Ct(s); - if (A) e(A.children, n, r, null, o); + ht = function e(t, n, i, r, o) { + r && t.push(r); + for (var s = 0; s < t.length; s++) { + var a = t[s], + A = Ct(a); + if (A) e(A.children, n, i, null, o); else { - var c = !s.hasClass('mspace'); + var c = !a.hasClass('mspace'); if (c) { - var l = n(s, r.node); + var l = n(a, i.node); l && - (r.insertAfter - ? r.insertAfter(l) - : (t.unshift(l), a++)); + (i.insertAfter + ? i.insertAfter(l) + : (t.unshift(l), s++)); } c - ? (r.node = s) + ? (i.node = a) : o && - s.hasClass('newline') && - (r.node = At(['leftmost'])), - (r.insertAfter = (function(e) { + a.hasClass('newline') && + (i.node = At(['leftmost'])), + (i.insertAfter = (function(e) { return function(n) { t.splice(e + 1, 0, n), - a++; + s++; }; - })(a)); + })(s)); } } - i && t.pop(); + r && t.pop(); }, Ct = function(e) { return e instanceof b || @@ -99383,17 +98283,17 @@ : null; }, It = function e(t, n) { - var r = Ct(t); - if (r) { - var i = r.children; - if (i.length) { + var i = Ct(t); + if (i) { + var r = i.children; + if (r.length) { if ('right' === n) return e( - i[i.length - 1], + r[r.length - 1], 'right' ); if ('left' === n) - return e(i[0], 'left'); + return e(r[0], 'left'); } } return t; @@ -99413,17 +98313,17 @@ ft = function(e, t, n) { if (!e) return At(); if (nt[e.type]) { - var i = nt[e.type](e, t); + var r = nt[e.type](e, t); if (n && t.size !== n.size) { - i = At(t.sizingClasses(n), [i], t); + r = At(t.sizingClasses(n), [r], t); var o = t.sizeMultiplier / n.sizeMultiplier; - (i.height *= o), (i.depth *= o); + (r.height *= o), (r.depth *= o); } - return i; + return r; } - throw new r( + throw new i( "Got group of unknown type: '" + e.type + "'" @@ -99431,12 +98331,12 @@ }; function Et(e, t) { var n = At(['base'], e, t), - r = At(['strut']); + i = At(['strut']); return ( - (r.style.height = k(n.height + n.depth)), + (i.style.height = G(n.height + n.depth)), n.depth && - (r.style.verticalAlign = k(-n.depth)), - n.children.unshift(r), + (i.style.verticalAlign = G(-n.depth)), + n.children.unshift(i), n ); } @@ -99445,55 +98345,55 @@ 1 === e.length && 'tag' === e[0].type && ((n = e[0].tag), (e = e[0].body)); - var r, - i = dt(e, t, 'root'); - 2 === i.length && - i[1].hasClass('tag') && - (r = i.pop()); + var i, + r = dt(e, t, 'root'); + 2 === r.length && + r[1].hasClass('tag') && + (i = r.pop()); for ( - var o, a = [], s = [], A = 0; - A < i.length; + var o, s = [], a = [], A = 0; + A < r.length; A++ ) if ( - (s.push(i[A]), - i[A].hasClass('mbin') || - i[A].hasClass('mrel') || - i[A].hasClass('allowbreak')) + (a.push(r[A]), + r[A].hasClass('mbin') || + r[A].hasClass('mrel') || + r[A].hasClass('allowbreak')) ) { for ( var c = !1; - A < i.length - 1 && - i[A + 1].hasClass('mspace') && - !i[A + 1].hasClass('newline'); + A < r.length - 1 && + r[A + 1].hasClass('mspace') && + !r[A + 1].hasClass('newline'); ) A++, - s.push(i[A]), - i[A].hasClass('nobreak') && + a.push(r[A]), + r[A].hasClass('nobreak') && (c = !0); - c || (a.push(Et(s, t)), (s = [])); + c || (s.push(Et(a, t)), (a = [])); } else - i[A].hasClass('newline') && - (s.pop(), - s.length > 0 && - (a.push(Et(s, t)), (s = [])), - a.push(i[A])); - s.length > 0 && a.push(Et(s, t)), + r[A].hasClass('newline') && + (a.pop(), + a.length > 0 && + (s.push(Et(a, t)), (a = [])), + s.push(r[A])); + a.length > 0 && s.push(Et(a, t)), n ? (((o = Et(dt(n, t, !0))).classes = [ 'tag', ]), - a.push(o)) - : r && a.push(r); - var l = At(['katex-html'], a); + s.push(o)) + : i && s.push(i); + var l = At(['katex-html'], s); if ( (l.setAttribute('aria-hidden', 'true'), o) ) { var g = o.children[0]; - (g.style.height = k(l.height + l.depth)), + (g.style.height = G(l.height + l.depth)), l.depth && - (g.style.verticalAlign = k( + (g.style.verticalAlign = G( -l.depth )); } @@ -99536,7 +98436,7 @@ this.attributes[t] ); this.classes.length > 0 && - (e.className = G(this.classes)); + (e.className = L(this.classes)); for ( var n = 0; n < this.children.length; @@ -99562,7 +98462,7 @@ this.classes.length > 0 && (e += ' class ="' + - A.escape(G(this.classes)) + + A.escape(L(this.classes)) + '"'), (e += '>'); for ( @@ -99606,7 +98506,7 @@ e ); })(), - vt = { + Mt = { MathNode: wt, TextNode: bt, SpaceNode: (function() { @@ -99654,7 +98554,7 @@ return ( e.setAttribute( 'width', - k(this.width) + G(this.width) ), e ); @@ -99665,7 +98565,7 @@ this.character + '' : ''; }), (t.toText = function() { @@ -99678,7 +98578,7 @@ })(), newDocumentFragment: Bt, }, - Mt = function(e, t, n) { + vt = function(e, t, n) { return ( !ne[t][e] || !ne[t][e].replace || @@ -99698,13 +98598,13 @@ 2 )))) || (e = ne[t][e].replace), - new vt.TextNode(e) + new Mt.TextNode(e) ); }, Nt = function(e) { return 1 === e.length ? e[0] - : new vt.MathNode('mrow', e); + : new Mt.MathNode('mrow', e); }, St = function(e, t) { if ('texttt' === t.fontFamily) @@ -99729,7 +98629,7 @@ return 'bold'; var n = t.font; if (!n || 'mathnormal' === n) return null; - var r = e.mode; + var i = e.mode; if ('mathit' === n) return 'italic'; if ('boldsymbol' === n) return 'textord' === e.type @@ -99742,102 +98642,102 @@ return 'script'; if ('mathsf' === n) return 'sans-serif'; if ('mathtt' === n) return 'monospace'; - var i = e.text; - return A.contains(['\\imath', '\\jmath'], i) + var r = e.text; + return A.contains(['\\imath', '\\jmath'], r) ? null - : (ne[r][i] && - ne[r][i].replace && - (i = ne[r][i].replace), - S(i, Ke.fontMap[n].fontName, r) + : (ne[i][r] && + ne[i][r].replace && + (r = ne[i][r].replace), + S(r, Ke.fontMap[n].fontName, i) ? Ke.fontMap[n].variant : null); }, Qt = function(e, t, n) { if (1 === e.length) { - var r = xt(e[0], t); + var i = Ft(e[0], t); return ( n && - r instanceof wt && - 'mo' === r.type && - (r.setAttribute( + i instanceof wt && + 'mo' === i.type && + (i.setAttribute( 'lspace', '0em' ), - r.setAttribute( + i.setAttribute( 'rspace', '0em' )), - [r] + [i] ); } for ( - var i, o = [], a = 0; - a < e.length; - a++ + var r, o = [], s = 0; + s < e.length; + s++ ) { - var s = xt(e[a], t); + var a = Ft(e[s], t); if ( - s instanceof wt && - i instanceof wt + a instanceof wt && + r instanceof wt ) { if ( - 'mtext' === s.type && - 'mtext' === i.type && - s.getAttribute( + 'mtext' === a.type && + 'mtext' === r.type && + a.getAttribute( 'mathvariant' ) === - i.getAttribute( + r.getAttribute( 'mathvariant' ) ) { var A; - (A = i.children).push.apply( + (A = r.children).push.apply( A, - s.children + a.children ); continue; } if ( - 'mn' === s.type && - 'mn' === i.type + 'mn' === a.type && + 'mn' === r.type ) { var c; - (c = i.children).push.apply( + (c = r.children).push.apply( c, - s.children + a.children ); continue; } if ( - 'mi' === s.type && - 1 === s.children.length && - 'mn' === i.type + 'mi' === a.type && + 1 === a.children.length && + 'mn' === r.type ) { - var l = s.children[0]; + var l = a.children[0]; if ( l instanceof bt && '.' === l.text ) { var g; - (g = i.children).push.apply( + (g = r.children).push.apply( g, - s.children + a.children ); continue; } } else if ( - 'mi' === i.type && - 1 === i.children.length + 'mi' === r.type && + 1 === r.children.length ) { - var u = i.children[0]; + var u = r.children[0]; if ( u instanceof bt && '̸' === u.text && - ('mo' === s.type || - 'mi' === s.type || - 'mn' === s.type) + ('mo' === a.type || + 'mi' === a.type || + 'mn' === a.type) ) { - var d = s.children[0]; + var d = a.children[0]; d instanceof bt && d.text.length > 0 && ((d.text = @@ -99848,43 +98748,43 @@ } } } - o.push(s), (i = s); + o.push(a), (r = a); } return o; }, - Ft = function(e, t, n) { + xt = function(e, t, n) { return Nt(Qt(e, t, n)); }, - xt = function(e, t) { - if (!e) return new vt.MathNode('mrow'); - if (rt[e.type]) return rt[e.type](e, t); - throw new r( + Ft = function(e, t) { + if (!e) return new Mt.MathNode('mrow'); + if (it[e.type]) return it[e.type](e, t); + throw new i( "Got group of unknown type: '" + e.type + "'" ); }; - function Dt(e, t, n, r, i) { + function Dt(e, t, n, i, r) { var o, - a = Qt(e, n); + s = Qt(e, n); o = - 1 === a.length && - a[0] instanceof wt && - A.contains(['mrow', 'mtable'], a[0].type) - ? a[0] - : new vt.MathNode('mrow', a); - var s = new vt.MathNode('annotation', [ - new vt.TextNode(t), + 1 === s.length && + s[0] instanceof wt && + A.contains(['mrow', 'mtable'], s[0].type) + ? s[0] + : new Mt.MathNode('mrow', s); + var a = new Mt.MathNode('annotation', [ + new Mt.TextNode(t), ]); - s.setAttribute('encoding', 'application/x-tex'); - var c = new vt.MathNode('semantics', [o, s]), - l = new vt.MathNode('math', [c]); + a.setAttribute('encoding', 'application/x-tex'); + var c = new Mt.MathNode('semantics', [o, a]), + l = new Mt.MathNode('math', [c]); l.setAttribute( 'xmlns', 'http://www.w3.org/1998/Math/MathML' ), - r && l.setAttribute('display', 'block'); - var g = i ? 'katex' : 'katex-mathml'; + i && l.setAttribute('display', 'block'); + var g = r ? 'katex' : 'katex-mathml'; return Ke.makeSpan([g], [l]); } var Tt = function(e) { @@ -100191,20 +99091,20 @@ 716, ], }, - Ut = function(e, t, n, r, i) { + Ut = function(e, t, n, i, r) { var o, - a = e.height + e.depth + n + r; + s = e.height + e.depth + n + i; if (/fbox|color|angl/.test(t)) { if ( ((o = Ke.makeSpan( ['stretchy', t], [], - i + r )), 'fbox' === t) ) { - var s = i.color && i.getColor(); - s && (o.style.borderColor = s); + var a = r.color && r.getColor(); + a && (o.style.borderColor = a); } } else { var A = []; @@ -100231,19 +99131,19 @@ ); var c = new K(A, { width: '100%', - height: k(a), + height: G(s), }); - o = Ke.makeSvgSpan([], [c], i); + o = Ke.makeSvgSpan([], [c], r); } return ( - (o.height = a), - (o.style.height = k(a)), + (o.height = s), + (o.style.height = G(s)), o ); }, Ot = function(e) { - var t = new vt.MathNode('mo', [ - new vt.TextNode( + var t = new Mt.MathNode('mo', [ + new Mt.TextNode( Rt[e.replace(/^\\/, '')] ), ]); @@ -100251,10 +99151,10 @@ t.setAttribute('stretchy', 'true'), t ); }, - kt = function(e, t) { + Gt = function(e, t) { var n = (function() { var n = 4e5, - r = e.label.substr(1); + i = e.label.substr(1); if ( A.contains( [ @@ -100263,34 +99163,34 @@ 'widetilde', 'utilde', ], - r + i ) ) { - var i, + var r, o, - a, - s = + s, + a = 'ordgroup' === (h = e.base).type ? h.body.length : 1; - if (s > 5) - 'widehat' === r || - 'widecheck' === r - ? ((i = 420), + if (a > 5) + 'widehat' === i || + 'widecheck' === i + ? ((r = 420), (n = 2364), - (a = 0.42), - (o = r + '4')) - : ((i = 312), + (s = 0.42), + (o = i + '4')) + : ((r = 312), (n = 2340), - (a = 0.34), + (s = 0.34), (o = 'tilde4')); else { var c = [1, 1, 2, 2, 3, 3][ - s + a ]; - 'widehat' === r || - 'widecheck' === r + 'widehat' === i || + 'widecheck' === i ? ((n = [ 0, 1062, @@ -100298,14 +99198,14 @@ 2364, 2364, ][c]), - (i = [ + (r = [ 0, 239, 300, 360, 420, ][c]), - (a = [ + (s = [ 0, 0.24, 0.3, @@ -100313,7 +99213,7 @@ 0.36, 0.42, ][c]), - (o = r + c)) + (o = i + c)) : ((n = [ 0, 600, @@ -100321,14 +99221,14 @@ 2339, 2340, ][c]), - (i = [ + (r = [ 0, 260, 286, 306, 312, ][c]), - (a = [ + (s = [ 0, 0.26, 0.286, @@ -100341,12 +99241,12 @@ var l = new Z(o), g = new K([l], { width: '100%', - height: k(a), + height: G(s), viewBox: '0 0 ' + n + ' ' + - i, + r, preserveAspectRatio: 'none', }); @@ -100357,14 +99257,14 @@ t ), minWidth: 0, - height: a, + height: s, }; } var u, d, h, C = [], - I = _t[r], + I = _t[i], p = I[0], m = I[1], f = I[2], @@ -100404,7 +99304,7 @@ var w = new Z(p[B]), b = new K([w], { width: '400em', - height: k(E), + height: G(E), viewBox: '0 0 ' + n + @@ -100413,19 +99313,19 @@ preserveAspectRatio: d[B] + ' slice', }), - v = Ke.makeSvgSpan( + M = Ke.makeSvgSpan( [u[B]], [b], t ); if (1 === y) return { - span: v, + span: M, minWidth: m, height: E, }; - (v.style.height = k(E)), - C.push(v); + (M.style.height = G(E)), + C.push(M); } return { span: Ke.makeSpan( @@ -100437,17 +99337,17 @@ height: E, }; })(), - r = n.span, - i = n.minWidth, + i = n.span, + r = n.minWidth, o = n.height; return ( - (r.height = o), - (r.style.height = k(o)), - i > 0 && (r.style.minWidth = k(i)), - r + (i.height = o), + (i.style.height = G(o)), + r > 0 && (i.style.minWidth = G(r)), + i ); }; - function Gt(e, t) { + function Lt(e, t) { if (!e || e.type !== t) throw new Error( 'Expected node of type ' + @@ -100459,8 +99359,8 @@ ); return e; } - function Lt(e) { - var t = jt(e); + function kt(e) { + var t = zt(e); if (!t) throw new Error( 'Expected node of symbol group type, but got ' + @@ -100470,20 +99370,20 @@ ); return t; } - function jt(e) { + function zt(e) { return e && ('atom' === e.type || ee.hasOwnProperty(e.type)) ? e : null; } - var zt = function(e, t) { - var n, r, i; + var jt = function(e, t) { + var n, i, r; e && 'supsub' === e.type - ? ((n = (r = Gt(e.base, 'accent')) + ? ((n = (i = Lt(e.base, 'accent')) .base), (e.base = n), - (i = (function(e) { + (r = (function(e) { if (e instanceof P) return e; throw new Error( 'Expected span but got ' + @@ -100491,25 +99391,25 @@ '.' ); })(ft(e, t))), - (e.base = r)) - : (n = (r = Gt(e, 'accent')).base); + (e.base = i)) + : (n = (i = Lt(e, 'accent')).base); var o = ft(n, t.havingCrampedStyle()), - a = 0; - if (r.isShifty && A.isCharacterBox(n)) { - var s = A.getBaseElem(n); - a = q(ft(s, t.havingCrampedStyle())) + s = 0; + if (i.isShifty && A.isCharacterBox(n)) { + var a = A.getBaseElem(n); + s = q(ft(a, t.havingCrampedStyle())) .skew; } var c, - l = '\\c' === r.label, + l = '\\c' === i.label, g = l ? o.height + o.depth : Math.min( o.height, t.fontMetrics().xHeight ); - if (r.isStretchy) - (c = kt(r, t)), + if (i.isStretchy) + (c = Gt(i, t)), (c = Ke.makeVList( { positionType: @@ -100523,18 +99423,18 @@ 'svg-align', ], wrapperStyle: - a > 0 + s > 0 ? { width: 'calc(100% - ' + - k( + G( 2 * - a + s ) + ')', - marginLeft: k( + marginLeft: G( 2 * - a + s ), } : void 0, @@ -100545,14 +99445,14 @@ )); else { var u, d; - '\\vec' === r.label + '\\vec' === i.label ? ((u = Ke.staticSvg('vec', t)), (d = Ke.svgData.vec[1])) : (((u = q( (u = Ke.makeOrd( { - mode: r.mode, - text: r.label, + mode: i.mode, + text: i.label, }, t, 'textord' @@ -100564,14 +99464,14 @@ ['accent-body'], [u] )); - var h = '\\textcircled' === r.label; + var h = '\\textcircled' === i.label; h && (c.classes.push('accent-full'), (g = o.height)); - var C = a; + var C = s; h || (C -= d / 2), - (c.style.left = k(C)), - '\\textcircled' === r.label && + (c.style.left = G(C)), + '\\textcircled' === i.label && (c.style.top = '.2em'), (c = Ke.makeVList( { @@ -100594,27 +99494,27 @@ [c], t ); - return i - ? ((i.children[0] = I), - (i.height = Math.max( + return r + ? ((r.children[0] = I), + (r.height = Math.max( I.height, - i.height + r.height )), - (i.classes[0] = 'mord'), - i) + (r.classes[0] = 'mord'), + r) : I; }, Pt = function(e, t) { var n = e.isStretchy ? Ot(e.label) - : new vt.MathNode('mo', [ - Mt(e.label, e.mode), + : new Mt.MathNode('mo', [ + vt(e.label, e.mode), ]), - r = new vt.MathNode('mover', [ - xt(e.base, t), + i = new Mt.MathNode('mover', [ + Ft(e.base, t), n, ]); - return r.setAttribute('accent', 'true'), r; + return i.setAttribute('accent', 'true'), i; }, Ht = new RegExp( [ @@ -100635,7 +99535,7 @@ }) .join('|') ); - it({ + rt({ type: 'accent', names: [ '\\acute', @@ -100663,10 +99563,10 @@ ], props: {numArgs: 1}, handler: function(e, t) { - var n = at(t[0]), - r = !Ht.test(e.funcName), - i = - !r || + var n = st(t[0]), + i = !Ht.test(e.funcName), + r = + !i || '\\widehat' === e.funcName || '\\widetilde' === e.funcName || '\\widecheck' === e.funcName; @@ -100674,15 +99574,15 @@ type: 'accent', mode: e.parser.mode, label: e.funcName, - isStretchy: r, - isShifty: i, + isStretchy: i, + isShifty: r, base: n, }; }, - htmlBuilder: zt, + htmlBuilder: jt, mathmlBuilder: Pt, }), - it({ + rt({ type: 'accent', names: [ "\\'", @@ -100707,19 +99607,19 @@ }, handler: function(e, t) { var n = t[0], - r = e.parser.mode; + i = e.parser.mode; return ( - 'math' === r && + 'math' === i && (e.parser.settings.reportNonstrict( 'mathVsTextAccents', "LaTeX's accent " + e.funcName + ' works only in text mode' ), - (r = 'text')), + (i = 'text')), { type: 'accent', - mode: r, + mode: i, label: e.funcName, isStretchy: !1, isShifty: !0, @@ -100727,10 +99627,10 @@ } ); }, - htmlBuilder: zt, + htmlBuilder: jt, mathmlBuilder: Pt, }), - it({ + rt({ type: 'accentUnder', names: [ '\\underleftarrow', @@ -100743,19 +99643,19 @@ props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'accentUnder', mode: n.mode, - label: r, - base: i, + label: i, + base: r, }; }, htmlBuilder: function(e, t) { var n = ft(e.base, t), - r = kt(e, t), - i = + i = Gt(e, t), + r = '\\utilde' === e.label ? 0.12 : 0, @@ -100766,12 +99666,12 @@ children: [ { type: 'elem', - elem: r, + elem: i, wrapperClasses: [ 'svg-align', ], }, - {type: 'kern', size: i}, + {type: 'kern', size: r}, {type: 'elem', elem: n}, ], }, @@ -100785,21 +99685,21 @@ }, mathmlBuilder: function(e, t) { var n = Ot(e.label), - r = new vt.MathNode('munder', [ - xt(e.base, t), + i = new Mt.MathNode('munder', [ + Ft(e.base, t), n, ]); return ( - r.setAttribute( + i.setAttribute( 'accentunder', 'true' ), - r + i ); }, }); var Jt = function(e) { - var t = new vt.MathNode( + var t = new Mt.MathNode( 'mpadded', e ? [e] : [] ); @@ -100809,7 +99709,7 @@ t ); }; - it({ + rt({ type: 'xArrow', names: [ '\\xleftarrow', @@ -100840,37 +99740,37 @@ ], props: {numArgs: 1, numOptionalArgs: 1}, handler: function(e, t, n) { - var r = e.parser, - i = e.funcName; + var i = e.parser, + r = e.funcName; return { type: 'xArrow', - mode: r.mode, - label: i, + mode: i.mode, + label: r, body: t[0], below: n[0], }; }, htmlBuilder: function(e, t) { var n, - r = t.style, - i = t.havingStyle(r.sup()), + i = t.style, + r = t.havingStyle(i.sup()), o = Ke.wrapFragment( - ft(e.body, i, t), + ft(e.body, r, t), t ), - a = + s = '\\x' === e.label.slice(0, 2) ? 'x' : 'cd'; - o.classes.push(a + '-arrow-pad'), + o.classes.push(s + '-arrow-pad'), e.below && - ((i = t.havingStyle(r.sub())), + ((r = t.havingStyle(i.sub())), (n = Ke.wrapFragment( - ft(e.below, i, t), + ft(e.below, r, t), t - )).classes.push(a + '-arrow-pad')); - var s, - A = kt(e, t), + )).classes.push(s + '-arrow-pad')); + var a, + A = Gt(e, t), c = -t.fontMetrics().axisHeight + 0.5 * A.height, @@ -100889,7 +99789,7 @@ n.height + 0.5 * A.height + 0.111; - s = Ke.makeVList( + a = Ke.makeVList( { positionType: 'individualShift', children: [ @@ -100913,7 +99813,7 @@ t ); } else - s = Ke.makeVList( + a = Ke.makeVList( { positionType: 'individualShift', children: [ @@ -100932,17 +99832,17 @@ t ); return ( - s.children[0].children[0].children[1].classes.push( + a.children[0].children[0].children[1].classes.push( 'svg-align' ), - Ke.makeSpan(['mrel', 'x-arrow'], [s], t) + Ke.makeSpan(['mrel', 'x-arrow'], [a], t) ); }, mathmlBuilder: function(e, t) { var n, - r = Ot(e.label); + i = Ot(e.label); if ( - (r.setAttribute( + (i.setAttribute( 'minsize', 'x' === e.label.charAt(0) ? '1.75em' @@ -100950,26 +99850,26 @@ ), e.body) ) { - var i = Jt(xt(e.body, t)); + var r = Jt(Ft(e.body, t)); if (e.below) { - var o = Jt(xt(e.below, t)); - n = new vt.MathNode('munderover', [ - r, - o, + var o = Jt(Ft(e.below, t)); + n = new Mt.MathNode('munderover', [ i, + o, + r, ]); } else - n = new vt.MathNode('mover', [ - r, + n = new Mt.MathNode('mover', [ i, + r, ]); } else if (e.below) { - var a = Jt(xt(e.below, t)); - n = new vt.MathNode('munder', [r, a]); + var s = Jt(Ft(e.below, t)); + n = new Mt.MathNode('munder', [i, s]); } else (n = Jt()), - (n = new vt.MathNode('mover', [ - r, + (n = new Mt.MathNode('mover', [ + i, n, ])); return n; @@ -100990,20 +99890,20 @@ ); }; function Kt(e, t, n) { - var r = Wt[e]; - switch (r) { + var i = Wt[e]; + switch (i) { case '\\\\cdrightarrow': case '\\\\cdleftarrow': return n.callFunction( - r, + i, [t[0]], [t[1]] ); case '\\uparrow': case '\\downarrow': - var i = { + var r = { type: 'atom', - text: r, + text: i, mode: 'math', family: 'rel', }, @@ -101018,7 +99918,7 @@ ), n.callFunction( '\\Big', - [i], + [r], [] ), n.callFunction( @@ -101059,46 +99959,46 @@ }; } } - it({ + rt({ type: 'cdlabel', names: ['\\\\cdleft', '\\\\cdright'], props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = e.funcName; + i = e.funcName; return { type: 'cdlabel', mode: n.mode, - side: r.slice(4), + side: i.slice(4), label: t[0], }; }, htmlBuilder: function(e, t) { var n = t.havingStyle(t.style.sup()), - r = Ke.wrapFragment( + i = Ke.wrapFragment( ft(e.label, n, t), t ); return ( - r.classes.push('cd-label-' + e.side), - (r.style.bottom = k(0.8 - r.depth)), - (r.height = 0), - (r.depth = 0), - r + i.classes.push('cd-label-' + e.side), + (i.style.bottom = G(0.8 - i.depth)), + (i.height = 0), + (i.depth = 0), + i ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mrow', [ - xt(e.label, t), + var n = new Mt.MathNode('mrow', [ + Ft(e.label, t), ]); return ( - (n = new vt.MathNode('mpadded', [ + (n = new Mt.MathNode('mpadded', [ n, ])).setAttribute('width', '0'), 'left' === e.side && n.setAttribute('lspace', '-1width'), n.setAttribute('voffset', '0.7em'), - (n = new vt.MathNode('mstyle', [ + (n = new Mt.MathNode('mstyle', [ n, ])).setAttribute( 'displaystyle', @@ -101109,7 +100009,7 @@ ); }, }), - it({ + rt({ type: 'cdlabelparent', names: ['\\\\cdparent'], props: {numArgs: 1}, @@ -101130,49 +100030,49 @@ ); }, mathmlBuilder: function(e, t) { - return new vt.MathNode('mrow', [ - xt(e.fragment, t), + return new Mt.MathNode('mrow', [ + Ft(e.fragment, t), ]); }, }), - it({ + rt({ type: 'textord', names: ['\\@char'], props: {numArgs: 1, allowedInText: !0}, handler: function(e, t) { for ( var n = e.parser, - i = Gt(t[0], 'ordgroup').body, + r = Lt(t[0], 'ordgroup').body, o = '', - a = 0; - a < i.length; - a++ + s = 0; + s < r.length; + s++ ) - o += Gt(i[a], 'textord').text; - var s, + o += Lt(r[s], 'textord').text; + var a, A = parseInt(o); if (isNaN(A)) - throw new r( + throw new i( '\\@char has non-numeric argument ' + o ); if (A < 0 || A >= 1114111) - throw new r( + throw new i( '\\@char with invalid code point ' + o ); return ( A <= 65535 - ? (s = String.fromCharCode(A)) + ? (a = String.fromCharCode(A)) : ((A -= 65536), - (s = String.fromCharCode( + (a = String.fromCharCode( 55296 + (A >> 10), 56320 + (1023 & A) ))), { type: 'textord', mode: n.mode, - text: s, + text: a, } ); }, @@ -101187,12 +100087,12 @@ }, Xt = function(e, t) { var n = Qt(e.body, t.withColor(e.color)), - r = new vt.MathNode('mstyle', n); + i = new Mt.MathNode('mstyle', n); return ( - r.setAttribute('mathcolor', e.color), r + i.setAttribute('mathcolor', e.color), i ); }; - it({ + rt({ type: 'color', names: ['\\textcolor'], props: { @@ -101202,19 +100102,19 @@ }, handler: function(e, t) { var n = e.parser, - r = Gt(t[0], 'color-token').color, - i = t[1]; + i = Lt(t[0], 'color-token').color, + r = t[1]; return { type: 'color', mode: n.mode, - color: r, - body: st(i), + color: i, + body: at(r), }; }, htmlBuilder: Zt, mathmlBuilder: Xt, }), - it({ + rt({ type: 'color', names: ['\\color'], props: { @@ -101224,24 +100124,24 @@ }, handler: function(e, t) { var n = e.parser, - r = e.breakOnTokenText, - i = Gt(t[0], 'color-token').color; + i = e.breakOnTokenText, + r = Lt(t[0], 'color-token').color; n.gullet.macros.set( '\\current@color', - i + r ); - var o = n.parseExpression(!0, r); + var o = n.parseExpression(!0, i); return { type: 'color', mode: n.mode, - color: i, + color: r, body: o, }; }, htmlBuilder: Zt, mathmlBuilder: Xt, }), - it({ + rt({ type: 'cr', names: ['\\\\'], props: { @@ -101251,19 +100151,19 @@ allowedInText: !0, }, handler: function(e, t, n) { - var r = e.parser, - i = n[0], + var i = e.parser, + r = n[0], o = - !r.settings.displayMode || - !r.settings.useStrictBehavior( + !i.settings.displayMode || + !i.settings.useStrictBehavior( 'newLineInDisplayMode', 'In LaTeX, \\\\ or \\newline does nothing in display mode' ); return { type: 'cr', - mode: r.mode, + mode: i.mode, newLine: o, - size: i && Gt(i, 'size').value, + size: r && Lt(r, 'size').value, }; }, htmlBuilder: function(e, t) { @@ -101272,14 +100172,14 @@ e.newLine && (n.classes.push('newline'), e.size && - (n.style.marginTop = k( + (n.style.marginTop = G( O(e.size, t) ))), n ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mspace'); + var n = new Mt.MathNode('mspace'); return ( e.newLine && (n.setAttribute( @@ -101289,7 +100189,7 @@ e.size && n.setAttribute( 'height', - k(O(e.size, t)) + G(O(e.size, t)) )), n ); @@ -101309,26 +100209,26 @@ $t = function(e) { var t = e.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(t)) - throw new r( + throw new i( 'Expected a control sequence', e ); return t; }, - en = function(e, t, n, r) { - var i = e.gullet.macros.get(n.text); - null == i && + en = function(e, t, n, i) { + var r = e.gullet.macros.get(n.text); + null == r && ((n.noexpand = !0), - (i = { + (r = { tokens: [n], numArgs: 0, unexpandable: !e.gullet.isExpandable( n.text ), })), - e.gullet.macros.set(t, i, r); + e.gullet.macros.set(t, r, i); }; - it({ + rt({ type: 'internal', names: ['\\global', '\\long', '\\\\globallong'], props: {numArgs: 0, allowedInText: !0}, @@ -101336,21 +100236,21 @@ var t = e.parser, n = e.funcName; t.consumeSpaces(); - var i = t.fetch(); - if (qt[i.text]) + var r = t.fetch(); + if (qt[r.text]) return ( ('\\global' !== n && '\\\\globallong' !== n) || - (i.text = qt[i.text]), - Gt(t.parseFunction(), 'internal') + (r.text = qt[r.text]), + Lt(t.parseFunction(), 'internal') ); - throw new r( + throw new i( 'Invalid token after macro prefix', - i + r ); }, }), - it({ + rt({ type: 'internal', names: [ '\\def', @@ -101366,56 +100266,56 @@ handler: function(e) { var t = e.parser, n = e.funcName, - i = t.gullet.popToken(), - o = i.text; + r = t.gullet.popToken(), + o = r.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(o)) - throw new r( + throw new i( 'Expected a control sequence', - i + r ); for ( - var a, s = 0, A = [[]]; + var s, a = 0, A = [[]]; '{' !== t.gullet.future().text; ) if ( '#' === - (i = t.gullet.popToken()).text + (r = t.gullet.popToken()).text ) { if ( '{' === t.gullet.future().text ) { - (a = t.gullet.future()), - A[s].push('{'); + (s = t.gullet.future()), + A[a].push('{'); break; } if ( - ((i = t.gullet.popToken()), - !/^[1-9]$/.test(i.text)) + ((r = t.gullet.popToken()), + !/^[1-9]$/.test(r.text)) ) - throw new r( + throw new i( 'Invalid argument number "' + - i.text + + r.text + '"' ); - if (parseInt(i.text) !== s + 1) - throw new r( + if (parseInt(r.text) !== a + 1) + throw new i( 'Argument number "' + - i.text + + r.text + '" out of order' ); - s++, A.push([]); + a++, A.push([]); } else { - if ('EOF' === i.text) - throw new r( + if ('EOF' === r.text) + throw new i( 'Expected a macro definition' ); - A[s].push(i.text); + A[a].push(r.text); } var c = t.gullet.consumeArg().tokens; return ( - a && c.unshift(a), + s && c.unshift(s), ('\\edef' !== n && '\\xdef' !== n) || (c = t.gullet.expandTokens( @@ -101425,7 +100325,7 @@ o, { tokens: c, - numArgs: s, + numArgs: a, delimiters: A, }, n === qt[n] @@ -101434,7 +100334,7 @@ ); }, }), - it({ + rt({ type: 'internal', names: ['\\let', '\\\\globallet'], props: { @@ -101445,9 +100345,9 @@ handler: function(e) { var t = e.parser, n = e.funcName, - r = $t(t.gullet.popToken()); + i = $t(t.gullet.popToken()); t.gullet.consumeSpaces(); - var i = (function(e) { + var r = (function(e) { var t = e.gullet.popToken(); return ( '=' === t.text && @@ -101459,12 +100359,12 @@ ); })(t); return ( - en(t, r, i, '\\\\globallet' === n), + en(t, i, r, '\\\\globallet' === n), {type: 'internal', mode: t.mode} ); }, }), - it({ + rt({ type: 'internal', names: ['\\futurelet', '\\\\globalfuture'], props: { @@ -101475,29 +100375,29 @@ handler: function(e) { var t = e.parser, n = e.funcName, - r = $t(t.gullet.popToken()), - i = t.gullet.popToken(), + i = $t(t.gullet.popToken()), + r = t.gullet.popToken(), o = t.gullet.popToken(); return ( en( t, - r, + i, o, '\\\\globalfuture' === n ), t.gullet.pushToken(o), - t.gullet.pushToken(i), + t.gullet.pushToken(r), {type: 'internal', mode: t.mode} ); }, }); var tn = function(e, t, n) { - var r = S( + var i = S( (ne.math[e] && ne.math[e].replace) || e, t, n ); - if (!r) + if (!i) throw new Error( 'Unsupported symbol ' + e + @@ -101505,67 +100405,67 @@ t + '.' ); - return r; + return i; }, - nn = function(e, t, n, r) { - var i = n.havingBaseStyle(t), + nn = function(e, t, n, i) { + var r = n.havingBaseStyle(t), o = Ke.makeSpan( - r.concat(i.sizingClasses(n)), + i.concat(r.sizingClasses(n)), [e], n ), - a = i.sizeMultiplier / n.sizeMultiplier; + s = r.sizeMultiplier / n.sizeMultiplier; return ( - (o.height *= a), - (o.depth *= a), - (o.maxFontSize = i.sizeMultiplier), + (o.height *= s), + (o.depth *= s), + (o.maxFontSize = r.sizeMultiplier), o ); }, rn = function(e, t, n) { - var r = t.havingBaseStyle(n), - i = + var i = t.havingBaseStyle(n), + r = (1 - t.sizeMultiplier / - r.sizeMultiplier) * + i.sizeMultiplier) * t.fontMetrics().axisHeight; e.classes.push('delimcenter'), - (e.style.top = k(i)), - (e.height -= i), - (e.depth += i); + (e.style.top = G(r)), + (e.height -= r), + (e.depth += r); }, - on = function(e, t, n, r, i, o) { - var a = (function(e, t, n, r) { + on = function(e, t, n, i, r, o) { + var s = (function(e, t, n, i) { return Ke.makeSymbol( e, 'Size' + t + '-Regular', n, - r + i ); - })(e, t, i, r), - s = nn( + })(e, t, r, i), + a = nn( Ke.makeSpan( ['delimsizing', 'size' + t], - [a], - r + [s], + i ), m.TEXT, - r, + i, o ); - return n && rn(s, r, m.TEXT), s; + return n && rn(a, i, m.TEXT), a; }, - an = function(e, t, n) { - var r; + sn = function(e, t, n) { + var i; return ( - (r = + (i = 'Size1-Regular' === t ? 'delim-size1' : 'delim-size4'), { type: 'elem', elem: Ke.makeSpan( - ['delimsizinginner', r], + ['delimsizinginner', i], [ Ke.makeSpan( [], @@ -101576,15 +100476,15 @@ } ); }, - sn = function(e, t, n) { - var r = v['Size4-Regular'][e.charCodeAt(0)] - ? v['Size4-Regular'][ + an = function(e, t, n) { + var i = M['Size4-Regular'][e.charCodeAt(0)] + ? M['Size4-Regular'][ e.charCodeAt(0) ][4] - : v['Size1-Regular'][ + : M['Size1-Regular'][ e.charCodeAt(0) ][4], - i = new Z( + r = new Z( 'inner', (function(e, t) { switch (e) { @@ -101673,46 +100573,46 @@ } })(e, Math.round(1e3 * t)) ), - o = new K([i], { - width: k(r), - height: k(t), - style: 'width:' + k(r), + o = new K([r], { + width: G(i), + height: G(t), + style: 'width:' + G(i), viewBox: '0 0 ' + - 1e3 * r + + 1e3 * i + ' ' + Math.round(1e3 * t), preserveAspectRatio: 'xMinYMin', }), - a = Ke.makeSvgSpan([], [o], n); + s = Ke.makeSvgSpan([], [o], n); return ( - (a.height = t), - (a.style.height = k(t)), - (a.style.width = k(r)), - {type: 'elem', elem: a} + (s.height = t), + (s.style.height = G(t)), + (s.style.width = G(i)), + {type: 'elem', elem: s} ); }, An = {type: 'kern', size: -0.008}, cn = ['|', '\\lvert', '\\rvert', '\\vert'], ln = ['\\|', '\\lVert', '\\rVert', '\\Vert'], - gn = function(e, t, n, r, i, o) { - var a, s, c, l; - (a = c = l = e), (s = null); + gn = function(e, t, n, i, r, o) { + var s, a, c, l; + (s = c = l = e), (a = null); var g = 'Size1-Regular'; '\\uparrow' === e ? (c = l = '⏐') : '\\Uparrow' === e ? (c = l = '‖') : '\\downarrow' === e - ? (a = c = '⏐') + ? (s = c = '⏐') : '\\Downarrow' === e - ? (a = c = '‖') + ? (s = c = '‖') : '\\updownarrow' === e - ? ((a = '\\uparrow'), + ? ((s = '\\uparrow'), (c = '⏐'), (l = '\\downarrow')) : '\\Updownarrow' === e - ? ((a = '\\Uparrow'), + ? ((s = '\\Uparrow'), (c = '‖'), (l = '\\Downarrow')) : A.contains(cn, e) @@ -101720,83 +100620,83 @@ : A.contains(ln, e) ? (c = '∥') : '[' === e || '\\lbrack' === e - ? ((a = '⎡'), + ? ((s = '⎡'), (c = '⎢'), (l = '⎣'), (g = 'Size4-Regular')) : ']' === e || '\\rbrack' === e - ? ((a = '⎤'), + ? ((s = '⎤'), (c = '⎥'), (l = '⎦'), (g = 'Size4-Regular')) : '\\lfloor' === e || '⌊' === e - ? ((c = a = '⎢'), + ? ((c = s = '⎢'), (l = '⎣'), (g = 'Size4-Regular')) : '\\lceil' === e || '⌈' === e - ? ((a = '⎡'), + ? ((s = '⎡'), (c = l = '⎢'), (g = 'Size4-Regular')) : '\\rfloor' === e || '⌋' === e - ? ((c = a = '⎥'), + ? ((c = s = '⎥'), (l = '⎦'), (g = 'Size4-Regular')) : '\\rceil' === e || '⌉' === e - ? ((a = '⎤'), + ? ((s = '⎤'), (c = l = '⎥'), (g = 'Size4-Regular')) : '(' === e || '\\lparen' === e - ? ((a = '⎛'), + ? ((s = '⎛'), (c = '⎜'), (l = '⎝'), (g = 'Size4-Regular')) : ')' === e || '\\rparen' === e - ? ((a = '⎞'), + ? ((s = '⎞'), (c = '⎟'), (l = '⎠'), (g = 'Size4-Regular')) : '\\{' === e || '\\lbrace' === e - ? ((a = '⎧'), - (s = '⎨'), + ? ((s = '⎧'), + (a = '⎨'), (l = '⎩'), (c = '⎪'), (g = 'Size4-Regular')) : '\\}' === e || '\\rbrace' === e - ? ((a = '⎫'), - (s = '⎬'), + ? ((s = '⎫'), + (a = '⎬'), (l = '⎭'), (c = '⎪'), (g = 'Size4-Regular')) : '\\lgroup' === e || '⟮' === e - ? ((a = '⎧'), + ? ((s = '⎧'), (l = '⎩'), (c = '⎪'), (g = 'Size4-Regular')) : '\\rgroup' === e || '⟯' === e - ? ((a = '⎫'), + ? ((s = '⎫'), (l = '⎭'), (c = '⎪'), (g = 'Size4-Regular')) : '\\lmoustache' === e || '⎰' === e - ? ((a = '⎧'), + ? ((s = '⎧'), (l = '⎭'), (c = '⎪'), (g = 'Size4-Regular')) : ('\\rmoustache' !== e && '⎱' !== e) || - ((a = '⎫'), + ((s = '⎫'), (l = '⎩'), (c = '⎪'), (g = 'Size4-Regular')); - var u = tn(a, g, i), + var u = tn(s, g, r), d = u.height + u.depth, - h = tn(c, g, i), + h = tn(c, g, r), C = h.height + h.depth, - I = tn(l, g, i), + I = tn(l, g, r), p = I.height + I.depth, f = 0, E = 1; - if (null !== s) { - var y = tn(s, g, i); + if (null !== a) { + var y = tn(a, g, r); (f = y.height + y.depth), (E = 2); } var B = d + p + f, @@ -101808,54 +100708,54 @@ ) * E * C, - b = r.fontMetrics().axisHeight; - n && (b *= r.sizeMultiplier); - var v = w / 2 - b, - M = []; + b = i.fontMetrics().axisHeight; + n && (b *= i.sizeMultiplier); + var M = w / 2 - b, + v = []; if ( - (M.push(an(l, g, i)), - M.push(An), - null === s) + (v.push(sn(l, g, r)), + v.push(An), + null === a) ) { var N = w - d - p + 0.016; - M.push(sn(c, N, r)); + v.push(an(c, N, i)); } else { var S = (w - d - p - f) / 2 + 0.016; - M.push(sn(c, S, r)), - M.push(An), - M.push(an(s, g, i)), - M.push(An), - M.push(sn(c, S, r)); + v.push(an(c, S, i)), + v.push(An), + v.push(sn(a, g, r)), + v.push(An), + v.push(an(c, S, i)); } - M.push(An), M.push(an(a, g, i)); - var Q = r.havingBaseStyle(m.TEXT), - F = Ke.makeVList( + v.push(An), v.push(sn(s, g, r)); + var Q = i.havingBaseStyle(m.TEXT), + x = Ke.makeVList( { positionType: 'bottom', - positionData: v, - children: M, + positionData: M, + children: v, }, Q ); return nn( Ke.makeSpan( ['delimsizing', 'mult'], - [F], + [x], Q ), m.TEXT, - r, + i, o ); }, un = 0.08, - dn = function(e, t, n, r, i) { + dn = function(e, t, n, i, r) { var o = (function(e, t, n) { t *= 1e3; - var r = ''; + var i = ''; switch (e) { case 'sqrtMain': - r = (function(e, t) { + i = (function(e, t) { return ( 'M95,' + (622 + e + t) + @@ -101876,7 +100776,7 @@ })(t, B); break; case 'sqrtSize1': - r = (function(e, t) { + i = (function(e, t) { return ( 'M263,' + (601 + e + t) + @@ -101897,7 +100797,7 @@ })(t, B); break; case 'sqrtSize2': - r = (function(e, t) { + i = (function(e, t) { return ( 'M983 ' + (10 + e + t) + @@ -101918,7 +100818,7 @@ })(t, B); break; case 'sqrtSize3': - r = (function(e, t) { + i = (function(e, t) { return ( 'M424,' + (2398 + e + t) + @@ -101939,7 +100839,7 @@ })(t, B); break; case 'sqrtSize4': - r = (function(e, t) { + i = (function(e, t) { return ( 'M473,' + (2713 + e + t) + @@ -101960,7 +100860,7 @@ })(t, B); break; case 'sqrtTall': - r = (function(e, t, n) { + i = (function(e, t, n) { return ( 'M702 ' + (e + t) + @@ -101976,20 +100876,20 @@ ); })(t, B, n); } - return r; - })(e, r, n), - a = new Z(e, o), - s = new K([a], { + return i; + })(e, i, n), + s = new Z(e, o), + a = new K([s], { width: '400em', - height: k(t), + height: G(t), viewBox: '0 0 400000 ' + n, preserveAspectRatio: 'xMinYMin slice', }); return Ke.makeSvgSpan( ['hide-tail'], - [s], - i + [a], + r ); }, hn = [ @@ -102088,67 +100988,67 @@ "' here." ); }, - Bn = function(e, t, n, r) { + Bn = function(e, t, n, i) { for ( - var i = Math.min(2, 3 - r.style.size); - i < n.length && 'stack' !== n[i].type; - i++ + var r = Math.min(2, 3 - i.style.size); + r < n.length && 'stack' !== n[r].type; + r++ ) { - var o = tn(e, yn(n[i]), 'math'), - a = o.height + o.depth; + var o = tn(e, yn(n[r]), 'math'), + s = o.height + o.depth; if ( - ('small' === n[i].type && - (a *= r.havingBaseStyle( - n[i].style + ('small' === n[r].type && + (s *= i.havingBaseStyle( + n[r].style ).sizeMultiplier), - a > t) + s > t) ) - return n[i]; + return n[r]; } return n[n.length - 1]; }, - wn = function(e, t, n, r, i, o) { - var a; + wn = function(e, t, n, i, r, o) { + var s; '<' === e || '\\lt' === e || '⟨' === e ? (e = '\\langle') : ('>' !== e && '\\gt' !== e && '⟩' !== e) || (e = '\\rangle'), - (a = A.contains(In, e) + (s = A.contains(In, e) ? mn : A.contains(hn, e) ? En : fn); - var s = Bn(e, t, a, r); - return 'small' === s.type - ? (function(e, t, n, r, i, o) { - var a = Ke.makeSymbol( + var a = Bn(e, t, s, i); + return 'small' === a.type + ? (function(e, t, n, i, r, o) { + var s = Ke.makeSymbol( e, 'Main-Regular', - i, - r + r, + i ), - s = nn(a, t, r, o); - return n && rn(s, r, t), s; - })(e, s.style, n, r, i, o) - : 'large' === s.type - ? on(e, s.size, n, r, i, o) - : gn(e, t, n, r, i, o); + a = nn(s, t, i, o); + return n && rn(a, i, t), a; + })(e, a.style, n, i, r, o) + : 'large' === a.type + ? on(e, a.size, n, i, r, o) + : gn(e, t, n, i, r, o); }, bn = { sqrtImage: function(e, t) { var n, - r, - i = t.havingBaseSizing(), + i, + r = t.havingBaseSizing(), o = Bn( '\\surd', - e * i.sizeMultiplier, + e * r.sizeMultiplier, En, - i + r ), - a = i.sizeMultiplier, - s = Math.max( + s = r.sizeMultiplier, + a = Math.max( 0, t.minRuleThickness - t.fontMetrics() @@ -102160,60 +101060,60 @@ return ( 'small' === o.type ? (e < 1 - ? (a = 1) - : e < 1.4 && (a = 0.7), - (c = (1 + s) / a), + ? (s = 1) + : e < 1.4 && (s = 0.7), + (c = (1 + a) / s), ((n = dn( 'sqrtMain', - (A = (1 + s + un) / a), - (l = 1e3 + 1e3 * s + 80), - s, + (A = (1 + a + un) / s), + (l = 1e3 + 1e3 * a + 80), + a, t )).style.minWidth = '0.853em'), - (r = 0.833 / a)) + (i = 0.833 / s)) : 'large' === o.type ? ((l = 1080 * pn[o.size]), - (c = (pn[o.size] + s) / a), + (c = (pn[o.size] + a) / s), (A = - (pn[o.size] + s + un) / - a), + (pn[o.size] + a + un) / + s), ((n = dn( 'sqrtSize' + o.size, A, l, - s, + a, t )).style.minWidth = '1.02em'), - (r = 1 / a)) - : ((A = e + s + un), - (c = e + s), + (i = 1 / s)) + : ((A = e + a + un), + (c = e + a), (l = - Math.floor(1e3 * e + s) + + Math.floor(1e3 * e + a) + 80), ((n = dn( 'sqrtTall', A, l, - s, + a, t )).style.minWidth = '0.742em'), - (r = 1.056)), + (i = 1.056)), (n.height = c), - (n.style.height = k(A)), + (n.style.height = G(A)), { span: n, - advanceWidth: r, + advanceWidth: i, ruleWidth: (t.fontMetrics() .sqrtRuleThickness + - s) * - a, + a) * + s, } ); }, - sizedDelim: function(e, t, n, i, o) { + sizedDelim: function(e, t, n, r, o) { if ( ('<' === e || '\\lt' === e || @@ -102226,29 +101126,29 @@ A.contains(hn, e) || A.contains(In, e)) ) - return on(e, t, !1, n, i, o); + return on(e, t, !1, n, r, o); if (A.contains(Cn, e)) - return gn(e, pn[t], !1, n, i, o); - throw new r( + return gn(e, pn[t], !1, n, r, o); + throw new i( "Illegal delimiter: '" + e + "'" ); }, sizeToMaxHeight: pn, customSizedDelim: wn, - leftRightDelim: function(e, t, n, r, i, o) { - var a = - r.fontMetrics().axisHeight * - r.sizeMultiplier, - s = 5 / r.fontMetrics().ptPerEm, - A = Math.max(t - a, n + a), + leftRightDelim: function(e, t, n, i, r, o) { + var s = + i.fontMetrics().axisHeight * + i.sizeMultiplier, + a = 5 / i.fontMetrics().ptPerEm, + A = Math.max(t - s, n + s), c = Math.max( (A / 500) * 901, - 2 * A - s + 2 * A - a ); - return wn(e, c, !0, r, i, o); + return wn(e, c, !0, i, r, o); }, }, - vn = { + Mn = { '\\bigl': {mclass: 'mopen', size: 1}, '\\Bigl': {mclass: 'mopen', size: 2}, '\\biggl': {mclass: 'mopen', size: 3}, @@ -102266,7 +101166,7 @@ '\\bigg': {mclass: 'mord', size: 3}, '\\Bigg': {mclass: 'mord', size: 4}, }, - Mn = [ + vn = [ '(', '\\lparen', ')', @@ -102322,9 +101222,9 @@ '.', ]; function Nn(e, t) { - var n = jt(e); - if (n && A.contains(Mn, n.text)) return n; - throw new r( + var n = zt(e); + if (n && A.contains(vn, n.text)) return n; + throw new i( n ? "Invalid delimiter '" + n.text + @@ -102343,7 +101243,7 @@ "Bug: The leftright ParseNode wasn't fully parsed." ); } - it({ + rt({ type: 'delimsizing', names: [ '\\bigl', @@ -102369,8 +101269,8 @@ return { type: 'delimsizing', mode: e.parser.mode, - size: vn[e.funcName].size, - mclass: vn[e.funcName].mclass, + size: Mn[e.funcName].size, + mclass: Mn[e.funcName].mclass, delim: n.text, }; }, @@ -102388,22 +101288,22 @@ mathmlBuilder: function(e) { var t = []; '.' !== e.delim && - t.push(Mt(e.delim, e.mode)); - var n = new vt.MathNode('mo', t); + t.push(vt(e.delim, e.mode)); + var n = new Mt.MathNode('mo', t); 'mopen' === e.mclass || 'mclose' === e.mclass ? n.setAttribute('fence', 'true') : n.setAttribute('fence', 'false'), n.setAttribute('stretchy', 'true'); - var r = k(bn.sizeToMaxHeight[e.size]); + var i = G(bn.sizeToMaxHeight[e.size]); return ( - n.setAttribute('minsize', r), - n.setAttribute('maxsize', r), + n.setAttribute('minsize', i), + n.setAttribute('maxsize', i), n ); }, }), - it({ + rt({ type: 'leftright-right', names: ['\\right'], props: {numArgs: 1, primitive: !0}, @@ -102412,7 +101312,7 @@ '\\current@color' ); if (n && 'string' != typeof n) - throw new r( + throw new i( '\\current@color set to non-string in \\right' ); return { @@ -102423,25 +101323,25 @@ }; }, }), - it({ + rt({ type: 'leftright', names: ['\\left'], props: {numArgs: 1, primitive: !0}, handler: function(e, t) { var n = Nn(t[0], e), - r = e.parser; - ++r.leftrightDepth; - var i = r.parseExpression(!1); - --r.leftrightDepth, - r.expect('\\right', !1); - var o = Gt( - r.parseFunction(), + i = e.parser; + ++i.leftrightDepth; + var r = i.parseExpression(!1); + --i.leftrightDepth, + i.expect('\\right', !1); + var o = Lt( + i.parseFunction(), 'leftright-right' ); return { type: 'leftright', - mode: r.mode, - body: i, + mode: i.mode, + body: r, left: n.text, right: o.delim, rightColor: o.color, @@ -102451,110 +101351,110 @@ Sn(e); for ( var n, - r, - i = dt(e.body, t, !0, [ + i, + r = dt(e.body, t, !0, [ 'mopen', 'mclose', ]), o = 0, - a = 0, - s = !1, + s = 0, + a = !1, A = 0; - A < i.length; + A < r.length; A++ ) - i[A].isMiddle - ? (s = !0) + r[A].isMiddle + ? (a = !0) : ((o = Math.max( - i[A].height, + r[A].height, o )), - (a = Math.max( - i[A].depth, - a + (s = Math.max( + r[A].depth, + s ))); if ( ((o *= t.sizeMultiplier), - (a *= t.sizeMultiplier), + (s *= t.sizeMultiplier), (n = '.' === e.left ? mt(t, ['mopen']) : bn.leftRightDelim( e.left, o, - a, + s, t, e.mode, ['mopen'] )), - i.unshift(n), - s) + r.unshift(n), + a) ) - for (var c = 1; c < i.length; c++) { - var l = i[c].isMiddle; + for (var c = 1; c < r.length; c++) { + var l = r[c].isMiddle; l && - (i[c] = bn.leftRightDelim( + (r[c] = bn.leftRightDelim( l.delim, o, - a, + s, l.options, e.mode, [] )); } if ('.' === e.right) - r = mt(t, ['mclose']); + i = mt(t, ['mclose']); else { var g = e.rightColor ? t.withColor(e.rightColor) : t; - r = bn.leftRightDelim( + i = bn.leftRightDelim( e.right, o, - a, + s, g, e.mode, ['mclose'] ); } return ( - i.push(r), - Ke.makeSpan(['minner'], i, t) + r.push(i), + Ke.makeSpan(['minner'], r, t) ); }, mathmlBuilder: function(e, t) { Sn(e); var n = Qt(e.body, t); if ('.' !== e.left) { - var r = new vt.MathNode('mo', [ - Mt(e.left, e.mode), + var i = new Mt.MathNode('mo', [ + vt(e.left, e.mode), ]); - r.setAttribute('fence', 'true'), - n.unshift(r); + i.setAttribute('fence', 'true'), + n.unshift(i); } if ('.' !== e.right) { - var i = new vt.MathNode('mo', [ - Mt(e.right, e.mode), + var r = new Mt.MathNode('mo', [ + vt(e.right, e.mode), ]); - i.setAttribute('fence', 'true'), + r.setAttribute('fence', 'true'), e.rightColor && - i.setAttribute( + r.setAttribute( 'mathcolor', e.rightColor ), - n.push(i); + n.push(r); } return Nt(n); }, }), - it({ + rt({ type: 'middle', names: ['\\middle'], props: {numArgs: 1, primitive: !0}, handler: function(e, t) { var n = Nn(t[0], e); if (!e.parser.leftrightDepth) - throw new r( + throw new i( '\\middle without preceding \\left', n ); @@ -102575,11 +101475,11 @@ e.mode, [] ); - var r = { + var i = { delim: e.delim, options: t, }; - n.isMiddle = r; + n.isMiddle = i; } return n; }, @@ -102587,24 +101487,24 @@ var n = '\\vert' === e.delim || '|' === e.delim - ? Mt('|', 'text') - : Mt(e.delim, e.mode), - r = new vt.MathNode('mo', [n]); + ? vt('|', 'text') + : vt(e.delim, e.mode), + i = new Mt.MathNode('mo', [n]); return ( - r.setAttribute('fence', 'true'), - r.setAttribute('lspace', '0.05em'), - r.setAttribute('rspace', '0.05em'), - r + i.setAttribute('fence', 'true'), + i.setAttribute('lspace', '0.05em'), + i.setAttribute('rspace', '0.05em'), + i ); }, }); var Qn = function(e, t) { var n, - r, - i = Ke.wrapFragment(ft(e.body, t), t), + i, + r = Ke.wrapFragment(ft(e.body, t), t), o = e.label.substr(1), - a = t.sizeMultiplier, - s = 0, + s = t.sizeMultiplier, + a = 0, c = A.isCharacterBox(e.body); if ('sout' === o) ((n = Ke.makeSpan([ @@ -102612,8 +101512,8 @@ 'sout', ])).height = t.fontMetrics() - .defaultRuleThickness / a), - (s = + .defaultRuleThickness / s), + (a = -0.5 * t.fontMetrics().xHeight); else if ('phase' === o) { var l = O({number: 0.6, unit: 'pt'}, t), @@ -102621,11 +101521,11 @@ {number: 0.35, unit: 'ex'}, t ); - a /= t.havingBaseSizing() + s /= t.havingBaseSizing() .sizeMultiplier; - var u = i.height + i.depth + l + g; - i.style.paddingLeft = k(u / 2 + l); - var d = Math.floor(1e3 * u * a), + var u = r.height + r.depth + l + g; + r.style.paddingLeft = G(u / 2 + l); + var d = Math.floor(1e3 * u * s), h = (function(e) { return ( 'M400000 ' + @@ -102639,7 +101539,7 @@ })(d), C = new K([new Z('phase', h)], { width: '400em', - height: k(d / 1e3), + height: G(d / 1e3), viewBox: '0 0 400000 ' + d, preserveAspectRatio: 'xMinYMin slice', @@ -102648,14 +101548,14 @@ ['hide-tail'], [C], t - )).style.height = k(u)), - (s = i.depth + l + g); + )).style.height = G(u)), + (a = r.depth + l + g); } else { /cancel/.test(o) - ? c || i.classes.push('cancel-pad') + ? c || r.classes.push('cancel-pad') : 'angl' === o - ? i.classes.push('anglpad') - : i.classes.push('boxpad'); + ? r.classes.push('anglpad') + : r.classes.push('boxpad'); var I = 0, p = 0, m = 0; @@ -102675,22 +101575,22 @@ .defaultRuleThickness, t.minRuleThickness ))), - (p = Math.max(0, 0.25 - i.depth))) + (p = Math.max(0, 0.25 - r.depth))) : (p = I = c ? 0.2 : 0), - (n = Ut(i, o, I, p, t)), + (n = Ut(r, o, I, p, t)), /fbox|boxed|fcolorbox/.test(o) ? ((n.style.borderStyle = 'solid'), - (n.style.borderWidth = k(m))) + (n.style.borderWidth = G(m))) : 'angl' === o && 0.049 !== m && - ((n.style.borderTopWidth = k( + ((n.style.borderTopWidth = G( m )), - (n.style.borderRightWidth = k( + (n.style.borderRightWidth = G( m ))), - (s = i.depth + p), + (a = r.depth + p), e.backgroundColor && ((n.style.backgroundColor = e.backgroundColor), @@ -102699,18 +101599,18 @@ e.borderColor)); } if (e.backgroundColor) - r = Ke.makeVList( + i = Ke.makeVList( { positionType: 'individualShift', children: [ { type: 'elem', elem: n, - shift: s, + shift: a, }, { type: 'elem', - elem: i, + elem: r, shift: 0, }, ], @@ -102721,19 +101621,19 @@ var f = /cancel|phase/.test(o) ? ['svg-align'] : []; - r = Ke.makeVList( + i = Ke.makeVList( { positionType: 'individualShift', children: [ { type: 'elem', - elem: i, + elem: r, shift: 0, }, { type: 'elem', elem: n, - shift: s, + shift: a, wrapperClasses: f, }, ], @@ -102743,55 +101643,55 @@ } return ( /cancel/.test(o) && - ((r.height = i.height), - (r.depth = i.depth)), + ((i.height = r.height), + (i.depth = r.depth)), /cancel/.test(o) && !c ? Ke.makeSpan( ['mord', 'cancel-lap'], - [r], + [i], t ) - : Ke.makeSpan(['mord'], [r], t) + : Ke.makeSpan(['mord'], [i], t) ); }, - Fn = function(e, t) { + xn = function(e, t) { var n = 0, - r = new vt.MathNode( + i = new Mt.MathNode( e.label.indexOf('colorbox') > -1 ? 'mpadded' : 'menclose', - [xt(e.body, t)] + [Ft(e.body, t)] ); switch (e.label) { case '\\cancel': - r.setAttribute( + i.setAttribute( 'notation', 'updiagonalstrike' ); break; case '\\bcancel': - r.setAttribute( + i.setAttribute( 'notation', 'downdiagonalstrike' ); break; case '\\phase': - r.setAttribute( + i.setAttribute( 'notation', 'phasorangle' ); break; case '\\sout': - r.setAttribute( + i.setAttribute( 'notation', 'horizontalstrike' ); break; case '\\fbox': - r.setAttribute('notation', 'box'); + i.setAttribute('notation', 'box'); break; case '\\angl': - r.setAttribute( + i.setAttribute( 'notation', 'actuarial' ); @@ -102802,53 +101702,53 @@ ((n = t.fontMetrics().fboxsep * t.fontMetrics().ptPerEm), - r.setAttribute( + i.setAttribute( 'width', '+' + 2 * n + 'pt' ), - r.setAttribute( + i.setAttribute( 'height', '+' + 2 * n + 'pt' ), - r.setAttribute( + i.setAttribute( 'lspace', n + 'pt' ), - r.setAttribute( + i.setAttribute( 'voffset', n + 'pt' ), '\\fcolorbox' === e.label) ) { - var i = Math.max( + var r = Math.max( t.fontMetrics().fboxrule, t.minRuleThickness ); - r.setAttribute( + i.setAttribute( 'style', 'border: ' + - i + + r + 'em solid ' + String(e.borderColor) ); } break; case '\\xcancel': - r.setAttribute( + i.setAttribute( 'notation', 'updiagonalstrike downdiagonalstrike' ); } return ( e.backgroundColor && - r.setAttribute( + i.setAttribute( 'mathbackground', e.backgroundColor ), - r + i ); }; - it({ + rt({ type: 'enclose', names: ['\\colorbox'], props: { @@ -102857,22 +101757,22 @@ argTypes: ['color', 'text'], }, handler: function(e, t, n) { - var r = e.parser, - i = e.funcName, - o = Gt(t[0], 'color-token').color, - a = t[1]; + var i = e.parser, + r = e.funcName, + o = Lt(t[0], 'color-token').color, + s = t[1]; return { type: 'enclose', - mode: r.mode, - label: i, + mode: i.mode, + label: r, backgroundColor: o, - body: a, + body: s, }; }, htmlBuilder: Qn, - mathmlBuilder: Fn, + mathmlBuilder: xn, }), - it({ + rt({ type: 'enclose', names: ['\\fcolorbox'], props: { @@ -102881,24 +101781,24 @@ argTypes: ['color', 'color', 'text'], }, handler: function(e, t, n) { - var r = e.parser, - i = e.funcName, - o = Gt(t[0], 'color-token').color, - a = Gt(t[1], 'color-token').color, - s = t[2]; + var i = e.parser, + r = e.funcName, + o = Lt(t[0], 'color-token').color, + s = Lt(t[1], 'color-token').color, + a = t[2]; return { type: 'enclose', - mode: r.mode, - label: i, - backgroundColor: a, + mode: i.mode, + label: r, + backgroundColor: s, borderColor: o, - body: s, + body: a, }; }, htmlBuilder: Qn, - mathmlBuilder: Fn, + mathmlBuilder: xn, }), - it({ + rt({ type: 'enclose', names: ['\\fbox'], props: { @@ -102915,7 +101815,7 @@ }; }, }), - it({ + rt({ type: 'enclose', names: [ '\\cancel', @@ -102927,19 +101827,19 @@ props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'enclose', mode: n.mode, - label: r, - body: i, + label: i, + body: r, }; }, htmlBuilder: Qn, - mathmlBuilder: Fn, + mathmlBuilder: xn, }), - it({ + rt({ type: 'enclose', names: ['\\angl'], props: { @@ -102956,28 +101856,28 @@ }; }, }); - var xn = {}; + var Fn = {}; function Dn(e) { for ( var t = e.type, n = e.names, - r = e.props, - i = e.handler, + i = e.props, + r = e.handler, o = e.htmlBuilder, - a = e.mathmlBuilder, - s = { + s = e.mathmlBuilder, + a = { type: t, - numArgs: r.numArgs || 0, + numArgs: i.numArgs || 0, allowedInText: !1, numOptionalArgs: 0, - handler: i, + handler: r, }, A = 0; A < n.length; ++A ) - xn[n[A]] = s; - o && (nt[t] = o), a && (rt[t] = a); + Fn[n[A]] = a; + o && (nt[t] = o), s && (it[t] = s); } function Tn(e) { var t = []; @@ -102995,17 +101895,17 @@ } var Yn = function(e) { if (!e.parser.settings.displayMode) - throw new r( + throw new i( '{' + e.envName + '} can be used only in display mode.' ); }; function Rn(e, t, n) { - var i = t.hskipBeforeAndAfter, + var r = t.hskipBeforeAndAfter, o = t.addJot, - a = t.cols, - s = t.arraystretch, + s = t.cols, + a = t.arraystretch, A = t.colSeparationType, c = t.addEqnNum, l = t.singleRow, @@ -103019,14 +101919,14 @@ '\\cr', '\\\\\\relax' ), - !s) + !a) ) { var h = e.gullet.expandMacroAsText( '\\arraystretch' ); - if (null == h) s = 1; - else if (!(s = parseFloat(h)) || s < 0) - throw new r( + if (null == h) a = 1; + else if (!(a = parseFloat(h)) || a < 0) + throw new i( 'Invalid \\arraystretch: ' + h ); } @@ -103059,7 +101959,7 @@ if ('&' === E) { if (u && C.length === u) { if (l || A) - throw new r( + throw new i( 'Too many tab characters: &', e.nextToken ); @@ -103081,7 +101981,7 @@ break; } if ('\\\\' !== E) - throw new r( + throw new i( 'Expected & or \\\\ or \\cr or \\end', e.nextToken ); @@ -103102,11 +102002,11 @@ type: 'array', mode: e.mode, addJot: o, - arraystretch: s, + arraystretch: a, body: I, - cols: a, + cols: s, rowGaps: p, - hskipBeforeAndAfter: i, + hskipBeforeAndAfter: r, hLinesBeforeRow: m, colSeparationType: A, addEqnNum: c, @@ -103121,10 +102021,10 @@ } var Un = function(e, t) { var n, - i, + r, o = e.body.length, - a = e.hLinesBeforeRow, - s = 0, + s = e.hLinesBeforeRow, + a = 0, c = new Array(o), l = [], g = Math.max( @@ -103158,20 +102058,20 @@ }); } for ( - y(a[0]), n = 0; + y(s[0]), n = 0; n < e.body.length; ++n ) { var B = e.body[n], w = p, b = f; - s < B.length && (s = B.length); - var v = new Array(B.length); - for (i = 0; i < B.length; ++i) { - var M = ft(B[i], t); - b < M.depth && (b = M.depth), - w < M.height && (w = M.height), - (v[i] = M); + a < B.length && (a = B.length); + var M = new Array(B.length); + for (r = 0; r < B.length; ++r) { + var v = ft(B[r], t); + b < v.depth && (b = v.depth), + w < v.height && (w = v.height), + (M[r] = v); } var N = e.rowGaps[n], S = 0; @@ -103179,24 +102079,24 @@ (S = O(N, t)) > 0 && (b < (S += f) && (b = S), (S = 0)), e.addJot && (b += C), - (v.height = w), - (v.depth = b), + (M.height = w), + (M.depth = b), (E += w), - (v.pos = E), + (M.pos = E), (E += b + S), - (c[n] = v), - y(a[n + 1]); + (c[n] = M), + y(s[n + 1]); } var Q, - F, - x = E / 2 + t.fontMetrics().axisHeight, + x, + F = E / 2 + t.fontMetrics().axisHeight, D = e.cols || [], T = [], Y = []; if (e.addEqnNum) for (n = 0; n < o; ++n) { var R = c[n], - _ = R.pos - x, + _ = R.pos - F, U = Ke.makeSpan( ['eqn-num'], [], @@ -103211,74 +102111,74 @@ }); } for ( - i = 0, F = 0; - i < s || F < D.length; - ++i, ++F + r = 0, x = 0; + r < a || x < D.length; + ++r, ++x ) { for ( - var G = D[F] || {}, L = !0; - 'separator' === G.type; + var L = D[x] || {}, k = !0; + 'separator' === L.type; ) { if ( - (L || + (k || (((Q = Ke.makeSpan( ['arraycolsep'], [] - )).style.width = k( + )).style.width = G( t.fontMetrics() .doubleRuleSep )), T.push(Q)), - '|' !== G.separator && - ':' !== G.separator) + '|' !== L.separator && + ':' !== L.separator) ) - throw new r( + throw new i( 'Invalid separator type: ' + - G.separator + L.separator ); - var j = - '|' === G.separator + var z = + '|' === L.separator ? 'solid' : 'dashed', - z = Ke.makeSpan( + j = Ke.makeSpan( ['vertical-separator'], [], t ); - (z.style.height = k(E)), - (z.style.borderRightWidth = k( + (j.style.height = G(E)), + (j.style.borderRightWidth = G( g )), - (z.style.borderRightStyle = j), - (z.style.margin = - '0 ' + k(-g / 2)); - var P = E - x; + (j.style.borderRightStyle = z), + (j.style.margin = + '0 ' + G(-g / 2)); + var P = E - F; P && - (z.style.verticalAlign = k(-P)), - T.push(z), - (G = D[++F] || {}), - (L = !1); + (j.style.verticalAlign = G(-P)), + T.push(j), + (L = D[++x] || {}), + (k = !1); } - if (!(i >= s)) { + if (!(r >= a)) { var H = void 0; - (i > 0 || e.hskipBeforeAndAfter) && + (r > 0 || e.hskipBeforeAndAfter) && 0 !== (H = A.deflt( - G.pregap, + L.pregap, d )) && (((Q = Ke.makeSpan( ['arraycolsep'], [] - )).style.width = k(H)), + )).style.width = G(H)), T.push(Q)); var J = []; for (n = 0; n < o; ++n) { var W = c[n], - V = W[i]; + V = W[r]; if (V) { - var K = W.pos - x; + var K = W.pos - F; (V.depth = W.depth), (V.height = W.height), J.push({ @@ -103299,22 +102199,22 @@ (J = Ke.makeSpan( [ 'col-align-' + - (G.align || 'c'), + (L.align || 'c'), ], [J] )), T.push(J), - (i < s - 1 || + (r < a - 1 || e.hskipBeforeAndAfter) && 0 !== (H = A.deflt( - G.postgap, + L.postgap, d )) && (((Q = Ke.makeSpan( ['arraycolsep'], [] - )).style.width = k(H)), + )).style.width = G(H)), T.push(Q)); } } @@ -103344,7 +102244,7 @@ ) { var $ = l.pop(), - ee = $.pos - x; + ee = $.pos - F; $.isDashed ? q.push({ type: 'elem', @@ -103385,15 +102285,15 @@ return Ke.makeSpan(['mord'], [c], t); }, On = {c: 'center ', l: 'left ', r: 'right '}, - kn = function(e, t) { + Gn = function(e, t) { for ( var n = [], - r = new vt.MathNode( + i = new Mt.MathNode( 'mtd', [], ['mtr-glue'] ), - i = new vt.MathNode( + r = new Mt.MathNode( 'mtd', [], ['mml-eqn-num'] @@ -103403,22 +102303,22 @@ o++ ) { for ( - var a = e.body[o], s = [], A = 0; - A < a.length; + var s = e.body[o], a = [], A = 0; + A < s.length; A++ ) - s.push( - new vt.MathNode('mtd', [ - xt(a[A], t), + a.push( + new Mt.MathNode('mtd', [ + Ft(s[A], t), ]) ); e.addEqnNum && - (s.unshift(r), - s.push(r), - e.leqno ? s.unshift(i) : s.push(i)), - n.push(new vt.MathNode('mtr', s)); + (a.unshift(i), + a.push(i), + e.leqno ? a.unshift(r) : a.push(r)), + n.push(new Mt.MathNode('mtr', a)); } - var c = new vt.MathNode('mtable', n), + var c = new Mt.MathNode('mtable', n), l = 0.5 === e.arraystretch ? 0.1 @@ -103426,7 +102326,7 @@ e.arraystretch - 1 + (e.addJot ? 0.09 : 0); - c.setAttribute('rowspacing', k(l)); + c.setAttribute('rowspacing', G(l)); var g = '', u = ''; if (e.cols && e.cols.length > 0) { @@ -103512,7 +102412,7 @@ B.trim() ), '' !== g && - (c = new vt.MathNode('menclose', [ + (c = new Mt.MathNode('menclose', [ c, ])).setAttribute( 'notation', @@ -103520,7 +102420,7 @@ ), e.arraystretch && e.arraystretch < 1 && - (c = new vt.MathNode('mstyle', [ + (c = new Mt.MathNode('mstyle', [ c, ])).setAttribute( 'scriptlevel', @@ -103529,18 +102429,18 @@ c ); }, - Gn = function(e, t) { + Ln = function(e, t) { -1 === e.envName.indexOf('ed') && Yn(e); var n, - i = [], + r = [], o = e.envName.indexOf('at') > -1 ? 'alignat' : 'align', - a = Rn( + s = Rn( e.parser, { - cols: i, + cols: r, addJot: !0, addEqnNum: 'align' === e.envName || @@ -103555,7 +102455,7 @@ }, 'display' ), - s = 0, + a = 0, A = { type: 'ordgroup', mode: e.mode, @@ -103567,24 +102467,24 @@ l < t[0].body.length; l++ ) - c += Gt(t[0].body[l], 'textord') + c += Lt(t[0].body[l], 'textord') .text; - (n = Number(c)), (s = 2 * n); + (n = Number(c)), (a = 2 * n); } - var g = !s; - a.body.forEach(function(e) { + var g = !a; + s.body.forEach(function(e) { for (var t = 1; t < e.length; t += 2) { - var i = Gt(e[t], 'styling'); - Gt( - i.body[0], + var r = Lt(e[t], 'styling'); + Lt( + r.body[0], 'ordgroup' ).body.unshift(A); } - if (g) s < e.length && (s = e.length); + if (g) a < e.length && (a = e.length); else { var o = e.length / 2; if (n < o) - throw new r( + throw new i( 'Too many math in a row: expected ' + n + ', but got ' + @@ -103593,13 +102493,13 @@ ); } }); - for (var u = 0; u < s; ++u) { + for (var u = 0; u < a; ++u) { var d = 'r', h = 0; u % 2 == 1 ? (d = 'l') : u > 0 && g && (h = 1), - (i[u] = { + (r[u] = { type: 'align', align: d, pregap: h, @@ -103607,10 +102507,10 @@ }); } return ( - (a.colSeparationType = g + (s.colSeparationType = g ? 'align' : 'alignat'), - a + s ); }; Dn({ @@ -103618,11 +102518,11 @@ names: ['array', 'darray'], props: {numArgs: 1}, handler: function(e, t) { - var n = (jt(t[0]) + var n = (zt(t[0]) ? [t[0]] - : Gt(t[0], 'ordgroup').body + : Lt(t[0], 'ordgroup').body ).map(function(e) { - var t = Lt(e).text; + var t = kt(e).text; if (-1 !== 'lcr'.indexOf(t)) return { type: 'align', @@ -103638,21 +102538,21 @@ type: 'separator', separator: ':', }; - throw new r( + throw new i( 'Unknown column alignment: ' + t, e ); }), - i = { + r = { cols: n, hskipBeforeAndAfter: !0, maxNumCols: n.length, }; - return Rn(e.parser, i, _n(e.envName)); + return Rn(e.parser, r, _n(e.envName)); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103681,7 +102581,7 @@ Vmatrix: ['\\Vert', '\\Vert'], }[e.envName.replace('*', '')], n = 'c', - i = { + r = { hskipBeforeAndAfter: !1, cols: [ {type: 'align', align: n}, @@ -103704,7 +102604,7 @@ (n = o.fetch().text), -1 === 'lcr'.indexOf(n)) ) - throw new r( + throw new i( 'Expected l or c or r', o.nextToken ); @@ -103712,7 +102612,7 @@ o.consumeSpaces(), o.expect(']'), o.consume(), - (i.cols = [ + (r.cols = [ { type: 'align', align: n, @@ -103720,17 +102620,17 @@ ]); } } - var a = Rn(e.parser, i, _n(e.envName)), - s = Math.max.apply( + var s = Rn(e.parser, r, _n(e.envName)), + a = Math.max.apply( Math, [0].concat( - a.body.map(function(e) { + s.body.map(function(e) { return e.length; }) ) ); return ( - (a.cols = new Array(s).fill({ + (s.cols = new Array(a).fill({ type: 'align', align: n, })), @@ -103738,16 +102638,16 @@ ? { type: 'leftright', mode: e.mode, - body: [a], + body: [s], left: t[0], right: t[1], rightColor: void 0, } - : a + : s ); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103764,50 +102664,50 @@ ); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', names: ['subarray'], props: {numArgs: 1}, handler: function(e, t) { - var n = (jt(t[0]) + var n = (zt(t[0]) ? [t[0]] - : Gt(t[0], 'ordgroup').body + : Lt(t[0], 'ordgroup').body ).map(function(e) { - var t = Lt(e).text; + var t = kt(e).text; if (-1 !== 'lc'.indexOf(t)) return { type: 'align', align: t, }; - throw new r( + throw new i( 'Unknown column alignment: ' + t, e ); }); if (n.length > 1) - throw new r( + throw new i( '{subarray} can contain only one column' ); - var i = { + var r = { cols: n, hskipBeforeAndAfter: !1, arraystretch: 0.5, }; if ( - (i = Rn(e.parser, i, 'script')).body + (r = Rn(e.parser, r, 'script')).body .length > 0 && - i.body[0].length > 1 + r.body[0].length > 1 ) - throw new r( + throw new i( '{subarray} can contain only one column' ); - return i; + return r; }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103856,7 +102756,7 @@ }; }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103867,9 +102767,9 @@ 'split', ], props: {numArgs: 0}, - handler: Gn, + handler: Ln, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103891,15 +102791,15 @@ return Rn(e.parser, t, 'display'); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', names: ['alignat', 'alignat*', 'alignedat'], props: {numArgs: 1}, - handler: Gn, + handler: Ln, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103917,7 +102817,7 @@ return Rn(e.parser, t, 'display'); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), Dn({ type: 'array', @@ -103958,7 +102858,7 @@ t.pop(); break; } - throw new r( + throw new i( 'Expected \\\\ or \\cr or \\end', e.nextToken ); @@ -103966,10 +102866,10 @@ e.consume(); } for ( - var i, + var r, o, - a = [], - s = [a], + s = [], + a = [s], A = 0; A < t.length; A++ @@ -103988,8 +102888,8 @@ g++ ) if (Vt(c[g])) { - a.push(l); - var u = Lt( + s.push(l); + var u = kt( c[(g += 1)] ).text, d = new Array( @@ -104022,7 +102922,7 @@ ) > -1 ) ) - throw new r( + throw new i( 'Expected one of "<>AV=|." after @', c[g] ); @@ -104043,14 +102943,14 @@ if ( ((o = u), ('mathord' === - (i = + (r = c[ I ]) .type || 'atom' === - i.type) && - i.text === + r.type) && + r.text === o) ) { (C = !1), @@ -104064,7 +102964,7 @@ ] ) ) - throw new r( + throw new i( 'Missing a ' + u + ' character to complete a CD arrow.', @@ -104079,7 +102979,7 @@ ); } if (C) - throw new r( + throw new i( 'Missing a ' + u + ' character to complete a CD arrow.', @@ -104096,7 +102996,7 @@ style: 'display', }; - a.push(p), + s.push(p), (l = { type: 'styling', @@ -104109,10 +103009,10 @@ } else l.body.push(c[g]); A % 2 == 0 - ? a.push(l) - : a.shift(), - (a = []), - s.push(a); + ? s.push(l) + : s.shift(), + (s = []), + a.push(s); } return ( e.gullet.endGroup(), @@ -104120,12 +103020,12 @@ { type: 'array', mode: 'math', - body: s, + body: a, arraystretch: 1, addJot: !0, rowGaps: [null], cols: new Array( - s[0].length + a[0].length ).fill({ type: 'align', align: 'c', @@ -104134,7 +103034,7 @@ }), colSeparationType: 'CD', hLinesBeforeRow: new Array( - s.length + 1 + a.length + 1 ).fill([]), } ); @@ -104142,9 +103042,9 @@ ); }, htmlBuilder: Un, - mathmlBuilder: kn, + mathmlBuilder: Gn, }), - it({ + rt({ type: 'text', names: ['\\hline', '\\hdashline'], props: { @@ -104153,61 +103053,61 @@ allowedInMath: !0, }, handler: function(e, t) { - throw new r( + throw new i( e.funcName + ' valid only within array environment' ); }, }); - var Ln = xn; - it({ + var kn = Fn; + rt({ type: 'environment', names: ['\\begin', '\\end'], props: {numArgs: 1, argTypes: ['text']}, handler: function(e, t) { var n = e.parser, - i = e.funcName, + r = e.funcName, o = t[0]; if ('ordgroup' !== o.type) - throw new r( + throw new i( 'Invalid environment name', o ); for ( - var a = '', s = 0; - s < o.body.length; - ++s + var s = '', a = 0; + a < o.body.length; + ++a ) - a += Gt(o.body[s], 'textord').text; - if ('\\begin' === i) { - if (!Ln.hasOwnProperty(a)) - throw new r( - 'No such environment: ' + a, + s += Lt(o.body[a], 'textord').text; + if ('\\begin' === r) { + if (!kn.hasOwnProperty(s)) + throw new i( + 'No such environment: ' + s, o ); - var A = Ln[a], + var A = kn[s], c = n.parseArguments( - '\\begin{' + a + '}', + '\\begin{' + s + '}', A ), l = c.args, g = c.optArgs, u = { mode: n.mode, - envName: a, + envName: s, parser: n, }, d = A.handler(u, l, g); n.expect('\\end', !1); var h = n.nextToken, - C = Gt( + C = Lt( n.parseFunction(), 'environment' ); - if (C.name !== a) - throw new r( + if (C.name !== s) + throw new i( 'Mismatch: \\begin{' + - a + + s + '} matched by \\end{' + C.name + '}', @@ -104218,30 +103118,30 @@ return { type: 'environment', mode: n.mode, - name: a, + name: s, nameGroup: o, }; }, }); - var jn = Ke.makeSpan; - function zn(e, t) { + var zn = Ke.makeSpan; + function jn(e, t) { var n = dt(e.body, t, !0); - return jn([e.mclass], n, t); + return zn([e.mclass], n, t); } function Pn(e, t) { var n, - r = Qt(e.body, t); + i = Qt(e.body, t); return 'minner' === e.mclass - ? vt.newDocumentFragment(r) + ? Mt.newDocumentFragment(i) : ('mord' === e.mclass ? e.isCharacterBox - ? ((n = r[0]).type = 'mi') - : (n = new vt.MathNode('mi', r)) + ? ((n = i[0]).type = 'mi') + : (n = new Mt.MathNode('mi', i)) : (e.isCharacterBox - ? ((n = r[0]).type = 'mo') - : (n = new vt.MathNode( + ? ((n = i[0]).type = 'mo') + : (n = new Mt.MathNode( 'mo', - r + i )), 'mbin' === e.mclass ? ((n.attributes.lspace = @@ -104261,7 +103161,7 @@ '0em'))), n); } - it({ + rt({ type: 'mclass', names: [ '\\mathord', @@ -104275,17 +103175,17 @@ props: {numArgs: 1, primitive: !0}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'mclass', mode: n.mode, - mclass: 'm' + r.substr(5), - body: st(i), - isCharacterBox: A.isCharacterBox(i), + mclass: 'm' + i.substr(5), + body: at(r), + isCharacterBox: A.isCharacterBox(r), }; }, - htmlBuilder: zn, + htmlBuilder: jn, mathmlBuilder: Pn, }); var Hn = function(e) { @@ -104298,7 +103198,7 @@ ? 'mord' : 'm' + t.family; }; - it({ + rt({ type: 'mclass', names: ['\\@binrel'], props: {numArgs: 2}, @@ -104307,12 +103207,12 @@ type: 'mclass', mode: e.parser.mode, mclass: Hn(t[0]), - body: st(t[1]), + body: at(t[1]), isCharacterBox: A.isCharacterBox(t[1]), }; }, }), - it({ + rt({ type: 'mclass', names: [ '\\stackrel', @@ -104322,12 +103222,12 @@ props: {numArgs: 2}, handler: function(e, t) { var n, - r = e.parser, - i = e.funcName, + i = e.parser, + r = e.funcName, o = t[1], - a = t[0]; - n = '\\stackrel' !== i ? Hn(o) : 'mrel'; - var s = { + s = t[0]; + n = '\\stackrel' !== r ? Hn(o) : 'mrel'; + var a = { type: 'op', mode: o.mode, limits: !0, @@ -104335,42 +103235,42 @@ parentIsSupSub: !1, symbol: !1, suppressBaseShift: - '\\stackrel' !== i, - body: st(o), + '\\stackrel' !== r, + body: at(o), }, c = { type: 'supsub', - mode: a.mode, - base: s, + mode: s.mode, + base: a, sup: - '\\underset' === i + '\\underset' === r ? null - : a, + : s, sub: - '\\underset' === i - ? a + '\\underset' === r + ? s : null, }; return { type: 'mclass', - mode: r.mode, + mode: i.mode, mclass: n, body: [c], isCharacterBox: A.isCharacterBox(c), }; }, - htmlBuilder: zn, + htmlBuilder: jn, mathmlBuilder: Pn, }); var Jn = function(e, t) { var n = e.font, - r = t.withFont(n); - return ft(e.body, r); + i = t.withFont(n); + return ft(e.body, i); }, Wn = function(e, t) { var n = e.font, - r = t.withFont(n); - return xt(e.body, r); + i = t.withFont(n); + return Ft(e.body, i); }, Vn = { '\\Bbb': '\\mathbb', @@ -104378,7 +103278,7 @@ '\\frak': '\\mathfrak', '\\bm': '\\boldsymbol', }; - it({ + rt({ type: 'font', names: [ '\\mathrm', @@ -104398,47 +103298,47 @@ props: {numArgs: 1, allowedInArgument: !0}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = at(t[0]), - o = r; + i = e.funcName, + r = st(t[0]), + o = i; return ( o in Vn && (o = Vn[o]), { type: 'font', mode: n.mode, font: o.slice(1), - body: i, + body: r, } ); }, htmlBuilder: Jn, mathmlBuilder: Wn, }), - it({ + rt({ type: 'mclass', names: ['\\boldsymbol', '\\bm'], props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = t[0], - i = A.isCharacterBox(r); + i = t[0], + r = A.isCharacterBox(i); return { type: 'mclass', mode: n.mode, - mclass: Hn(r), + mclass: Hn(i), body: [ { type: 'font', mode: n.mode, font: 'boldsymbol', - body: r, + body: i, }, ], - isCharacterBox: i, + isCharacterBox: r, }; }, }), - it({ + rt({ type: 'font', names: [ '\\rm', @@ -104451,18 +103351,18 @@ props: {numArgs: 0, allowedInText: !0}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = e.breakOnTokenText, + i = e.funcName, + r = e.breakOnTokenText, o = n.mode, - a = n.parseExpression(!0, i); + s = n.parseExpression(!0, r); return { type: 'font', mode: o, - font: 'math' + r.slice(1), + font: 'math' + i.slice(1), body: { type: 'ordgroup', mode: n.mode, - body: a, + body: s, }, }; }, @@ -104489,18 +103389,18 @@ }, Zn = function(e, t) { var n, - r = Kn(e.size, t.style), - i = r.fracNum(), - o = r.fracDen(); - n = t.havingStyle(i); - var a = ft(e.numer, n, t); + i = Kn(e.size, t.style), + r = i.fracNum(), + o = i.fracDen(); + n = t.havingStyle(r); + var s = ft(e.numer, n, t); if (e.continued) { - var s = 8.5 / t.fontMetrics().ptPerEm, + var a = 8.5 / t.fontMetrics().ptPerEm, A = 3.5 / t.fontMetrics().ptPerEm; - (a.height = - a.height < s ? s : a.height), - (a.depth = - a.depth < A ? A : a.depth); + (s.height = + s.height < a ? a : s.height), + (s.depth = + s.depth < A ? A : s.depth); } n = t.havingStyle(o); var c, @@ -104533,7 +103433,7 @@ (l = 0), (g = t.fontMetrics() .defaultRuleThickness)), - r.size === m.DISPLAY.size || + i.size === m.DISPLAY.size || 'display' === e.size ? ((u = t.fontMetrics().num1), (d = l > 0 ? 3 * g : 7 * g), @@ -104547,10 +103447,10 @@ c) ) { var y = t.fontMetrics().axisHeight; - u - a.depth - (y + 0.5 * l) < d && + u - s.depth - (y + 0.5 * l) < d && (u += d - - (u - a.depth - (y + 0.5 * l))), + (u - s.depth - (y + 0.5 * l))), y - 0.5 * l - (E.height - h) < d && (h += d - @@ -104574,7 +103474,7 @@ }, { type: 'elem', - elem: a, + elem: s, shift: -u, }, ], @@ -104582,7 +103482,7 @@ t ); } else { - var w = u - a.depth - (E.height - h); + var w = u - s.depth - (E.height - h); w < d && ((u += 0.5 * (d - w)), (h += 0.5 * (d - w))), @@ -104598,7 +103498,7 @@ }, { type: 'elem', - elem: a, + elem: s, shift: -u, }, ], @@ -104607,7 +103507,7 @@ )); } return ( - (n = t.havingStyle(r)), + (n = t.havingStyle(i)), (C.height *= n.sizeMultiplier / t.sizeMultiplier), @@ -104615,9 +103515,9 @@ n.sizeMultiplier / t.sizeMultiplier), (I = - r.size === m.DISPLAY.size + i.size === m.DISPLAY.size ? t.fontMetrics().delim1 - : r.size === m.SCRIPTSCRIPT.size + : i.size === m.SCRIPTSCRIPT.size ? t .havingStyle(m.SCRIPT) .fontMetrics().delim2 @@ -104629,7 +103529,7 @@ e.leftDelim, I, !0, - t.havingStyle(r), + t.havingStyle(i), e.mode, ['mopen'] )), @@ -104641,7 +103541,7 @@ e.rightDelim, I, !0, - t.havingStyle(r), + t.havingStyle(i), e.mode, ['mclose'] )), @@ -104653,25 +103553,25 @@ ); }, Xn = function(e, t) { - var n = new vt.MathNode('mfrac', [ - xt(e.numer, t), - xt(e.denom, t), + var n = new Mt.MathNode('mfrac', [ + Ft(e.numer, t), + Ft(e.denom, t), ]); if (e.hasBarLine) { if (e.barSize) { - var r = O(e.barSize, t); + var i = O(e.barSize, t); n.setAttribute( 'linethickness', - k(r) + G(i) ); } } else n.setAttribute('linethickness', '0px'); - var i = Kn(e.size, t.style); - if (i.size !== t.style.size) { - n = new vt.MathNode('mstyle', [n]); + var r = Kn(e.size, t.style); + if (r.size !== t.style.size) { + n = new Mt.MathNode('mstyle', [n]); var o = - i.size === m.DISPLAY.size + r.size === m.DISPLAY.size ? 'true' : 'false'; n.setAttribute('displaystyle', o), @@ -104681,22 +103581,22 @@ null != e.leftDelim || null != e.rightDelim ) { - var a = []; + var s = []; if (null != e.leftDelim) { - var s = new vt.MathNode('mo', [ - new vt.TextNode( + var a = new Mt.MathNode('mo', [ + new Mt.TextNode( e.leftDelim.replace( '\\', '' ) ), ]); - s.setAttribute('fence', 'true'), - a.push(s); + a.setAttribute('fence', 'true'), + s.push(a); } - if ((a.push(n), null != e.rightDelim)) { - var A = new vt.MathNode('mo', [ - new vt.TextNode( + if ((s.push(n), null != e.rightDelim)) { + var A = new Mt.MathNode('mo', [ + new Mt.TextNode( e.rightDelim.replace( '\\', '' @@ -104704,13 +103604,13 @@ ), ]); A.setAttribute('fence', 'true'), - a.push(A); + s.push(A); } - return Nt(a); + return Nt(s); } return n; }; - it({ + rt({ type: 'genfrac', names: [ '\\dfrac', @@ -104726,14 +103626,14 @@ props: {numArgs: 2, allowedInArgument: !0}, handler: function(e, t) { var n, - r = e.parser, - i = e.funcName, + i = e.parser, + r = e.funcName, o = t[0], - a = t[1], - s = null, + s = t[1], + a = null, A = null, c = 'auto'; - switch (i) { + switch (r) { case '\\dfrac': case '\\frac': case '\\tfrac': @@ -104745,20 +103645,20 @@ case '\\dbinom': case '\\binom': case '\\tbinom': - (n = !1), (s = '('), (A = ')'); + (n = !1), (a = '('), (A = ')'); break; case '\\\\bracefrac': - (n = !1), (s = '\\{'), (A = '\\}'); + (n = !1), (a = '\\{'), (A = '\\}'); break; case '\\\\brackfrac': - (n = !1), (s = '['), (A = ']'); + (n = !1), (a = '['), (A = ']'); break; default: throw new Error( 'Unrecognized genfrac command' ); } - switch (i) { + switch (r) { case '\\dfrac': case '\\dbinom': c = 'display'; @@ -104769,12 +103669,12 @@ } return { type: 'genfrac', - mode: r.mode, + mode: i.mode, continued: !1, numer: o, - denom: a, + denom: s, hasBarLine: n, - leftDelim: s, + leftDelim: a, rightDelim: A, size: c, barSize: null, @@ -104783,20 +103683,20 @@ htmlBuilder: Zn, mathmlBuilder: Xn, }), - it({ + rt({ type: 'genfrac', names: ['\\cfrac'], props: {numArgs: 2}, handler: function(e, t) { var n = e.parser, - r = (e.funcName, t[0]), - i = t[1]; + i = (e.funcName, t[0]), + r = t[1]; return { type: 'genfrac', mode: n.mode, continued: !0, - numer: r, - denom: i, + numer: i, + denom: r, hasBarLine: !0, leftDelim: null, rightDelim: null, @@ -104805,7 +103705,7 @@ }; }, }), - it({ + rt({ type: 'infix', names: [ '\\over', @@ -104818,9 +103718,9 @@ handler: function(e) { var t, n = e.parser, - r = e.funcName, - i = e.token; - switch (r) { + i = e.funcName, + r = e.token; + switch (i) { case '\\over': t = '\\frac'; break; @@ -104845,7 +103745,7 @@ type: 'infix', mode: n.mode, replaceWith: t, - token: i, + token: r, }; }, }); @@ -104863,7 +103763,7 @@ t ); }; - it({ + rt({ type: 'genfrac', names: ['\\genfrac'], props: { @@ -104880,43 +103780,43 @@ }, handler: function(e, t) { var n, - r = e.parser, - i = t[4], + i = e.parser, + r = t[4], o = t[5], - a = at(t[0]), - s = - 'atom' === a.type && - 'open' === a.family - ? $n(a.text) + s = st(t[0]), + a = + 'atom' === s.type && + 'open' === s.family + ? $n(s.text) : null, - A = at(t[1]), + A = st(t[1]), c = 'atom' === A.type && 'close' === A.family ? $n(A.text) : null, - l = Gt(t[2], 'size'), + l = Lt(t[2], 'size'), g = null; n = !!l.isBlank || (g = l.value).number > 0; var u = 'auto', d = t[3]; if ('ordgroup' === d.type) { if (d.body.length > 0) { - var h = Gt(d.body[0], 'textord'); + var h = Lt(d.body[0], 'textord'); u = qn[Number(h.text)]; } } else - (d = Gt(d, 'textord')), + (d = Lt(d, 'textord')), (u = qn[Number(d.text)]); return { type: 'genfrac', - mode: r.mode, - numer: i, + mode: i.mode, + numer: r, denom: o, continued: !1, hasBarLine: n, barSize: g, - leftDelim: s, + leftDelim: a, rightDelim: c, size: u, }; @@ -104924,7 +103824,7 @@ htmlBuilder: Zn, mathmlBuilder: Xn, }), - it({ + rt({ type: 'infix', names: ['\\above'], props: { @@ -104934,17 +103834,17 @@ }, handler: function(e, t) { var n = e.parser, - r = (e.funcName, e.token); + i = (e.funcName, e.token); return { type: 'infix', mode: n.mode, replaceWith: '\\\\abovefrac', - size: Gt(t[0], 'size').value, - token: r, + size: Lt(t[0], 'size').value, + token: i, }; }, }), - it({ + rt({ type: 'genfrac', names: ['\\\\abovefrac'], props: { @@ -104953,25 +103853,25 @@ }, handler: function(e, t) { var n = e.parser, - r = (e.funcName, t[0]), - i = (function(e) { + i = (e.funcName, t[0]), + r = (function(e) { if (!e) throw new Error( 'Expected non-null, but got ' + String(e) ); return e; - })(Gt(t[1], 'infix').size), + })(Lt(t[1], 'infix').size), o = t[2], - a = i.number > 0; + s = r.number > 0; return { type: 'genfrac', mode: n.mode, - numer: r, + numer: i, denom: o, continued: !1, - hasBarLine: a, - barSize: i, + hasBarLine: s, + barSize: r, leftDelim: null, rightDelim: null, size: 'auto', @@ -104980,35 +103880,35 @@ htmlBuilder: Zn, mathmlBuilder: Xn, }); - var er = function(e, t) { + var ei = function(e, t) { var n, - r, - i = t.style; + i, + r = t.style; 'supsub' === e.type ? ((n = e.sup - ? ft(e.sup, t.havingStyle(i.sup()), t) + ? ft(e.sup, t.havingStyle(r.sup()), t) : ft( e.sub, - t.havingStyle(i.sub()), + t.havingStyle(r.sub()), t )), - (r = Gt(e.base, 'horizBrace'))) - : (r = Gt(e, 'horizBrace')); + (i = Lt(e.base, 'horizBrace'))) + : (i = Lt(e, 'horizBrace')); var o, - a = ft( - r.base, + s = ft( + i.base, t.havingBaseStyle(m.DISPLAY) ), - s = kt(r, t); + a = Gt(i, t); if ( - (r.isOver + (i.isOver ? (o = Ke.makeVList( { positionType: 'firstBaseline', children: [ - {type: 'elem', elem: a}, - {type: 'kern', size: 0.1}, {type: 'elem', elem: s}, + {type: 'kern', size: 0.1}, + {type: 'elem', elem: a}, ], }, t @@ -105019,11 +103919,11 @@ { positionType: 'bottom', positionData: - a.depth + 0.1 + s.height, + s.depth + 0.1 + a.height, children: [ - {type: 'elem', elem: s}, - {type: 'kern', size: 0.1}, {type: 'elem', elem: a}, + {type: 'kern', size: 0.1}, + {type: 'elem', elem: s}, ], }, t @@ -105033,11 +103933,11 @@ n) ) { var A = Ke.makeSpan( - ['mord', r.isOver ? 'mover' : 'munder'], + ['mord', i.isOver ? 'mover' : 'munder'], [o], t ); - o = r.isOver + o = i.isOver ? Ke.makeVList( { positionType: 'firstBaseline', @@ -105067,36 +103967,36 @@ ); } return Ke.makeSpan( - ['mord', r.isOver ? 'mover' : 'munder'], + ['mord', i.isOver ? 'mover' : 'munder'], [o], t ); }; - it({ + rt({ type: 'horizBrace', names: ['\\overbrace', '\\underbrace'], props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = e.funcName; + i = e.funcName; return { type: 'horizBrace', mode: n.mode, - label: r, - isOver: /^\\over/.test(r), + label: i, + isOver: /^\\over/.test(i), base: t[0], }; }, - htmlBuilder: er, + htmlBuilder: ei, mathmlBuilder: function(e, t) { var n = Ot(e.label); - return new vt.MathNode( + return new Mt.MathNode( e.isOver ? 'mover' : 'munder', - [xt(e.base, t), n] + [Ft(e.base, t), n] ); }, }), - it({ + rt({ type: 'href', names: ['\\href'], props: { @@ -105106,17 +104006,17 @@ }, handler: function(e, t) { var n = e.parser, - r = t[1], - i = Gt(t[0], 'url').url; + i = t[1], + r = Lt(t[0], 'url').url; return n.settings.isTrusted({ command: '\\href', - url: i, + url: r, }) ? { type: 'href', mode: n.mode, - href: i, - body: st(r), + href: r, + body: at(i), } : n.formatUnsupportedCmd('\\href'); }, @@ -105125,7 +104025,7 @@ return Ke.makeAnchor(e.href, [], n, t); }, mathmlBuilder: function(e, t) { - var n = Ft(e.body, t); + var n = xt(e.body, t); return ( n instanceof wt || (n = new wt('mrow', [n])), @@ -105134,7 +104034,7 @@ ); }, }), - it({ + rt({ type: 'href', names: ['\\url'], props: { @@ -105144,45 +104044,45 @@ }, handler: function(e, t) { var n = e.parser, - r = Gt(t[0], 'url').url; + i = Lt(t[0], 'url').url; if ( !n.settings.isTrusted({ command: '\\url', - url: r, + url: i, }) ) return n.formatUnsupportedCmd( '\\url' ); for ( - var i = [], o = 0; - o < r.length; + var r = [], o = 0; + o < i.length; o++ ) { - var a = r[o]; - '~' === a && - (a = '\\textasciitilde'), - i.push({ + var s = i[o]; + '~' === s && + (s = '\\textasciitilde'), + r.push({ type: 'textord', mode: 'text', - text: a, + text: s, }); } - var s = { + var a = { type: 'text', mode: n.mode, font: '\\texttt', - body: i, + body: r, }; return { type: 'href', mode: n.mode, - href: r, - body: st(s), + href: i, + body: at(a), }; }, }), - it({ + rt({ type: 'hbox', names: ['\\hbox'], props: { @@ -105195,7 +104095,7 @@ return { type: 'hbox', mode: e.parser.mode, - body: st(t[0]), + body: at(t[0]), }; }, htmlBuilder: function(e, t) { @@ -105203,13 +104103,13 @@ return Ke.makeFragment(n); }, mathmlBuilder: function(e, t) { - return new vt.MathNode( + return new Mt.MathNode( 'mrow', Qt(e.body, t) ); }, }), - it({ + rt({ type: 'html', names: [ '\\htmlClass', @@ -105224,49 +104124,49 @@ }, handler: function(e, t) { var n, - i = e.parser, + r = e.parser, o = e.funcName, - a = + s = (e.token, - Gt(t[0], 'raw').string), - s = t[1]; - i.settings.strict && - i.settings.reportNonstrict( + Lt(t[0], 'raw').string), + a = t[1]; + r.settings.strict && + r.settings.reportNonstrict( 'htmlExtension', 'HTML extension is disabled on strict mode' ); var A = {}; switch (o) { case '\\htmlClass': - (A.class = a), + (A.class = s), (n = { command: '\\htmlClass', - class: a, + class: s, }); break; case '\\htmlId': - (A.id = a), + (A.id = s), (n = { command: '\\htmlId', - id: a, + id: s, }); break; case '\\htmlStyle': - (A.style = a), + (A.style = s), (n = { command: '\\htmlStyle', - style: a, + style: s, }); break; case '\\htmlData': for ( - var c = a.split(','), l = 0; + var c = s.split(','), l = 0; l < c.length; l++ ) { var g = c[l].split('='); if (2 !== g.length) - throw new r( + throw new i( 'Error parsing key-value for \\htmlData' ); A[ @@ -105283,42 +104183,42 @@ 'Unrecognized html command' ); } - return i.settings.isTrusted(n) + return r.settings.isTrusted(n) ? { type: 'html', - mode: i.mode, + mode: r.mode, attributes: A, - body: st(s), + body: at(a), } - : i.formatUnsupportedCmd(o); + : r.formatUnsupportedCmd(o); }, htmlBuilder: function(e, t) { var n = dt(e.body, t, !1), - r = ['enclosing']; + i = ['enclosing']; e.attributes.class && - r.push.apply( - r, + i.push.apply( + i, e.attributes.class .trim() .split(/\s+/) ); - var i = Ke.makeSpan(r, n, t); + var r = Ke.makeSpan(i, n, t); for (var o in e.attributes) 'class' !== o && e.attributes.hasOwnProperty( o ) && - i.setAttribute( + r.setAttribute( o, e.attributes[o] ); - return i; + return r; }, mathmlBuilder: function(e, t) { - return Ft(e.body, t); + return xt(e.body, t); }, }), - it({ + rt({ type: 'htmlmathml', names: ['\\html@mathml'], props: {numArgs: 2, allowedInText: !0}, @@ -105326,8 +104226,8 @@ return { type: 'htmlmathml', mode: e.parser.mode, - html: st(t[0]), - mathml: st(t[1]), + html: at(t[0]), + mathml: at(t[1]), }; }, htmlBuilder: function(e, t) { @@ -105335,31 +104235,31 @@ return Ke.makeFragment(n); }, mathmlBuilder: function(e, t) { - return Ft(e.mathml, t); + return xt(e.mathml, t); }, }); - var tr = function(e) { + var ti = function(e) { if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) return {number: +e, unit: 'bp'}; var t = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec( e ); if (!t) - throw new r( + throw new i( "Invalid size: '" + e + "' in \\includegraphics" ); var n = {number: +(t[1] + t[2]), unit: t[3]}; if (!U(n)) - throw new r( + throw new i( "Invalid unit: '" + n.unit + "' in \\includegraphics." ); return n; }; - it({ + rt({ type: 'includegraphics', names: ['\\includegraphics'], props: { @@ -105369,14 +104269,14 @@ allowedInText: !1, }, handler: function(e, t, n) { - var i = e.parser, + var r = e.parser, o = {number: 0, unit: 'em'}, - a = {number: 0.9, unit: 'em'}, - s = {number: 0, unit: 'em'}, + s = {number: 0.9, unit: 'em'}, + a = {number: 0, unit: 'em'}, A = ''; if (n[0]) for ( - var c = Gt( + var c = Lt( n[0], 'raw' ).string.split(','), @@ -105392,16 +104292,16 @@ A = u; break; case 'width': - o = tr(u); + o = ti(u); break; case 'height': - a = tr(u); + s = ti(u); break; case 'totalheight': - s = tr(u); + a = ti(u); break; default: - throw new r( + throw new i( "Invalid key: '" + g[0] + "' in \\includegraphics." @@ -105409,7 +104309,7 @@ } } } - var d = Gt(t[0], 'url').url; + var d = Lt(t[0], 'url').url; return ( '' === A && (A = (A = (A = d).replace( @@ -105419,56 +104319,56 @@ 0, A.lastIndexOf('.') )), - i.settings.isTrusted({ + r.settings.isTrusted({ command: '\\includegraphics', url: d, }) ? { type: 'includegraphics', - mode: i.mode, + mode: r.mode, alt: A, width: o, - height: a, - totalheight: s, + height: s, + totalheight: a, src: d, } - : i.formatUnsupportedCmd( + : r.formatUnsupportedCmd( '\\includegraphics' ) ); }, htmlBuilder: function(e, t) { var n = O(e.height, t), - r = 0; + i = 0; e.totalheight.number > 0 && - (r = O(e.totalheight, t) - n); - var i = 0; - e.width.number > 0 && (i = O(e.width, t)); - var o = {height: k(n + r)}; - i > 0 && (o.width = k(i)), - r > 0 && (o.verticalAlign = k(-r)); - var a = new J(e.src, e.alt, o); - return (a.height = n), (a.depth = r), a; + (i = O(e.totalheight, t) - n); + var r = 0; + e.width.number > 0 && (r = O(e.width, t)); + var o = {height: G(n + i)}; + r > 0 && (o.width = G(r)), + i > 0 && (o.verticalAlign = G(-i)); + var s = new J(e.src, e.alt, o); + return (s.height = n), (s.depth = i), s; }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mglyph', []); + var n = new Mt.MathNode('mglyph', []); n.setAttribute('alt', e.alt); - var r = O(e.height, t), - i = 0; + var i = O(e.height, t), + r = 0; if ( (e.totalheight.number > 0 && - ((i = O(e.totalheight, t) - r), - n.setAttribute('valign', k(-i))), - n.setAttribute('height', k(r + i)), + ((r = O(e.totalheight, t) - i), + n.setAttribute('valign', G(-r))), + n.setAttribute('height', G(i + r)), e.width.number > 0) ) { var o = O(e.width, t); - n.setAttribute('width', k(o)); + n.setAttribute('width', G(o)); } return n.setAttribute('src', e.src), n; }, }), - it({ + rt({ type: 'kern', names: [ '\\kern', @@ -105484,40 +104384,40 @@ }, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = Gt(t[0], 'size'); + i = e.funcName, + r = Lt(t[0], 'size'); if (n.settings.strict) { - var o = 'm' === r[1], - a = 'mu' === i.value.unit; + var o = 'm' === i[1], + s = 'mu' === r.value.unit; o - ? (a || + ? (s || n.settings.reportNonstrict( 'mathVsTextUnits', "LaTeX's " + - r + + i + ' supports only mu units, not ' + - i.value.unit + + r.value.unit + ' units' ), 'math' !== n.mode && n.settings.reportNonstrict( 'mathVsTextUnits', "LaTeX's " + - r + + i + ' works only in math mode' )) - : a && + : s && n.settings.reportNonstrict( 'mathVsTextUnits', "LaTeX's " + - r + + i + " doesn't support mu units" ); } return { type: 'kern', mode: n.mode, - dimension: i.value, + dimension: r.value, }; }, htmlBuilder: function(e, t) { @@ -105525,10 +104425,10 @@ }, mathmlBuilder: function(e, t) { var n = O(e.dimension, t); - return new vt.SpaceNode(n); + return new Mt.SpaceNode(n); }, }), - it({ + rt({ type: 'lap', names: [ '\\mathllap', @@ -105538,13 +104438,13 @@ props: {numArgs: 1, allowedInText: !0}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'lap', mode: n.mode, - alignment: r.slice(5), - body: i, + alignment: i.slice(5), + body: r, }; }, htmlBuilder: function(e, t) { @@ -105563,46 +104463,46 @@ ['inner'], [ft(e.body, t)] )); - var r = Ke.makeSpan(['fix'], []), - i = Ke.makeSpan( + var i = Ke.makeSpan(['fix'], []), + r = Ke.makeSpan( [e.alignment], - [n, r], + [n, i], t ), o = Ke.makeSpan(['strut']); return ( - (o.style.height = k( - i.height + i.depth + (o.style.height = G( + r.height + r.depth )), - i.depth && - (o.style.verticalAlign = k( - -i.depth + r.depth && + (o.style.verticalAlign = G( + -r.depth )), - i.children.unshift(o), - (i = Ke.makeSpan( + r.children.unshift(o), + (r = Ke.makeSpan( ['thinbox'], - [i], + [r], t )), Ke.makeSpan( ['mord', 'vbox'], - [i], + [r], t ) ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mpadded', [ - xt(e.body, t), + var n = new Mt.MathNode('mpadded', [ + Ft(e.body, t), ]); if ('rlap' !== e.alignment) { - var r = + var i = 'llap' === e.alignment ? '-1' : '-0.5'; n.setAttribute( 'lspace', - r + 'width' + i + 'width' ); } return ( @@ -105610,7 +104510,7 @@ ); }, }), - it({ + rt({ type: 'styling', names: ['\\(', '$'], props: { @@ -105620,24 +104520,24 @@ }, handler: function(e, t) { var n = e.funcName, - r = e.parser, - i = r.mode; - r.switchMode('math'); + i = e.parser, + r = i.mode; + i.switchMode('math'); var o = '\\(' === n ? '\\)' : '$', - a = r.parseExpression(!1, o); + s = i.parseExpression(!1, o); return ( - r.expect(o), - r.switchMode(i), + i.expect(o), + i.switchMode(r), { type: 'styling', - mode: r.mode, + mode: i.mode, style: 'text', - body: a, + body: s, } ); }, }), - it({ + rt({ type: 'text', names: ['\\)', '\\]'], props: { @@ -105646,10 +104546,10 @@ allowedInMath: !1, }, handler: function(e, t) { - throw new r('Mismatched ' + e.funcName); + throw new i('Mismatched ' + e.funcName); }, }); - var nr = function(e, t) { + var ni = function(e, t) { switch (t.style.size) { case m.DISPLAY.size: return e.display; @@ -105663,7 +104563,7 @@ return e.text; } }; - it({ + rt({ type: 'mathchoice', names: ['\\mathchoice'], props: {numArgs: 4, primitive: !0}, @@ -105671,39 +104571,39 @@ return { type: 'mathchoice', mode: e.parser.mode, - display: st(t[0]), - text: st(t[1]), - script: st(t[2]), - scriptscript: st(t[3]), + display: at(t[0]), + text: at(t[1]), + script: at(t[2]), + scriptscript: at(t[3]), }; }, htmlBuilder: function(e, t) { - var n = nr(e, t), - r = dt(n, t, !1); - return Ke.makeFragment(r); + var n = ni(e, t), + i = dt(n, t, !1); + return Ke.makeFragment(i); }, mathmlBuilder: function(e, t) { - var n = nr(e, t); - return Ft(n, t); + var n = ni(e, t); + return xt(n, t); }, }); - var rr = function(e, t, n, r, i, o, a) { + var ii = function(e, t, n, i, r, o, s) { e = Ke.makeSpan([], [e]); - var s, + var a, c, l, g = n && A.isCharacterBox(n); if (t) { var u = ft( t, - r.havingStyle(i.sup()), - r + i.havingStyle(r.sup()), + i ); c = { elem: u, kern: Math.max( - r.fontMetrics().bigOpSpacing1, - r.fontMetrics().bigOpSpacing3 - + i.fontMetrics().bigOpSpacing1, + i.fontMetrics().bigOpSpacing3 - u.depth ), }; @@ -105711,26 +104611,26 @@ if (n) { var d = ft( n, - r.havingStyle(i.sub()), - r + i.havingStyle(r.sub()), + i ); - s = { + a = { elem: d, kern: Math.max( - r.fontMetrics().bigOpSpacing2, - r.fontMetrics().bigOpSpacing4 - + i.fontMetrics().bigOpSpacing2, + i.fontMetrics().bigOpSpacing4 - d.height ), }; } - if (c && s) { + if (c && a) { var h = - r.fontMetrics().bigOpSpacing5 + - s.elem.height + - s.elem.depth + - s.kern + + i.fontMetrics().bigOpSpacing5 + + a.elem.height + + a.elem.depth + + a.kern + e.depth + - a; + s; l = Ke.makeVList( { positionType: 'bottom', @@ -105738,17 +104638,17 @@ children: [ { type: 'kern', - size: r.fontMetrics() + size: i.fontMetrics() .bigOpSpacing5, }, { type: 'elem', - elem: s.elem, - marginLeft: k(-o), + elem: a.elem, + marginLeft: G(-o), }, { type: 'kern', - size: s.kern, + size: a.kern, }, {type: 'elem', elem: e}, { @@ -105758,19 +104658,19 @@ { type: 'elem', elem: c.elem, - marginLeft: k(o), + marginLeft: G(o), }, { type: 'kern', - size: r.fontMetrics() + size: i.fontMetrics() .bigOpSpacing5, }, ], }, - r + i ); - } else if (s) { - var C = e.height - a; + } else if (a) { + var C = e.height - s; l = Ke.makeVList( { positionType: 'top', @@ -105778,26 +104678,26 @@ children: [ { type: 'kern', - size: r.fontMetrics() + size: i.fontMetrics() .bigOpSpacing5, }, { type: 'elem', - elem: s.elem, - marginLeft: k(-o), + elem: a.elem, + marginLeft: G(-o), }, { type: 'kern', - size: s.kern, + size: a.kern, }, {type: 'elem', elem: e}, ], }, - r + i ); } else { if (!c) return e; - var I = e.depth + a; + var I = e.depth + s; l = Ke.makeVList( { positionType: 'bottom', @@ -105811,66 +104711,66 @@ { type: 'elem', elem: c.elem, - marginLeft: k(o), + marginLeft: G(o), }, { type: 'kern', - size: r.fontMetrics() + size: i.fontMetrics() .bigOpSpacing5, }, ], }, - r + i ); } var p = [l]; - if (s && 0 !== o && !g) { - var m = Ke.makeSpan(['mspace'], [], r); - (m.style.marginRight = k(o)), + if (a && 0 !== o && !g) { + var m = Ke.makeSpan(['mspace'], [], i); + (m.style.marginRight = G(o)), p.unshift(m); } return Ke.makeSpan( ['mop', 'op-limits'], p, - r + i ); }, - ir = ['\\smallint'], - or = function(e, t) { + ri = ['\\smallint'], + oi = function(e, t) { var n, - r, i, + r, o = !1; 'supsub' === e.type ? ((n = e.sup), - (r = e.sub), - (i = Gt(e.base, 'op')), + (i = e.sub), + (r = Lt(e.base, 'op')), (o = !0)) - : (i = Gt(e, 'op')); - var a, - s = t.style, + : (r = Lt(e, 'op')); + var s, + a = t.style, c = !1; if ( - (s.size === m.DISPLAY.size && - i.symbol && - !A.contains(ir, i.name) && + (a.size === m.DISPLAY.size && + r.symbol && + !A.contains(ri, r.name) && (c = !0), - i.symbol) + r.symbol) ) { var l = c ? 'Size2-Regular' : 'Size1-Regular', g = ''; if ( - (('\\oiint' !== i.name && - '\\oiiint' !== i.name) || - ((g = i.name.substr(1)), - (i.name = + (('\\oiint' !== r.name && + '\\oiiint' !== r.name) || + ((g = r.name.substr(1)), + (r.name = 'oiint' === g ? '\\iint' : '\\iiint')), - (a = Ke.makeSymbol( - i.name, + (s = Ke.makeSymbol( + r.name, l, 'math', t, @@ -105882,21 +104782,21 @@ )), g.length > 0) ) { - var u = a.italic, + var u = s.italic, d = Ke.staticSvg( g + 'Size' + (c ? '2' : '1'), t ); - (a = Ke.makeVList( + (s = Ke.makeVList( { positionType: 'individualShift', children: [ { type: 'elem', - elem: a, + elem: s, shift: 0, }, { @@ -105908,53 +104808,53 @@ }, t )), - (i.name = '\\' + g), - a.classes.unshift('mop'), - (a.italic = u); + (r.name = '\\' + g), + s.classes.unshift('mop'), + (s.italic = u); } - } else if (i.body) { - var h = dt(i.body, t, !0); + } else if (r.body) { + var h = dt(r.body, t, !0); 1 === h.length && h[0] instanceof V - ? ((a = h[0]).classes[0] = 'mop') - : (a = Ke.makeSpan(['mop'], h, t)); + ? ((s = h[0]).classes[0] = 'mop') + : (s = Ke.makeSpan(['mop'], h, t)); } else { for ( var C = [], I = 1; - I < i.name.length; + I < r.name.length; I++ ) C.push( - Ke.mathsym(i.name[I], i.mode, t) + Ke.mathsym(r.name[I], r.mode, t) ); - a = Ke.makeSpan(['mop'], C, t); + s = Ke.makeSpan(['mop'], C, t); } var p = 0, f = 0; return ( - (a instanceof V || - '\\oiint' === i.name || - '\\oiiint' === i.name) && - !i.suppressBaseShift && + (s instanceof V || + '\\oiint' === r.name || + '\\oiiint' === r.name) && + !r.suppressBaseShift && ((p = - (a.height - a.depth) / 2 - + (s.height - s.depth) / 2 - t.fontMetrics().axisHeight), - (f = a.italic)), + (f = s.italic)), o - ? rr(a, n, r, t, s, f, p) + ? ii(s, n, i, t, a, f, p) : (p && - ((a.style.position = + ((s.style.position = 'relative'), - (a.style.top = k(p))), - a) + (s.style.top = G(p))), + s) ); }, - ar = function(e, t) { + si = function(e, t) { var n; if (e.symbol) (n = new wt('mo', [ - Mt(e.name, e.mode), + vt(e.name, e.mode), ])), - A.contains(ir, e.name) && + A.contains(ri, e.name) && n.setAttribute( 'largeop', 'false' @@ -105965,14 +104865,14 @@ n = new wt('mi', [ new bt(e.name.slice(1)), ]); - var r = new wt('mo', [Mt('⁡', 'text')]); + var i = new wt('mo', [vt('⁡', 'text')]); n = e.parentIsSupSub - ? new wt('mrow', [n, r]) - : Bt([n, r]); + ? new wt('mrow', [n, i]) + : Bt([n, i]); } return n; }, - sr = { + ai = { '∏': '\\prod', '∐': '\\coprod', '∑': '\\sum', @@ -105986,7 +104886,7 @@ '⨄': '\\biguplus', '⨆': '\\bigsqcup', }; - it({ + rt({ type: 'op', names: [ '\\coprod', @@ -106019,42 +104919,42 @@ props: {numArgs: 0}, handler: function(e, t) { var n = e.parser, - r = e.funcName; + i = e.funcName; return ( - 1 === r.length && (r = sr[r]), + 1 === i.length && (i = ai[i]), { type: 'op', mode: n.mode, limits: !0, parentIsSupSub: !1, symbol: !0, - name: r, + name: i, } ); }, - htmlBuilder: or, - mathmlBuilder: ar, + htmlBuilder: oi, + mathmlBuilder: si, }), - it({ + rt({ type: 'op', names: ['\\mathop'], props: {numArgs: 1, primitive: !0}, handler: function(e, t) { var n = e.parser, - r = t[0]; + i = t[0]; return { type: 'op', mode: n.mode, limits: !1, parentIsSupSub: !1, symbol: !1, - body: st(r), + body: at(i), }; }, - htmlBuilder: or, - mathmlBuilder: ar, + htmlBuilder: oi, + mathmlBuilder: si, }); - var Ar = { + var Ai = { '∫': '\\int', '∬': '\\iint', '∭': '\\iiint', @@ -106062,7 +104962,7 @@ '∯': '\\oiint', '∰': '\\oiiint', }; - it({ + rt({ type: 'op', names: [ '\\arcsin', @@ -106111,10 +105011,10 @@ name: n, }; }, - htmlBuilder: or, - mathmlBuilder: ar, + htmlBuilder: oi, + mathmlBuilder: si, }), - it({ + rt({ type: 'op', names: [ '\\det', @@ -106139,10 +105039,10 @@ name: n, }; }, - htmlBuilder: or, - mathmlBuilder: ar, + htmlBuilder: oi, + mathmlBuilder: si, }), - it({ + rt({ type: 'op', names: [ '\\int', @@ -106163,7 +105063,7 @@ var t = e.parser, n = e.funcName; return ( - 1 === n.length && (n = Ar[n]), + 1 === n.length && (n = Ai[n]), { type: 'op', mode: t.mode, @@ -106174,30 +105074,30 @@ } ); }, - htmlBuilder: or, - mathmlBuilder: ar, + htmlBuilder: oi, + mathmlBuilder: si, }); - var cr = {}; - function lr(e, t) { - cr[e] = t; + var ci = {}; + function li(e, t) { + ci[e] = t; } - var gr = function(e, t) { + var gi = function(e, t) { var n, - r, i, + r, o, - a = !1; + s = !1; if ( ('supsub' === e.type ? ((n = e.sup), - (r = e.sub), - (i = Gt(e.base, 'operatorname')), - (a = !0)) - : (i = Gt(e, 'operatorname')), - i.body.length > 0) + (i = e.sub), + (r = Lt(e.base, 'operatorname')), + (s = !0)) + : (r = Lt(e, 'operatorname')), + r.body.length > 0) ) { for ( - var s = i.body.map(function(e) { + var a = r.body.map(function(e) { var t = e.text; return 'string' == typeof t ? { @@ -106207,7 +105107,7 @@ } : e; }), - A = dt(s, t.withFont('mathrm'), !0), + A = dt(a, t.withFont('mathrm'), !0), c = 0; c < A.length; c++ @@ -106220,32 +105120,32 @@ } o = Ke.makeSpan(['mop'], A, t); } else o = Ke.makeSpan(['mop'], [], t); - return a ? rr(o, n, r, t, t.style, 0, 0) : o; + return s ? ii(o, n, i, t, t.style, 0, 0) : o; }; - function ur(e, t, n) { + function ui(e, t, n) { for ( - var r = dt(e, t, !1), - i = t.sizeMultiplier / n.sizeMultiplier, + var i = dt(e, t, !1), + r = t.sizeMultiplier / n.sizeMultiplier, o = 0; - o < r.length; + o < i.length; o++ ) { - var a = r[o].classes.indexOf('sizing'); - a < 0 + var s = i[o].classes.indexOf('sizing'); + s < 0 ? Array.prototype.push.apply( - r[o].classes, + i[o].classes, t.sizingClasses(n) ) - : r[o].classes[a + 1] === + : i[o].classes[s + 1] === 'reset-size' + t.size && - (r[o].classes[a + 1] = + (i[o].classes[s + 1] = 'reset-size' + n.size), - (r[o].height *= i), - (r[o].depth *= i); + (i[o].height *= r), + (i[o].depth *= r); } - return Ke.makeFragment(r); + return Ke.makeFragment(i); } - it({ + rt({ type: 'operatorname', names: [ '\\operatorname@', @@ -106254,33 +105154,33 @@ props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'operatorname', mode: n.mode, - body: st(i), + body: at(r), alwaysHandleSupSub: - '\\operatornamewithlimits' === r, + '\\operatornamewithlimits' === i, limits: !1, parentIsSupSub: !1, }; }, - htmlBuilder: gr, + htmlBuilder: gi, mathmlBuilder: function(e, t) { for ( var n = Qt( e.body, t.withFont('mathrm') ), - r = !0, - i = 0; - i < n.length; - i++ + i = !0, + r = 0; + r < n.length; + r++ ) { - var o = n[i]; - if (o instanceof vt.SpaceNode); - else if (o instanceof vt.MathNode) + var o = n[r]; + if (o instanceof Mt.SpaceNode); + else if (o instanceof Mt.MathNode) switch (o.type) { case 'mi': case 'mn': @@ -106289,10 +105189,10 @@ case 'mtext': break; case 'mo': - var a = o.children[0]; + var s = o.children[0]; 1 === o.children.length && - a instanceof vt.TextNode - ? (a.text = a.text + s instanceof Mt.TextNode + ? (s.text = s.text .replace( /\u2212/, '-' @@ -106301,32 +105201,32 @@ /\u2217/, '*' )) - : (r = !1); + : (i = !1); break; default: - r = !1; + i = !1; } - else r = !1; + else i = !1; } - if (r) { - var s = n + if (i) { + var a = n .map(function(e) { return e.toText(); }) .join(''); - n = [new vt.TextNode(s)]; + n = [new Mt.TextNode(a)]; } - var A = new vt.MathNode('mi', n); + var A = new Mt.MathNode('mi', n); A.setAttribute('mathvariant', 'normal'); - var c = new vt.MathNode('mo', [ - Mt('⁡', 'text'), + var c = new Mt.MathNode('mo', [ + vt('⁡', 'text'), ]); return e.parentIsSupSub - ? new vt.MathNode('mrow', [A, c]) - : vt.newDocumentFragment([A, c]); + ? new Mt.MathNode('mrow', [A, c]) + : Mt.newDocumentFragment([A, c]); }, }), - lr( + li( '\\operatorname', '\\@ifstar\\operatornamewithlimits\\operatorname@' ), @@ -106342,20 +105242,20 @@ ); }, mathmlBuilder: function(e, t) { - return Ft(e.body, t, !0); + return xt(e.body, t, !0); }, }), - it({ + rt({ type: 'overline', names: ['\\overline'], props: {numArgs: 1}, handler: function(e, t) { var n = e.parser, - r = t[0]; + i = t[0]; return { type: 'overline', mode: n.mode, - body: r, + body: i, }; }, htmlBuilder: function(e, t) { @@ -106363,11 +105263,11 @@ e.body, t.havingCrampedStyle() ), - r = Ke.makeLineSpan( + i = Ke.makeLineSpan( 'overline-line', t ), - i = t.fontMetrics() + r = t.fontMetrics() .defaultRuleThickness, o = Ke.makeVList( { @@ -106377,10 +105277,10 @@ {type: 'elem', elem: n}, { type: 'kern', - size: 3 * i, + size: 3 * r, }, - {type: 'elem', elem: r}, - {type: 'kern', size: i}, + {type: 'elem', elem: i}, + {type: 'kern', size: r}, ], }, t @@ -106392,30 +105292,30 @@ ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mo', [ - new vt.TextNode('‾'), + var n = new Mt.MathNode('mo', [ + new Mt.TextNode('‾'), ]); n.setAttribute('stretchy', 'true'); - var r = new vt.MathNode('mover', [ - xt(e.body, t), + var i = new Mt.MathNode('mover', [ + Ft(e.body, t), n, ]); return ( - r.setAttribute('accent', 'true'), r + i.setAttribute('accent', 'true'), i ); }, }), - it({ + rt({ type: 'phantom', names: ['\\phantom'], props: {numArgs: 1, allowedInText: !0}, handler: function(e, t) { var n = e.parser, - r = t[0]; + i = t[0]; return { type: 'phantom', mode: n.mode, - body: st(r), + body: at(i), }; }, htmlBuilder: function(e, t) { @@ -106424,20 +105324,20 @@ }, mathmlBuilder: function(e, t) { var n = Qt(e.body, t); - return new vt.MathNode('mphantom', n); + return new Mt.MathNode('mphantom', n); }, }), - it({ + rt({ type: 'hphantom', names: ['\\hphantom'], props: {numArgs: 1, allowedInText: !0}, handler: function(e, t) { var n = e.parser, - r = t[0]; + i = t[0]; return { type: 'hphantom', mode: n.mode, - body: r, + body: i, }; }, htmlBuilder: function(e, t) { @@ -106451,12 +105351,12 @@ n.children) ) for ( - var r = 0; - r < n.children.length; - r++ + var i = 0; + i < n.children.length; + i++ ) - (n.children[r].height = 0), - (n.children[r].depth = 0); + (n.children[i].height = 0), + (n.children[i].depth = 0); return ( (n = Ke.makeVList( { @@ -106472,27 +105372,27 @@ ); }, mathmlBuilder: function(e, t) { - var n = Qt(st(e.body), t), - r = new vt.MathNode('mphantom', n), - i = new vt.MathNode('mpadded', [r]); + var n = Qt(at(e.body), t), + i = new Mt.MathNode('mphantom', n), + r = new Mt.MathNode('mpadded', [i]); return ( - i.setAttribute('height', '0px'), - i.setAttribute('depth', '0px'), - i + r.setAttribute('height', '0px'), + r.setAttribute('depth', '0px'), + r ); }, }), - it({ + rt({ type: 'vphantom', names: ['\\vphantom'], props: {numArgs: 1, allowedInText: !0}, handler: function(e, t) { var n = e.parser, - r = t[0]; + i = t[0]; return { type: 'vphantom', mode: n.mode, - body: r, + body: i, }; }, htmlBuilder: function(e, t) { @@ -106500,23 +105400,23 @@ ['inner'], [ft(e.body, t.withPhantom())] ), - r = Ke.makeSpan(['fix'], []); + i = Ke.makeSpan(['fix'], []); return Ke.makeSpan( ['mord', 'rlap'], - [n, r], + [n, i], t ); }, mathmlBuilder: function(e, t) { - var n = Qt(st(e.body), t), - r = new vt.MathNode('mphantom', n), - i = new vt.MathNode('mpadded', [r]); + var n = Qt(at(e.body), t), + i = new Mt.MathNode('mphantom', n), + r = new Mt.MathNode('mpadded', [i]); return ( - i.setAttribute('width', '0px'), i + r.setAttribute('width', '0px'), r ); }, }), - it({ + rt({ type: 'raisebox', names: ['\\raisebox'], props: { @@ -106526,22 +105426,22 @@ }, handler: function(e, t) { var n = e.parser, - r = Gt(t[0], 'size').value, - i = t[1]; + i = Lt(t[0], 'size').value, + r = t[1]; return { type: 'raisebox', mode: n.mode, - dy: r, - body: i, + dy: i, + body: r, }; }, htmlBuilder: function(e, t) { var n = ft(e.body, t), - r = O(e.dy, t); + i = O(e.dy, t); return Ke.makeVList( { positionType: 'shift', - positionData: -r, + positionData: -i, children: [ {type: 'elem', elem: n}, ], @@ -106550,14 +105450,14 @@ ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mpadded', [ - xt(e.body, t), + var n = new Mt.MathNode('mpadded', [ + Ft(e.body, t), ]), - r = e.dy.number + e.dy.unit; - return n.setAttribute('voffset', r), n; + i = e.dy.number + e.dy.unit; + return n.setAttribute('voffset', i), n; }, }), - it({ + rt({ type: 'rule', names: ['\\rule'], props: { @@ -106566,16 +105466,16 @@ argTypes: ['size', 'size', 'size'], }, handler: function(e, t, n) { - var r = e.parser, - i = n[0], - o = Gt(t[0], 'size'), - a = Gt(t[1], 'size'); + var i = e.parser, + r = n[0], + o = Lt(t[0], 'size'), + s = Lt(t[1], 'size'); return { type: 'rule', - mode: r.mode, - shift: i && Gt(i, 'size').value, + mode: i.mode, + shift: r && Lt(r, 'size').value, width: o.value, - height: a.value, + height: s.value, }; }, htmlBuilder: function(e, t) { @@ -106584,50 +105484,50 @@ [], t ), - r = O(e.width, t), - i = O(e.height, t), + i = O(e.width, t), + r = O(e.height, t), o = e.shift ? O(e.shift, t) : 0; return ( - (n.style.borderRightWidth = k(r)), - (n.style.borderTopWidth = k(i)), - (n.style.bottom = k(o)), - (n.width = r), - (n.height = i + o), + (n.style.borderRightWidth = G(i)), + (n.style.borderTopWidth = G(r)), + (n.style.bottom = G(o)), + (n.width = i), + (n.height = r + o), (n.depth = -o), (n.maxFontSize = - 1.125 * i * t.sizeMultiplier), + 1.125 * r * t.sizeMultiplier), n ); }, mathmlBuilder: function(e, t) { var n = O(e.width, t), - r = O(e.height, t), - i = e.shift ? O(e.shift, t) : 0, + i = O(e.height, t), + r = e.shift ? O(e.shift, t) : 0, o = (t.color && t.getColor()) || 'black', - a = new vt.MathNode('mspace'); - a.setAttribute('mathbackground', o), - a.setAttribute('width', k(n)), - a.setAttribute('height', k(r)); - var s = new vt.MathNode('mpadded', [a]); + s = new Mt.MathNode('mspace'); + s.setAttribute('mathbackground', o), + s.setAttribute('width', G(n)), + s.setAttribute('height', G(i)); + var a = new Mt.MathNode('mpadded', [s]); return ( - i >= 0 - ? s.setAttribute('height', k(i)) - : (s.setAttribute( + r >= 0 + ? a.setAttribute('height', G(r)) + : (a.setAttribute( 'height', - k(i) + G(r) ), - s.setAttribute( + a.setAttribute( 'depth', - k(-i) + G(-r) )), - s.setAttribute('voffset', k(i)), - s + a.setAttribute('voffset', G(r)), + a ); }, }); - var dr = [ + var di = [ '\\tiny', '\\sixptsize', '\\scriptsize', @@ -106640,40 +105540,40 @@ '\\huge', '\\Huge', ]; - it({ + rt({ type: 'sizing', - names: dr, + names: di, props: {numArgs: 0, allowedInText: !0}, handler: function(e, t) { var n = e.breakOnTokenText, - r = e.funcName, - i = e.parser, - o = i.parseExpression(!1, n); + i = e.funcName, + r = e.parser, + o = r.parseExpression(!1, n); return { type: 'sizing', - mode: i.mode, - size: dr.indexOf(r) + 1, + mode: r.mode, + size: di.indexOf(i) + 1, body: o, }; }, htmlBuilder: function(e, t) { var n = t.havingSize(e.size); - return ur(e.body, n, t); + return ui(e.body, n, t); }, mathmlBuilder: function(e, t) { var n = t.havingSize(e.size), - r = Qt(e.body, n), - i = new vt.MathNode('mstyle', r); + i = Qt(e.body, n), + r = new Mt.MathNode('mstyle', i); return ( - i.setAttribute( + r.setAttribute( 'mathsize', - k(n.sizeMultiplier) + G(n.sizeMultiplier) ), - i + r ); }, }), - it({ + rt({ type: 'smash', names: ['\\smash'], props: { @@ -106682,34 +105582,34 @@ allowedInText: !0, }, handler: function(e, t, n) { - var r = e.parser, - i = !1, + var i = e.parser, + r = !1, o = !1, - a = n[0] && Gt(n[0], 'ordgroup'); - if (a) + s = n[0] && Lt(n[0], 'ordgroup'); + if (s) for ( - var s = '', A = 0; - A < a.body.length; + var a = '', A = 0; + A < s.body.length; ++A ) if ( - 't' === (s = a.body[A].text) + 't' === (a = s.body[A].text) ) - i = !0; + r = !0; else { - if ('b' !== s) { - (i = !1), (o = !1); + if ('b' !== a) { + (r = !1), (o = !1); break; } o = !0; } - else (i = !0), (o = !0); + else (r = !0), (o = !0); var c = t[0]; return { type: 'smash', - mode: r.mode, + mode: i.mode, body: c, - smashHeight: i, + smashHeight: r, smashDepth: o, }; }, @@ -106725,21 +105625,21 @@ ((n.height = 0), n.children) ) for ( - var r = 0; - r < n.children.length; - r++ + var i = 0; + i < n.children.length; + i++ ) - n.children[r].height = 0; + n.children[i].height = 0; if ( e.smashDepth && ((n.depth = 0), n.children) ) for ( - var i = 0; - i < n.children.length; - i++ + var r = 0; + r < n.children.length; + r++ ) - n.children[i].depth = 0; + n.children[r].depth = 0; var o = Ke.makeVList( { positionType: 'firstBaseline', @@ -106752,8 +105652,8 @@ return Ke.makeSpan(['mord'], [o], t); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mpadded', [ - xt(e.body, t), + var n = new Mt.MathNode('mpadded', [ + Ft(e.body, t), ]); return ( e.smashHeight && @@ -106764,19 +105664,19 @@ ); }, }), - it({ + rt({ type: 'sqrt', names: ['\\sqrt'], props: {numArgs: 1, numOptionalArgs: 1}, handler: function(e, t, n) { - var r = e.parser, - i = n[0], + var i = e.parser, + r = n[0], o = t[0]; return { type: 'sqrt', - mode: r.mode, + mode: i.mode, body: o, - index: i, + index: r, }; }, htmlBuilder: function(e, t) { @@ -106787,24 +105687,24 @@ 0 === n.height && (n.height = t.fontMetrics().xHeight), (n = Ke.wrapFragment(n, t)); - var r = t.fontMetrics() + var i = t.fontMetrics() .defaultRuleThickness, - i = r; + r = i; t.style.id < m.TEXT.id && - (i = t.fontMetrics().xHeight); - var o = r + i / 4, - a = n.height + n.depth + o + r, - s = bn.sqrtImage(a, t), - A = s.span, - c = s.ruleWidth, - l = s.advanceWidth, + (r = t.fontMetrics().xHeight); + var o = i + r / 4, + s = n.height + n.depth + o + i, + a = bn.sqrtImage(s, t), + A = a.span, + c = a.ruleWidth, + l = a.advanceWidth, g = A.height - c; g > n.height + n.depth + o && (o = (o + g - n.height - n.depth) / 2); var u = A.height - n.height - o - c; - n.style.paddingLeft = k(l); + n.style.paddingLeft = G(l); var d = Ke.makeVList( { positionType: 'firstBaseline', @@ -106860,24 +105760,24 @@ }, mathmlBuilder: function(e, t) { var n = e.body, - r = e.index; - return r - ? new vt.MathNode('mroot', [ - xt(n, t), - xt(r, t), + i = e.index; + return i + ? new Mt.MathNode('mroot', [ + Ft(n, t), + Ft(i, t), ]) - : new vt.MathNode('msqrt', [ - xt(n, t), + : new Mt.MathNode('msqrt', [ + Ft(n, t), ]); }, }); - var hr = { + var hi = { display: m.DISPLAY, text: m.TEXT, script: m.SCRIPT, scriptscript: m.SCRIPTSCRIPT, }; - it({ + rt({ type: 'styling', names: [ '\\displaystyle', @@ -106892,84 +105792,84 @@ }, handler: function(e, t) { var n = e.breakOnTokenText, - r = e.funcName, - i = e.parser, - o = i.parseExpression(!0, n), - a = r.slice(1, r.length - 5); + i = e.funcName, + r = e.parser, + o = r.parseExpression(!0, n), + s = i.slice(1, i.length - 5); return { type: 'styling', - mode: i.mode, - style: a, + mode: r.mode, + style: s, body: o, }; }, htmlBuilder: function(e, t) { - var n = hr[e.style], - r = t.havingStyle(n).withFont(''); - return ur(e.body, r, t); + var n = hi[e.style], + i = t.havingStyle(n).withFont(''); + return ui(e.body, i, t); }, mathmlBuilder: function(e, t) { - var n = hr[e.style], - r = t.havingStyle(n), - i = Qt(e.body, r), - o = new vt.MathNode('mstyle', i), - a = { + var n = hi[e.style], + i = t.havingStyle(n), + r = Qt(e.body, i), + o = new Mt.MathNode('mstyle', r), + s = { display: ['0', 'true'], text: ['0', 'false'], script: ['1', 'false'], scriptscript: ['2', 'false'], }[e.style]; return ( - o.setAttribute('scriptlevel', a[0]), - o.setAttribute('displaystyle', a[1]), + o.setAttribute('scriptlevel', s[0]), + o.setAttribute('displaystyle', s[1]), o ); }, }); - var Cr = function(e, t) { + var Ci = function(e, t) { var n = e.base; return n ? 'op' === n.type ? n.limits && (t.style.size === m.DISPLAY.size || n.alwaysHandleSupSub) - ? or + ? oi : null : 'operatorname' === n.type ? n.alwaysHandleSupSub && (t.style.size === m.DISPLAY.size || n.limits) - ? gr + ? gi : null : 'accent' === n.type ? A.isCharacterBox(n.base) - ? zt + ? jt : null : 'horizBrace' === n.type && !e.sub === n.isOver - ? er + ? ei : null : null; }; ot({ type: 'supsub', htmlBuilder: function(e, t) { - var n = Cr(e, t); + var n = Ci(e, t); if (n) return n(e, t); - var r, - i, + var i, + r, o, - a = e.base, - s = e.sup, + s = e.base, + a = e.sup, c = e.sub, - l = ft(a, t), + l = ft(s, t), g = t.fontMetrics(), u = 0, d = 0, - h = a && A.isCharacterBox(a); - if (s) { + h = s && A.isCharacterBox(s); + if (a) { var C = t.havingStyle(t.style.sup()); - (r = ft(s, C, t)), + (i = ft(a, C, t)), h || (u = l.height - @@ -106979,7 +105879,7 @@ } if (c) { var I = t.havingStyle(t.style.sub()); - (i = ft(c, I, t)), + (r = ft(c, I, t)), h || (d = l.depth + @@ -106995,9 +105895,9 @@ : g.sup2; var p, f = t.sizeMultiplier, - E = k(0.5 / g.ptPerEm / f), + E = G(0.5 / g.ptPerEm / f), y = null; - if (i) { + if (r) { var B = e.base && 'op' === e.base.type && @@ -107005,33 +105905,33 @@ ('\\oiint' === e.base.name || '\\oiiint' === e.base.name); (l instanceof V || B) && - (y = k(-l.italic)); + (y = G(-l.italic)); } - if (r && i) { + if (i && r) { (u = Math.max( u, o, - r.depth + 0.25 * g.xHeight + i.depth + 0.25 * g.xHeight )), (d = Math.max(d, g.sub2)); var w = 4 * g.defaultRuleThickness; - if (u - r.depth - (i.height - d) < w) { - d = w - (u - r.depth) + i.height; + if (u - i.depth - (r.height - d) < w) { + d = w - (u - i.depth) + r.height; var b = - 0.8 * g.xHeight - (u - r.depth); + 0.8 * g.xHeight - (u - i.depth); b > 0 && ((u += b), (d -= b)); } - var v = [ + var M = [ { type: 'elem', - elem: i, + elem: r, shift: d, marginRight: E, marginLeft: y, }, { type: 'elem', - elem: r, + elem: i, shift: -u, marginRight: E, }, @@ -107039,20 +105939,20 @@ p = Ke.makeVList( { positionType: 'individualShift', - children: v, + children: M, }, t ); - } else if (i) { + } else if (r) { d = Math.max( d, g.sub1, - i.height - 0.8 * g.xHeight + r.height - 0.8 * g.xHeight ); - var M = [ + var v = [ { type: 'elem', - elem: i, + elem: r, marginLeft: y, marginRight: E, }, @@ -107061,19 +105961,19 @@ { positionType: 'shift', positionData: d, - children: M, + children: v, }, t ); } else { - if (!r) + if (!i) throw new Error( 'supsub must have either sup or sub.' ); (u = Math.max( u, o, - r.depth + 0.25 * g.xHeight + i.depth + 0.25 * g.xHeight )), (p = Ke.makeVList( { @@ -107082,7 +105982,7 @@ children: [ { type: 'elem', - elem: r, + elem: i, marginRight: E, }, ], @@ -107099,58 +105999,58 @@ }, mathmlBuilder: function(e, t) { var n, - r = !1; + i = !1; e.base && 'horizBrace' === e.base.type && !!e.sup === e.base.isOver && - ((r = !0), (n = e.base.isOver)), + ((i = !0), (n = e.base.isOver)), !e.base || ('op' !== e.base.type && 'operatorname' !== e.base.type) || (e.base.parentIsSupSub = !0); - var i, - o = [xt(e.base, t)]; + var r, + o = [Ft(e.base, t)]; if ( - (e.sub && o.push(xt(e.sub, t)), - e.sup && o.push(xt(e.sup, t)), - r) + (e.sub && o.push(Ft(e.sub, t)), + e.sup && o.push(Ft(e.sup, t)), + i) ) - i = n ? 'mover' : 'munder'; + r = n ? 'mover' : 'munder'; else if (e.sub) if (e.sup) { - var a = e.base; - i = - (a && - 'op' === a.type && - a.limits && - t.style === m.DISPLAY) || - (a && - 'operatorname' === a.type && - a.alwaysHandleSupSub && - (t.style === m.DISPLAY || - a.limits)) - ? 'munderover' - : 'msubsup'; - } else { var s = e.base; - i = + r = (s && 'op' === s.type && s.limits && - (t.style === m.DISPLAY || - s.alwaysHandleSupSub)) || + t.style === m.DISPLAY) || (s && 'operatorname' === s.type && s.alwaysHandleSupSub && - (s.limits || + (t.style === m.DISPLAY || + s.limits)) + ? 'munderover' + : 'msubsup'; + } else { + var a = e.base; + r = + (a && + 'op' === a.type && + a.limits && + (t.style === m.DISPLAY || + a.alwaysHandleSupSub)) || + (a && + 'operatorname' === a.type && + a.alwaysHandleSupSub && + (a.limits || t.style === m.DISPLAY)) ? 'munder' : 'msub'; } else { var A = e.base; - i = + r = (A && 'op' === A.type && A.limits && @@ -107164,7 +106064,7 @@ ? 'mover' : 'msup'; } - return new vt.MathNode(i, o); + return new Mt.MathNode(r, o); }, }), ot({ @@ -107175,15 +106075,15 @@ ]); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mo', [ - Mt(e.text, e.mode), + var n = new Mt.MathNode('mo', [ + vt(e.text, e.mode), ]); if ('bin' === e.family) { - var r = St(e, t); - 'bold-italic' === r && + var i = St(e, t); + 'bold-italic' === i && n.setAttribute( 'mathvariant', - r + i ); } else 'punct' === e.family @@ -107200,7 +106100,7 @@ return n; }, }); - var Ir = { + var Ii = { mi: 'italic', mn: 'normal', mtext: 'normal', @@ -107211,13 +106111,13 @@ return Ke.makeOrd(e, t, 'mathord'); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mi', [ - Mt(e.text, e.mode, t), + var n = new Mt.MathNode('mi', [ + vt(e.text, e.mode, t), ]), - r = St(e, t) || 'italic'; + i = St(e, t) || 'italic'; return ( - r !== Ir[n.type] && - n.setAttribute('mathvariant', r), + i !== Ii[n.type] && + n.setAttribute('mathvariant', i), n ); }, @@ -107229,35 +106129,35 @@ }, mathmlBuilder: function(e, t) { var n, - r = Mt(e.text, e.mode, t), - i = St(e, t) || 'normal'; + i = vt(e.text, e.mode, t), + r = St(e, t) || 'normal'; return ( (n = 'text' === e.mode - ? new vt.MathNode('mtext', [ - r, + ? new Mt.MathNode('mtext', [ + i, ]) : /[0-9]/.test(e.text) - ? new vt.MathNode('mn', [r]) + ? new Mt.MathNode('mn', [i]) : '\\prime' === e.text - ? new vt.MathNode('mo', [r]) - : new vt.MathNode('mi', [ - r, + ? new Mt.MathNode('mo', [i]) + : new Mt.MathNode('mi', [ + i, ])), - i !== Ir[n.type] && + r !== Ii[n.type] && n.setAttribute( 'mathvariant', - i + r ), n ); }, }); - var pr = { + var pi = { '\\nobreak': 'nobreak', '\\allowbreak': 'allowbreak', }, - mr = { + mi = { ' ': {}, '\\ ': {}, '~': {className: 'nobreak'}, @@ -107267,11 +106167,11 @@ ot({ type: 'spacing', htmlBuilder: function(e, t) { - if (mr.hasOwnProperty(e.text)) { - var n = mr[e.text].className || ''; + if (mi.hasOwnProperty(e.text)) { + var n = mi[e.text].className || ''; if ('text' === e.mode) { - var i = Ke.makeOrd(e, t, 'textord'); - return i.classes.push(n), i; + var r = Ke.makeOrd(e, t, 'textord'); + return r.classes.push(n), r; } return Ke.makeSpan( ['mspace', n], @@ -107279,79 +106179,79 @@ t ); } - if (pr.hasOwnProperty(e.text)) + if (pi.hasOwnProperty(e.text)) return Ke.makeSpan( - ['mspace', pr[e.text]], + ['mspace', pi[e.text]], [], t ); - throw new r( + throw new i( 'Unknown type of space "' + e.text + '"' ); }, mathmlBuilder: function(e, t) { - if (!mr.hasOwnProperty(e.text)) { - if (pr.hasOwnProperty(e.text)) - return new vt.MathNode('mspace'); - throw new r( + if (!mi.hasOwnProperty(e.text)) { + if (pi.hasOwnProperty(e.text)) + return new Mt.MathNode('mspace'); + throw new i( 'Unknown type of space "' + e.text + '"' ); } - return new vt.MathNode('mtext', [ - new vt.TextNode(' '), + return new Mt.MathNode('mtext', [ + new Mt.TextNode(' '), ]); }, }); - var fr = function() { - var e = new vt.MathNode('mtd', []); + var fi = function() { + var e = new Mt.MathNode('mtd', []); return e.setAttribute('width', '50%'), e; }; ot({ type: 'tag', mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mtable', [ - new vt.MathNode('mtr', [ - fr(), - new vt.MathNode('mtd', [ - Ft(e.body, t), + var n = new Mt.MathNode('mtable', [ + new Mt.MathNode('mtr', [ + fi(), + new Mt.MathNode('mtd', [ + xt(e.body, t), ]), - fr(), - new vt.MathNode('mtd', [ - Ft(e.tag, t), + fi(), + new Mt.MathNode('mtd', [ + xt(e.tag, t), ]), ]), ]); return n.setAttribute('width', '100%'), n; }, }); - var Er = { + var Ei = { '\\text': void 0, '\\textrm': 'textrm', '\\textsf': 'textsf', '\\texttt': 'texttt', '\\textnormal': 'textrm', }, - yr = { + yi = { '\\textbf': 'textbf', '\\textmd': 'textmd', }, - Br = { + Bi = { '\\textit': 'textit', '\\textup': 'textup', }, - wr = function(e, t) { + wi = function(e, t) { var n = e.font; return n - ? Er[n] - ? t.withTextFontFamily(Er[n]) - : yr[n] - ? t.withTextFontWeight(yr[n]) - : t.withTextFontShape(Br[n]) + ? Ei[n] + ? t.withTextFontFamily(Ei[n]) + : yi[n] + ? t.withTextFontWeight(yi[n]) + : t.withTextFontShape(Bi[n]) : t; }; - it({ + rt({ type: 'text', names: [ '\\text', @@ -107372,26 +106272,26 @@ }, handler: function(e, t) { var n = e.parser, - r = e.funcName, - i = t[0]; + i = e.funcName, + r = t[0]; return { type: 'text', mode: n.mode, - body: st(i), - font: r, + body: at(r), + font: i, }; }, htmlBuilder: function(e, t) { - var n = wr(e, t), - r = dt(e.body, n, !0); - return Ke.makeSpan(['mord', 'text'], r, n); + var n = wi(e, t), + i = dt(e.body, n, !0); + return Ke.makeSpan(['mord', 'text'], i, n); }, mathmlBuilder: function(e, t) { - var n = wr(e, t); - return Ft(e.body, n); + var n = wi(e, t); + return xt(e.body, n); }, }), - it({ + rt({ type: 'underline', names: ['\\underline'], props: {numArgs: 1, allowedInText: !0}, @@ -107404,22 +106304,22 @@ }, htmlBuilder: function(e, t) { var n = ft(e.body, t), - r = Ke.makeLineSpan( + i = Ke.makeLineSpan( 'underline-line', t ), - i = t.fontMetrics() + r = t.fontMetrics() .defaultRuleThickness, o = Ke.makeVList( { positionType: 'top', positionData: n.height, children: [ - {type: 'kern', size: i}, - {type: 'elem', elem: r}, + {type: 'kern', size: r}, + {type: 'elem', elem: i}, { type: 'kern', - size: 3 * i, + size: 3 * r, }, {type: 'elem', elem: n}, ], @@ -107433,24 +106333,24 @@ ); }, mathmlBuilder: function(e, t) { - var n = new vt.MathNode('mo', [ - new vt.TextNode('‾'), + var n = new Mt.MathNode('mo', [ + new Mt.TextNode('‾'), ]); n.setAttribute('stretchy', 'true'); - var r = new vt.MathNode('munder', [ - xt(e.body, t), + var i = new Mt.MathNode('munder', [ + Ft(e.body, t), n, ]); return ( - r.setAttribute( + i.setAttribute( 'accentunder', 'true' ), - r + i ); }, }), - it({ + rt({ type: 'vcenter', names: ['\\vcenter'], props: { @@ -107467,14 +106367,14 @@ }, htmlBuilder: function(e, t) { var n = ft(e.body, t), - r = t.fontMetrics().axisHeight, - i = + i = t.fontMetrics().axisHeight, + r = 0.5 * - (n.height - r - (n.depth + r)); + (n.height - i - (n.depth + i)); return Ke.makeVList( { positionType: 'shift', - positionData: i, + positionData: r, children: [ {type: 'elem', elem: n}, ], @@ -107483,74 +106383,74 @@ ); }, mathmlBuilder: function(e, t) { - return new vt.MathNode( + return new Mt.MathNode( 'mpadded', - [xt(e.body, t)], + [Ft(e.body, t)], ['vcenter'] ); }, }), - it({ + rt({ type: 'verb', names: ['\\verb'], props: {numArgs: 0, allowedInText: !0}, handler: function(e, t, n) { - throw new r( + throw new i( '\\verb ended by end of line instead of matching delimiter' ); }, htmlBuilder: function(e, t) { for ( - var n = br(e), - r = [], - i = t.havingStyle( + var n = bi(e), + i = [], + r = t.havingStyle( t.style.text() ), o = 0; o < n.length; o++ ) { - var a = n[o]; - '~' === a && - (a = '\\textasciitilde'), - r.push( + var s = n[o]; + '~' === s && + (s = '\\textasciitilde'), + i.push( Ke.makeSymbol( - a, + s, 'Typewriter-Regular', e.mode, - i, + r, ['mord', 'texttt'] ) ); } return Ke.makeSpan( ['mord', 'text'].concat( - i.sizingClasses(t) + r.sizingClasses(t) ), - Ke.tryCombineChars(r), - i + Ke.tryCombineChars(i), + r ); }, mathmlBuilder: function(e, t) { - var n = new vt.TextNode(br(e)), - r = new vt.MathNode('mtext', [n]); + var n = new Mt.TextNode(bi(e)), + i = new Mt.MathNode('mtext', [n]); return ( - r.setAttribute( + i.setAttribute( 'mathvariant', 'monospace' ), - r + i ); }, }); - var br = function(e) { + var bi = function(e) { return e.body.replace( / /g, e.star ? '␣' : ' ' ); }, - vr = tt, - Mr = (function() { + Mi = tt, + vi = (function() { function e(e, t, n) { (this.lexer = void 0), (this.start = void 0), @@ -107577,7 +106477,7 @@ e ); })(), - Nr = (function() { + Ni = (function() { function e(e, t) { (this.text = void 0), (this.loc = void 0), @@ -107588,13 +106488,13 @@ } return ( (e.prototype.range = function(t, n) { - return new e(n, Mr.range(this, t)); + return new e(n, vi.range(this, t)); }), e ); })(), - Sr = new RegExp('[̀-ͯ]+$'), - Qr = (function() { + Si = new RegExp('[̀-ͯ]+$'), + Qi = (function() { function e(e, t) { (this.input = void 0), (this.settings = void 0), @@ -107620,26 +106520,26 @@ var e = this.input, t = this.tokenRegex.lastIndex; if (t === e.length) - return new Nr( + return new Ni( 'EOF', - new Mr(this, t, t) + new vi(this, t, t) ); var n = this.tokenRegex.exec(e); if (null === n || n.index !== t) - throw new r( + throw new i( "Unexpected character: '" + e[t] + "'", - new Nr( + new Ni( e[t], - new Mr(this, t, t + 1) + new vi(this, t, t + 1) ) ); - var i = + var r = n[6] || n[3] || (n[2] ? '\\ ' : ' '); - if (14 === this.catcodes[i]) { + if (14 === this.catcodes[r]) { var o = e.indexOf( '\n', this.tokenRegex.lastIndex @@ -107657,9 +106557,9 @@ this.lex() ); } - return new Nr( - i, - new Mr( + return new Ni( + r, + new vi( this, t, this.tokenRegex.lastIndex @@ -107669,7 +106569,7 @@ e ); })(), - Fr = (function() { + xi = (function() { function e(e, t) { void 0 === e && (e = {}), void 0 === t && (t = {}), @@ -107687,7 +106587,7 @@ }), (t.endGroup = function() { if (0 === this.undefStack.length) - throw new r( + throw new i( 'Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug' ); var e = this.undefStack.pop(); @@ -107720,11 +106620,11 @@ (t.set = function(e, t, n) { if ((void 0 === n && (n = !1), n)) { for ( - var r = 0; - r < this.undefStack.length; - r++ + var i = 0; + i < this.undefStack.length; + i++ ) - delete this.undefStack[r][ + delete this.undefStack[i][ e ]; this.undefStack.length > 0 && @@ -107733,20 +106633,20 @@ 1 ][e] = t); } else { - var i = this.undefStack[ + var r = this.undefStack[ this.undefStack.length - 1 ]; - i && - !i.hasOwnProperty(e) && - (i[e] = this.current[e]); + r && + !r.hasOwnProperty(e) && + (r[e] = this.current[e]); } this.current[e] = t; }), e ); })(), - xr = cr; - lr('\\noexpand', function(e) { + Fi = ci; + li('\\noexpand', function(e) { var t = e.popToken(); return ( e.isExpandable(t.text) && @@ -107755,26 +106655,26 @@ {tokens: [t], numArgs: 0} ); }), - lr('\\expandafter', function(e) { + li('\\expandafter', function(e) { var t = e.popToken(); return ( e.expandOnce(!0), {tokens: [t], numArgs: 0} ); }), - lr('\\@firstoftwo', function(e) { + li('\\@firstoftwo', function(e) { return { tokens: e.consumeArgs(2)[0], numArgs: 0, }; }), - lr('\\@secondoftwo', function(e) { + li('\\@secondoftwo', function(e) { return { tokens: e.consumeArgs(2)[1], numArgs: 0, }; }), - lr('\\@ifnextchar', function(e) { + li('\\@ifnextchar', function(e) { var t = e.consumeArgs(3); e.consumeSpaces(); var n = e.future(); @@ -107783,17 +106683,17 @@ ? {tokens: t[1], numArgs: 0} : {tokens: t[2], numArgs: 0}; }), - lr( + li( '\\@ifstar', '\\@ifnextchar *{\\@firstoftwo{#1}}' ), - lr('\\TextOrMath', function(e) { + li('\\TextOrMath', function(e) { var t = e.consumeArgs(2); return 'text' === e.mode ? {tokens: t[0], numArgs: 0} : {tokens: t[1], numArgs: 0}; }); - var Dr = { + var Di = { 0: 0, 1: 1, 2: 2, @@ -107817,27 +106717,27 @@ f: 15, F: 15, }; - lr('\\char', function(e) { + li('\\char', function(e) { var t, n = e.popToken(), - i = ''; + r = ''; if ("'" === n.text) (t = 8), (n = e.popToken()); else if ('"' === n.text) (t = 16), (n = e.popToken()); else if ('`' === n.text) if ('\\' === (n = e.popToken()).text[0]) - i = n.text.charCodeAt(1); + r = n.text.charCodeAt(1); else { if ('EOF' === n.text) - throw new r( + throw new i( '\\char` missing argument' ); - i = n.text.charCodeAt(0); + r = n.text.charCodeAt(0); } else t = 10; if (t) { - if (null == (i = Dr[n.text]) || i >= t) - throw new r( + if (null == (r = Di[n.text]) || r >= t) + throw new i( 'Invalid base-' + t + ' digit ' + @@ -107845,42 +106745,42 @@ ); for ( var o; - null != (o = Dr[e.future().text]) && + null != (o = Di[e.future().text]) && o < t; ) - (i *= t), (i += o), e.popToken(); + (r *= t), (r += o), e.popToken(); } - return '\\@char{' + i + '}'; + return '\\@char{' + r + '}'; }); - var Tr = function(e, t, n) { - var i = e.consumeArg().tokens; - if (1 !== i.length) - throw new r( + var Ti = function(e, t, n) { + var r = e.consumeArg().tokens; + if (1 !== r.length) + throw new i( "\\newcommand's first argument must be a macro name" ); - var o = i[0].text, - a = e.isDefined(o); - if (a && !t) - throw new r( + var o = r[0].text, + s = e.isDefined(o); + if (s && !t) + throw new i( '\\newcommand{' + o + '} attempting to redefine ' + o + '; use \\renewcommand' ); - if (!a && !n) - throw new r( + if (!s && !n) + throw new i( '\\renewcommand{' + o + '} when command ' + o + ' does not yet exist; use \\newcommand' ); - var s = 0; + var a = 0; if ( - 1 === (i = e.consumeArg().tokens).length && - '[' === i[0].text + 1 === (r = e.consumeArg().tokens).length && + '[' === r[0].text ) { for ( var A = '', c = e.expandNextToken(); @@ -107890,26 +106790,26 @@ (A += c.text), (c = e.expandNextToken()); if (!A.match(/^\s*[0-9]+\s*$/)) - throw new r( + throw new i( 'Invalid number of arguments: ' + A ); - (s = parseInt(A)), - (i = e.consumeArg().tokens); + (a = parseInt(A)), + (r = e.consumeArg().tokens); } return ( - e.macros.set(o, {tokens: i, numArgs: s}), '' + e.macros.set(o, {tokens: r, numArgs: a}), '' ); }; - lr('\\newcommand', function(e) { - return Tr(e, !1, !0); + li('\\newcommand', function(e) { + return Ti(e, !1, !0); }), - lr('\\renewcommand', function(e) { - return Tr(e, !0, !1); + li('\\renewcommand', function(e) { + return Ti(e, !0, !1); }), - lr('\\providecommand', function(e) { - return Tr(e, !0, !0); + li('\\providecommand', function(e) { + return Ti(e, !0, !0); }), - lr('\\message', function(e) { + li('\\message', function(e) { var t = e.consumeArgs(1)[0]; return ( console.log( @@ -107923,7 +106823,7 @@ '' ); }), - lr('\\errmessage', function(e) { + li('\\errmessage', function(e) { var t = e.consumeArgs(1)[0]; return ( console.error( @@ -107937,164 +106837,164 @@ '' ); }), - lr('\\show', function(e) { + li('\\show', function(e) { var t = e.popToken(), n = t.text; return ( console.log( t, e.macros.get(n), - vr[n], + Mi[n], ne.math[n], ne.text[n] ), '' ); }), - lr('\\bgroup', '{'), - lr('\\egroup', '}'), - lr('~', '\\nobreakspace'), - lr('\\lq', '`'), - lr('\\rq', "'"), - lr('\\aa', '\\r a'), - lr('\\AA', '\\r A'), - lr( + li('\\bgroup', '{'), + li('\\egroup', '}'), + li('~', '\\nobreakspace'), + li('\\lq', '`'), + li('\\rq', "'"), + li('\\aa', '\\r a'), + li('\\AA', '\\r A'), + li( '\\textcopyright', '\\html@mathml{\\textcircled{c}}{\\char`©}' ), - lr( + li( '\\copyright', '\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}' ), - lr( + li( '\\textregistered', '\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}' ), - lr('ℬ', '\\mathscr{B}'), - lr('ℰ', '\\mathscr{E}'), - lr('ℱ', '\\mathscr{F}'), - lr('ℋ', '\\mathscr{H}'), - lr('ℐ', '\\mathscr{I}'), - lr('ℒ', '\\mathscr{L}'), - lr('ℳ', '\\mathscr{M}'), - lr('ℛ', '\\mathscr{R}'), - lr('ℭ', '\\mathfrak{C}'), - lr('ℌ', '\\mathfrak{H}'), - lr('ℨ', '\\mathfrak{Z}'), - lr('\\Bbbk', '\\Bbb{k}'), - lr('·', '\\cdotp'), - lr('\\llap', '\\mathllap{\\textrm{#1}}'), - lr('\\rlap', '\\mathrlap{\\textrm{#1}}'), - lr('\\clap', '\\mathclap{\\textrm{#1}}'), - lr('\\mathstrut', '\\vphantom{(}'), - lr('\\underbar', '\\underline{\\text{#1}}'), - lr( + li('ℬ', '\\mathscr{B}'), + li('ℰ', '\\mathscr{E}'), + li('ℱ', '\\mathscr{F}'), + li('ℋ', '\\mathscr{H}'), + li('ℐ', '\\mathscr{I}'), + li('ℒ', '\\mathscr{L}'), + li('ℳ', '\\mathscr{M}'), + li('ℛ', '\\mathscr{R}'), + li('ℭ', '\\mathfrak{C}'), + li('ℌ', '\\mathfrak{H}'), + li('ℨ', '\\mathfrak{Z}'), + li('\\Bbbk', '\\Bbb{k}'), + li('·', '\\cdotp'), + li('\\llap', '\\mathllap{\\textrm{#1}}'), + li('\\rlap', '\\mathrlap{\\textrm{#1}}'), + li('\\clap', '\\mathclap{\\textrm{#1}}'), + li('\\mathstrut', '\\vphantom{(}'), + li('\\underbar', '\\underline{\\text{#1}}'), + li( '\\not', '\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}' ), - lr( + li( '\\neq', '\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}' ), - lr('\\ne', '\\neq'), - lr('≠', '\\neq'), - lr( + li('\\ne', '\\neq'), + li('≠', '\\neq'), + li( '\\notin', '\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}' ), - lr('∉', '\\notin'), - lr( + li('∉', '\\notin'), + li( '≘', '\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}' ), - lr( + li( '≙', '\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}' ), - lr( + li( '≚', '\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}' ), - lr( + li( '≛', '\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}' ), - lr( + li( '≝', '\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}' ), - lr( + li( '≞', '\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}' ), - lr( + li( '≟', '\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}' ), - lr('⟂', '\\perp'), - lr('‼', '\\mathclose{!\\mkern-0.8mu!}'), - lr('∌', '\\notni'), - lr('⌜', '\\ulcorner'), - lr('⌝', '\\urcorner'), - lr('⌞', '\\llcorner'), - lr('⌟', '\\lrcorner'), - lr('©', '\\copyright'), - lr('®', '\\textregistered'), - lr('️', '\\textregistered'), - lr( + li('⟂', '\\perp'), + li('‼', '\\mathclose{!\\mkern-0.8mu!}'), + li('∌', '\\notni'), + li('⌜', '\\ulcorner'), + li('⌝', '\\urcorner'), + li('⌞', '\\llcorner'), + li('⌟', '\\lrcorner'), + li('©', '\\copyright'), + li('®', '\\textregistered'), + li('️', '\\textregistered'), + li( '\\ulcorner', '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}' ), - lr( + li( '\\urcorner', '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}' ), - lr( + li( '\\llcorner', '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}' ), - lr( + li( '\\lrcorner', '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}' ), - lr( + li( '\\vdots', '\\mathord{\\varvdots\\rule{0pt}{15pt}}' ), - lr('⋮', '\\vdots'), - lr('\\varGamma', '\\mathit{\\Gamma}'), - lr('\\varDelta', '\\mathit{\\Delta}'), - lr('\\varTheta', '\\mathit{\\Theta}'), - lr('\\varLambda', '\\mathit{\\Lambda}'), - lr('\\varXi', '\\mathit{\\Xi}'), - lr('\\varPi', '\\mathit{\\Pi}'), - lr('\\varSigma', '\\mathit{\\Sigma}'), - lr('\\varUpsilon', '\\mathit{\\Upsilon}'), - lr('\\varPhi', '\\mathit{\\Phi}'), - lr('\\varPsi', '\\mathit{\\Psi}'), - lr('\\varOmega', '\\mathit{\\Omega}'), - lr( + li('⋮', '\\vdots'), + li('\\varGamma', '\\mathit{\\Gamma}'), + li('\\varDelta', '\\mathit{\\Delta}'), + li('\\varTheta', '\\mathit{\\Theta}'), + li('\\varLambda', '\\mathit{\\Lambda}'), + li('\\varXi', '\\mathit{\\Xi}'), + li('\\varPi', '\\mathit{\\Pi}'), + li('\\varSigma', '\\mathit{\\Sigma}'), + li('\\varUpsilon', '\\mathit{\\Upsilon}'), + li('\\varPhi', '\\mathit{\\Phi}'), + li('\\varPsi', '\\mathit{\\Psi}'), + li('\\varOmega', '\\mathit{\\Omega}'), + li( '\\substack', '\\begin{subarray}{c}#1\\end{subarray}' ), - lr( + li( '\\colon', '\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu' ), - lr('\\boxed', '\\fbox{$\\displaystyle{#1}$}'), - lr( + li('\\boxed', '\\fbox{$\\displaystyle{#1}$}'), + li( '\\iff', '\\DOTSB\\;\\Longleftrightarrow\\;' ), - lr( + li( '\\implies', '\\DOTSB\\;\\Longrightarrow\\;' ), - lr( + li( '\\impliedby', '\\DOTSB\\;\\Longleftarrow\\;' ); - var Yr = { + var Yi = { ',': '\\dotsc', '\\not': '\\dotsb', '+': '\\dotsb', @@ -108143,12 +107043,12 @@ '\\idotsint': '\\dotsi', '\\DOTSX': '\\dotsx', }; - lr('\\dots', function(e) { + li('\\dots', function(e) { var t = '\\dotso', n = e.expandAfterFuture().text; return ( - n in Yr - ? (t = Yr[n]) + n in Yi + ? (t = Yi[n]) : ('\\not' === n.substr(0, 4) || (n in ne.math && A.contains( @@ -108159,7 +107059,7 @@ t ); }); - var Rr = { + var Ri = { ')': !0, ']': !0, '\\rbrack': !0, @@ -108180,457 +107080,457 @@ '.': !0, ',': !0, }; - lr('\\dotso', function(e) { - return e.future().text in Rr + li('\\dotso', function(e) { + return e.future().text in Ri ? '\\ldots\\,' : '\\ldots'; }), - lr('\\dotsc', function(e) { + li('\\dotsc', function(e) { var t = e.future().text; - return t in Rr && ',' !== t + return t in Ri && ',' !== t ? '\\ldots\\,' : '\\ldots'; }), - lr('\\cdots', function(e) { - return e.future().text in Rr + li('\\cdots', function(e) { + return e.future().text in Ri ? '\\@cdots\\,' : '\\@cdots'; }), - lr('\\dotsb', '\\cdots'), - lr('\\dotsm', '\\cdots'), - lr('\\dotsi', '\\!\\cdots'), - lr('\\dotsx', '\\ldots\\,'), - lr('\\DOTSI', '\\relax'), - lr('\\DOTSB', '\\relax'), - lr('\\DOTSX', '\\relax'), - lr( + li('\\dotsb', '\\cdots'), + li('\\dotsm', '\\cdots'), + li('\\dotsi', '\\!\\cdots'), + li('\\dotsx', '\\ldots\\,'), + li('\\DOTSI', '\\relax'), + li('\\DOTSB', '\\relax'), + li('\\DOTSX', '\\relax'), + li( '\\tmspace', '\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax' ), - lr('\\,', '\\tmspace+{3mu}{.1667em}'), - lr('\\thinspace', '\\,'), - lr('\\>', '\\mskip{4mu}'), - lr('\\:', '\\tmspace+{4mu}{.2222em}'), - lr('\\medspace', '\\:'), - lr('\\;', '\\tmspace+{5mu}{.2777em}'), - lr('\\thickspace', '\\;'), - lr('\\!', '\\tmspace-{3mu}{.1667em}'), - lr('\\negthinspace', '\\!'), - lr('\\negmedspace', '\\tmspace-{4mu}{.2222em}'), - lr( + li('\\,', '\\tmspace+{3mu}{.1667em}'), + li('\\thinspace', '\\,'), + li('\\>', '\\mskip{4mu}'), + li('\\:', '\\tmspace+{4mu}{.2222em}'), + li('\\medspace', '\\:'), + li('\\;', '\\tmspace+{5mu}{.2777em}'), + li('\\thickspace', '\\;'), + li('\\!', '\\tmspace-{3mu}{.1667em}'), + li('\\negthinspace', '\\!'), + li('\\negmedspace', '\\tmspace-{4mu}{.2222em}'), + li( '\\negthickspace', '\\tmspace-{5mu}{.277em}' ), - lr('\\enspace', '\\kern.5em '), - lr('\\enskip', '\\hskip.5em\\relax'), - lr('\\quad', '\\hskip1em\\relax'), - lr('\\qquad', '\\hskip2em\\relax'), - lr( + li('\\enspace', '\\kern.5em '), + li('\\enskip', '\\hskip.5em\\relax'), + li('\\quad', '\\hskip1em\\relax'), + li('\\qquad', '\\hskip2em\\relax'), + li( '\\tag', '\\@ifstar\\tag@literal\\tag@paren' ), - lr('\\tag@paren', '\\tag@literal{({#1})}'), - lr('\\tag@literal', function(e) { + li('\\tag@paren', '\\tag@literal{({#1})}'), + li('\\tag@literal', function(e) { if (e.macros.get('\\df@tag')) - throw new r('Multiple \\tag'); + throw new i('Multiple \\tag'); return '\\gdef\\df@tag{\\text{#1}}'; }), - lr( + li( '\\bmod', '\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}' ), - lr( + li( '\\pod', '\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)' ), - lr('\\pmod', '\\pod{{\\rm mod}\\mkern6mu#1}'), - lr( + li('\\pmod', '\\pod{{\\rm mod}\\mkern6mu#1}'), + li( '\\mod', '\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1' ), - lr( + li( '\\pmb', '\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}' ), - lr('\\newline', '\\\\\\relax'), - lr( + li('\\newline', '\\\\\\relax'), + li( '\\TeX', '\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}' ); - var _r = k( - v['Main-Regular']['T'.charCodeAt(0)][1] - + var _i = G( + M['Main-Regular']['T'.charCodeAt(0)][1] - 0.7 * - v['Main-Regular']['A'.charCodeAt(0)][1] + M['Main-Regular']['A'.charCodeAt(0)][1] ); - lr( + li( '\\LaTeX', '\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{' + - _r + + _i + '}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}' ), - lr( + li( '\\KaTeX', '\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{' + - _r + + _i + '}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}' ), - lr('\\hspace', '\\@ifstar\\@hspacer\\@hspace'), - lr('\\@hspace', '\\hskip #1\\relax'), - lr( + li('\\hspace', '\\@ifstar\\@hspacer\\@hspace'), + li('\\@hspace', '\\hskip #1\\relax'), + li( '\\@hspacer', '\\rule{0pt}{0pt}\\hskip #1\\relax' ), - lr('\\ordinarycolon', ':'), - lr( + li('\\ordinarycolon', ':'), + li( '\\vcentcolon', '\\mathrel{\\mathop\\ordinarycolon}' ), - lr( + li( '\\dblcolon', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}' ), - lr( + li( '\\coloneqq', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}' ), - lr( + li( '\\Coloneqq', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}' ), - lr( + li( '\\coloneq', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}' ), - lr( + li( '\\Coloneq', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}' ), - lr( + li( '\\eqqcolon', '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}' ), - lr( + li( '\\Eqqcolon', '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}' ), - lr( + li( '\\eqcolon', '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}' ), - lr( + li( '\\Eqcolon', '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}' ), - lr( + li( '\\colonapprox', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}' ), - lr( + li( '\\Colonapprox', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}' ), - lr( + li( '\\colonsim', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}' ), - lr( + li( '\\Colonsim', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}' ), - lr('∷', '\\dblcolon'), - lr('∹', '\\eqcolon'), - lr('≔', '\\coloneqq'), - lr('≕', '\\eqqcolon'), - lr('⩴', '\\Coloneqq'), - lr('\\ratio', '\\vcentcolon'), - lr('\\coloncolon', '\\dblcolon'), - lr('\\colonequals', '\\coloneqq'), - lr('\\coloncolonequals', '\\Coloneqq'), - lr('\\equalscolon', '\\eqqcolon'), - lr('\\equalscoloncolon', '\\Eqqcolon'), - lr('\\colonminus', '\\coloneq'), - lr('\\coloncolonminus', '\\Coloneq'), - lr('\\minuscolon', '\\eqcolon'), - lr('\\minuscoloncolon', '\\Eqcolon'), - lr('\\coloncolonapprox', '\\Colonapprox'), - lr('\\coloncolonsim', '\\Colonsim'), - lr( + li('∷', '\\dblcolon'), + li('∹', '\\eqcolon'), + li('≔', '\\coloneqq'), + li('≕', '\\eqqcolon'), + li('⩴', '\\Coloneqq'), + li('\\ratio', '\\vcentcolon'), + li('\\coloncolon', '\\dblcolon'), + li('\\colonequals', '\\coloneqq'), + li('\\coloncolonequals', '\\Coloneqq'), + li('\\equalscolon', '\\eqqcolon'), + li('\\equalscoloncolon', '\\Eqqcolon'), + li('\\colonminus', '\\coloneq'), + li('\\coloncolonminus', '\\Coloneq'), + li('\\minuscolon', '\\eqcolon'), + li('\\minuscoloncolon', '\\Eqcolon'), + li('\\coloncolonapprox', '\\Colonapprox'), + li('\\coloncolonsim', '\\Colonsim'), + li( '\\simcolon', '\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}' ), - lr( + li( '\\simcoloncolon', '\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}' ), - lr( + li( '\\approxcolon', '\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}' ), - lr( + li( '\\approxcoloncolon', '\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}' ), - lr( + li( '\\notni', '\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}' ), - lr( + li( '\\limsup', '\\DOTSB\\operatorname*{lim\\,sup}' ), - lr( + li( '\\liminf', '\\DOTSB\\operatorname*{lim\\,inf}' ), - lr( + li( '\\injlim', '\\DOTSB\\operatorname*{inj\\,lim}' ), - lr( + li( '\\projlim', '\\DOTSB\\operatorname*{proj\\,lim}' ), - lr( + li( '\\varlimsup', '\\DOTSB\\operatorname*{\\overline{lim}}' ), - lr( + li( '\\varliminf', '\\DOTSB\\operatorname*{\\underline{lim}}' ), - lr( + li( '\\varinjlim', '\\DOTSB\\operatorname*{\\underrightarrow{lim}}' ), - lr( + li( '\\varprojlim', '\\DOTSB\\operatorname*{\\underleftarrow{lim}}' ), - lr( + li( '\\gvertneqq', '\\html@mathml{\\@gvertneqq}{≩}' ), - lr( + li( '\\lvertneqq', '\\html@mathml{\\@lvertneqq}{≨}' ), - lr('\\ngeqq', '\\html@mathml{\\@ngeqq}{≱}'), - lr( + li('\\ngeqq', '\\html@mathml{\\@ngeqq}{≱}'), + li( '\\ngeqslant', '\\html@mathml{\\@ngeqslant}{≱}' ), - lr('\\nleqq', '\\html@mathml{\\@nleqq}{≰}'), - lr( + li('\\nleqq', '\\html@mathml{\\@nleqq}{≰}'), + li( '\\nleqslant', '\\html@mathml{\\@nleqslant}{≰}' ), - lr( + li( '\\nshortmid', '\\html@mathml{\\@nshortmid}{∤}' ), - lr( + li( '\\nshortparallel', '\\html@mathml{\\@nshortparallel}{∦}' ), - lr( + li( '\\nsubseteqq', '\\html@mathml{\\@nsubseteqq}{⊈}' ), - lr( + li( '\\nsupseteqq', '\\html@mathml{\\@nsupseteqq}{⊉}' ), - lr( + li( '\\varsubsetneq', '\\html@mathml{\\@varsubsetneq}{⊊}' ), - lr( + li( '\\varsubsetneqq', '\\html@mathml{\\@varsubsetneqq}{⫋}' ), - lr( + li( '\\varsupsetneq', '\\html@mathml{\\@varsupsetneq}{⊋}' ), - lr( + li( '\\varsupsetneqq', '\\html@mathml{\\@varsupsetneqq}{⫌}' ), - lr('\\imath', '\\html@mathml{\\@imath}{ı}'), - lr('\\jmath', '\\html@mathml{\\@jmath}{ȷ}'), - lr( + li('\\imath', '\\html@mathml{\\@imath}{ı}'), + li('\\jmath', '\\html@mathml{\\@jmath}{ȷ}'), + li( '\\llbracket', '\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}' ), - lr( + li( '\\rrbracket', '\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}' ), - lr('⟦', '\\llbracket'), - lr('⟧', '\\rrbracket'), - lr( + li('⟦', '\\llbracket'), + li('⟧', '\\rrbracket'), + li( '\\lBrace', '\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}' ), - lr( + li( '\\rBrace', '\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}' ), - lr('⦃', '\\lBrace'), - lr('⦄', '\\rBrace'), - lr( + li('⦃', '\\lBrace'), + li('⦄', '\\rBrace'), + li( '\\minuso', '\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}' ), - lr('⦵', '\\minuso'), - lr('\\darr', '\\downarrow'), - lr('\\dArr', '\\Downarrow'), - lr('\\Darr', '\\Downarrow'), - lr('\\lang', '\\langle'), - lr('\\rang', '\\rangle'), - lr('\\uarr', '\\uparrow'), - lr('\\uArr', '\\Uparrow'), - lr('\\Uarr', '\\Uparrow'), - lr('\\N', '\\mathbb{N}'), - lr('\\R', '\\mathbb{R}'), - lr('\\Z', '\\mathbb{Z}'), - lr('\\alef', '\\aleph'), - lr('\\alefsym', '\\aleph'), - lr('\\Alpha', '\\mathrm{A}'), - lr('\\Beta', '\\mathrm{B}'), - lr('\\bull', '\\bullet'), - lr('\\Chi', '\\mathrm{X}'), - lr('\\clubs', '\\clubsuit'), - lr('\\cnums', '\\mathbb{C}'), - lr('\\Complex', '\\mathbb{C}'), - lr('\\Dagger', '\\ddagger'), - lr('\\diamonds', '\\diamondsuit'), - lr('\\empty', '\\emptyset'), - lr('\\Epsilon', '\\mathrm{E}'), - lr('\\Eta', '\\mathrm{H}'), - lr('\\exist', '\\exists'), - lr('\\harr', '\\leftrightarrow'), - lr('\\hArr', '\\Leftrightarrow'), - lr('\\Harr', '\\Leftrightarrow'), - lr('\\hearts', '\\heartsuit'), - lr('\\image', '\\Im'), - lr('\\infin', '\\infty'), - lr('\\Iota', '\\mathrm{I}'), - lr('\\isin', '\\in'), - lr('\\Kappa', '\\mathrm{K}'), - lr('\\larr', '\\leftarrow'), - lr('\\lArr', '\\Leftarrow'), - lr('\\Larr', '\\Leftarrow'), - lr('\\lrarr', '\\leftrightarrow'), - lr('\\lrArr', '\\Leftrightarrow'), - lr('\\Lrarr', '\\Leftrightarrow'), - lr('\\Mu', '\\mathrm{M}'), - lr('\\natnums', '\\mathbb{N}'), - lr('\\Nu', '\\mathrm{N}'), - lr('\\Omicron', '\\mathrm{O}'), - lr('\\plusmn', '\\pm'), - lr('\\rarr', '\\rightarrow'), - lr('\\rArr', '\\Rightarrow'), - lr('\\Rarr', '\\Rightarrow'), - lr('\\real', '\\Re'), - lr('\\reals', '\\mathbb{R}'), - lr('\\Reals', '\\mathbb{R}'), - lr('\\Rho', '\\mathrm{P}'), - lr('\\sdot', '\\cdot'), - lr('\\sect', '\\S'), - lr('\\spades', '\\spadesuit'), - lr('\\sub', '\\subset'), - lr('\\sube', '\\subseteq'), - lr('\\supe', '\\supseteq'), - lr('\\Tau', '\\mathrm{T}'), - lr('\\thetasym', '\\vartheta'), - lr('\\weierp', '\\wp'), - lr('\\Zeta', '\\mathrm{Z}'), - lr( + li('⦵', '\\minuso'), + li('\\darr', '\\downarrow'), + li('\\dArr', '\\Downarrow'), + li('\\Darr', '\\Downarrow'), + li('\\lang', '\\langle'), + li('\\rang', '\\rangle'), + li('\\uarr', '\\uparrow'), + li('\\uArr', '\\Uparrow'), + li('\\Uarr', '\\Uparrow'), + li('\\N', '\\mathbb{N}'), + li('\\R', '\\mathbb{R}'), + li('\\Z', '\\mathbb{Z}'), + li('\\alef', '\\aleph'), + li('\\alefsym', '\\aleph'), + li('\\Alpha', '\\mathrm{A}'), + li('\\Beta', '\\mathrm{B}'), + li('\\bull', '\\bullet'), + li('\\Chi', '\\mathrm{X}'), + li('\\clubs', '\\clubsuit'), + li('\\cnums', '\\mathbb{C}'), + li('\\Complex', '\\mathbb{C}'), + li('\\Dagger', '\\ddagger'), + li('\\diamonds', '\\diamondsuit'), + li('\\empty', '\\emptyset'), + li('\\Epsilon', '\\mathrm{E}'), + li('\\Eta', '\\mathrm{H}'), + li('\\exist', '\\exists'), + li('\\harr', '\\leftrightarrow'), + li('\\hArr', '\\Leftrightarrow'), + li('\\Harr', '\\Leftrightarrow'), + li('\\hearts', '\\heartsuit'), + li('\\image', '\\Im'), + li('\\infin', '\\infty'), + li('\\Iota', '\\mathrm{I}'), + li('\\isin', '\\in'), + li('\\Kappa', '\\mathrm{K}'), + li('\\larr', '\\leftarrow'), + li('\\lArr', '\\Leftarrow'), + li('\\Larr', '\\Leftarrow'), + li('\\lrarr', '\\leftrightarrow'), + li('\\lrArr', '\\Leftrightarrow'), + li('\\Lrarr', '\\Leftrightarrow'), + li('\\Mu', '\\mathrm{M}'), + li('\\natnums', '\\mathbb{N}'), + li('\\Nu', '\\mathrm{N}'), + li('\\Omicron', '\\mathrm{O}'), + li('\\plusmn', '\\pm'), + li('\\rarr', '\\rightarrow'), + li('\\rArr', '\\Rightarrow'), + li('\\Rarr', '\\Rightarrow'), + li('\\real', '\\Re'), + li('\\reals', '\\mathbb{R}'), + li('\\Reals', '\\mathbb{R}'), + li('\\Rho', '\\mathrm{P}'), + li('\\sdot', '\\cdot'), + li('\\sect', '\\S'), + li('\\spades', '\\spadesuit'), + li('\\sub', '\\subset'), + li('\\sube', '\\subseteq'), + li('\\supe', '\\supseteq'), + li('\\Tau', '\\mathrm{T}'), + li('\\thetasym', '\\vartheta'), + li('\\weierp', '\\wp'), + li('\\Zeta', '\\mathrm{Z}'), + li( '\\argmin', '\\DOTSB\\operatorname*{arg\\,min}' ), - lr( + li( '\\argmax', '\\DOTSB\\operatorname*{arg\\,max}' ), - lr( + li( '\\plim', '\\DOTSB\\mathop{\\operatorname{plim}}\\limits' ), - lr('\\bra', '\\mathinner{\\langle{#1}|}'), - lr('\\ket', '\\mathinner{|{#1}\\rangle}'), - lr( + li('\\bra', '\\mathinner{\\langle{#1}|}'), + li('\\ket', '\\mathinner{|{#1}\\rangle}'), + li( '\\braket', '\\mathinner{\\langle{#1}\\rangle}' ), - lr('\\Bra', '\\left\\langle#1\\right|'), - lr('\\Ket', '\\left|#1\\right\\rangle'), - lr('\\angln', '{\\angl n}'), - lr('\\blue', '\\textcolor{##6495ed}{#1}'), - lr('\\orange', '\\textcolor{##ffa500}{#1}'), - lr('\\pink', '\\textcolor{##ff00af}{#1}'), - lr('\\red', '\\textcolor{##df0030}{#1}'), - lr('\\green', '\\textcolor{##28ae7b}{#1}'), - lr('\\gray', '\\textcolor{gray}{#1}'), - lr('\\purple', '\\textcolor{##9d38bd}{#1}'), - lr('\\blueA', '\\textcolor{##ccfaff}{#1}'), - lr('\\blueB', '\\textcolor{##80f6ff}{#1}'), - lr('\\blueC', '\\textcolor{##63d9ea}{#1}'), - lr('\\blueD', '\\textcolor{##11accd}{#1}'), - lr('\\blueE', '\\textcolor{##0c7f99}{#1}'), - lr('\\tealA', '\\textcolor{##94fff5}{#1}'), - lr('\\tealB', '\\textcolor{##26edd5}{#1}'), - lr('\\tealC', '\\textcolor{##01d1c1}{#1}'), - lr('\\tealD', '\\textcolor{##01a995}{#1}'), - lr('\\tealE', '\\textcolor{##208170}{#1}'), - lr('\\greenA', '\\textcolor{##b6ffb0}{#1}'), - lr('\\greenB', '\\textcolor{##8af281}{#1}'), - lr('\\greenC', '\\textcolor{##74cf70}{#1}'), - lr('\\greenD', '\\textcolor{##1fab54}{#1}'), - lr('\\greenE', '\\textcolor{##0d923f}{#1}'), - lr('\\goldA', '\\textcolor{##ffd0a9}{#1}'), - lr('\\goldB', '\\textcolor{##ffbb71}{#1}'), - lr('\\goldC', '\\textcolor{##ff9c39}{#1}'), - lr('\\goldD', '\\textcolor{##e07d10}{#1}'), - lr('\\goldE', '\\textcolor{##a75a05}{#1}'), - lr('\\redA', '\\textcolor{##fca9a9}{#1}'), - lr('\\redB', '\\textcolor{##ff8482}{#1}'), - lr('\\redC', '\\textcolor{##f9685d}{#1}'), - lr('\\redD', '\\textcolor{##e84d39}{#1}'), - lr('\\redE', '\\textcolor{##bc2612}{#1}'), - lr('\\maroonA', '\\textcolor{##ffbde0}{#1}'), - lr('\\maroonB', '\\textcolor{##ff92c6}{#1}'), - lr('\\maroonC', '\\textcolor{##ed5fa6}{#1}'), - lr('\\maroonD', '\\textcolor{##ca337c}{#1}'), - lr('\\maroonE', '\\textcolor{##9e034e}{#1}'), - lr('\\purpleA', '\\textcolor{##ddd7ff}{#1}'), - lr('\\purpleB', '\\textcolor{##c6b9fc}{#1}'), - lr('\\purpleC', '\\textcolor{##aa87ff}{#1}'), - lr('\\purpleD', '\\textcolor{##7854ab}{#1}'), - lr('\\purpleE', '\\textcolor{##543b78}{#1}'), - lr('\\mintA', '\\textcolor{##f5f9e8}{#1}'), - lr('\\mintB', '\\textcolor{##edf2df}{#1}'), - lr('\\mintC', '\\textcolor{##e0e5cc}{#1}'), - lr('\\grayA', '\\textcolor{##f6f7f7}{#1}'), - lr('\\grayB', '\\textcolor{##f0f1f2}{#1}'), - lr('\\grayC', '\\textcolor{##e3e5e6}{#1}'), - lr('\\grayD', '\\textcolor{##d6d8da}{#1}'), - lr('\\grayE', '\\textcolor{##babec2}{#1}'), - lr('\\grayF', '\\textcolor{##888d93}{#1}'), - lr('\\grayG', '\\textcolor{##626569}{#1}'), - lr('\\grayH', '\\textcolor{##3b3e40}{#1}'), - lr('\\grayI', '\\textcolor{##21242c}{#1}'), - lr('\\kaBlue', '\\textcolor{##314453}{#1}'), - lr('\\kaGreen', '\\textcolor{##71B307}{#1}'); - var Ur = { + li('\\Bra', '\\left\\langle#1\\right|'), + li('\\Ket', '\\left|#1\\right\\rangle'), + li('\\angln', '{\\angl n}'), + li('\\blue', '\\textcolor{##6495ed}{#1}'), + li('\\orange', '\\textcolor{##ffa500}{#1}'), + li('\\pink', '\\textcolor{##ff00af}{#1}'), + li('\\red', '\\textcolor{##df0030}{#1}'), + li('\\green', '\\textcolor{##28ae7b}{#1}'), + li('\\gray', '\\textcolor{gray}{#1}'), + li('\\purple', '\\textcolor{##9d38bd}{#1}'), + li('\\blueA', '\\textcolor{##ccfaff}{#1}'), + li('\\blueB', '\\textcolor{##80f6ff}{#1}'), + li('\\blueC', '\\textcolor{##63d9ea}{#1}'), + li('\\blueD', '\\textcolor{##11accd}{#1}'), + li('\\blueE', '\\textcolor{##0c7f99}{#1}'), + li('\\tealA', '\\textcolor{##94fff5}{#1}'), + li('\\tealB', '\\textcolor{##26edd5}{#1}'), + li('\\tealC', '\\textcolor{##01d1c1}{#1}'), + li('\\tealD', '\\textcolor{##01a995}{#1}'), + li('\\tealE', '\\textcolor{##208170}{#1}'), + li('\\greenA', '\\textcolor{##b6ffb0}{#1}'), + li('\\greenB', '\\textcolor{##8af281}{#1}'), + li('\\greenC', '\\textcolor{##74cf70}{#1}'), + li('\\greenD', '\\textcolor{##1fab54}{#1}'), + li('\\greenE', '\\textcolor{##0d923f}{#1}'), + li('\\goldA', '\\textcolor{##ffd0a9}{#1}'), + li('\\goldB', '\\textcolor{##ffbb71}{#1}'), + li('\\goldC', '\\textcolor{##ff9c39}{#1}'), + li('\\goldD', '\\textcolor{##e07d10}{#1}'), + li('\\goldE', '\\textcolor{##a75a05}{#1}'), + li('\\redA', '\\textcolor{##fca9a9}{#1}'), + li('\\redB', '\\textcolor{##ff8482}{#1}'), + li('\\redC', '\\textcolor{##f9685d}{#1}'), + li('\\redD', '\\textcolor{##e84d39}{#1}'), + li('\\redE', '\\textcolor{##bc2612}{#1}'), + li('\\maroonA', '\\textcolor{##ffbde0}{#1}'), + li('\\maroonB', '\\textcolor{##ff92c6}{#1}'), + li('\\maroonC', '\\textcolor{##ed5fa6}{#1}'), + li('\\maroonD', '\\textcolor{##ca337c}{#1}'), + li('\\maroonE', '\\textcolor{##9e034e}{#1}'), + li('\\purpleA', '\\textcolor{##ddd7ff}{#1}'), + li('\\purpleB', '\\textcolor{##c6b9fc}{#1}'), + li('\\purpleC', '\\textcolor{##aa87ff}{#1}'), + li('\\purpleD', '\\textcolor{##7854ab}{#1}'), + li('\\purpleE', '\\textcolor{##543b78}{#1}'), + li('\\mintA', '\\textcolor{##f5f9e8}{#1}'), + li('\\mintB', '\\textcolor{##edf2df}{#1}'), + li('\\mintC', '\\textcolor{##e0e5cc}{#1}'), + li('\\grayA', '\\textcolor{##f6f7f7}{#1}'), + li('\\grayB', '\\textcolor{##f0f1f2}{#1}'), + li('\\grayC', '\\textcolor{##e3e5e6}{#1}'), + li('\\grayD', '\\textcolor{##d6d8da}{#1}'), + li('\\grayE', '\\textcolor{##babec2}{#1}'), + li('\\grayF', '\\textcolor{##888d93}{#1}'), + li('\\grayG', '\\textcolor{##626569}{#1}'), + li('\\grayH', '\\textcolor{##3b3e40}{#1}'), + li('\\grayI', '\\textcolor{##21242c}{#1}'), + li('\\kaBlue', '\\textcolor{##314453}{#1}'), + li('\\kaGreen', '\\textcolor{##71B307}{#1}'); + var Ui = { '\\relax': !0, '^': !0, _: !0, '\\limits': !0, '\\nolimits': !0, }, - Or = (function() { + Oi = (function() { function e(e, t, n) { (this.settings = void 0), (this.expansionCount = void 0), @@ -108641,8 +107541,8 @@ (this.settings = t), (this.expansionCount = 0), this.feed(e), - (this.macros = new Fr( - xr, + (this.macros = new xi( + Fi, t.macros )), (this.mode = n), @@ -108651,7 +107551,7 @@ var t = e.prototype; return ( (t.feed = function(e) { - this.lexer = new Qr( + this.lexer = new Qi( e, this.settings ); @@ -108692,7 +107592,7 @@ (t = this.stack).push.apply(t, e); }), (t.scanArgument = function(e) { - var t, n, r; + var t, n, i; if (e) { if ( (this.consumeSpaces(), @@ -108700,19 +107600,19 @@ ) return null; t = this.popToken(); - var i = this.consumeArg([']']); - (r = i.tokens), (n = i.end); + var r = this.consumeArg([']']); + (i = r.tokens), (n = r.end); } else { var o = this.consumeArg(); - (r = o.tokens), + (i = o.tokens), (t = o.start), (n = o.end); } return ( this.pushToken( - new Nr('EOF', n.loc) + new Ni('EOF', n.loc) ), - this.pushTokens(r), + this.pushTokens(i), t.range(n, '') ); }), @@ -108724,99 +107624,99 @@ var t = [], n = e && e.length > 0; n || this.consumeSpaces(); - var i, + var r, o = this.future(), - a = 0, - s = 0; + s = 0, + a = 0; do { if ( - ((i = this.popToken()), - t.push(i), - '{' === i.text) + ((r = this.popToken()), + t.push(r), + '{' === r.text) ) - ++a; - else if ('}' === i.text) { - if (-1 == --a) - throw new r( + ++s; + else if ('}' === r.text) { + if (-1 == --s) + throw new i( 'Extra }', - i + r ); - } else if ('EOF' === i.text) - throw new r( + } else if ('EOF' === r.text) + throw new i( "Unexpected end of input in a macro argument, expected '" + (e && n - ? e[s] + ? e[a] : '}') + "'", - i + r ); if (e && n) if ( - (0 === a || - (1 === a && + (0 === s || + (1 === s && '{' === - e[s])) && - i.text === e[s] + e[a])) && + r.text === e[a] ) { - if (++s === e.length) { - t.splice(-s, s); + if (++a === e.length) { + t.splice(-a, a); break; } - } else s = 0; - } while (0 !== a || n); + } else a = 0; + } while (0 !== s || n); return ( '{' === o.text && '}' === t[t.length - 1].text && (t.pop(), t.shift()), t.reverse(), - {tokens: t, start: o, end: i} + {tokens: t, start: o, end: r} ); }), (t.consumeArgs = function(e, t) { if (t) { if (t.length !== e + 1) - throw new r( + throw new i( "The length of delimiters doesn't match the number of args!" ); for ( - var n = t[0], i = 0; - i < n.length; - i++ + var n = t[0], r = 0; + r < n.length; + r++ ) { var o = this.popToken(); - if (n[i] !== o.text) - throw new r( + if (n[r] !== o.text) + throw new i( "Use of the macro doesn't match its definition", o ); } } - for (var a = [], s = 0; s < e; s++) - a.push( + for (var s = [], a = 0; a < e; a++) + s.push( this.consumeArg( - t && t[s + 1] + t && t[a + 1] ).tokens ); - return a; + return s; }), (t.expandOnce = function(e) { var t = this.popToken(), n = t.text, - i = t.noexpand + r = t.noexpand ? null : this._getExpansion(n); if ( - null == i || - (e && i.unexpandable) + null == r || + (e && r.unexpandable) ) { if ( e && - null == i && + null == r && '\\' === n[0] && !this.isDefined(n) ) - throw new r( + throw new i( 'Undefined control sequence: ' + n ); @@ -108827,49 +107727,49 @@ this.expansionCount > this.settings.maxExpand) ) - throw new r( + throw new i( 'Too many expansions: infinite loop or need to increase maxExpand setting' ); - var o = i.tokens, - a = this.consumeArgs( - i.numArgs, - i.delimiters + var o = r.tokens, + s = this.consumeArgs( + r.numArgs, + r.delimiters ); - if (i.numArgs) + if (r.numArgs) for ( - var s = + var a = (o = o.slice()).length - 1; - s >= 0; - --s + a >= 0; + --a ) { - var A = o[s]; + var A = o[a]; if ('#' === A.text) { - if (0 === s) - throw new r( + if (0 === a) + throw new i( 'Incomplete placeholder at end of macro body', A ); if ( '#' === - (A = o[--s]).text + (A = o[--a]).text ) - o.splice(s + 1, 1); + o.splice(a + 1, 1); else { if ( !/^[1-9]$/.test( A.text ) ) - throw new r( + throw new i( 'Not a valid argument number', A ); var c; (c = o).splice.apply( c, - [s, 2].concat( - a[ + [a, 2].concat( + s[ +A.text - 1 ] @@ -108888,7 +107788,7 @@ (t.expandNextToken = function() { for (;;) { var e = this.expandOnce(); - if (e instanceof Nr) { + if (e instanceof Ni) { if ( '\\relax' !== e.text && !e.treatAsRelax @@ -108901,7 +107801,7 @@ }), (t.expandMacro = function(e) { return this.macros.has(e) - ? this.expandTokens([new Nr(e)]) + ? this.expandTokens([new Ni(e)]) : void 0; }), (t.expandTokens = function(e) { @@ -108912,11 +107812,11 @@ this.stack.length > n; ) { - var r = this.expandOnce(!0); - r instanceof Nr && - (r.treatAsRelax && - ((r.noexpand = !1), - (r.treatAsRelax = !1)), + var i = this.expandOnce(!0); + i instanceof Ni && + (i.treatAsRelax && + ((i.noexpand = !1), + (i.treatAsRelax = !1)), t.push(this.stack.pop())); } return t; @@ -108939,50 +107839,50 @@ if (null != n && 13 !== n) return; } - var r = + var i = 'function' == typeof t ? t(this) : t; - if ('string' == typeof r) { - var i = 0; - if (-1 !== r.indexOf('#')) + if ('string' == typeof i) { + var r = 0; + if (-1 !== i.indexOf('#')) for ( - var o = r.replace( + var o = i.replace( /##/g, '' ); -1 !== o.indexOf( - '#' + (i + 1) + '#' + (r + 1) ); ) - ++i; + ++r; for ( - var a = new Qr( - r, + var s = new Qi( + i, this.settings ), - s = [], - A = a.lex(); + a = [], + A = s.lex(); 'EOF' !== A.text; ) - s.push(A), (A = a.lex()); + a.push(A), (A = s.lex()); return ( - s.reverse(), - {tokens: s, numArgs: i} + a.reverse(), + {tokens: a, numArgs: r} ); } - return r; + return i; }), (t.isDefined = function(e) { return ( this.macros.has(e) || - vr.hasOwnProperty(e) || + Mi.hasOwnProperty(e) || ne.math.hasOwnProperty(e) || ne.text.hasOwnProperty(e) || - Ur.hasOwnProperty(e) + Ui.hasOwnProperty(e) ); }), (t.isExpandable = function(e) { @@ -108991,13 +107891,13 @@ ? 'string' == typeof t || 'function' == typeof t || !t.unexpandable - : vr.hasOwnProperty(e) && - !vr[e].primitive; + : Mi.hasOwnProperty(e) && + !Mi[e].primitive; }), e ); })(), - kr = { + Gi = { '́': {text: "\\'", math: '\\acute'}, '̀': {text: '\\`', math: '\\grave'}, '̈': {text: '\\"', math: '\\ddot'}, @@ -109011,7 +107911,7 @@ '̋': {text: '\\H'}, '̧': {text: '\\c'}, }, - Gr = { + Li = { á: 'á', à: 'à', ä: 'ä', @@ -109357,7 +108257,7 @@ Ώ: 'Ώ', Ὼ: 'Ὼ', }, - Lr = (function() { + ki = (function() { function e(e, t) { (this.mode = void 0), (this.gullet = void 0), @@ -109365,7 +108265,7 @@ (this.leftrightDepth = void 0), (this.nextToken = void 0), (this.mode = 'math'), - (this.gullet = new Or( + (this.gullet = new Oi( e, t, this.mode @@ -109380,7 +108280,7 @@ (void 0 === t && (t = !0), this.fetch().text !== e) ) - throw new r( + throw new i( "Expected '" + e + "', got '" + @@ -109428,68 +108328,68 @@ } }), (t.parseExpression = function(t, n) { - for (var r = []; ; ) { + for (var i = []; ; ) { 'math' === this.mode && this.consumeSpaces(); - var i = this.fetch(); + var r = this.fetch(); if ( -1 !== e.endOfExpression.indexOf( - i.text + r.text ) ) break; - if (n && i.text === n) break; + if (n && r.text === n) break; if ( t && - vr[i.text] && - vr[i.text].infix + Mi[r.text] && + Mi[r.text].infix ) break; var o = this.parseAtom(n); if (!o) break; 'internal' !== o.type && - r.push(o); + i.push(o); } return ( 'text' === this.mode && - this.formLigatures(r), - this.handleInfixNodes(r) + this.formLigatures(i), + this.handleInfixNodes(i) ); }), (t.handleInfixNodes = function(e) { for ( - var t, n = -1, i = 0; - i < e.length; - i++ + var t, n = -1, r = 0; + r < e.length; + r++ ) - if ('infix' === e[i].type) { + if ('infix' === e[r].type) { if (-1 !== n) - throw new r( + throw new i( 'only one infix operator per group', - e[i].token + e[r].token ); - (n = i), - (t = e[i].replaceWith); + (n = r), + (t = e[r].replaceWith); } if (-1 !== n && t) { var o, - a, - s = e.slice(0, n), + s, + a = e.slice(0, n), A = e.slice(n + 1); return ( (o = - 1 === s.length && - 'ordgroup' === s[0].type - ? s[0] + 1 === a.length && + 'ordgroup' === a[0].type + ? a[0] : { type: 'ordgroup', mode: this .mode, - body: s, + body: a, }), - (a = + (s = 1 === A.length && 'ordgroup' === A[0].type ? A[0] @@ -109504,12 +108404,12 @@ '\\\\abovefrac' === t ? this.callFunction( t, - [o, e[n], a], + [o, e[n], s], [] ) : this.callFunction( t, - [o, a], + [o, s], [] ), ] @@ -109522,15 +108422,15 @@ n = t.text; this.consume(), this.consumeSpaces(); - var i = this.parseGroup(e); - if (!i) - throw new r( + var r = this.parseGroup(e); + if (!r) + throw new i( "Expected group after '" + n + "'", t ); - return i; + return r; }), (t.formatUnsupportedCmd = function(e) { for ( @@ -109543,7 +108443,7 @@ mode: 'text', text: e[n], }); - var r = { + var i = { type: 'text', mode: this.mode, body: t, @@ -109552,14 +108452,14 @@ type: 'color', mode: this.mode, color: this.settings.errorColor, - body: [r], + body: [i], }; }), (t.parseAtom = function(e) { var t, n, - i = this.parseGroup('atom', e); - if ('text' === this.mode) return i; + r = this.parseGroup('atom', e); + if ('text' === this.mode) return r; for (;;) { this.consumeSpaces(); var o = this.fetch(); @@ -109567,31 +108467,31 @@ '\\limits' === o.text || '\\nolimits' === o.text ) { - if (i && 'op' === i.type) { - var a = + if (r && 'op' === r.type) { + var s = '\\limits' === o.text; - (i.limits = a), - (i.alwaysHandleSupSub = !0); + (r.limits = s), + (r.alwaysHandleSupSub = !0); } else { if ( - !i || + !r || 'operatorname' !== - i.type + r.type ) - throw new r( + throw new i( 'Limit controls must follow a math operator', o ); - i.alwaysHandleSupSub && - (i.limits = + r.alwaysHandleSupSub && + (r.limits = '\\limits' === o.text); } this.consume(); } else if ('^' === o.text) { if (t) - throw new r( + throw new i( 'Double superscript', o ); @@ -109600,7 +108500,7 @@ ); } else if ('_' === o.text) { if (n) - throw new r( + throw new i( 'Double subscript', o ); @@ -109610,23 +108510,23 @@ } else { if ("'" !== o.text) break; if (t) - throw new r( + throw new i( 'Double superscript', o ); - var s = { + var a = { type: 'textord', mode: this.mode, text: '\\prime', }, - A = [s]; + A = [a]; for ( this.consume(); "'" === this.fetch().text; ) - A.push(s), + A.push(a), this.consume(); '^' === this.fetch().text && A.push( @@ -109645,16 +108545,16 @@ ? { type: 'supsub', mode: this.mode, - base: i, + base: r, sup: t, sub: n, } - : i; + : r; }), (t.parseFunction = function(e, t) { var n = this.fetch(), - i = n.text, - o = vr[i]; + r = n.text, + o = Mi[r]; if (!o) return null; if ( (this.consume(), @@ -109662,9 +108562,9 @@ 'atom' !== t && !o.allowedInArgument) ) - throw new r( + throw new i( "Got function '" + - i + + r + "' with no arguments" + (t ? ' as ' + t : ''), n @@ -109673,9 +108573,9 @@ 'text' === this.mode && !o.allowedInText ) - throw new r( + throw new i( "Can't use function '" + - i + + r + "' in text mode", n ); @@ -109683,18 +108583,18 @@ 'math' === this.mode && !1 === o.allowedInMath ) - throw new r( + throw new i( "Can't use function '" + - i + + r + "' in math mode", n ); - var a = this.parseArguments(i, o), - s = a.args, - A = a.optArgs; + var s = this.parseArguments(r, o), + a = s.args, + A = s.optArgs; return this.callFunction( - i, - s, + r, + a, A, n, e @@ -109704,19 +108604,19 @@ e, t, n, - i, + r, o ) { - var a = { + var s = { funcName: e, parser: this, - token: i, + token: r, breakOnTokenText: o, }, - s = vr[e]; - if (s && s.handler) - return s.handler(a, t, n); - throw new r( + a = Mi[e]; + if (a && a.handler) + return a.handler(s, t, n); + throw new i( 'No function handler for ' + e ); }), @@ -109726,34 +108626,34 @@ if (0 === n) return {args: [], optArgs: []}; for ( - var i = [], o = [], a = 0; - a < n; - a++ + var r = [], o = [], s = 0; + s < n; + s++ ) { - var s = + var a = t.argTypes && - t.argTypes[a], - A = a < t.numOptionalArgs; - ((t.primitive && null == s) || + t.argTypes[s], + A = s < t.numOptionalArgs; + ((t.primitive && null == a) || ('sqrt' === t.type && - 1 === a && + 1 === s && null == o[0])) && - (s = 'primitive'); + (a = 'primitive'); var c = this.parseGroupOfType( "argument to '" + e + "'", - s, + a, A ); if (A) o.push(c); else { if (null == c) - throw new r( + throw new i( 'Null argument, please report this as a bug' ); - i.push(c); + r.push(c); } } - return {args: i, optArgs: o}; + return {args: r, optArgs: o}; }), (t.parseGroupOfType = function( e, @@ -109780,15 +108680,15 @@ t ); case 'hbox': - var i = this.parseArgumentGroup( + var r = this.parseArgumentGroup( n, 'text' ); - return null != i + return null != r ? { type: 'styling', - mode: i.mode, - body: [i], + mode: r.mode, + body: [r], style: 'text', } : null; @@ -109806,17 +108706,17 @@ : null; case 'primitive': if (n) - throw new r( + throw new i( 'A primitive argument cannot be optional' ); - var a = this.parseGroup(e); - if (null == a) - throw new r( + var s = this.parseGroup(e); + if (null == s) + throw new i( 'Expected group as ' + e, this.fetch() ); - return a; + return s; case 'original': case null: case void 0: @@ -109824,7 +108724,7 @@ n ); default: - throw new r( + throw new i( 'Unknown group type as ' + e, this.fetch() @@ -109839,39 +108739,39 @@ var n = this.gullet.scanArgument(t); if (null == n) return null; for ( - var r, i = ''; + var i, r = ''; 'EOF' !== - (r = this.fetch()).text; + (i = this.fetch()).text; ) - (i += r.text), this.consume(); + (r += i.text), this.consume(); return ( - this.consume(), (n.text = i), n + this.consume(), (n.text = r), n ); }), (t.parseRegexGroup = function(e, t) { for ( var n, - i = this.fetch(), - o = i, - a = ''; + r = this.fetch(), + o = r, + s = ''; 'EOF' !== (n = this.fetch()).text && - e.test(a + n.text); + e.test(s + n.text); ) - (a += (o = n).text), + (s += (o = n).text), this.consume(); - if ('' === a) - throw new r( + if ('' === s) + throw new i( 'Invalid ' + t + ": '" + - i.text + + r.text + "'", - i + r ); - return i.range(o, a); + return r.range(o, s); }), (t.parseColorGroup = function(e) { var t = this.parseStringGroup( @@ -109883,20 +108783,20 @@ t.text ); if (!n) - throw new r( + throw new i( "Invalid color: '" + t.text + "'", t ); - var i = n[0]; + var r = n[0]; return ( - /^[0-9a-f]{6}$/i.test(i) && - (i = '#' + i), + /^[0-9a-f]{6}$/i.test(r) && + (r = '#' + r), { type: 'color-token', mode: this.mode, - color: i, + color: r, } ); }), @@ -109923,22 +108823,22 @@ e || 0 !== t.text.length || ((t.text = '0pt'), (n = !0)); - var i = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec( + var r = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec( t.text ); - if (!i) - throw new r( + if (!r) + throw new i( "Invalid size: '" + t.text + "'", t ); var o = { - number: +(i[1] + i[2]), - unit: i[3], + number: +(r[1] + r[2]), + unit: r[3], }; if (!U(o)) - throw new r( + throw new i( "Invalid unit: '" + o.unit + "'", @@ -109989,10 +108889,10 @@ (t.parseArgumentGroup = function(e, t) { var n = this.gullet.scanArgument(e); if (null == n) return null; - var r = this.mode; + var i = this.mode; t && this.switchMode(t), this.gullet.beginGroup(); - var i = this.parseExpression( + var r = this.parseExpression( !1, 'EOF' ); @@ -110002,36 +108902,36 @@ type: 'ordgroup', mode: this.mode, loc: n.loc, - body: i, + body: r, }; - return t && this.switchMode(r), o; + return t && this.switchMode(i), o; }), (t.parseGroup = function(e, t) { var n, - i = this.fetch(), - o = i.text; + r = this.fetch(), + o = r.text; if ( '{' === o || '\\begingroup' === o ) { this.consume(); - var a = + var s = '{' === o ? '}' : '\\endgroup'; this.gullet.beginGroup(); - var s = this.parseExpression( + var a = this.parseExpression( !1, - a + s ), A = this.fetch(); - this.expect(a), + this.expect(s), this.gullet.endGroup(), (n = { type: 'ordgroup', mode: this.mode, - loc: Mr.range(i, A), - body: s, + loc: vi.range(r, A), + body: a, semisimple: '\\begingroup' === o || void 0, @@ -110045,13 +108945,13 @@ ) || this.parseSymbol()) && '\\' === o[0] && - !Ur.hasOwnProperty(o) + !Ui.hasOwnProperty(o) ) { if (this.settings.throwOnError) - throw new r( + throw new i( 'Undefined control sequence: ' + o, - i + r ); (n = this.formatUnsupportedCmd( o @@ -110066,17 +108966,17 @@ n < t; ++n ) { - var r = e[n], - i = r.text; - '-' === i && + var i = e[n], + r = i.text; + '-' === r && '-' === e[n + 1].text && (n + 1 < t && '-' === e[n + 2].text ? (e.splice(n, 3, { type: 'textord', mode: 'text', - loc: Mr.range( - r, + loc: vi.range( + i, e[n + 2] ), text: '---', @@ -110085,23 +108985,23 @@ : (e.splice(n, 2, { type: 'textord', mode: 'text', - loc: Mr.range( - r, + loc: vi.range( + i, e[n + 1] ), text: '--', }), (t -= 1))), - ("'" !== i && '`' !== i) || - e[n + 1].text !== i || + ("'" !== r && '`' !== r) || + e[n + 1].text !== r || (e.splice(n, 2, { type: 'textord', mode: 'text', - loc: Mr.range( - r, + loc: vi.range( + i, e[n + 1] ), - text: i + i, + text: r + r, }), (t -= 1)); } @@ -110112,24 +109012,24 @@ if (/^\\verb[^a-zA-Z]/.test(t)) { this.consume(); var n = t.slice(5), - i = '*' === n.charAt(0); + r = '*' === n.charAt(0); if ( - (i && (n = n.slice(1)), + (r && (n = n.slice(1)), n.length < 2 || n.charAt(0) !== n.slice(-1)) ) - throw new r( + throw new i( '\\verb assertion failed --\n please report what input caused this bug' ); return { type: 'verb', mode: 'text', body: (n = n.slice(1, -1)), - star: i, + star: r, }; } - Gr.hasOwnProperty(t[0]) && + Li.hasOwnProperty(t[0]) && !ne[this.mode][t[0]] && (this.settings.strict && 'math' === this.mode && @@ -110140,15 +109040,15 @@ '" used in math mode', e ), - (t = Gr[t[0]] + t.substr(1))); + (t = Li[t[0]] + t.substr(1))); var o, - a = Sr.exec(t); + s = Si.exec(t); if ( - (a && + (s && ('i' === (t = t.substring( 0, - a.index + s.index )) ? (t = 'ı') : 'j' === t && @@ -110165,12 +109065,12 @@ '" used in math mode', e ); - var s, + var a, A = ne[this.mode][t].group, - c = Mr.range(e); + c = vi.range(e); if ($.hasOwnProperty(A)) { var l = A; - s = { + a = { type: 'atom', mode: this.mode, family: l, @@ -110178,13 +109078,13 @@ text: t, }; } else - s = { + a = { type: A, mode: this.mode, loc: c, text: t, }; - o = s; + o = a; } else { if (!(t.charCodeAt(0) >= 128)) return null; @@ -110213,29 +109113,29 @@ (o = { type: 'textord', mode: 'text', - loc: Mr.range(e), + loc: vi.range(e), text: t, }); } - if ((this.consume(), a)) + if ((this.consume(), s)) for ( var g = 0; - g < a[0].length; + g < s[0].length; g++ ) { - var u = a[0][g]; - if (!kr[u]) - throw new r( + var u = s[0][g]; + if (!Gi[u]) + throw new i( "Unknown accent ' " + u + "'", e ); var d = - kr[u][this.mode] || - kr[u].text; + Gi[u][this.mode] || + Gi[u].text; if (!d) - throw new r( + throw new i( 'Accent ' + u + ' unsupported in ' + @@ -110246,7 +109146,7 @@ o = { type: 'accent', mode: this.mode, - loc: Mr.range(e), + loc: vi.range(e), label: d, isStretchy: !1, isShifty: !0, @@ -110258,14 +109158,14 @@ e ); })(); - Lr.endOfExpression = [ + ki.endOfExpression = [ '}', '\\endgroup', '\\end', '\\right', '&', ]; - var jr = function(e, t) { + var zi = function(e, t) { if ( !( 'string' == typeof e || @@ -110275,9 +109175,9 @@ throw new TypeError( 'KaTeX can only parse string typed expression' ); - var n = new Lr(e, t); + var n = new ki(e, t); delete n.gullet.macros.current['\\df@tag']; - var i = n.parse(); + var r = n.parse(); if ( (delete n.gullet.macros.current[ '\\current@color' @@ -110288,25 +109188,25 @@ n.gullet.macros.get('\\df@tag')) ) { if (!t.displayMode) - throw new r( + throw new i( '\\tag works only in display equations' ); n.gullet.feed('\\df@tag'), - (i = [ + (r = [ { type: 'tag', mode: 'text', - body: i, + body: r, tag: n.parse(), }, ]); } - return i; + return r; }, - zr = function(e, t, n) { + ji = function(e, t, n) { t.textContent = ''; - var r = Hr(e, n).toNode(); - t.appendChild(r); + var i = Hi(e, n).toNode(); + t.appendChild(i); }; 'undefined' != typeof document && 'CSS1Compat' !== document.compatMode && @@ -110314,96 +109214,96 @@ console.warn( "Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype." ), - (zr = function() { - throw new r( + (ji = function() { + throw new i( "KaTeX doesn't work in quirks mode." ); })); - var Pr = function(e, t, n) { - if (n.throwOnError || !(e instanceof r)) + var Pi = function(e, t, n) { + if (n.throwOnError || !(e instanceof i)) throw e; - var i = Ke.makeSpan( + var r = Ke.makeSpan( ['katex-error'], [new V(t)] ); return ( - i.setAttribute('title', e.toString()), - i.setAttribute( + r.setAttribute('title', e.toString()), + r.setAttribute( 'style', 'color:' + n.errorColor ), - i + r ); }, - Hr = function(e, t) { + Hi = function(e, t) { var n = new c(t); try { return (function(e, t, n) { - var r, - i = Tt(n); + var i, + r = Tt(n); if ('mathml' === n.output) return Dt( e, t, - i, + r, n.displayMode, !0 ); if ('html' === n.output) { - var o = yt(e, i); - r = Ke.makeSpan(['katex'], [o]); + var o = yt(e, r); + i = Ke.makeSpan(['katex'], [o]); } else { - var a = Dt( + var s = Dt( e, t, - i, + r, n.displayMode, !1 ), - s = yt(e, i); - r = Ke.makeSpan( + a = yt(e, r); + i = Ke.makeSpan( ['katex'], - [a, s] + [s, a] ); } - return Yt(r, n); - })(jr(e, n), e, n); + return Yt(i, n); + })(zi(e, n), e, n); } catch (t) { - return Pr(t, e, n); + return Pi(t, e, n); } }, - Jr = { + Ji = { version: '0.13.24', - render: zr, + render: ji, renderToString: function(e, t) { - return Hr(e, t).toMarkup(); + return Hi(e, t).toMarkup(); }, - ParseError: r, + ParseError: i, __parse: function(e, t) { var n = new c(t); - return jr(e, n); + return zi(e, n); }, - __renderToDomTree: Hr, + __renderToDomTree: Hi, __renderToHTMLTree: function(e, t) { var n = new c(t); try { return (function(e, t, n) { - var r = yt(e, Tt(n)), - i = Ke.makeSpan( + var i = yt(e, Tt(n)), + r = Ke.makeSpan( ['katex'], - [r] + [i] ); - return Yt(i, n); - })(jr(e, n), 0, n); + return Yt(r, n); + })(zi(e, n), 0, n); } catch (t) { - return Pr(t, e, n); + return Pi(t, e, n); } }, __setFontMetrics: function(e, t) { - v[e] = t; + M[e] = t; }, - __defineSymbol: re, - __defineMacro: lr, + __defineSymbol: ie, + __defineMacro: li, __domTree: { Span: P, Anchor: H, @@ -110418,30 +109318,30 @@ }), (e.exports = t()); }, - 54314: (e, t, n) => { + 85958: (e, t, n) => { 'use strict'; - var r = n(40869); - (e.exports = o), (o.wrap = r); - var i = [].slice; + var i = n(7793); + (e.exports = o), (o.wrap = i); + var r = [].slice; function o() { var e = [], t = { run: function() { var t = -1, - n = i.call(arguments, 0, -1), + n = r.call(arguments, 0, -1), o = arguments[arguments.length - 1]; if ('function' != typeof o) throw new Error( 'Expected function as last argument, not ' + o ); - function a(s) { + function s(a) { var A = e[++t], - c = i.call(arguments, 0), + c = r.call(arguments, 0), l = c.slice(1), g = n.length, u = -1; - if (s) o(s); + if (a) o(a); else { for (; ++u < g; ) (null !== l[u] && @@ -110449,14 +109349,14 @@ (l[u] = n[u]); (n = l), A - ? r(A, a).apply(null, n) + ? i(A, s).apply(null, n) : o.apply( null, [null].concat(n) ); } } - a.apply(null, [null].concat(n)); + s.apply(null, [null].concat(n)); }, use: function(n) { if ('function' != typeof n) @@ -110470,49 +109370,49 @@ return t; } }, - 40869: e => { + 7793: e => { 'use strict'; var t = [].slice; e.exports = function(e, n) { - var r; + var i; return function() { var n, - a = t.call(arguments, 0), - s = e.length > a.length; - s && a.push(i); + s = t.call(arguments, 0), + a = e.length > s.length; + a && s.push(r); try { - n = e.apply(null, a); + n = e.apply(null, s); } catch (e) { - if (s && r) throw e; - return i(e); + if (a && i) throw e; + return r(e); } - s || + a || (n && 'function' == typeof n.then - ? n.then(o, i) + ? n.then(o, r) : n instanceof Error - ? i(n) + ? r(n) : o(n)); }; - function i() { - r || ((r = !0), n.apply(null, arguments)); + function r() { + i || ((i = !0), n.apply(null, arguments)); } function o(e) { - i(null, e); + r(null, e); } }; }, - 61351: (e, t, n) => { + 72512: (e, t, n) => { 'use strict'; - var r = n(43038), - i = n(88348), - o = n(94470), - a = n(90973), - s = n(54314), - A = n(15548); + var i = n(87901), + r = n(96417), + o = n(69129), + s = n(8048), + a = n(85958), + A = n(22983); e.exports = (function e() { var t, n = [], - i = s(), + r = a(), m = {}, f = -1; return ( @@ -110527,7 +109427,7 @@ (E.freeze = y), (E.attachers = n), (E.use = function(e) { - var r; + var i; if ((C('use', t), null == e)); else if ('function' == typeof e) l.apply(null, arguments); @@ -110536,15 +109436,15 @@ throw new Error( 'Expected usable value, not `' + e + '`' ); - 'length' in e ? A(e) : i(e); + 'length' in e ? A(e) : r(e); } - r && (m.settings = o(m.settings || {}, r)); + i && (m.settings = o(m.settings || {}, i)); return E; - function i(e) { + function r(e) { A(e.plugins), - e.settings && (r = o(r || {}, e.settings)); + e.settings && (i = o(i || {}, e.settings)); } - function s(e) { + function a(e) { if ('function' == typeof e) l(e); else { if ('object' != typeof e) @@ -110553,7 +109453,7 @@ e + '`' ); - 'length' in e ? l.apply(null, e) : i(e); + 'length' in e ? l.apply(null, e) : r(e); } } function A(e) { @@ -110569,14 +109469,14 @@ e + '`' ); - for (; ++t < e.length; ) s(e[t]); + for (; ++t < e.length; ) a(e[t]); } } function l(e, t) { - var r = B(e); - r - ? (a(r[1]) && a(t) && (t = o(!0, r[1], t)), - (r[1] = t)) + var i = B(e); + i + ? (s(i[1]) && s(t) && (t = o(!0, i[1], t)), + (i[1] = t)) : n.push(c.call(arguments)); } }), @@ -110591,22 +109491,22 @@ }), (E.stringify = function(e, t) { var n, - r = A(t); + i = A(t); if ( (y(), h('stringify', (n = E.Compiler)), I(e), u(n, 'compile')) ) - return new n(e, r).compile(); - return n(e, r); + return new n(e, i).compile(); + return n(e, i); }), (E.run = w), (E.runSync = function(e, t) { - var n, i; - return w(e, t, o), p('runSync', 'run', i), n; + var n, r; + return w(e, t, o), p('runSync', 'run', r), n; function o(e, t) { - (i = !0), (n = t), r(e); + (r = !0), (n = t), i(e); } }), (E.process = b), @@ -110616,30 +109516,30 @@ y(), d('processSync', E.Parser), h('processSync', E.Compiler), - b((t = A(e)), i), + b((t = A(e)), r), p('processSync', 'process', n), t ); - function i(e) { - (n = !0), r(e); + function r(e) { + (n = !0), i(e); } }), E ); function E() { - for (var t = e(), r = -1; ++r < n.length; ) - t.use.apply(null, n[r]); + for (var t = e(), i = -1; ++i < n.length; ) + t.use.apply(null, n[i]); return t.data(o(!0, {}, m)), t; } function y() { - var e, r; + var e, i; if (t) return E; for (; ++f < n.length; ) !1 !== (e = n[f])[1] && (!0 === e[1] && (e[1] = void 0), 'function' == - typeof (r = e[0].apply(E, e.slice(1))) && - i.use(r)); + typeof (i = e[0].apply(E, e.slice(1))) && + r.use(i)); return (t = !0), (f = 1 / 0), E; } function B(e) { @@ -110655,14 +109555,14 @@ ((n = t), (t = null)), !n) ) - return new Promise(r); - function r(r, o) { - i.run(e, A(t), function(t, i, a) { - (i = i || e), - t ? o(t) : r ? r(i) : n(null, i, a); + return new Promise(i); + function i(i, o) { + r.run(e, A(t), function(t, r, s) { + (r = r || e), + t ? o(t) : i ? i(r) : n(null, r, s); }); } - r(null, n); + i(null, n); } function b(e, t) { if ( @@ -110672,10 +109572,10 @@ !t) ) return new Promise(n); - function n(n, r) { - var i = A(e); - g.run(E, {file: i}, function(e) { - e ? r(e) : n ? n(i) : t(null, i); + function n(n, i) { + var r = A(e); + g.run(E, {file: r}, function(e) { + e ? i(e) : n ? n(r) : t(null, r); }); } n(null, t); @@ -110683,19 +109583,19 @@ })().freeze(); var c = [].slice, l = {}.hasOwnProperty, - g = s() + g = a() .use(function(e, t) { t.tree = e.parse(t.file); }) .use(function(e, t, n) { - e.run(t.tree, t.file, function(e, r, i) { - e ? n(e) : ((t.tree = r), (t.file = i), n()); + e.run(t.tree, t.file, function(e, i, r) { + e ? n(e) : ((t.tree = i), (t.file = r), n()); }); }) .use(function(e, t) { var n = e.stringify(t.tree, t.file); null == n || - ('string' == typeof n || i(n) + ('string' == typeof n || r(n) ? ('value' in t.file && (t.file.value = n), (t.file.contents = n)) : (t.file.result = n)); @@ -110745,7 +109645,7 @@ ); } }, - 94861: e => { + 80298: e => { 'use strict'; function t(e) { if (null == e) return n; @@ -110760,10 +109660,10 @@ return 'length' in e ? (function(e) { var n = [], - r = -1; - for (; ++r < e.length; ) n[r] = t(e[r]); - return i; - function i() { + i = -1; + for (; ++i < e.length; ) n[i] = t(e[i]); + return r; + function r() { for (var e = -1; ++e < n.length; ) if (n[e].apply(this, arguments)) return !0; @@ -110788,56 +109688,56 @@ } e.exports = t; }, - 68350: e => { + 64956: e => { 'use strict'; var t = {}.hasOwnProperty; function n(e) { return ( (e && 'object' == typeof e) || (e = {}), - i(e.line) + ':' + i(e.column) + r(e.line) + ':' + r(e.column) ); } - function r(e) { + function i(e) { return ( (e && 'object' == typeof e) || (e = {}), n(e.start) + '-' + n(e.end) ); } - function i(e) { + function r(e) { return e && 'number' == typeof e ? e : 1; } e.exports = function(e) { if (!e || 'object' != typeof e) return ''; if (t.call(e, 'position') || t.call(e, 'type')) - return r(e.position); - if (t.call(e, 'start') || t.call(e, 'end')) return r(e); + return i(e.position); + if (t.call(e, 'start') || t.call(e, 'end')) return i(e); if (t.call(e, 'line') || t.call(e, 'column')) return n(e); return ''; }; }, - 62454: e => { + 70498: e => { e.exports = function(e) { return e; }; }, - 51338: (e, t, n) => { + 32084: (e, t, n) => { 'use strict'; e.exports = A; - var r = n(94861), - i = n(62454), + var i = n(80298), + r = n(70498), o = !0, - a = 'skip', - s = !1; + s = 'skip', + a = !1; function A(e, t, n, A) { var c, l; 'function' == typeof t && 'function' != typeof n && ((A = n), (n = t), (t = null)), - (l = r(t)), + (l = i(t)), (c = A ? -1 : 1), - (function e(r, g, u) { + (function e(i, g, u) { var d, - h = 'object' == typeof r && null !== r ? r : {}; + h = 'object' == typeof i && null !== i ? i : {}; 'string' == typeof h.type && ((d = 'string' == typeof h.tagName @@ -110847,16 +109747,16 @@ : void 0), (C.displayName = 'node (' + - i(h.type + (d ? '<' + d + '>' : '')) + + r(h.type + (d ? '<' + d + '>' : '')) + ')')); return C; function C() { - var i, + var r, d, - h = u.concat(r), + h = u.concat(i), C = []; if ( - (!t || l(r, g, u[u.length - 1] || null)) && + (!t || l(i, g, u[u.length - 1] || null)) && ((C = (function(e) { if ( null !== e && @@ -110866,68 +109766,68 @@ return e; if ('number' == typeof e) return [o, e]; return [e]; - })(n(r, u))), - C[0] === s) + })(n(i, u))), + C[0] === a) ) return C; - if (r.children && C[0] !== a) + if (i.children && C[0] !== s) for ( - d = (A ? r.children.length : -1) + c; - d > -1 && d < r.children.length; + d = (A ? i.children.length : -1) + c; + d > -1 && d < i.children.length; ) { if ( - ((i = e(r.children[d], d, h)()), - i[0] === s) + ((r = e(i.children[d], d, h)()), + r[0] === a) ) - return i; + return r; d = - 'number' == typeof i[1] - ? i[1] + 'number' == typeof r[1] + ? r[1] : d + c; } return C; } })(e, null, [])(); } - (A.CONTINUE = true), (A.SKIP = a), (A.EXIT = s); + (A.CONTINUE = true), (A.SKIP = s), (A.EXIT = a); }, - 54751: (e, t, n) => { + 34863: (e, t, n) => { 'use strict'; - e.exports = s; - var r = n(51338), - i = r.CONTINUE, - o = r.SKIP, - a = r.EXIT; - function s(e, t, n, i) { + e.exports = a; + var i = n(32084), + r = i.CONTINUE, + o = i.SKIP, + s = i.EXIT; + function a(e, t, n, r) { 'function' == typeof t && 'function' != typeof n && - ((i = n), (n = t), (t = null)), - r( + ((r = n), (n = t), (t = null)), + i( e, t, function(e, t) { - var r = t[t.length - 1], - i = r ? r.children.indexOf(e) : null; - return n(e, i, r); + var i = t[t.length - 1], + r = i ? i.children.indexOf(e) : null; + return n(e, r, i); }, - i + r ); } - (s.CONTINUE = i), (s.SKIP = o), (s.EXIT = a); + (a.CONTINUE = r), (a.SKIP = o), (a.EXIT = s); }, - 19236: (e, t, n) => { + 47972: (e, t, n) => { 'use strict'; - var r = n(68350); - function i() {} - (e.exports = a), - (i.prototype = Error.prototype), - (a.prototype = new i()); - var o = a.prototype; - function a(e, t, n) { - var i, o, a; + var i = n(64956); + function r() {} + (e.exports = s), + (r.prototype = Error.prototype), + (s.prototype = new r()); + var o = s.prototype; + function s(e, t, n) { + var r, o, s; 'string' == typeof t && ((n = t), (t = null)), - (i = (function(e) { + (r = (function(e) { var t, n = [null, null]; 'string' == typeof e && @@ -110937,25 +109837,25 @@ (n[1] = e.slice(t + 1)))); return n; })(n)), - (o = r(t) || '1:1'), - (a = { + (o = i(t) || '1:1'), + (s = { start: {line: null, column: null}, end: {line: null, column: null}, }), t && t.position && (t = t.position), t && (t.start - ? ((a = t), (t = t.start)) - : (a.start = t)), + ? ((s = t), (t = t.start)) + : (s.start = t)), e.stack && ((this.stack = e.stack), (e = e.message)), (this.message = e), (this.name = o), (this.reason = e), (this.line = t ? t.line : null), (this.column = t ? t.column : null), - (this.location = a), - (this.source = i[0]), - (this.ruleId = i[1]); + (this.location = s), + (this.source = r[0]), + (this.ruleId = r[1]); } (o.file = ''), (o.name = ''), @@ -110966,18 +109866,18 @@ (o.column = null), (o.line = null); }, - 15548: (e, t, n) => { + 22983: (e, t, n) => { 'use strict'; - e.exports = n(10079); + e.exports = n(34896); }, - 67353: (e, t, n) => { + 71381: (e, t, n) => { 'use strict'; - var r = n(26015), - i = n(22406), - o = n(88348); + var i = n(98979), + r = n(72675), + o = n(96417); e.exports = A; - var a = {}.hasOwnProperty, - s = [ + var s = {}.hasOwnProperty, + a = [ 'history', 'path', 'basename', @@ -110996,21 +109896,21 @@ this.data = {}, this.messages = [], this.history = [], - this.cwd = i.cwd(), + this.cwd = r.cwd(), n = -1; - ++n < s.length; + ++n < a.length; ) - (t = s[n]), a.call(e, t) && (this[t] = e[t]); - for (t in e) s.indexOf(t) < 0 && (this[t] = e[t]); + (t = a[n]), s.call(e, t) && (this[t] = e[t]); + for (t in e) a.indexOf(t) < 0 && (this[t] = e[t]); } function c(e, t) { - if (e && e.indexOf(r.sep) > -1) + if (e && e.indexOf(i.sep) > -1) throw new Error( '`' + t + '` cannot be a path: did not expect `' + - r.sep + + i.sep + '`' ); } @@ -111038,30 +109938,30 @@ Object.defineProperty(A.prototype, 'dirname', { get: function() { return 'string' == typeof this.path - ? r.dirname(this.path) + ? i.dirname(this.path) : void 0; }, set: function(e) { g(this.path, 'dirname'), - (this.path = r.join(e || '', this.basename)); + (this.path = i.join(e || '', this.basename)); }, }), Object.defineProperty(A.prototype, 'basename', { get: function() { return 'string' == typeof this.path - ? r.basename(this.path) + ? i.basename(this.path) : void 0; }, set: function(e) { l(e, 'basename'), c(e, 'basename'), - (this.path = r.join(this.dirname || '', e)); + (this.path = i.join(this.dirname || '', e)); }, }), Object.defineProperty(A.prototype, 'extname', { get: function() { return 'string' == typeof this.path - ? r.extname(this.path) + ? i.extname(this.path) : void 0; }, set: function(e) { @@ -111075,7 +109975,7 @@ '`extname` cannot contain multiple dots' ); } - this.path = r.join( + this.path = i.join( this.dirname, this.stem + (e || '') ); @@ -111084,54 +109984,54 @@ Object.defineProperty(A.prototype, 'stem', { get: function() { return 'string' == typeof this.path - ? r.basename(this.path, this.extname) + ? i.basename(this.path, this.extname) : void 0; }, set: function(e) { l(e, 'stem'), c(e, 'stem'), - (this.path = r.join( + (this.path = i.join( this.dirname || '', e + (this.extname || '') )); }, }); }, - 10079: (e, t, n) => { + 34896: (e, t, n) => { 'use strict'; - var r = n(19236), - i = n(67353); - (e.exports = i), - (i.prototype.message = function(e, t, n) { - var i = new r(e, t, n); + var i = n(47972), + r = n(71381); + (e.exports = r), + (r.prototype.message = function(e, t, n) { + var r = new i(e, t, n); this.path && - ((i.name = this.path + ':' + i.name), - (i.file = this.path)); - return (i.fatal = !1), this.messages.push(i), i; + ((r.name = this.path + ':' + r.name), + (r.file = this.path)); + return (r.fatal = !1), this.messages.push(r), r; }), - (i.prototype.info = function() { + (r.prototype.info = function() { var e = this.message.apply(this, arguments); return (e.fatal = null), e; }), - (i.prototype.fail = function() { + (r.prototype.fail = function() { var e = this.message.apply(this, arguments); throw ((e.fatal = !0), e); }); }, - 26015: (e, t) => { + 98979: (e, t) => { 'use strict'; function n(e) { var t, n; return ( - r(e), + i(e), (t = 47 === e.charCodeAt(0)), (n = (function(e, t) { var n, - r, - i = '', + i, + r = '', o = 0, - a = -1, - s = 0, + s = -1, + a = 0, A = -1; for (; ++A <= e.length; ) { if (A < e.length) n = e.charCodeAt(A); @@ -111140,53 +110040,53 @@ n = 47; } if (47 === n) { - if (a === A - 1 || 1 === s); - else if (a !== A - 1 && 2 === s) { + if (s === A - 1 || 1 === a); + else if (s !== A - 1 && 2 === a) { if ( - i.length < 2 || + r.length < 2 || 2 !== o || - 46 !== i.charCodeAt(i.length - 1) || - 46 !== i.charCodeAt(i.length - 2) + 46 !== r.charCodeAt(r.length - 1) || + 46 !== r.charCodeAt(r.length - 2) ) - if (i.length > 2) { + if (r.length > 2) { if ( - (r = i.lastIndexOf('/')) !== - i.length - 1 + (i = r.lastIndexOf('/')) !== + r.length - 1 ) { - r < 0 - ? ((i = ''), (o = 0)) + i < 0 + ? ((r = ''), (o = 0)) : (o = - (i = i.slice( + (r = r.slice( 0, - r + i )).length - 1 - - i.lastIndexOf( + r.lastIndexOf( '/' )), - (a = A), - (s = 0); + (s = A), + (a = 0); continue; } - } else if (i.length) { - (i = ''), + } else if (r.length) { + (r = ''), (o = 0), - (a = A), - (s = 0); + (s = A), + (a = 0); continue; } t && - ((i = i.length ? i + '/..' : '..'), + ((r = r.length ? r + '/..' : '..'), (o = 2)); } else - i.length - ? (i += '/' + e.slice(a + 1, A)) - : (i = e.slice(a + 1, A)), - (o = A - a - 1); - (a = A), (s = 0); - } else 46 === n && s > -1 ? s++ : (s = -1); + r.length + ? (r += '/' + e.slice(s + 1, A)) + : (r = e.slice(s + 1, A)), + (o = A - s - 1); + (s = A), (a = 0); + } else 46 === n && a > -1 ? a++ : (a = -1); } - return i; + return r; })(e, !t)), n.length || t || (n = '.'), n.length && @@ -111195,7 +110095,7 @@ t ? '/' + n : n ); } - function r(e) { + function i(e) { if ('string' != typeof e) throw new TypeError( 'Path must be a string. Received ' + @@ -111204,52 +110104,52 @@ } (t.basename = function(e, t) { var n, - i, + r, o, - a, - s = 0, + s, + a = 0, A = -1; if (void 0 !== t && 'string' != typeof t) throw new TypeError('"ext" argument must be a string'); if ( - (r(e), + (i(e), (n = e.length), void 0 === t || !t.length || t.length > e.length) ) { for (; n--; ) if (47 === e.charCodeAt(n)) { if (o) { - s = n + 1; + a = n + 1; break; } } else A < 0 && ((o = !0), (A = n + 1)); - return A < 0 ? '' : e.slice(s, A); + return A < 0 ? '' : e.slice(a, A); } if (t === e) return ''; - (i = -1), (a = t.length - 1); + (r = -1), (s = t.length - 1); for (; n--; ) if (47 === e.charCodeAt(n)) { if (o) { - s = n + 1; + a = n + 1; break; } } else - i < 0 && ((o = !0), (i = n + 1)), - a > -1 && - (e.charCodeAt(n) === t.charCodeAt(a--) - ? a < 0 && (A = n) - : ((a = -1), (A = i))); - s === A ? (A = i) : A < 0 && (A = e.length); - return e.slice(s, A); + r < 0 && ((o = !0), (r = n + 1)), + s > -1 && + (e.charCodeAt(n) === t.charCodeAt(s--) + ? s < 0 && (A = n) + : ((s = -1), (A = r))); + a === A ? (A = r) : A < 0 && (A = e.length); + return e.slice(a, A); }), (t.dirname = function(e) { - var t, n, i; - if ((r(e), !e.length)) return '.'; - (t = -1), (i = e.length); - for (; --i; ) - if (47 === e.charCodeAt(i)) { + var t, n, r; + if ((i(e), !e.length)) return '.'; + (t = -1), (r = e.length); + for (; --r; ) + if (47 === e.charCodeAt(r)) { if (n) { - t = i; + t = r; break; } } else n || (n = !0); @@ -111264,38 +110164,38 @@ (t.extname = function(e) { var t, n, - i, + r, o = -1, - a = 0, - s = -1, + s = 0, + a = -1, A = 0; - r(e), (i = e.length); - for (; i--; ) - if (47 !== (n = e.charCodeAt(i))) - s < 0 && ((t = !0), (s = i + 1)), + i(e), (r = e.length); + for (; r--; ) + if (47 !== (n = e.charCodeAt(r))) + a < 0 && ((t = !0), (a = r + 1)), 46 === n ? o < 0 - ? (o = i) + ? (o = r) : 1 !== A && (A = 1) : o > -1 && (A = -1); else if (t) { - a = i + 1; + s = r + 1; break; } if ( o < 0 || - s < 0 || + a < 0 || 0 === A || - (1 === A && o === s - 1 && o === a + 1) + (1 === A && o === a - 1 && o === s + 1) ) return ''; - return e.slice(o, s); + return e.slice(o, a); }), (t.join = function() { var e, t = -1; for (; ++t < arguments.length; ) - r(arguments[t]), + i(arguments[t]), arguments[t] && (e = void 0 === e @@ -111305,19 +110205,19 @@ }), (t.sep = '/'); }, - 22406: (e, t) => { + 72675: (e, t) => { 'use strict'; t.cwd = function() { return '/'; }; }, - 13322: (e, t, n) => { + 5573: (e, t, n) => { 'use strict'; - var r = n(92114), - i = n(7045), - o = n(92471), - a = {2: !0, 1: !1, 0: null}; - function s(e) { + var i = n(92268), + r = n(96328), + o = n(49620), + s = {2: !0, 1: !1, 0: null}; + function a(e) { return e.charAt(1).toUpperCase(); } e.exports = function(e) { @@ -111328,10 +110228,10 @@ var c = t.fragment ? 'parseFragment' : 'parse', l = t.emitParseErrors ? function(n) { - var r, - i, + var i, + r, c = n.code, - l = c.replace(/-[a-z]/g, s), + l = c.replace(/-[a-z]/g, a), g = t[l], u = null == g || g, d = @@ -111355,10 +110255,10 @@ .replace(/%c(?:-(\d+))?/g, p) .replace(/%x/g, m); } - function p(t, r) { - var i = r ? -parseInt(r, 10) : 0, + function p(t, i) { + var r = i ? -parseInt(i, 10) : 0, o = e.charAt( - n.startOffset + i + n.startOffset + r ); return '`' === o ? '` ` `' : o; } @@ -111372,30 +110272,30 @@ ); } d && - ((r = o[l] || { + ((i = o[l] || { reason: '', description: '', }), - ((i = A.message(I(r.reason), { + ((r = A.message(I(i.reason), { start: h, end: C, })).source = 'parse-error'), - (i.ruleId = c), - (i.fatal = a[d]), - (i.note = I(r.description)), - (i.url = - !1 === r.url + (r.ruleId = c), + (r.fatal = s[d]), + (r.note = I(i.description)), + (r.url = + !1 === i.url ? null : 'https://html.spec.whatwg.org/multipage/parsing.html#parse-error-' + c)); } : null, - g = new i({ + g = new r({ sourceCodeLocationInfo: n, onParseError: l, scriptingEnabled: !1, }); - return r(g[c](e), { + return i(g[c](e), { space: t.space, file: A, verbose: t.verbose, @@ -111403,34 +110303,34 @@ }); }; }, - 10043: (e, t, n) => { + 38109: (e, t, n) => { 'use strict'; - var r, - i = n(82747), - o = n(10438), - a = n(48135); + var i, + r = n(15241), + o = n(55504), + s = n(67298); e.exports = function(e) { var t = this.data(); - !r && + !i && ((this.Parser && this.Parser.prototype && this.Parser.prototype.blockTokenizers) || (this.Compiler && this.Compiler.prototype && this.Compiler.prototype.visitors)) && - ((r = !0), + ((i = !0), console.warn( '[remark-gfm] Warning: please upgrade to remark 13 to use this plugin' )); function n(e, n) { t[e] ? t[e].push(n) : (t[e] = [n]); } - n('micromarkExtensions', i(e)), + n('micromarkExtensions', r(e)), n('fromMarkdownExtensions', o), - n('toMarkdownExtensions', a(e)); + n('toMarkdownExtensions', s(e)); }; }, - 64952: e => { + 62721: e => { 'use strict'; function t(e) { if (null == e) return n; @@ -111445,10 +110345,10 @@ return 'length' in e ? (function(e) { var n = [], - r = -1; - for (; ++r < e.length; ) n[r] = t(e[r]); - return i; - function i() { + i = -1; + for (; ++i < e.length; ) n[i] = t(e[i]); + return r; + function r() { for (var e = -1; ++e < n.length; ) if (n[e].apply(this, arguments)) return !0; @@ -111473,29 +110373,29 @@ } e.exports = t; }, - 61631: e => { + 62561: e => { e.exports = function(e) { return e; }; }, - 993: (e, t, n) => { + 24084: (e, t, n) => { 'use strict'; e.exports = A; - var r = n(64952), - i = n(61631), + var i = n(62721), + r = n(62561), o = !0, - a = 'skip', - s = !1; + s = 'skip', + a = !1; function A(e, t, n, A) { var c, l; 'function' == typeof t && 'function' != typeof n && ((A = n), (n = t), (t = null)), - (l = r(t)), + (l = i(t)), (c = A ? -1 : 1), - (function e(r, g, u) { + (function e(i, g, u) { var d, - h = 'object' == typeof r && null !== r ? r : {}; + h = 'object' == typeof i && null !== i ? i : {}; 'string' == typeof h.type && ((d = 'string' == typeof h.tagName @@ -111505,16 +110405,16 @@ : void 0), (C.displayName = 'node (' + - i(h.type + (d ? '<' + d + '>' : '')) + + r(h.type + (d ? '<' + d + '>' : '')) + ')')); return C; function C() { - var i, + var r, d, - h = u.concat(r), + h = u.concat(i), C = []; if ( - (!t || l(r, g, u[u.length - 1] || null)) && + (!t || l(i, g, u[u.length - 1] || null)) && ((C = (function(e) { if ( null !== e && @@ -111524,668 +110424,104 @@ return e; if ('number' == typeof e) return [o, e]; return [e]; - })(n(r, u))), - C[0] === s) + })(n(i, u))), + C[0] === a) ) return C; - if (r.children && C[0] !== a) + if (i.children && C[0] !== s) for ( - d = (A ? r.children.length : -1) + c; - d > -1 && d < r.children.length; + d = (A ? i.children.length : -1) + c; + d > -1 && d < i.children.length; ) { if ( - ((i = e(r.children[d], d, h)()), - i[0] === s) + ((r = e(i.children[d], d, h)()), + r[0] === a) ) - return i; + return r; d = - 'number' == typeof i[1] - ? i[1] + 'number' == typeof r[1] + ? r[1] : d + c; } return C; } })(e, null, [])(); } - (A.CONTINUE = true), (A.SKIP = a), (A.EXIT = s); + (A.CONTINUE = true), (A.SKIP = s), (A.EXIT = a); }, - 79044: (e, t, n) => { + 74411: (e, t, n) => { 'use strict'; - e.exports = s; - var r = n(993), - i = r.CONTINUE, - o = r.SKIP, - a = r.EXIT; - function s(e, t, n, i) { + e.exports = a; + var i = n(24084), + r = i.CONTINUE, + o = i.SKIP, + s = i.EXIT; + function a(e, t, n, r) { 'function' == typeof t && 'function' != typeof n && - ((i = n), (n = t), (t = null)), - r( + ((r = n), (n = t), (t = null)), + i( e, t, function(e, t) { - var r = t[t.length - 1], - i = r ? r.children.indexOf(e) : null; - return n(e, i, r); + var i = t[t.length - 1], + r = i ? i.children.indexOf(e) : null; + return n(e, r, i); }, - i + r ); } - (s.CONTINUE = i), (s.SKIP = o), (s.EXIT = a); + (a.CONTINUE = r), (a.SKIP = o), (a.EXIT = s); }, - 93545: (e, t, n) => { + 35092: (e, t, n) => { 'use strict'; - var r, - i = n(50444), - o = n(54550), - a = n(74749); + var i, + r = n(70305), + o = n(85689), + s = n(72889); e.exports = function() { var e = this.data(); - !r && + !i && ((this.Parser && this.Parser.prototype && this.Parser.prototype.blockTokenizers) || (this.Compiler && this.Compiler.prototype && this.Compiler.prototype.visitors)) && - ((r = !0), + ((i = !0), console.warn( '[remark-math] Warning: please upgrade to remark 13 to use this plugin' )); function t(t, n) { e[t] ? e[t].push(n) : (e[t] = [n]); } - t('micromarkExtensions', i), + t('micromarkExtensions', r), t('fromMarkdownExtensions', o), - t('toMarkdownExtensions', a); + t('toMarkdownExtensions', s); }; }, - 96464: e => { + 11228: e => { 'use strict'; var t, n = ''; - e.exports = function(e, r) { + e.exports = function(e, i) { if ('string' != typeof e) throw new TypeError('expected a string'); - if (1 === r) return e; - if (2 === r) return e + e; - var i = e.length * r; + if (1 === i) return e; + if (2 === i) return e + e; + var r = e.length * i; if (t !== e || void 0 === t) (t = e), (n = ''); - else if (n.length >= i) return n.substr(0, i); - for (; i > n.length && r > 1; ) - 1 & r && (n += e), (r >>= 1), (e += e); - return (n = (n += e).substr(0, i)); - }; - }, - 67771: (e, t, n) => { - 'use strict'; - var r = n(56633), - i = n(12296), - o = n(31044)(), - a = n(27296), - s = n(14453), - A = r('%Math.floor%'); - e.exports = function(e, t) { - if ('function' != typeof e) - throw new s('`fn` is not a function'); - if ( - 'number' != typeof t || - t < 0 || - t > 4294967295 || - A(t) !== t - ) - throw new s( - '`length` must be a positive 32-bit integer' - ); - var n = arguments.length > 2 && !!arguments[2], - r = !0, - c = !0; - if ('length' in e && a) { - var l = a(e, 'length'); - l && !l.configurable && (r = !1), - l && !l.writable && (c = !1); - } - return ( - (r || c || !n) && - (o ? i(e, 'length', t, !0, !0) : i(e, 'length', t)), - e - ); - }; - }, - 83623: e => { - 'use strict'; - var t = 'Function.prototype.bind called on incompatible ', - n = Object.prototype.toString, - r = Math.max, - i = '[object Function]', - o = function(e, t) { - for (var n = [], r = 0; r < e.length; r += 1) - n[r] = e[r]; - for (var i = 0; i < t.length; i += 1) - n[i + e.length] = t[i]; - return n; - }, - a = function(e, t) { - for ( - var n = [], r = t || 0, i = 0; - r < e.length; - r += 1, i += 1 - ) - n[i] = e[r]; - return n; - }, - s = function(e, t) { - for (var n = '', r = 0; r < e.length; r += 1) - (n += e[r]), r + 1 < e.length && (n += t); - return n; - }; - e.exports = function(e) { - var A = this; - if ('function' != typeof A || n.apply(A) !== i) - throw new TypeError(t + A); - for ( - var c, - l = a(arguments, 1), - g = function() { - if (this instanceof c) { - var t = A.apply(this, o(l, arguments)); - return Object(t) === t ? t : this; - } - return A.apply(e, o(l, arguments)); - }, - u = r(0, A.length - l.length), - d = [], - h = 0; - h < u; - h++ - ) - d[h] = '$' + h; - if ( - ((c = Function( - 'binder', - 'return function (' + - s(d, ',') + - '){ return binder.apply(this,arguments); }' - )(g)), - A.prototype) - ) { - var C = function() {}; - (C.prototype = A.prototype), - (c.prototype = new C()), - (C.prototype = null); - } - return c; - }; - }, - 19779: (e, t, n) => { - 'use strict'; - var r = n(83623); - e.exports = Function.prototype.bind || r; - }, - 56633: (e, t, n) => { - 'use strict'; - var r, - i = n(81648), - o = n(53981), - a = n(24726), - s = n(26712), - A = n(33464), - c = n(14453), - l = n(43915), - g = Function, - u = function(e) { - try { - return g( - '"use strict"; return (' + e + ').constructor;' - )(); - } catch (e) {} - }, - d = Object.getOwnPropertyDescriptor; - if (d) - try { - d({}, ''); - } catch (e) { - d = null; - } - var h = function() { - throw new c(); - }, - C = d - ? (function() { - try { - return h; - } catch (e) { - try { - return d(arguments, 'callee').get; - } catch (e) { - return h; - } - } - })() - : h, - I = n(45045)(), - p = n(28185)(), - m = - Object.getPrototypeOf || - (p - ? function(e) { - return e.__proto__; - } - : null), - f = {}, - E = - 'undefined' != typeof Uint8Array && m - ? m(Uint8Array) - : r, - y = { - __proto__: null, - '%AggregateError%': - 'undefined' == typeof AggregateError - ? r - : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': - 'undefined' == typeof ArrayBuffer ? r : ArrayBuffer, - '%ArrayIteratorPrototype%': - I && m ? m([][Symbol.iterator]()) : r, - '%AsyncFromSyncIteratorPrototype%': r, - '%AsyncFunction%': f, - '%AsyncGenerator%': f, - '%AsyncGeneratorFunction%': f, - '%AsyncIteratorPrototype%': f, - '%Atomics%': - 'undefined' == typeof Atomics ? r : Atomics, - '%BigInt%': 'undefined' == typeof BigInt ? r : BigInt, - '%BigInt64Array%': - 'undefined' == typeof BigInt64Array - ? r - : BigInt64Array, - '%BigUint64Array%': - 'undefined' == typeof BigUint64Array - ? r - : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': - 'undefined' == typeof DataView ? r : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': i, - '%eval%': eval, - '%EvalError%': o, - '%Float32Array%': - 'undefined' == typeof Float32Array - ? r - : Float32Array, - '%Float64Array%': - 'undefined' == typeof Float64Array - ? r - : Float64Array, - '%FinalizationRegistry%': - 'undefined' == typeof FinalizationRegistry - ? r - : FinalizationRegistry, - '%Function%': g, - '%GeneratorFunction%': f, - '%Int8Array%': - 'undefined' == typeof Int8Array ? r : Int8Array, - '%Int16Array%': - 'undefined' == typeof Int16Array ? r : Int16Array, - '%Int32Array%': - 'undefined' == typeof Int32Array ? r : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': - I && m ? m(m([][Symbol.iterator]())) : r, - '%JSON%': 'object' == typeof JSON ? JSON : r, - '%Map%': 'undefined' == typeof Map ? r : Map, - '%MapIteratorPrototype%': - 'undefined' != typeof Map && I && m - ? m(new Map()[Symbol.iterator]()) - : r, - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': - 'undefined' == typeof Promise ? r : Promise, - '%Proxy%': 'undefined' == typeof Proxy ? r : Proxy, - '%RangeError%': a, - '%ReferenceError%': s, - '%Reflect%': - 'undefined' == typeof Reflect ? r : Reflect, - '%RegExp%': RegExp, - '%Set%': 'undefined' == typeof Set ? r : Set, - '%SetIteratorPrototype%': - 'undefined' != typeof Set && I && m - ? m(new Set()[Symbol.iterator]()) - : r, - '%SharedArrayBuffer%': - 'undefined' == typeof SharedArrayBuffer - ? r - : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': - I && m ? m(''[Symbol.iterator]()) : r, - '%Symbol%': I ? Symbol : r, - '%SyntaxError%': A, - '%ThrowTypeError%': C, - '%TypedArray%': E, - '%TypeError%': c, - '%Uint8Array%': - 'undefined' == typeof Uint8Array ? r : Uint8Array, - '%Uint8ClampedArray%': - 'undefined' == typeof Uint8ClampedArray - ? r - : Uint8ClampedArray, - '%Uint16Array%': - 'undefined' == typeof Uint16Array ? r : Uint16Array, - '%Uint32Array%': - 'undefined' == typeof Uint32Array ? r : Uint32Array, - '%URIError%': l, - '%WeakMap%': - 'undefined' == typeof WeakMap ? r : WeakMap, - '%WeakRef%': - 'undefined' == typeof WeakRef ? r : WeakRef, - '%WeakSet%': - 'undefined' == typeof WeakSet ? r : WeakSet, - }; - if (m) - try { - null.error; - } catch (e) { - var B = m(m(e)); - y['%Error.prototype%'] = B; - } - var w = function e(t) { - var n; - if ('%AsyncFunction%' === t) - n = u('async function () {}'); - else if ('%GeneratorFunction%' === t) - n = u('function* () {}'); - else if ('%AsyncGeneratorFunction%' === t) - n = u('async function* () {}'); - else if ('%AsyncGenerator%' === t) { - var r = e('%AsyncGeneratorFunction%'); - r && (n = r.prototype); - } else if ('%AsyncIteratorPrototype%' === t) { - var i = e('%AsyncGenerator%'); - i && m && (n = m(i.prototype)); - } - return (y[t] = n), n; - }, - b = { - __proto__: null, - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': [ - 'Array', - 'prototype', - 'entries', - ], - '%ArrayProto_forEach%': [ - 'Array', - 'prototype', - 'forEach', - ], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': [ - 'AsyncFunction', - 'prototype', - ], - '%AsyncGenerator%': [ - 'AsyncGeneratorFunction', - 'prototype', - ], - '%AsyncGeneratorPrototype%': [ - 'AsyncGeneratorFunction', - 'prototype', - 'prototype', - ], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': [ - 'Float32Array', - 'prototype', - ], - '%Float64ArrayPrototype%': [ - 'Float64Array', - 'prototype', - ], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': [ - 'GeneratorFunction', - 'prototype', - 'prototype', - ], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': [ - 'Object', - 'prototype', - 'toString', - ], - '%ObjProto_valueOf%': [ - 'Object', - 'prototype', - 'valueOf', - ], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': [ - 'ReferenceError', - 'prototype', - ], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': [ - 'SharedArrayBuffer', - 'prototype', - ], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': [ - 'Uint8ClampedArray', - 'prototype', - ], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'], - }, - v = n(19779), - M = n(48824), - N = v.call(Function.call, Array.prototype.concat), - S = v.call(Function.apply, Array.prototype.splice), - Q = v.call(Function.call, String.prototype.replace), - F = v.call(Function.call, String.prototype.slice), - x = v.call(Function.call, RegExp.prototype.exec), - D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - T = /\\(\\)?/g, - Y = function(e) { - var t = F(e, 0, 1), - n = F(e, -1); - if ('%' === t && '%' !== n) - throw new A( - 'invalid intrinsic syntax, expected closing `%`' - ); - if ('%' === n && '%' !== t) - throw new A( - 'invalid intrinsic syntax, expected opening `%`' - ); - var r = []; - return ( - Q(e, D, function(e, t, n, i) { - r[r.length] = n ? Q(i, T, '$1') : t || e; - }), - r - ); - }, - R = function(e, t) { - var n, - r = e; - if ( - (M(b, r) && (r = '%' + (n = b[r])[0] + '%'), - M(y, r)) - ) { - var i = y[r]; - if ((i === f && (i = w(r)), void 0 === i && !t)) - throw new c( - 'intrinsic ' + - e + - ' exists, but is not available. Please file an issue!' - ); - return {alias: n, name: r, value: i}; - } - throw new A('intrinsic ' + e + ' does not exist!'); - }; - e.exports = function(e, t) { - if ('string' != typeof e || 0 === e.length) - throw new c( - 'intrinsic name must be a non-empty string' - ); - if (arguments.length > 1 && 'boolean' != typeof t) - throw new c( - '"allowMissing" argument must be a boolean' - ); - if (null === x(/^%?[^%]*%?$/, e)) - throw new A( - '`%` may not be present anywhere but at the beginning and end of the intrinsic name' - ); - var n = Y(e), - r = n.length > 0 ? n[0] : '', - i = R('%' + r + '%', t), - o = i.name, - a = i.value, - s = !1, - l = i.alias; - l && ((r = l[0]), S(n, N([0, 1], l))); - for (var g = 1, u = !0; g < n.length; g += 1) { - var h = n[g], - C = F(h, 0, 1), - I = F(h, -1); - if ( - ('"' === C || - "'" === C || - '`' === C || - '"' === I || - "'" === I || - '`' === I) && - C !== I - ) - throw new A( - 'property names with quotes must have matching quotes' - ); - if ( - (('constructor' !== h && u) || (s = !0), - M(y, (o = '%' + (r += '.' + h) + '%'))) - ) - a = y[o]; - else if (null != a) { - if (!(h in a)) { - if (!t) - throw new c( - 'base intrinsic for ' + - e + - ' exists, but the property is not available.' - ); - return; - } - if (d && g + 1 >= n.length) { - var p = d(a, h); - a = - (u = !!p) && - 'get' in p && - !('originalValue' in p.get) - ? p.get - : a[h]; - } else (u = M(a, h)), (a = a[h]); - u && !s && (y[o] = a); - } - } - return a; - }; - }, - 45045: (e, t, n) => { - 'use strict'; - var r = 'undefined' != typeof Symbol && Symbol, - i = n(42496); - e.exports = function() { - return ( - 'function' == typeof r && - 'function' == typeof Symbol && - 'symbol' == typeof r('foo') && - 'symbol' == typeof Symbol('bar') && i() - ); - }; - }, - 42496: e => { - 'use strict'; - e.exports = function() { - if ( - 'function' != typeof Symbol || - 'function' != typeof Object.getOwnPropertySymbols - ) - return !1; - if ('symbol' == typeof Symbol.iterator) return !0; - var e = {}, - t = Symbol('test'), - n = Object(t); - if ('string' == typeof t) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(t)) - return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(n)) - return !1; - for (t in ((e[t] = 42), e)) return !1; - if ( - 'function' == typeof Object.keys && - 0 !== Object.keys(e).length - ) - return !1; - if ( - 'function' == typeof Object.getOwnPropertyNames && - 0 !== Object.getOwnPropertyNames(e).length - ) - return !1; - var r = Object.getOwnPropertySymbols(e); - if (1 !== r.length || r[0] !== t) return !1; - if (!Object.prototype.propertyIsEnumerable.call(e, t)) - return !1; - if ('function' == typeof Object.getOwnPropertyDescriptor) { - var i = Object.getOwnPropertyDescriptor(e, t); - if (42 !== i.value || !0 !== i.enumerable) return !1; - } - return !0; + else if (n.length >= r) return n.substr(0, r); + for (; r > n.length && i > 1; ) + 1 & i && (n += e), (i >>= 1), (e += e); + return (n = (n += e).substr(0, r)); }; }, - 96774: e => { - e.exports = function(e, t, n, r) { - var i = n ? n.call(r, e, t) : void 0; - if (void 0 !== i) return !!i; + 1013: e => { + e.exports = function(e, t, n, i) { + var r = n ? n.call(i, e, t) : void 0; + if (void 0 !== r) return !!r; if (e === t) return !0; if ( 'object' != typeof e || @@ -112195,27 +110531,228 @@ ) return !1; var o = Object.keys(e), - a = Object.keys(t); - if (o.length !== a.length) return !1; + s = Object.keys(t); + if (o.length !== s.length) return !1; for ( - var s = Object.prototype.hasOwnProperty.bind(t), A = 0; + var a = Object.prototype.hasOwnProperty.bind(t), A = 0; A < o.length; A++ ) { var c = o[A]; - if (!s(c)) return !1; + if (!a(c)) return !1; var l = e[c], g = t[c]; if ( - !1 === (i = n ? n.call(r, l, g, c) : void 0) || - (void 0 === i && l !== g) + !1 === (r = n ? n.call(i, l, g, c) : void 0) || + (void 0 === r && l !== g) ) return !1; } return !0; }; }, - 80500: e => { + 69057: (e, t, n) => { + 'use strict'; + var i = n(47048), + r = n(70715), + o = function(e, t, n) { + for (var i, r = e; null != (i = r.next); r = i) + if (i.key === t) + return ( + (r.next = i.next), + n || ((i.next = e.next), (e.next = i)), + i + ); + }; + e.exports = function() { + var e, + t = { + assert: function(e) { + if (!t.has(e)) + throw new r( + 'Side channel does not contain ' + i(e) + ); + }, + delete: function(t) { + var n = e && e.next, + i = (function(e, t) { + if (e) return o(e, t, !0); + })(e, t); + return i && n && n === i && (e = void 0), !!i; + }, + get: function(t) { + return (function(e, t) { + if (e) { + var n = o(e, t); + return n && n.value; + } + })(e, t); + }, + has: function(t) { + return (function(e, t) { + return !!e && !!o(e, t); + })(e, t); + }, + set: function(t, n) { + e || (e = {next: void 0}), + (function(e, t, n) { + var i = o(e, t); + i + ? (i.value = n) + : (e.next = { + key: t, + next: e.next, + value: n, + }); + })(e, t, n); + }, + }; + return t; + }; + }, + 90725: (e, t, n) => { + 'use strict'; + var i = n(37095), + r = n(20524), + o = n(47048), + s = n(70715), + a = i('%Map%', !0), + A = r('Map.prototype.get', !0), + c = r('Map.prototype.set', !0), + l = r('Map.prototype.has', !0), + g = r('Map.prototype.delete', !0), + u = r('Map.prototype.size', !0); + e.exports = + !!a && + function() { + var e, + t = { + assert: function(e) { + if (!t.has(e)) + throw new s( + 'Side channel does not contain ' + + o(e) + ); + }, + delete: function(t) { + if (e) { + var n = g(e, t); + return 0 === u(e) && (e = void 0), n; + } + return !1; + }, + get: function(t) { + if (e) return A(e, t); + }, + has: function(t) { + return !!e && l(e, t); + }, + set: function(t, n) { + e || (e = new a()), c(e, t, n); + }, + }; + return t; + }; + }, + 17427: (e, t, n) => { + 'use strict'; + var i = n(37095), + r = n(20524), + o = n(47048), + s = n(90725), + a = n(70715), + A = i('%WeakMap%', !0), + c = r('WeakMap.prototype.get', !0), + l = r('WeakMap.prototype.set', !0), + g = r('WeakMap.prototype.has', !0), + u = r('WeakMap.prototype.delete', !0); + e.exports = A + ? function() { + var e, + t, + n = { + assert: function(e) { + if (!n.has(e)) + throw new a( + 'Side channel does not contain ' + + o(e) + ); + }, + delete: function(n) { + if ( + A && + n && + ('object' == typeof n || + 'function' == typeof n) + ) { + if (e) return u(e, n); + } else if (s && t) return t.delete(n); + return !1; + }, + get: function(n) { + return A && + n && + ('object' == typeof n || + 'function' == typeof n) && + e + ? c(e, n) + : t && t.get(n); + }, + has: function(n) { + return A && + n && + ('object' == typeof n || + 'function' == typeof n) && + e + ? g(e, n) + : !!t && t.has(n); + }, + set: function(n, i) { + A && + n && + ('object' == typeof n || + 'function' == typeof n) + ? (e || (e = new A()), l(e, n, i)) + : s && (t || (t = s()), t.set(n, i)); + }, + }; + return n; + } + : s; + }, + 57065: (e, t, n) => { + 'use strict'; + var i = n(70715), + r = n(47048), + o = n(69057), + s = n(90725), + a = n(17427) || s || o; + e.exports = function() { + var e, + t = { + assert: function(e) { + if (!t.has(e)) + throw new i( + 'Side channel does not contain ' + r(e) + ); + }, + delete: function(t) { + return !!e && e.delete(t); + }, + get: function(t) { + return e && e.get(t); + }, + has: function(t) { + return !!e && e.has(t); + }, + set: function(t, n) { + e || (e = a()), e.set(t, n); + }, + }; + return t; + }; + }, + 37250: e => { 'use strict'; e.exports = (e, t) => { if ('string' != typeof e || 'string' != typeof t) @@ -112229,7 +110766,7 @@ : [e.slice(0, n), e.slice(n + t.length)]; }; }, - 70610: e => { + 92019: e => { 'use strict'; e.exports = e => encodeURIComponent(e).replace( @@ -112241,57 +110778,57 @@ .toUpperCase()}` ); }, - 57848: (e, t, n) => { - var r = n(18139); - function i(e, t) { + 67939: (e, t, n) => { + var i = n(93087); + function r(e, t) { var n, - i = null; - if (!e || 'string' != typeof e) return i; + r = null; + if (!e || 'string' != typeof e) return r; for ( var o, - a, - s = r(e), + s, + a = i(e), A = 'function' == typeof t, c = 0, - l = s.length; + l = a.length; c < l; c++ ) - (o = (n = s[c]).property), - (a = n.value), - A ? t(o, a, n) : a && (i || (i = {}), (i[o] = a)); - return i; + (o = (n = a[c]).property), + (s = n.value), + A ? t(o, s, n) : s && (r || (r = {}), (r[o] = s)); + return r; } - (e.exports = i), (e.exports.default = i); + (e.exports = r), (e.exports.default = r); }, - 51117: (e, t, n) => { + 80161: (e, t, n) => { 'use strict'; n.r(t), n.d(t, { - ServerStyleSheet: () => ze, - StyleSheetConsumer: () => se, - StyleSheetContext: () => ae, + ServerStyleSheet: () => je, + StyleSheetConsumer: () => ae, + StyleSheetContext: () => se, StyleSheetManager: () => de, ThemeConsumer: () => Re, ThemeContext: () => Ye, ThemeProvider: () => _e, __PRIVATE__: () => Je, - createGlobalStyle: () => Le, + createGlobalStyle: () => ke, css: () => we, default: () => We, isStyledComponent: () => w, - keyframes: () => je, + keyframes: () => ze, useTheme: () => He, - version: () => v, + version: () => M, withTheme: () => Pe, }); - var r = n(59864), - i = n(99196), - o = n.n(i), - a = n(96774), - s = n.n(a); + var i = n(32826), + r = n(99196), + o = n.n(r), + s = n(1013), + a = n.n(s); const A = function(e) { - function t(e, r, A, c, u) { + function t(e, i, A, c, u) { for ( var d, h, @@ -112301,37 +110838,37 @@ B = 0, w = 0, b = 0, - v = 0, M = 0, + v = 0, D = 0, Y = (C = d = 0), _ = 0, U = 0, O = 0, - k = 0, - G = A.length, - L = G - 1, - j = '', + G = 0, + L = A.length, + k = L - 1, z = '', + j = '', P = '', H = ''; - _ < G; + _ < L; ) { if ( ((h = A.charCodeAt(_)), - _ === L && - 0 !== w + v + b + B && + _ === k && + 0 !== w + M + b + B && (0 !== w && (h = 47 === w ? 10 : 47), - (v = b = B = 0), - G++, - L++), - 0 === w + v + b + B) + (M = b = B = 0), + L++, + k++), + 0 === w + M + b + B) ) { if ( - _ === L && - (0 < U && (j = j.replace(g, '')), - 0 < j.trim().length) + _ === k && + (0 < U && (z = z.replace(g, '')), + 0 < z.trim().length) ) { switch (h) { case 32: @@ -112341,17 +110878,17 @@ case 10: break; default: - j += A.charAt(_); + z += A.charAt(_); } h = 59; } switch (h) { case 123: for ( - d = (j = j.trim()).charCodeAt(0), + d = (z = z.trim()).charCodeAt(0), C = 1, - k = ++_; - _ < G; + G = ++_; + _ < L; ) { switch ((h = A.charCodeAt(_))) { @@ -112372,7 +110909,7 @@ e: { for ( Y = _ + 1; - Y < L; + Y < k; ++Y ) switch ( @@ -112422,7 +110959,7 @@ case 39: for ( ; - _++ < L && + _++ < k && A.charCodeAt(_) !== h; ); @@ -112431,62 +110968,62 @@ _++; } if ( - ((C = A.substring(k, _)), + ((C = A.substring(G, _)), 0 === d && - (d = (j = j + (d = (z = z .replace(l, '') .trim()).charCodeAt(0)), 64 === d) ) { switch ( (0 < U && - (j = j.replace(g, '')), - (h = j.charCodeAt(1))) + (z = z.replace(g, '')), + (h = z.charCodeAt(1))) ) { case 100: case 109: case 115: case 45: - U = r; + U = i; break; default: - U = x; + U = F; } if ( - ((k = (C = t(r, U, C, h, u + 1)) + ((G = (C = t(i, U, C, h, u + 1)) .length), 0 < T && - ((E = s( + ((E = a( 3, C, - (U = n(x, j, O)), - r, + (U = n(F, z, O)), + i, S, N, - k, + G, h, u, c )), - (j = U.join('')), + (z = U.join('')), void 0 !== E && 0 === - (k = (C = E.trim()) + (G = (C = E.trim()) .length) && ((h = 0), (C = ''))), - 0 < k) + 0 < G) ) switch (h) { case 115: - j = j.replace(y, a); + z = z.replace(y, s); case 100: case 109: case 45: - C = j + '{' + C + '}'; + C = z + '{' + C + '}'; break; case 107: (C = - (j = j.replace( + (z = z.replace( p, '$1 $2' )) + @@ -112494,8 +111031,8 @@ C + '}'), (C = - 1 === F || - (2 === F && + 1 === x || + (2 === x && o( '@' + C, 3 @@ -112507,78 +111044,78 @@ : '@' + C); break; default: - (C = j + C), + (C = z + C), 112 === c && - ((z += C), + ((j += C), (C = '')); } else C = ''; } else - C = t(r, n(r, j, O), C, c, u + 1); + C = t(i, n(i, z, O), C, c, u + 1); (P += C), (C = O = U = Y = d = 0), - (j = ''), + (z = ''), (h = A.charCodeAt(++_)); break; case 125: case 59: if ( 1 < - (k = (j = (0 < U - ? j.replace(g, '') - : j + (G = (z = (0 < U + ? z.replace(g, '') + : z ).trim()).length) ) switch ( (0 === Y && - ((d = j.charCodeAt(0)), + ((d = z.charCodeAt(0)), 45 === d || (96 < d && 123 > d)) && - (k = (j = j.replace( + (G = (z = z.replace( ' ', ':' )).length), 0 < T && void 0 !== - (E = s( + (E = a( 1, - j, - r, + z, + i, e, S, N, - z.length, + j.length, c, u, c )) && 0 === - (k = (j = E.trim()) + (G = (z = E.trim()) .length) && - (j = '\0\0'), - (d = j.charCodeAt(0)), - (h = j.charCodeAt(1)), + (z = '\0\0'), + (d = z.charCodeAt(0)), + (h = z.charCodeAt(1)), d) ) { case 0: break; case 64: if (105 === h || 99 === h) { - H += j + A.charAt(_); + H += z + A.charAt(_); break; } default: 58 !== - j.charCodeAt(k - 1) && - (z += i( - j, + z.charCodeAt(G - 1) && + (j += r( + z, d, h, - j.charCodeAt(2) + z.charCodeAt(2) )); } (O = U = Y = d = 0), - (j = ''), + (z = ''), (h = A.charCodeAt(++_)); } } @@ -112589,17 +111126,17 @@ ? (w = 0) : 0 === 1 + d && 107 !== c && - 0 < j.length && - ((U = 1), (j += '\0')), + 0 < z.length && + ((U = 1), (z += '\0')), 0 < T * R && - s( + a( 0, - j, - r, + z, + i, e, S, N, - z.length, + j.length, c, u, c @@ -112609,7 +111146,7 @@ break; case 59: case 125: - if (0 === w + v + b + B) { + if (0 === w + M + b + B) { N++; break; } @@ -112617,8 +111154,8 @@ switch ((N++, (I = A.charAt(_)), h)) { case 9: case 32: - if (0 === v + B + w) - switch (M) { + if (0 === M + B + w) + switch (v) { case 44: case 58: case 9: @@ -112639,64 +111176,64 @@ I = '\\v'; break; case 38: - 0 === v + w + B && + 0 === M + w + B && ((U = O = 1), (I = '\f' + I)); break; case 108: - if (0 === v + w + B + Q && 0 < Y) + if (0 === M + w + B + Q && 0 < Y) switch (_ - Y) { case 2: - 112 === M && + 112 === v && 58 === A.charCodeAt( _ - 3 ) && - (Q = M); + (Q = v); case 8: 111 === D && (Q = D); } break; case 58: - 0 === v + w + B && (Y = _); + 0 === M + w + B && (Y = _); break; case 44: - 0 === w + b + v + B && + 0 === w + b + M + B && ((U = 1), (I += '\r')); break; case 34: case 39: 0 === w && - (v = - v === h + (M = + M === h ? 0 - : 0 === v + : 0 === M ? h - : v); + : M); break; case 91: - 0 === v + w + b && B++; + 0 === M + w + b && B++; break; case 93: - 0 === v + w + b && B--; + 0 === M + w + b && B--; break; case 41: - 0 === v + w + B && b--; + 0 === M + w + B && b--; break; case 40: - if (0 === v + w + B) { + if (0 === M + w + B) { if (0 === d) - if (2 * M + 3 * D == 533); + if (2 * v + 3 * D == 533); else d = 1; b++; } break; case 64: - 0 === w + b + v + B + Y + C && + 0 === w + b + M + B + Y + C && (C = 1); break; case 42: case 47: - if (!(0 < v + B + b)) + if (!(0 < M + B + b)) switch (w) { case 0: switch ( @@ -112710,82 +111247,82 @@ w = 47; break; case 220: - (k = _), + (G = _), (w = 42); } break; case 42: 47 === h && - 42 === M && - k + 2 !== _ && + 42 === v && + G + 2 !== _ && (33 === A.charCodeAt( - k + 2 + G + 2 ) && - (z += A.substring( - k, + (j += A.substring( + G, _ + 1 )), (I = ''), (w = 0)); } } - 0 === w && (j += I); + 0 === w && (z += I); } - (D = M), (M = h), _++; + (D = v), (v = h), _++; } - if (0 < (k = z.length)) { + if (0 < (G = j.length)) { if ( - ((U = r), + ((U = i), 0 < T && void 0 !== - (E = s(2, z, U, e, S, N, k, c, u, c)) && - 0 === (z = E).length) + (E = a(2, j, U, e, S, N, G, c, u, c)) && + 0 === (j = E).length) ) - return H + z + P; + return H + j + P; if ( - ((z = U.join(',') + '{' + z + '}'), 0 != F * Q) + ((j = U.join(',') + '{' + j + '}'), 0 != x * Q) ) { - switch ((2 !== F || o(z, 2) || (Q = 0), Q)) { + switch ((2 !== x || o(j, 2) || (Q = 0), Q)) { case 111: - z = z.replace(f, ':-moz-$1') + z; + j = j.replace(f, ':-moz-$1') + j; break; case 112: - z = - z.replace(m, '::-webkit-input-$1') + - z.replace(m, '::-moz-$1') + - z.replace(m, ':-ms-input-$1') + - z; + j = + j.replace(m, '::-webkit-input-$1') + + j.replace(m, '::-moz-$1') + + j.replace(m, ':-ms-input-$1') + + j; } Q = 0; } } - return H + z + P; + return H + j + P; } function n(e, t, n) { - var i = t.trim().split(C); - t = i; - var o = i.length, - a = e.length; - switch (a) { + var r = t.trim().split(C); + t = r; + var o = r.length, + s = e.length; + switch (s) { case 0: case 1: - var s = 0; - for (e = 0 === a ? '' : e[0] + ' '; s < o; ++s) - t[s] = r(e, t[s], n).trim(); + var a = 0; + for (e = 0 === s ? '' : e[0] + ' '; a < o; ++a) + t[a] = i(e, t[a], n).trim(); break; default: - var A = (s = 0); - for (t = []; s < o; ++s) - for (var c = 0; c < a; ++c) - t[A++] = r(e[c] + ' ', i[s], n).trim(); + var A = (a = 0); + for (t = []; a < o; ++a) + for (var c = 0; c < s; ++c) + t[A++] = i(e[c] + ' ', r[a], n).trim(); } return t; } - function r(e, t, n) { - var r = t.charCodeAt(0); + function i(e, t, n) { + var i = t.charCodeAt(0); switch ( - (33 > r && (r = (t = t.trim()).charCodeAt(0)), r) + (33 > i && (i = (t = t.trim()).charCodeAt(0)), i) ) { case 38: return t.replace(I, '$1' + e.trim()); @@ -112801,146 +111338,146 @@ } return e + t; } - function i(e, t, n, r) { - var a = e + ';', - s = 2 * t + 3 * n + 4 * r; - if (944 === s) { - e = a.indexOf(':', 9) + 1; - var A = a.substring(e, a.length - 1).trim(); + function r(e, t, n, i) { + var s = e + ';', + a = 2 * t + 3 * n + 4 * i; + if (944 === a) { + e = s.indexOf(':', 9) + 1; + var A = s.substring(e, s.length - 1).trim(); return ( - (A = a.substring(0, e).trim() + A + ';'), - 1 === F || (2 === F && o(A, 1)) + (A = s.substring(0, e).trim() + A + ';'), + 1 === x || (2 === x && o(A, 1)) ? '-webkit-' + A + A : A ); } - if (0 === F || (2 === F && !o(a, 1))) return a; - switch (s) { + if (0 === x || (2 === x && !o(s, 1))) return s; + switch (a) { case 1015: - return 97 === a.charCodeAt(10) - ? '-webkit-' + a + a - : a; + return 97 === s.charCodeAt(10) + ? '-webkit-' + s + s + : s; case 951: - return 116 === a.charCodeAt(3) - ? '-webkit-' + a + a - : a; + return 116 === s.charCodeAt(3) + ? '-webkit-' + s + s + : s; case 963: - return 110 === a.charCodeAt(5) - ? '-webkit-' + a + a - : a; + return 110 === s.charCodeAt(5) + ? '-webkit-' + s + s + : s; case 1009: - if (100 !== a.charCodeAt(4)) break; + if (100 !== s.charCodeAt(4)) break; case 969: case 942: - return '-webkit-' + a + a; + return '-webkit-' + s + s; case 978: - return '-webkit-' + a + '-moz-' + a + a; + return '-webkit-' + s + '-moz-' + s + s; case 1019: case 983: return ( '-webkit-' + - a + + s + '-moz-' + - a + + s + '-ms-' + - a + - a + s + + s ); case 883: - if (45 === a.charCodeAt(8)) - return '-webkit-' + a + a; - if (0 < a.indexOf('image-set(', 11)) - return a.replace(M, '$1-webkit-$2') + a; + if (45 === s.charCodeAt(8)) + return '-webkit-' + s + s; + if (0 < s.indexOf('image-set(', 11)) + return s.replace(v, '$1-webkit-$2') + s; break; case 932: - if (45 === a.charCodeAt(4)) - switch (a.charCodeAt(5)) { + if (45 === s.charCodeAt(4)) + switch (s.charCodeAt(5)) { case 103: return ( '-webkit-box-' + - a.replace('-grow', '') + + s.replace('-grow', '') + '-webkit-' + - a + + s + '-ms-' + - a.replace('grow', 'positive') + - a + s.replace('grow', 'positive') + + s ); case 115: return ( '-webkit-' + - a + + s + '-ms-' + - a.replace( + s.replace( 'shrink', 'negative' ) + - a + s ); case 98: return ( '-webkit-' + - a + + s + '-ms-' + - a.replace( + s.replace( 'basis', 'preferred-size' ) + - a + s ); } - return '-webkit-' + a + '-ms-' + a + a; + return '-webkit-' + s + '-ms-' + s + s; case 964: - return '-webkit-' + a + '-ms-flex-' + a + a; + return '-webkit-' + s + '-ms-flex-' + s + s; case 1023: - if (99 !== a.charCodeAt(8)) break; + if (99 !== s.charCodeAt(8)) break; return ( '-webkit-box-pack' + - (A = a - .substring(a.indexOf(':', 15)) + (A = s + .substring(s.indexOf(':', 15)) .replace('flex-', '') .replace('space-between', 'justify')) + '-webkit-' + - a + + s + '-ms-flex-pack' + A + - a + s ); case 1005: - return d.test(a) - ? a.replace(u, ':-webkit-') + - a.replace(u, ':-moz-') + - a - : a; + return d.test(s) + ? s.replace(u, ':-webkit-') + + s.replace(u, ':-moz-') + + s + : s; case 1e3: switch ( ((t = - (A = a.substring(13).trim()).indexOf( + (A = s.substring(13).trim()).indexOf( '-' ) + 1), A.charCodeAt(0) + A.charCodeAt(t)) ) { case 226: - A = a.replace(E, 'tb'); + A = s.replace(E, 'tb'); break; case 232: - A = a.replace(E, 'tb-rl'); + A = s.replace(E, 'tb-rl'); break; case 220: - A = a.replace(E, 'lr'); + A = s.replace(E, 'lr'); break; default: - return a; + return s; } - return '-webkit-' + a + '-ms-' + A + a; + return '-webkit-' + s + '-ms-' + A + s; case 1017: - if (-1 === a.indexOf('sticky', 9)) break; + if (-1 === s.indexOf('sticky', 9)) break; case 975: switch ( - ((t = (a = e).length - 10), - (s = - (A = (33 === a.charCodeAt(t) - ? a.substring(0, t) - : a + ((t = (s = e).length - 10), + (a = + (A = (33 === s.charCodeAt(t) + ? s.substring(0, t) + : s ) .substring(e.indexOf(':', 7) + 1) .trim()).charCodeAt(0) + @@ -112949,133 +111486,133 @@ case 203: if (111 > A.charCodeAt(8)) break; case 115: - a = - a.replace(A, '-webkit-' + A) + + s = + s.replace(A, '-webkit-' + A) + ';' + - a; + s; break; case 207: case 102: - a = - a.replace( + s = + s.replace( A, '-webkit-' + - (102 < s ? 'inline-' : '') + + (102 < a ? 'inline-' : '') + 'box' ) + ';' + - a.replace(A, '-webkit-' + A) + + s.replace(A, '-webkit-' + A) + ';' + - a.replace(A, '-ms-' + A + 'box') + + s.replace(A, '-ms-' + A + 'box') + ';' + - a; + s; } - return a + ';'; + return s + ';'; case 938: - if (45 === a.charCodeAt(5)) - switch (a.charCodeAt(6)) { + if (45 === s.charCodeAt(5)) + switch (s.charCodeAt(6)) { case 105: return ( - (A = a.replace('-items', '')), + (A = s.replace('-items', '')), '-webkit-' + - a + + s + '-webkit-box-' + A + '-ms-flex-' + A + - a + s ); case 115: return ( '-webkit-' + - a + + s + '-ms-flex-item-' + - a.replace(w, '') + - a + s.replace(w, '') + + s ); default: return ( '-webkit-' + - a + + s + '-ms-flex-line-pack' + - a + s .replace( 'align-content', '' ) .replace(w, '') + - a + s ); } break; case 973: case 989: if ( - 45 !== a.charCodeAt(3) || - 122 === a.charCodeAt(4) + 45 !== s.charCodeAt(3) || + 122 === s.charCodeAt(4) ) break; case 931: case 953: - if (!0 === v.test(e)) + if (!0 === M.test(e)) return 115 === (A = e.substring( e.indexOf(':') + 1 )).charCodeAt(0) - ? i( + ? r( e.replace( 'stretch', 'fill-available' ), t, n, - r + i ).replace( ':fill-available', ':stretch' ) - : a.replace(A, '-webkit-' + A) + - a.replace( + : s.replace(A, '-webkit-' + A) + + s.replace( A, '-moz-' + A.replace('fill-', '') ) + - a; + s; break; case 962: if ( - ((a = + ((s = '-webkit-' + - a + - (102 === a.charCodeAt(5) - ? '-ms-' + a + s + + (102 === s.charCodeAt(5) + ? '-ms-' + s : '') + - a), - 211 === n + r && - 105 === a.charCodeAt(13) && - 0 < a.indexOf('transform', 10)) + s), + 211 === n + i && + 105 === s.charCodeAt(13) && + 0 < s.indexOf('transform', 10)) ) return ( - a + s .substring( 0, - a.indexOf(';', 27) + 1 + s.indexOf(';', 27) + 1 ) - .replace(h, '$1-webkit-$2') + a + .replace(h, '$1-webkit-$2') + s ); } - return a; + return s; } function o(e, t) { var n = e.indexOf(1 === t ? ':' : '{'), - r = e.substring(0, 3 !== t ? n : 10); + i = e.substring(0, 3 !== t ? n : 10); return ( (n = e.substring(n + 1, e.length - 1)), - Y(2 !== t ? r : r.replace(b, '$1'), n, t) + Y(2 !== t ? i : i.replace(b, '$1'), n, t) ); } - function a(e, t) { - var n = i( + function s(e, t) { + var n = r( t, t.charCodeAt(0), t.charCodeAt(1), @@ -113085,10 +111622,10 @@ ? n.replace(B, ' or ($1)').substring(4) : '(' + t + ')'; } - function s(e, t, n, r, i, o, a, s, A, l) { + function a(e, t, n, i, r, o, s, a, A, l) { for (var g, u = 0, d = t; u < T; ++u) switch ( - (g = D[u].call(c, e, d, n, r, i, o, a, s, A, l)) + (g = D[u].call(c, e, d, n, i, r, o, s, a, A, l)) ) { case void 0: case !1: @@ -113106,31 +111643,31 @@ ((Y = null), e ? 'function' != typeof e - ? (F = 1) - : ((F = 2), (Y = e)) - : (F = 0)), + ? (x = 1) + : ((x = 2), (Y = e)) + : (x = 0)), A ); } function c(e, n) { - var r = e; + var i = e; if ( - (33 > r.charCodeAt(0) && (r = r.trim()), - (r = [r]), + (33 > i.charCodeAt(0) && (i = i.trim()), + (i = [i]), 0 < T) ) { - var i = s(-1, n, r, r, S, N, 0, 0, 0, 0); - void 0 !== i && 'string' == typeof i && (n = i); + var r = a(-1, n, i, i, S, N, 0, 0, 0, 0); + void 0 !== r && 'string' == typeof r && (n = r); } - var o = t(x, r, n, 0, 0); + var o = t(F, i, n, 0, 0); return ( 0 < T && void 0 !== - (i = s( + (r = a( -2, o, - r, - r, + i, + i, S, N, o.length, @@ -113138,7 +111675,7 @@ 0, 0 )) && - (o = i), + (o = r), '', (Q = 0), (N = S = 1), @@ -113160,13 +111697,13 @@ B = /([\s\S]*?);/g, w = /-self|flex-/g, b = /[^]*?(:[rp][el]a[\w-]+)[^]*/, - v = /stretch|:\s*\w+\-(?:conte|avail)/, - M = /([^-])(image-set\()/, + M = /stretch|:\s*\w+\-(?:conte|avail)/, + v = /([^-])(image-set\()/, N = 1, S = 1, Q = 0, - F = 1, - x = [], + x = 1, + F = [], D = [], T = 0, Y = null, @@ -113182,8 +111719,8 @@ if ('function' == typeof t) D[T++] = t; else if ('object' == typeof t) for ( - var n = 0, r = t.length; - n < r; + var n = 0, i = t.length; + n < i; ++n ) e(t[n]); @@ -113243,8 +111780,8 @@ strokeOpacity: 1, strokeWidth: 1, }; - var l = n(45042), - g = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, + var l = n(54760), + g = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, u = (0, l.Z)(function(e) { return ( g.test(e) || @@ -113253,27 +111790,27 @@ e.charCodeAt(2) < 91) ); }), - d = n(8679), + d = n(13307), h = n.n(d), - C = n(34155); + C = n(14549); function I() { return (I = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; - for (var r in n) + for (var i in n) Object.prototype.hasOwnProperty.call( n, - r - ) && (e[r] = n[r]); + i + ) && (e[i] = n[i]); } return e; }).apply(this, arguments); } var p = function(e, t) { - for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) - n.push(t[r], e[r + 1]); + for (var n = [e[0]], i = 0, r = t.length; i < r; i += 1) + n.push(t[i], e[i + 1]); return n; }, m = function(e) { @@ -113284,7 +111821,7 @@ (e.toString ? e.toString() : Object.prototype.toString.call(e)) && - !(0, r.typeOf)(e) + !(0, i.typeOf)(e) ); }, f = Object.freeze([]), @@ -113303,8 +111840,8 @@ void 0 !== C.env && (C.env.REACT_APP_SC_ATTR || C.env.SC_ATTR)) || 'data-styled', - v = '5.3.11', - M = 'undefined' != typeof window && 'HTMLElement' in window, + M = '5.3.11', + v = 'undefined' != typeof window && 'HTMLElement' in window, N = Boolean( 'boolean' == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY @@ -113326,11 +111863,11 @@ for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ + i = 1; + i < t; + i++ ) - n[r - 1] = arguments[r]; + n[i - 1] = arguments[i]; throw new Error( 'An error occurred. See https://git.io/JUIaE#' + e + @@ -113338,7 +111875,7 @@ (n.length > 0 ? ' Args: ' + n.join(', ') : '') ); } - var F = (function() { + var x = (function() { function e(e) { (this.groupSizes = new Uint32Array(512)), (this.length = 512), @@ -113355,35 +111892,35 @@ if (e >= this.groupSizes.length) { for ( var n = this.groupSizes, - r = n.length, - i = r; - e >= i; + i = n.length, + r = i; + e >= r; ) - (i <<= 1) < 0 && Q(16, '' + e); - (this.groupSizes = new Uint32Array(i)), + (r <<= 1) < 0 && Q(16, '' + e); + (this.groupSizes = new Uint32Array(r)), this.groupSizes.set(n), - (this.length = i); - for (var o = r; o < i; o++) + (this.length = r); + for (var o = i; o < r; o++) this.groupSizes[o] = 0; } for ( - var a = this.indexOfGroup(e + 1), - s = 0, + var s = this.indexOfGroup(e + 1), + a = 0, A = t.length; - s < A; - s++ + a < A; + a++ ) - this.tag.insertRule(a, t[s]) && - (this.groupSizes[e]++, a++); + this.tag.insertRule(s, t[a]) && + (this.groupSizes[e]++, s++); }), (t.clearGroup = function(e) { if (e < this.length) { var t = this.groupSizes[e], n = this.indexOfGroup(e), - r = n + t; + i = n + t; this.groupSizes[e] = 0; - for (var i = n; i < r; i++) + for (var r = n; r < i; r++) this.tag.deleteRule(n); } }), @@ -113396,10 +111933,10 @@ return t; for ( var n = this.groupSizes[e], - r = this.indexOfGroup(e), - i = r + n, - o = r; - o < i; + i = this.indexOfGroup(e), + r = i + n, + o = i; + o < r; o++ ) t += this.tag.getRule(o) + '/*!sc*/\n'; @@ -113408,104 +111945,104 @@ e ); })(), - x = new Map(), + F = new Map(), D = new Map(), T = 1, Y = function(e) { - if (x.has(e)) return x.get(e); + if (F.has(e)) return F.get(e); for (; D.has(T); ) T++; var t = T++; - return x.set(e, t), D.set(t, e), t; + return F.set(e, t), D.set(t, e), t; }, R = function(e) { return D.get(e); }, _ = function(e, t) { - t >= T && (T = t + 1), x.set(e, t), D.set(t, e); + t >= T && (T = t + 1), F.set(e, t), D.set(t, e); }, U = 'style[' + b + '][data-styled-version="5.3.11"]', O = new RegExp( '^' + b + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)' ), - k = function(e, t, n) { + G = function(e, t, n) { for ( - var r, i = n.split(','), o = 0, a = i.length; - o < a; + var i, r = n.split(','), o = 0, s = r.length; + o < s; o++ ) - (r = i[o]) && e.registerName(t, r); + (i = r[o]) && e.registerName(t, i); }, - G = function(e, t) { + L = function(e, t) { for ( var n = (t.textContent || '').split('/*!sc*/\n'), - r = [], - i = 0, + i = [], + r = 0, o = n.length; - i < o; - i++ + r < o; + r++ ) { - var a = n[i].trim(); - if (a) { - var s = a.match(O); - if (s) { - var A = 0 | parseInt(s[1], 10), - c = s[2]; + var s = n[r].trim(); + if (s) { + var a = s.match(O); + if (a) { + var A = 0 | parseInt(a[1], 10), + c = a[2]; 0 !== A && (_(c, A), - k(e, c, s[3]), - e.getTag().insertRules(A, r)), - (r.length = 0); - } else r.push(a); + G(e, c, a[3]), + e.getTag().insertRules(A, i)), + (i.length = 0); + } else i.push(s); } } }, - L = function() { + k = function() { return n.nc; }, - j = function(e) { + z = function(e) { var t = document.head, n = e || t, - r = document.createElement('style'), - i = (function(e) { + i = document.createElement('style'), + r = (function(e) { for ( var t = e.childNodes, n = t.length; n >= 0; n-- ) { - var r = t[n]; + var i = t[n]; if ( - r && - 1 === r.nodeType && - r.hasAttribute(b) + i && + 1 === i.nodeType && + i.hasAttribute(b) ) - return r; + return i; } })(n), - o = void 0 !== i ? i.nextSibling : null; - r.setAttribute(b, 'active'), - r.setAttribute('data-styled-version', '5.3.11'); - var a = L(); + o = void 0 !== r ? r.nextSibling : null; + i.setAttribute(b, 'active'), + i.setAttribute('data-styled-version', '5.3.11'); + var s = k(); return ( - a && r.setAttribute('nonce', a), - n.insertBefore(r, o), - r + s && i.setAttribute('nonce', s), + n.insertBefore(i, o), + i ); }, - z = (function() { + j = (function() { function e(e) { - var t = (this.element = j(e)); + var t = (this.element = z(e)); t.appendChild(document.createTextNode('')), (this.sheet = (function(e) { if (e.sheet) return e.sheet; for ( var t = document.styleSheets, n = 0, - r = t.length; - n < r; + i = t.length; + n < i; n++ ) { - var i = t[n]; - if (i.ownerNode === e) return i; + var r = t[n]; + if (r.ownerNode === e) return r; } Q(17); })(t)), @@ -113539,7 +112076,7 @@ })(), P = (function() { function e(e) { - var t = (this.element = j(e)); + var t = (this.element = z(e)); (this.nodes = t.childNodes), (this.length = 0); } var t = e.prototype; @@ -113547,9 +112084,9 @@ (t.insertRule = function(e, t) { if (e <= this.length && e >= 0) { var n = document.createTextNode(t), - r = this.nodes[e]; + i = this.nodes[e]; return ( - this.element.insertBefore(n, r || null), + this.element.insertBefore(n, i || null), this.length++, !0 ); @@ -113591,8 +112128,8 @@ e ); })(), - J = M, - W = {isServer: !M, useCSSOMInjection: !N}, + J = v, + W = {isServer: !v, useCSSOMInjection: !N}, V = (function() { function e(e, t, n) { void 0 === e && (e = E), @@ -113602,7 +112139,7 @@ (this.names = new Map(n)), (this.server = !!e.isServer), !this.server && - M && + v && J && ((J = !1), (function(e) { @@ -113611,18 +112148,18 @@ U ), n = 0, - r = t.length; - n < r; + i = t.length; + n < i; n++ ) { - var i = t[n]; - i && + var r = t[n]; + r && 'active' !== - i.getAttribute(b) && - (G(e, i), - i.parentNode && - i.parentNode.removeChild( - i + r.getAttribute(b) && + (L(e, r), + r.parentNode && + r.parentNode.removeChild( + r )); } })(this)); @@ -113650,16 +112187,16 @@ this.tag || (this.tag = ((n = (t = this.options).isServer), - (r = t.useCSSOMInjection), - (i = t.target), + (i = t.useCSSOMInjection), + (r = t.target), (e = n - ? new H(i) - : r - ? new z(i) - : new P(i)), - new F(e))) + ? new H(r) + : i + ? new j(r) + : new P(r)), + new x(e))) ); - var e, t, n, r, i; + var e, t, n, i, r; }), (t.hasNameForId = function(e, t) { return ( @@ -113694,32 +112231,32 @@ for ( var t = e.getTag(), n = t.length, - r = '', - i = 0; - i < n; - i++ + i = '', + r = 0; + r < n; + r++ ) { - var o = R(i); + var o = R(r); if (void 0 !== o) { - var a = e.names.get(o), - s = t.getGroup(i); - if (a && s && a.size) { + var s = e.names.get(o), + a = t.getGroup(r); + if (s && a && s.size) { var A = b + '.g' + - i + + r + '[id="' + o + '"]', c = ''; - void 0 !== a && - a.forEach(function(e) { + void 0 !== s && + s.forEach(function(e) { e.length > 0 && (c += e + ','); }), - (r += + (i += '' + - s + + a + A + '{content:"' + c + @@ -113727,7 +112264,7 @@ } } } - return r; + return i; })(this); }), e @@ -113777,11 +112314,11 @@ t, n ) { - var r = this.componentId, - i = []; + var i = this.componentId, + r = []; if ( (this.baseStyle && - i.push( + r.push( this.baseStyle.generateAndInjectStyles( e, t, @@ -113792,19 +112329,19 @@ ) if ( this.staticRulesId && - t.hasNameForId(r, this.staticRulesId) + t.hasNameForId(i, this.staticRulesId) ) - i.push(this.staticRulesId); + r.push(this.staticRulesId); else { var o = ye(this.rules, e, t, n).join( '' ), - a = X(q(this.baseHash, o) >>> 0); - if (!t.hasNameForId(r, a)) { - var s = n(o, '.' + a, void 0, r); - t.insertRules(r, a, s); + s = X(q(this.baseHash, o) >>> 0); + if (!t.hasNameForId(i, s)) { + var a = n(o, '.' + s, void 0, i); + t.insertRules(i, s, a); } - i.push(a), (this.staticRulesId = a); + r.push(s), (this.staticRulesId = s); } else { for ( @@ -113827,31 +112364,31 @@ } if (l) { var C = X(c >>> 0); - if (!t.hasNameForId(r, C)) { - var I = n(l, '.' + C, void 0, r); - t.insertRules(r, C, I); + if (!t.hasNameForId(i, C)) { + var I = n(l, '.' + C, void 0, i); + t.insertRules(i, C, I); } - i.push(C); + r.push(C); } } - return i.join(' '); + return r.join(' '); }), e ); })(), - re = /^\s*\/\/.*$/gm, - ie = [':', '[', '.', '#']; + ie = /^\s*\/\/.*$/gm, + re = [':', '[', '.', '#']; function oe(e) { var t, n, - r, i, + r, o = void 0 === e ? E : e, - a = o.options, - s = void 0 === a ? E : a, + s = o.options, + a = void 0 === s ? E : s, c = o.plugins, l = void 0 === c ? f : c, - g = new A(s), + g = new A(a), u = [], d = (function(e) { function t(t) { @@ -113860,59 +112397,59 @@ e(t + '}'); } catch (e) {} } - return function(n, r, i, o, a, s, A, c, l, g) { + return function(n, i, r, o, s, a, A, c, l, g) { switch (n) { case 1: - if (0 === l && 64 === r.charCodeAt(0)) - return e(r + ';'), ''; + if (0 === l && 64 === i.charCodeAt(0)) + return e(i + ';'), ''; break; case 2: - if (0 === c) return r + '/*|*/'; + if (0 === c) return i + '/*|*/'; break; case 3: switch (c) { case 102: case 112: - return e(i[0] + r), ''; + return e(r[0] + i), ''; default: return ( - r + (0 === g ? '/*|*/' : '') + i + (0 === g ? '/*|*/' : '') ); } case -2: - r.split('/*|*/}').forEach(t); + i.split('/*|*/}').forEach(t); } }; })(function(e) { u.push(e); }), - h = function(e, r, o) { - return (0 === r && - -1 !== ie.indexOf(o[n.length])) || - o.match(i) + h = function(e, i, o) { + return (0 === i && + -1 !== re.indexOf(o[n.length])) || + o.match(r) ? e : '.' + t; }; - function C(e, o, a, s) { - void 0 === s && (s = '&'); - var A = e.replace(re, ''), - c = o && a ? a + ' ' + o + ' { ' + A + ' }' : A; + function C(e, o, s, a) { + void 0 === a && (a = '&'); + var A = e.replace(ie, ''), + c = o && s ? s + ' ' + o + ' { ' + A + ' }' : A; return ( - (t = s), + (t = a), (n = o), - (r = new RegExp('\\' + n + '\\b', 'g')), - (i = new RegExp('(\\' + n + '\\b){2,}')), - g(a || !o ? '' : o, c) + (i = new RegExp('\\' + n + '\\b', 'g')), + (r = new RegExp('(\\' + n + '\\b){2,}')), + g(s || !o ? '' : o, c) ); } return ( g.use( [].concat(l, [ - function(e, t, i) { + function(e, t, r) { 2 === e && - i.length && - i[0].lastIndexOf(n) > 0 && - (i[0] = i[0].replace(r, h)); + r.length && + r[0].lastIndexOf(n) > 0 && + (r[0] = r[0].replace(i, h)); }, d, function(e) { @@ -113933,25 +112470,25 @@ C ); } - var ae = o().createContext(), - se = ae.Consumer, + var se = o().createContext(), + ae = se.Consumer, Ae = o().createContext(), ce = (Ae.Consumer, new V()), le = oe(); function ge() { - return (0, i.useContext)(ae) || ce; + return (0, r.useContext)(se) || ce; } function ue() { - return (0, i.useContext)(Ae) || le; + return (0, r.useContext)(Ae) || le; } function de(e) { - var t = (0, i.useState)(e.stylisPlugins), + var t = (0, r.useState)(e.stylisPlugins), n = t[0], - r = t[1], - a = ge(), - A = (0, i.useMemo)( + i = t[1], + s = ge(), + A = (0, r.useMemo)( function() { - var t = a; + var t = s; return ( e.sheet ? (t = e.sheet) @@ -113969,7 +112506,7 @@ }, [e.disableCSSOMInjection, e.sheet, e.target] ), - c = (0, i.useMemo)( + c = (0, r.useMemo)( function() { return oe({ options: {prefix: !e.disableVendorPrefixes}, @@ -113979,14 +112516,14 @@ [e.disableVendorPrefixes, n] ); return ( - (0, i.useEffect)( + (0, r.useEffect)( function() { - s()(n, e.stylisPlugins) || r(e.stylisPlugins); + a()(n, e.stylisPlugins) || i(e.stylisPlugins); }, [e.stylisPlugins] ), o().createElement( - ae.Provider, + se.Provider, {value: A}, o().createElement( Ae.Provider, @@ -114001,12 +112538,12 @@ var n = this; (this.inject = function(e, t) { void 0 === t && (t = le); - var r = n.name + t.hash; - e.hasNameForId(n.id, r) || + var i = n.name + t.hash; + e.hasNameForId(n.id, i) || e.insertRules( n.id, - r, - t(n.rules, r, '@keyframes') + i, + t(n.rules, i, '@keyframes') ); }), (this.toString = function() { @@ -114039,13 +112576,13 @@ var Ee = function(e) { return null == e || !1 === e || '' === e; }; - function ye(e, t, n, r) { + function ye(e, t, n, i) { if (Array.isArray(e)) { - for (var i, o = [], a = 0, s = e.length; a < s; a += 1) - '' !== (i = ye(e[a], t, n, r)) && - (Array.isArray(i) - ? o.push.apply(o, i) - : o.push(i)); + for (var r, o = [], s = 0, a = e.length; s < a; s += 1) + '' !== (r = ye(e[s], t, n, i)) && + (Array.isArray(r) + ? o.push.apply(o, r) + : o.push(r)); return o; } return Ee(e) @@ -114057,39 +112594,39 @@ (A.prototype && A.prototype.isReactComponent) || !t ? e - : ye(e(t), t, n, r) + : ye(e(t), t, n, i) : e instanceof he ? n - ? (e.inject(n, r), e.getName(r)) + ? (e.inject(n, i), e.getName(i)) : e : m(e) ? (function e(t, n) { - var r, - i, + var i, + r, o = []; - for (var a in t) - t.hasOwnProperty(a) && - !Ee(t[a]) && - ((Array.isArray(t[a]) && t[a].isCss) || - y(t[a]) - ? o.push(fe(a) + ':', t[a], ';') - : m(t[a]) - ? o.push.apply(o, e(t[a], a)) + for (var s in t) + t.hasOwnProperty(s) && + !Ee(t[s]) && + ((Array.isArray(t[s]) && t[s].isCss) || + y(t[s]) + ? o.push(fe(s) + ':', t[s], ';') + : m(t[s]) + ? o.push.apply(o, e(t[s], s)) : o.push( - fe(a) + + fe(s) + ': ' + - ((r = a), - (null == (i = t[a]) || - 'boolean' == typeof i || - '' === i + ((i = s), + (null == (r = t[s]) || + 'boolean' == typeof r || + '' === r ? '' : 'number' != - typeof i || - 0 === i || - r in c || - r.startsWith('--') - ? String(i).trim() - : i + 'px') + ';') + typeof r || + 0 === r || + i in c || + i.startsWith('--') + ? String(r).trim() + : r + 'px') + ';') )); return n ? [n + ' {'].concat(o, ['}']) : o; })(e) @@ -114103,11 +112640,11 @@ for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ + i = 1; + i < t; + i++ ) - n[r - 1] = arguments[r]; + n[i - 1] = arguments[i]; return y(e) || m(e) ? Be(ye(p(f, [e].concat(n)))) : 0 === n.length && @@ -114123,10 +112660,10 @@ (e.theme !== n.theme && e.theme) || t || n.theme ); }, - ve = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, - Me = /(^-|-$)/g; + Me = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, + ve = /(^-|-$)/g; function Ne(e) { - return e.replace(ve, '-').replace(Me, ''); + return e.replace(Me, '-').replace(ve, ''); } var Se = function(e) { return X($(e) >>> 0); @@ -114134,7 +112671,7 @@ function Qe(e) { return 'string' == typeof e && !0; } - var Fe = function(e) { + var xe = function(e) { return ( 'function' == typeof e || ('object' == typeof e && @@ -114142,7 +112679,7 @@ !Array.isArray(e)) ); }, - xe = function(e) { + Fe = function(e) { return ( '__proto__' !== e && 'constructor' !== e && @@ -114150,29 +112687,29 @@ ); }; function De(e, t, n) { - var r = e[n]; - Fe(t) && Fe(r) ? Te(r, t) : (e[n] = t); + var i = e[n]; + xe(t) && xe(i) ? Te(i, t) : (e[n] = t); } function Te(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ + i = 1; + i < t; + i++ ) - n[r - 1] = arguments[r]; - for (var i = 0, o = n; i < o.length; i++) { - var a = o[i]; - if (Fe(a)) for (var s in a) xe(s) && De(e, a[s], s); + n[i - 1] = arguments[i]; + for (var r = 0, o = n; r < o.length; r++) { + var s = o[r]; + if (xe(s)) for (var a in s) Fe(a) && De(e, s[a], a); } return e; } var Ye = o().createContext(), Re = Ye.Consumer; function _e(e) { - var t = (0, i.useContext)(Ye), - n = (0, i.useMemo)( + var t = (0, r.useContext)(Ye), + n = (0, r.useMemo)( function() { return (function(e, t) { return e @@ -114195,10 +112732,10 @@ } var Ue = {}; function Oe(e, t, n) { - var r = w(e), - a = !Qe(e), - s = t.attrs, - A = void 0 === s ? f : s, + var i = w(e), + s = !Qe(e), + a = t.attrs, + A = void 0 === a ? f : a, c = t.componentId, l = void 0 === c @@ -114206,9 +112743,9 @@ var n = 'string' != typeof e ? 'sc' : Ne(e); Ue[n] = (Ue[n] || 0) + 1; - var r = + var i = n + '-' + Se('5.3.11' + n + Ue[n]); - return t ? t + '-' + r : r; + return t ? t + '-' + i : i; })(t.displayName, t.parentComponentId) : c, g = t.displayName, @@ -114225,87 +112762,87 @@ ? Ne(t.displayName) + '-' + t.componentId : t.componentId || l, p = - r && e.attrs + i && e.attrs ? Array.prototype .concat(e.attrs, A) .filter(Boolean) : A, m = t.shouldForwardProp; - r && + i && e.shouldForwardProp && (m = t.shouldForwardProp - ? function(n, r, i) { + ? function(n, i, r) { return ( - e.shouldForwardProp(n, r, i) && - t.shouldForwardProp(n, r, i) + e.shouldForwardProp(n, i, r) && + t.shouldForwardProp(n, i, r) ); } : e.shouldForwardProp); var b, - v = new ne(n, C, r ? e.componentStyle : void 0), - M = v.isStatic && 0 === A.length, + M = new ne(n, C, i ? e.componentStyle : void 0), + v = M.isStatic && 0 === A.length, N = function(e, t) { - return (function(e, t, n, r) { + return (function(e, t, n, i) { var o = e.attrs, - a = e.componentStyle, - s = e.defaultProps, + s = e.componentStyle, + a = e.defaultProps, A = e.foldedComponentIds, c = e.shouldForwardProp, l = e.styledComponentId, g = e.target, d = (function(e, t, n) { void 0 === e && (e = E); - var r = I({}, t, {theme: e}), - i = {}; + var i = I({}, t, {theme: e}), + r = {}; return ( n.forEach(function(e) { var t, n, o, - a = e; - for (t in (y(a) && (a = a(r)), - a)) - r[t] = i[t] = + s = e; + for (t in (y(s) && (s = s(i)), + s)) + i[t] = r[t] = 'className' === t - ? ((n = i[t]), - (o = a[t]), + ? ((n = r[t]), + (o = s[t]), n && o ? n + ' ' + o : n || o) - : a[t]; + : s[t]; }), - [r, i] + [i, r] ); })( - be(t, (0, i.useContext)(Ye), s) || E, + be(t, (0, r.useContext)(Ye), a) || E, t, o ), h = d[0], C = d[1], - p = (function(e, t, n, r) { - var i = ge(), + p = (function(e, t, n, i) { + var r = ge(), o = ue(); return t - ? e.generateAndInjectStyles(E, i, o) + ? e.generateAndInjectStyles(E, r, o) : e.generateAndInjectStyles( n, - i, + r, o ); - })(a, r, h), + })(s, i, h), m = n, f = C.$as || t.$as || C.as || t.as || g, B = Qe(f), w = C !== t ? I({}, t, {}, C) : t, b = {}; - for (var v in w) - '$' !== v[0] && - 'as' !== v && - ('forwardedAs' === v - ? (b.as = w[v]) - : (c ? c(v, u, f) : !B || u(v)) && - (b[v] = w[v])); + for (var M in w) + '$' !== M[0] && + 'as' !== M && + ('forwardedAs' === M + ? (b.as = w[M]) + : (c ? c(M, u, f) : !B || u(M)) && + (b[M] = w[M])); return ( t.style && C.style !== t.style && @@ -114321,41 +112858,41 @@ .filter(Boolean) .join(' ')), (b.ref = m), - (0, i.createElement)(f, b) + (0, r.createElement)(f, b) ); - })(b, e, t, M); + })(b, e, t, v); }; return ( (N.displayName = d), ((b = o().forwardRef(N)).attrs = p), - (b.componentStyle = v), + (b.componentStyle = M), (b.displayName = d), (b.shouldForwardProp = m), - (b.foldedComponentIds = r + (b.foldedComponentIds = i ? Array.prototype.concat( e.foldedComponentIds, e.styledComponentId ) : f), (b.styledComponentId = C), - (b.target = r ? e.target : e), + (b.target = i ? e.target : e), (b.withComponent = function(e) { - var r = t.componentId, - i = (function(e, t) { + var i = t.componentId, + r = (function(e, t) { if (null == e) return {}; var n, - r, - i = {}, + i, + r = {}, o = Object.keys(e); - for (r = 0; r < o.length; r++) - (n = o[r]), - t.indexOf(n) >= 0 || (i[n] = e[n]); - return i; + for (i = 0; i < o.length; i++) + (n = o[i]), + t.indexOf(n) >= 0 || (r[n] = e[n]); + return r; })(t, ['componentId']), - o = r && r + '-' + (Qe(e) ? e : Ne(B(e))); + o = i && i + '-' + (Qe(e) ? e : Ne(B(e))); return Oe( e, - I({}, i, {attrs: p, componentId: o}), + I({}, r, {attrs: p, componentId: o}), n ); }), @@ -114364,7 +112901,7 @@ return this._foldedDefaultProps; }, set: function(t) { - this._foldedDefaultProps = r + this._foldedDefaultProps = i ? Te({}, e.defaultProps, t) : t; }, @@ -114374,7 +112911,7 @@ return '.' + b.styledComponentId; }, }), - a && + s && h()(b, e, { attrs: !0, componentStyle: !0, @@ -114388,27 +112925,27 @@ b ); } - var ke = function(e) { - return (function e(t, n, i) { + var Ge = function(e) { + return (function e(t, n, r) { if ( - (void 0 === i && (i = E), - !(0, r.isValidElementType)(n)) + (void 0 === r && (r = E), + !(0, i.isValidElementType)(n)) ) return Q(1, String(n)); var o = function() { - return t(n, i, we.apply(void 0, arguments)); + return t(n, r, we.apply(void 0, arguments)); }; return ( - (o.withConfig = function(r) { - return e(t, n, I({}, i, {}, r)); + (o.withConfig = function(i) { + return e(t, n, I({}, r, {}, i)); }), - (o.attrs = function(r) { + (o.attrs = function(i) { return e( t, n, - I({}, i, { + I({}, r, { attrs: Array.prototype - .concat(i.attrs, r) + .concat(r.attrs, i) .filter(Boolean), }) ); @@ -114555,9 +113092,9 @@ 'textPath', 'tspan', ].forEach(function(e) { - ke[e] = ke(e); + Ge[e] = Ge(e); }); - var Ge = (function() { + var Le = (function() { function e(e, t) { (this.rules = e), (this.componentId = t), @@ -114566,85 +113103,85 @@ } var t = e.prototype; return ( - (t.createStyles = function(e, t, n, r) { - var i = r(ye(this.rules, t, n, r).join(''), ''), + (t.createStyles = function(e, t, n, i) { + var r = i(ye(this.rules, t, n, i).join(''), ''), o = this.componentId + e; - n.insertRules(o, o, i); + n.insertRules(o, o, r); }), (t.removeStyles = function(e, t) { t.clearRules(this.componentId + e); }), - (t.renderStyles = function(e, t, n, r) { + (t.renderStyles = function(e, t, n, i) { e > 2 && V.registerId(this.componentId + e), this.removeStyles(e, n), - this.createStyles(e, t, n, r); + this.createStyles(e, t, n, i); }), e ); })(); - function Le(e) { + function ke(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ + i = 1; + i < t; + i++ ) - n[r - 1] = arguments[r]; - var a = we.apply(void 0, [e].concat(n)), - s = 'sc-global-' + Se(JSON.stringify(a)), - A = new Ge(a, s); + n[i - 1] = arguments[i]; + var s = we.apply(void 0, [e].concat(n)), + a = 'sc-global-' + Se(JSON.stringify(s)), + A = new Le(s, a); function c(e) { var t = ge(), n = ue(), - r = (0, i.useContext)(Ye), - o = (0, i.useRef)(t.allocateGSInstance(s)).current; + i = (0, r.useContext)(Ye), + o = (0, r.useRef)(t.allocateGSInstance(a)).current; return ( - t.server && l(o, e, t, r, n), - (0, i.useLayoutEffect)( + t.server && l(o, e, t, i, n), + (0, r.useLayoutEffect)( function() { if (!t.server) return ( - l(o, e, t, r, n), + l(o, e, t, i, n), function() { return A.removeStyles(o, t); } ); }, - [o, e, t, r, n] + [o, e, t, i, n] ), null ); } - function l(e, t, n, r, i) { - if (A.isStatic) A.renderStyles(e, S, n, i); + function l(e, t, n, i, r) { + if (A.isStatic) A.renderStyles(e, S, n, r); else { - var o = I({}, t, {theme: be(t, r, c.defaultProps)}); - A.renderStyles(e, o, n, i); + var o = I({}, t, {theme: be(t, i, c.defaultProps)}); + A.renderStyles(e, o, n, r); } } return o().memo(c); } - function je(e) { + function ze(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ + i = 1; + i < t; + i++ ) - n[r - 1] = arguments[r]; - var i = we.apply(void 0, [e].concat(n)).join(''), - o = Se(i); - return new he(o, i); + n[i - 1] = arguments[i]; + var r = we.apply(void 0, [e].concat(n)).join(''), + o = Se(r); + return new he(o, r); } - var ze = (function() { + var je = (function() { function e() { var e = this; (this._emitSheetCSS = function() { var t = e.instance.toString(); if (!t) return ''; - var n = L(); + var n = k(); return ( '\"},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[N]=\"\",t[\"data-styled-version\"]=\"5.3.11\",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=Y();return o&&(n.nonce=o),[r.createElement(\"style\",y({},n,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new X({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?D(2):r.createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return D(3)},e}(),Je=function(e){var t=r.forwardRef((function(t,n){var o=s(Me),i=e.defaultProps,a=Oe(t,o,i);return\"production\"!==process.env.NODE_ENV&&void 0===a&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"'+b(e)+'\"'),r.createElement(e,y({},t,{theme:a,ref:n}))}));return m(t,e),t.displayName=\"WithTheme(\"+b(e)+\")\",t},Xe=function(){return s(Me)},Ze={StyleSheet:X,masterSheet:de};\"production\"!==process.env.NODE_ENV&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product&&console.warn(\"It looks like you've imported 'styled-components' on React Native.\\nPerhaps you're looking to import 'styled-components/native'?\\nRead more about this at https://www.styled-components.com/docs/basics#react-native\"),\"production\"!==process.env.NODE_ENV&&\"test\"!==process.env.NODE_ENV&&\"undefined\"!=typeof window&&(window[\"__styled-components-init__\"]=window[\"__styled-components-init__\"]||0,1===window[\"__styled-components-init__\"]&&console.warn(\"It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\\n\\nSee https://s-c.sh/2BAXzed for more info.\"),window[\"__styled-components-init__\"]+=1);export default qe;export{Ue as ServerStyleSheet,ue as StyleSheetConsumer,ce as StyleSheetContext,me as StyleSheetManager,Ge as ThemeConsumer,Me as ThemeContext,Le as ThemeProvider,Ze as __PRIVATE__,$e as createGlobalStyle,Ae as css,_ as isStyledComponent,We as keyframes,Xe as useTheme,A as version,Je as withTheme};\n//# sourceMappingURL=styled-components.browser.esm.js.map\n","/**\n\tThe missing SVG.toDataURL library for your SVG elements.\n\t\n\tUsage: SVGElement.toDataURL( type, { options } )\n\n\tReturns: the data URL, except when using native PNG renderer (needs callback).\n\n\ttype\tMIME type of the exported data.\n\t\t\tDefault: image/svg+xml.\n\t\t\tMust support: image/png.\n\t\t\tAdditional: image/jpeg.\n\n\toptions is a map of options: {\n\t\tcallback: function(dataURL)\n\t\t\tCallback function which is called when the data URL is ready.\n\t\t\tThis is only necessary when using native PNG renderer.\n\t\t\tDefault: undefined.\n\t\t\n\t\t[the rest of the options only apply when type=\"image/png\" or type=\"image/jpeg\"]\n\n\t\trenderer: \"native\"|\"canvg\"\n\t\t\tPNG renderer to use. Native renderer¹ might cause a security exception.\n\t\t\tDefault: canvg if available, otherwise native.\n\n\t\tkeepNonSafe: true|false\n\t\t\tExport non-safe (image and foreignObject) elements.\n\t\t\tThis will set the Canvas origin-clean property to false, if this data is transferred to Canvas.\n\t\t\tDefault: false, to keep origin-clean true.\n\t\t\tNOTE: not currently supported and is just ignored.\n\n\t\tkeepOutsideViewport: true|false\n\t\t\tExport all drawn content, even if not visible.\n\t\t\tDefault: false, export only visible viewport, similar to Canvas toDataURL().\n\t\t\tNOTE: only supported with canvg renderer.\n\t}\n\n\tSee original paper¹ for more info on SVG to Canvas exporting.\n\n\t¹ http://svgopen.org/2010/papers/62-From_SVG_to_Canvas_and_Back/#svg_to_canvas\n*/\n\nmodule.exports = function toDataURL(_svg, type, options) {\n\tfunction defaultDebug(s) {\n\t\tconsole.log(\"SVG.toDataURL:\", s);\n\t}\n var debug = options && options.debug ? options.debug : defaultDebug;\n var myCanvg = options && options.canvg ? options.canvg : typeof canvg === 'function' ? canvg : window.canvg;\n\n\tfunction exportSVG() {\n\t\tvar svg_xml = XMLSerialize(_svg);\n\t\tvar svg_dataurl = base64dataURLencode(svg_xml);\n\t\tdebug(type + \" length: \" + svg_dataurl.length);\n\n\t\t// NOTE double data carrier\n\t\tif (options.callback) options.callback(svg_dataurl);\n\t\treturn svg_dataurl;\n\t}\n\n\tfunction XMLSerialize(svg) {\n\n\t\t// quick-n-serialize an SVG dom, needed for IE9 where there's no XMLSerializer nor SVG.xml\n\t\t// s: SVG dom, which is the elemennt\n\t\tfunction XMLSerializerForIE(s) {\n\t\t\tvar out = \"\";\n\t\t\t\n\t\t\tout += \"<\" + s.nodeName;\n\t\t\tfor (var n = 0; n < s.attributes.length; n++) {\n\t\t\t\tout += \" \" + s.attributes[n].name + \"=\" + \"'\" + s.attributes[n].value + \"'\";\n\t\t\t}\n\t\t\t\n\t\t\tif (s.hasChildNodes()) {\n\t\t\t\tout += \">\\n\";\n\n\t\t\t\tfor (var n = 0; n < s.childNodes.length; n++) {\n\t\t\t\t\tout += XMLSerializerForIE(s.childNodes[n]);\n\t\t\t\t}\n\n\t\t\t\tout += \"\" + \"\\n\";\n\n\t\t\t} else out += \" />\\n\";\n\n\t\t\treturn out;\n\t\t}\n\n\t\t\n\t\tif (window.XMLSerializer) {\n\t\t\tdebug(\"using standard XMLSerializer.serializeToString\")\n\t\t\treturn (new XMLSerializer()).serializeToString(svg);\n\t\t} else {\n\t\t\tdebug(\"using custom XMLSerializerForIE\")\n\t\t\treturn XMLSerializerForIE(svg);\n\t\t}\n\t\n\t}\n\n\tfunction base64dataURLencode(s) {\n\t\tvar b64 = \"data:image/svg+xml;base64,\";\n\n\t\t// https://developer.mozilla.org/en/DOM/window.btoa\n\t\tif (window.btoa) {\n\t\t\tdebug(\"using window.btoa for base64 encoding\");\n\t\t\tb64 += btoa(s);\n\t\t} else {\n\t\t\tdebug(\"using custom base64 encoder\");\n\t\t\tb64 += Base64.encode(s);\n\t\t}\n\t\t\n\t\treturn b64;\n\t}\n\n\tfunction exportImage(type) {\n\t\tvar canvas = document.createElement(\"canvas\");\n\t\tvar ctx = canvas.getContext('2d');\n\n\t\t// TODO: if (options.keepOutsideViewport), do some translation magic?\n\n\t\tvar svg_img = new Image();\n\t\tvar svg_xml = XMLSerialize(_svg);\n\t\tsvg_img.src = base64dataURLencode(svg_xml);\n\n\t\tsvg_img.onload = function() {\n\t\t\tdebug(\"exported image size: \" + [svg_img.width, svg_img.height])\n\t\t\tcanvas.width = svg_img.width;\n\t\t\tcanvas.height = svg_img.height;\n\t\t\tctx.drawImage(svg_img, 0, 0);\n\n\t\t\t// SECURITY_ERR WILL HAPPEN NOW\n\t\t\tvar png_dataurl = canvas.toDataURL(type);\n\t\t\tdebug(type + \" length: \" + png_dataurl.length);\n\n\t\t\tif (options.callback) options.callback( png_dataurl );\n\t\t\telse debug(\"WARNING: no callback set, so nothing happens.\");\n\t\t}\n\t\t\n\t\tsvg_img.onerror = function() {\n\t\t\tconsole.log(\n\t\t\t\t\"Can't export! Maybe your browser doesn't support \" +\n\t\t\t\t\"SVG in img element or SVG input for Canvas drawImage?\\n\" +\n\t\t\t\t\"http://en.wikipedia.org/wiki/SVG#Native_support\"\n\t\t\t);\n\t\t}\n\n\t\t// NOTE: will not return anything\n\t}\n\n\tfunction exportImageCanvg(type) {\n\t\tvar canvas = document.createElement(\"canvas\");\n\t\tvar ctx = canvas.getContext('2d');\n\t\tvar svg_xml = XMLSerialize(_svg);\n\n\t\t// NOTE: canvg gets the SVG element dimensions incorrectly if not specified as attributes\n\t\t//debug(\"detected svg dimensions \" + [_svg.clientWidth, _svg.clientHeight])\n\t\t//debug(\"canvas dimensions \" + [canvas.width, canvas.height])\n\n\t\tvar keepBB = options.keepOutsideViewport;\n\t\tif (keepBB) var bb = _svg.getBBox();\n\n\t\t// NOTE: this canvg call is synchronous and blocks\n\t\tmyCanvg(canvas, svg_xml, { \n\t\t\tignoreMouse: true, ignoreAnimation: true,\n\t\t\toffsetX: keepBB ? -bb.x : undefined, \n\t\t\toffsetY: keepBB ? -bb.y : undefined,\n\t\t\tscaleWidth: keepBB ? bb.width+bb.x : undefined,\n\t\t\tscaleHeight: keepBB ? bb.height+bb.y : undefined,\n\t\t\trenderCallback: function() {\n\t\t\t\tdebug(\"exported image dimensions \" + [canvas.width, canvas.height]);\n\t\t\t\tvar png_dataurl = canvas.toDataURL(type);\n\t\t\t\tdebug(type + \" length: \" + png_dataurl.length);\n\t\n\t\t\t\tif (options.callback) options.callback( png_dataurl );\n\t\t\t}\n\t\t});\n\n\t\t// NOTE: return in addition to callback\n\t\treturn canvas.toDataURL(type);\n\t}\n\n\t// BEGIN MAIN\n\n\tif (!type) type = \"image/svg+xml\";\n\tif (!options) options = {};\n\n\tif (options.keepNonSafe) debug(\"NOTE: keepNonSafe is NOT supported and will be ignored!\");\n\tif (options.keepOutsideViewport) debug(\"NOTE: keepOutsideViewport is only supported with canvg exporter.\");\n\t\n\tswitch (type) {\n\t\tcase \"image/svg+xml\":\n\t\t\treturn exportSVG();\n\t\t\tbreak;\n\n\t\tcase \"image/png\":\n\t\tcase \"image/jpeg\":\n\n\t\t\tif (!options.renderer) {\n\t\t\t\tif (window.canvg) options.renderer = \"canvg\";\n\t\t\t\telse options.renderer=\"native\";\n\t\t\t}\n\n\t\t\tswitch (options.renderer) {\n\t\t\t\tcase \"canvg\":\n\t\t\t\t\tdebug(\"using canvg renderer for png export\");\n\t\t\t\t\treturn exportImageCanvg(type);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"native\":\n\t\t\t\t\tdebug(\"using native renderer for png export. THIS MIGHT FAIL.\");\n\t\t\t\t\treturn exportImage(type);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdebug(\"unknown png renderer given, doing noting (\" + options.renderer + \")\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tdebug(\"Sorry! Exporting as '\" + type + \"' is not supported!\")\n\t}\n}\n","module.exports = function createTapListener(el, callback, useCapture) {\n var startX = 0;\n var startY = 0;\n var touchStarted = false;\n var touchMoved = false;\n // Assume that if a touchstart event initiates, the user is\n // using touch and click events should be ignored.\n // If this isn't done, touch-clicks will fire the callback\n // twice: once on touchend, once on the subsequent \"click\".\n var usingTouch = false;\n\n el.addEventListener('click', handleClick, useCapture);\n el.addEventListener('touchstart', handleTouchstart, useCapture);\n\n function handleClick(e) {\n if (usingTouch) return;\n callback(e);\n }\n\n function handleTouchstart(e) {\n usingTouch = true;\n\n if (touchStarted) return;\n touchStarted = true;\n\n el.addEventListener('touchmove', handleTouchmove, useCapture);\n el.addEventListener('touchend', handleTouchend, useCapture);\n el.addEventListener('touchcancel', handleTouchcancel, useCapture);\n\n touchMoved = false;\n startX = e.touches[0].clientX;\n startY = e.touches[0].clientY;\n }\n\n function handleTouchmove(e) {\n if (touchMoved) return;\n\n if (\n Math.abs(e.touches[0].clientX - startX) <= 10\n && Math.abs(e.touches[0].clientY - startY) <= 10\n ) return;\n\n touchMoved = true;\n }\n\n function handleTouchend(e) {\n touchStarted = false;\n removeSecondaryTouchListeners();\n if (!touchMoved) {\n callback(e);\n }\n }\n\n function handleTouchcancel() {\n touchStarted = false;\n touchMoved = false;\n startX = 0;\n startY = 0;\n }\n\n function removeSecondaryTouchListeners() {\n el.removeEventListener('touchmove', handleTouchmove, useCapture);\n el.removeEventListener('touchend', handleTouchend, useCapture);\n el.removeEventListener('touchcancel', handleTouchcancel, useCapture);\n }\n\n function removeTapListener() {\n el.removeEventListener('click', handleClick, useCapture);\n el.removeEventListener('touchstart', handleTouchstart, useCapture);\n removeSecondaryTouchListeners();\n }\n\n return {\n remove: removeTapListener,\n };\n};\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\nmodule.exports = function isBuffer (obj) {\n return obj != null && obj.constructor != null &&\n typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n","'use strict'\n\nvar convert = require('unist-util-is/convert')\n\nmodule.exports = findAfter\n\nfunction findAfter(parent, index, test) {\n var is = convert(test)\n var children\n var child\n var length\n\n if (!parent || !parent.type || !parent.children) {\n throw new Error('Expected parent node')\n }\n\n children = parent.children\n length = children.length\n\n if (index && index.type) {\n index = children.indexOf(index)\n }\n\n if (isNaN(index) || index < 0 || index === Infinity) {\n throw new Error('Expected positive finite index or child node')\n }\n\n while (++index < length) {\n child = children[index]\n\n if (is(child, index, parent)) {\n return child\n }\n }\n\n return null\n}\n","'use strict'\n\nmodule.exports = convert\n\nfunction convert(test) {\n if (test == null) {\n return ok\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n if (typeof test === 'object') {\n return 'length' in test ? anyFactory(test) : allFactory(test)\n }\n\n if (typeof test === 'function') {\n return test\n }\n\n throw new Error('Expected function, string, or object as test')\n}\n\n// Utility assert each property in `test` is represented in `node`, and each\n// values are strictly equal.\nfunction allFactory(test) {\n return all\n\n function all(node) {\n var key\n\n for (key in test) {\n if (node[key] !== test[key]) return false\n }\n\n return true\n }\n}\n\nfunction anyFactory(tests) {\n var checks = []\n var index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return any\n\n function any() {\n var index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, arguments)) {\n return true\n }\n }\n\n return false\n }\n}\n\n// Utility to convert a string into a function which checks a given node’s type\n// for said string.\nfunction typeFactory(test) {\n return type\n\n function type(node) {\n return Boolean(node && node.type === test)\n }\n}\n\n// Utility to return true.\nfunction ok() {\n return true\n}\n","'use strict'\n\nmodule.exports = factory\n\nfunction factory(file) {\n var value = String(file)\n var indices = []\n var search = /\\r?\\n|\\r/g\n\n while (search.exec(value)) {\n indices.push(search.lastIndex)\n }\n\n indices.push(value.length + 1)\n\n return {\n toPoint: offsetToPoint,\n toPosition: offsetToPoint,\n toOffset: pointToOffset\n }\n\n // Get the line and column-based `point` for `offset` in the bound indices.\n function offsetToPoint(offset) {\n var index = -1\n\n if (offset > -1 && offset < indices[indices.length - 1]) {\n while (++index < indices.length) {\n if (indices[index] > offset) {\n return {\n line: index + 1,\n column: offset - (indices[index - 1] || 0) + 1,\n offset: offset\n }\n }\n }\n }\n\n return {}\n }\n\n // Get the `offset` for a line and column-based `point` in the bound\n // indices.\n function pointToOffset(point) {\n var line = point && point.line\n var column = point && point.column\n var offset\n\n if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {\n offset = (indices[line - 2] || 0) + column - 1 || 0\n }\n\n return offset > -1 && offset < indices[indices.length - 1] ? offset : -1\n }\n}\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\nmodule.exports = function isBuffer (obj) {\n return obj != null && obj.constructor != null &&\n typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n","/**\n * vis-data\n * http://visjs.org/\n *\n * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.\n *\n * @version 7.1.9\n * @date 2023-11-24T17:53:34.179Z\n *\n * @copyright (c) 2011-2017 Almende B.V, http://almende.com\n * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n *\n * @license\n * vis.js is dual licensed under both\n *\n * 1. The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * 2. The MIT License\n * http://opensource.org/licenses/MIT\n *\n * vis.js may be distributed under either license.\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.vis = global.vis || {}));\n})(this, (function (exports) {\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n function getDefaultExportFromCjs (x) {\n \treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n }\n\n var defineProperty$f = {exports: {}};\n\n var check = function (it) {\n return it && it.Math === Math && it;\n };\n\n // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n var global$p =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || commonjsGlobal || Function('return this')();\n\n var fails$u = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n };\n\n var fails$t = fails$u;\n\n var functionBindNative = !fails$t(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n });\n\n var NATIVE_BIND$4 = functionBindNative;\n\n var FunctionPrototype$4 = Function.prototype;\n var apply$6 = FunctionPrototype$4.apply;\n var call$k = FunctionPrototype$4.call;\n\n // eslint-disable-next-line es/no-reflect -- safe\n var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$4 ? call$k.bind(apply$6) : function () {\n return call$k.apply(apply$6, arguments);\n });\n\n var NATIVE_BIND$3 = functionBindNative;\n\n var FunctionPrototype$3 = Function.prototype;\n var call$j = FunctionPrototype$3.call;\n var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$3.bind.bind(call$j, call$j);\n\n var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {\n return function () {\n return call$j.apply(fn, arguments);\n };\n };\n\n var uncurryThis$q = functionUncurryThis;\n\n var toString$9 = uncurryThis$q({}.toString);\n var stringSlice$1 = uncurryThis$q(''.slice);\n\n var classofRaw$2 = function (it) {\n return stringSlice$1(toString$9(it), 8, -1);\n };\n\n var classofRaw$1 = classofRaw$2;\n var uncurryThis$p = functionUncurryThis;\n\n var functionUncurryThisClause = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw$1(fn) === 'Function') return uncurryThis$p(fn);\n };\n\n var documentAll$2 = typeof document == 'object' && document.all;\n\n // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\n var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;\n\n var documentAll_1 = {\n all: documentAll$2,\n IS_HTMLDDA: IS_HTMLDDA\n };\n\n var $documentAll$1 = documentAll_1;\n\n var documentAll$1 = $documentAll$1.all;\n\n // `IsCallable` abstract operation\n // https://tc39.es/ecma262/#sec-iscallable\n var isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll$1;\n } : function (argument) {\n return typeof argument == 'function';\n };\n\n var objectGetOwnPropertyDescriptor = {};\n\n var fails$s = fails$u;\n\n // Detect IE8's incomplete defineProperty implementation\n var descriptors = !fails$s(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n });\n\n var NATIVE_BIND$2 = functionBindNative;\n\n var call$i = Function.prototype.call;\n\n var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {\n return call$i.apply(call$i, arguments);\n };\n\n var objectPropertyIsEnumerable = {};\n\n var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var getOwnPropertyDescriptor$7 = Object.getOwnPropertyDescriptor;\n\n // Nashorn ~ JDK8 bug\n var NASHORN_BUG = getOwnPropertyDescriptor$7 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);\n\n // `Object.prototype.propertyIsEnumerable` method implementation\n // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\n objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor$7(this, V);\n return !!descriptor && descriptor.enumerable;\n } : $propertyIsEnumerable$1;\n\n var createPropertyDescriptor$7 = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n };\n\n var uncurryThis$o = functionUncurryThis;\n var fails$r = fails$u;\n var classof$f = classofRaw$2;\n\n var $Object$4 = Object;\n var split = uncurryThis$o(''.split);\n\n // fallback for non-array-like ES3 and non-enumerable old V8 strings\n var indexedObject = fails$r(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object$4('z').propertyIsEnumerable(0);\n }) ? function (it) {\n return classof$f(it) === 'String' ? split(it, '') : $Object$4(it);\n } : $Object$4;\n\n // we can't use just `it == null` since of `document.all` special case\n // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\n var isNullOrUndefined$6 = function (it) {\n return it === null || it === undefined;\n };\n\n var isNullOrUndefined$5 = isNullOrUndefined$6;\n\n var $TypeError$g = TypeError;\n\n // `RequireObjectCoercible` abstract operation\n // https://tc39.es/ecma262/#sec-requireobjectcoercible\n var requireObjectCoercible$3 = function (it) {\n if (isNullOrUndefined$5(it)) throw new $TypeError$g(\"Can't call method on \" + it);\n return it;\n };\n\n // toObject with fallback for non-array-like ES3 strings\n var IndexedObject$3 = indexedObject;\n var requireObjectCoercible$2 = requireObjectCoercible$3;\n\n var toIndexedObject$a = function (it) {\n return IndexedObject$3(requireObjectCoercible$2(it));\n };\n\n var isCallable$l = isCallable$m;\n var $documentAll = documentAll_1;\n\n var documentAll = $documentAll.all;\n\n var isObject$h = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll;\n } : function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it);\n };\n\n var path$o = {};\n\n var path$n = path$o;\n var global$o = global$p;\n var isCallable$k = isCallable$m;\n\n var aFunction = function (variable) {\n return isCallable$k(variable) ? variable : undefined;\n };\n\n var getBuiltIn$f = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path$n[namespace]) || aFunction(global$o[namespace])\n : path$n[namespace] && path$n[namespace][method] || global$o[namespace] && global$o[namespace][method];\n };\n\n var uncurryThis$n = functionUncurryThis;\n\n var objectIsPrototypeOf = uncurryThis$n({}.isPrototypeOf);\n\n var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n\n var global$n = global$p;\n var userAgent$5 = engineUserAgent;\n\n var process$3 = global$n.process;\n var Deno$1 = global$n.Deno;\n var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;\n var v8 = versions && versions.v8;\n var match, version;\n\n if (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n }\n\n // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n // so check `userAgent` even if `.v8` exists, but 0\n if (!version && userAgent$5) {\n match = userAgent$5.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent$5.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n }\n\n var engineV8Version = version;\n\n /* eslint-disable es/no-symbol -- required for testing */\n var V8_VERSION$3 = engineV8Version;\n var fails$q = fails$u;\n var global$m = global$p;\n\n var $String$5 = global$m.String;\n\n // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\n var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$q(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;\n });\n\n /* eslint-disable es/no-symbol -- required for testing */\n var NATIVE_SYMBOL$5 = symbolConstructorDetection;\n\n var useSymbolAsUid = NATIVE_SYMBOL$5\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n\n var getBuiltIn$e = getBuiltIn$f;\n var isCallable$j = isCallable$m;\n var isPrototypeOf$k = objectIsPrototypeOf;\n var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;\n\n var $Object$3 = Object;\n\n var isSymbol$5 = USE_SYMBOL_AS_UID$1 ? function (it) {\n return typeof it == 'symbol';\n } : function (it) {\n var $Symbol = getBuiltIn$e('Symbol');\n return isCallable$j($Symbol) && isPrototypeOf$k($Symbol.prototype, $Object$3(it));\n };\n\n var $String$4 = String;\n\n var tryToString$6 = function (argument) {\n try {\n return $String$4(argument);\n } catch (error) {\n return 'Object';\n }\n };\n\n var isCallable$i = isCallable$m;\n var tryToString$5 = tryToString$6;\n\n var $TypeError$f = TypeError;\n\n // `Assert: IsCallable(argument) is true`\n var aCallable$e = function (argument) {\n if (isCallable$i(argument)) return argument;\n throw new $TypeError$f(tryToString$5(argument) + ' is not a function');\n };\n\n var aCallable$d = aCallable$e;\n var isNullOrUndefined$4 = isNullOrUndefined$6;\n\n // `GetMethod` abstract operation\n // https://tc39.es/ecma262/#sec-getmethod\n var getMethod$3 = function (V, P) {\n var func = V[P];\n return isNullOrUndefined$4(func) ? undefined : aCallable$d(func);\n };\n\n var call$h = functionCall;\n var isCallable$h = isCallable$m;\n var isObject$g = isObject$h;\n\n var $TypeError$e = TypeError;\n\n // `OrdinaryToPrimitive` abstract operation\n // https://tc39.es/ecma262/#sec-ordinarytoprimitive\n var ordinaryToPrimitive$1 = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$g(val = call$h(fn, input))) return val;\n if (isCallable$h(fn = input.valueOf) && !isObject$g(val = call$h(fn, input))) return val;\n if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$g(val = call$h(fn, input))) return val;\n throw new $TypeError$e(\"Can't convert object to primitive value\");\n };\n\n var shared$7 = {exports: {}};\n\n var isPure = true;\n\n var global$l = global$p;\n\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n var defineProperty$e = Object.defineProperty;\n\n var defineGlobalProperty$1 = function (key, value) {\n try {\n defineProperty$e(global$l, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global$l[key] = value;\n } return value;\n };\n\n var global$k = global$p;\n var defineGlobalProperty = defineGlobalProperty$1;\n\n var SHARED = '__core-js_shared__';\n var store$3 = global$k[SHARED] || defineGlobalProperty(SHARED, {});\n\n var sharedStore = store$3;\n\n var store$2 = sharedStore;\n\n (shared$7.exports = function (key, value) {\n return store$2[key] || (store$2[key] = value !== undefined ? value : {});\n })('versions', []).push({\n version: '3.33.2',\n mode: 'pure' ,\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n });\n\n var sharedExports = shared$7.exports;\n\n var requireObjectCoercible$1 = requireObjectCoercible$3;\n\n var $Object$2 = Object;\n\n // `ToObject` abstract operation\n // https://tc39.es/ecma262/#sec-toobject\n var toObject$e = function (argument) {\n return $Object$2(requireObjectCoercible$1(argument));\n };\n\n var uncurryThis$m = functionUncurryThis;\n var toObject$d = toObject$e;\n\n var hasOwnProperty = uncurryThis$m({}.hasOwnProperty);\n\n // `HasOwnProperty` abstract operation\n // https://tc39.es/ecma262/#sec-hasownproperty\n // eslint-disable-next-line es/no-object-hasown -- safe\n var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject$d(it), key);\n };\n\n var uncurryThis$l = functionUncurryThis;\n\n var id$1 = 0;\n var postfix = Math.random();\n var toString$8 = uncurryThis$l(1.0.toString);\n\n var uid$4 = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id$1 + postfix, 36);\n };\n\n var global$j = global$p;\n var shared$6 = sharedExports;\n var hasOwn$j = hasOwnProperty_1;\n var uid$3 = uid$4;\n var NATIVE_SYMBOL$4 = symbolConstructorDetection;\n var USE_SYMBOL_AS_UID = useSymbolAsUid;\n\n var Symbol$3 = global$j.Symbol;\n var WellKnownSymbolsStore$2 = shared$6('wks');\n var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3['for'] || Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$3;\n\n var wellKnownSymbol$n = function (name) {\n if (!hasOwn$j(WellKnownSymbolsStore$2, name)) {\n WellKnownSymbolsStore$2[name] = NATIVE_SYMBOL$4 && hasOwn$j(Symbol$3, name)\n ? Symbol$3[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore$2[name];\n };\n\n var call$g = functionCall;\n var isObject$f = isObject$h;\n var isSymbol$4 = isSymbol$5;\n var getMethod$2 = getMethod$3;\n var ordinaryToPrimitive = ordinaryToPrimitive$1;\n var wellKnownSymbol$m = wellKnownSymbol$n;\n\n var $TypeError$d = TypeError;\n var TO_PRIMITIVE = wellKnownSymbol$m('toPrimitive');\n\n // `ToPrimitive` abstract operation\n // https://tc39.es/ecma262/#sec-toprimitive\n var toPrimitive$6 = function (input, pref) {\n if (!isObject$f(input) || isSymbol$4(input)) return input;\n var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call$g(exoticToPrim, input, pref);\n if (!isObject$f(result) || isSymbol$4(result)) return result;\n throw new $TypeError$d(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n };\n\n var toPrimitive$5 = toPrimitive$6;\n var isSymbol$3 = isSymbol$5;\n\n // `ToPropertyKey` abstract operation\n // https://tc39.es/ecma262/#sec-topropertykey\n var toPropertyKey$4 = function (argument) {\n var key = toPrimitive$5(argument, 'string');\n return isSymbol$3(key) ? key : key + '';\n };\n\n var global$i = global$p;\n var isObject$e = isObject$h;\n\n var document$3 = global$i.document;\n // typeof document.createElement is 'object' in old IE\n var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement);\n\n var documentCreateElement$1 = function (it) {\n return EXISTS$1 ? document$3.createElement(it) : {};\n };\n\n var DESCRIPTORS$h = descriptors;\n var fails$p = fails$u;\n var createElement$1 = documentCreateElement$1;\n\n // Thanks to IE8 for its funny defineProperty\n var ie8DomDefine = !DESCRIPTORS$h && !fails$p(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement$1('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n });\n\n var DESCRIPTORS$g = descriptors;\n var call$f = functionCall;\n var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;\n var createPropertyDescriptor$6 = createPropertyDescriptor$7;\n var toIndexedObject$9 = toIndexedObject$a;\n var toPropertyKey$3 = toPropertyKey$4;\n var hasOwn$i = hasOwnProperty_1;\n var IE8_DOM_DEFINE$1 = ie8DomDefine;\n\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;\n\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n objectGetOwnPropertyDescriptor.f = DESCRIPTORS$g ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject$9(O);\n P = toPropertyKey$3(P);\n if (IE8_DOM_DEFINE$1) try {\n return $getOwnPropertyDescriptor$2(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn$i(O, P)) return createPropertyDescriptor$6(!call$f(propertyIsEnumerableModule$2.f, O, P), O[P]);\n };\n\n var fails$o = fails$u;\n var isCallable$g = isCallable$m;\n\n var replacement = /#|\\.prototype\\./;\n\n var isForced$2 = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable$g(detection) ? fails$o(detection)\n : !!detection;\n };\n\n var normalize = isForced$2.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n };\n\n var data = isForced$2.data = {};\n var NATIVE = isForced$2.NATIVE = 'N';\n var POLYFILL = isForced$2.POLYFILL = 'P';\n\n var isForced_1 = isForced$2;\n\n var uncurryThis$k = functionUncurryThisClause;\n var aCallable$c = aCallable$e;\n var NATIVE_BIND$1 = functionBindNative;\n\n var bind$i = uncurryThis$k(uncurryThis$k.bind);\n\n // optional / simple context binding\n var functionBindContext = function (fn, that) {\n aCallable$c(fn);\n return that === undefined ? fn : NATIVE_BIND$1 ? bind$i(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n };\n\n var objectDefineProperty = {};\n\n var DESCRIPTORS$f = descriptors;\n var fails$n = fails$u;\n\n // V8 ~ Chrome 36-\n // https://bugs.chromium.org/p/v8/issues/detail?id=3334\n var v8PrototypeDefineBug = DESCRIPTORS$f && fails$n(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n });\n\n var isObject$d = isObject$h;\n\n var $String$3 = String;\n var $TypeError$c = TypeError;\n\n // `Assert: Type(argument) is Object`\n var anObject$d = function (argument) {\n if (isObject$d(argument)) return argument;\n throw new $TypeError$c($String$3(argument) + ' is not an object');\n };\n\n var DESCRIPTORS$e = descriptors;\n var IE8_DOM_DEFINE = ie8DomDefine;\n var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;\n var anObject$c = anObject$d;\n var toPropertyKey$2 = toPropertyKey$4;\n\n var $TypeError$b = TypeError;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n var $defineProperty$1 = Object.defineProperty;\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;\n var ENUMERABLE = 'enumerable';\n var CONFIGURABLE$1 = 'configurable';\n var WRITABLE = 'writable';\n\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n objectDefineProperty.f = DESCRIPTORS$e ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {\n anObject$c(O);\n P = toPropertyKey$2(P);\n anObject$c(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor$1(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty$1(O, P, Attributes);\n } : $defineProperty$1 : function defineProperty(O, P, Attributes) {\n anObject$c(O);\n P = toPropertyKey$2(P);\n anObject$c(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty$1(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n };\n\n var DESCRIPTORS$d = descriptors;\n var definePropertyModule$4 = objectDefineProperty;\n var createPropertyDescriptor$5 = createPropertyDescriptor$7;\n\n var createNonEnumerableProperty$9 = DESCRIPTORS$d ? function (object, key, value) {\n return definePropertyModule$4.f(object, key, createPropertyDescriptor$5(1, value));\n } : function (object, key, value) {\n object[key] = value;\n return object;\n };\n\n var global$h = global$p;\n var apply$5 = functionApply;\n var uncurryThis$j = functionUncurryThisClause;\n var isCallable$f = isCallable$m;\n var getOwnPropertyDescriptor$6 = objectGetOwnPropertyDescriptor.f;\n var isForced$1 = isForced_1;\n var path$m = path$o;\n var bind$h = functionBindContext;\n var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;\n var hasOwn$h = hasOwnProperty_1;\n\n var wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply$5(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n };\n\n /*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n */\n var _export = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global$h : STATIC ? global$h[TARGET] : (global$h[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path$m : path$m[TARGET] || createNonEnumerableProperty$8(path$m, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn$h(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor$6(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind$h(sourceProperty, global$h);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable$f(sourceProperty)) resultProperty = uncurryThis$j(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty$8(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty$8(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn$h(path$m, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty$8(path$m, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty$8(path$m[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty$8(targetPrototype, key, sourceProperty);\n }\n }\n }\n };\n\n var $$P = _export;\n var DESCRIPTORS$c = descriptors;\n var defineProperty$d = objectDefineProperty.f;\n\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n $$P({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$d, sham: !DESCRIPTORS$c }, {\n defineProperty: defineProperty$d\n });\n\n var path$l = path$o;\n\n var Object$4 = path$l.Object;\n\n var defineProperty$c = defineProperty$f.exports = function defineProperty(it, key, desc) {\n return Object$4.defineProperty(it, key, desc);\n };\n\n if (Object$4.defineProperty.sham) defineProperty$c.sham = true;\n\n var definePropertyExports = defineProperty$f.exports;\n\n var parent$18 = definePropertyExports;\n\n var defineProperty$b = parent$18;\n\n var parent$17 = defineProperty$b;\n\n var defineProperty$a = parent$17;\n\n var parent$16 = defineProperty$a;\n\n var defineProperty$9 = parent$16;\n\n var defineProperty$8 = defineProperty$9;\n\n var _Object$defineProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(defineProperty$8);\n\n var classof$e = classofRaw$2;\n\n // `IsArray` abstract operation\n // https://tc39.es/ecma262/#sec-isarray\n // eslint-disable-next-line es/no-array-isarray -- safe\n var isArray$e = Array.isArray || function isArray(argument) {\n return classof$e(argument) === 'Array';\n };\n\n var ceil = Math.ceil;\n var floor$1 = Math.floor;\n\n // `Math.trunc` method\n // https://tc39.es/ecma262/#sec-math.trunc\n // eslint-disable-next-line es/no-math-trunc -- safe\n var mathTrunc = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor$1 : ceil)(n);\n };\n\n var trunc = mathTrunc;\n\n // `ToIntegerOrInfinity` abstract operation\n // https://tc39.es/ecma262/#sec-tointegerorinfinity\n var toIntegerOrInfinity$4 = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n };\n\n var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;\n\n var min$2 = Math.min;\n\n // `ToLength` abstract operation\n // https://tc39.es/ecma262/#sec-tolength\n var toLength$1 = function (argument) {\n return argument > 0 ? min$2(toIntegerOrInfinity$3(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n };\n\n var toLength = toLength$1;\n\n // `LengthOfArrayLike` abstract operation\n // https://tc39.es/ecma262/#sec-lengthofarraylike\n var lengthOfArrayLike$d = function (obj) {\n return toLength(obj.length);\n };\n\n var $TypeError$a = TypeError;\n var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\n var doesNotExceedSafeInteger$4 = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError$a('Maximum allowed index exceeded');\n return it;\n };\n\n var toPropertyKey$1 = toPropertyKey$4;\n var definePropertyModule$3 = objectDefineProperty;\n var createPropertyDescriptor$4 = createPropertyDescriptor$7;\n\n var createProperty$6 = function (object, key, value) {\n var propertyKey = toPropertyKey$1(key);\n if (propertyKey in object) definePropertyModule$3.f(object, propertyKey, createPropertyDescriptor$4(0, value));\n else object[propertyKey] = value;\n };\n\n var wellKnownSymbol$l = wellKnownSymbol$n;\n\n var TO_STRING_TAG$4 = wellKnownSymbol$l('toStringTag');\n var test$2 = {};\n\n test$2[TO_STRING_TAG$4] = 'z';\n\n var toStringTagSupport = String(test$2) === '[object z]';\n\n var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;\n var isCallable$e = isCallable$m;\n var classofRaw = classofRaw$2;\n var wellKnownSymbol$k = wellKnownSymbol$n;\n\n var TO_STRING_TAG$3 = wellKnownSymbol$k('toStringTag');\n var $Object$1 = Object;\n\n // ES3 wrong here\n var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n // fallback for IE11 Script Access Denied error\n var tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n };\n\n // getting tag from ES6+ `Object.prototype.toString`\n var classof$d = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$3)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable$e(O.callee) ? 'Arguments' : result;\n };\n\n var uncurryThis$i = functionUncurryThis;\n var isCallable$d = isCallable$m;\n var store$1 = sharedStore;\n\n var functionToString = uncurryThis$i(Function.toString);\n\n // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\n if (!isCallable$d(store$1.inspectSource)) {\n store$1.inspectSource = function (it) {\n return functionToString(it);\n };\n }\n\n var inspectSource$2 = store$1.inspectSource;\n\n var uncurryThis$h = functionUncurryThis;\n var fails$m = fails$u;\n var isCallable$c = isCallable$m;\n var classof$c = classof$d;\n var getBuiltIn$d = getBuiltIn$f;\n var inspectSource$1 = inspectSource$2;\n\n var noop = function () { /* empty */ };\n var empty = [];\n var construct$4 = getBuiltIn$d('Reflect', 'construct');\n var constructorRegExp = /^\\s*(?:class|function)\\b/;\n var exec$1 = uncurryThis$h(constructorRegExp.exec);\n var INCORRECT_TO_STRING = !constructorRegExp.test(noop);\n\n var isConstructorModern = function isConstructor(argument) {\n if (!isCallable$c(argument)) return false;\n try {\n construct$4(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n };\n\n var isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable$c(argument)) return false;\n switch (classof$c(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));\n } catch (error) {\n return true;\n }\n };\n\n isConstructorLegacy.sham = true;\n\n // `IsConstructor` abstract operation\n // https://tc39.es/ecma262/#sec-isconstructor\n var isConstructor$4 = !construct$4 || fails$m(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n }) ? isConstructorLegacy : isConstructorModern;\n\n var isArray$d = isArray$e;\n var isConstructor$3 = isConstructor$4;\n var isObject$c = isObject$h;\n var wellKnownSymbol$j = wellKnownSymbol$n;\n\n var SPECIES$5 = wellKnownSymbol$j('species');\n var $Array$3 = Array;\n\n // a part of `ArraySpeciesCreate` abstract operation\n // https://tc39.es/ecma262/#sec-arrayspeciescreate\n var arraySpeciesConstructor$1 = function (originalArray) {\n var C;\n if (isArray$d(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor$3(C) && (C === $Array$3 || isArray$d(C.prototype))) C = undefined;\n else if (isObject$c(C)) {\n C = C[SPECIES$5];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array$3 : C;\n };\n\n var arraySpeciesConstructor = arraySpeciesConstructor$1;\n\n // `ArraySpeciesCreate` abstract operation\n // https://tc39.es/ecma262/#sec-arrayspeciescreate\n var arraySpeciesCreate$4 = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n };\n\n var fails$l = fails$u;\n var wellKnownSymbol$i = wellKnownSymbol$n;\n var V8_VERSION$2 = engineV8Version;\n\n var SPECIES$4 = wellKnownSymbol$i('species');\n\n var arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION$2 >= 51 || !fails$l(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES$4] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n };\n\n var $$O = _export;\n var fails$k = fails$u;\n var isArray$c = isArray$e;\n var isObject$b = isObject$h;\n var toObject$c = toObject$e;\n var lengthOfArrayLike$c = lengthOfArrayLike$d;\n var doesNotExceedSafeInteger$3 = doesNotExceedSafeInteger$4;\n var createProperty$5 = createProperty$6;\n var arraySpeciesCreate$3 = arraySpeciesCreate$4;\n var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;\n var wellKnownSymbol$h = wellKnownSymbol$n;\n var V8_VERSION$1 = engineV8Version;\n\n var IS_CONCAT_SPREADABLE = wellKnownSymbol$h('isConcatSpreadable');\n\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/679\n var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$k(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n });\n\n var isConcatSpreadable = function (O) {\n if (!isObject$b(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray$c(O);\n };\n\n var FORCED$6 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$4('concat');\n\n // `Array.prototype.concat` method\n // https://tc39.es/ecma262/#sec-array.prototype.concat\n // with adding support of @@isConcatSpreadable and @@species\n $$O({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject$c(this);\n var A = arraySpeciesCreate$3(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike$c(E);\n doesNotExceedSafeInteger$3(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty$5(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger$3(n + 1);\n createProperty$5(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n });\n\n var classof$b = classof$d;\n\n var $String$2 = String;\n\n var toString$7 = function (argument) {\n if (classof$b(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String$2(argument);\n };\n\n var objectDefineProperties = {};\n\n var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;\n\n var max$3 = Math.max;\n var min$1 = Math.min;\n\n // Helper for a popular repeating case of the spec:\n // Let integer be ? ToInteger(index).\n // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\n var toAbsoluteIndex$4 = function (index, length) {\n var integer = toIntegerOrInfinity$2(index);\n return integer < 0 ? max$3(integer + length, 0) : min$1(integer, length);\n };\n\n var toIndexedObject$8 = toIndexedObject$a;\n var toAbsoluteIndex$3 = toAbsoluteIndex$4;\n var lengthOfArrayLike$b = lengthOfArrayLike$d;\n\n // `Array.prototype.{ indexOf, includes }` methods implementation\n var createMethod$3 = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject$8($this);\n var length = lengthOfArrayLike$b(O);\n var index = toAbsoluteIndex$3(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n };\n\n var arrayIncludes = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod$3(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod$3(false)\n };\n\n var hiddenKeys$6 = {};\n\n var uncurryThis$g = functionUncurryThis;\n var hasOwn$g = hasOwnProperty_1;\n var toIndexedObject$7 = toIndexedObject$a;\n var indexOf = arrayIncludes.indexOf;\n var hiddenKeys$5 = hiddenKeys$6;\n\n var push$c = uncurryThis$g([].push);\n\n var objectKeysInternal = function (object, names) {\n var O = toIndexedObject$7(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn$g(hiddenKeys$5, key) && hasOwn$g(O, key) && push$c(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn$g(O, key = names[i++])) {\n ~indexOf(result, key) || push$c(result, key);\n }\n return result;\n };\n\n // IE8- don't enum bug keys\n var enumBugKeys$3 = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n ];\n\n var internalObjectKeys$1 = objectKeysInternal;\n var enumBugKeys$2 = enumBugKeys$3;\n\n // `Object.keys` method\n // https://tc39.es/ecma262/#sec-object.keys\n // eslint-disable-next-line es/no-object-keys -- safe\n var objectKeys$3 = Object.keys || function keys(O) {\n return internalObjectKeys$1(O, enumBugKeys$2);\n };\n\n var DESCRIPTORS$b = descriptors;\n var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;\n var definePropertyModule$2 = objectDefineProperty;\n var anObject$b = anObject$d;\n var toIndexedObject$6 = toIndexedObject$a;\n var objectKeys$2 = objectKeys$3;\n\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n // eslint-disable-next-line es/no-object-defineproperties -- safe\n objectDefineProperties.f = DESCRIPTORS$b && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject$b(O);\n var props = toIndexedObject$6(Properties);\n var keys = objectKeys$2(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);\n return O;\n };\n\n var getBuiltIn$c = getBuiltIn$f;\n\n var html$2 = getBuiltIn$c('document', 'documentElement');\n\n var shared$5 = sharedExports;\n var uid$2 = uid$4;\n\n var keys$7 = shared$5('keys');\n\n var sharedKey$4 = function (key) {\n return keys$7[key] || (keys$7[key] = uid$2(key));\n };\n\n /* global ActiveXObject -- old IE, WSH */\n var anObject$a = anObject$d;\n var definePropertiesModule$1 = objectDefineProperties;\n var enumBugKeys$1 = enumBugKeys$3;\n var hiddenKeys$4 = hiddenKeys$6;\n var html$1 = html$2;\n var documentCreateElement = documentCreateElement$1;\n var sharedKey$3 = sharedKey$4;\n\n var GT = '>';\n var LT = '<';\n var PROTOTYPE$1 = 'prototype';\n var SCRIPT = 'script';\n var IE_PROTO$1 = sharedKey$3('IE_PROTO');\n\n var EmptyConstructor = function () { /* empty */ };\n\n var scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n };\n\n // Create object with fake `null` prototype: use ActiveX Object with cleared prototype\n var NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n };\n\n // Create object with fake `null` prototype: use iframe Object with cleared prototype\n var NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html$1.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n };\n\n // Check for document.domain and active x support\n // No need to use active x approach when document.domain is not set\n // see https://github.com/es-shims/es5-shim/issues/150\n // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n // avoid IE GC bug\n var activeXDocument;\n var NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys$1.length;\n while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length]];\n return NullProtoObject();\n };\n\n hiddenKeys$4[IE_PROTO$1] = true;\n\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n // eslint-disable-next-line es/no-object-create -- safe\n var objectCreate = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE$1] = anObject$a(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE$1] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO$1] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties);\n };\n\n var objectGetOwnPropertyNames = {};\n\n var internalObjectKeys = objectKeysInternal;\n var enumBugKeys = enumBugKeys$3;\n\n var hiddenKeys$3 = enumBugKeys.concat('length', 'prototype');\n\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n // eslint-disable-next-line es/no-object-getownpropertynames -- safe\n objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys$3);\n };\n\n var objectGetOwnPropertyNamesExternal = {};\n\n var toAbsoluteIndex$2 = toAbsoluteIndex$4;\n var lengthOfArrayLike$a = lengthOfArrayLike$d;\n var createProperty$4 = createProperty$6;\n\n var $Array$2 = Array;\n var max$2 = Math.max;\n\n var arraySliceSimple = function (O, start, end) {\n var length = lengthOfArrayLike$a(O);\n var k = toAbsoluteIndex$2(start, length);\n var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);\n var result = $Array$2(max$2(fin - k, 0));\n var n = 0;\n for (; k < fin; k++, n++) createProperty$4(result, n, O[k]);\n result.length = n;\n return result;\n };\n\n /* eslint-disable es/no-object-getownpropertynames -- safe */\n var classof$a = classofRaw$2;\n var toIndexedObject$5 = toIndexedObject$a;\n var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;\n var arraySlice$6 = arraySliceSimple;\n\n var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\n var getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames$1(it);\n } catch (error) {\n return arraySlice$6(windowNames);\n }\n };\n\n // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {\n return windowNames && classof$a(it) === 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames$1(toIndexedObject$5(it));\n };\n\n var objectGetOwnPropertySymbols = {};\n\n // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\n objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;\n\n var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;\n\n var defineBuiltIn$6 = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty$7(target, key, value);\n return target;\n };\n\n var defineProperty$7 = objectDefineProperty;\n\n var defineBuiltInAccessor$3 = function (target, name, descriptor) {\n return defineProperty$7.f(target, name, descriptor);\n };\n\n var wellKnownSymbolWrapped = {};\n\n var wellKnownSymbol$g = wellKnownSymbol$n;\n\n wellKnownSymbolWrapped.f = wellKnownSymbol$g;\n\n var path$k = path$o;\n var hasOwn$f = hasOwnProperty_1;\n var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\n var defineProperty$6 = objectDefineProperty.f;\n\n var wellKnownSymbolDefine = function (NAME) {\n var Symbol = path$k.Symbol || (path$k.Symbol = {});\n if (!hasOwn$f(Symbol, NAME)) defineProperty$6(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule$1.f(NAME)\n });\n };\n\n var call$e = functionCall;\n var getBuiltIn$b = getBuiltIn$f;\n var wellKnownSymbol$f = wellKnownSymbol$n;\n var defineBuiltIn$5 = defineBuiltIn$6;\n\n var symbolDefineToPrimitive = function () {\n var Symbol = getBuiltIn$b('Symbol');\n var SymbolPrototype = Symbol && Symbol.prototype;\n var valueOf = SymbolPrototype && SymbolPrototype.valueOf;\n var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');\n\n if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n // eslint-disable-next-line no-unused-vars -- required for .length\n defineBuiltIn$5(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n return call$e(valueOf, this);\n }, { arity: 1 });\n }\n };\n\n var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;\n var classof$9 = classof$d;\n\n // `Object.prototype.toString` method implementation\n // https://tc39.es/ecma262/#sec-object.prototype.tostring\n var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {\n return '[object ' + classof$9(this) + ']';\n };\n\n var TO_STRING_TAG_SUPPORT = toStringTagSupport;\n var defineProperty$5 = objectDefineProperty.f;\n var createNonEnumerableProperty$6 = createNonEnumerableProperty$9;\n var hasOwn$e = hasOwnProperty_1;\n var toString$6 = objectToString;\n var wellKnownSymbol$e = wellKnownSymbol$n;\n\n var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag');\n\n var setToStringTag$7 = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn$e(target, TO_STRING_TAG$2)) {\n defineProperty$5(target, TO_STRING_TAG$2, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty$6(target, 'toString', toString$6);\n }\n }\n };\n\n var global$g = global$p;\n var isCallable$b = isCallable$m;\n\n var WeakMap$1 = global$g.WeakMap;\n\n var weakMapBasicDetection = isCallable$b(WeakMap$1) && /native code/.test(String(WeakMap$1));\n\n var NATIVE_WEAK_MAP = weakMapBasicDetection;\n var global$f = global$p;\n var isObject$a = isObject$h;\n var createNonEnumerableProperty$5 = createNonEnumerableProperty$9;\n var hasOwn$d = hasOwnProperty_1;\n var shared$4 = sharedStore;\n var sharedKey$2 = sharedKey$4;\n var hiddenKeys$2 = hiddenKeys$6;\n\n var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\n var TypeError$3 = global$f.TypeError;\n var WeakMap = global$f.WeakMap;\n var set$4, get, has;\n\n var enforce = function (it) {\n return has(it) ? get(it) : set$4(it, {});\n };\n\n var getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject$a(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n };\n\n if (NATIVE_WEAK_MAP || shared$4.state) {\n var store = shared$4.state || (shared$4.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set$4 = function (it, metadata) {\n if (store.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n } else {\n var STATE = sharedKey$2('state');\n hiddenKeys$2[STATE] = true;\n set$4 = function (it, metadata) {\n if (hasOwn$d(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty$5(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn$d(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn$d(it, STATE);\n };\n }\n\n var internalState = {\n set: set$4,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n };\n\n var bind$g = functionBindContext;\n var uncurryThis$f = functionUncurryThis;\n var IndexedObject$2 = indexedObject;\n var toObject$b = toObject$e;\n var lengthOfArrayLike$9 = lengthOfArrayLike$d;\n var arraySpeciesCreate$2 = arraySpeciesCreate$4;\n\n var push$b = uncurryThis$f([].push);\n\n // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\n var createMethod$2 = function (TYPE) {\n var IS_MAP = TYPE === 1;\n var IS_FILTER = TYPE === 2;\n var IS_SOME = TYPE === 3;\n var IS_EVERY = TYPE === 4;\n var IS_FIND_INDEX = TYPE === 6;\n var IS_FILTER_REJECT = TYPE === 7;\n var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject$b($this);\n var self = IndexedObject$2(O);\n var boundFunction = bind$g(callbackfn, that);\n var length = lengthOfArrayLike$9(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate$2;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push$b(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push$b(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n };\n\n var arrayIteration = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod$2(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod$2(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod$2(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod$2(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod$2(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod$2(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod$2(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod$2(7)\n };\n\n var $$N = _export;\n var global$e = global$p;\n var call$d = functionCall;\n var uncurryThis$e = functionUncurryThis;\n var DESCRIPTORS$a = descriptors;\n var NATIVE_SYMBOL$3 = symbolConstructorDetection;\n var fails$j = fails$u;\n var hasOwn$c = hasOwnProperty_1;\n var isPrototypeOf$j = objectIsPrototypeOf;\n var anObject$9 = anObject$d;\n var toIndexedObject$4 = toIndexedObject$a;\n var toPropertyKey = toPropertyKey$4;\n var $toString = toString$7;\n var createPropertyDescriptor$3 = createPropertyDescriptor$7;\n var nativeObjectCreate = objectCreate;\n var objectKeys$1 = objectKeys$3;\n var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;\n var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;\n var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols;\n var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;\n var definePropertyModule$1 = objectDefineProperty;\n var definePropertiesModule = objectDefineProperties;\n var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;\n var defineBuiltIn$4 = defineBuiltIn$6;\n var defineBuiltInAccessor$2 = defineBuiltInAccessor$3;\n var shared$3 = sharedExports;\n var sharedKey$1 = sharedKey$4;\n var hiddenKeys$1 = hiddenKeys$6;\n var uid$1 = uid$4;\n var wellKnownSymbol$d = wellKnownSymbol$n;\n var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\n var defineWellKnownSymbol$l = wellKnownSymbolDefine;\n var defineSymbolToPrimitive$1 = symbolDefineToPrimitive;\n var setToStringTag$6 = setToStringTag$7;\n var InternalStateModule$5 = internalState;\n var $forEach$1 = arrayIteration.forEach;\n\n var HIDDEN = sharedKey$1('hidden');\n var SYMBOL = 'Symbol';\n var PROTOTYPE = 'prototype';\n\n var setInternalState$5 = InternalStateModule$5.set;\n var getInternalState$2 = InternalStateModule$5.getterFor(SYMBOL);\n\n var ObjectPrototype$2 = Object[PROTOTYPE];\n var $Symbol = global$e.Symbol;\n var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\n var RangeError = global$e.RangeError;\n var TypeError$2 = global$e.TypeError;\n var QObject = global$e.QObject;\n var nativeGetOwnPropertyDescriptor$1 = getOwnPropertyDescriptorModule$2.f;\n var nativeDefineProperty = definePropertyModule$1.f;\n var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\n var nativePropertyIsEnumerable = propertyIsEnumerableModule$1.f;\n var push$a = uncurryThis$e([].push);\n\n var AllSymbols = shared$3('symbols');\n var ObjectPrototypeSymbols = shared$3('op-symbols');\n var WellKnownSymbolsStore$1 = shared$3('wks');\n\n // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\n var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n var fallbackDefineProperty = function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype$2[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype$2) {\n nativeDefineProperty(ObjectPrototype$2, P, ObjectPrototypeDescriptor);\n }\n };\n\n var setSymbolDescriptor = DESCRIPTORS$a && fails$j(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a !== 7;\n }) ? fallbackDefineProperty : nativeDefineProperty;\n\n var wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState$5(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS$a) symbol.description = description;\n return symbol;\n };\n\n var $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype$2) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject$9(O);\n var key = toPropertyKey(P);\n anObject$9(Attributes);\n if (hasOwn$c(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn$c(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$3(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn$c(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$3(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n };\n\n var $defineProperties = function defineProperties(O, Properties) {\n anObject$9(O);\n var properties = toIndexedObject$4(Properties);\n var keys = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));\n $forEach$1(keys, function (key) {\n if (!DESCRIPTORS$a || call$d($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n };\n\n var $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n };\n\n var $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call$d(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype$2 && hasOwn$c(AllSymbols, P) && !hasOwn$c(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn$c(this, P) || !hasOwn$c(AllSymbols, P) || hasOwn$c(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n };\n\n var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject$4(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype$2 && hasOwn$c(AllSymbols, key) && !hasOwn$c(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);\n if (descriptor && hasOwn$c(AllSymbols, key) && !(hasOwn$c(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n };\n\n var $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (!hasOwn$c(AllSymbols, key) && !hasOwn$c(hiddenKeys$1, key)) push$a(result, key);\n });\n return result;\n };\n\n var $getOwnPropertySymbols = function (O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$2;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (hasOwn$c(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$c(ObjectPrototype$2, key))) {\n push$a(result, AllSymbols[key]);\n }\n });\n return result;\n };\n\n // `Symbol` constructor\n // https://tc39.es/ecma262/#sec-symbol-constructor\n if (!NATIVE_SYMBOL$3) {\n $Symbol = function Symbol() {\n if (isPrototypeOf$j(SymbolPrototype, this)) throw new TypeError$2('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid$1(description);\n var setter = function (value) {\n var $this = this === undefined ? global$e : this;\n if ($this === ObjectPrototype$2) call$d(setter, ObjectPrototypeSymbols, value);\n if (hasOwn$c($this, HIDDEN) && hasOwn$c($this[HIDDEN], tag)) $this[HIDDEN][tag] = false;\n var descriptor = createPropertyDescriptor$3(1, value);\n try {\n setSymbolDescriptor($this, tag, descriptor);\n } catch (error) {\n if (!(error instanceof RangeError)) throw error;\n fallbackDefineProperty($this, tag, descriptor);\n }\n };\n if (DESCRIPTORS$a && USE_SETTER) setSymbolDescriptor(ObjectPrototype$2, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n defineBuiltIn$4(SymbolPrototype, 'toString', function toString() {\n return getInternalState$2(this).tag;\n });\n\n defineBuiltIn$4($Symbol, 'withoutSetter', function (description) {\n return wrap(uid$1(description), description);\n });\n\n propertyIsEnumerableModule$1.f = $propertyIsEnumerable;\n definePropertyModule$1.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule$2.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule$2.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule$3.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol$d(name), name);\n };\n\n if (DESCRIPTORS$a) {\n // https://github.com/tc39/proposal-Symbol-description\n defineBuiltInAccessor$2(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState$2(this).description;\n }\n });\n }\n }\n\n $$N({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$3, sham: !NATIVE_SYMBOL$3 }, {\n Symbol: $Symbol\n });\n\n $forEach$1(objectKeys$1(WellKnownSymbolsStore$1), function (name) {\n defineWellKnownSymbol$l(name);\n });\n\n $$N({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$3 }, {\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n });\n\n $$N({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3, sham: !DESCRIPTORS$a }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n });\n\n $$N({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3 }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames\n });\n\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n defineSymbolToPrimitive$1();\n\n // `Symbol.prototype[@@toStringTag]` property\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\n setToStringTag$6($Symbol, SYMBOL);\n\n hiddenKeys$1[HIDDEN] = true;\n\n var NATIVE_SYMBOL$2 = symbolConstructorDetection;\n\n /* eslint-disable es/no-symbol -- safe */\n var symbolRegistryDetection = NATIVE_SYMBOL$2 && !!Symbol['for'] && !!Symbol.keyFor;\n\n var $$M = _export;\n var getBuiltIn$a = getBuiltIn$f;\n var hasOwn$b = hasOwnProperty_1;\n var toString$5 = toString$7;\n var shared$2 = sharedExports;\n var NATIVE_SYMBOL_REGISTRY$1 = symbolRegistryDetection;\n\n var StringToSymbolRegistry = shared$2('string-to-symbol-registry');\n var SymbolToStringRegistry$1 = shared$2('symbol-to-string-registry');\n\n // `Symbol.for` method\n // https://tc39.es/ecma262/#sec-symbol.for\n $$M({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {\n 'for': function (key) {\n var string = toString$5(key);\n if (hasOwn$b(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = getBuiltIn$a('Symbol')(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry$1[symbol] = string;\n return symbol;\n }\n });\n\n var $$L = _export;\n var hasOwn$a = hasOwnProperty_1;\n var isSymbol$2 = isSymbol$5;\n var tryToString$4 = tryToString$6;\n var shared$1 = sharedExports;\n var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;\n\n var SymbolToStringRegistry = shared$1('symbol-to-string-registry');\n\n // `Symbol.keyFor` method\n // https://tc39.es/ecma262/#sec-symbol.keyfor\n $$L({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n keyFor: function keyFor(sym) {\n if (!isSymbol$2(sym)) throw new TypeError(tryToString$4(sym) + ' is not a symbol');\n if (hasOwn$a(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n }\n });\n\n var uncurryThis$d = functionUncurryThis;\n\n var arraySlice$5 = uncurryThis$d([].slice);\n\n var uncurryThis$c = functionUncurryThis;\n var isArray$b = isArray$e;\n var isCallable$a = isCallable$m;\n var classof$8 = classofRaw$2;\n var toString$4 = toString$7;\n\n var push$9 = uncurryThis$c([].push);\n\n var getJsonReplacerFunction = function (replacer) {\n if (isCallable$a(replacer)) return replacer;\n if (!isArray$b(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push$9(keys, element);\n else if (typeof element == 'number' || classof$8(element) === 'Number' || classof$8(element) === 'String') push$9(keys, toString$4(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray$b(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n };\n\n var $$K = _export;\n var getBuiltIn$9 = getBuiltIn$f;\n var apply$4 = functionApply;\n var call$c = functionCall;\n var uncurryThis$b = functionUncurryThis;\n var fails$i = fails$u;\n var isCallable$9 = isCallable$m;\n var isSymbol$1 = isSymbol$5;\n var arraySlice$4 = arraySlice$5;\n var getReplacerFunction = getJsonReplacerFunction;\n var NATIVE_SYMBOL$1 = symbolConstructorDetection;\n\n var $String$1 = String;\n var $stringify = getBuiltIn$9('JSON', 'stringify');\n var exec = uncurryThis$b(/./.exec);\n var charAt$2 = uncurryThis$b(''.charAt);\n var charCodeAt$1 = uncurryThis$b(''.charCodeAt);\n var replace$1 = uncurryThis$b(''.replace);\n var numberToString = uncurryThis$b(1.0.toString);\n\n var tester = /[\\uD800-\\uDFFF]/g;\n var low = /^[\\uD800-\\uDBFF]$/;\n var hi = /^[\\uDC00-\\uDFFF]$/;\n\n var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$1 || fails$i(function () {\n var symbol = getBuiltIn$9('Symbol')('stringify detection');\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) !== '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) !== '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) !== '{}';\n });\n\n // https://github.com/tc39/proposal-well-formed-stringify\n var ILL_FORMED_UNICODE = fails$i(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n });\n\n var stringifyWithSymbolsFix = function (it, replacer) {\n var args = arraySlice$4(arguments);\n var $replacer = getReplacerFunction(replacer);\n if (!isCallable$9($replacer) && (it === undefined || isSymbol$1(it))) return; // IE8 returns string on undefined\n args[1] = function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n if (isCallable$9($replacer)) value = call$c($replacer, this, $String$1(key), value);\n if (!isSymbol$1(value)) return value;\n };\n return apply$4($stringify, null, args);\n };\n\n var fixIllFormed = function (match, offset, string) {\n var prev = charAt$2(string, offset - 1);\n var next = charAt$2(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt$1(match, 0), 16);\n } return match;\n };\n\n if ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n $$K({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice$4(arguments);\n var result = apply$4(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);\n return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;\n }\n });\n }\n\n var $$J = _export;\n var NATIVE_SYMBOL = symbolConstructorDetection;\n var fails$h = fails$u;\n var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;\n var toObject$a = toObject$e;\n\n // V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n // https://bugs.chromium.org/p/v8/issues/detail?id=3443\n var FORCED$5 = !NATIVE_SYMBOL || fails$h(function () { getOwnPropertySymbolsModule$2.f(1); });\n\n // `Object.getOwnPropertySymbols` method\n // https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n $$J({ target: 'Object', stat: true, forced: FORCED$5 }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n var $getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;\n return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$a(it)) : [];\n }\n });\n\n var defineWellKnownSymbol$k = wellKnownSymbolDefine;\n\n // `Symbol.asyncIterator` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.asynciterator\n defineWellKnownSymbol$k('asyncIterator');\n\n var defineWellKnownSymbol$j = wellKnownSymbolDefine;\n\n // `Symbol.hasInstance` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.hasinstance\n defineWellKnownSymbol$j('hasInstance');\n\n var defineWellKnownSymbol$i = wellKnownSymbolDefine;\n\n // `Symbol.isConcatSpreadable` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\n defineWellKnownSymbol$i('isConcatSpreadable');\n\n var defineWellKnownSymbol$h = wellKnownSymbolDefine;\n\n // `Symbol.iterator` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.iterator\n defineWellKnownSymbol$h('iterator');\n\n var defineWellKnownSymbol$g = wellKnownSymbolDefine;\n\n // `Symbol.match` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.match\n defineWellKnownSymbol$g('match');\n\n var defineWellKnownSymbol$f = wellKnownSymbolDefine;\n\n // `Symbol.matchAll` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.matchall\n defineWellKnownSymbol$f('matchAll');\n\n var defineWellKnownSymbol$e = wellKnownSymbolDefine;\n\n // `Symbol.replace` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.replace\n defineWellKnownSymbol$e('replace');\n\n var defineWellKnownSymbol$d = wellKnownSymbolDefine;\n\n // `Symbol.search` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.search\n defineWellKnownSymbol$d('search');\n\n var defineWellKnownSymbol$c = wellKnownSymbolDefine;\n\n // `Symbol.species` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.species\n defineWellKnownSymbol$c('species');\n\n var defineWellKnownSymbol$b = wellKnownSymbolDefine;\n\n // `Symbol.split` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.split\n defineWellKnownSymbol$b('split');\n\n var defineWellKnownSymbol$a = wellKnownSymbolDefine;\n var defineSymbolToPrimitive = symbolDefineToPrimitive;\n\n // `Symbol.toPrimitive` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.toprimitive\n defineWellKnownSymbol$a('toPrimitive');\n\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n defineSymbolToPrimitive();\n\n var getBuiltIn$8 = getBuiltIn$f;\n var defineWellKnownSymbol$9 = wellKnownSymbolDefine;\n var setToStringTag$5 = setToStringTag$7;\n\n // `Symbol.toStringTag` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.tostringtag\n defineWellKnownSymbol$9('toStringTag');\n\n // `Symbol.prototype[@@toStringTag]` property\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\n setToStringTag$5(getBuiltIn$8('Symbol'), 'Symbol');\n\n var defineWellKnownSymbol$8 = wellKnownSymbolDefine;\n\n // `Symbol.unscopables` well-known symbol\n // https://tc39.es/ecma262/#sec-symbol.unscopables\n defineWellKnownSymbol$8('unscopables');\n\n var global$d = global$p;\n var setToStringTag$4 = setToStringTag$7;\n\n // JSON[@@toStringTag] property\n // https://tc39.es/ecma262/#sec-json-@@tostringtag\n setToStringTag$4(global$d.JSON, 'JSON', true);\n\n var path$j = path$o;\n\n var symbol$5 = path$j.Symbol;\n\n var iterators = {};\n\n var DESCRIPTORS$9 = descriptors;\n var hasOwn$9 = hasOwnProperty_1;\n\n var FunctionPrototype$2 = Function.prototype;\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;\n\n var EXISTS = hasOwn$9(FunctionPrototype$2, 'name');\n // additional protection from minified / mangled / dropped function names\n var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\n var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$2, 'name').configurable));\n\n var functionName = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n };\n\n var fails$g = fails$u;\n\n var correctPrototypeGetter = !fails$g(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n });\n\n var hasOwn$8 = hasOwnProperty_1;\n var isCallable$8 = isCallable$m;\n var toObject$9 = toObject$e;\n var sharedKey = sharedKey$4;\n var CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter;\n\n var IE_PROTO = sharedKey('IE_PROTO');\n var $Object = Object;\n var ObjectPrototype$1 = $Object.prototype;\n\n // `Object.getPrototypeOf` method\n // https://tc39.es/ecma262/#sec-object.getprototypeof\n // eslint-disable-next-line es/no-object-getprototypeof -- safe\n var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER$1 ? $Object.getPrototypeOf : function (O) {\n var object = toObject$9(O);\n if (hasOwn$8(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable$8(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype$1 : null;\n };\n\n var fails$f = fails$u;\n var isCallable$7 = isCallable$m;\n var isObject$9 = isObject$h;\n var create$b = objectCreate;\n var getPrototypeOf$7 = objectGetPrototypeOf;\n var defineBuiltIn$3 = defineBuiltIn$6;\n var wellKnownSymbol$c = wellKnownSymbol$n;\n\n var ITERATOR$4 = wellKnownSymbol$c('iterator');\n var BUGGY_SAFARI_ITERATORS$1 = false;\n\n // `%IteratorPrototype%` object\n // https://tc39.es/ecma262/#sec-%iteratorprototype%-object\n var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n /* eslint-disable es/no-array-prototype-keys -- safe */\n if ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf$7(getPrototypeOf$7(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;\n }\n }\n\n var NEW_ITERATOR_PROTOTYPE = !isObject$9(IteratorPrototype$1) || fails$f(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype$1[ITERATOR$4].call(test) !== test;\n });\n\n if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};\n else IteratorPrototype$1 = create$b(IteratorPrototype$1);\n\n // `%IteratorPrototype%[@@iterator]()` method\n // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\n if (!isCallable$7(IteratorPrototype$1[ITERATOR$4])) {\n defineBuiltIn$3(IteratorPrototype$1, ITERATOR$4, function () {\n return this;\n });\n }\n\n var iteratorsCore = {\n IteratorPrototype: IteratorPrototype$1,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1\n };\n\n var IteratorPrototype = iteratorsCore.IteratorPrototype;\n var create$a = objectCreate;\n var createPropertyDescriptor$2 = createPropertyDescriptor$7;\n var setToStringTag$3 = setToStringTag$7;\n var Iterators$5 = iterators;\n\n var returnThis$1 = function () { return this; };\n\n var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create$a(IteratorPrototype, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });\n setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators$5[TO_STRING_TAG] = returnThis$1;\n return IteratorConstructor;\n };\n\n var uncurryThis$a = functionUncurryThis;\n var aCallable$b = aCallable$e;\n\n var functionUncurryThisAccessor = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis$a(aCallable$b(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n };\n\n var isCallable$6 = isCallable$m;\n\n var $String = String;\n var $TypeError$9 = TypeError;\n\n var aPossiblePrototype$1 = function (argument) {\n if (typeof argument == 'object' || isCallable$6(argument)) return argument;\n throw new $TypeError$9(\"Can't set \" + $String(argument) + ' as a prototype');\n };\n\n /* eslint-disable no-proto -- safe */\n var uncurryThisAccessor = functionUncurryThisAccessor;\n var anObject$8 = anObject$d;\n var aPossiblePrototype = aPossiblePrototype$1;\n\n // `Object.setPrototypeOf` method\n // https://tc39.es/ecma262/#sec-object.setprototypeof\n // Works with __proto__ only. Old v8 can't work with null proto objects.\n // eslint-disable-next-line es/no-object-setprototypeof -- safe\n var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject$8(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n }() : undefined);\n\n var $$I = _export;\n var call$b = functionCall;\n var FunctionName = functionName;\n var createIteratorConstructor = iteratorCreateConstructor;\n var getPrototypeOf$6 = objectGetPrototypeOf;\n var setToStringTag$2 = setToStringTag$7;\n var defineBuiltIn$2 = defineBuiltIn$6;\n var wellKnownSymbol$b = wellKnownSymbol$n;\n var Iterators$4 = iterators;\n var IteratorsCore = iteratorsCore;\n\n var PROPER_FUNCTION_NAME = FunctionName.PROPER;\n FunctionName.CONFIGURABLE;\n IteratorsCore.IteratorPrototype;\n var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\n var ITERATOR$3 = wellKnownSymbol$b('iterator');\n var KEYS = 'keys';\n var VALUES = 'values';\n var ENTRIES = 'entries';\n\n var returnThis = function () { return this; };\n\n var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];\n\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n }\n\n return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR$3]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf$6(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n Iterators$4[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call$b(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);\n }\n } else $$I({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((FORCED) && IterablePrototype[ITERATOR$3] !== defaultIterator) {\n defineBuiltIn$2(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });\n }\n Iterators$4[NAME] = defaultIterator;\n\n return methods;\n };\n\n // `CreateIterResultObject` abstract operation\n // https://tc39.es/ecma262/#sec-createiterresultobject\n var createIterResultObject$3 = function (value, done) {\n return { value: value, done: done };\n };\n\n var toIndexedObject$3 = toIndexedObject$a;\n var Iterators$3 = iterators;\n var InternalStateModule$4 = internalState;\n objectDefineProperty.f;\n var defineIterator$2 = iteratorDefine;\n var createIterResultObject$2 = createIterResultObject$3;\n\n var ARRAY_ITERATOR = 'Array Iterator';\n var setInternalState$4 = InternalStateModule$4.set;\n var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);\n\n // `Array.prototype.entries` method\n // https://tc39.es/ecma262/#sec-array.prototype.entries\n // `Array.prototype.keys` method\n // https://tc39.es/ecma262/#sec-array.prototype.keys\n // `Array.prototype.values` method\n // https://tc39.es/ecma262/#sec-array.prototype.values\n // `Array.prototype[@@iterator]` method\n // https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n // `CreateArrayIterator` internal method\n // https://tc39.es/ecma262/#sec-createarrayiterator\n defineIterator$2(Array, 'Array', function (iterated, kind) {\n setInternalState$4(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject$3(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n // `%ArrayIteratorPrototype%.next` method\n // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n }, function () {\n var state = getInternalState$1(this);\n var target = state.target;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject$2(undefined, true);\n }\n switch (state.kind) {\n case 'keys': return createIterResultObject$2(index, false);\n case 'values': return createIterResultObject$2(target[index], false);\n } return createIterResultObject$2([index, target[index]], false);\n }, 'values');\n\n // argumentsList[@@iterator] is %ArrayProto_values%\n // https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n // https://tc39.es/ecma262/#sec-createmappedargumentsobject\n Iterators$3.Arguments = Iterators$3.Array;\n\n // iterable DOM collections\n // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\n var domIterables = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n };\n\n var DOMIterables$4 = domIterables;\n var global$c = global$p;\n var classof$7 = classof$d;\n var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;\n var Iterators$2 = iterators;\n var wellKnownSymbol$a = wellKnownSymbol$n;\n\n var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');\n\n for (var COLLECTION_NAME in DOMIterables$4) {\n var Collection = global$c[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof$7(CollectionPrototype) !== TO_STRING_TAG$1) {\n createNonEnumerableProperty$4(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);\n }\n Iterators$2[COLLECTION_NAME] = Iterators$2.Array;\n }\n\n var parent$15 = symbol$5;\n\n\n var symbol$4 = parent$15;\n\n var wellKnownSymbol$9 = wellKnownSymbol$n;\n var defineProperty$4 = objectDefineProperty.f;\n\n var METADATA$1 = wellKnownSymbol$9('metadata');\n var FunctionPrototype$1 = Function.prototype;\n\n // Function.prototype[@@metadata]\n // https://github.com/tc39/proposal-decorator-metadata\n if (FunctionPrototype$1[METADATA$1] === undefined) {\n defineProperty$4(FunctionPrototype$1, METADATA$1, {\n value: null\n });\n }\n\n var defineWellKnownSymbol$7 = wellKnownSymbolDefine;\n\n // `Symbol.asyncDispose` well-known symbol\n // https://github.com/tc39/proposal-async-explicit-resource-management\n defineWellKnownSymbol$7('asyncDispose');\n\n var defineWellKnownSymbol$6 = wellKnownSymbolDefine;\n\n // `Symbol.dispose` well-known symbol\n // https://github.com/tc39/proposal-explicit-resource-management\n defineWellKnownSymbol$6('dispose');\n\n var defineWellKnownSymbol$5 = wellKnownSymbolDefine;\n\n // `Symbol.metadata` well-known symbol\n // https://github.com/tc39/proposal-decorators\n defineWellKnownSymbol$5('metadata');\n\n var parent$14 = symbol$4;\n\n\n\n\n\n\n var symbol$3 = parent$14;\n\n var getBuiltIn$7 = getBuiltIn$f;\n var uncurryThis$9 = functionUncurryThis;\n\n var Symbol$2 = getBuiltIn$7('Symbol');\n var keyFor = Symbol$2.keyFor;\n var thisSymbolValue$1 = uncurryThis$9(Symbol$2.prototype.valueOf);\n\n // `Symbol.isRegisteredSymbol` method\n // https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol\n var symbolIsRegistered = Symbol$2.isRegisteredSymbol || function isRegisteredSymbol(value) {\n try {\n return keyFor(thisSymbolValue$1(value)) !== undefined;\n } catch (error) {\n return false;\n }\n };\n\n var $$H = _export;\n var isRegisteredSymbol$1 = symbolIsRegistered;\n\n // `Symbol.isRegisteredSymbol` method\n // https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol\n $$H({ target: 'Symbol', stat: true }, {\n isRegisteredSymbol: isRegisteredSymbol$1\n });\n\n var shared = sharedExports;\n var getBuiltIn$6 = getBuiltIn$f;\n var uncurryThis$8 = functionUncurryThis;\n var isSymbol = isSymbol$5;\n var wellKnownSymbol$8 = wellKnownSymbol$n;\n\n var Symbol$1 = getBuiltIn$6('Symbol');\n var $isWellKnownSymbol = Symbol$1.isWellKnownSymbol;\n var getOwnPropertyNames = getBuiltIn$6('Object', 'getOwnPropertyNames');\n var thisSymbolValue = uncurryThis$8(Symbol$1.prototype.valueOf);\n var WellKnownSymbolsStore = shared('wks');\n\n for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol$1), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol$1[symbolKey])) wellKnownSymbol$8(symbolKey);\n } catch (error) { /* empty */ }\n }\n\n // `Symbol.isWellKnownSymbol` method\n // https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol\n // We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n var symbolIsWellKnown = function isWellKnownSymbol(value) {\n if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n // eslint-disable-next-line eqeqeq -- polyfilled symbols case\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n };\n\n var $$G = _export;\n var isWellKnownSymbol$1 = symbolIsWellKnown;\n\n // `Symbol.isWellKnownSymbol` method\n // https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol\n // We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n $$G({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnownSymbol: isWellKnownSymbol$1\n });\n\n var defineWellKnownSymbol$4 = wellKnownSymbolDefine;\n\n // `Symbol.matcher` well-known symbol\n // https://github.com/tc39/proposal-pattern-matching\n defineWellKnownSymbol$4('matcher');\n\n var defineWellKnownSymbol$3 = wellKnownSymbolDefine;\n\n // `Symbol.observable` well-known symbol\n // https://github.com/tc39/proposal-observable\n defineWellKnownSymbol$3('observable');\n\n var $$F = _export;\n var isRegisteredSymbol = symbolIsRegistered;\n\n // `Symbol.isRegistered` method\n // obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol\n $$F({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, {\n isRegistered: isRegisteredSymbol\n });\n\n var $$E = _export;\n var isWellKnownSymbol = symbolIsWellKnown;\n\n // `Symbol.isWellKnown` method\n // obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol\n // We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n $$E({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, {\n isWellKnown: isWellKnownSymbol\n });\n\n // TODO: Remove from `core-js@4`\n var defineWellKnownSymbol$2 = wellKnownSymbolDefine;\n\n // `Symbol.metadataKey` well-known symbol\n // https://github.com/tc39/proposal-decorator-metadata\n defineWellKnownSymbol$2('metadataKey');\n\n // TODO: remove from `core-js@4`\n var defineWellKnownSymbol$1 = wellKnownSymbolDefine;\n\n // `Symbol.patternMatch` well-known symbol\n // https://github.com/tc39/proposal-pattern-matching\n defineWellKnownSymbol$1('patternMatch');\n\n // TODO: remove from `core-js@4`\n var defineWellKnownSymbol = wellKnownSymbolDefine;\n\n defineWellKnownSymbol('replaceAll');\n\n var parent$13 = symbol$3;\n\n\n\n\n // TODO: Remove from `core-js@4`\n\n\n\n\n\n\n var symbol$2 = parent$13;\n\n var symbol$1 = symbol$2;\n\n var _Symbol$1 = /*@__PURE__*/getDefaultExportFromCjs(symbol$1);\n\n var uncurryThis$7 = functionUncurryThis;\n var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;\n var toString$3 = toString$7;\n var requireObjectCoercible = requireObjectCoercible$3;\n\n var charAt$1 = uncurryThis$7(''.charAt);\n var charCodeAt = uncurryThis$7(''.charCodeAt);\n var stringSlice = uncurryThis$7(''.slice);\n\n var createMethod$1 = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString$3(requireObjectCoercible($this));\n var position = toIntegerOrInfinity$1(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt$1(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n };\n\n var stringMultibyte = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod$1(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod$1(true)\n };\n\n var charAt = stringMultibyte.charAt;\n var toString$2 = toString$7;\n var InternalStateModule$3 = internalState;\n var defineIterator$1 = iteratorDefine;\n var createIterResultObject$1 = createIterResultObject$3;\n\n var STRING_ITERATOR = 'String Iterator';\n var setInternalState$3 = InternalStateModule$3.set;\n var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);\n\n // `String.prototype[@@iterator]` method\n // https://tc39.es/ecma262/#sec-string.prototype-@@iterator\n defineIterator$1(String, 'String', function (iterated) {\n setInternalState$3(this, {\n type: STRING_ITERATOR,\n string: toString$2(iterated),\n index: 0\n });\n // `%StringIteratorPrototype%.next` method\n // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n }, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject$1(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject$1(point, false);\n });\n\n var WrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\n\n var iterator$5 = WrappedWellKnownSymbolModule$1.f('iterator');\n\n var parent$12 = iterator$5;\n\n\n var iterator$4 = parent$12;\n\n var parent$11 = iterator$4;\n\n var iterator$3 = parent$11;\n\n var parent$10 = iterator$3;\n\n var iterator$2 = parent$10;\n\n var iterator$1 = iterator$2;\n\n var _Symbol$iterator$1 = /*@__PURE__*/getDefaultExportFromCjs(iterator$1);\n\n function _typeof$1(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof$1 = \"function\" == typeof _Symbol$1 && \"symbol\" == typeof _Symbol$iterator$1 ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof _Symbol$1 && o.constructor === _Symbol$1 && o !== _Symbol$1.prototype ? \"symbol\" : typeof o;\n }, _typeof$1(o);\n }\n\n var WrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\n\n var toPrimitive$4 = WrappedWellKnownSymbolModule.f('toPrimitive');\n\n var parent$$ = toPrimitive$4;\n\n var toPrimitive$3 = parent$$;\n\n var parent$_ = toPrimitive$3;\n\n var toPrimitive$2 = parent$_;\n\n var parent$Z = toPrimitive$2;\n\n var toPrimitive$1 = parent$Z;\n\n var toPrimitive = toPrimitive$1;\n\n var _Symbol$toPrimitive = /*@__PURE__*/getDefaultExportFromCjs(toPrimitive);\n\n function _toPrimitive(input, hint) {\n if (_typeof$1(input) !== \"object\" || input === null) return input;\n var prim = input[_Symbol$toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof$1(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n }\n\n function _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return _typeof$1(key) === \"symbol\" ? key : String(key);\n }\n\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n _Object$defineProperty$1(target, _toPropertyKey(descriptor.key), descriptor);\n }\n }\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n _Object$defineProperty$1(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n }\n\n function _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n _Object$defineProperty$1(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n }\n\n var uncurryThis$6 = functionUncurryThis;\n var aCallable$a = aCallable$e;\n var isObject$8 = isObject$h;\n var hasOwn$7 = hasOwnProperty_1;\n var arraySlice$3 = arraySlice$5;\n var NATIVE_BIND = functionBindNative;\n\n var $Function = Function;\n var concat$6 = uncurryThis$6([].concat);\n var join = uncurryThis$6([].join);\n var factories = {};\n\n var construct$3 = function (C, argsLength, args) {\n if (!hasOwn$7(factories, argsLength)) {\n var list = [];\n var i = 0;\n for (; i < argsLength; i++) list[i] = 'a[' + i + ']';\n factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')');\n } return factories[argsLength](C, args);\n };\n\n // `Function.prototype.bind` method implementation\n // https://tc39.es/ecma262/#sec-function.prototype.bind\n // eslint-disable-next-line es/no-function-prototype-bind -- detection\n var functionBind = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) {\n var F = aCallable$a(this);\n var Prototype = F.prototype;\n var partArgs = arraySlice$3(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = concat$6(partArgs, arraySlice$3(arguments));\n return this instanceof boundFunction ? construct$3(F, args.length, args) : F.apply(that, args);\n };\n if (isObject$8(Prototype)) boundFunction.prototype = Prototype;\n return boundFunction;\n };\n\n // TODO: Remove from `core-js@4`\n var $$D = _export;\n var bind$f = functionBind;\n\n // `Function.prototype.bind` method\n // https://tc39.es/ecma262/#sec-function.prototype.bind\n // eslint-disable-next-line es/no-function-prototype-bind -- detection\n $$D({ target: 'Function', proto: true, forced: Function.bind !== bind$f }, {\n bind: bind$f\n });\n\n var global$b = global$p;\n var path$i = path$o;\n\n var getBuiltInPrototypeMethod$g = function (CONSTRUCTOR, METHOD) {\n var Namespace = path$i[CONSTRUCTOR + 'Prototype'];\n var pureMethod = Namespace && Namespace[METHOD];\n if (pureMethod) return pureMethod;\n var NativeConstructor = global$b[CONSTRUCTOR];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n return NativePrototype && NativePrototype[METHOD];\n };\n\n var getBuiltInPrototypeMethod$f = getBuiltInPrototypeMethod$g;\n\n var bind$e = getBuiltInPrototypeMethod$f('Function', 'bind');\n\n var isPrototypeOf$i = objectIsPrototypeOf;\n var method$f = bind$e;\n\n var FunctionPrototype = Function.prototype;\n\n var bind$d = function (it) {\n var own = it.bind;\n return it === FunctionPrototype || (isPrototypeOf$i(FunctionPrototype, it) && own === FunctionPrototype.bind) ? method$f : own;\n };\n\n var parent$Y = bind$d;\n\n var bind$c = parent$Y;\n\n var bind$b = bind$c;\n\n var _bindInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(bind$b);\n\n var aCallable$9 = aCallable$e;\n var toObject$8 = toObject$e;\n var IndexedObject$1 = indexedObject;\n var lengthOfArrayLike$8 = lengthOfArrayLike$d;\n\n var $TypeError$8 = TypeError;\n\n // `Array.prototype.{ reduce, reduceRight }` methods implementation\n var createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable$9(callbackfn);\n var O = toObject$8(that);\n var self = IndexedObject$1(O);\n var length = lengthOfArrayLike$8(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw new $TypeError$8('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n };\n\n var arrayReduce = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n };\n\n var fails$e = fails$u;\n\n var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails$e(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n };\n\n var global$a = global$p;\n var classof$6 = classofRaw$2;\n\n var engineIsNode = classof$6(global$a.process) === 'process';\n\n var $$C = _export;\n var $reduce = arrayReduce.left;\n var arrayMethodIsStrict$3 = arrayMethodIsStrict$4;\n var CHROME_VERSION = engineV8Version;\n var IS_NODE$4 = engineIsNode;\n\n // Chrome 80-82 has a critical bug\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\n var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;\n var FORCED$4 = CHROME_BUG || !arrayMethodIsStrict$3('reduce');\n\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n $$C({ target: 'Array', proto: true, forced: FORCED$4 }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n });\n\n var getBuiltInPrototypeMethod$e = getBuiltInPrototypeMethod$g;\n\n var reduce$3 = getBuiltInPrototypeMethod$e('Array', 'reduce');\n\n var isPrototypeOf$h = objectIsPrototypeOf;\n var method$e = reduce$3;\n\n var ArrayPrototype$f = Array.prototype;\n\n var reduce$2 = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype$f || (isPrototypeOf$h(ArrayPrototype$f, it) && own === ArrayPrototype$f.reduce) ? method$e : own;\n };\n\n var parent$X = reduce$2;\n\n var reduce$1 = parent$X;\n\n var reduce = reduce$1;\n\n var _reduceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reduce);\n\n var $$B = _export;\n var $filter = arrayIteration.filter;\n var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;\n\n var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('filter');\n\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n // with adding support of @@species\n $$B({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n });\n\n var getBuiltInPrototypeMethod$d = getBuiltInPrototypeMethod$g;\n\n var filter$3 = getBuiltInPrototypeMethod$d('Array', 'filter');\n\n var isPrototypeOf$g = objectIsPrototypeOf;\n var method$d = filter$3;\n\n var ArrayPrototype$e = Array.prototype;\n\n var filter$2 = function (it) {\n var own = it.filter;\n return it === ArrayPrototype$e || (isPrototypeOf$g(ArrayPrototype$e, it) && own === ArrayPrototype$e.filter) ? method$d : own;\n };\n\n var parent$W = filter$2;\n\n var filter$1 = parent$W;\n\n var filter = filter$1;\n\n var _filterInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(filter);\n\n var $$A = _export;\n var $map = arrayIteration.map;\n var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5;\n\n var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map');\n\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n // with adding support of @@species\n $$A({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n });\n\n var getBuiltInPrototypeMethod$c = getBuiltInPrototypeMethod$g;\n\n var map$6 = getBuiltInPrototypeMethod$c('Array', 'map');\n\n var isPrototypeOf$f = objectIsPrototypeOf;\n var method$c = map$6;\n\n var ArrayPrototype$d = Array.prototype;\n\n var map$5 = function (it) {\n var own = it.map;\n return it === ArrayPrototype$d || (isPrototypeOf$f(ArrayPrototype$d, it) && own === ArrayPrototype$d.map) ? method$c : own;\n };\n\n var parent$V = map$5;\n\n var map$4 = parent$V;\n\n var map$3 = map$4;\n\n var _mapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(map$3);\n\n var isArray$a = isArray$e;\n var lengthOfArrayLike$7 = lengthOfArrayLike$d;\n var doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$4;\n var bind$a = functionBindContext;\n\n // `FlattenIntoArray` abstract operation\n // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\n var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind$a(mapper, thisArg) : false;\n var element, elementLen;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray$a(element)) {\n elementLen = lengthOfArrayLike$7(element);\n targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n } else {\n doesNotExceedSafeInteger$2(targetIndex + 1);\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n };\n\n var flattenIntoArray_1 = flattenIntoArray$1;\n\n var $$z = _export;\n var flattenIntoArray = flattenIntoArray_1;\n var aCallable$8 = aCallable$e;\n var toObject$7 = toObject$e;\n var lengthOfArrayLike$6 = lengthOfArrayLike$d;\n var arraySpeciesCreate$1 = arraySpeciesCreate$4;\n\n // `Array.prototype.flatMap` method\n // https://tc39.es/ecma262/#sec-array.prototype.flatmap\n $$z({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject$7(this);\n var sourceLen = lengthOfArrayLike$6(O);\n var A;\n aCallable$8(callbackfn);\n A = arraySpeciesCreate$1(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n });\n\n var getBuiltInPrototypeMethod$b = getBuiltInPrototypeMethod$g;\n\n var flatMap$3 = getBuiltInPrototypeMethod$b('Array', 'flatMap');\n\n var isPrototypeOf$e = objectIsPrototypeOf;\n var method$b = flatMap$3;\n\n var ArrayPrototype$c = Array.prototype;\n\n var flatMap$2 = function (it) {\n var own = it.flatMap;\n return it === ArrayPrototype$c || (isPrototypeOf$e(ArrayPrototype$c, it) && own === ArrayPrototype$c.flatMap) ? method$b : own;\n };\n\n var parent$U = flatMap$2;\n\n var flatMap$1 = parent$U;\n\n var flatMap = flatMap$1;\n\n var _flatMapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(flatMap);\n\n /**\r\n * Create new data pipe.\r\n *\r\n * @param from - The source data set or data view.\r\n * @remarks\r\n * Example usage:\r\n * ```typescript\r\n * interface AppItem {\r\n * whoami: string;\r\n * appData: unknown;\r\n * visData: VisItem;\r\n * }\r\n * interface VisItem {\r\n * id: number;\r\n * label: string;\r\n * color: string;\r\n * x: number;\r\n * y: number;\r\n * }\r\n *\r\n * const ds1 = new DataSet([], { fieldId: \"whoami\" });\r\n * const ds2 = new DataSet();\r\n *\r\n * const pipe = createNewDataPipeFrom(ds1)\r\n * .filter((item): boolean => item.enabled === true)\r\n * .map((item): VisItem => item.visData)\r\n * .to(ds2);\r\n *\r\n * pipe.start();\r\n * ```\r\n * @returns A factory whose methods can be used to configure the pipe.\r\n */\n function createNewDataPipeFrom(from) {\n return new DataPipeUnderConstruction(from);\n }\n /**\r\n * Internal implementation of the pipe. This should be accessible only through\r\n * `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam SI - Source item type.\r\n * @typeParam SP - Source item type's id property name.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\n var SimpleDataPipe = /*#__PURE__*/function () {\n /**\r\n * Create a new data pipe.\r\n *\r\n * @param _source - The data set or data view that will be observed.\r\n * @param _transformers - An array of transforming functions to be used to\r\n * filter or transform the items in the pipe.\r\n * @param _target - The data set or data view that will receive the items.\r\n */\n function SimpleDataPipe(_source, _transformers, _target) {\n var _context, _context2, _context3;\n _classCallCheck(this, SimpleDataPipe);\n /**\r\n * Bound listeners for use with `DataInterface['on' | 'off']`.\r\n */\n _defineProperty(this, \"_listeners\", {\n add: _bindInstanceProperty$1(_context = this._add).call(_context, this),\n remove: _bindInstanceProperty$1(_context2 = this._remove).call(_context2, this),\n update: _bindInstanceProperty$1(_context3 = this._update).call(_context3, this)\n });\n this._source = _source;\n this._transformers = _transformers;\n this._target = _target;\n }\n /** @inheritDoc */\n _createClass(SimpleDataPipe, [{\n key: \"all\",\n value: function all() {\n this._target.update(this._transformItems(this._source.get()));\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"start\",\n value: function start() {\n this._source.on(\"add\", this._listeners.add);\n this._source.on(\"remove\", this._listeners.remove);\n this._source.on(\"update\", this._listeners.update);\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"stop\",\n value: function stop() {\n this._source.off(\"add\", this._listeners.add);\n this._source.off(\"remove\", this._listeners.remove);\n this._source.off(\"update\", this._listeners.update);\n return this;\n }\n /**\r\n * Apply the transformers to the items.\r\n *\r\n * @param items - The items to be transformed.\r\n * @returns The transformed items.\r\n */\n }, {\n key: \"_transformItems\",\n value: function _transformItems(items) {\n var _context4;\n return _reduceInstanceProperty(_context4 = this._transformers).call(_context4, function (items, transform) {\n return transform(items);\n }, items);\n }\n /**\r\n * Handle an add event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the added items.\r\n */\n }, {\n key: \"_add\",\n value: function _add(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.add(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle an update event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the updated items.\r\n */\n }, {\n key: \"_update\",\n value: function _update(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.update(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle a remove event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the data of the removed items.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.remove(this._transformItems(payload.oldData));\n }\n }]);\n return SimpleDataPipe;\n }();\n /**\r\n * Internal implementation of the pipe factory. This should be accessible\r\n * only through `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\n var DataPipeUnderConstruction = /*#__PURE__*/function () {\n /**\r\n * Create a new data pipe factory. This is an internal constructor that\r\n * should never be called from outside of this file.\r\n *\r\n * @param _source - The source data set or data view for this pipe.\r\n */\n function DataPipeUnderConstruction(_source) {\n _classCallCheck(this, DataPipeUnderConstruction);\n /**\r\n * Array transformers used to transform items within the pipe. This is typed\r\n * as any for the sake of simplicity.\r\n */\n _defineProperty(this, \"_transformers\", []);\n this._source = _source;\n }\n /**\r\n * Filter the items.\r\n *\r\n * @param callback - A filtering function that returns true if given item\r\n * should be piped and false if not.\r\n * @returns This factory for further configuration.\r\n */\n _createClass(DataPipeUnderConstruction, [{\n key: \"filter\",\n value: function filter(callback) {\n this._transformers.push(function (input) {\n return _filterInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * corresponding mapped item.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n this._transformers.push(function (input) {\n return _mapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to zero or more items of a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * an array of corresponding mapped items.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"flatMap\",\n value: function flatMap(callback) {\n this._transformers.push(function (input) {\n return _flatMapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Connect this pipe to given data set.\r\n *\r\n * @param target - The data set that will receive the items from this pipe.\r\n * @returns The pipe connected between given data sets and performing\r\n * configured transformation on the processed items.\r\n */\n }, {\n key: \"to\",\n value: function to(target) {\n return new SimpleDataPipe(this._source, this._transformers, target);\n }\n }]);\n return DataPipeUnderConstruction;\n }();\n\n var call$a = functionCall;\n var anObject$7 = anObject$d;\n var getMethod$1 = getMethod$3;\n\n var iteratorClose$2 = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject$7(iterator);\n try {\n innerResult = getMethod$1(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call$a(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject$7(innerResult);\n return value;\n };\n\n var anObject$6 = anObject$d;\n var iteratorClose$1 = iteratorClose$2;\n\n // call something on iterator step with safe closing on error\n var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject$6(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose$1(iterator, 'throw', error);\n }\n };\n\n var wellKnownSymbol$7 = wellKnownSymbol$n;\n var Iterators$1 = iterators;\n\n var ITERATOR$2 = wellKnownSymbol$7('iterator');\n var ArrayPrototype$b = Array.prototype;\n\n // check on default Array iterator\n var isArrayIteratorMethod$2 = function (it) {\n return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$b[ITERATOR$2] === it);\n };\n\n var classof$5 = classof$d;\n var getMethod = getMethod$3;\n var isNullOrUndefined$3 = isNullOrUndefined$6;\n var Iterators = iterators;\n var wellKnownSymbol$6 = wellKnownSymbol$n;\n\n var ITERATOR$1 = wellKnownSymbol$6('iterator');\n\n var getIteratorMethod$9 = function (it) {\n if (!isNullOrUndefined$3(it)) return getMethod(it, ITERATOR$1)\n || getMethod(it, '@@iterator')\n || Iterators[classof$5(it)];\n };\n\n var call$9 = functionCall;\n var aCallable$7 = aCallable$e;\n var anObject$5 = anObject$d;\n var tryToString$3 = tryToString$6;\n var getIteratorMethod$8 = getIteratorMethod$9;\n\n var $TypeError$7 = TypeError;\n\n var getIterator$8 = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod$8(argument) : usingIterator;\n if (aCallable$7(iteratorMethod)) return anObject$5(call$9(iteratorMethod, argument));\n throw new $TypeError$7(tryToString$3(argument) + ' is not iterable');\n };\n\n var bind$9 = functionBindContext;\n var call$8 = functionCall;\n var toObject$6 = toObject$e;\n var callWithSafeIterationClosing = callWithSafeIterationClosing$1;\n var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;\n var isConstructor$2 = isConstructor$4;\n var lengthOfArrayLike$5 = lengthOfArrayLike$d;\n var createProperty$3 = createProperty$6;\n var getIterator$7 = getIterator$8;\n var getIteratorMethod$7 = getIteratorMethod$9;\n\n var $Array$1 = Array;\n\n // `Array.from` method implementation\n // https://tc39.es/ecma262/#sec-array.from\n var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject$6(arrayLike);\n var IS_CONSTRUCTOR = isConstructor$2(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind$9(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod$7(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this === $Array$1 && isArrayIteratorMethod$1(iteratorMethod))) {\n iterator = getIterator$7(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call$8(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty$3(result, index, value);\n }\n } else {\n length = lengthOfArrayLike$5(O);\n result = IS_CONSTRUCTOR ? new this(length) : $Array$1(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty$3(result, index, value);\n }\n }\n result.length = index;\n return result;\n };\n\n var wellKnownSymbol$5 = wellKnownSymbol$n;\n\n var ITERATOR = wellKnownSymbol$5('iterator');\n var SAFE_CLOSING = false;\n\n try {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n } catch (error) { /* empty */ }\n\n var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {\n try {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n } catch (error) { return false; } // workaround of old WebKit + `eval` bug\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n };\n\n var $$y = _export;\n var from$6 = arrayFrom;\n var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;\n\n var INCORRECT_ITERATION = !checkCorrectnessOfIteration$1(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n });\n\n // `Array.from` method\n // https://tc39.es/ecma262/#sec-array.from\n $$y({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from$6\n });\n\n var path$h = path$o;\n\n var from$5 = path$h.Array.from;\n\n var parent$T = from$5;\n\n var from$4 = parent$T;\n\n var from$3 = from$4;\n\n var _Array$from$1 = /*@__PURE__*/getDefaultExportFromCjs(from$3);\n\n var getIteratorMethod$6 = getIteratorMethod$9;\n\n var getIteratorMethod_1 = getIteratorMethod$6;\n\n var parent$S = getIteratorMethod_1;\n\n\n var getIteratorMethod$5 = parent$S;\n\n var parent$R = getIteratorMethod$5;\n\n var getIteratorMethod$4 = parent$R;\n\n var parent$Q = getIteratorMethod$4;\n\n var getIteratorMethod$3 = parent$Q;\n\n var getIteratorMethod$2 = getIteratorMethod$3;\n\n var _getIteratorMethod$1 = /*@__PURE__*/getDefaultExportFromCjs(getIteratorMethod$2);\n\n var getIteratorMethod$1 = getIteratorMethod$2;\n\n var _getIteratorMethod = /*@__PURE__*/getDefaultExportFromCjs(getIteratorMethod$1);\n\n var $$x = _export;\n var isArray$9 = isArray$e;\n\n // `Array.isArray` method\n // https://tc39.es/ecma262/#sec-array.isarray\n $$x({ target: 'Array', stat: true }, {\n isArray: isArray$9\n });\n\n var path$g = path$o;\n\n var isArray$8 = path$g.Array.isArray;\n\n var parent$P = isArray$8;\n\n var isArray$7 = parent$P;\n\n var parent$O = isArray$7;\n\n var isArray$6 = parent$O;\n\n var parent$N = isArray$6;\n\n var isArray$5 = parent$N;\n\n var isArray$4 = isArray$5;\n\n var _Array$isArray$1 = /*@__PURE__*/getDefaultExportFromCjs(isArray$4);\n\n function _arrayWithHoles(arr) {\n if (_Array$isArray$1(arr)) return arr;\n }\n\n var DESCRIPTORS$8 = descriptors;\n var isArray$3 = isArray$e;\n\n var $TypeError$6 = TypeError;\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var getOwnPropertyDescriptor$5 = Object.getOwnPropertyDescriptor;\n\n // Safari < 13 does not throw an error in this case\n var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$8 && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n }();\n\n var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray$3(O) && !getOwnPropertyDescriptor$5(O, 'length').writable) {\n throw new $TypeError$6('Cannot set read only .length');\n } return O.length = length;\n } : function (O, length) {\n return O.length = length;\n };\n\n var $$w = _export;\n var toObject$5 = toObject$e;\n var lengthOfArrayLike$4 = lengthOfArrayLike$d;\n var setArrayLength$1 = arraySetLength;\n var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$4;\n var fails$d = fails$u;\n\n var INCORRECT_TO_LENGTH = fails$d(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n });\n\n // V8 and Safari <= 15.4, FF < 23 throws InternalError\n // https://bugs.chromium.org/p/v8/issues/detail?id=12681\n var properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n };\n\n var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n // `Array.prototype.push` method\n // https://tc39.es/ecma262/#sec-array.prototype.push\n $$w({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject$5(this);\n var len = lengthOfArrayLike$4(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger$1(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength$1(O, len);\n return len;\n }\n });\n\n var getBuiltInPrototypeMethod$a = getBuiltInPrototypeMethod$g;\n\n var push$8 = getBuiltInPrototypeMethod$a('Array', 'push');\n\n var isPrototypeOf$d = objectIsPrototypeOf;\n var method$a = push$8;\n\n var ArrayPrototype$a = Array.prototype;\n\n var push$7 = function (it) {\n var own = it.push;\n return it === ArrayPrototype$a || (isPrototypeOf$d(ArrayPrototype$a, it) && own === ArrayPrototype$a.push) ? method$a : own;\n };\n\n var parent$M = push$7;\n\n var push$6 = parent$M;\n\n var parent$L = push$6;\n\n var push$5 = parent$L;\n\n var parent$K = push$5;\n\n var push$4 = parent$K;\n\n var push$3 = push$4;\n\n var _pushInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(push$3);\n\n function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof _Symbol$1 && _getIteratorMethod$1(r) || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (_pushInstanceProperty(a).call(a, e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n }\n\n var $$v = _export;\n var isArray$2 = isArray$e;\n var isConstructor$1 = isConstructor$4;\n var isObject$7 = isObject$h;\n var toAbsoluteIndex$1 = toAbsoluteIndex$4;\n var lengthOfArrayLike$3 = lengthOfArrayLike$d;\n var toIndexedObject$2 = toIndexedObject$a;\n var createProperty$2 = createProperty$6;\n var wellKnownSymbol$4 = wellKnownSymbol$n;\n var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;\n var nativeSlice = arraySlice$5;\n\n var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');\n\n var SPECIES$3 = wellKnownSymbol$4('species');\n var $Array = Array;\n var max$1 = Math.max;\n\n // `Array.prototype.slice` method\n // https://tc39.es/ecma262/#sec-array.prototype.slice\n // fallback for not array-like ES3 strings and DOM objects\n $$v({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {\n slice: function slice(start, end) {\n var O = toIndexedObject$2(this);\n var length = lengthOfArrayLike$3(O);\n var k = toAbsoluteIndex$1(start, length);\n var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray$2(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (isConstructor$1(Constructor) && (Constructor === $Array || isArray$2(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject$7(Constructor)) {\n Constructor = Constructor[SPECIES$3];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === $Array || Constructor === undefined) {\n return nativeSlice(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? $Array : Constructor)(max$1(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);\n result.length = n;\n return result;\n }\n });\n\n var getBuiltInPrototypeMethod$9 = getBuiltInPrototypeMethod$g;\n\n var slice$6 = getBuiltInPrototypeMethod$9('Array', 'slice');\n\n var isPrototypeOf$c = objectIsPrototypeOf;\n var method$9 = slice$6;\n\n var ArrayPrototype$9 = Array.prototype;\n\n var slice$5 = function (it) {\n var own = it.slice;\n return it === ArrayPrototype$9 || (isPrototypeOf$c(ArrayPrototype$9, it) && own === ArrayPrototype$9.slice) ? method$9 : own;\n };\n\n var parent$J = slice$5;\n\n var slice$4 = parent$J;\n\n var parent$I = slice$4;\n\n var slice$3 = parent$I;\n\n var parent$H = slice$3;\n\n var slice$2 = parent$H;\n\n var slice$1 = slice$2;\n\n var _sliceInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(slice$1);\n\n var parent$G = from$4;\n\n var from$2 = parent$G;\n\n var parent$F = from$2;\n\n var from$1 = parent$F;\n\n var from = from$1;\n\n var _Array$from = /*@__PURE__*/getDefaultExportFromCjs(from);\n\n function _arrayLikeToArray$4(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n }\n\n function _unsupportedIterableToArray$4(o, minLen) {\n var _context;\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$4(o, minLen);\n var n = _sliceInstanceProperty$1(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return _Array$from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);\n }\n\n function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$4(arr, i) || _nonIterableRest();\n }\n\n function _arrayWithoutHoles(arr) {\n if (_Array$isArray$1(arr)) return _arrayLikeToArray$4(arr);\n }\n\n function _iterableToArray(iter) {\n if (typeof _Symbol$1 !== \"undefined\" && _getIteratorMethod$1(iter) != null || iter[\"@@iterator\"] != null) return _Array$from(iter);\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread();\n }\n\n var symbol = symbol$4;\n\n var _Symbol = /*@__PURE__*/getDefaultExportFromCjs(symbol);\n\n var getBuiltInPrototypeMethod$8 = getBuiltInPrototypeMethod$g;\n\n var concat$5 = getBuiltInPrototypeMethod$8('Array', 'concat');\n\n var isPrototypeOf$b = objectIsPrototypeOf;\n var method$8 = concat$5;\n\n var ArrayPrototype$8 = Array.prototype;\n\n var concat$4 = function (it) {\n var own = it.concat;\n return it === ArrayPrototype$8 || (isPrototypeOf$b(ArrayPrototype$8, it) && own === ArrayPrototype$8.concat) ? method$8 : own;\n };\n\n var parent$E = concat$4;\n\n var concat$3 = parent$E;\n\n var concat$2 = concat$3;\n\n var _concatInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(concat$2);\n\n var slice = slice$4;\n\n var _sliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(slice);\n\n var getBuiltIn$5 = getBuiltIn$f;\n var uncurryThis$5 = functionUncurryThis;\n var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;\n var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;\n var anObject$4 = anObject$d;\n\n var concat$1 = uncurryThis$5([].concat);\n\n // all object keys, includes non-enumerable and symbols\n var ownKeys$7 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule$1.f(anObject$4(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;\n return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;\n };\n\n var $$u = _export;\n var ownKeys$6 = ownKeys$7;\n\n // `Reflect.ownKeys` method\n // https://tc39.es/ecma262/#sec-reflect.ownkeys\n $$u({ target: 'Reflect', stat: true }, {\n ownKeys: ownKeys$6\n });\n\n var path$f = path$o;\n\n var ownKeys$5 = path$f.Reflect.ownKeys;\n\n var parent$D = ownKeys$5;\n\n var ownKeys$4 = parent$D;\n\n var ownKeys$3 = ownKeys$4;\n\n var _Reflect$ownKeys = /*@__PURE__*/getDefaultExportFromCjs(ownKeys$3);\n\n var isArray$1 = isArray$7;\n\n var _Array$isArray = /*@__PURE__*/getDefaultExportFromCjs(isArray$1);\n\n var $$t = _export;\n var toObject$4 = toObject$e;\n var nativeKeys = objectKeys$3;\n var fails$c = fails$u;\n\n var FAILS_ON_PRIMITIVES$2 = fails$c(function () { nativeKeys(1); });\n\n // `Object.keys` method\n // https://tc39.es/ecma262/#sec-object.keys\n $$t({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, {\n keys: function keys(it) {\n return nativeKeys(toObject$4(it));\n }\n });\n\n var path$e = path$o;\n\n var keys$6 = path$e.Object.keys;\n\n var parent$C = keys$6;\n\n var keys$5 = parent$C;\n\n var keys$4 = keys$5;\n\n var _Object$keys = /*@__PURE__*/getDefaultExportFromCjs(keys$4);\n\n var $forEach = arrayIteration.forEach;\n var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;\n\n var STRICT_METHOD$2 = arrayMethodIsStrict$2('forEach');\n\n // `Array.prototype.forEach` method implementation\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n // eslint-disable-next-line es/no-array-prototype-foreach -- safe\n } : [].forEach;\n\n var $$s = _export;\n var forEach$8 = arrayForEach;\n\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n // eslint-disable-next-line es/no-array-prototype-foreach -- safe\n $$s({ target: 'Array', proto: true, forced: [].forEach !== forEach$8 }, {\n forEach: forEach$8\n });\n\n var getBuiltInPrototypeMethod$7 = getBuiltInPrototypeMethod$g;\n\n var forEach$7 = getBuiltInPrototypeMethod$7('Array', 'forEach');\n\n var parent$B = forEach$7;\n\n var forEach$6 = parent$B;\n\n var classof$4 = classof$d;\n var hasOwn$6 = hasOwnProperty_1;\n var isPrototypeOf$a = objectIsPrototypeOf;\n var method$7 = forEach$6;\n\n\n var ArrayPrototype$7 = Array.prototype;\n\n var DOMIterables$3 = {\n DOMTokenList: true,\n NodeList: true\n };\n\n var forEach$5 = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype$7 || (isPrototypeOf$a(ArrayPrototype$7, it) && own === ArrayPrototype$7.forEach)\n || hasOwn$6(DOMIterables$3, classof$4(it)) ? method$7 : own;\n };\n\n var forEach$4 = forEach$5;\n\n var _forEachInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(forEach$4);\n\n var $$r = _export;\n var uncurryThis$4 = functionUncurryThis;\n var isArray = isArray$e;\n\n var nativeReverse = uncurryThis$4([].reverse);\n var test$1 = [1, 2];\n\n // `Array.prototype.reverse` method\n // https://tc39.es/ecma262/#sec-array.prototype.reverse\n // fix for Safari 12.0 bug\n // https://bugs.webkit.org/show_bug.cgi?id=188794\n $$r({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {\n reverse: function reverse() {\n // eslint-disable-next-line no-self-assign -- dirty hack\n if (isArray(this)) this.length = this.length;\n return nativeReverse(this);\n }\n });\n\n var getBuiltInPrototypeMethod$6 = getBuiltInPrototypeMethod$g;\n\n var reverse$6 = getBuiltInPrototypeMethod$6('Array', 'reverse');\n\n var isPrototypeOf$9 = objectIsPrototypeOf;\n var method$6 = reverse$6;\n\n var ArrayPrototype$6 = Array.prototype;\n\n var reverse$5 = function (it) {\n var own = it.reverse;\n return it === ArrayPrototype$6 || (isPrototypeOf$9(ArrayPrototype$6, it) && own === ArrayPrototype$6.reverse) ? method$6 : own;\n };\n\n var parent$A = reverse$5;\n\n var reverse$4 = parent$A;\n\n var reverse$3 = reverse$4;\n\n var _reverseInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reverse$3);\n\n var tryToString$2 = tryToString$6;\n\n var $TypeError$5 = TypeError;\n\n var deletePropertyOrThrow$2 = function (O, P) {\n if (!delete O[P]) throw new $TypeError$5('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));\n };\n\n var $$q = _export;\n var toObject$3 = toObject$e;\n var toAbsoluteIndex = toAbsoluteIndex$4;\n var toIntegerOrInfinity = toIntegerOrInfinity$4;\n var lengthOfArrayLike$2 = lengthOfArrayLike$d;\n var setArrayLength = arraySetLength;\n var doesNotExceedSafeInteger = doesNotExceedSafeInteger$4;\n var arraySpeciesCreate = arraySpeciesCreate$4;\n var createProperty$1 = createProperty$6;\n var deletePropertyOrThrow$1 = deletePropertyOrThrow$2;\n var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;\n\n var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\n var max = Math.max;\n var min = Math.min;\n\n // `Array.prototype.splice` method\n // https://tc39.es/ecma262/#sec-array.prototype.splice\n // with adding support of @@species\n $$q({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject$3(this);\n var len = lengthOfArrayLike$2(O);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n }\n doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty$1(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n setArrayLength(O, len - actualDeleteCount + insertCount);\n return A;\n }\n });\n\n var getBuiltInPrototypeMethod$5 = getBuiltInPrototypeMethod$g;\n\n var splice$3 = getBuiltInPrototypeMethod$5('Array', 'splice');\n\n var isPrototypeOf$8 = objectIsPrototypeOf;\n var method$5 = splice$3;\n\n var ArrayPrototype$5 = Array.prototype;\n\n var splice$2 = function (it) {\n var own = it.splice;\n return it === ArrayPrototype$5 || (isPrototypeOf$8(ArrayPrototype$5, it) && own === ArrayPrototype$5.splice) ? method$5 : own;\n };\n\n var parent$z = splice$2;\n\n var splice$1 = parent$z;\n\n var splice = splice$1;\n\n var _spliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(splice);\n\n var DESCRIPTORS$7 = descriptors;\n var uncurryThis$3 = functionUncurryThis;\n var call$7 = functionCall;\n var fails$b = fails$u;\n var objectKeys = objectKeys$3;\n var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;\n var propertyIsEnumerableModule = objectPropertyIsEnumerable;\n var toObject$2 = toObject$e;\n var IndexedObject = indexedObject;\n\n // eslint-disable-next-line es/no-object-assign -- safe\n var $assign = Object.assign;\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n var defineProperty$3 = Object.defineProperty;\n var concat = uncurryThis$3([].concat);\n\n // `Object.assign` method\n // https://tc39.es/ecma262/#sec-object.assign\n var objectAssign = !$assign || fails$b(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty$3(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol('assign detection');\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;\n }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject$2(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS$7 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n } : $assign;\n\n var $$p = _export;\n var assign$5 = objectAssign;\n\n // `Object.assign` method\n // https://tc39.es/ecma262/#sec-object.assign\n // eslint-disable-next-line es/no-object-assign -- required for testing\n $$p({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$5 }, {\n assign: assign$5\n });\n\n var path$d = path$o;\n\n var assign$4 = path$d.Object.assign;\n\n var parent$y = assign$4;\n\n var assign$3 = parent$y;\n\n var assign$2 = assign$3;\n\n var _Object$assign = /*@__PURE__*/getDefaultExportFromCjs(assign$2);\n\n var $$o = _export;\n var fails$a = fails$u;\n var toObject$1 = toObject$e;\n var nativeGetPrototypeOf = objectGetPrototypeOf;\n var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;\n\n var FAILS_ON_PRIMITIVES$1 = fails$a(function () { nativeGetPrototypeOf(1); });\n\n // `Object.getPrototypeOf` method\n // https://tc39.es/ecma262/#sec-object.getprototypeof\n $$o({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject$1(it));\n }\n });\n\n var path$c = path$o;\n\n var getPrototypeOf$5 = path$c.Object.getPrototypeOf;\n\n var parent$x = getPrototypeOf$5;\n\n var getPrototypeOf$4 = parent$x;\n\n // TODO: Remove from `core-js@4`\n var $$n = _export;\n var DESCRIPTORS$6 = descriptors;\n var create$9 = objectCreate;\n\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n $$n({ target: 'Object', stat: true, sham: !DESCRIPTORS$6 }, {\n create: create$9\n });\n\n var path$b = path$o;\n\n var Object$3 = path$b.Object;\n\n var create$8 = function create(P, D) {\n return Object$3.create(P, D);\n };\n\n var parent$w = create$8;\n\n var create$7 = parent$w;\n\n var create$6 = create$7;\n\n var _Object$create$1 = /*@__PURE__*/getDefaultExportFromCjs(create$6);\n\n var path$a = path$o;\n var apply$3 = functionApply;\n\n // eslint-disable-next-line es/no-json -- safe\n if (!path$a.JSON) path$a.JSON = { stringify: JSON.stringify };\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n var stringify$2 = function stringify(it, replacer, space) {\n return apply$3(path$a.JSON.stringify, null, arguments);\n };\n\n var parent$v = stringify$2;\n\n var stringify$1 = parent$v;\n\n var stringify = stringify$1;\n\n var _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringify);\n\n /* global Bun -- Deno case */\n var engineIsBun = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n\n var $TypeError$4 = TypeError;\n\n var validateArgumentsLength$2 = function (passed, required) {\n if (passed < required) throw new $TypeError$4('Not enough arguments');\n return passed;\n };\n\n var global$9 = global$p;\n var apply$2 = functionApply;\n var isCallable$5 = isCallable$m;\n var ENGINE_IS_BUN = engineIsBun;\n var USER_AGENT = engineUserAgent;\n var arraySlice$2 = arraySlice$5;\n var validateArgumentsLength$1 = validateArgumentsLength$2;\n\n var Function$2 = global$9.Function;\n // dirty IE9- and Bun 0.3.0- checks\n var WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global$9.Bun.version.split('.');\n return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0');\n })();\n\n // IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n // https://github.com/oven-sh/bun/issues/1633\n var schedulersFix$2 = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength$1(arguments.length, 1) > firstParamIndex;\n var fn = isCallable$5(handler) ? handler : Function$2(handler);\n var params = boundArgs ? arraySlice$2(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply$2(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n };\n\n var $$m = _export;\n var global$8 = global$p;\n var schedulersFix$1 = schedulersFix$2;\n\n var setInterval = schedulersFix$1(global$8.setInterval, true);\n\n // Bun / IE9- setInterval additional parameters fix\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n $$m({ global: true, bind: true, forced: global$8.setInterval !== setInterval }, {\n setInterval: setInterval\n });\n\n var $$l = _export;\n var global$7 = global$p;\n var schedulersFix = schedulersFix$2;\n\n var setTimeout$3 = schedulersFix(global$7.setTimeout, true);\n\n // Bun / IE9- setTimeout additional parameters fix\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n $$l({ global: true, bind: true, forced: global$7.setTimeout !== setTimeout$3 }, {\n setTimeout: setTimeout$3\n });\n\n var path$9 = path$o;\n\n var setTimeout$2 = path$9.setTimeout;\n\n var setTimeout$1 = setTimeout$2;\n\n var _setTimeout = /*@__PURE__*/getDefaultExportFromCjs(setTimeout$1);\n\n var componentEmitter = {exports: {}};\n\n (function (module) {\n \tfunction Emitter(object) {\n \t\tif (object) {\n \t\t\treturn mixin(object);\n \t\t}\n\n \t\tthis._callbacks = new Map();\n \t}\n\n \tfunction mixin(object) {\n \t\tObject.assign(object, Emitter.prototype);\n \t\tobject._callbacks = new Map();\n \t\treturn object;\n \t}\n\n \tEmitter.prototype.on = function (event, listener) {\n \t\tconst callbacks = this._callbacks.get(event) ?? [];\n \t\tcallbacks.push(listener);\n \t\tthis._callbacks.set(event, callbacks);\n \t\treturn this;\n \t};\n\n \tEmitter.prototype.once = function (event, listener) {\n \t\tconst on = (...arguments_) => {\n \t\t\tthis.off(event, on);\n \t\t\tlistener.apply(this, arguments_);\n \t\t};\n\n \t\ton.fn = listener;\n \t\tthis.on(event, on);\n \t\treturn this;\n \t};\n\n \tEmitter.prototype.off = function (event, listener) {\n \t\tif (event === undefined && listener === undefined) {\n \t\t\tthis._callbacks.clear();\n \t\t\treturn this;\n \t\t}\n\n \t\tif (listener === undefined) {\n \t\t\tthis._callbacks.delete(event);\n \t\t\treturn this;\n \t\t}\n\n \t\tconst callbacks = this._callbacks.get(event);\n \t\tif (callbacks) {\n \t\t\tfor (const [index, callback] of callbacks.entries()) {\n \t\t\t\tif (callback === listener || callback.fn === listener) {\n \t\t\t\t\tcallbacks.splice(index, 1);\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tif (callbacks.length === 0) {\n \t\t\t\tthis._callbacks.delete(event);\n \t\t\t} else {\n \t\t\t\tthis._callbacks.set(event, callbacks);\n \t\t\t}\n \t\t}\n\n \t\treturn this;\n \t};\n\n \tEmitter.prototype.emit = function (event, ...arguments_) {\n \t\tconst callbacks = this._callbacks.get(event);\n \t\tif (callbacks) {\n \t\t\t// Create a copy of the callbacks array to avoid issues if it's modified during iteration\n \t\t\tconst callbacksCopy = [...callbacks];\n\n \t\t\tfor (const callback of callbacksCopy) {\n \t\t\t\tcallback.apply(this, arguments_);\n \t\t\t}\n \t\t}\n\n \t\treturn this;\n \t};\n\n \tEmitter.prototype.listeners = function (event) {\n \t\treturn this._callbacks.get(event) ?? [];\n \t};\n\n \tEmitter.prototype.listenerCount = function (event) {\n \t\tif (event) {\n \t\t\treturn this.listeners(event).length;\n \t\t}\n\n \t\tlet totalCount = 0;\n \t\tfor (const callbacks of this._callbacks.values()) {\n \t\t\ttotalCount += callbacks.length;\n \t\t}\n\n \t\treturn totalCount;\n \t};\n\n \tEmitter.prototype.hasListeners = function (event) {\n \t\treturn this.listenerCount(event) > 0;\n \t};\n\n \t// Aliases\n \tEmitter.prototype.addEventListener = Emitter.prototype.on;\n \tEmitter.prototype.removeListener = Emitter.prototype.off;\n \tEmitter.prototype.removeEventListener = Emitter.prototype.off;\n \tEmitter.prototype.removeAllListeners = Emitter.prototype.off;\n\n \t{\n \t\tmodule.exports = Emitter;\n \t} \n } (componentEmitter));\n\n var componentEmitterExports = componentEmitter.exports;\n var Emitter = /*@__PURE__*/getDefaultExportFromCjs(componentEmitterExports);\n\n /*! Hammer.JS - v2.0.17-rc - 2019-12-16\n * http://naver.github.io/egjs\n *\n * Forked By Naver egjs\n * Copyright (c) hammerjs\n * Licensed under the MIT license */\n function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n }\n\n function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n }\n\n function _assertThisInitialized$1(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n }\n\n /**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} target\n * @param {...Object} objects_to_assign\n * @returns {Object} target\n */\n var assign;\n\n if (typeof Object.assign !== 'function') {\n assign = function assign(target) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n\n var output = Object(target);\n\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n\n if (source !== undefined && source !== null) {\n for (var nextKey in source) {\n if (source.hasOwnProperty(nextKey)) {\n output[nextKey] = source[nextKey];\n }\n }\n }\n }\n\n return output;\n };\n } else {\n assign = Object.assign;\n }\n\n var assign$1 = assign;\n\n var VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];\n var TEST_ELEMENT = typeof document === \"undefined\" ? {\n style: {}\n } : document.createElement('div');\n var TYPE_FUNCTION = 'function';\n var round = Math.round,\n abs = Math.abs;\n var now = Date.now;\n\n /**\n * @private\n * get the prefixed property\n * @param {Object} obj\n * @param {String} property\n * @returns {String|Undefined} prefixed\n */\n\n function prefixed(obj, property) {\n var prefix;\n var prop;\n var camelProp = property[0].toUpperCase() + property.slice(1);\n var i = 0;\n\n while (i < VENDOR_PREFIXES.length) {\n prefix = VENDOR_PREFIXES[i];\n prop = prefix ? prefix + camelProp : property;\n\n if (prop in obj) {\n return prop;\n }\n\n i++;\n }\n\n return undefined;\n }\n\n /* eslint-disable no-new-func, no-nested-ternary */\n var win;\n\n if (typeof window === \"undefined\") {\n // window is undefined in node.js\n win = {};\n } else {\n win = window;\n }\n\n var PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');\n var NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;\n function getTouchActionProps() {\n if (!NATIVE_TOUCH_ACTION) {\n return false;\n }\n\n var touchMap = {};\n var cssSupports = win.CSS && win.CSS.supports;\n ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function (val) {\n // If css.supports is not supported but there is native touch-action assume it supports\n // all values. This is the case for IE 10 and 11.\n return touchMap[val] = cssSupports ? win.CSS.supports('touch-action', val) : true;\n });\n return touchMap;\n }\n\n var TOUCH_ACTION_COMPUTE = 'compute';\n var TOUCH_ACTION_AUTO = 'auto';\n var TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented\n\n var TOUCH_ACTION_NONE = 'none';\n var TOUCH_ACTION_PAN_X = 'pan-x';\n var TOUCH_ACTION_PAN_Y = 'pan-y';\n var TOUCH_ACTION_MAP = getTouchActionProps();\n\n var MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;\n var SUPPORT_TOUCH = 'ontouchstart' in win;\n var SUPPORT_POINTER_EVENTS = prefixed(win, 'PointerEvent') !== undefined;\n var SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);\n var INPUT_TYPE_TOUCH = 'touch';\n var INPUT_TYPE_PEN = 'pen';\n var INPUT_TYPE_MOUSE = 'mouse';\n var INPUT_TYPE_KINECT = 'kinect';\n var COMPUTE_INTERVAL = 25;\n var INPUT_START = 1;\n var INPUT_MOVE = 2;\n var INPUT_END = 4;\n var INPUT_CANCEL = 8;\n var DIRECTION_NONE = 1;\n var DIRECTION_LEFT = 2;\n var DIRECTION_RIGHT = 4;\n var DIRECTION_UP = 8;\n var DIRECTION_DOWN = 16;\n var DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;\n var DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;\n var DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;\n var PROPS_XY = ['x', 'y'];\n var PROPS_CLIENT_XY = ['clientX', 'clientY'];\n\n /**\n * @private\n * walk objects and arrays\n * @param {Object} obj\n * @param {Function} iterator\n * @param {Object} context\n */\n function each(obj, iterator, context) {\n var i;\n\n if (!obj) {\n return;\n }\n\n if (obj.forEach) {\n obj.forEach(iterator, context);\n } else if (obj.length !== undefined) {\n i = 0;\n\n while (i < obj.length) {\n iterator.call(context, obj[i], i, obj);\n i++;\n }\n } else {\n for (i in obj) {\n obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);\n }\n }\n }\n\n /**\n * @private\n * let a boolean value also be a function that must return a boolean\n * this first item in args will be used as the context\n * @param {Boolean|Function} val\n * @param {Array} [args]\n * @returns {Boolean}\n */\n\n function boolOrFn(val, args) {\n if (typeof val === TYPE_FUNCTION) {\n return val.apply(args ? args[0] || undefined : undefined, args);\n }\n\n return val;\n }\n\n /**\n * @private\n * small indexOf wrapper\n * @param {String} str\n * @param {String} find\n * @returns {Boolean} found\n */\n function inStr(str, find) {\n return str.indexOf(find) > -1;\n }\n\n /**\n * @private\n * when the touchActions are collected they are not a valid value, so we need to clean things up. *\n * @param {String} actions\n * @returns {*}\n */\n\n function cleanTouchActions(actions) {\n // none\n if (inStr(actions, TOUCH_ACTION_NONE)) {\n return TOUCH_ACTION_NONE;\n }\n\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y); // if both pan-x and pan-y are set (different recognizers\n // for different directions, e.g. horizontal pan but vertical swipe?)\n // we need none (as otherwise with pan-x pan-y combined none of these\n // recognizers will work, since the browser would handle all panning\n\n if (hasPanX && hasPanY) {\n return TOUCH_ACTION_NONE;\n } // pan-x OR pan-y\n\n\n if (hasPanX || hasPanY) {\n return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;\n } // manipulation\n\n\n if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {\n return TOUCH_ACTION_MANIPULATION;\n }\n\n return TOUCH_ACTION_AUTO;\n }\n\n /**\n * @private\n * Touch Action\n * sets the touchAction property or uses the js alternative\n * @param {Manager} manager\n * @param {String} value\n * @constructor\n */\n\n var TouchAction =\n /*#__PURE__*/\n function () {\n function TouchAction(manager, value) {\n this.manager = manager;\n this.set(value);\n }\n /**\n * @private\n * set the touchAction value on the element or enable the polyfill\n * @param {String} value\n */\n\n\n var _proto = TouchAction.prototype;\n\n _proto.set = function set(value) {\n // find out the touch-action by the event handlers\n if (value === TOUCH_ACTION_COMPUTE) {\n value = this.compute();\n }\n\n if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {\n this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;\n }\n\n this.actions = value.toLowerCase().trim();\n };\n /**\n * @private\n * just re-set the touchAction value\n */\n\n\n _proto.update = function update() {\n this.set(this.manager.options.touchAction);\n };\n /**\n * @private\n * compute the value for the touchAction property based on the recognizer's settings\n * @returns {String} value\n */\n\n\n _proto.compute = function compute() {\n var actions = [];\n each(this.manager.recognizers, function (recognizer) {\n if (boolOrFn(recognizer.options.enable, [recognizer])) {\n actions = actions.concat(recognizer.getTouchAction());\n }\n });\n return cleanTouchActions(actions.join(' '));\n };\n /**\n * @private\n * this method is called on each input cycle and provides the preventing of the browser behavior\n * @param {Object} input\n */\n\n\n _proto.preventDefaults = function preventDefaults(input) {\n var srcEvent = input.srcEvent;\n var direction = input.offsetDirection; // if the touch action did prevented once this session\n\n if (this.manager.session.prevented) {\n srcEvent.preventDefault();\n return;\n }\n\n var actions = this.actions;\n var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];\n\n if (hasNone) {\n // do not prevent defaults if this is a tap gesture\n var isTapPointer = input.pointers.length === 1;\n var isTapMovement = input.distance < 2;\n var isTapTouchTime = input.deltaTime < 250;\n\n if (isTapPointer && isTapMovement && isTapTouchTime) {\n return;\n }\n }\n\n if (hasPanX && hasPanY) {\n // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent\n return;\n }\n\n if (hasNone || hasPanY && direction & DIRECTION_HORIZONTAL || hasPanX && direction & DIRECTION_VERTICAL) {\n return this.preventSrc(srcEvent);\n }\n };\n /**\n * @private\n * call preventDefault to prevent the browser's default behavior (scrolling in most cases)\n * @param {Object} srcEvent\n */\n\n\n _proto.preventSrc = function preventSrc(srcEvent) {\n this.manager.session.prevented = true;\n srcEvent.preventDefault();\n };\n\n return TouchAction;\n }();\n\n /**\n * @private\n * find if a node is in the given parent\n * @method hasParent\n * @param {HTMLElement} node\n * @param {HTMLElement} parent\n * @return {Boolean} found\n */\n function hasParent(node, parent) {\n while (node) {\n if (node === parent) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n }\n\n /**\n * @private\n * get the center of all the pointers\n * @param {Array} pointers\n * @return {Object} center contains `x` and `y` properties\n */\n\n function getCenter(pointers) {\n var pointersLength = pointers.length; // no need to loop when only one touch\n\n if (pointersLength === 1) {\n return {\n x: round(pointers[0].clientX),\n y: round(pointers[0].clientY)\n };\n }\n\n var x = 0;\n var y = 0;\n var i = 0;\n\n while (i < pointersLength) {\n x += pointers[i].clientX;\n y += pointers[i].clientY;\n i++;\n }\n\n return {\n x: round(x / pointersLength),\n y: round(y / pointersLength)\n };\n }\n\n /**\n * @private\n * create a simple clone from the input used for storage of firstInput and firstMultiple\n * @param {Object} input\n * @returns {Object} clonedInputData\n */\n\n function simpleCloneInputData(input) {\n // make a simple copy of the pointers because we will get a reference if we don't\n // we only need clientXY for the calculations\n var pointers = [];\n var i = 0;\n\n while (i < input.pointers.length) {\n pointers[i] = {\n clientX: round(input.pointers[i].clientX),\n clientY: round(input.pointers[i].clientY)\n };\n i++;\n }\n\n return {\n timeStamp: now(),\n pointers: pointers,\n center: getCenter(pointers),\n deltaX: input.deltaX,\n deltaY: input.deltaY\n };\n }\n\n /**\n * @private\n * calculate the absolute distance between two points\n * @param {Object} p1 {x, y}\n * @param {Object} p2 {x, y}\n * @param {Array} [props] containing x and y keys\n * @return {Number} distance\n */\n\n function getDistance(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.sqrt(x * x + y * y);\n }\n\n /**\n * @private\n * calculate the angle between two coordinates\n * @param {Object} p1\n * @param {Object} p2\n * @param {Array} [props] containing x and y keys\n * @return {Number} angle\n */\n\n function getAngle(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.atan2(y, x) * 180 / Math.PI;\n }\n\n /**\n * @private\n * get the direction between two points\n * @param {Number} x\n * @param {Number} y\n * @return {Number} direction\n */\n\n function getDirection(x, y) {\n if (x === y) {\n return DIRECTION_NONE;\n }\n\n if (abs(x) >= abs(y)) {\n return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n\n return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n }\n\n function computeDeltaXY(session, input) {\n var center = input.center; // let { offsetDelta:offset = {}, prevDelta = {}, prevInput = {} } = session;\n // jscs throwing error on defalut destructured values and without defaults tests fail\n\n var offset = session.offsetDelta || {};\n var prevDelta = session.prevDelta || {};\n var prevInput = session.prevInput || {};\n\n if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {\n prevDelta = session.prevDelta = {\n x: prevInput.deltaX || 0,\n y: prevInput.deltaY || 0\n };\n offset = session.offsetDelta = {\n x: center.x,\n y: center.y\n };\n }\n\n input.deltaX = prevDelta.x + (center.x - offset.x);\n input.deltaY = prevDelta.y + (center.y - offset.y);\n }\n\n /**\n * @private\n * calculate the velocity between two points. unit is in px per ms.\n * @param {Number} deltaTime\n * @param {Number} x\n * @param {Number} y\n * @return {Object} velocity `x` and `y`\n */\n function getVelocity(deltaTime, x, y) {\n return {\n x: x / deltaTime || 0,\n y: y / deltaTime || 0\n };\n }\n\n /**\n * @private\n * calculate the scale factor between two pointersets\n * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} scale\n */\n\n function getScale(start, end) {\n return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);\n }\n\n /**\n * @private\n * calculate the rotation degrees between two pointersets\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} rotation\n */\n\n function getRotation(start, end) {\n return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);\n }\n\n /**\n * @private\n * velocity is calculated every x ms\n * @param {Object} session\n * @param {Object} input\n */\n\n function computeIntervalInputData(session, input) {\n var last = session.lastInterval || input;\n var deltaTime = input.timeStamp - last.timeStamp;\n var velocity;\n var velocityX;\n var velocityY;\n var direction;\n\n if (input.eventType !== INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {\n var deltaX = input.deltaX - last.deltaX;\n var deltaY = input.deltaY - last.deltaY;\n var v = getVelocity(deltaTime, deltaX, deltaY);\n velocityX = v.x;\n velocityY = v.y;\n velocity = abs(v.x) > abs(v.y) ? v.x : v.y;\n direction = getDirection(deltaX, deltaY);\n session.lastInterval = input;\n } else {\n // use latest velocity info if it doesn't overtake a minimum period\n velocity = last.velocity;\n velocityX = last.velocityX;\n velocityY = last.velocityY;\n direction = last.direction;\n }\n\n input.velocity = velocity;\n input.velocityX = velocityX;\n input.velocityY = velocityY;\n input.direction = direction;\n }\n\n /**\n * @private\n * extend the data with some usable properties like scale, rotate, velocity etc\n * @param {Object} manager\n * @param {Object} input\n */\n\n function computeInputData(manager, input) {\n var session = manager.session;\n var pointers = input.pointers;\n var pointersLength = pointers.length; // store the first input to calculate the distance and direction\n\n if (!session.firstInput) {\n session.firstInput = simpleCloneInputData(input);\n } // to compute scale and rotation we need to store the multiple touches\n\n\n if (pointersLength > 1 && !session.firstMultiple) {\n session.firstMultiple = simpleCloneInputData(input);\n } else if (pointersLength === 1) {\n session.firstMultiple = false;\n }\n\n var firstInput = session.firstInput,\n firstMultiple = session.firstMultiple;\n var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;\n var center = input.center = getCenter(pointers);\n input.timeStamp = now();\n input.deltaTime = input.timeStamp - firstInput.timeStamp;\n input.angle = getAngle(offsetCenter, center);\n input.distance = getDistance(offsetCenter, center);\n computeDeltaXY(session, input);\n input.offsetDirection = getDirection(input.deltaX, input.deltaY);\n var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);\n input.overallVelocityX = overallVelocity.x;\n input.overallVelocityY = overallVelocity.y;\n input.overallVelocity = abs(overallVelocity.x) > abs(overallVelocity.y) ? overallVelocity.x : overallVelocity.y;\n input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;\n input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;\n input.maxPointers = !session.prevInput ? input.pointers.length : input.pointers.length > session.prevInput.maxPointers ? input.pointers.length : session.prevInput.maxPointers;\n computeIntervalInputData(session, input); // find the correct target\n\n var target = manager.element;\n var srcEvent = input.srcEvent;\n var srcEventTarget;\n\n if (srcEvent.composedPath) {\n srcEventTarget = srcEvent.composedPath()[0];\n } else if (srcEvent.path) {\n srcEventTarget = srcEvent.path[0];\n } else {\n srcEventTarget = srcEvent.target;\n }\n\n if (hasParent(srcEventTarget, target)) {\n target = srcEventTarget;\n }\n\n input.target = target;\n }\n\n /**\n * @private\n * handle input events\n * @param {Manager} manager\n * @param {String} eventType\n * @param {Object} input\n */\n\n function inputHandler(manager, eventType, input) {\n var pointersLen = input.pointers.length;\n var changedPointersLen = input.changedPointers.length;\n var isFirst = eventType & INPUT_START && pointersLen - changedPointersLen === 0;\n var isFinal = eventType & (INPUT_END | INPUT_CANCEL) && pointersLen - changedPointersLen === 0;\n input.isFirst = !!isFirst;\n input.isFinal = !!isFinal;\n\n if (isFirst) {\n manager.session = {};\n } // source event is the normalized value of the domEvents\n // like 'touchstart, mouseup, pointerdown'\n\n\n input.eventType = eventType; // compute scale, rotation etc\n\n computeInputData(manager, input); // emit secret event\n\n manager.emit('hammer.input', input);\n manager.recognize(input);\n manager.session.prevInput = input;\n }\n\n /**\n * @private\n * split string on whitespace\n * @param {String} str\n * @returns {Array} words\n */\n function splitStr(str) {\n return str.trim().split(/\\s+/g);\n }\n\n /**\n * @private\n * addEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\n function addEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.addEventListener(type, handler, false);\n });\n }\n\n /**\n * @private\n * removeEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\n function removeEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.removeEventListener(type, handler, false);\n });\n }\n\n /**\n * @private\n * get the window object of an element\n * @param {HTMLElement} element\n * @returns {DocumentView|Window}\n */\n function getWindowForElement(element) {\n var doc = element.ownerDocument || element;\n return doc.defaultView || doc.parentWindow || window;\n }\n\n /**\n * @private\n * create new input type manager\n * @param {Manager} manager\n * @param {Function} callback\n * @returns {Input}\n * @constructor\n */\n\n var Input =\n /*#__PURE__*/\n function () {\n function Input(manager, callback) {\n var self = this;\n this.manager = manager;\n this.callback = callback;\n this.element = manager.element;\n this.target = manager.options.inputTarget; // smaller wrapper around the handler, for the scope and the enabled state of the manager,\n // so when disabled the input events are completely bypassed.\n\n this.domHandler = function (ev) {\n if (boolOrFn(manager.options.enable, [manager])) {\n self.handler(ev);\n }\n };\n\n this.init();\n }\n /**\n * @private\n * should handle the inputEvent data and trigger the callback\n * @virtual\n */\n\n\n var _proto = Input.prototype;\n\n _proto.handler = function handler() {};\n /**\n * @private\n * bind the events\n */\n\n\n _proto.init = function init() {\n this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n /**\n * @private\n * unbind the events\n */\n\n\n _proto.destroy = function destroy() {\n this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n\n return Input;\n }();\n\n /**\n * @private\n * find if a array contains the object using indexOf or a simple polyFill\n * @param {Array} src\n * @param {String} find\n * @param {String} [findByKey]\n * @return {Boolean|Number} false when not found, or the index\n */\n function inArray(src, find, findByKey) {\n if (src.indexOf && !findByKey) {\n return src.indexOf(find);\n } else {\n var i = 0;\n\n while (i < src.length) {\n if (findByKey && src[i][findByKey] == find || !findByKey && src[i] === find) {\n // do not use === here, test fails\n return i;\n }\n\n i++;\n }\n\n return -1;\n }\n }\n\n var POINTER_INPUT_MAP = {\n pointerdown: INPUT_START,\n pointermove: INPUT_MOVE,\n pointerup: INPUT_END,\n pointercancel: INPUT_CANCEL,\n pointerout: INPUT_CANCEL\n }; // in IE10 the pointer types is defined as an enum\n\n var IE10_POINTER_TYPE_ENUM = {\n 2: INPUT_TYPE_TOUCH,\n 3: INPUT_TYPE_PEN,\n 4: INPUT_TYPE_MOUSE,\n 5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816\n\n };\n var POINTER_ELEMENT_EVENTS = 'pointerdown';\n var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel'; // IE10 has prefixed support, and case-sensitive\n\n if (win.MSPointerEvent && !win.PointerEvent) {\n POINTER_ELEMENT_EVENTS = 'MSPointerDown';\n POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';\n }\n /**\n * @private\n * Pointer events input\n * @constructor\n * @extends Input\n */\n\n\n var PointerEventInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(PointerEventInput, _Input);\n\n function PointerEventInput() {\n var _this;\n\n var proto = PointerEventInput.prototype;\n proto.evEl = POINTER_ELEMENT_EVENTS;\n proto.evWin = POINTER_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.store = _this.manager.session.pointerEvents = [];\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = PointerEventInput.prototype;\n\n _proto.handler = function handler(ev) {\n var store = this.store;\n var removePointer = false;\n var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');\n var eventType = POINTER_INPUT_MAP[eventTypeNormalized];\n var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;\n var isTouch = pointerType === INPUT_TYPE_TOUCH; // get index of the event in the store\n\n var storeIndex = inArray(store, ev.pointerId, 'pointerId'); // start and mouse must be down\n\n if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {\n if (storeIndex < 0) {\n store.push(ev);\n storeIndex = store.length - 1;\n }\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n removePointer = true;\n } // it not found, so the pointer hasn't been down (so it's probably a hover)\n\n\n if (storeIndex < 0) {\n return;\n } // update the event in the store\n\n\n store[storeIndex] = ev;\n this.callback(this.manager, eventType, {\n pointers: store,\n changedPointers: [ev],\n pointerType: pointerType,\n srcEvent: ev\n });\n\n if (removePointer) {\n // remove from the store\n store.splice(storeIndex, 1);\n }\n };\n\n return PointerEventInput;\n }(Input);\n\n /**\n * @private\n * convert array-like objects to real arrays\n * @param {Object} obj\n * @returns {Array}\n */\n function toArray(obj) {\n return Array.prototype.slice.call(obj, 0);\n }\n\n /**\n * @private\n * unique array with objects based on a key (like 'id') or just by the array's value\n * @param {Array} src [{id:1},{id:2},{id:1}]\n * @param {String} [key]\n * @param {Boolean} [sort=False]\n * @returns {Array} [{id:1},{id:2}]\n */\n\n function uniqueArray(src, key, sort) {\n var results = [];\n var values = [];\n var i = 0;\n\n while (i < src.length) {\n var val = key ? src[i][key] : src[i];\n\n if (inArray(values, val) < 0) {\n results.push(src[i]);\n }\n\n values[i] = val;\n i++;\n }\n\n if (sort) {\n if (!key) {\n results = results.sort();\n } else {\n results = results.sort(function (a, b) {\n return a[key] > b[key];\n });\n }\n }\n\n return results;\n }\n\n var TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n };\n var TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';\n /**\n * @private\n * Multi-user touch events input\n * @constructor\n * @extends Input\n */\n\n var TouchInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(TouchInput, _Input);\n\n function TouchInput() {\n var _this;\n\n TouchInput.prototype.evTarget = TOUCH_TARGET_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.targetIds = {}; // this.evTarget = TOUCH_TARGET_EVENTS;\n\n return _this;\n }\n\n var _proto = TouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = TOUCH_INPUT_MAP[ev.type];\n var touches = getTouches.call(this, ev, type);\n\n if (!touches) {\n return;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return TouchInput;\n }(Input);\n\n function getTouches(ev, type) {\n var allTouches = toArray(ev.touches);\n var targetIds = this.targetIds; // when there is only one touch, the process can be simplified\n\n if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {\n targetIds[allTouches[0].identifier] = true;\n return [allTouches, allTouches];\n }\n\n var i;\n var targetTouches;\n var changedTouches = toArray(ev.changedTouches);\n var changedTargetTouches = [];\n var target = this.target; // get target touches from touches\n\n targetTouches = allTouches.filter(function (touch) {\n return hasParent(touch.target, target);\n }); // collect touches\n\n if (type === INPUT_START) {\n i = 0;\n\n while (i < targetTouches.length) {\n targetIds[targetTouches[i].identifier] = true;\n i++;\n }\n } // filter changed touches to only contain touches that exist in the collected target ids\n\n\n i = 0;\n\n while (i < changedTouches.length) {\n if (targetIds[changedTouches[i].identifier]) {\n changedTargetTouches.push(changedTouches[i]);\n } // cleanup removed touches\n\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n delete targetIds[changedTouches[i].identifier];\n }\n\n i++;\n }\n\n if (!changedTargetTouches.length) {\n return;\n }\n\n return [// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'\n uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true), changedTargetTouches];\n }\n\n var MOUSE_INPUT_MAP = {\n mousedown: INPUT_START,\n mousemove: INPUT_MOVE,\n mouseup: INPUT_END\n };\n var MOUSE_ELEMENT_EVENTS = 'mousedown';\n var MOUSE_WINDOW_EVENTS = 'mousemove mouseup';\n /**\n * @private\n * Mouse events input\n * @constructor\n * @extends Input\n */\n\n var MouseInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(MouseInput, _Input);\n\n function MouseInput() {\n var _this;\n\n var proto = MouseInput.prototype;\n proto.evEl = MOUSE_ELEMENT_EVENTS;\n proto.evWin = MOUSE_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.pressed = false; // mousedown state\n\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = MouseInput.prototype;\n\n _proto.handler = function handler(ev) {\n var eventType = MOUSE_INPUT_MAP[ev.type]; // on start we want to have the left mouse button down\n\n if (eventType & INPUT_START && ev.button === 0) {\n this.pressed = true;\n }\n\n if (eventType & INPUT_MOVE && ev.which !== 1) {\n eventType = INPUT_END;\n } // mouse must be down\n\n\n if (!this.pressed) {\n return;\n }\n\n if (eventType & INPUT_END) {\n this.pressed = false;\n }\n\n this.callback(this.manager, eventType, {\n pointers: [ev],\n changedPointers: [ev],\n pointerType: INPUT_TYPE_MOUSE,\n srcEvent: ev\n });\n };\n\n return MouseInput;\n }(Input);\n\n /**\n * @private\n * Combined touch and mouse input\n *\n * Touch has a higher priority then mouse, and while touching no mouse events are allowed.\n * This because touch devices also emit mouse events while doing a touch.\n *\n * @constructor\n * @extends Input\n */\n\n var DEDUP_TIMEOUT = 2500;\n var DEDUP_DISTANCE = 25;\n\n function setLastTouch(eventData) {\n var _eventData$changedPoi = eventData.changedPointers,\n touch = _eventData$changedPoi[0];\n\n if (touch.identifier === this.primaryTouch) {\n var lastTouch = {\n x: touch.clientX,\n y: touch.clientY\n };\n var lts = this.lastTouches;\n this.lastTouches.push(lastTouch);\n\n var removeLastTouch = function removeLastTouch() {\n var i = lts.indexOf(lastTouch);\n\n if (i > -1) {\n lts.splice(i, 1);\n }\n };\n\n setTimeout(removeLastTouch, DEDUP_TIMEOUT);\n }\n }\n\n function recordTouches(eventType, eventData) {\n if (eventType & INPUT_START) {\n this.primaryTouch = eventData.changedPointers[0].identifier;\n setLastTouch.call(this, eventData);\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n setLastTouch.call(this, eventData);\n }\n }\n\n function isSyntheticEvent(eventData) {\n var x = eventData.srcEvent.clientX;\n var y = eventData.srcEvent.clientY;\n\n for (var i = 0; i < this.lastTouches.length; i++) {\n var t = this.lastTouches[i];\n var dx = Math.abs(x - t.x);\n var dy = Math.abs(y - t.y);\n\n if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {\n return true;\n }\n }\n\n return false;\n }\n\n var TouchMouseInput =\n /*#__PURE__*/\n function () {\n var TouchMouseInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(TouchMouseInput, _Input);\n\n function TouchMouseInput(_manager, callback) {\n var _this;\n\n _this = _Input.call(this, _manager, callback) || this;\n\n _this.handler = function (manager, inputEvent, inputData) {\n var isTouch = inputData.pointerType === INPUT_TYPE_TOUCH;\n var isMouse = inputData.pointerType === INPUT_TYPE_MOUSE;\n\n if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {\n return;\n } // when we're in a touch event, record touches to de-dupe synthetic mouse event\n\n\n if (isTouch) {\n recordTouches.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputEvent, inputData);\n } else if (isMouse && isSyntheticEvent.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputData)) {\n return;\n }\n\n _this.callback(manager, inputEvent, inputData);\n };\n\n _this.touch = new TouchInput(_this.manager, _this.handler);\n _this.mouse = new MouseInput(_this.manager, _this.handler);\n _this.primaryTouch = null;\n _this.lastTouches = [];\n return _this;\n }\n /**\n * @private\n * handle mouse and touch events\n * @param {Hammer} manager\n * @param {String} inputEvent\n * @param {Object} inputData\n */\n\n\n var _proto = TouchMouseInput.prototype;\n\n /**\n * @private\n * remove the event listeners\n */\n _proto.destroy = function destroy() {\n this.touch.destroy();\n this.mouse.destroy();\n };\n\n return TouchMouseInput;\n }(Input);\n\n return TouchMouseInput;\n }();\n\n /**\n * @private\n * create new input type manager\n * called by the Manager constructor\n * @param {Hammer} manager\n * @returns {Input}\n */\n\n function createInputInstance(manager) {\n var Type; // let inputClass = manager.options.inputClass;\n\n var inputClass = manager.options.inputClass;\n\n if (inputClass) {\n Type = inputClass;\n } else if (SUPPORT_POINTER_EVENTS) {\n Type = PointerEventInput;\n } else if (SUPPORT_ONLY_TOUCH) {\n Type = TouchInput;\n } else if (!SUPPORT_TOUCH) {\n Type = MouseInput;\n } else {\n Type = TouchMouseInput;\n }\n\n return new Type(manager, inputHandler);\n }\n\n /**\n * @private\n * if the argument is an array, we want to execute the fn on each entry\n * if it aint an array we don't want to do a thing.\n * this is used by all the methods that accept a single and array argument.\n * @param {*|Array} arg\n * @param {String} fn\n * @param {Object} [context]\n * @returns {Boolean}\n */\n\n function invokeArrayArg(arg, fn, context) {\n if (Array.isArray(arg)) {\n each(arg, context[fn], context);\n return true;\n }\n\n return false;\n }\n\n var STATE_POSSIBLE = 1;\n var STATE_BEGAN = 2;\n var STATE_CHANGED = 4;\n var STATE_ENDED = 8;\n var STATE_RECOGNIZED = STATE_ENDED;\n var STATE_CANCELLED = 16;\n var STATE_FAILED = 32;\n\n /**\n * @private\n * get a unique id\n * @returns {number} uniqueId\n */\n var _uniqueId = 1;\n function uniqueId() {\n return _uniqueId++;\n }\n\n /**\n * @private\n * get a recognizer by name if it is bound to a manager\n * @param {Recognizer|String} otherRecognizer\n * @param {Recognizer} recognizer\n * @returns {Recognizer}\n */\n function getRecognizerByNameIfManager(otherRecognizer, recognizer) {\n var manager = recognizer.manager;\n\n if (manager) {\n return manager.get(otherRecognizer);\n }\n\n return otherRecognizer;\n }\n\n /**\n * @private\n * get a usable string, used as event postfix\n * @param {constant} state\n * @returns {String} state\n */\n\n function stateStr(state) {\n if (state & STATE_CANCELLED) {\n return 'cancel';\n } else if (state & STATE_ENDED) {\n return 'end';\n } else if (state & STATE_CHANGED) {\n return 'move';\n } else if (state & STATE_BEGAN) {\n return 'start';\n }\n\n return '';\n }\n\n /**\n * @private\n * Recognizer flow explained; *\n * All recognizers have the initial state of POSSIBLE when a input session starts.\n * The definition of a input session is from the first input until the last input, with all it's movement in it. *\n * Example session for mouse-input: mousedown -> mousemove -> mouseup\n *\n * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed\n * which determines with state it should be.\n *\n * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to\n * POSSIBLE to give it another change on the next cycle.\n *\n * Possible\n * |\n * +-----+---------------+\n * | |\n * +-----+-----+ |\n * | | |\n * Failed Cancelled |\n * +-------+------+\n * | |\n * Recognized Began\n * |\n * Changed\n * |\n * Ended/Recognized\n */\n\n /**\n * @private\n * Recognizer\n * Every recognizer needs to extend from this class.\n * @constructor\n * @param {Object} options\n */\n\n var Recognizer =\n /*#__PURE__*/\n function () {\n function Recognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n this.options = _extends({\n enable: true\n }, options);\n this.id = uniqueId();\n this.manager = null; // default is enable true\n\n this.state = STATE_POSSIBLE;\n this.simultaneous = {};\n this.requireFail = [];\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @return {Recognizer}\n */\n\n\n var _proto = Recognizer.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // also update the touchAction, in case something changed about the directions/enabled state\n\n this.manager && this.manager.touchAction.update();\n return this;\n };\n /**\n * @private\n * recognize simultaneous with an other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.recognizeWith = function recognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {\n return this;\n }\n\n var simultaneous = this.simultaneous;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (!simultaneous[otherRecognizer.id]) {\n simultaneous[otherRecognizer.id] = otherRecognizer;\n otherRecognizer.recognizeWith(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the simultaneous link. it doesnt remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRecognizeWith = function dropRecognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n delete this.simultaneous[otherRecognizer.id];\n return this;\n };\n /**\n * @private\n * recognizer can only run when an other is failing\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.requireFailure = function requireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {\n return this;\n }\n\n var requireFail = this.requireFail;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (inArray(requireFail, otherRecognizer) === -1) {\n requireFail.push(otherRecognizer);\n otherRecognizer.requireFailure(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the requireFailure link. it does not remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRequireFailure = function dropRequireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n var index = inArray(this.requireFail, otherRecognizer);\n\n if (index > -1) {\n this.requireFail.splice(index, 1);\n }\n\n return this;\n };\n /**\n * @private\n * has require failures boolean\n * @returns {boolean}\n */\n\n\n _proto.hasRequireFailures = function hasRequireFailures() {\n return this.requireFail.length > 0;\n };\n /**\n * @private\n * if the recognizer can recognize simultaneous with an other recognizer\n * @param {Recognizer} otherRecognizer\n * @returns {Boolean}\n */\n\n\n _proto.canRecognizeWith = function canRecognizeWith(otherRecognizer) {\n return !!this.simultaneous[otherRecognizer.id];\n };\n /**\n * @private\n * You should use `tryEmit` instead of `emit` directly to check\n * that all the needed recognizers has failed before emitting.\n * @param {Object} input\n */\n\n\n _proto.emit = function emit(input) {\n var self = this;\n var state = this.state;\n\n function emit(event) {\n self.manager.emit(event, input);\n } // 'panstart' and 'panmove'\n\n\n if (state < STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n\n emit(self.options.event); // simple 'eventName' events\n\n if (input.additionalEvent) {\n // additional event(panleft, panright, pinchin, pinchout...)\n emit(input.additionalEvent);\n } // panend and pancancel\n\n\n if (state >= STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n };\n /**\n * @private\n * Check that all the require failure recognizers has failed,\n * if true, it emits a gesture event,\n * otherwise, setup the state to FAILED.\n * @param {Object} input\n */\n\n\n _proto.tryEmit = function tryEmit(input) {\n if (this.canEmit()) {\n return this.emit(input);\n } // it's failing anyway\n\n\n this.state = STATE_FAILED;\n };\n /**\n * @private\n * can we emit?\n * @returns {boolean}\n */\n\n\n _proto.canEmit = function canEmit() {\n var i = 0;\n\n while (i < this.requireFail.length) {\n if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {\n return false;\n }\n\n i++;\n }\n\n return true;\n };\n /**\n * @private\n * update the recognizer\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n // make a new copy of the inputData\n // so we can change the inputData without messing up the other recognizers\n var inputDataClone = assign$1({}, inputData); // is is enabled and allow recognizing?\n\n if (!boolOrFn(this.options.enable, [this, inputDataClone])) {\n this.reset();\n this.state = STATE_FAILED;\n return;\n } // reset when we've reached the end\n\n\n if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {\n this.state = STATE_POSSIBLE;\n }\n\n this.state = this.process(inputDataClone); // the recognizer has recognized a gesture\n // so trigger an event\n\n if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {\n this.tryEmit(inputDataClone);\n }\n };\n /**\n * @private\n * return the state of the recognizer\n * the actual recognizing happens in this method\n * @virtual\n * @param {Object} inputData\n * @returns {constant} STATE\n */\n\n /* jshint ignore:start */\n\n\n _proto.process = function process(inputData) {};\n /* jshint ignore:end */\n\n /**\n * @private\n * return the preferred touch-action\n * @virtual\n * @returns {Array}\n */\n\n\n _proto.getTouchAction = function getTouchAction() {};\n /**\n * @private\n * called when the gesture isn't allowed to recognize\n * like when another is being recognized or it is disabled\n * @virtual\n */\n\n\n _proto.reset = function reset() {};\n\n return Recognizer;\n }();\n\n /**\n * @private\n * A tap is recognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur\n * between the given interval and position. The delay option can be used to recognize multi-taps without firing\n * a single tap.\n *\n * The eventData from the emitted event contains the property `tapCount`, which contains the amount of\n * multi-taps being recognized.\n * @constructor\n * @extends Recognizer\n */\n\n var TapRecognizer =\n /*#__PURE__*/\n function (_Recognizer) {\n _inheritsLoose(TapRecognizer, _Recognizer);\n\n function TapRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'tap',\n pointers: 1,\n taps: 1,\n interval: 300,\n // max time between the multi-tap taps\n time: 250,\n // max time of the pointer to be down (like finger on the screen)\n threshold: 9,\n // a minimal movement is ok, but keep it low\n posThreshold: 10\n }, options)) || this; // previous time and center,\n // used for tap counting\n\n _this.pTime = false;\n _this.pCenter = false;\n _this._timer = null;\n _this._input = null;\n _this.count = 0;\n return _this;\n }\n\n var _proto = TapRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_MANIPULATION];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTouchTime = input.deltaTime < options.time;\n this.reset();\n\n if (input.eventType & INPUT_START && this.count === 0) {\n return this.failTimeout();\n } // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n\n if (validMovement && validTouchTime && validPointers) {\n if (input.eventType !== INPUT_END) {\n return this.failTimeout();\n }\n\n var validInterval = this.pTime ? input.timeStamp - this.pTime < options.interval : true;\n var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;\n this.pTime = input.timeStamp;\n this.pCenter = input.center;\n\n if (!validMultiTap || !validInterval) {\n this.count = 1;\n } else {\n this.count += 1;\n }\n\n this._input = input; // if tap count matches we have recognized it,\n // else it has began recognizing...\n\n var tapCount = this.count % options.taps;\n\n if (tapCount === 0) {\n // no failing requirements, immediately trigger the tap event\n // or wait as long as the multitap interval to trigger\n if (!this.hasRequireFailures()) {\n return STATE_RECOGNIZED;\n } else {\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.interval);\n return STATE_BEGAN;\n }\n }\n }\n\n return STATE_FAILED;\n };\n\n _proto.failTimeout = function failTimeout() {\n var _this3 = this;\n\n this._timer = setTimeout(function () {\n _this3.state = STATE_FAILED;\n }, this.options.interval);\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit() {\n if (this.state === STATE_RECOGNIZED) {\n this._input.tapCount = this.count;\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return TapRecognizer;\n }(Recognizer);\n\n /**\n * @private\n * This recognizer is just used as a base for the simple attribute recognizers.\n * @constructor\n * @extends Recognizer\n */\n\n var AttrRecognizer =\n /*#__PURE__*/\n function (_Recognizer) {\n _inheritsLoose(AttrRecognizer, _Recognizer);\n\n function AttrRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _Recognizer.call(this, _extends({\n pointers: 1\n }, options)) || this;\n }\n /**\n * @private\n * Used to check if it the recognizer receives valid input, like input.distance > 10.\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {Boolean} recognized\n */\n\n\n var _proto = AttrRecognizer.prototype;\n\n _proto.attrTest = function attrTest(input) {\n var optionPointers = this.options.pointers;\n return optionPointers === 0 || input.pointers.length === optionPointers;\n };\n /**\n * @private\n * Process the input and return the state for the recognizer\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {*} State\n */\n\n\n _proto.process = function process(input) {\n var state = this.state;\n var eventType = input.eventType;\n var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);\n var isValid = this.attrTest(input); // on cancel input and we've recognized before, return STATE_CANCELLED\n\n if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {\n return state | STATE_CANCELLED;\n } else if (isRecognized || isValid) {\n if (eventType & INPUT_END) {\n return state | STATE_ENDED;\n } else if (!(state & STATE_BEGAN)) {\n return STATE_BEGAN;\n }\n\n return state | STATE_CHANGED;\n }\n\n return STATE_FAILED;\n };\n\n return AttrRecognizer;\n }(Recognizer);\n\n /**\n * @private\n * direction cons to string\n * @param {constant} direction\n * @returns {String}\n */\n\n function directionStr(direction) {\n if (direction === DIRECTION_DOWN) {\n return 'down';\n } else if (direction === DIRECTION_UP) {\n return 'up';\n } else if (direction === DIRECTION_LEFT) {\n return 'left';\n } else if (direction === DIRECTION_RIGHT) {\n return 'right';\n }\n\n return '';\n }\n\n /**\n * @private\n * Pan\n * Recognized when the pointer is down and moved in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\n var PanRecognizer =\n /*#__PURE__*/\n function (_AttrRecognizer) {\n _inheritsLoose(PanRecognizer, _AttrRecognizer);\n\n function PanRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _AttrRecognizer.call(this, _extends({\n event: 'pan',\n threshold: 10,\n pointers: 1,\n direction: DIRECTION_ALL\n }, options)) || this;\n _this.pX = null;\n _this.pY = null;\n return _this;\n }\n\n var _proto = PanRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n var direction = this.options.direction;\n var actions = [];\n\n if (direction & DIRECTION_HORIZONTAL) {\n actions.push(TOUCH_ACTION_PAN_Y);\n }\n\n if (direction & DIRECTION_VERTICAL) {\n actions.push(TOUCH_ACTION_PAN_X);\n }\n\n return actions;\n };\n\n _proto.directionTest = function directionTest(input) {\n var options = this.options;\n var hasMoved = true;\n var distance = input.distance;\n var direction = input.direction;\n var x = input.deltaX;\n var y = input.deltaY; // lock to axis?\n\n if (!(direction & options.direction)) {\n if (options.direction & DIRECTION_HORIZONTAL) {\n direction = x === 0 ? DIRECTION_NONE : x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n hasMoved = x !== this.pX;\n distance = Math.abs(input.deltaX);\n } else {\n direction = y === 0 ? DIRECTION_NONE : y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n hasMoved = y !== this.pY;\n distance = Math.abs(input.deltaY);\n }\n }\n\n input.direction = direction;\n return hasMoved && distance > options.threshold && direction & options.direction;\n };\n\n _proto.attrTest = function attrTest(input) {\n return AttrRecognizer.prototype.attrTest.call(this, input) && ( // replace with a super call\n this.state & STATE_BEGAN || !(this.state & STATE_BEGAN) && this.directionTest(input));\n };\n\n _proto.emit = function emit(input) {\n this.pX = input.deltaX;\n this.pY = input.deltaY;\n var direction = directionStr(input.direction);\n\n if (direction) {\n input.additionalEvent = this.options.event + direction;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PanRecognizer;\n }(AttrRecognizer);\n\n /**\n * @private\n * Swipe\n * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\n var SwipeRecognizer =\n /*#__PURE__*/\n function (_AttrRecognizer) {\n _inheritsLoose(SwipeRecognizer, _AttrRecognizer);\n\n function SwipeRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'swipe',\n threshold: 10,\n velocity: 0.3,\n direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,\n pointers: 1\n }, options)) || this;\n }\n\n var _proto = SwipeRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return PanRecognizer.prototype.getTouchAction.call(this);\n };\n\n _proto.attrTest = function attrTest(input) {\n var direction = this.options.direction;\n var velocity;\n\n if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {\n velocity = input.overallVelocity;\n } else if (direction & DIRECTION_HORIZONTAL) {\n velocity = input.overallVelocityX;\n } else if (direction & DIRECTION_VERTICAL) {\n velocity = input.overallVelocityY;\n }\n\n return _AttrRecognizer.prototype.attrTest.call(this, input) && direction & input.offsetDirection && input.distance > this.options.threshold && input.maxPointers === this.options.pointers && abs(velocity) > this.options.velocity && input.eventType & INPUT_END;\n };\n\n _proto.emit = function emit(input) {\n var direction = directionStr(input.offsetDirection);\n\n if (direction) {\n this.manager.emit(this.options.event + direction, input);\n }\n\n this.manager.emit(this.options.event, input);\n };\n\n return SwipeRecognizer;\n }(AttrRecognizer);\n\n /**\n * @private\n * Pinch\n * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).\n * @constructor\n * @extends AttrRecognizer\n */\n\n var PinchRecognizer =\n /*#__PURE__*/\n function (_AttrRecognizer) {\n _inheritsLoose(PinchRecognizer, _AttrRecognizer);\n\n function PinchRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'pinch',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = PinchRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n _proto.emit = function emit(input) {\n if (input.scale !== 1) {\n var inOut = input.scale < 1 ? 'in' : 'out';\n input.additionalEvent = this.options.event + inOut;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PinchRecognizer;\n }(AttrRecognizer);\n\n /**\n * @private\n * Rotate\n * Recognized when two or more pointer are moving in a circular motion.\n * @constructor\n * @extends AttrRecognizer\n */\n\n var RotateRecognizer =\n /*#__PURE__*/\n function (_AttrRecognizer) {\n _inheritsLoose(RotateRecognizer, _AttrRecognizer);\n\n function RotateRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'rotate',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = RotateRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n return RotateRecognizer;\n }(AttrRecognizer);\n\n /**\n * @private\n * Press\n * Recognized when the pointer is down for x ms without any movement.\n * @constructor\n * @extends Recognizer\n */\n\n var PressRecognizer =\n /*#__PURE__*/\n function (_Recognizer) {\n _inheritsLoose(PressRecognizer, _Recognizer);\n\n function PressRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'press',\n pointers: 1,\n time: 251,\n // minimal time of the pointer to be pressed\n threshold: 9\n }, options)) || this;\n _this._timer = null;\n _this._input = null;\n return _this;\n }\n\n var _proto = PressRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_AUTO];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTime = input.deltaTime > options.time;\n this._input = input; // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n if (!validMovement || !validPointers || input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime) {\n this.reset();\n } else if (input.eventType & INPUT_START) {\n this.reset();\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.time);\n } else if (input.eventType & INPUT_END) {\n return STATE_RECOGNIZED;\n }\n\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit(input) {\n if (this.state !== STATE_RECOGNIZED) {\n return;\n }\n\n if (input && input.eventType & INPUT_END) {\n this.manager.emit(this.options.event + \"up\", input);\n } else {\n this._input.timeStamp = now();\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return PressRecognizer;\n }(Recognizer);\n\n var defaults = {\n /**\n * @private\n * set if DOM events are being triggered.\n * But this is slower and unused by simple implementations, so disabled by default.\n * @type {Boolean}\n * @default false\n */\n domEvents: false,\n\n /**\n * @private\n * The value for the touchAction property/fallback.\n * When set to `compute` it will magically set the correct value based on the added recognizers.\n * @type {String}\n * @default compute\n */\n touchAction: TOUCH_ACTION_COMPUTE,\n\n /**\n * @private\n * @type {Boolean}\n * @default true\n */\n enable: true,\n\n /**\n * @private\n * EXPERIMENTAL FEATURE -- can be removed/changed\n * Change the parent input target element.\n * If Null, then it is being set the to main element.\n * @type {Null|EventTarget}\n * @default null\n */\n inputTarget: null,\n\n /**\n * @private\n * force an input class\n * @type {Null|Function}\n * @default null\n */\n inputClass: null,\n\n /**\n * @private\n * Some CSS properties can be used to improve the working of Hammer.\n * Add them to this method and they will be set when creating a new Manager.\n * @namespace\n */\n cssProps: {\n /**\n * @private\n * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userSelect: \"none\",\n\n /**\n * @private\n * Disable the Windows Phone grippers when pressing an element.\n * @type {String}\n * @default 'none'\n */\n touchSelect: \"none\",\n\n /**\n * @private\n * Disables the default callout shown when you touch and hold a touch target.\n * On iOS, when you touch and hold a touch target such as a link, Safari displays\n * a callout containing information about the link. This property allows you to disable that callout.\n * @type {String}\n * @default 'none'\n */\n touchCallout: \"none\",\n\n /**\n * @private\n * Specifies whether zooming is enabled. Used by IE10>\n * @type {String}\n * @default 'none'\n */\n contentZooming: \"none\",\n\n /**\n * @private\n * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userDrag: \"none\",\n\n /**\n * @private\n * Overrides the highlight color shown when the user taps a link or a JavaScript\n * clickable element in iOS. This property obeys the alpha value, if specified.\n * @type {String}\n * @default 'rgba(0,0,0,0)'\n */\n tapHighlightColor: \"rgba(0,0,0,0)\"\n }\n };\n /**\n * @private\n * Default recognizer setup when calling `Hammer()`\n * When creating a new Manager these will be skipped.\n * This is separated with other defaults because of tree-shaking.\n * @type {Array}\n */\n\n var preset = [[RotateRecognizer, {\n enable: false\n }], [PinchRecognizer, {\n enable: false\n }, ['rotate']], [SwipeRecognizer, {\n direction: DIRECTION_HORIZONTAL\n }], [PanRecognizer, {\n direction: DIRECTION_HORIZONTAL\n }, ['swipe']], [TapRecognizer], [TapRecognizer, {\n event: 'doubletap',\n taps: 2\n }, ['tap']], [PressRecognizer]];\n\n var STOP = 1;\n var FORCED_STOP = 2;\n /**\n * @private\n * add/remove the css properties as defined in manager.options.cssProps\n * @param {Manager} manager\n * @param {Boolean} add\n */\n\n function toggleCssProps(manager, add) {\n var element = manager.element;\n\n if (!element.style) {\n return;\n }\n\n var prop;\n each(manager.options.cssProps, function (value, name) {\n prop = prefixed(element.style, name);\n\n if (add) {\n manager.oldCssProps[prop] = element.style[prop];\n element.style[prop] = value;\n } else {\n element.style[prop] = manager.oldCssProps[prop] || \"\";\n }\n });\n\n if (!add) {\n manager.oldCssProps = {};\n }\n }\n /**\n * @private\n * trigger dom event\n * @param {String} event\n * @param {Object} data\n */\n\n\n function triggerDomEvent(event, data) {\n var gestureEvent = document.createEvent(\"Event\");\n gestureEvent.initEvent(event, true, true);\n gestureEvent.gesture = data;\n data.target.dispatchEvent(gestureEvent);\n }\n /**\n * @private\n * Manager\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\n\n var Manager =\n /*#__PURE__*/\n function () {\n function Manager(element, options) {\n var _this = this;\n\n this.options = assign$1({}, defaults, options || {});\n this.options.inputTarget = this.options.inputTarget || element;\n this.handlers = {};\n this.session = {};\n this.recognizers = [];\n this.oldCssProps = {};\n this.element = element;\n this.input = createInputInstance(this);\n this.touchAction = new TouchAction(this, this.options.touchAction);\n toggleCssProps(this, true);\n each(this.options.recognizers, function (item) {\n var recognizer = _this.add(new item[0](item[1]));\n\n item[2] && recognizer.recognizeWith(item[2]);\n item[3] && recognizer.requireFailure(item[3]);\n }, this);\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @returns {Manager}\n */\n\n\n var _proto = Manager.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // Options that need a little more setup\n\n if (options.touchAction) {\n this.touchAction.update();\n }\n\n if (options.inputTarget) {\n // Clean up existing event listeners and reinitialize\n this.input.destroy();\n this.input.target = options.inputTarget;\n this.input.init();\n }\n\n return this;\n };\n /**\n * @private\n * stop recognizing for this session.\n * This session will be discarded, when a new [input]start event is fired.\n * When forced, the recognizer cycle is stopped immediately.\n * @param {Boolean} [force]\n */\n\n\n _proto.stop = function stop(force) {\n this.session.stopped = force ? FORCED_STOP : STOP;\n };\n /**\n * @private\n * run the recognizers!\n * called by the inputHandler function on every movement of the pointers (touches)\n * it walks through all the recognizers and tries to detect the gesture that is being made\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n var session = this.session;\n\n if (session.stopped) {\n return;\n } // run the touch-action polyfill\n\n\n this.touchAction.preventDefaults(inputData);\n var recognizer;\n var recognizers = this.recognizers; // this holds the recognizer that is being recognized.\n // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED\n // if no recognizer is detecting a thing, it is set to `null`\n\n var curRecognizer = session.curRecognizer; // reset when the last recognizer is recognized\n // or when we're in a new session\n\n if (!curRecognizer || curRecognizer && curRecognizer.state & STATE_RECOGNIZED) {\n session.curRecognizer = null;\n curRecognizer = null;\n }\n\n var i = 0;\n\n while (i < recognizers.length) {\n recognizer = recognizers[i]; // find out if we are allowed try to recognize the input for this one.\n // 1. allow if the session is NOT forced stopped (see the .stop() method)\n // 2. allow if we still haven't recognized a gesture in this session, or the this recognizer is the one\n // that is being recognized.\n // 3. allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.\n // this can be setup with the `recognizeWith()` method on the recognizer.\n\n if (session.stopped !== FORCED_STOP && ( // 1\n !curRecognizer || recognizer === curRecognizer || // 2\n recognizer.canRecognizeWith(curRecognizer))) {\n // 3\n recognizer.recognize(inputData);\n } else {\n recognizer.reset();\n } // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the\n // current active recognizer. but only if we don't already have an active recognizer\n\n\n if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {\n session.curRecognizer = recognizer;\n curRecognizer = recognizer;\n }\n\n i++;\n }\n };\n /**\n * @private\n * get a recognizer by its event name.\n * @param {Recognizer|String} recognizer\n * @returns {Recognizer|Null}\n */\n\n\n _proto.get = function get(recognizer) {\n if (recognizer instanceof Recognizer) {\n return recognizer;\n }\n\n var recognizers = this.recognizers;\n\n for (var i = 0; i < recognizers.length; i++) {\n if (recognizers[i].options.event === recognizer) {\n return recognizers[i];\n }\n }\n\n return null;\n };\n /**\n * @private add a recognizer to the manager\n * existing recognizers with the same event name will be removed\n * @param {Recognizer} recognizer\n * @returns {Recognizer|Manager}\n */\n\n\n _proto.add = function add(recognizer) {\n if (invokeArrayArg(recognizer, \"add\", this)) {\n return this;\n } // remove existing\n\n\n var existing = this.get(recognizer.options.event);\n\n if (existing) {\n this.remove(existing);\n }\n\n this.recognizers.push(recognizer);\n recognizer.manager = this;\n this.touchAction.update();\n return recognizer;\n };\n /**\n * @private\n * remove a recognizer by name or instance\n * @param {Recognizer|String} recognizer\n * @returns {Manager}\n */\n\n\n _proto.remove = function remove(recognizer) {\n if (invokeArrayArg(recognizer, \"remove\", this)) {\n return this;\n }\n\n var targetRecognizer = this.get(recognizer); // let's make sure this recognizer exists\n\n if (recognizer) {\n var recognizers = this.recognizers;\n var index = inArray(recognizers, targetRecognizer);\n\n if (index !== -1) {\n recognizers.splice(index, 1);\n this.touchAction.update();\n }\n }\n\n return this;\n };\n /**\n * @private\n * bind event\n * @param {String} events\n * @param {Function} handler\n * @returns {EventEmitter} this\n */\n\n\n _proto.on = function on(events, handler) {\n if (events === undefined || handler === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n });\n return this;\n };\n /**\n * @private unbind event, leave emit blank to remove all handlers\n * @param {String} events\n * @param {Function} [handler]\n * @returns {EventEmitter} this\n */\n\n\n _proto.off = function off(events, handler) {\n if (events === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n if (!handler) {\n delete handlers[event];\n } else {\n handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);\n }\n });\n return this;\n };\n /**\n * @private emit event to the listeners\n * @param {String} event\n * @param {Object} data\n */\n\n\n _proto.emit = function emit(event, data) {\n // we also want to trigger dom events\n if (this.options.domEvents) {\n triggerDomEvent(event, data);\n } // no handlers, so skip it all\n\n\n var handlers = this.handlers[event] && this.handlers[event].slice();\n\n if (!handlers || !handlers.length) {\n return;\n }\n\n data.type = event;\n\n data.preventDefault = function () {\n data.srcEvent.preventDefault();\n };\n\n var i = 0;\n\n while (i < handlers.length) {\n handlers[i](data);\n i++;\n }\n };\n /**\n * @private\n * destroy the manager and unbinds all events\n * it doesn't unbind dom events, that is the user own responsibility\n */\n\n\n _proto.destroy = function destroy() {\n this.element && toggleCssProps(this, false);\n this.handlers = {};\n this.session = {};\n this.input.destroy();\n this.element = null;\n };\n\n return Manager;\n }();\n\n var SINGLE_TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n };\n var SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';\n var SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';\n /**\n * @private\n * Touch events input\n * @constructor\n * @extends Input\n */\n\n var SingleTouchInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(SingleTouchInput, _Input);\n\n function SingleTouchInput() {\n var _this;\n\n var proto = SingleTouchInput.prototype;\n proto.evTarget = SINGLE_TOUCH_TARGET_EVENTS;\n proto.evWin = SINGLE_TOUCH_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.started = false;\n return _this;\n }\n\n var _proto = SingleTouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = SINGLE_TOUCH_INPUT_MAP[ev.type]; // should we handle the touch events?\n\n if (type === INPUT_START) {\n this.started = true;\n }\n\n if (!this.started) {\n return;\n }\n\n var touches = normalizeSingleTouches.call(this, ev, type); // when done, reset the started state\n\n if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {\n this.started = false;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return SingleTouchInput;\n }(Input);\n\n function normalizeSingleTouches(ev, type) {\n var all = toArray(ev.touches);\n var changed = toArray(ev.changedTouches);\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n all = uniqueArray(all.concat(changed), 'identifier', true);\n }\n\n return [all, changed];\n }\n\n /**\n * @private\n * wrap a method with a deprecation warning and stack trace\n * @param {Function} method\n * @param {String} name\n * @param {String} message\n * @returns {Function} A new function wrapping the supplied method.\n */\n function deprecate(method, name, message) {\n var deprecationMessage = \"DEPRECATED METHOD: \" + name + \"\\n\" + message + \" AT \\n\";\n return function () {\n var e = new Error('get-stack-trace');\n var stack = e && e.stack ? e.stack.replace(/^[^\\(]+?[\\n$]/gm, '').replace(/^\\s+at\\s+/gm, '').replace(/^Object.\\s*\\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';\n var log = window.console && (window.console.warn || window.console.log);\n\n if (log) {\n log.call(window.console, deprecationMessage, stack);\n }\n\n return method.apply(this, arguments);\n };\n }\n\n /**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} dest\n * @param {Object} src\n * @param {Boolean} [merge=false]\n * @returns {Object} dest\n */\n\n var extend = deprecate(function (dest, src, merge) {\n var keys = Object.keys(src);\n var i = 0;\n\n while (i < keys.length) {\n if (!merge || merge && dest[keys[i]] === undefined) {\n dest[keys[i]] = src[keys[i]];\n }\n\n i++;\n }\n\n return dest;\n }, 'extend', 'Use `assign`.');\n\n /**\n * @private\n * merge the values from src in the dest.\n * means that properties that exist in dest will not be overwritten by src\n * @param {Object} dest\n * @param {Object} src\n * @returns {Object} dest\n */\n\n var merge$1 = deprecate(function (dest, src) {\n return extend(dest, src, true);\n }, 'merge', 'Use `assign`.');\n\n /**\n * @private\n * simple class inheritance\n * @param {Function} child\n * @param {Function} base\n * @param {Object} [properties]\n */\n\n function inherit(child, base, properties) {\n var baseP = base.prototype;\n var childP;\n childP = child.prototype = Object.create(baseP);\n childP.constructor = child;\n childP._super = baseP;\n\n if (properties) {\n assign$1(childP, properties);\n }\n }\n\n /**\n * @private\n * simple function bind\n * @param {Function} fn\n * @param {Object} context\n * @returns {Function}\n */\n function bindFn(fn, context) {\n return function boundFn() {\n return fn.apply(context, arguments);\n };\n }\n\n /**\n * @private\n * Simple way to create a manager with a default set of recognizers.\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\n var Hammer =\n /*#__PURE__*/\n function () {\n var Hammer =\n /**\n * @private\n * @const {string}\n */\n function Hammer(element, options) {\n if (options === void 0) {\n options = {};\n }\n\n return new Manager(element, _extends({\n recognizers: preset.concat()\n }, options));\n };\n\n Hammer.VERSION = \"2.0.17-rc\";\n Hammer.DIRECTION_ALL = DIRECTION_ALL;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.DIRECTION_LEFT = DIRECTION_LEFT;\n Hammer.DIRECTION_RIGHT = DIRECTION_RIGHT;\n Hammer.DIRECTION_UP = DIRECTION_UP;\n Hammer.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;\n Hammer.DIRECTION_VERTICAL = DIRECTION_VERTICAL;\n Hammer.DIRECTION_NONE = DIRECTION_NONE;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.INPUT_START = INPUT_START;\n Hammer.INPUT_MOVE = INPUT_MOVE;\n Hammer.INPUT_END = INPUT_END;\n Hammer.INPUT_CANCEL = INPUT_CANCEL;\n Hammer.STATE_POSSIBLE = STATE_POSSIBLE;\n Hammer.STATE_BEGAN = STATE_BEGAN;\n Hammer.STATE_CHANGED = STATE_CHANGED;\n Hammer.STATE_ENDED = STATE_ENDED;\n Hammer.STATE_RECOGNIZED = STATE_RECOGNIZED;\n Hammer.STATE_CANCELLED = STATE_CANCELLED;\n Hammer.STATE_FAILED = STATE_FAILED;\n Hammer.Manager = Manager;\n Hammer.Input = Input;\n Hammer.TouchAction = TouchAction;\n Hammer.TouchInput = TouchInput;\n Hammer.MouseInput = MouseInput;\n Hammer.PointerEventInput = PointerEventInput;\n Hammer.TouchMouseInput = TouchMouseInput;\n Hammer.SingleTouchInput = SingleTouchInput;\n Hammer.Recognizer = Recognizer;\n Hammer.AttrRecognizer = AttrRecognizer;\n Hammer.Tap = TapRecognizer;\n Hammer.Pan = PanRecognizer;\n Hammer.Swipe = SwipeRecognizer;\n Hammer.Pinch = PinchRecognizer;\n Hammer.Rotate = RotateRecognizer;\n Hammer.Press = PressRecognizer;\n Hammer.on = addEventListeners;\n Hammer.off = removeEventListeners;\n Hammer.each = each;\n Hammer.merge = merge$1;\n Hammer.extend = extend;\n Hammer.bindFn = bindFn;\n Hammer.assign = assign$1;\n Hammer.inherit = inherit;\n Hammer.bindFn = bindFn;\n Hammer.prefixed = prefixed;\n Hammer.toArray = toArray;\n Hammer.inArray = inArray;\n Hammer.uniqueArray = uniqueArray;\n Hammer.splitStr = splitStr;\n Hammer.boolOrFn = boolOrFn;\n Hammer.hasParent = hasParent;\n Hammer.addEventListeners = addEventListeners;\n Hammer.removeEventListeners = removeEventListeners;\n Hammer.defaults = assign$1({}, defaults, {\n preset: preset\n });\n return Hammer;\n }();\n\n var RealHammer = Hammer;\n\n function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n function _unsupportedIterableToArray$3(o, minLen) { var _context15; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$3(o, minLen); var n = _sliceInstanceProperty(_context15 = Object.prototype.toString.call(o)).call(_context15, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }\n function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n /**\r\n * Use this symbol to delete properies in deepObjectAssign.\r\n */\n var DELETE = _Symbol(\"DELETE\");\n /**\r\n * Pure version of deepObjectAssign, it doesn't modify any of it's arguments.\r\n *\r\n * @param base - The base object that fullfils the whole interface T.\r\n * @param updates - Updates that may change or delete props.\r\n * @returns A brand new instance with all the supplied objects deeply merged.\r\n */\n function pureDeepObjectAssign(base) {\n var _context;\n for (var _len = arguments.length, updates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n updates[_key - 1] = arguments[_key];\n }\n return deepObjectAssign.apply(void 0, _concatInstanceProperty(_context = [{}, base]).call(_context, updates));\n }\n /**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\n function deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n return merged;\n }\n /**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @remarks\r\n * This doesn't strip the DELETE symbols so they may end up in the final object.\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\n function deepObjectAssignNonentry() {\n for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n values[_key2] = arguments[_key2];\n }\n if (values.length < 2) {\n return values[0];\n } else if (values.length > 2) {\n var _context2;\n return deepObjectAssignNonentry.apply(void 0, _concatInstanceProperty(_context2 = [deepObjectAssign(values[0], values[1])]).call(_context2, _toConsumableArray(_sliceInstanceProperty(values).call(values, 2))));\n }\n var a = values[0];\n var b = values[1];\n if (a instanceof Date && b instanceof Date) {\n a.setTime(b.getTime());\n return a;\n }\n var _iterator = _createForOfIteratorHelper$3(_Reflect$ownKeys(b)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var prop = _step.value;\n if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;else if (b[prop] === DELETE) {\n delete a[prop];\n } else if (a[prop] !== null && b[prop] !== null && typeof a[prop] === \"object\" && typeof b[prop] === \"object\" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {\n a[prop] = deepObjectAssignNonentry(a[prop], b[prop]);\n } else {\n a[prop] = clone(b[prop]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return a;\n }\n /**\r\n * Deep clone given object or array. In case of primitive simply return.\r\n *\r\n * @param a - Anything.\r\n * @returns Deep cloned object/array or unchanged a.\r\n */\n function clone(a) {\n if (_Array$isArray(a)) {\n return _mapInstanceProperty(a).call(a, function (value) {\n return clone(value);\n });\n } else if (typeof a === \"object\" && a !== null) {\n if (a instanceof Date) {\n return new Date(a.getTime());\n }\n return deepObjectAssignNonentry({}, a);\n } else {\n return a;\n }\n }\n /**\r\n * Strip DELETE from given object.\r\n *\r\n * @param a - Object which may contain DELETE but won't after this is executed.\r\n */\n function stripDelete(a) {\n for (var _i = 0, _Object$keys$1 = _Object$keys(a); _i < _Object$keys$1.length; _i++) {\n var prop = _Object$keys$1[_i];\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (typeof a[prop] === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n }\n\n /**\n * Setup a mock hammer.js object, for unit testing.\n *\n * Inspiration: https://github.com/uber/deck.gl/pull/658\n *\n * @returns {{on: noop, off: noop, destroy: noop, emit: noop, get: get}}\n */\n function hammerMock() {\n var noop = function noop() {};\n return {\n on: noop,\n off: noop,\n destroy: noop,\n emit: noop,\n get() {\n return {\n set: noop\n };\n }\n };\n }\n var Hammer$1 = typeof window !== \"undefined\" ? window.Hammer || RealHammer : function () {\n // hammer.js is only available in a browser, not in node.js. Replacing it with a mock object.\n return hammerMock();\n };\n\n /**\n * Turn an element into an clickToUse element.\n * When not active, the element has a transparent overlay. When the overlay is\n * clicked, the mode is changed to active.\n * When active, the element is displayed with a blue border around it, and\n * the interactive contents of the element can be used. When clicked outside\n * the element, the elements mode is changed to inactive.\n *\n * @param {Element} container\n * @class Activator\n */\n function Activator$1(container) {\n var _this = this,\n _context3;\n this._cleanupQueue = [];\n this.active = false;\n this._dom = {\n container,\n overlay: document.createElement(\"div\")\n };\n this._dom.overlay.classList.add(\"vis-overlay\");\n this._dom.container.appendChild(this._dom.overlay);\n this._cleanupQueue.push(function () {\n _this._dom.overlay.parentNode.removeChild(_this._dom.overlay);\n });\n var hammer = Hammer$1(this._dom.overlay);\n hammer.on(\"tap\", _bindInstanceProperty$1(_context3 = this._onTapOverlay).call(_context3, this));\n this._cleanupQueue.push(function () {\n hammer.destroy();\n // FIXME: cleaning up hammer instances doesn't work (Timeline not removed\n // from memory)\n });\n\n // block all touch events (except tap)\n var events = [\"tap\", \"doubletap\", \"press\", \"pinch\", \"pan\", \"panstart\", \"panmove\", \"panend\"];\n _forEachInstanceProperty(events).call(events, function (event) {\n hammer.on(event, function (event) {\n event.srcEvent.stopPropagation();\n });\n });\n\n // attach a click event to the window, in order to deactivate when clicking outside the timeline\n if (document && document.body) {\n this._onClick = function (event) {\n if (!_hasParent(event.target, container)) {\n _this.deactivate();\n }\n };\n document.body.addEventListener(\"click\", this._onClick);\n this._cleanupQueue.push(function () {\n document.body.removeEventListener(\"click\", _this._onClick);\n });\n }\n\n // prepare escape key listener for deactivating when active\n this._escListener = function (event) {\n if (\"key\" in event ? event.key === \"Escape\" : event.keyCode === 27 /* the keyCode is for IE11 */) {\n _this.deactivate();\n }\n };\n }\n\n // turn into an event emitter\n Emitter(Activator$1.prototype);\n\n // The currently active activator\n Activator$1.current = null;\n\n /**\n * Destroy the activator. Cleans up all created DOM and event listeners\n */\n Activator$1.prototype.destroy = function () {\n var _context4, _context5;\n this.deactivate();\n var _iterator2 = _createForOfIteratorHelper$3(_reverseInstanceProperty(_context4 = _spliceInstanceProperty(_context5 = this._cleanupQueue).call(_context5, 0)).call(_context4)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var callback = _step2.value;\n callback();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n };\n\n /**\n * Activate the element\n * Overlay is hidden, element is decorated with a blue shadow border\n */\n Activator$1.prototype.activate = function () {\n // we allow only one active activator at a time\n if (Activator$1.current) {\n Activator$1.current.deactivate();\n }\n Activator$1.current = this;\n this.active = true;\n this._dom.overlay.style.display = \"none\";\n this._dom.container.classList.add(\"vis-active\");\n this.emit(\"change\");\n this.emit(\"activate\");\n\n // ugly hack: bind ESC after emitting the events, as the Network rebinds all\n // keyboard events on a 'change' event\n document.body.addEventListener(\"keydown\", this._escListener);\n };\n\n /**\n * Deactivate the element\n * Overlay is displayed on top of the element\n */\n Activator$1.prototype.deactivate = function () {\n this.active = false;\n this._dom.overlay.style.display = \"block\";\n this._dom.container.classList.remove(\"vis-active\");\n document.body.removeEventListener(\"keydown\", this._escListener);\n this.emit(\"change\");\n this.emit(\"deactivate\");\n };\n\n /**\n * Handle a tap event: activate the container\n *\n * @param {Event} event The event\n * @private\n */\n Activator$1.prototype._onTapOverlay = function (event) {\n // activate the container\n this.activate();\n event.srcEvent.stopPropagation();\n };\n\n /**\n * Test whether the element has the requested parent element somewhere in\n * its chain of parent nodes.\n *\n * @param {HTMLElement} element\n * @param {HTMLElement} parent\n * @returns {boolean} Returns true when the parent is found somewhere in the\n * chain of parent nodes.\n * @private\n */\n function _hasParent(element, parent) {\n while (element) {\n if (element === parent) {\n return true;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n var isConstructor = isConstructor$4;\n var tryToString$1 = tryToString$6;\n\n var $TypeError$3 = TypeError;\n\n // `Assert: IsConstructor(argument) is true`\n var aConstructor$2 = function (argument) {\n if (isConstructor(argument)) return argument;\n throw new $TypeError$3(tryToString$1(argument) + ' is not a constructor');\n };\n\n var $$k = _export;\n var getBuiltIn$4 = getBuiltIn$f;\n var apply$1 = functionApply;\n var bind$8 = functionBind;\n var aConstructor$1 = aConstructor$2;\n var anObject$3 = anObject$d;\n var isObject$6 = isObject$h;\n var create$5 = objectCreate;\n var fails$9 = fails$u;\n\n var nativeConstruct = getBuiltIn$4('Reflect', 'construct');\n var ObjectPrototype = Object.prototype;\n var push$2 = [].push;\n\n // `Reflect.construct` method\n // https://tc39.es/ecma262/#sec-reflect.construct\n // MS Edge supports only 2 arguments and argumentsList argument is optional\n // FF Nightly sets third argument as `new.target`, but does not create `this` from it\n var NEW_TARGET_BUG = fails$9(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n });\n\n var ARGS_BUG = !fails$9(function () {\n nativeConstruct(function () { /* empty */ });\n });\n\n var FORCED$2 = NEW_TARGET_BUG || ARGS_BUG;\n\n $$k({ target: 'Reflect', stat: true, forced: FORCED$2, sham: FORCED$2 }, {\n construct: function construct(Target, args /* , newTarget */) {\n aConstructor$1(Target);\n anObject$3(args);\n var newTarget = arguments.length < 3 ? Target : aConstructor$1(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target === newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n apply$1(push$2, $args, args);\n return new (apply$1(bind$8, Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create$5(isObject$6(proto) ? proto : ObjectPrototype);\n var result = apply$1(Target, instance, args);\n return isObject$6(result) ? result : instance;\n }\n });\n\n var path$8 = path$o;\n\n var construct$2 = path$8.Reflect.construct;\n\n var parent$u = construct$2;\n\n var construct$1 = parent$u;\n\n var construct = construct$1;\n\n var _Reflect$construct = /*@__PURE__*/getDefaultExportFromCjs(construct);\n\n var path$7 = path$o;\n\n var getOwnPropertySymbols$2 = path$7.Object.getOwnPropertySymbols;\n\n var parent$t = getOwnPropertySymbols$2;\n\n var getOwnPropertySymbols$1 = parent$t;\n\n var getOwnPropertySymbols = getOwnPropertySymbols$1;\n\n var _Object$getOwnPropertySymbols = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertySymbols);\n\n var getOwnPropertyDescriptor$4 = {exports: {}};\n\n var $$j = _export;\n var fails$8 = fails$u;\n var toIndexedObject$1 = toIndexedObject$a;\n var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;\n var DESCRIPTORS$5 = descriptors;\n\n var FORCED$1 = !DESCRIPTORS$5 || fails$8(function () { nativeGetOwnPropertyDescriptor(1); });\n\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n $$j({ target: 'Object', stat: true, forced: FORCED$1, sham: !DESCRIPTORS$5 }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject$1(it), key);\n }\n });\n\n var path$6 = path$o;\n\n var Object$2 = path$6.Object;\n\n var getOwnPropertyDescriptor$3 = getOwnPropertyDescriptor$4.exports = function getOwnPropertyDescriptor(it, key) {\n return Object$2.getOwnPropertyDescriptor(it, key);\n };\n\n if (Object$2.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$3.sham = true;\n\n var getOwnPropertyDescriptorExports = getOwnPropertyDescriptor$4.exports;\n\n var parent$s = getOwnPropertyDescriptorExports;\n\n var getOwnPropertyDescriptor$2 = parent$s;\n\n var getOwnPropertyDescriptor$1 = getOwnPropertyDescriptor$2;\n\n var _Object$getOwnPropertyDescriptor = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptor$1);\n\n var $$i = _export;\n var DESCRIPTORS$4 = descriptors;\n var ownKeys$2 = ownKeys$7;\n var toIndexedObject = toIndexedObject$a;\n var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;\n var createProperty = createProperty$6;\n\n // `Object.getOwnPropertyDescriptors` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n $$i({ target: 'Object', stat: true, sham: !DESCRIPTORS$4 }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;\n var keys = ownKeys$2(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n });\n\n var path$5 = path$o;\n\n var getOwnPropertyDescriptors$2 = path$5.Object.getOwnPropertyDescriptors;\n\n var parent$r = getOwnPropertyDescriptors$2;\n\n var getOwnPropertyDescriptors$1 = parent$r;\n\n var getOwnPropertyDescriptors = getOwnPropertyDescriptors$1;\n\n var _Object$getOwnPropertyDescriptors = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptors);\n\n var defineProperties$4 = {exports: {}};\n\n var $$h = _export;\n var DESCRIPTORS$3 = descriptors;\n var defineProperties$3 = objectDefineProperties.f;\n\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n // eslint-disable-next-line es/no-object-defineproperties -- safe\n $$h({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties$3, sham: !DESCRIPTORS$3 }, {\n defineProperties: defineProperties$3\n });\n\n var path$4 = path$o;\n\n var Object$1 = path$4.Object;\n\n var defineProperties$2 = defineProperties$4.exports = function defineProperties(T, D) {\n return Object$1.defineProperties(T, D);\n };\n\n if (Object$1.defineProperties.sham) defineProperties$2.sham = true;\n\n var definePropertiesExports = defineProperties$4.exports;\n\n var parent$q = definePropertiesExports;\n\n var defineProperties$1 = parent$q;\n\n var defineProperties = defineProperties$1;\n\n var _Object$defineProperties = /*@__PURE__*/getDefaultExportFromCjs(defineProperties);\n\n var defineProperty$2 = defineProperty$b;\n\n var _Object$defineProperty = /*@__PURE__*/getDefaultExportFromCjs(defineProperty$2);\n\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n }\n\n var parent$p = create$7;\n\n var create$4 = parent$p;\n\n var parent$o = create$4;\n\n var create$3 = parent$o;\n\n var create$2 = create$3;\n\n var _Object$create = /*@__PURE__*/getDefaultExportFromCjs(create$2);\n\n var $$g = _export;\n var setPrototypeOf$6 = objectSetPrototypeOf;\n\n // `Object.setPrototypeOf` method\n // https://tc39.es/ecma262/#sec-object.setprototypeof\n $$g({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf$6\n });\n\n var path$3 = path$o;\n\n var setPrototypeOf$5 = path$3.Object.setPrototypeOf;\n\n var parent$n = setPrototypeOf$5;\n\n var setPrototypeOf$4 = parent$n;\n\n var parent$m = setPrototypeOf$4;\n\n var setPrototypeOf$3 = parent$m;\n\n var parent$l = setPrototypeOf$3;\n\n var setPrototypeOf$2 = parent$l;\n\n var setPrototypeOf$1 = setPrototypeOf$2;\n\n var _Object$setPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(setPrototypeOf$1);\n\n var parent$k = bind$c;\n\n var bind$7 = parent$k;\n\n var parent$j = bind$7;\n\n var bind$6 = parent$j;\n\n var bind$5 = bind$6;\n\n var _bindInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(bind$5);\n\n function _setPrototypeOf(o, p) {\n var _context;\n _setPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$setPrototypeOf).call(_context) : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = _Object$create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n _Object$defineProperty$1(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n }\n\n function _possibleConstructorReturn(self, call) {\n if (call && (_typeof$1(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return _assertThisInitialized(self);\n }\n\n var parent$i = getPrototypeOf$4;\n\n var getPrototypeOf$3 = parent$i;\n\n var parent$h = getPrototypeOf$3;\n\n var getPrototypeOf$2 = parent$h;\n\n var getPrototypeOf$1 = getPrototypeOf$2;\n\n var _Object$getPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(getPrototypeOf$1);\n\n function _getPrototypeOf(o) {\n var _context;\n _getPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$getPrototypeOf).call(_context) : function _getPrototypeOf(o) {\n return o.__proto__ || _Object$getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n\n var regeneratorRuntime$1 = {exports: {}};\n\n var _typeof = {exports: {}};\n\n (function (module) {\n \tvar _Symbol = symbol$1;\n \tvar _Symbol$iterator = iterator$1;\n \tfunction _typeof(o) {\n \t \"@babel/helpers - typeof\";\n\n \t return (module.exports = _typeof = \"function\" == typeof _Symbol && \"symbol\" == typeof _Symbol$iterator ? function (o) {\n \t return typeof o;\n \t } : function (o) {\n \t return o && \"function\" == typeof _Symbol && o.constructor === _Symbol && o !== _Symbol.prototype ? \"symbol\" : typeof o;\n \t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n \t}\n \tmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports; \n } (_typeof));\n\n var _typeofExports = _typeof.exports;\n\n var parent$g = forEach$5;\n\n var forEach$3 = parent$g;\n\n var parent$f = forEach$3;\n\n var forEach$2 = parent$f;\n\n var forEach$1 = forEach$2;\n\n var hasOwn$5 = hasOwnProperty_1;\n var ownKeys$1 = ownKeys$7;\n var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;\n var definePropertyModule = objectDefineProperty;\n\n var copyConstructorProperties$1 = function (target, source, exceptions) {\n var keys = ownKeys$1(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n };\n\n var isObject$5 = isObject$h;\n var createNonEnumerableProperty$3 = createNonEnumerableProperty$9;\n\n // `InstallErrorCause` abstract operation\n // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\n var installErrorCause$1 = function (O, options) {\n if (isObject$5(options) && 'cause' in options) {\n createNonEnumerableProperty$3(O, 'cause', options.cause);\n }\n };\n\n var uncurryThis$2 = functionUncurryThis;\n\n var $Error$1 = Error;\n var replace = uncurryThis$2(''.replace);\n\n var TEST = (function (arg) { return String(new $Error$1(arg).stack); })('zxcasd');\n // eslint-disable-next-line redos/no-vulnerable -- safe\n var V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\n var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\n var errorStackClear = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error$1.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n };\n\n var fails$7 = fails$u;\n var createPropertyDescriptor$1 = createPropertyDescriptor$7;\n\n var errorStackInstallable = !fails$7(function () {\n var error = new Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));\n return error.stack !== 7;\n });\n\n var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;\n var clearErrorStack = errorStackClear;\n var ERROR_STACK_INSTALLABLE = errorStackInstallable;\n\n // non-standard V8\n var captureStackTrace = Error.captureStackTrace;\n\n var errorStackInstall = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n };\n\n var bind$4 = functionBindContext;\n var call$6 = functionCall;\n var anObject$2 = anObject$d;\n var tryToString = tryToString$6;\n var isArrayIteratorMethod = isArrayIteratorMethod$2;\n var lengthOfArrayLike$1 = lengthOfArrayLike$d;\n var isPrototypeOf$7 = objectIsPrototypeOf;\n var getIterator$6 = getIterator$8;\n var getIteratorMethod = getIteratorMethod$9;\n var iteratorClose = iteratorClose$2;\n\n var $TypeError$2 = TypeError;\n\n var Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n };\n\n var ResultPrototype = Result.prototype;\n\n var iterate$7 = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind$4(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject$2(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf$7(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator$6(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call$6(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf$7(ResultPrototype, result)) return result;\n } return new Result(false);\n };\n\n var toString$1 = toString$7;\n\n var normalizeStringArgument$1 = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString$1(argument);\n };\n\n var $$f = _export;\n var isPrototypeOf$6 = objectIsPrototypeOf;\n var getPrototypeOf = objectGetPrototypeOf;\n var setPrototypeOf = objectSetPrototypeOf;\n var copyConstructorProperties = copyConstructorProperties$1;\n var create$1 = objectCreate;\n var createNonEnumerableProperty$1 = createNonEnumerableProperty$9;\n var createPropertyDescriptor = createPropertyDescriptor$7;\n var installErrorCause = installErrorCause$1;\n var installErrorStack = errorStackInstall;\n var iterate$6 = iterate$7;\n var normalizeStringArgument = normalizeStringArgument$1;\n var wellKnownSymbol$3 = wellKnownSymbol$n;\n\n var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');\n var $Error = Error;\n var push$1 = [].push;\n\n var $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf$6(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create$1(AggregateErrorPrototype);\n createNonEnumerableProperty$1(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty$1(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate$6(errors, push$1, { that: errorsArray });\n createNonEnumerableProperty$1(that, 'errors', errorsArray);\n return that;\n };\n\n if (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\n else copyConstructorProperties($AggregateError, $Error, { name: true });\n\n var AggregateErrorPrototype = $AggregateError.prototype = create$1($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n });\n\n // `AggregateError` constructor\n // https://tc39.es/ecma262/#sec-aggregate-error-constructor\n $$f({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n });\n\n var getBuiltIn$3 = getBuiltIn$f;\n var defineBuiltInAccessor$1 = defineBuiltInAccessor$3;\n var wellKnownSymbol$2 = wellKnownSymbol$n;\n var DESCRIPTORS$2 = descriptors;\n\n var SPECIES$2 = wellKnownSymbol$2('species');\n\n var setSpecies$2 = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {\n defineBuiltInAccessor$1(Constructor, SPECIES$2, {\n configurable: true,\n get: function () { return this; }\n });\n }\n };\n\n var isPrototypeOf$5 = objectIsPrototypeOf;\n\n var $TypeError$1 = TypeError;\n\n var anInstance$3 = function (it, Prototype) {\n if (isPrototypeOf$5(Prototype, it)) return it;\n throw new $TypeError$1('Incorrect invocation');\n };\n\n var anObject$1 = anObject$d;\n var aConstructor = aConstructor$2;\n var isNullOrUndefined$2 = isNullOrUndefined$6;\n var wellKnownSymbol$1 = wellKnownSymbol$n;\n\n var SPECIES$1 = wellKnownSymbol$1('species');\n\n // `SpeciesConstructor` abstract operation\n // https://tc39.es/ecma262/#sec-speciesconstructor\n var speciesConstructor$2 = function (O, defaultConstructor) {\n var C = anObject$1(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined$2(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);\n };\n\n var userAgent$4 = engineUserAgent;\n\n // eslint-disable-next-line redos/no-vulnerable -- safe\n var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);\n\n var global$6 = global$p;\n var apply = functionApply;\n var bind$3 = functionBindContext;\n var isCallable$4 = isCallable$m;\n var hasOwn$4 = hasOwnProperty_1;\n var fails$6 = fails$u;\n var html = html$2;\n var arraySlice$1 = arraySlice$5;\n var createElement = documentCreateElement$1;\n var validateArgumentsLength = validateArgumentsLength$2;\n var IS_IOS$1 = engineIsIos;\n var IS_NODE$3 = engineIsNode;\n\n var set$3 = global$6.setImmediate;\n var clear = global$6.clearImmediate;\n var process$2 = global$6.process;\n var Dispatch = global$6.Dispatch;\n var Function$1 = global$6.Function;\n var MessageChannel = global$6.MessageChannel;\n var String$1 = global$6.String;\n var counter = 0;\n var queue$2 = {};\n var ONREADYSTATECHANGE = 'onreadystatechange';\n var $location, defer, channel, port;\n\n fails$6(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global$6.location;\n });\n\n var run = function (id) {\n if (hasOwn$4(queue$2, id)) {\n var fn = queue$2[id];\n delete queue$2[id];\n fn();\n }\n };\n\n var runner = function (id) {\n return function () {\n run(id);\n };\n };\n\n var eventListener = function (event) {\n run(event.data);\n };\n\n var globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);\n };\n\n // Node.js 0.9+ & IE10+ has setImmediate, otherwise:\n if (!set$3 || !clear) {\n set$3 = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable$4(handler) ? handler : Function$1(handler);\n var args = arraySlice$1(arguments, 1);\n queue$2[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue$2[id];\n };\n // Node.js 0.8-\n if (IS_NODE$3) {\n defer = function (id) {\n process$2.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS$1) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind$3(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global$6.addEventListener &&\n isCallable$4(global$6.postMessage) &&\n !global$6.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails$6(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global$6.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n }\n\n var task$1 = {\n set: set$3,\n clear: clear\n };\n\n var Queue$3 = function () {\n this.head = null;\n this.tail = null;\n };\n\n Queue$3.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n };\n\n var queue$1 = Queue$3;\n\n var userAgent$3 = engineUserAgent;\n\n var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';\n\n var userAgent$2 = engineUserAgent;\n\n var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);\n\n var global$5 = global$p;\n var bind$2 = functionBindContext;\n var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;\n var macrotask = task$1.set;\n var Queue$2 = queue$1;\n var IS_IOS = engineIsIos;\n var IS_IOS_PEBBLE = engineIsIosPebble;\n var IS_WEBOS_WEBKIT = engineIsWebosWebkit;\n var IS_NODE$2 = engineIsNode;\n\n var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;\n var document$2 = global$5.document;\n var process$1 = global$5.process;\n var Promise$1 = global$5.Promise;\n // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\n var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');\n var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n var notify$1, toggle, node, promise$5, then;\n\n // modern engines have queueMicrotask method\n if (!microtask$1) {\n var queue = new Queue$2();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify$1();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {\n toggle = true;\n node = document$2.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify$1 = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise$5 = Promise$1.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise$5.constructor = Promise$1;\n then = bind$2(promise$5.then, promise$5);\n notify$1 = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE$2) {\n notify$1 = function () {\n process$1.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind$2(macrotask, global$5);\n notify$1 = function () {\n macrotask(flush);\n };\n }\n\n microtask$1 = function (fn) {\n if (!queue.head) notify$1();\n queue.add(fn);\n };\n }\n\n var microtask_1 = microtask$1;\n\n var hostReportErrors$1 = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n };\n\n var perform$6 = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n };\n\n var global$4 = global$p;\n\n var promiseNativeConstructor = global$4.Promise;\n\n /* global Deno -- Deno case */\n var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n\n var IS_DENO$1 = engineIsDeno;\n var IS_NODE$1 = engineIsNode;\n\n var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1\n && typeof window == 'object'\n && typeof document == 'object';\n\n var global$3 = global$p;\n var NativePromiseConstructor$5 = promiseNativeConstructor;\n var isCallable$3 = isCallable$m;\n var isForced = isForced_1;\n var inspectSource = inspectSource$2;\n var wellKnownSymbol = wellKnownSymbol$n;\n var IS_BROWSER = engineIsBrowser;\n var IS_DENO = engineIsDeno;\n var V8_VERSION = engineV8Version;\n\n var NativePromisePrototype$2 = NativePromiseConstructor$5 && NativePromiseConstructor$5.prototype;\n var SPECIES = wellKnownSymbol('species');\n var SUBCLASSING = false;\n var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$3.PromiseRejectionEvent);\n\n var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$5);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$5);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (!(NativePromisePrototype$2['catch'] && NativePromisePrototype$2['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor$5(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;\n });\n\n var promiseConstructorDetection = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,\n SUBCLASSING: SUBCLASSING\n };\n\n var newPromiseCapability$2 = {};\n\n var aCallable$6 = aCallable$e;\n\n var $TypeError = TypeError;\n\n var PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable$6(resolve);\n this.reject = aCallable$6(reject);\n };\n\n // `NewPromiseCapability` abstract operation\n // https://tc39.es/ecma262/#sec-newpromisecapability\n newPromiseCapability$2.f = function (C) {\n return new PromiseCapability(C);\n };\n\n var $$e = _export;\n var IS_NODE = engineIsNode;\n var global$2 = global$p;\n var call$5 = functionCall;\n var defineBuiltIn$1 = defineBuiltIn$6;\n var setToStringTag$1 = setToStringTag$7;\n var setSpecies$1 = setSpecies$2;\n var aCallable$5 = aCallable$e;\n var isCallable$2 = isCallable$m;\n var isObject$4 = isObject$h;\n var anInstance$2 = anInstance$3;\n var speciesConstructor$1 = speciesConstructor$2;\n var task = task$1.set;\n var microtask = microtask_1;\n var hostReportErrors = hostReportErrors$1;\n var perform$5 = perform$6;\n var Queue$1 = queue$1;\n var InternalStateModule$2 = internalState;\n var NativePromiseConstructor$4 = promiseNativeConstructor;\n var PromiseConstructorDetection = promiseConstructorDetection;\n var newPromiseCapabilityModule$7 = newPromiseCapability$2;\n\n var PROMISE = 'Promise';\n var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;\n var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\n PromiseConstructorDetection.SUBCLASSING;\n var getInternalPromiseState = InternalStateModule$2.getterFor(PROMISE);\n var setInternalState$2 = InternalStateModule$2.set;\n var NativePromisePrototype$1 = NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;\n var PromiseConstructor = NativePromiseConstructor$4;\n var PromisePrototype = NativePromisePrototype$1;\n var TypeError$1 = global$2.TypeError;\n var document$1 = global$2.document;\n var process = global$2.process;\n var newPromiseCapability$1 = newPromiseCapabilityModule$7.f;\n var newGenericPromiseCapability = newPromiseCapability$1;\n\n var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);\n var UNHANDLED_REJECTION = 'unhandledrejection';\n var REJECTION_HANDLED = 'rejectionhandled';\n var PENDING = 0;\n var FULFILLED = 1;\n var REJECTED = 2;\n var HANDLED = 1;\n var UNHANDLED = 2;\n\n var Internal, OwnPromiseCapability, PromiseWrapper;\n\n // helpers\n var isThenable = function (it) {\n var then;\n return isObject$4(it) && isCallable$2(then = it.then) ? then : false;\n };\n\n var callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state === FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(new TypeError$1('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call$5(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n };\n\n var notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n };\n\n var dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document$1.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global$2.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n };\n\n var onUnhandled = function (state) {\n call$5(task, global$2, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform$5(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n };\n\n var isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n };\n\n var onHandleUnhandled = function (state) {\n call$5(task, global$2, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n };\n\n var bind$1 = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n };\n\n var internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n };\n\n var internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw new TypeError$1(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call$5(then, value,\n bind$1(internalResolve, wrapper, state),\n bind$1(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n };\n\n // constructor polyfill\n if (FORCED_PROMISE_CONSTRUCTOR$4) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance$2(this, PromisePrototype);\n aCallable$5(executor);\n call$5(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind$1(internalResolve, state), bind$1(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState$2(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue$1(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable$2(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state === PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind$1(internalResolve, state);\n this.reject = bind$1(internalReject, state);\n };\n\n newPromiseCapabilityModule$7.f = newPromiseCapability$1 = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n }\n\n $$e({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {\n Promise: PromiseConstructor\n });\n\n setToStringTag$1(PromiseConstructor, PROMISE, false, true);\n setSpecies$1(PROMISE);\n\n var NativePromiseConstructor$3 = promiseNativeConstructor;\n var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;\n var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;\n\n var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor$3.all(iterable).then(undefined, function () { /* empty */ });\n });\n\n var $$d = _export;\n var call$4 = functionCall;\n var aCallable$4 = aCallable$e;\n var newPromiseCapabilityModule$6 = newPromiseCapability$2;\n var perform$4 = perform$6;\n var iterate$5 = iterate$7;\n var PROMISE_STATICS_INCORRECT_ITERATION$3 = promiseStaticsIncorrectIteration;\n\n // `Promise.all` method\n // https://tc39.es/ecma262/#sec-promise.all\n $$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$3 }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$6.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$4(function () {\n var $promiseResolve = aCallable$4(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$5(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$4($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n });\n\n var $$c = _export;\n var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;\n var NativePromiseConstructor$2 = promiseNativeConstructor;\n\n NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;\n\n // `Promise.prototype.catch` method\n // https://tc39.es/ecma262/#sec-promise.prototype.catch\n $$c({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n\n var $$b = _export;\n var call$3 = functionCall;\n var aCallable$3 = aCallable$e;\n var newPromiseCapabilityModule$5 = newPromiseCapability$2;\n var perform$3 = perform$6;\n var iterate$4 = iterate$7;\n var PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;\n\n // `Promise.race` method\n // https://tc39.es/ecma262/#sec-promise.race\n $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$2 }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$5.f(C);\n var reject = capability.reject;\n var result = perform$3(function () {\n var $promiseResolve = aCallable$3(C.resolve);\n iterate$4(iterable, function (promise) {\n call$3($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n });\n\n var $$a = _export;\n var call$2 = functionCall;\n var newPromiseCapabilityModule$4 = newPromiseCapability$2;\n var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;\n\n // `Promise.reject` method\n // https://tc39.es/ecma262/#sec-promise.reject\n $$a({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule$4.f(this);\n call$2(capability.reject, undefined, r);\n return capability.promise;\n }\n });\n\n var anObject = anObject$d;\n var isObject$3 = isObject$h;\n var newPromiseCapability = newPromiseCapability$2;\n\n var promiseResolve$2 = function (C, x) {\n anObject(C);\n if (isObject$3(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n };\n\n var $$9 = _export;\n var getBuiltIn$2 = getBuiltIn$f;\n var IS_PURE = isPure;\n var NativePromiseConstructor$1 = promiseNativeConstructor;\n var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;\n var promiseResolve$1 = promiseResolve$2;\n\n var PromiseConstructorWrapper = getBuiltIn$2('Promise');\n var CHECK_WRAPPER = !FORCED_PROMISE_CONSTRUCTOR;\n\n // `Promise.resolve` method\n // https://tc39.es/ecma262/#sec-promise.resolve\n $$9({ target: 'Promise', stat: true, forced: IS_PURE }, {\n resolve: function resolve(x) {\n return promiseResolve$1(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor$1 : this, x);\n }\n });\n\n var $$8 = _export;\n var call$1 = functionCall;\n var aCallable$2 = aCallable$e;\n var newPromiseCapabilityModule$3 = newPromiseCapability$2;\n var perform$2 = perform$6;\n var iterate$3 = iterate$7;\n var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;\n\n // `Promise.allSettled` method\n // https://tc39.es/ecma262/#sec-promise.allsettled\n $$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$3.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$2(function () {\n var promiseResolve = aCallable$2(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$3(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$1(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n });\n\n var $$7 = _export;\n var call = functionCall;\n var aCallable$1 = aCallable$e;\n var getBuiltIn$1 = getBuiltIn$f;\n var newPromiseCapabilityModule$2 = newPromiseCapability$2;\n var perform$1 = perform$6;\n var iterate$2 = iterate$7;\n var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;\n\n var PROMISE_ANY_ERROR = 'No one promise resolved';\n\n // `Promise.any` method\n // https://tc39.es/ecma262/#sec-promise.any\n $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn$1('AggregateError');\n var capability = newPromiseCapabilityModule$2.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$1(function () {\n var promiseResolve = aCallable$1(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate$2(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n });\n\n var $$6 = _export;\n var NativePromiseConstructor = promiseNativeConstructor;\n var fails$5 = fails$u;\n var getBuiltIn = getBuiltIn$f;\n var isCallable$1 = isCallable$m;\n var speciesConstructor = speciesConstructor$2;\n var promiseResolve = promiseResolve$2;\n\n var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\n var NON_GENERIC = !!NativePromiseConstructor && fails$5(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n });\n\n // `Promise.prototype.finally` method\n // https://tc39.es/ecma262/#sec-promise.prototype.finally\n $$6({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable$1(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n });\n\n var path$2 = path$o;\n\n var promise$4 = path$2.Promise;\n\n var parent$e = promise$4;\n\n\n var promise$3 = parent$e;\n\n var $$5 = _export;\n var newPromiseCapabilityModule$1 = newPromiseCapability$2;\n\n // `Promise.withResolvers` method\n // https://github.com/tc39/proposal-promise-with-resolvers\n $$5({ target: 'Promise', stat: true }, {\n withResolvers: function withResolvers() {\n var promiseCapability = newPromiseCapabilityModule$1.f(this);\n return {\n promise: promiseCapability.promise,\n resolve: promiseCapability.resolve,\n reject: promiseCapability.reject\n };\n }\n });\n\n var parent$d = promise$3;\n\n\n var promise$2 = parent$d;\n\n // TODO: Remove from `core-js@4`\n var $$4 = _export;\n var newPromiseCapabilityModule = newPromiseCapability$2;\n var perform = perform$6;\n\n // `Promise.try` method\n // https://github.com/tc39/proposal-promise-try\n $$4({ target: 'Promise', stat: true, forced: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n });\n\n var parent$c = promise$2;\n // TODO: Remove from `core-js@4`\n\n\n\n\n\n var promise$1 = parent$c;\n\n var promise = promise$1;\n\n var parent$b = reverse$4;\n\n var reverse$2 = parent$b;\n\n var parent$a = reverse$2;\n\n var reverse$1 = parent$a;\n\n var reverse = reverse$1;\n\n (function (module) {\n \tvar _typeof = _typeofExports[\"default\"];\n \tvar _Object$defineProperty = defineProperty$8;\n \tvar _Symbol = symbol$1;\n \tvar _Object$create = create$2;\n \tvar _Object$getPrototypeOf = getPrototypeOf$1;\n \tvar _forEachInstanceProperty = forEach$1;\n \tvar _pushInstanceProperty = push$3;\n \tvar _Object$setPrototypeOf = setPrototypeOf$1;\n \tvar _Promise = promise;\n \tvar _reverseInstanceProperty = reverse;\n \tvar _sliceInstanceProperty = slice$1;\n \tfunction _regeneratorRuntime() {\n \t module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n \t return e;\n \t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n \t var t,\n \t e = {},\n \t r = Object.prototype,\n \t n = r.hasOwnProperty,\n \t o = _Object$defineProperty || function (t, e, r) {\n \t t[e] = r.value;\n \t },\n \t i = \"function\" == typeof _Symbol ? _Symbol : {},\n \t a = i.iterator || \"@@iterator\",\n \t c = i.asyncIterator || \"@@asyncIterator\",\n \t u = i.toStringTag || \"@@toStringTag\";\n \t function define(t, e, r) {\n \t return _Object$defineProperty(t, e, {\n \t value: r,\n \t enumerable: !0,\n \t configurable: !0,\n \t writable: !0\n \t }), t[e];\n \t }\n \t try {\n \t define({}, \"\");\n \t } catch (t) {\n \t define = function define(t, e, r) {\n \t return t[e] = r;\n \t };\n \t }\n \t function wrap(t, e, r, n) {\n \t var i = e && e.prototype instanceof Generator ? e : Generator,\n \t a = _Object$create(i.prototype),\n \t c = new Context(n || []);\n \t return o(a, \"_invoke\", {\n \t value: makeInvokeMethod(t, r, c)\n \t }), a;\n \t }\n \t function tryCatch(t, e, r) {\n \t try {\n \t return {\n \t type: \"normal\",\n \t arg: t.call(e, r)\n \t };\n \t } catch (t) {\n \t return {\n \t type: \"throw\",\n \t arg: t\n \t };\n \t }\n \t }\n \t e.wrap = wrap;\n \t var h = \"suspendedStart\",\n \t l = \"suspendedYield\",\n \t f = \"executing\",\n \t s = \"completed\",\n \t y = {};\n \t function Generator() {}\n \t function GeneratorFunction() {}\n \t function GeneratorFunctionPrototype() {}\n \t var p = {};\n \t define(p, a, function () {\n \t return this;\n \t });\n \t var d = _Object$getPrototypeOf,\n \t v = d && d(d(values([])));\n \t v && v !== r && n.call(v, a) && (p = v);\n \t var g = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(p);\n \t function defineIteratorMethods(t) {\n \t var _context;\n \t _forEachInstanceProperty(_context = [\"next\", \"throw\", \"return\"]).call(_context, function (e) {\n \t define(t, e, function (t) {\n \t return this._invoke(e, t);\n \t });\n \t });\n \t }\n \t function AsyncIterator(t, e) {\n \t function invoke(r, o, i, a) {\n \t var c = tryCatch(t[r], t, o);\n \t if (\"throw\" !== c.type) {\n \t var u = c.arg,\n \t h = u.value;\n \t return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n \t invoke(\"next\", t, i, a);\n \t }, function (t) {\n \t invoke(\"throw\", t, i, a);\n \t }) : e.resolve(h).then(function (t) {\n \t u.value = t, i(u);\n \t }, function (t) {\n \t return invoke(\"throw\", t, i, a);\n \t });\n \t }\n \t a(c.arg);\n \t }\n \t var r;\n \t o(this, \"_invoke\", {\n \t value: function value(t, n) {\n \t function callInvokeWithMethodAndArg() {\n \t return new e(function (e, r) {\n \t invoke(t, n, e, r);\n \t });\n \t }\n \t return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n \t }\n \t });\n \t }\n \t function makeInvokeMethod(e, r, n) {\n \t var o = h;\n \t return function (i, a) {\n \t if (o === f) throw new Error(\"Generator is already running\");\n \t if (o === s) {\n \t if (\"throw\" === i) throw a;\n \t return {\n \t value: t,\n \t done: !0\n \t };\n \t }\n \t for (n.method = i, n.arg = a;;) {\n \t var c = n.delegate;\n \t if (c) {\n \t var u = maybeInvokeDelegate(c, n);\n \t if (u) {\n \t if (u === y) continue;\n \t return u;\n \t }\n \t }\n \t if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n \t if (o === h) throw o = s, n.arg;\n \t n.dispatchException(n.arg);\n \t } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n \t o = f;\n \t var p = tryCatch(e, r, n);\n \t if (\"normal\" === p.type) {\n \t if (o = n.done ? s : l, p.arg === y) continue;\n \t return {\n \t value: p.arg,\n \t done: n.done\n \t };\n \t }\n \t \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n \t }\n \t };\n \t }\n \t function maybeInvokeDelegate(e, r) {\n \t var n = r.method,\n \t o = e.iterator[n];\n \t if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n \t var i = tryCatch(o, e.iterator, r.arg);\n \t if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n \t var a = i.arg;\n \t return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n \t }\n \t function pushTryEntry(t) {\n \t var _context2;\n \t var e = {\n \t tryLoc: t[0]\n \t };\n \t 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), _pushInstanceProperty(_context2 = this.tryEntries).call(_context2, e);\n \t }\n \t function resetTryEntry(t) {\n \t var e = t.completion || {};\n \t e.type = \"normal\", delete e.arg, t.completion = e;\n \t }\n \t function Context(t) {\n \t this.tryEntries = [{\n \t tryLoc: \"root\"\n \t }], _forEachInstanceProperty(t).call(t, pushTryEntry, this), this.reset(!0);\n \t }\n \t function values(e) {\n \t if (e || \"\" === e) {\n \t var r = e[a];\n \t if (r) return r.call(e);\n \t if (\"function\" == typeof e.next) return e;\n \t if (!isNaN(e.length)) {\n \t var o = -1,\n \t i = function next() {\n \t for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n \t return next.value = t, next.done = !0, next;\n \t };\n \t return i.next = i;\n \t }\n \t }\n \t throw new TypeError(_typeof(e) + \" is not iterable\");\n \t }\n \t return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n \t value: GeneratorFunctionPrototype,\n \t configurable: !0\n \t }), o(GeneratorFunctionPrototype, \"constructor\", {\n \t value: GeneratorFunction,\n \t configurable: !0\n \t }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n \t var e = \"function\" == typeof t && t.constructor;\n \t return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n \t }, e.mark = function (t) {\n \t return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = _Object$create(g), t;\n \t }, e.awrap = function (t) {\n \t return {\n \t __await: t\n \t };\n \t }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n \t return this;\n \t }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n \t void 0 === i && (i = _Promise);\n \t var a = new AsyncIterator(wrap(t, r, n, o), i);\n \t return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n \t return t.done ? t.value : a.next();\n \t });\n \t }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n \t return this;\n \t }), define(g, \"toString\", function () {\n \t return \"[object Generator]\";\n \t }), e.keys = function (t) {\n \t var e = Object(t),\n \t r = [];\n \t for (var n in e) _pushInstanceProperty(r).call(r, n);\n \t return _reverseInstanceProperty(r).call(r), function next() {\n \t for (; r.length;) {\n \t var t = r.pop();\n \t if (t in e) return next.value = t, next.done = !1, next;\n \t }\n \t return next.done = !0, next;\n \t };\n \t }, e.values = values, Context.prototype = {\n \t constructor: Context,\n \t reset: function reset(e) {\n \t var _context3;\n \t if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, _forEachInstanceProperty(_context3 = this.tryEntries).call(_context3, resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+_sliceInstanceProperty(r).call(r, 1)) && (this[r] = t);\n \t },\n \t stop: function stop() {\n \t this.done = !0;\n \t var t = this.tryEntries[0].completion;\n \t if (\"throw\" === t.type) throw t.arg;\n \t return this.rval;\n \t },\n \t dispatchException: function dispatchException(e) {\n \t if (this.done) throw e;\n \t var r = this;\n \t function handle(n, o) {\n \t return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n \t }\n \t for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n \t var i = this.tryEntries[o],\n \t a = i.completion;\n \t if (\"root\" === i.tryLoc) return handle(\"end\");\n \t if (i.tryLoc <= this.prev) {\n \t var c = n.call(i, \"catchLoc\"),\n \t u = n.call(i, \"finallyLoc\");\n \t if (c && u) {\n \t if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n \t if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n \t } else if (c) {\n \t if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n \t } else {\n \t if (!u) throw new Error(\"try statement without catch or finally\");\n \t if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n \t }\n \t }\n \t }\n \t },\n \t abrupt: function abrupt(t, e) {\n \t for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n \t var o = this.tryEntries[r];\n \t if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n \t var i = o;\n \t break;\n \t }\n \t }\n \t i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n \t var a = i ? i.completion : {};\n \t return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n \t },\n \t complete: function complete(t, e) {\n \t if (\"throw\" === t.type) throw t.arg;\n \t return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n \t },\n \t finish: function finish(t) {\n \t for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n \t var r = this.tryEntries[e];\n \t if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n \t }\n \t },\n \t \"catch\": function _catch(t) {\n \t for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n \t var r = this.tryEntries[e];\n \t if (r.tryLoc === t) {\n \t var n = r.completion;\n \t if (\"throw\" === n.type) {\n \t var o = n.arg;\n \t resetTryEntry(r);\n \t }\n \t return o;\n \t }\n \t }\n \t throw new Error(\"illegal catch attempt\");\n \t },\n \t delegateYield: function delegateYield(e, r, n) {\n \t return this.delegate = {\n \t iterator: values(e),\n \t resultName: r,\n \t nextLoc: n\n \t }, \"next\" === this.method && (this.arg = t), y;\n \t }\n \t }, e;\n \t}\n \tmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports; \n } (regeneratorRuntime$1));\n\n var regeneratorRuntimeExports = regeneratorRuntime$1.exports;\n\n // TODO(Babel 8): Remove this file.\n\n var runtime = regeneratorRuntimeExports();\n var regenerator = runtime;\n\n // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\n try {\n regeneratorRuntime = runtime;\n } catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n }\n\n var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);\n\n var internalMetadata = {exports: {}};\n\n // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\n var fails$4 = fails$u;\n\n var arrayBufferNonExtensible = fails$4(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n });\n\n var fails$3 = fails$u;\n var isObject$2 = isObject$h;\n var classof$3 = classofRaw$2;\n var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;\n\n // eslint-disable-next-line es/no-object-isextensible -- safe\n var $isExtensible = Object.isExtensible;\n var FAILS_ON_PRIMITIVES = fails$3(function () { $isExtensible(1); });\n\n // `Object.isExtensible` method\n // https://tc39.es/ecma262/#sec-object.isextensible\n var objectIsExtensible = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject$2(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$3(it) === 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n } : $isExtensible;\n\n var fails$2 = fails$u;\n\n var freezing = !fails$2(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n });\n\n var $$3 = _export;\n var uncurryThis$1 = functionUncurryThis;\n var hiddenKeys = hiddenKeys$6;\n var isObject$1 = isObject$h;\n var hasOwn$3 = hasOwnProperty_1;\n var defineProperty$1 = objectDefineProperty.f;\n var getOwnPropertyNamesModule = objectGetOwnPropertyNames;\n var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;\n var isExtensible = objectIsExtensible;\n var uid = uid$4;\n var FREEZING = freezing;\n\n var REQUIRED = false;\n var METADATA = uid('meta');\n var id = 0;\n\n var setMetadata = function (it) {\n defineProperty$1(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n };\n\n var fastKey$1 = function (it, create) {\n // return a primitive with prefix\n if (!isObject$1(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn$3(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n };\n\n var getWeakData = function (it, create) {\n if (!hasOwn$3(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n };\n\n // add metadata on freeze-family methods calling\n var onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn$3(it, METADATA)) setMetadata(it);\n return it;\n };\n\n var enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis$1([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $$3({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n };\n\n var meta = internalMetadata.exports = {\n enable: enable,\n fastKey: fastKey$1,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n };\n\n hiddenKeys[METADATA] = true;\n\n var internalMetadataExports = internalMetadata.exports;\n\n var $$2 = _export;\n var global$1 = global$p;\n var InternalMetadataModule = internalMetadataExports;\n var fails$1 = fails$u;\n var createNonEnumerableProperty = createNonEnumerableProperty$9;\n var iterate$1 = iterate$7;\n var anInstance$1 = anInstance$3;\n var isCallable = isCallable$m;\n var isObject = isObject$h;\n var isNullOrUndefined$1 = isNullOrUndefined$6;\n var setToStringTag = setToStringTag$7;\n var defineProperty = objectDefineProperty.f;\n var forEach = arrayIteration.forEach;\n var DESCRIPTORS$1 = descriptors;\n var InternalStateModule$1 = internalState;\n\n var setInternalState$1 = InternalStateModule$1.set;\n var internalStateGetterFor$1 = InternalStateModule$1.getterFor;\n\n var collection$2 = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global$1[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS$1 || !isCallable(NativeConstructor)\n || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState$1(anInstance$1(target, Prototype), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME);\n\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY === 'add' || KEY === 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY === 'clear')) {\n createNonEnumerableProperty(Prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY === 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $$2({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n };\n\n var defineBuiltIn = defineBuiltIn$6;\n\n var defineBuiltIns$1 = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else defineBuiltIn(target, key, src[key], options);\n } return target;\n };\n\n var create = objectCreate;\n var defineBuiltInAccessor = defineBuiltInAccessor$3;\n var defineBuiltIns = defineBuiltIns$1;\n var bind = functionBindContext;\n var anInstance = anInstance$3;\n var isNullOrUndefined = isNullOrUndefined$6;\n var iterate = iterate$7;\n var defineIterator = iteratorDefine;\n var createIterResultObject = createIterResultObject$3;\n var setSpecies = setSpecies$2;\n var DESCRIPTORS = descriptors;\n var fastKey = internalMetadataExports.fastKey;\n var InternalStateModule = internalState;\n\n var setInternalState = InternalStateModule.set;\n var internalStateGetterFor = InternalStateModule.getterFor;\n\n var collectionStrong$2 = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key === key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first === entry) state.first = next;\n if (state.last === entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind === 'keys') return createIterResultObject(entry.key, false);\n if (kind === 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n };\n\n var collection$1 = collection$2;\n var collectionStrong$1 = collectionStrong$2;\n\n // `Map` constructor\n // https://tc39.es/ecma262/#sec-map-objects\n collection$1('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n }, collectionStrong$1);\n\n var path$1 = path$o;\n\n var map$2 = path$1.Map;\n\n var parent$9 = map$2;\n\n\n var map$1 = parent$9;\n\n var map = map$1;\n\n var _Map = /*@__PURE__*/getDefaultExportFromCjs(map);\n\n var $$1 = _export;\n var $some = arrayIteration.some;\n var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;\n\n var STRICT_METHOD$1 = arrayMethodIsStrict$1('some');\n\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n $$1({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 }, {\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n });\n\n var getBuiltInPrototypeMethod$4 = getBuiltInPrototypeMethod$g;\n\n var some$3 = getBuiltInPrototypeMethod$4('Array', 'some');\n\n var isPrototypeOf$4 = objectIsPrototypeOf;\n var method$4 = some$3;\n\n var ArrayPrototype$4 = Array.prototype;\n\n var some$2 = function (it) {\n var own = it.some;\n return it === ArrayPrototype$4 || (isPrototypeOf$4(ArrayPrototype$4, it) && own === ArrayPrototype$4.some) ? method$4 : own;\n };\n\n var parent$8 = some$2;\n\n var some$1 = parent$8;\n\n var some = some$1;\n\n var _someInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(some);\n\n var getBuiltInPrototypeMethod$3 = getBuiltInPrototypeMethod$g;\n\n var keys$3 = getBuiltInPrototypeMethod$3('Array', 'keys');\n\n var parent$7 = keys$3;\n\n var keys$2 = parent$7;\n\n var classof$2 = classof$d;\n var hasOwn$2 = hasOwnProperty_1;\n var isPrototypeOf$3 = objectIsPrototypeOf;\n var method$3 = keys$2;\n\n var ArrayPrototype$3 = Array.prototype;\n\n var DOMIterables$2 = {\n DOMTokenList: true,\n NodeList: true\n };\n\n var keys$1 = function (it) {\n var own = it.keys;\n return it === ArrayPrototype$3 || (isPrototypeOf$3(ArrayPrototype$3, it) && own === ArrayPrototype$3.keys)\n || hasOwn$2(DOMIterables$2, classof$2(it)) ? method$3 : own;\n };\n\n var keys = keys$1;\n\n var _keysInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(keys);\n\n var arraySlice = arraySliceSimple;\n\n var floor = Math.floor;\n\n var mergeSort = function (array, comparefn) {\n var length = array.length;\n var middle = floor(length / 2);\n return length < 8 ? insertionSort(array, comparefn) : merge(\n array,\n mergeSort(arraySlice(array, 0, middle), comparefn),\n mergeSort(arraySlice(array, middle), comparefn),\n comparefn\n );\n };\n\n var insertionSort = function (array, comparefn) {\n var length = array.length;\n var i = 1;\n var element, j;\n\n while (i < length) {\n j = i;\n element = array[i];\n while (j && comparefn(array[j - 1], element) > 0) {\n array[j] = array[--j];\n }\n if (j !== i++) array[j] = element;\n } return array;\n };\n\n var merge = function (array, left, right, comparefn) {\n var llength = left.length;\n var rlength = right.length;\n var lindex = 0;\n var rindex = 0;\n\n while (lindex < llength || rindex < rlength) {\n array[lindex + rindex] = (lindex < llength && rindex < rlength)\n ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]\n : lindex < llength ? left[lindex++] : right[rindex++];\n } return array;\n };\n\n var arraySort = mergeSort;\n\n var userAgent$1 = engineUserAgent;\n\n var firefox = userAgent$1.match(/firefox\\/(\\d+)/i);\n\n var engineFfVersion = !!firefox && +firefox[1];\n\n var UA = engineUserAgent;\n\n var engineIsIeOrEdge = /MSIE|Trident/.test(UA);\n\n var userAgent = engineUserAgent;\n\n var webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\n var engineWebkitVersion = !!webkit && +webkit[1];\n\n var $ = _export;\n var uncurryThis = functionUncurryThis;\n var aCallable = aCallable$e;\n var toObject = toObject$e;\n var lengthOfArrayLike = lengthOfArrayLike$d;\n var deletePropertyOrThrow = deletePropertyOrThrow$2;\n var toString = toString$7;\n var fails = fails$u;\n var internalSort = arraySort;\n var arrayMethodIsStrict = arrayMethodIsStrict$4;\n var FF = engineFfVersion;\n var IE_OR_EDGE = engineIsIeOrEdge;\n var V8 = engineV8Version;\n var WEBKIT = engineWebkitVersion;\n\n var test = [];\n var nativeSort = uncurryThis(test.sort);\n var push = uncurryThis(test.push);\n\n // IE8-\n var FAILS_ON_UNDEFINED = fails(function () {\n test.sort(undefined);\n });\n // V8 bug\n var FAILS_ON_NULL = fails(function () {\n test.sort(null);\n });\n // Old WebKit\n var STRICT_METHOD = arrayMethodIsStrict('sort');\n\n var STABLE_SORT = !fails(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n\n var result = '';\n var code, chr, value, index;\n\n // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66: case 69: case 70: case 72: value = 3; break;\n case 68: case 71: value = 4; break;\n default: value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({ k: chr + index, v: value });\n }\n }\n\n test.sort(function (a, b) { return b.v - a.v; });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n });\n\n var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;\n\n var getSortCompare = function (comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return toString(x) > toString(y) ? 1 : -1;\n };\n };\n\n // `Array.prototype.sort` method\n // https://tc39.es/ecma262/#sec-array.prototype.sort\n $({ target: 'Array', proto: true, forced: FORCED }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aCallable(comparefn);\n\n var array = toObject(this);\n\n if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);\n\n var items = [];\n var arrayLength = lengthOfArrayLike(array);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) push(items, array[index]);\n }\n\n internalSort(items, getSortCompare(comparefn));\n\n itemsLength = lengthOfArrayLike(items);\n index = 0;\n\n while (index < itemsLength) array[index] = items[index++];\n while (index < arrayLength) deletePropertyOrThrow(array, index++);\n\n return array;\n }\n });\n\n var getBuiltInPrototypeMethod$2 = getBuiltInPrototypeMethod$g;\n\n var sort$3 = getBuiltInPrototypeMethod$2('Array', 'sort');\n\n var isPrototypeOf$2 = objectIsPrototypeOf;\n var method$2 = sort$3;\n\n var ArrayPrototype$2 = Array.prototype;\n\n var sort$2 = function (it) {\n var own = it.sort;\n return it === ArrayPrototype$2 || (isPrototypeOf$2(ArrayPrototype$2, it) && own === ArrayPrototype$2.sort) ? method$2 : own;\n };\n\n var parent$6 = sort$2;\n\n var sort$1 = parent$6;\n\n var sort = sort$1;\n\n var _sortInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(sort);\n\n var getBuiltInPrototypeMethod$1 = getBuiltInPrototypeMethod$g;\n\n var values$3 = getBuiltInPrototypeMethod$1('Array', 'values');\n\n var parent$5 = values$3;\n\n var values$2 = parent$5;\n\n var classof$1 = classof$d;\n var hasOwn$1 = hasOwnProperty_1;\n var isPrototypeOf$1 = objectIsPrototypeOf;\n var method$1 = values$2;\n\n var ArrayPrototype$1 = Array.prototype;\n\n var DOMIterables$1 = {\n DOMTokenList: true,\n NodeList: true\n };\n\n var values$1 = function (it) {\n var own = it.values;\n return it === ArrayPrototype$1 || (isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.values)\n || hasOwn$1(DOMIterables$1, classof$1(it)) ? method$1 : own;\n };\n\n var values = values$1;\n\n var _valuesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(values);\n\n var iterator = iterator$4;\n\n var _Symbol$iterator = /*@__PURE__*/getDefaultExportFromCjs(iterator);\n\n var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$g;\n\n var entries$3 = getBuiltInPrototypeMethod('Array', 'entries');\n\n var parent$4 = entries$3;\n\n var entries$2 = parent$4;\n\n var classof = classof$d;\n var hasOwn = hasOwnProperty_1;\n var isPrototypeOf = objectIsPrototypeOf;\n var method = entries$2;\n\n var ArrayPrototype = Array.prototype;\n\n var DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n };\n\n var entries$1 = function (it) {\n var own = it.entries;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries)\n || hasOwn(DOMIterables, classof(it)) ? method : own;\n };\n\n var entries = entries$1;\n\n var _entriesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(entries);\n\n // Unique ID creation requires a high quality random # generator. In the browser we therefore\n // require the crypto API and do not support built-in fallback to lower quality random number\n // generators (like Math.random()).\n let getRandomValues;\n const rnds8 = new Uint8Array(16);\n function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n }\n\n /**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\n const byteToHex = [];\n\n for (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n }\n\n function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n }\n\n const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\n var native = {\n randomUUID\n };\n\n function v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n }\n\n /**\r\n * Determine whether a value can be used as an id.\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if the value is valid id, false otherwise.\r\n */\n function isId(value) {\n return typeof value === \"string\" || typeof value === \"number\";\n }\n\n /**\r\n * A queue.\r\n *\r\n * @typeParam T - The type of method names to be replaced by queued versions.\r\n */\n var Queue = /*#__PURE__*/function () {\n /**\r\n * Construct a new Queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n function Queue(options) {\n _classCallCheck(this, Queue);\n /** Delay in milliseconds. If defined the queue will be periodically flushed. */\n /** Maximum number of entries in the queue before it will be flushed. */\n _defineProperty(this, \"_queue\", []);\n _defineProperty(this, \"_timeout\", null);\n _defineProperty(this, \"_extended\", null);\n // options\n this.delay = null;\n this.max = Infinity;\n this.setOptions(options);\n }\n /**\r\n * Update the configuration of the queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n _createClass(Queue, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && typeof options.delay !== \"undefined\") {\n this.delay = options.delay;\n }\n if (options && typeof options.max !== \"undefined\") {\n this.max = options.max;\n }\n this._flushIfNeeded();\n }\n /**\r\n * Extend an object with queuing functionality.\r\n * The object will be extended with a function flush, and the methods provided in options.replace will be replaced with queued ones.\r\n *\r\n * @param object - The object to be extended.\r\n * @param options - Additional options.\r\n * @returns The created queue.\r\n */\n }, {\n key: \"destroy\",\n value:\n /**\r\n * Destroy the queue. The queue will first flush all queued actions, and in case it has extended an object, will restore the original object.\r\n */\n function destroy() {\n this.flush();\n if (this._extended) {\n var object = this._extended.object;\n var methods = this._extended.methods;\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n if (method.original) {\n // @TODO: better solution?\n object[method.name] = method.original;\n } else {\n // @TODO: better solution?\n delete object[method.name];\n }\n }\n this._extended = null;\n }\n }\n /**\r\n * Replace a method on an object with a queued version.\r\n *\r\n * @param object - Object having the method.\r\n * @param method - The method name.\r\n */\n }, {\n key: \"replace\",\n value: function replace(object, method) {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias -- Function this is necessary in the function bellow, so class this has to be saved into a variable here. */\n var me = this;\n var original = object[method];\n if (!original) {\n throw new Error(\"Method \" + method + \" undefined\");\n }\n object[method] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n // add this call to the queue\n me.queue({\n args: args,\n fn: original,\n context: this\n });\n };\n }\n /**\r\n * Queue a call.\r\n *\r\n * @param entry - The function or entry to be queued.\r\n */\n }, {\n key: \"queue\",\n value: function queue(entry) {\n if (typeof entry === \"function\") {\n this._queue.push({\n fn: entry\n });\n } else {\n this._queue.push(entry);\n }\n this._flushIfNeeded();\n }\n /**\r\n * Check whether the queue needs to be flushed.\r\n */\n }, {\n key: \"_flushIfNeeded\",\n value: function _flushIfNeeded() {\n var _this = this;\n // flush when the maximum is exceeded.\n if (this._queue.length > this.max) {\n this.flush();\n }\n // flush after a period of inactivity when a delay is configured\n if (this._timeout != null) {\n clearTimeout(this._timeout);\n this._timeout = null;\n }\n if (this.queue.length > 0 && typeof this.delay === \"number\") {\n this._timeout = _setTimeout(function () {\n _this.flush();\n }, this.delay);\n }\n }\n /**\r\n * Flush all queued calls\r\n */\n }, {\n key: \"flush\",\n value: function flush() {\n var _context, _context2;\n _forEachInstanceProperty(_context = _spliceInstanceProperty(_context2 = this._queue).call(_context2, 0)).call(_context, function (entry) {\n entry.fn.apply(entry.context || entry.fn, entry.args || []);\n });\n }\n }], [{\n key: \"extend\",\n value: function extend(object, options) {\n var queue = new Queue(options);\n if (object.flush !== undefined) {\n throw new Error(\"Target object already has a property flush\");\n }\n object.flush = function () {\n queue.flush();\n };\n var methods = [{\n name: \"flush\",\n original: undefined\n }];\n if (options && options.replace) {\n for (var i = 0; i < options.replace.length; i++) {\n var name = options.replace[i];\n methods.push({\n name: name,\n // @TODO: better solution?\n original: object[name]\n });\n // @TODO: better solution?\n queue.replace(object, name);\n }\n }\n queue._extended = {\n object: object,\n methods: methods\n };\n return queue;\n }\n }]);\n return Queue;\n }();\n\n /**\r\n * {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\n var DataSetPart = /*#__PURE__*/function () {\n function DataSetPart() {\n _classCallCheck(this, DataSetPart);\n _defineProperty(this, \"_subscribers\", {\n \"*\": [],\n add: [],\n remove: [],\n update: []\n });\n /**\r\n * @deprecated Use on instead (PS: DataView.subscribe === DataView.on).\r\n */\n _defineProperty(this, \"subscribe\", DataSetPart.prototype.on);\n /**\r\n * @deprecated Use off instead (PS: DataView.unsubscribe === DataView.off).\r\n */\n _defineProperty(this, \"unsubscribe\", DataSetPart.prototype.off);\n }\n _createClass(DataSetPart, [{\n key: \"_trigger\",\n value:\n /**\r\n * Trigger an event\r\n *\r\n * @param event - Event name.\r\n * @param payload - Event payload.\r\n * @param senderId - Id of the sender.\r\n */\n function _trigger(event, payload, senderId) {\n var _context, _context2;\n if (event === \"*\") {\n throw new Error(\"Cannot trigger event *\");\n }\n _forEachInstanceProperty(_context = _concatInstanceProperty(_context2 = []).call(_context2, _toConsumableArray(this._subscribers[event]), _toConsumableArray(this._subscribers[\"*\"]))).call(_context, function (subscriber) {\n subscriber(event, payload, senderId != null ? senderId : null);\n });\n }\n /**\r\n * Subscribe to an event, add an event listener.\r\n *\r\n * @remarks Non-function callbacks are ignored.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"on\",\n value: function on(event, callback) {\n if (typeof callback === \"function\") {\n this._subscribers[event].push(callback);\n }\n // @TODO: Maybe throw for invalid callbacks?\n }\n /**\r\n * Unsubscribe from an event, remove an event listener.\r\n *\r\n * @remarks If the same callback was subscribed more than once **all** occurences will be removed.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"off\",\n value: function off(event, callback) {\n var _context3;\n this._subscribers[event] = _filterInstanceProperty(_context3 = this._subscribers[event]).call(_context3, function (subscriber) {\n return subscriber !== callback;\n });\n }\n }]);\n return DataSetPart;\n }();\n\n var collection = collection$2;\n var collectionStrong = collectionStrong$2;\n\n // `Set` constructor\n // https://tc39.es/ecma262/#sec-set-objects\n collection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n }, collectionStrong);\n\n var path = path$o;\n\n var set$2 = path.Set;\n\n var parent$3 = set$2;\n\n\n var set$1 = parent$3;\n\n var set = set$1;\n\n var _Set = /*@__PURE__*/getDefaultExportFromCjs(set);\n\n var getIterator$5 = getIterator$8;\n\n var getIterator_1 = getIterator$5;\n\n var parent$2 = getIterator_1;\n\n\n var getIterator$4 = parent$2;\n\n var parent$1 = getIterator$4;\n\n var getIterator$3 = parent$1;\n\n var parent = getIterator$3;\n\n var getIterator$2 = parent;\n\n var getIterator$1 = getIterator$2;\n\n var getIterator = getIterator$1;\n\n var _getIterator = /*@__PURE__*/getDefaultExportFromCjs(getIterator);\n\n function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n function _unsupportedIterableToArray$2(o, minLen) { var _context10; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$2(o, minLen); var n = _sliceInstanceProperty(_context10 = Object.prototype.toString.call(o)).call(_context10, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }\n function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n /**\r\n * Data stream\r\n *\r\n * @remarks\r\n * {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.\r\n * That means that the stream is evaluated at the time of iteration, conversion to another data type or when {@link cache} is called, not when the {@link DataStream} was created.\r\n * Multiple invocations of for example {@link toItemArray} may yield different results (if the data source like for example {@link DataSet} gets modified).\r\n * @typeParam Item - The item type this stream is going to work with.\r\n */\n var DataStream = /*#__PURE__*/function (_Symbol$iterator$1) {\n /**\r\n * Create a new data stream.\r\n *\r\n * @param pairs - The id, item pairs.\r\n */\n function DataStream(pairs) {\n _classCallCheck(this, DataStream);\n this._pairs = pairs;\n }\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n _createClass(DataStream, [{\n key: _Symbol$iterator$1,\n value:\n /*#__PURE__*/\n _regeneratorRuntime.mark(function value() {\n var _iterator, _step, _step$value, id, item;\n return _regeneratorRuntime.wrap(function value$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _iterator = _createForOfIteratorHelper$2(this._pairs);\n _context.prev = 1;\n _iterator.s();\n case 3:\n if ((_step = _iterator.n()).done) {\n _context.next = 9;\n break;\n }\n _step$value = _slicedToArray(_step.value, 2), id = _step$value[0], item = _step$value[1];\n _context.next = 7;\n return [id, item];\n case 7:\n _context.next = 3;\n break;\n case 9:\n _context.next = 14;\n break;\n case 11:\n _context.prev = 11;\n _context.t0 = _context[\"catch\"](1);\n _iterator.e(_context.t0);\n case 14:\n _context.prev = 14;\n _iterator.f();\n return _context.finish(14);\n case 17:\n case \"end\":\n return _context.stop();\n }\n }, value, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n }, {\n key: \"entries\",\n value:\n /*#__PURE__*/\n _regeneratorRuntime.mark(function entries() {\n var _iterator2, _step2, _step2$value, id, item;\n return _regeneratorRuntime.wrap(function entries$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper$2(this._pairs);\n _context2.prev = 1;\n _iterator2.s();\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context2.next = 9;\n break;\n }\n _step2$value = _slicedToArray(_step2.value, 2), id = _step2$value[0], item = _step2$value[1];\n _context2.next = 7;\n return [id, item];\n case 7:\n _context2.next = 3;\n break;\n case 9:\n _context2.next = 14;\n break;\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2[\"catch\"](1);\n _iterator2.e(_context2.t0);\n case 14:\n _context2.prev = 14;\n _iterator2.f();\n return _context2.finish(14);\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }, entries, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of keys in the stream.\r\n */\n }, {\n key: \"keys\",\n value:\n /*#__PURE__*/\n _regeneratorRuntime.mark(function keys() {\n var _iterator3, _step3, _step3$value, id;\n return _regeneratorRuntime.wrap(function keys$(_context3) {\n while (1) switch (_context3.prev = _context3.next) {\n case 0:\n _iterator3 = _createForOfIteratorHelper$2(this._pairs);\n _context3.prev = 1;\n _iterator3.s();\n case 3:\n if ((_step3 = _iterator3.n()).done) {\n _context3.next = 9;\n break;\n }\n _step3$value = _slicedToArray(_step3.value, 1), id = _step3$value[0];\n _context3.next = 7;\n return id;\n case 7:\n _context3.next = 3;\n break;\n case 9:\n _context3.next = 14;\n break;\n case 11:\n _context3.prev = 11;\n _context3.t0 = _context3[\"catch\"](1);\n _iterator3.e(_context3.t0);\n case 14:\n _context3.prev = 14;\n _iterator3.f();\n return _context3.finish(14);\n case 17:\n case \"end\":\n return _context3.stop();\n }\n }, keys, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of values in the stream.\r\n */\n }, {\n key: \"values\",\n value:\n /*#__PURE__*/\n _regeneratorRuntime.mark(function values() {\n var _iterator4, _step4, _step4$value, item;\n return _regeneratorRuntime.wrap(function values$(_context4) {\n while (1) switch (_context4.prev = _context4.next) {\n case 0:\n _iterator4 = _createForOfIteratorHelper$2(this._pairs);\n _context4.prev = 1;\n _iterator4.s();\n case 3:\n if ((_step4 = _iterator4.n()).done) {\n _context4.next = 9;\n break;\n }\n _step4$value = _slicedToArray(_step4.value, 2), item = _step4$value[1];\n _context4.next = 7;\n return item;\n case 7:\n _context4.next = 3;\n break;\n case 9:\n _context4.next = 14;\n break;\n case 11:\n _context4.prev = 11;\n _context4.t0 = _context4[\"catch\"](1);\n _iterator4.e(_context4.t0);\n case 14:\n _context4.prev = 14;\n _iterator4.f();\n return _context4.finish(14);\n case 17:\n case \"end\":\n return _context4.stop();\n }\n }, values, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an array containing all the ids in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all ids from this stream.\r\n */\n }, {\n key: \"toIdArray\",\n value: function toIdArray() {\n var _context5;\n return _mapInstanceProperty(_context5 = _toConsumableArray(this._pairs)).call(_context5, function (pair) {\n return pair[0];\n });\n }\n /**\r\n * Return an array containing all the items in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all items from this stream.\r\n */\n }, {\n key: \"toItemArray\",\n value: function toItemArray() {\n var _context6;\n return _mapInstanceProperty(_context6 = _toConsumableArray(this._pairs)).call(_context6, function (pair) {\n return pair[1];\n });\n }\n /**\r\n * Return an array containing all the entries in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all entries from this stream.\r\n */\n }, {\n key: \"toEntryArray\",\n value: function toEntryArray() {\n return _toConsumableArray(this._pairs);\n }\n /**\r\n * Return an object map containing all the items in this stream accessible by ids.\r\n *\r\n * @remarks\r\n * In case of duplicate ids (coerced to string so `7 == '7'`) the last encoutered appears in the returned object.\r\n * @returns The object map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toObjectMap\",\n value: function toObjectMap() {\n var map = _Object$create$1(null);\n var _iterator5 = _createForOfIteratorHelper$2(this._pairs),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _step5$value = _slicedToArray(_step5.value, 2),\n id = _step5$value[0],\n item = _step5$value[1];\n map[id] = item;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n return map;\n }\n /**\r\n * Return a map containing all the items in this stream accessible by ids.\r\n *\r\n * @returns The map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toMap\",\n value: function toMap() {\n return new _Map(this._pairs);\n }\n /**\r\n * Return a set containing all the (unique) ids in this stream.\r\n *\r\n * @returns The set of all ids from this stream.\r\n */\n }, {\n key: \"toIdSet\",\n value: function toIdSet() {\n return new _Set(this.toIdArray());\n }\n /**\r\n * Return a set containing all the (unique) items in this stream.\r\n *\r\n * @returns The set of all items from this stream.\r\n */\n }, {\n key: \"toItemSet\",\n value: function toItemSet() {\n return new _Set(this.toItemArray());\n }\n /**\r\n * Cache the items from this stream.\r\n *\r\n * @remarks\r\n * This method allows for items to be fetched immediatelly and used (possibly multiple times) later.\r\n * It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * const ds = new DataSet([…])\r\n *\r\n * const cachedStream = ds.stream()\r\n * .filter(…)\r\n * .sort(…)\r\n * .map(…)\r\n * .cached(…) // Data are fetched, processed and cached here.\r\n *\r\n * ds.clear()\r\n * chachedStream // Still has all the items.\r\n * ```\r\n * @returns A new {@link DataStream} with cached items (detached from the original {@link DataSet}).\r\n */\n }, {\n key: \"cache\",\n value: function cache() {\n return new DataStream(_toConsumableArray(this._pairs));\n }\n /**\r\n * Get the distinct values of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @typeParam T - The type of the distinct value.\r\n * @returns A set of all distinct properties.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(callback) {\n var set = new _Set();\n var _iterator6 = _createForOfIteratorHelper$2(this._pairs),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var _step6$value = _slicedToArray(_step6.value, 2),\n id = _step6$value[0],\n item = _step6$value[1];\n set.add(callback(item, id));\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n return set;\n }\n /**\r\n * Filter the items of the stream.\r\n *\r\n * @param callback - The function that decides whether an item will be included.\r\n * @returns A new data stream with the filtered items.\r\n */\n }, {\n key: \"filter\",\n value: function filter(callback) {\n var pairs = this._pairs;\n return new DataStream({\n [_Symbol$iterator]() {\n return /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _iterator7, _step7, _step7$value, id, item;\n return _regeneratorRuntime.wrap(function _callee$(_context7) {\n while (1) switch (_context7.prev = _context7.next) {\n case 0:\n _iterator7 = _createForOfIteratorHelper$2(pairs);\n _context7.prev = 1;\n _iterator7.s();\n case 3:\n if ((_step7 = _iterator7.n()).done) {\n _context7.next = 10;\n break;\n }\n _step7$value = _slicedToArray(_step7.value, 2), id = _step7$value[0], item = _step7$value[1];\n if (!callback(item, id)) {\n _context7.next = 8;\n break;\n }\n _context7.next = 8;\n return [id, item];\n case 8:\n _context7.next = 3;\n break;\n case 10:\n _context7.next = 15;\n break;\n case 12:\n _context7.prev = 12;\n _context7.t0 = _context7[\"catch\"](1);\n _iterator7.e(_context7.t0);\n case 15:\n _context7.prev = 15;\n _iterator7.f();\n return _context7.finish(15);\n case 18:\n case \"end\":\n return _context7.stop();\n }\n }, _callee, null, [[1, 12, 15, 18]]);\n })();\n }\n });\n }\n /**\r\n * Execute a callback for each item of the stream.\r\n *\r\n * @param callback - The function that will be invoked for each item.\r\n */\n }, {\n key: \"forEach\",\n value: function forEach(callback) {\n var _iterator8 = _createForOfIteratorHelper$2(this._pairs),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var _step8$value = _slicedToArray(_step8.value, 2),\n id = _step8$value[0],\n item = _step8$value[1];\n callback(item, id);\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n }\n /**\r\n * Map the items into a different type.\r\n *\r\n * @param callback - The function that does the conversion.\r\n * @typeParam Mapped - The type of the item after mapping.\r\n * @returns A new data stream with the mapped items.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n var pairs = this._pairs;\n return new DataStream({\n [_Symbol$iterator]() {\n return /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _iterator9, _step9, _step9$value, id, item;\n return _regeneratorRuntime.wrap(function _callee2$(_context8) {\n while (1) switch (_context8.prev = _context8.next) {\n case 0:\n _iterator9 = _createForOfIteratorHelper$2(pairs);\n _context8.prev = 1;\n _iterator9.s();\n case 3:\n if ((_step9 = _iterator9.n()).done) {\n _context8.next = 9;\n break;\n }\n _step9$value = _slicedToArray(_step9.value, 2), id = _step9$value[0], item = _step9$value[1];\n _context8.next = 7;\n return [id, callback(item, id)];\n case 7:\n _context8.next = 3;\n break;\n case 9:\n _context8.next = 14;\n break;\n case 11:\n _context8.prev = 11;\n _context8.t0 = _context8[\"catch\"](1);\n _iterator9.e(_context8.t0);\n case 14:\n _context8.prev = 14;\n _iterator9.f();\n return _context8.finish(14);\n case 17:\n case \"end\":\n return _context8.stop();\n }\n }, _callee2, null, [[1, 11, 14, 17]]);\n })();\n }\n });\n }\n /**\r\n * Get the item with the maximum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the maximum if found otherwise null.\r\n */\n }, {\n key: \"max\",\n value: function max(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var maxItem = curr.value[1];\n var maxValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value = _slicedToArray(curr.value, 2),\n id = _curr$value[0],\n item = _curr$value[1];\n var _value = callback(item, id);\n if (_value > maxValue) {\n maxValue = _value;\n maxItem = item;\n }\n }\n return maxItem;\n }\n /**\r\n * Get the item with the minimum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the minimum if found otherwise null.\r\n */\n }, {\n key: \"min\",\n value: function min(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var minItem = curr.value[1];\n var minValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value2 = _slicedToArray(curr.value, 2),\n id = _curr$value2[0],\n item = _curr$value2[1];\n var _value2 = callback(item, id);\n if (_value2 < minValue) {\n minValue = _value2;\n minItem = item;\n }\n }\n return minItem;\n }\n /**\r\n * Reduce the items into a single value.\r\n *\r\n * @param callback - The function that does the reduction.\r\n * @param accumulator - The initial value of the accumulator.\r\n * @typeParam T - The type of the accumulated value.\r\n * @returns The reduced value.\r\n */\n }, {\n key: \"reduce\",\n value: function reduce(callback, accumulator) {\n var _iterator10 = _createForOfIteratorHelper$2(this._pairs),\n _step10;\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var _step10$value = _slicedToArray(_step10.value, 2),\n id = _step10$value[0],\n item = _step10$value[1];\n accumulator = callback(accumulator, item, id);\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n return accumulator;\n }\n /**\r\n * Sort the items.\r\n *\r\n * @param callback - Item comparator.\r\n * @returns A new stream with sorted items.\r\n */\n }, {\n key: \"sort\",\n value: function sort(callback) {\n var _this = this;\n return new DataStream({\n [_Symbol$iterator]: function () {\n var _context9;\n return _getIterator(_sortInstanceProperty(_context9 = _toConsumableArray(_this._pairs)).call(_context9, function (_ref, _ref2) {\n var _ref3 = _slicedToArray(_ref, 2),\n idA = _ref3[0],\n itemA = _ref3[1];\n var _ref4 = _slicedToArray(_ref2, 2),\n idB = _ref4[0],\n itemB = _ref4[1];\n return callback(itemA, itemB, idA, idB);\n }));\n }\n });\n }\n }]);\n return DataStream;\n }(_Symbol$iterator);\n\n function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context10, _context11; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context10 = ownKeys(Object(t), !0)).call(_context10, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context11 = ownKeys(Object(t))).call(_context11, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n function _unsupportedIterableToArray$1(o, minLen) { var _context9; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$1(o, minLen); var n = _sliceInstanceProperty(_context9 = Object.prototype.toString.call(o)).call(_context9, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }\n function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n function _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n /**\r\n * Add an id to given item if it doesn't have one already.\r\n *\r\n * @remarks\r\n * The item will be modified.\r\n * @param item - The item that will have an id after a call to this function.\r\n * @param idProp - The key of the id property.\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n * @returns true\r\n */\n function ensureFullItem(item, idProp) {\n if (item[idProp] == null) {\n // generate an id\n item[idProp] = v4();\n }\n return item;\n }\n /**\r\n * # DataSet\r\n *\r\n * Vis.js comes with a flexible DataSet, which can be used to hold and\r\n * manipulate unstructured data and listen for changes in the data. The DataSet\r\n * is key/value based. Data items can be added, updated and removed from the\r\n * DataSet, and one can subscribe to changes in the DataSet. The data in the\r\n * DataSet can be filtered and ordered. Data can be normalized when appending it\r\n * to the DataSet as well.\r\n *\r\n * ## Example\r\n *\r\n * The following example shows how to use a DataSet.\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * var options = {};\r\n * var data = new vis.DataSet(options);\r\n *\r\n * // add items\r\n * // note that the data items can contain different properties and data formats\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // subscribe to any change in the DataSet\r\n * data.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an existing item\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // remove an item\r\n * data.remove(4);\r\n *\r\n * // get all ids\r\n * var ids = data.getIds();\r\n * console.log('ids', ids);\r\n *\r\n * // get a specific item\r\n * var item1 = data.get(1);\r\n * console.log('item1', item1);\r\n *\r\n * // retrieve a filtered subset of the data\r\n * var items = data.get({\r\n * filter: function (item) {\r\n * return item.group == 1;\r\n * }\r\n * });\r\n * console.log('filtered items', items);\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\n var DataSet = /*#__PURE__*/function (_DataSetPart) {\n _inherits(DataSet, _DataSetPart);\n var _super = _createSuper$1(DataSet);\n /**\r\n * Construct a new DataSet.\r\n *\r\n * @param data - Initial data or options.\r\n * @param options - Options (type error if data is also options).\r\n */\n function DataSet(data, options) {\n var _this;\n _classCallCheck(this, DataSet);\n _this = _super.call(this);\n // correctly read optional arguments\n _defineProperty(_assertThisInitialized(_this), \"_queue\", null);\n if (data && !_Array$isArray(data)) {\n options = data;\n data = [];\n }\n _this._options = options || {};\n _this._data = new _Map(); // map with data indexed by id\n _this.length = 0; // number of items in the DataSet\n _this._idProp = _this._options.fieldId || \"id\"; // name of the field containing id\n // add initial data when provided\n if (data && data.length) {\n _this.add(data);\n }\n _this.setOptions(options);\n return _this;\n }\n /**\r\n * Set new options.\r\n *\r\n * @param options - The new options.\r\n */\n _createClass(DataSet, [{\n key: \"idProp\",\n get: /** Flush all queued calls. */\n\n /** @inheritDoc */\n\n /** @inheritDoc */\n function get() {\n return this._idProp;\n }\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && options.queue !== undefined) {\n if (options.queue === false) {\n // delete queue if loaded\n if (this._queue) {\n this._queue.destroy();\n this._queue = null;\n }\n } else {\n // create queue and update its options\n if (!this._queue) {\n this._queue = Queue.extend(this, {\n replace: [\"add\", \"update\", \"remove\"]\n });\n }\n if (options.queue && typeof options.queue === \"object\") {\n this._queue.setOptions(options.queue);\n }\n }\n }\n }\n /**\r\n * Add a data item or an array with items.\r\n *\r\n * After the items are added to the DataSet, the DataSet will trigger an event `add`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet()\r\n *\r\n * // add items\r\n * const ids = data.add([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { text: 'item without an id' }\r\n * ])\r\n *\r\n * console.log(ids) // [1, 2, '']\r\n * ```\r\n *\r\n * @param data - Items to be added (ids will be generated if missing).\r\n * @param senderId - Sender id.\r\n * @returns addedIds - Array with the ids (generated if not present) of the added items.\r\n * @throws When an item with the same id as any of the added items already exists.\r\n */\n }, {\n key: \"add\",\n value: function add(data, senderId) {\n var _this2 = this;\n var addedIds = [];\n var id;\n if (_Array$isArray(data)) {\n // Array\n var idsToAdd = _mapInstanceProperty(data).call(data, function (d) {\n return d[_this2._idProp];\n });\n if (_someInstanceProperty(idsToAdd).call(idsToAdd, function (id) {\n return _this2._data.has(id);\n })) {\n throw new Error(\"A duplicate id was found in the parameter array.\");\n }\n for (var i = 0, len = data.length; i < len; i++) {\n id = this._addItem(data[i]);\n addedIds.push(id);\n }\n } else if (data && typeof data === \"object\") {\n // Single item\n id = this._addItem(data);\n addedIds.push(id);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n return addedIds;\n }\n /**\r\n * Update existing items. When an item does not exist, it will be created.\r\n *\r\n * @remarks\r\n * The provided properties will be merged in the existing item. When an item does not exist, it will be created.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `add` for the added items, and an event `update`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' },\r\n * { id: 4, text: 'item 4 (new)' }\r\n * ])\r\n *\r\n * console.log(ids) // [2, 4]\r\n * ```\r\n *\r\n * ## Warning for TypeScript users\r\n * This method may introduce partial items into the data set. Use add or updateOnly instead for better type safety.\r\n * @param data - Items to be updated (if the id is already present) or added (if the id is missing).\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the added (these may be newly generated if there was no id in the item from the data) or updated items.\r\n * @throws When the supplied data is neither an item nor an array of items.\r\n */\n }, {\n key: \"update\",\n value: function update(data, senderId) {\n var _this3 = this;\n var addedIds = [];\n var updatedIds = [];\n var oldData = [];\n var updatedData = [];\n var idProp = this._idProp;\n var addOrUpdate = function addOrUpdate(item) {\n var origId = item[idProp];\n if (origId != null && _this3._data.has(origId)) {\n var fullItem = item; // it has an id, therefore it is a fullitem\n var oldItem = _Object$assign({}, _this3._data.get(origId));\n // update item\n var id = _this3._updateItem(fullItem);\n updatedIds.push(id);\n updatedData.push(fullItem);\n oldData.push(oldItem);\n } else {\n // add new item\n var _id = _this3._addItem(item);\n addedIds.push(_id);\n }\n };\n if (_Array$isArray(data)) {\n // Array\n for (var i = 0, len = data.length; i < len; i++) {\n if (data[i] && typeof data[i] === \"object\") {\n addOrUpdate(data[i]);\n } else {\n console.warn(\"Ignoring input item, which is not an object at index \" + i);\n }\n }\n } else if (data && typeof data === \"object\") {\n // Single item\n addOrUpdate(data);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n var props = {\n items: updatedIds,\n oldData: oldData,\n data: updatedData\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n }\n return _concatInstanceProperty(addedIds).call(addedIds, updatedIds);\n }\n /**\r\n * Update existing items. When an item does not exist, an error will be thrown.\r\n *\r\n * @remarks\r\n * The provided properties will be deeply merged into the existing item.\r\n * When an item does not exist (id not present in the data set or absent), an error will be thrown and nothing will be changed.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `update`.\r\n * When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' },\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' }, // works\r\n * // { id: 4, text: 'item 4 (new)' }, // would throw\r\n * // { text: 'item 4 (new)' }, // would also throw\r\n * ])\r\n *\r\n * console.log(ids) // [2]\r\n * ```\r\n * @param data - Updates (the id and optionally other props) to the items in this data set.\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the updated items.\r\n * @throws When the supplied data is neither an item nor an array of items, when the ids are missing.\r\n */\n }, {\n key: \"updateOnly\",\n value: function updateOnly(data, senderId) {\n var _context,\n _this4 = this;\n if (!_Array$isArray(data)) {\n data = [data];\n }\n var updateEventData = _mapInstanceProperty(_context = _mapInstanceProperty(data).call(data, function (update) {\n var oldData = _this4._data.get(update[_this4._idProp]);\n if (oldData == null) {\n throw new Error(\"Updating non-existent items is not allowed.\");\n }\n return {\n oldData,\n update\n };\n })).call(_context, function (_ref) {\n var oldData = _ref.oldData,\n update = _ref.update;\n var id = oldData[_this4._idProp];\n var updatedData = pureDeepObjectAssign(oldData, update);\n _this4._data.set(id, updatedData);\n return {\n id,\n oldData: oldData,\n updatedData\n };\n });\n if (updateEventData.length) {\n var props = {\n items: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.id;\n }),\n oldData: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.oldData;\n }),\n data: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.updatedData;\n })\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n return props.items;\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n // @TODO: Woudn't it be better to split this into multiple methods?\n // parse the arguments\n var id = undefined;\n var ids = undefined;\n var options = undefined;\n if (isId(first)) {\n // get(id [, options])\n id = first;\n options = second;\n } else if (_Array$isArray(first)) {\n // get(ids [, options])\n ids = first;\n options = second;\n } else {\n // get([, options])\n options = first;\n }\n // determine the return type\n var returnType = options && options.returnType === \"Object\" ? \"Object\" : \"Array\";\n // @TODO: WTF is this? Or am I missing something?\n // var returnType\n // if (options && options.returnType) {\n // var allowedValues = ['Array', 'Object']\n // returnType =\n // allowedValues.indexOf(options.returnType) == -1\n // ? 'Array'\n // : options.returnType\n // } else {\n // returnType = 'Array'\n // }\n // build options\n var filter = options && _filterInstanceProperty(options);\n var items = [];\n var item = undefined;\n var itemIds = undefined;\n var itemId = undefined;\n // convert items\n if (id != null) {\n // return a single item\n item = this._data.get(id);\n if (item && filter && !filter(item)) {\n item = undefined;\n }\n } else if (ids != null) {\n // return a subset of items\n for (var i = 0, len = ids.length; i < len; i++) {\n item = this._data.get(ids[i]);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n } else {\n var _context2;\n // return all items\n itemIds = _toConsumableArray(_keysInstanceProperty(_context2 = this._data).call(_context2));\n for (var _i = 0, _len = itemIds.length; _i < _len; _i++) {\n itemId = itemIds[_i];\n item = this._data.get(itemId);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n }\n // order the results\n if (options && options.order && id == undefined) {\n this._sort(items, options.order);\n }\n // filter fields of the items\n if (options && options.fields) {\n var fields = options.fields;\n if (id != undefined && item != null) {\n item = this._filterFields(item, fields);\n } else {\n for (var _i2 = 0, _len2 = items.length; _i2 < _len2; _i2++) {\n items[_i2] = this._filterFields(items[_i2], fields);\n }\n }\n }\n // return the results\n if (returnType == \"Object\") {\n var result = {};\n for (var _i3 = 0, _len3 = items.length; _i3 < _len3; _i3++) {\n var resultant = items[_i3];\n // @TODO: Shoudn't this be this._fieldId?\n // result[resultant.id] = resultant\n var _id2 = resultant[this._idProp];\n result[_id2] = resultant;\n }\n return result;\n } else {\n if (id != null) {\n var _item;\n // a single item\n return (_item = item) !== null && _item !== void 0 ? _item : null;\n } else {\n // just return our array\n return items;\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n var data = this._data;\n var filter = options && _filterInstanceProperty(options);\n var order = options && options.order;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var ids = [];\n if (filter) {\n // get filtered items\n if (order) {\n // create ordered list\n var items = [];\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && filter(item)) {\n items.push(item);\n }\n }\n this._sort(items, order);\n for (var _i4 = 0, _len4 = items.length; _i4 < _len4; _i4++) {\n ids.push(items[_i4][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i5 = 0, _len5 = itemIds.length; _i5 < _len5; _i5++) {\n var _id3 = itemIds[_i5];\n var _item2 = this._data.get(_id3);\n if (_item2 != null && filter(_item2)) {\n ids.push(_item2[this._idProp]);\n }\n }\n }\n } else {\n // get all items\n if (order) {\n // create an ordered list\n var _items = [];\n for (var _i6 = 0, _len6 = itemIds.length; _i6 < _len6; _i6++) {\n var _id4 = itemIds[_i6];\n _items.push(data.get(_id4));\n }\n this._sort(_items, order);\n for (var _i7 = 0, _len7 = _items.length; _i7 < _len7; _i7++) {\n ids.push(_items[_i7][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i8 = 0, _len8 = itemIds.length; _i8 < _len8; _i8++) {\n var _id5 = itemIds[_i8];\n var _item3 = data.get(_id5);\n if (_item3 != null) {\n ids.push(_item3[this._idProp]);\n }\n }\n }\n }\n return ids;\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n if (options && options.order) {\n // execute forEach on ordered list\n var items = this.get(options);\n for (var i = 0, len = items.length; i < len; i++) {\n var item = items[i];\n var id = item[this._idProp];\n callback(item, id);\n }\n } else {\n // unordered\n for (var _i9 = 0, _len9 = itemIds.length; _i9 < _len9; _i9++) {\n var _id6 = itemIds[_i9];\n var _item4 = this._data.get(_id6);\n if (_item4 != null && (!filter || filter(_item4))) {\n callback(_item4, _id6);\n }\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var mappedItems = [];\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n // convert and filter items\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && (!filter || filter(item))) {\n mappedItems.push(callback(item, id));\n }\n }\n // order items\n if (options && options.order) {\n this._sort(mappedItems, options.order);\n }\n return mappedItems;\n }\n /**\r\n * Filter the fields of an item.\r\n *\r\n * @param item - The item whose fields should be filtered.\r\n * @param fields - The names of the fields that will be kept.\r\n * @typeParam K - Field name type.\r\n * @returns The item without any additional fields.\r\n */\n }, {\n key: \"_filterFields\",\n value: function _filterFields(item, fields) {\n var _context3;\n if (!item) {\n // item is null\n return item;\n }\n return _reduceInstanceProperty(_context3 = _Array$isArray(fields) ?\n // Use the supplied array\n fields :\n // Use the keys of the supplied object\n _Object$keys(fields)).call(_context3, function (filteredItem, field) {\n filteredItem[field] = item[field];\n return filteredItem;\n }, {});\n }\n /**\r\n * Sort the provided array with items.\r\n *\r\n * @param items - Items to be sorted in place.\r\n * @param order - A field name or custom sort function.\r\n * @typeParam T - The type of the items in the items array.\r\n */\n }, {\n key: \"_sort\",\n value: function _sort(items, order) {\n if (typeof order === \"string\") {\n // order by provided field name\n var name = order; // field name\n _sortInstanceProperty(items).call(items, function (a, b) {\n // @TODO: How to treat missing properties?\n var av = a[name];\n var bv = b[name];\n return av > bv ? 1 : av < bv ? -1 : 0;\n });\n } else if (typeof order === \"function\") {\n // order by sort function\n _sortInstanceProperty(items).call(items, order);\n } else {\n // TODO: extend order by an Object {field:string, direction:string}\n // where direction can be 'asc' or 'desc'\n throw new TypeError(\"Order must be a function or a string\");\n }\n }\n /**\r\n * Remove an item or multiple items by “reference” (only the id is used) or by id.\r\n *\r\n * The method ignores removal of non-existing items, and returns an array containing the ids of the items which are actually removed from the DataSet.\r\n *\r\n * After the items are removed, the DataSet will trigger an event `remove` for the removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // remove items\r\n * const ids = data.remove([2, { id: 3 }, 4])\r\n *\r\n * console.log(ids) // [2, 3]\r\n * ```\r\n *\r\n * @param id - One or more items or ids of items to be removed.\r\n * @param senderId - Sender id.\r\n * @returns The ids of the removed items.\r\n */\n }, {\n key: \"remove\",\n value: function remove(id, senderId) {\n var removedIds = [];\n var removedItems = [];\n // force everything to be an array for simplicity\n var ids = _Array$isArray(id) ? id : [id];\n for (var i = 0, len = ids.length; i < len; i++) {\n var item = this._remove(ids[i]);\n if (item) {\n var itemId = item[this._idProp];\n if (itemId != null) {\n removedIds.push(itemId);\n removedItems.push(item);\n }\n }\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n return removedIds;\n }\n /**\r\n * Remove an item by its id or reference.\r\n *\r\n * @param id - Id of an item or the item itself.\r\n * @returns The removed item if removed, null otherwise.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(id) {\n // @TODO: It origianlly returned the item although the docs say id.\n // The code expects the item, so probably an error in the docs.\n var ident;\n // confirm the id to use based on the args type\n if (isId(id)) {\n ident = id;\n } else if (id && typeof id === \"object\") {\n ident = id[this._idProp]; // look for the identifier field using ._idProp\n }\n // do the removing if the item is found\n if (ident != null && this._data.has(ident)) {\n var item = this._data.get(ident) || null;\n this._data.delete(ident);\n --this.length;\n return item;\n }\n return null;\n }\n /**\r\n * Clear the entire data set.\r\n *\r\n * After the items are removed, the {@link DataSet} will trigger an event `remove` for all removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * @param senderId - Sender id.\r\n * @returns removedIds - The ids of all removed items.\r\n */\n }, {\n key: \"clear\",\n value: function clear(senderId) {\n var _context4;\n var ids = _toConsumableArray(_keysInstanceProperty(_context4 = this._data).call(_context4));\n var items = [];\n for (var i = 0, len = ids.length; i < len; i++) {\n items.push(this._data.get(ids[i]));\n }\n this._data.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n }, senderId);\n return ids;\n }\n /**\r\n * Find the item with maximum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for max value.\r\n * @returns Item containing max value, or null if no items.\r\n */\n }, {\n key: \"max\",\n value: function max(field) {\n var _context5;\n var max = null;\n var maxField = null;\n var _iterator = _createForOfIteratorHelper$1(_valuesInstanceProperty(_context5 = this._data).call(_context5)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (maxField == null || itemField > maxField)) {\n max = item;\n maxField = itemField;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return max || null;\n }\n /**\r\n * Find the item with minimum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for min value.\r\n * @returns Item containing min value, or null if no items.\r\n */\n }, {\n key: \"min\",\n value: function min(field) {\n var _context6;\n var min = null;\n var minField = null;\n var _iterator2 = _createForOfIteratorHelper$1(_valuesInstanceProperty(_context6 = this._data).call(_context6)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var item = _step2.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (minField == null || itemField < minField)) {\n min = item;\n minField = itemField;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n return min || null;\n }\n /**\r\n * Find all distinct values of a specified field\r\n *\r\n * @param prop - The property name whose distinct values should be returned.\r\n * @returns Unordered array containing all distinct values. Items without specified property are ignored.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(prop) {\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var values = [];\n var count = 0;\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data.get(id);\n var value = item[prop];\n var exists = false;\n for (var j = 0; j < count; j++) {\n if (values[j] == value) {\n exists = true;\n break;\n }\n }\n if (!exists && value !== undefined) {\n values[count] = value;\n count++;\n }\n }\n return values;\n }\n /**\r\n * Add a single item. Will fail when an item with the same id already exists.\r\n *\r\n * @param item - A new item to be added.\r\n * @returns Added item's id. An id is generated when it is not present in the item.\r\n */\n }, {\n key: \"_addItem\",\n value: function _addItem(item) {\n var fullItem = ensureFullItem(item, this._idProp);\n var id = fullItem[this._idProp];\n // check whether this id is already taken\n if (this._data.has(id)) {\n // item already exists\n throw new Error(\"Cannot add item: item with id \" + id + \" already exists\");\n }\n this._data.set(id, fullItem);\n ++this.length;\n return id;\n }\n /**\r\n * Update a single item: merge with existing item.\r\n * Will fail when the item has no id, or when there does not exist an item with the same id.\r\n *\r\n * @param update - The new item\r\n * @returns The id of the updated item.\r\n */\n }, {\n key: \"_updateItem\",\n value: function _updateItem(update) {\n var id = update[this._idProp];\n if (id == null) {\n throw new Error(\"Cannot update item: item has no id (item: \" + _JSON$stringify(update) + \")\");\n }\n var item = this._data.get(id);\n if (!item) {\n // item doesn't exist\n throw new Error(\"Cannot update item: no item with id \" + id + \" found\");\n }\n this._data.set(id, _objectSpread(_objectSpread({}, item), update));\n return id;\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n if (ids) {\n var data = this._data;\n return new DataStream({\n [_Symbol$iterator]() {\n return /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _iterator3, _step3, id, item;\n return _regeneratorRuntime.wrap(function _callee$(_context7) {\n while (1) switch (_context7.prev = _context7.next) {\n case 0:\n _iterator3 = _createForOfIteratorHelper$1(ids);\n _context7.prev = 1;\n _iterator3.s();\n case 3:\n if ((_step3 = _iterator3.n()).done) {\n _context7.next = 11;\n break;\n }\n id = _step3.value;\n item = data.get(id);\n if (!(item != null)) {\n _context7.next = 9;\n break;\n }\n _context7.next = 9;\n return [id, item];\n case 9:\n _context7.next = 3;\n break;\n case 11:\n _context7.next = 16;\n break;\n case 13:\n _context7.prev = 13;\n _context7.t0 = _context7[\"catch\"](1);\n _iterator3.e(_context7.t0);\n case 16:\n _context7.prev = 16;\n _iterator3.f();\n return _context7.finish(16);\n case 19:\n case \"end\":\n return _context7.stop();\n }\n }, _callee, null, [[1, 13, 16, 19]]);\n })();\n }\n });\n } else {\n var _context8;\n return new DataStream({\n [_Symbol$iterator]: _bindInstanceProperty$1(_context8 = _entriesInstanceProperty(this._data)).call(_context8, this._data)\n });\n }\n }\n }]);\n return DataSet;\n }(DataSetPart);\n\n function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n function _unsupportedIterableToArray(o, minLen) { var _context5; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context5 = Object.prototype.toString.call(o)).call(_context5, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n /**\r\n * DataView\r\n *\r\n * A DataView offers a filtered and/or formatted view on a DataSet. One can subscribe to changes in a DataView, and easily get filtered or formatted data without having to specify filters and field types all the time.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * var data = new vis.DataSet();\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // create a DataView\r\n * // the view will only contain items having a property group with value 1,\r\n * // and will only output fields id, text, and date.\r\n * var view = new vis.DataView(data, {\r\n * filter: function (item) {\r\n * return (item.group == 1);\r\n * },\r\n * fields: ['id', 'text', 'date']\r\n * });\r\n *\r\n * // subscribe to any change in the DataView\r\n * view.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an item in the data set\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // get all ids in the view\r\n * var ids = view.getIds();\r\n * console.log('ids', ids); // will output [1, 2]\r\n *\r\n * // get all items in the view\r\n * var items = view.get();\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\n var DataView = /*#__PURE__*/function (_DataSetPart) {\n _inherits(DataView, _DataSetPart);\n var _super = _createSuper(DataView);\n // ids of the items currently in memory (just contains a boolean true)\n\n /**\r\n * Create a DataView.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @param options - Options to configure this data view.\r\n */\n function DataView(data, options) {\n var _context;\n var _this;\n _classCallCheck(this, DataView);\n _this = _super.call(this);\n /** @inheritDoc */\n _defineProperty(_assertThisInitialized(_this), \"length\", 0);\n // constructor → setData\n _defineProperty(_assertThisInitialized(_this), \"_ids\", new _Set());\n _this._options = options || {};\n _this._listener = _bindInstanceProperty$1(_context = _this._onEvent).call(_context, _assertThisInitialized(_this));\n _this.setData(data);\n return _this;\n }\n // TODO: implement a function .config() to dynamically update things like configured filter\n // and trigger changes accordingly\n /**\r\n * Set a data source for the view.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @remarks\r\n * Note that when the data view is bound to a data set it won't be garbage\r\n * collected unless the data set is too. Use `dataView.setData(null)` or\r\n * `dataView.dispose()` to enable garbage collection before you lose the last\r\n * reference.\r\n */\n _createClass(DataView, [{\n key: \"idProp\",\n get: /** @inheritDoc */\n function get() {\n return this.getDataSet().idProp;\n }\n }, {\n key: \"setData\",\n value: function setData(data) {\n if (this._data) {\n // unsubscribe from current dataset\n if (this._data.off) {\n this._data.off(\"*\", this._listener);\n }\n // trigger a remove of all items in memory\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var items = this._data.get(ids);\n this._ids.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n });\n }\n if (data != null) {\n this._data = data;\n // trigger an add of all added items\n var _ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n for (var i = 0, len = _ids.length; i < len; i++) {\n var id = _ids[i];\n this._ids.add(id);\n }\n this.length = _ids.length;\n this._trigger(\"add\", {\n items: _ids\n });\n } else {\n this._data = new DataSet();\n }\n // subscribe to new dataset\n if (this._data.on) {\n this._data.on(\"*\", this._listener);\n }\n }\n /**\r\n * Refresh the DataView.\r\n * Useful when the DataView has a filter function containing a variable parameter.\r\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var oldIds = _toConsumableArray(this._ids);\n var newIds = {};\n var addedIds = [];\n var removedIds = [];\n var removedItems = [];\n // check for additions\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n newIds[id] = true;\n if (!this._ids.has(id)) {\n addedIds.push(id);\n this._ids.add(id);\n }\n }\n // check for removals\n for (var _i = 0, _len = oldIds.length; _i < _len; _i++) {\n var _id = oldIds[_i];\n var item = this._data.get(_id);\n if (item == null) {\n // @TODO: Investigate.\n // Doesn't happen during tests or examples.\n // Is it really impossible or could it eventually happen?\n // How to handle it if it does? The types guarantee non-nullable items.\n console.error(\"If you see this, report it please.\");\n } else if (!newIds[_id]) {\n removedIds.push(_id);\n removedItems.push(item);\n this._ids.delete(_id);\n }\n }\n this.length += addedIds.length - removedIds.length;\n // trigger events\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n });\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n if (this._data == null) {\n return null;\n }\n // parse the arguments\n var ids = null;\n var options;\n if (isId(first) || _Array$isArray(first)) {\n ids = first;\n options = second;\n } else {\n options = first;\n }\n // extend the options with the default options and provided options\n var viewOptions = _Object$assign({}, this._options, options);\n // create a combined filter method when needed\n var thisFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n if (thisFilter && optionsFilter) {\n viewOptions.filter = function (item) {\n return thisFilter(item) && optionsFilter(item);\n };\n }\n if (ids == null) {\n return this._data.get(viewOptions);\n } else {\n return this._data.get(ids, viewOptions);\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n if (this._data.length) {\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options != null ? _filterInstanceProperty(options) : null;\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return this._data.getIds({\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n if (this._data) {\n var _context2;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n _forEachInstanceProperty(_context2 = this._data).call(_context2, callback, {\n filter: filter,\n order: options && options.order\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n if (this._data) {\n var _context3;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return _mapInstanceProperty(_context3 = this._data).call(_context3, callback, {\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this._data.getDataSet();\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n var _context4;\n return this._data.stream(ids || {\n [_Symbol$iterator]: _bindInstanceProperty$1(_context4 = _keysInstanceProperty(this._ids)).call(_context4, this._ids)\n });\n }\n /**\r\n * Render the instance unusable prior to garbage collection.\r\n *\r\n * @remarks\r\n * The intention of this method is to help discover scenarios where the data\r\n * view is being used when the programmer thinks it has been garbage collected\r\n * already. It's stricter version of `dataView.setData(null)`.\r\n */\n }, {\n key: \"dispose\",\n value: function dispose() {\n var _this$_data;\n if ((_this$_data = this._data) !== null && _this$_data !== void 0 && _this$_data.off) {\n this._data.off(\"*\", this._listener);\n }\n var message = \"This data view has already been disposed of.\";\n var replacement = {\n get: function get() {\n throw new Error(message);\n },\n set: function set() {\n throw new Error(message);\n },\n configurable: false\n };\n var _iterator = _createForOfIteratorHelper(_Reflect$ownKeys(DataView.prototype)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var key = _step.value;\n _Object$defineProperty(this, key, replacement);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n /**\r\n * Event listener. Will propagate all events from the connected data set to the subscribers of the DataView, but will filter the items and only trigger when there are changes in the filtered data set.\r\n *\r\n * @param event - The name of the event.\r\n * @param params - Parameters of the event.\r\n * @param senderId - Id supplied by the sender.\r\n */\n }, {\n key: \"_onEvent\",\n value: function _onEvent(event, params, senderId) {\n if (!params || !params.items || !this._data) {\n return;\n }\n var ids = params.items;\n var addedIds = [];\n var updatedIds = [];\n var removedIds = [];\n var oldItems = [];\n var updatedItems = [];\n var removedItems = [];\n switch (event) {\n case \"add\":\n // filter the ids of the added items\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n var item = this.get(id);\n if (item) {\n this._ids.add(id);\n addedIds.push(id);\n }\n }\n break;\n case \"update\":\n // determine the event from the views viewpoint: an updated\n // item can be added, updated, or removed from this view.\n for (var _i2 = 0, _len2 = ids.length; _i2 < _len2; _i2++) {\n var _id2 = ids[_i2];\n var _item = this.get(_id2);\n if (_item) {\n if (this._ids.has(_id2)) {\n updatedIds.push(_id2);\n updatedItems.push(params.data[_i2]);\n oldItems.push(params.oldData[_i2]);\n } else {\n this._ids.add(_id2);\n addedIds.push(_id2);\n }\n } else {\n if (this._ids.has(_id2)) {\n this._ids.delete(_id2);\n removedIds.push(_id2);\n removedItems.push(params.oldData[_i2]);\n }\n }\n }\n break;\n case \"remove\":\n // filter the ids of the removed items\n for (var _i3 = 0, _len3 = ids.length; _i3 < _len3; _i3++) {\n var _id3 = ids[_i3];\n if (this._ids.has(_id3)) {\n this._ids.delete(_id3);\n removedIds.push(_id3);\n removedItems.push(params.oldData[_i3]);\n }\n }\n break;\n }\n this.length += addedIds.length - removedIds.length;\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n this._trigger(\"update\", {\n items: updatedIds,\n oldData: oldItems,\n data: updatedItems\n }, senderId);\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n }\n }]);\n return DataView;\n }(DataSetPart);\n\n /**\r\n * Check that given value is compatible with Vis Data Set interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\n function isDataSetLike(idProp, v) {\n return typeof v === \"object\" && v !== null && idProp === v.idProp && typeof v.add === \"function\" && typeof v.clear === \"function\" && typeof v.distinct === \"function\" && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.max === \"function\" && typeof v.min === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.remove === \"function\" && typeof v.setOptions === \"function\" && typeof v.stream === \"function\" && typeof v.update === \"function\" && typeof v.updateOnly === \"function\";\n }\n\n /**\r\n * Check that given value is compatible with Vis Data View interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\n function isDataViewLike(idProp, v) {\n return typeof v === \"object\" && v !== null && idProp === v.idProp && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.stream === \"function\" && isDataSetLike(idProp, v.getDataSet());\n }\n\n exports.DELETE = DELETE;\n exports.DataSet = DataSet;\n exports.DataStream = DataStream;\n exports.DataView = DataView;\n exports.Queue = Queue;\n exports.createNewDataPipeFrom = createNewDataPipeFrom;\n exports.isDataSetLike = isDataSetLike;\n exports.isDataViewLike = isDataViewLike;\n\n}));\n//# sourceMappingURL=vis-data.js.map\n","/**\n * vis-data\n * http://visjs.org/\n *\n * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.\n *\n * @version 7.1.9\n * @date 2023-11-24T17:53:34.179Z\n *\n * @copyright (c) 2011-2017 Almende B.V, http://almende.com\n * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n *\n * @license\n * vis.js is dual licensed under both\n *\n * 1. The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * 2. The MIT License\n * http://opensource.org/licenses/MIT\n *\n * vis.js may be distributed under either license.\n */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){function e(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var r=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}var o={exports:{}},i=function(t){return t&&t.Math===Math&&t},a=i(\"object\"==typeof globalThis&&globalThis)||i(\"object\"==typeof window&&window)||i(\"object\"==typeof self&&self)||i(\"object\"==typeof r&&r)||function(){return this}()||r||Function(\"return this\")(),u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){var t=function(){}.bind();return\"function\"!=typeof t||t.hasOwnProperty(\"prototype\")})),c=s,f=Function.prototype,l=f.apply,h=f.call,p=\"object\"==typeof Reflect&&Reflect.apply||(c?h.bind(l):function(){return h.apply(l,arguments)}),v=s,d=Function.prototype,y=d.call,g=v&&d.bind.bind(y,y),m=v?g:function(t){return function(){return y.apply(t,arguments)}},b=m,w=b({}.toString),_=b(\"\".slice),T=function(t){return _(w(t),8,-1)},E=T,O=m,S=function(t){if(\"Function\"===E(t))return O(t)},x=\"object\"==typeof document&&document.all,k={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},j=k.all,A=k.IS_HTMLDDA?function(t){return\"function\"==typeof t||t===j}:function(t){return\"function\"==typeof t},P={},I=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=s,L=Function.prototype.call,C=D?L.bind(L):function(){return L.apply(L,arguments)},R={},M={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,F=N&&!M.call({1:2},1);R.f=F?function(t){var e=N(this,t);return!!e&&e.enumerable}:M;var z,U,q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},W=u,Y=T,G=Object,X=m(\"\".split),V=W((function(){return!G(\"z\").propertyIsEnumerable(0)}))?function(t){return\"String\"===Y(t)?X(t,\"\"):G(t)}:G,B=function(t){return null==t},H=B,K=TypeError,J=function(t){if(H(t))throw new K(\"Can't call method on \"+t);return t},$=V,Q=J,Z=function(t){return $(Q(t))},tt=A,et=k.all,rt=k.IS_HTMLDDA?function(t){return\"object\"==typeof t?null!==t:tt(t)||t===et}:function(t){return\"object\"==typeof t?null!==t:tt(t)},nt={},ot=nt,it=a,at=A,ut=function(t){return at(t)?t:void 0},st=function(t,e){return arguments.length<2?ut(ot[t])||ut(it[t]):ot[t]&&ot[t][e]||it[t]&&it[t][e]},ct=m({}.isPrototypeOf),ft=\"undefined\"!=typeof navigator&&String(navigator.userAgent)||\"\",lt=a,ht=ft,pt=lt.process,vt=lt.Deno,dt=pt&&pt.versions||vt&&vt.version,yt=dt&&dt.v8;yt&&(U=(z=yt.split(\".\"))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!U&&ht&&(!(z=ht.match(/Edge\\/(\\d+)/))||z[1]>=74)&&(z=ht.match(/Chrome\\/(\\d+)/))&&(U=+z[1]);var gt=U,mt=gt,bt=u,wt=a.String,_t=!!Object.getOwnPropertySymbols&&!bt((function(){var t=Symbol(\"symbol detection\");return!wt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),Tt=_t&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Et=st,Ot=A,St=ct,xt=Object,kt=Tt?function(t){return\"symbol\"==typeof t}:function(t){var e=Et(\"Symbol\");return Ot(e)&&St(e.prototype,xt(t))},jt=String,At=function(t){try{return jt(t)}catch(t){return\"Object\"}},Pt=A,It=At,Dt=TypeError,Lt=function(t){if(Pt(t))return t;throw new Dt(It(t)+\" is not a function\")},Ct=Lt,Rt=B,Mt=function(t,e){var r=t[e];return Rt(r)?void 0:Ct(r)},Nt=C,Ft=A,zt=rt,Ut=TypeError,qt={exports:{}},Wt=a,Yt=Object.defineProperty,Gt=function(t,e){try{Yt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(r){Wt[t]=e}return e},Xt=\"__core-js_shared__\",Vt=a[Xt]||Gt(Xt,{}),Bt=Vt;(qt.exports=function(t,e){return Bt[t]||(Bt[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.33.2\",mode:\"pure\",copyright:\"© 2014-2023 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE\",source:\"https://github.com/zloirock/core-js\"});var Ht=qt.exports,Kt=J,Jt=Object,$t=function(t){return Jt(Kt(t))},Qt=$t,Zt=m({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Zt(Qt(t),e)},ee=m,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+oe(++re+ne,36)},ae=Ht,ue=te,se=ie,ce=_t,fe=Tt,le=a.Symbol,he=ae(\"wks\"),pe=fe?le.for||le:le&&le.withoutSetter||se,ve=function(t){return ue(he,t)||(he[t]=ce&&ue(le,t)?le[t]:pe(\"Symbol.\"+t)),he[t]},de=C,ye=rt,ge=kt,me=Mt,be=function(t,e){var r,n;if(\"string\"===e&&Ft(r=t.toString)&&!zt(n=Nt(r,t)))return n;if(Ft(r=t.valueOf)&&!zt(n=Nt(r,t)))return n;if(\"string\"!==e&&Ft(r=t.toString)&&!zt(n=Nt(r,t)))return n;throw new Ut(\"Can't convert object to primitive value\")},we=TypeError,_e=ve(\"toPrimitive\"),Te=function(t,e){if(!ye(t)||ge(t))return t;var r,n=me(t,_e);if(n){if(void 0===e&&(e=\"default\"),r=de(n,t,e),!ye(r)||ge(r))return r;throw new we(\"Can't convert object to primitive value\")}return void 0===e&&(e=\"number\"),be(t,e)},Ee=kt,Oe=function(t){var e=Te(t,\"string\");return Ee(e)?e:e+\"\"},Se=rt,xe=a.document,ke=Se(xe)&&Se(xe.createElement),je=function(t){return ke?xe.createElement(t):{}},Ae=je,Pe=!I&&!u((function(){return 7!==Object.defineProperty(Ae(\"div\"),\"a\",{get:function(){return 7}}).a})),Ie=I,De=C,Le=R,Ce=q,Re=Z,Me=Oe,Ne=te,Fe=Pe,ze=Object.getOwnPropertyDescriptor;P.f=Ie?ze:function(t,e){if(t=Re(t),e=Me(e),Fe)try{return ze(t,e)}catch(t){}if(Ne(t,e))return Ce(!De(Le.f,t,e),t[e])};var Ue=u,qe=A,We=/#|\\.prototype\\./,Ye=function(t,e){var r=Xe[Ge(t)];return r===Be||r!==Ve&&(qe(e)?Ue(e):!!e)},Ge=Ye.normalize=function(t){return String(t).replace(We,\".\").toLowerCase()},Xe=Ye.data={},Ve=Ye.NATIVE=\"N\",Be=Ye.POLYFILL=\"P\",He=Ye,Ke=Lt,Je=s,$e=S(S.bind),Qe=function(t,e){return Ke(t),void 0===e?t:Je?$e(t,e):function(){return t.apply(e,arguments)}},Ze={},tr=I&&u((function(){return 42!==Object.defineProperty((function(){}),\"prototype\",{value:42,writable:!1}).prototype})),er=rt,rr=String,nr=TypeError,or=function(t){if(er(t))return t;throw new nr(rr(t)+\" is not an object\")},ir=I,ar=Pe,ur=tr,sr=or,cr=Oe,fr=TypeError,lr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,pr=\"enumerable\",vr=\"configurable\",dr=\"writable\";Ze.f=ir?ur?function(t,e,r){if(sr(t),e=cr(e),sr(r),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in r&&dr in r&&!r[dr]){var n=hr(t,e);n&&n[dr]&&(t[e]=r.value,r={configurable:vr in r?r[vr]:n[vr],enumerable:pr in r?r[pr]:n[pr],writable:!1})}return lr(t,e,r)}:lr:function(t,e,r){if(sr(t),e=cr(e),sr(r),ar)try{return lr(t,e,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw new fr(\"Accessors not supported\");return\"value\"in r&&(t[e]=r.value),t};var yr=Ze,gr=q,mr=I?function(t,e,r){return yr.f(t,e,gr(1,r))}:function(t,e,r){return t[e]=r,t},br=a,wr=p,_r=S,Tr=A,Er=P.f,Or=He,Sr=nt,xr=Qe,kr=mr,jr=te,Ar=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return wr(t,this,arguments)};return e.prototype=t.prototype,e},Pr=function(t,e){var r,n,o,i,a,u,s,c,f,l=t.target,h=t.global,p=t.stat,v=t.proto,d=h?br:p?br[l]:(br[l]||{}).prototype,y=h?Sr:Sr[l]||kr(Sr,l,{})[l],g=y.prototype;for(i in e)n=!(r=Or(h?i:l+(p?\".\":\"#\")+i,t.forced))&&d&&jr(d,i),u=y[i],n&&(s=t.dontCallGetSet?(f=Er(d,i))&&f.value:d[i]),a=n&&s?s:e[i],n&&typeof u==typeof a||(c=t.bind&&n?xr(a,br):t.wrap&&n?Ar(a):v&&Tr(a)?_r(a):a,(t.sham||a&&a.sham||u&&u.sham)&&kr(c,\"sham\",!0),kr(y,i,c),v&&(jr(Sr,o=l+\"Prototype\")||kr(Sr,o,{}),kr(Sr[o],i,a),t.real&&g&&(r||!g[i])&&kr(g,i,a)))},Ir=Pr,Dr=I,Lr=Ze.f;Ir({target:\"Object\",stat:!0,forced:Object.defineProperty!==Lr,sham:!Dr},{defineProperty:Lr});var Cr=nt.Object,Rr=o.exports=function(t,e,r){return Cr.defineProperty(t,e,r)};Cr.defineProperty.sham&&(Rr.sham=!0);var Mr=o.exports,Nr=Mr,Fr=n(Nr),zr=T,Ur=Array.isArray||function(t){return\"Array\"===zr(t)},qr=Math.ceil,Wr=Math.floor,Yr=Math.trunc||function(t){var e=+t;return(e>0?Wr:qr)(e)},Gr=function(t){var e=+t;return e!=e||0===e?0:Yr(e)},Xr=Gr,Vr=Math.min,Br=function(t){return t>0?Vr(Xr(t),9007199254740991):0},Hr=function(t){return Br(t.length)},Kr=TypeError,Jr=function(t){if(t>9007199254740991)throw Kr(\"Maximum allowed index exceeded\");return t},$r=Oe,Qr=Ze,Zr=q,tn=function(t,e,r){var n=$r(e);n in t?Qr.f(t,n,Zr(0,r)):t[n]=r},en={};en[ve(\"toStringTag\")]=\"z\";var rn=\"[object z]\"===String(en),nn=rn,on=A,an=T,un=ve(\"toStringTag\"),sn=Object,cn=\"Arguments\"===an(function(){return arguments}()),fn=nn?an:function(t){var e,r,n;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=sn(t),un))?r:cn?an(e):\"Object\"===(n=an(e))&&on(e.callee)?\"Arguments\":n},ln=A,hn=Vt,pn=m(Function.toString);ln(hn.inspectSource)||(hn.inspectSource=function(t){return pn(t)});var vn=hn.inspectSource,dn=m,yn=u,gn=A,mn=fn,bn=vn,wn=function(){},_n=[],Tn=st(\"Reflect\",\"construct\"),En=/^\\s*(?:class|function)\\b/,On=dn(En.exec),Sn=!En.test(wn),xn=function(t){if(!gn(t))return!1;try{return Tn(wn,_n,t),!0}catch(t){return!1}},kn=function(t){if(!gn(t))return!1;switch(mn(t)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1}try{return Sn||!!On(En,bn(t))}catch(t){return!0}};kn.sham=!0;var jn=!Tn||yn((function(){var t;return xn(xn.call)||!xn(Object)||!xn((function(){t=!0}))||t}))?kn:xn,An=Ur,Pn=jn,In=rt,Dn=ve(\"species\"),Ln=Array,Cn=function(t){var e;return An(t)&&(e=t.constructor,(Pn(e)&&(e===Ln||An(e.prototype))||In(e)&&null===(e=e[Dn]))&&(e=void 0)),void 0===e?Ln:e},Rn=function(t,e){return new(Cn(t))(0===e?0:e)},Mn=u,Nn=gt,Fn=ve(\"species\"),zn=function(t){return Nn>=51||!Mn((function(){var e=[];return(e.constructor={})[Fn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Un=Pr,qn=u,Wn=Ur,Yn=rt,Gn=$t,Xn=Hr,Vn=Jr,Bn=tn,Hn=Rn,Kn=zn,Jn=gt,$n=ve(\"isConcatSpreadable\"),Qn=Jn>=51||!qn((function(){var t=[];return t[$n]=!1,t.concat()[0]!==t})),Zn=function(t){if(!Yn(t))return!1;var e=t[$n];return void 0!==e?!!e:Wn(t)};Un({target:\"Array\",proto:!0,arity:1,forced:!Qn||!Kn(\"concat\")},{concat:function(t){var e,r,n,o,i,a=Gn(this),u=Hn(a,0),s=0;for(e=-1,n=arguments.length;eu;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},ho={includes:lo(!0),indexOf:lo(!1)},po={},vo=te,yo=Z,go=ho.indexOf,mo=po,bo=m([].push),wo=function(t,e){var r,n=yo(t),o=0,i=[];for(r in n)!vo(mo,r)&&vo(n,r)&&bo(i,r);for(;e.length>o;)vo(n,r=e[o++])&&(~go(i,r)||bo(i,r));return i},_o=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],To=wo,Eo=_o,Oo=Object.keys||function(t){return To(t,Eo)},So=I,xo=tr,ko=Ze,jo=or,Ao=Z,Po=Oo;no.f=So&&!xo?Object.defineProperties:function(t,e){jo(t);for(var r,n=Ao(e),o=Po(e),i=o.length,a=0;i>a;)ko.f(t,r=o[a++],n[r]);return t};var Io,Do=st(\"document\",\"documentElement\"),Lo=ie,Co=Ht(\"keys\"),Ro=function(t){return Co[t]||(Co[t]=Lo(t))},Mo=or,No=no,Fo=_o,zo=po,Uo=Do,qo=je,Wo=\"prototype\",Yo=\"script\",Go=Ro(\"IE_PROTO\"),Xo=function(){},Vo=function(t){return\"<\"+Yo+\">\"+t+\"\"},Bo=function(t){t.write(Vo(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e},Ho=function(){try{Io=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,r;Ho=\"undefined\"!=typeof document?document.domain&&Io?Bo(Io):(e=qo(\"iframe\"),r=\"java\"+Yo+\":\",e.style.display=\"none\",Uo.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Vo(\"document.F=Object\")),t.close(),t.F):Bo(Io);for(var n=Fo.length;n--;)delete Ho[Wo][Fo[n]];return Ho()};zo[Go]=!0;var Ko=Object.create||function(t,e){var r;return null!==t?(Xo[Wo]=Mo(t),r=new Xo,Xo[Wo]=null,r[Go]=t):r=Ho(),void 0===e?r:No.f(r,e)},Jo={},$o=wo,Qo=_o.concat(\"length\",\"prototype\");Jo.f=Object.getOwnPropertyNames||function(t){return $o(t,Qo)};var Zo={},ti=uo,ei=Hr,ri=tn,ni=Array,oi=Math.max,ii=function(t,e,r){for(var n=ei(t),o=ti(e,n),i=ti(void 0===r?n:r,n),a=ni(oi(i-o,0)),u=0;om;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:ua(w,h)}else switch(t){case 4:return!1;case 7:ua(w,h)}return i?-1:n||o?o:w}},ca={forEach:sa(0),map:sa(1),filter:sa(2),some:sa(3),every:sa(4),find:sa(5),findIndex:sa(6),filterReject:sa(7)},fa=Pr,la=a,ha=C,pa=m,va=I,da=_t,ya=u,ga=te,ma=ct,ba=or,wa=Z,_a=Oe,Ta=ro,Ea=q,Oa=Ko,Sa=Oo,xa=Jo,ka=Zo,ja=li,Aa=P,Pa=Ze,Ia=no,Da=R,La=pi,Ca=di,Ra=Ht,Ma=po,Na=ie,Fa=ve,za=yi,Ua=Si,qa=Pi,Wa=zi,Ya=ea,Ga=ca.forEach,Xa=Ro(\"hidden\"),Va=\"Symbol\",Ba=\"prototype\",Ha=Ya.set,Ka=Ya.getterFor(Va),Ja=Object[Ba],$a=la.Symbol,Qa=$a&&$a[Ba],Za=la.RangeError,tu=la.TypeError,eu=la.QObject,ru=Aa.f,nu=Pa.f,ou=ka.f,iu=Da.f,au=pa([].push),uu=Ra(\"symbols\"),su=Ra(\"op-symbols\"),cu=Ra(\"wks\"),fu=!eu||!eu[Ba]||!eu[Ba].findChild,lu=function(t,e,r){var n=ru(Ja,e);n&&delete Ja[e],nu(t,e,r),n&&t!==Ja&&nu(Ja,e,n)},hu=va&&ya((function(){return 7!==Oa(nu({},\"a\",{get:function(){return nu(this,\"a\",{value:7}).a}})).a}))?lu:nu,pu=function(t,e){var r=uu[t]=Oa(Qa);return Ha(r,{type:Va,tag:t,description:e}),va||(r.description=e),r},vu=function(t,e,r){t===Ja&&vu(su,e,r),ba(t);var n=_a(e);return ba(r),ga(uu,n)?(r.enumerable?(ga(t,Xa)&&t[Xa][n]&&(t[Xa][n]=!1),r=Oa(r,{enumerable:Ea(0,!1)})):(ga(t,Xa)||nu(t,Xa,Ea(1,{})),t[Xa][n]=!0),hu(t,n,r)):nu(t,n,r)},du=function(t,e){ba(t);var r=wa(e),n=Sa(r).concat(bu(r));return Ga(n,(function(e){va&&!ha(yu,r,e)||vu(t,e,r[e])})),t},yu=function(t){var e=_a(t),r=ha(iu,this,e);return!(this===Ja&&ga(uu,e)&&!ga(su,e))&&(!(r||!ga(this,e)||!ga(uu,e)||ga(this,Xa)&&this[Xa][e])||r)},gu=function(t,e){var r=wa(t),n=_a(e);if(r!==Ja||!ga(uu,n)||ga(su,n)){var o=ru(r,n);return!o||!ga(uu,n)||ga(r,Xa)&&r[Xa][n]||(o.enumerable=!0),o}},mu=function(t){var e=ou(wa(t)),r=[];return Ga(e,(function(t){ga(uu,t)||ga(Ma,t)||au(r,t)})),r},bu=function(t){var e=t===Ja,r=ou(e?su:wa(t)),n=[];return Ga(r,(function(t){!ga(uu,t)||e&&!ga(Ja,t)||au(n,uu[t])})),n};da||($a=function(){if(ma(Qa,this))throw new tu(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?Ta(arguments[0]):void 0,e=Na(t),r=function(t){var n=void 0===this?la:this;n===Ja&&ha(r,su,t),ga(n,Xa)&&ga(n[Xa],e)&&(n[Xa][e]=!1);var o=Ea(1,t);try{hu(n,e,o)}catch(t){if(!(t instanceof Za))throw t;lu(n,e,o)}};return va&&fu&&hu(Ja,e,{configurable:!0,set:r}),pu(e,t)},La(Qa=$a[Ba],\"toString\",(function(){return Ka(this).tag})),La($a,\"withoutSetter\",(function(t){return pu(Na(t),t)})),Da.f=yu,Pa.f=vu,Ia.f=du,Aa.f=gu,xa.f=ka.f=mu,ja.f=bu,za.f=function(t){return pu(Fa(t),t)},va&&Ca(Qa,\"description\",{configurable:!0,get:function(){return Ka(this).description}})),fa({global:!0,constructor:!0,wrap:!0,forced:!da,sham:!da},{Symbol:$a}),Ga(Sa(cu),(function(t){Ua(t)})),fa({target:Va,stat:!0,forced:!da},{useSetter:function(){fu=!0},useSimple:function(){fu=!1}}),fa({target:\"Object\",stat:!0,forced:!da,sham:!va},{create:function(t,e){return void 0===e?Oa(t):du(Oa(t),e)},defineProperty:vu,defineProperties:du,getOwnPropertyDescriptor:gu}),fa({target:\"Object\",stat:!0,forced:!da},{getOwnPropertyNames:mu}),qa(),Wa($a,Va),Ma[Xa]=!0;var wu=_t&&!!Symbol.for&&!!Symbol.keyFor,_u=Pr,Tu=st,Eu=te,Ou=ro,Su=Ht,xu=wu,ku=Su(\"string-to-symbol-registry\"),ju=Su(\"symbol-to-string-registry\");_u({target:\"Symbol\",stat:!0,forced:!xu},{for:function(t){var e=Ou(t);if(Eu(ku,e))return ku[e];var r=Tu(\"Symbol\")(e);return ku[e]=r,ju[r]=e,r}});var Au=Pr,Pu=te,Iu=kt,Du=At,Lu=wu,Cu=Ht(\"symbol-to-string-registry\");Au({target:\"Symbol\",stat:!0,forced:!Lu},{keyFor:function(t){if(!Iu(t))throw new TypeError(Du(t)+\" is not a symbol\");if(Pu(Cu,t))return Cu[t]}});var Ru=m([].slice),Mu=Ur,Nu=A,Fu=T,zu=ro,Uu=m([].push),qu=Pr,Wu=st,Yu=p,Gu=C,Xu=m,Vu=u,Bu=A,Hu=kt,Ku=Ru,Ju=function(t){if(Nu(t))return t;if(Mu(t)){for(var e=t.length,r=[],n=0;n=e.length)return t.target=void 0,Pc(void 0,!0);switch(t.kind){case\"keys\":return Pc(r,!1);case\"values\":return Pc(e[r],!1)}return Pc([r,e[r]],!1)}),\"values\"),kc.Arguments=kc.Array;var Cc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Rc=a,Mc=fn,Nc=mr,Fc=_s,zc=ve(\"toStringTag\");for(var Uc in Cc){var qc=Rc[Uc],Wc=qc&&qc.prototype;Wc&&Mc(Wc)!==zc&&Nc(Wc,zc,Uc),Fc[Uc]=Fc.Array}var Yc=ws,Gc=ve,Xc=Ze.f,Vc=Gc(\"metadata\"),Bc=Function.prototype;void 0===Bc[Vc]&&Xc(Bc,Vc,{value:null}),Si(\"asyncDispose\"),Si(\"dispose\"),Si(\"metadata\");var Hc=Yc,Kc=m,Jc=st(\"Symbol\"),$c=Jc.keyFor,Qc=Kc(Jc.prototype.valueOf),Zc=Jc.isRegisteredSymbol||function(t){try{return void 0!==$c(Qc(t))}catch(t){return!1}};Pr({target:\"Symbol\",stat:!0},{isRegisteredSymbol:Zc});for(var tf=Ht,ef=st,rf=m,nf=kt,of=ve,af=ef(\"Symbol\"),uf=af.isWellKnownSymbol,sf=ef(\"Object\",\"getOwnPropertyNames\"),cf=rf(af.prototype.valueOf),ff=tf(\"wks\"),lf=0,hf=sf(af),pf=hf.length;lf=u?t?\"\":void 0:(n=Ef(i,a))<55296||n>56319||a+1===u||(o=Ef(i,a+1))<56320||o>57343?t?Tf(i,a):n:t?Of(i,a,a+2):o-56320+(n-55296<<10)+65536}},xf={codeAt:Sf(!1),charAt:Sf(!0)}.charAt,kf=ro,jf=ea,Af=Oc,Pf=Sc,If=\"String Iterator\",Df=jf.set,Lf=jf.getterFor(If);Af(String,\"String\",(function(t){Df(this,{type:If,string:kf(t),index:0})}),(function(){var t,e=Lf(this),r=e.string,n=e.index;return n>=r.length?Pf(void 0,!0):(t=xf(r,n),e.index+=t.length,Pf(t,!1))}));var Cf=yi.f(\"iterator\"),Rf=Cf,Mf=n(Rf);function Nf(t){return Nf=\"function\"==typeof gf&&\"symbol\"==typeof Mf?function(t){return typeof t}:function(t){return t&&\"function\"==typeof gf&&t.constructor===gf&&t!==gf.prototype?\"symbol\":typeof t},Nf(t)}var Ff=n(yi.f(\"toPrimitive\"));function zf(t){var e=function(t,e){if(\"object\"!==Nf(t)||null===t)return t;var r=t[Ff];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!==Nf(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(t,\"string\");return\"symbol\"===Nf(e)?e:String(e)}function Uf(t,e){for(var r=0;r=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},yl={left:dl(!1),right:dl(!0)},gl=u,ml=function(t,e){var r=[][t];return!!r&&gl((function(){r.call(null,e||function(){return 1},1)}))},bl=\"process\"===T(a.process),wl=yl.left;Pr({target:\"Array\",proto:!0,forced:!bl&>>79&><83||!ml(\"reduce\")},{reduce:function(t){var e=arguments.length;return wl(this,t,e,e>1?arguments[1]:void 0)}});var _l=nl(\"Array\",\"reduce\"),Tl=ct,El=_l,Ol=Array.prototype,Sl=n((function(t){var e=t.reduce;return t===Ol||Tl(Ol,t)&&e===Ol.reduce?El:e})),xl=ca.filter;Pr({target:\"Array\",proto:!0,forced:!zn(\"filter\")},{filter:function(t){return xl(this,t,arguments.length>1?arguments[1]:void 0)}});var kl=nl(\"Array\",\"filter\"),jl=ct,Al=kl,Pl=Array.prototype,Il=n((function(t){var e=t.filter;return t===Pl||jl(Pl,t)&&e===Pl.filter?Al:e})),Dl=ca.map;Pr({target:\"Array\",proto:!0,forced:!zn(\"map\")},{map:function(t){return Dl(this,t,arguments.length>1?arguments[1]:void 0)}});var Ll=nl(\"Array\",\"map\"),Cl=ct,Rl=Ll,Ml=Array.prototype,Nl=n((function(t){var e=t.map;return t===Ml||Cl(Ml,t)&&e===Ml.map?Rl:e})),Fl=Ur,zl=Hr,Ul=Jr,ql=Qe,Wl=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ql(a,u);l0&&Fl(s)?(c=zl(s),f=Wl(t,e,s,c,f,i-1)-1):(Ul(f+1),t[f]=s),f++),l++;return f},Yl=Wl,Gl=Lt,Xl=$t,Vl=Hr,Bl=Rn;Pr({target:\"Array\",proto:!0},{flatMap:function(t){var e,r=Xl(this),n=Vl(r);return Gl(t),(e=Bl(r,0)).length=Yl(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var Hl=nl(\"Array\",\"flatMap\"),Kl=ct,Jl=Hl,$l=Array.prototype,Ql=n((function(t){var e=t.flatMap;return t===$l||Kl($l,t)&&e===$l.flatMap?Jl:e}));var Zl=function(){function t(r,n,o){var i,a,u;e(this,t),Wf(this,\"_listeners\",{add:cl(i=this._add).call(i,this),remove:cl(a=this._remove).call(a,this),update:cl(u=this._update).call(u,this)}),this._source=r,this._transformers=n,this._target=o}return qf(t,[{key:\"all\",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:\"start\",value:function(){return this._source.on(\"add\",this._listeners.add),this._source.on(\"remove\",this._listeners.remove),this._source.on(\"update\",this._listeners.update),this}},{key:\"stop\",value:function(){return this._source.off(\"add\",this._listeners.add),this._source.off(\"remove\",this._listeners.remove),this._source.off(\"update\",this._listeners.update),this}},{key:\"_transformItems\",value:function(t){var e;return Sl(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:\"_add\",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:\"_update\",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:\"_remove\",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),th=function(){function t(r){e(this,t),Wf(this,\"_transformers\",[]),this._source=r}return qf(t,[{key:\"filter\",value:function(t){return this._transformers.push((function(e){return Il(e).call(e,t)})),this}},{key:\"map\",value:function(t){return this._transformers.push((function(e){return Nl(e).call(e,t)})),this}},{key:\"flatMap\",value:function(t){return this._transformers.push((function(e){return Ql(e).call(e,t)})),this}},{key:\"to\",value:function(t){return new Zl(this._source,this._transformers,t)}}]),t}(),eh=C,rh=or,nh=Mt,oh=function(t,e,r){var n,o;rh(t);try{if(!(n=nh(t,\"return\"))){if(\"throw\"===e)throw r;return r}n=eh(n,t)}catch(t){o=!0,n=t}if(\"throw\"===e)throw r;if(o)throw n;return rh(n),r},ih=or,ah=oh,uh=_s,sh=ve(\"iterator\"),ch=Array.prototype,fh=function(t){return void 0!==t&&(uh.Array===t||ch[sh]===t)},lh=fn,hh=Mt,ph=B,vh=_s,dh=ve(\"iterator\"),yh=function(t){if(!ph(t))return hh(t,dh)||hh(t,\"@@iterator\")||vh[lh(t)]},gh=C,mh=Lt,bh=or,wh=At,_h=yh,Th=TypeError,Eh=function(t,e){var r=arguments.length<2?_h(t):e;if(mh(r))return bh(gh(r,t));throw new Th(wh(t)+\" is not iterable\")},Oh=Qe,Sh=C,xh=$t,kh=function(t,e,r,n){try{return n?e(ih(r)[0],r[1]):e(r)}catch(e){ah(t,\"throw\",e)}},jh=fh,Ah=jn,Ph=Hr,Ih=tn,Dh=Eh,Lh=yh,Ch=Array,Rh=ve(\"iterator\"),Mh=!1;try{var Nh=0,Fh={next:function(){return{done:!!Nh++}},return:function(){Mh=!0}};Fh[Rh]=function(){return this},Array.from(Fh,(function(){throw 2}))}catch(t){}var zh=function(t,e){try{if(!e&&!Mh)return!1}catch(t){return!1}var r=!1;try{var n={};n[Rh]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Uh=function(t){var e=xh(t),r=Ah(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Oh(o,n>2?arguments[2]:void 0));var a,u,s,c,f,l,h=Lh(e),p=0;if(!h||this===Ch&&jh(h))for(a=Ph(e),u=r?new this(a):Ch(a);a>p;p++)l=i?o(e[p],p):e[p],Ih(u,p,l);else for(f=(c=Dh(e,h)).next,u=r?new this:[];!(s=Sh(f,c)).done;p++)l=i?kh(c,o,[s.value,p],!0):s.value,Ih(u,p,l);return u.length=p,u};Pr({target:\"Array\",stat:!0,forced:!zh((function(t){Array.from(t)}))},{from:Uh});var qh=nt.Array.from,Wh=n(qh),Yh=yh,Gh=n(Yh),Xh=n(Yh);Pr({target:\"Array\",stat:!0},{isArray:Ur});var Vh=nt.Array.isArray,Bh=n(Vh);var Hh=I,Kh=Ur,Jh=TypeError,$h=Object.getOwnPropertyDescriptor,Qh=Hh&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],\"length\",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Kh(t)&&!$h(t,\"length\").writable)throw new Jh(\"Cannot set read only .length\");return t.length=e}:function(t,e){return t.length=e},Zh=$t,tp=Hr,ep=Qh,rp=Jr;Pr({target:\"Array\",proto:!0,arity:1,forced:u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],\"length\",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Zh(this),r=tp(e),n=arguments.length;rp(r+n);for(var o=0;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?arguments[1]:void 0)};Pr({target:\"Array\",proto:!0,forced:[].forEach!==tv},{forEach:tv});var ev=nl(\"Array\",\"forEach\"),rv=fn,nv=te,ov=ct,iv=ev,av=Array.prototype,uv={DOMTokenList:!0,NodeList:!0},sv=function(t){var e=t.forEach;return t===av||ov(av,t)&&e===av.forEach||nv(uv,rv(t))?iv:e},cv=n(sv),fv=Pr,lv=Ur,hv=m([].reverse),pv=[1,2];fv({target:\"Array\",proto:!0,forced:String(pv)===String(pv.reverse())},{reverse:function(){return lv(this)&&(this.length=this.length),hv(this)}});var vv=nl(\"Array\",\"reverse\"),dv=ct,yv=vv,gv=Array.prototype,mv=function(t){var e=t.reverse;return t===gv||dv(gv,t)&&e===gv.reverse?yv:e},bv=n(mv),wv=At,_v=TypeError,Tv=function(t,e){if(!delete t[e])throw new _v(\"Cannot delete property \"+wv(e)+\" of \"+wv(t))},Ev=Pr,Ov=$t,Sv=uo,xv=Gr,kv=Hr,jv=Qh,Av=Jr,Pv=Rn,Iv=tn,Dv=Tv,Lv=zn(\"splice\"),Cv=Math.max,Rv=Math.min;Ev({target:\"Array\",proto:!0,forced:!Lv},{splice:function(t,e){var r,n,o,i,a,u,s=Ov(this),c=kv(s),f=Sv(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Rv(Cv(xv(e),0),c-f)),Av(c+r-n),o=Pv(s,n),i=0;ic-n+r;i--)Dv(s,i-1)}else if(r>n)for(i=c-n;i>f;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:Dv(s,u);for(i=0;io;)for(var u,s=Kv(arguments[o++]),c=i?Qv(Xv(s),i(s)):Xv(s),f=c.length,l=0;f>l;)u=c[l++],qv&&!Yv(a,s,u)||(r[u]=s[u]);return r}:Jv,td=Zv;Pr({target:\"Object\",stat:!0,arity:2,forced:Object.assign!==td},{assign:td});var ed=n(nt.Object.assign),rd=$t,nd=Ms,od=js;Pr({target:\"Object\",stat:!0,forced:u((function(){nd(1)})),sham:!od},{getPrototypeOf:function(t){return nd(rd(t))}});var id=nt.Object.getPrototypeOf;Pr({target:\"Object\",stat:!0,sham:!I},{create:Ko});var ad=nt.Object,ud=function(t,e){return ad.create(t,e)},sd=n(ud),cd=nt,fd=p;cd.JSON||(cd.JSON={stringify:JSON.stringify});var ld=function(t,e,r){return fd(cd.JSON.stringify,null,arguments)},hd=n(ld),pd=\"function\"==typeof Bun&&Bun&&\"string\"==typeof Bun.version,vd=TypeError,dd=function(t,e){if(tr,a=md(n)?n:Ed(n),u=i?_d(arguments,r):[],s=i?function(){gd(a,this,u)}:a;return e?t(s,o):t(s)}:t},xd=Pr,kd=a,jd=Sd(kd.setInterval,!0);xd({global:!0,bind:!0,forced:kd.setInterval!==jd},{setInterval:jd});var Ad=Pr,Pd=a,Id=Sd(Pd.setTimeout,!0);Ad({global:!0,bind:!0,forced:Pd.setTimeout!==Id},{setTimeout:Id});var Dd=n(nt.setTimeout),Ld={exports:{}};!function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const r=this._callbacks.get(t)??[];return r.push(e),this._callbacks.set(t,r),this},e.prototype.once=function(t,e){const r=(...n)=>{this.off(t,r),e.apply(this,n)};return r.fn=e,this.on(t,r),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const r=this._callbacks.get(t);if(r){for(const[t,n]of r.entries())if(n===e||n.fn===e){r.splice(t,1);break}0===r.length?this._callbacks.delete(t):this._callbacks.set(t,r)}return this},e.prototype.emit=function(t,...e){const r=this._callbacks.get(t);if(r){const t=[...r];for(const r of t)r.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(Ld);var Cd,Rd=n(Ld.exports);\n/*! Hammer.JS - v2.0.17-rc - 2019-12-16\n * http://naver.github.io/egjs\n *\n * Forked By Naver egjs\n * Copyright (c) hammerjs\n * Licensed under the MIT license */\nfunction Md(){return Md=Object.assign||function(t){for(var e=1;e-1}var Oy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Kd&&(t=this.compute()),Hd&&this.manager.element.style&&ey[t]&&(this.manager.element.style[Bd]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return _y(this.manager.recognizers,(function(e){Ty(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ey(t,Qd))return Qd;var e=Ey(t,Zd),r=Ey(t,ty);return e&&r?Qd:e||r?e?Zd:ty:Ey(t,$d)?$d:Jd}(t.join(\" \"))},e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=Ey(n,Qd)&&!ey[Qd],i=Ey(n,ty)&&!ey[ty],a=Ey(n,Zd)&&!ey[Zd];if(o){var u=1===t.pointers.length,s=t.distance<2,c=t.deltaTime<250;if(u&&s&&c)return}if(!a||!i)return o||i&&r&yy||a&&r&gy?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Sy(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function xy(t){var e=t.length;if(1===e)return{x:Yd(t[0].clientX),y:Yd(t[0].clientY)};for(var r=0,n=0,o=0;o=Gd(e)?t<0?hy:py:e<0?vy:dy}function Iy(t,e,r){return{x:e/t||0,y:r/t||0}}function Dy(t,e){var r=t.session,n=e.pointers,o=n.length;r.firstInput||(r.firstInput=ky(e)),o>1&&!r.firstMultiple?r.firstMultiple=ky(e):1===o&&(r.firstMultiple=!1);var i=r.firstInput,a=r.firstMultiple,u=a?a.center:i.center,s=e.center=xy(n);e.timeStamp=Xd(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=Ay(u,s),e.distance=jy(u,s),function(t,e){var r=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};e.eventType!==sy&&i.eventType!==cy||(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=o.x+(r.x-n.x),e.deltaY=o.y+(r.y-n.y)}(r,e),e.offsetDirection=Py(e.deltaX,e.deltaY);var c,f,l=Iy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=Gd(l.x)>Gd(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,jy((f=n)[0],f[1],wy)/jy(c[0],c[1],wy)):1,e.rotation=a?function(t,e){return Ay(e[1],e[0],wy)+Ay(t[1],t[0],wy)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,n,o,i,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!==fy&&(u>uy||void 0===a.velocity)){var s=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,f=Iy(u,s,c);n=f.x,o=f.y,r=Gd(f.x)>Gd(f.y)?f.x:f.y,i=Py(s,c),t.lastInterval=e}else r=a.velocity,n=a.velocityX,o=a.velocityY,i=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=o,e.direction=i}(r,e);var h,p=t.element,v=e.srcEvent;Sy(h=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=h),e.target=p}function Ly(t,e,r){var n=r.pointers.length,o=r.changedPointers.length,i=e&sy&&n-o==0,a=e&(cy|fy)&&n-o==0;r.isFirst=!!i,r.isFinal=!!a,i&&(t.session={}),r.eventType=e,Dy(t,r),t.emit(\"hammer.input\",r),t.recognize(r),t.session.prevInput=r}function Cy(t){return t.trim().split(/\\s+/g)}function Ry(t,e,r){_y(Cy(e),(function(e){t.addEventListener(e,r,!1)}))}function My(t,e,r){_y(Cy(e),(function(e){t.removeEventListener(e,r,!1)}))}function Ny(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Fy=function(){function t(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Ty(t.options.enable,[t])&&r.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Ry(this.element,this.evEl,this.domHandler),this.evTarget&&Ry(this.target,this.evTarget,this.domHandler),this.evWin&&Ry(Ny(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&My(this.element,this.evEl,this.domHandler),this.evTarget&&My(this.target,this.evTarget,this.domHandler),this.evWin&&My(Ny(this.element),this.evWin,this.domHandler)},t}();function zy(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;nr[e]})):n.sort()),n}var By={touchstart:sy,touchmove:2,touchend:cy,touchcancel:fy},Hy=function(t){function e(){var r;return e.prototype.evTarget=\"touchstart touchmove touchend touchcancel\",(r=t.apply(this,arguments)||this).targetIds={},r}return Nd(e,t),e.prototype.handler=function(t){var e=By[t.type],r=Ky.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:iy,srcEvent:t})},e}(Fy);function Ky(t,e){var r,n,o=Xy(t.touches),i=this.targetIds;if(e&(2|sy)&&1===o.length)return i[o[0].identifier]=!0,[o,o];var a=Xy(t.changedTouches),u=[],s=this.target;if(n=o.filter((function(t){return Sy(t.target,s)})),e===sy)for(r=0;r-1&&n.splice(t,1)}),Qy)}}function tg(t,e){t&sy?(this.primaryTouch=e.changedPointers[0].identifier,Zy.call(this,e)):t&(cy|fy)&&Zy.call(this,e)}function eg(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,r=this.state;function n(r){e.manager.emit(r,t)}r<8&&n(e.options.event+ug(r)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),r>=8&&n(e.options.event+ug(r))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=og},e.canEmit=function(){for(var t=0;te.threshold&&o&e.direction},r.attrTest=function(t){return fg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},r.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var r=lg(e.direction);r&&(e.additionalEvent=this.options.event+r),t.prototype.emit.call(this,e)},e}(fg),pg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Md({event:\"swipe\",threshold:10,velocity:.3,direction:yy|gy,pointers:1},e))||this}Nd(e,t);var r=e.prototype;return r.getTouchAction=function(){return hg.prototype.getTouchAction.call(this)},r.attrTest=function(e){var r,n=this.options.direction;return n&(yy|gy)?r=e.overallVelocity:n&yy?r=e.overallVelocityX:n&gy&&(r=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Gd(r)>this.options.velocity&&e.eventType&cy},r.emit=function(t){var e=lg(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(fg),vg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Md({event:\"pinch\",threshold:0,pointers:2},e))||this}Nd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Qd]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},r.emit=function(e){if(1!==e.scale){var r=e.scale<1?\"in\":\"out\";e.additionalEvent=this.options.event+r}t.prototype.emit.call(this,e)},e}(fg),dg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Md({event:\"rotate\",threshold:0,pointers:2},e))||this}Nd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Qd]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(fg),yg=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Md({event:\"press\",pointers:1,time:251,threshold:9},e))||this)._timer=null,r._input=null,r}Nd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Jd]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,o=t.distancer.time;if(this._input=t,!o||!n||t.eventType&(cy|fy)&&!i)this.reset();else if(t.eventType&sy)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),r.time);else if(t.eventType&cy)return 8;return og},r.reset=function(){clearTimeout(this._timer)},r.emit=function(t){8===this.state&&(t&&t.eventType&cy?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=Xd(),this.manager.emit(this.options.event,this._input)))},e}(sg),gg={domEvents:!1,touchAction:Kd,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}},mg=[[dg,{enable:!1}],[vg,{enable:!1},[\"rotate\"]],[pg,{direction:yy}],[hg,{direction:yy},[\"swipe\"]],[cg],[cg,{event:\"doubletap\",taps:2},[\"tap\"]],[yg]];function bg(t,e){var r,n=t.element;n.style&&(_y(t.options.cssProps,(function(o,i){r=Vd(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||\"\"})),e||(t.oldCssProps={}))}var wg=function(){function t(t,e){var r,n=this;this.options=Ud({},gg,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((r=this).options.inputClass||(ny?Gy:oy?Hy:ry?rg:$y))(r,Ly),this.touchAction=new Oy(this,this.options.touchAction),bg(this,!0),_y(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Ud(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var r;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var i=0;i\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,r),t.apply(this,arguments)}}var Sg=Og((function(t,e,r){for(var n=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Ig(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2)return Cg.apply(void 0,Up(n=[Lg(e[0],e[1])]).call(n,Cp(qp(e).call(e,2))));var o=e[0],i=e[1];if(o instanceof Date&&i instanceof Date)return o.setTime(i.getTime()),o;var a,u=Pg(Hp(i));try{for(u.s();!(a=u.n()).done;){var s=a.value;Object.prototype.propertyIsEnumerable.call(i,s)&&(i[s]===Dg?delete o[s]:null===o[s]||null===i[s]||\"object\"!=typeof o[s]||\"object\"!=typeof i[s]||Kp(o[s])||Kp(i[s])?o[s]=Rg(i[s]):o[s]=Cg(o[s],i[s]))}}catch(t){u.e(t)}finally{u.f()}return o}function Rg(t){return Kp(t)?Nl(t).call(t,(function(t){return Rg(t)})):\"object\"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Cg({},t):t}function Mg(t){for(var e=0,r=Qp(t);e({set:t})}}()};function Fg(t){var e,r=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement(\"div\")},this._dom.overlay.classList.add(\"vis-overlay\"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)}));var n=Ng(this._dom.overlay);n.on(\"tap\",cl(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var o=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];cv(o).call(o,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||r.deactivate()},document.body.addEventListener(\"click\",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener(\"click\",r._onClick)}))),this._escListener=function(t){(\"key\"in t?\"Escape\"===t.key:27===t.keyCode)&&r.deactivate()}}Rd(Fg.prototype),Fg.current=null,Fg.prototype.destroy=function(){var t,e;this.deactivate();var r,n=Pg(bv(t=Uv(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(r=n.n()).done;){(0,r.value)()}}catch(t){n.e(t)}finally{n.f()}},Fg.prototype.activate=function(){Fg.current&&Fg.current.deactivate(),Fg.current=this,this.active=!0,this._dom.overlay.style.display=\"none\",this._dom.container.classList.add(\"vis-active\"),this.emit(\"change\"),this.emit(\"activate\"),document.body.addEventListener(\"keydown\",this._escListener)},Fg.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display=\"block\",this._dom.container.classList.remove(\"vis-active\"),document.body.removeEventListener(\"keydown\",this._escListener),this.emit(\"change\"),this.emit(\"deactivate\")},Fg.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var zg=jn,Ug=At,qg=TypeError,Wg=function(t){if(zg(t))return t;throw new qg(Ug(t)+\" is not a constructor\")},Yg=Pr,Gg=p,Xg=Zf,Vg=Wg,Bg=or,Hg=rt,Kg=Ko,Jg=u,$g=st(\"Reflect\",\"construct\"),Qg=Object.prototype,Zg=[].push,tm=Jg((function(){function t(){}return!($g((function(){}),[],t)instanceof t)})),em=!Jg((function(){$g((function(){}))})),rm=tm||em;Yg({target:\"Reflect\",stat:!0,forced:rm,sham:rm},{construct:function(t,e){Vg(t),Bg(e);var r=arguments.length<3?t:Vg(arguments[2]);if(em&&!tm)return $g(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Gg(Zg,n,e),new(Gg(Xg,t,n))}var o=r.prototype,i=Kg(Hg(o)?o:Qg),a=Gg(t,i,e);return Hg(a)?a:i}});var nm=n(nt.Reflect.construct),om=n(nt.Object.getOwnPropertySymbols),im={exports:{}},am=Pr,um=u,sm=Z,cm=P.f,fm=I;am({target:\"Object\",stat:!0,forced:!fm||um((function(){cm(1)})),sham:!fm},{getOwnPropertyDescriptor:function(t,e){return cm(sm(t),e)}});var lm=nt.Object,hm=im.exports=function(t,e){return lm.getOwnPropertyDescriptor(t,e)};lm.getOwnPropertyDescriptor.sham&&(hm.sham=!0);var pm=n(im.exports),vm=Bp,dm=Z,ym=P,gm=tn;Pr({target:\"Object\",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(t){for(var e,r,n=dm(t),o=ym.f,i=vm(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&gm(a,e,r);return a}});var mm=n(nt.Object.getOwnPropertyDescriptors),bm={exports:{}},wm=Pr,_m=I,Tm=no.f;wm({target:\"Object\",stat:!0,forced:Object.defineProperties!==Tm,sham:!_m},{defineProperties:Tm});var Em=nt.Object,Om=bm.exports=function(t,e){return Em.defineProperties(t,e)};Em.defineProperties.sham&&(Om.sham=!0);var Sm=n(bm.exports),xm=n(Mr);function km(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var jm=ud,Am=n(jm);Pr({target:\"Object\",stat:!0},{setPrototypeOf:uc});var Pm=nt.Object.setPrototypeOf,Im=n(Pm),Dm=n(sl);function Lm(t,e){var r;return Lm=Im?Dm(r=Im).call(r):function(t,e){return t.__proto__=e,t},Lm(t,e)}function Cm(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Am(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Fr(t,\"prototype\",{writable:!1}),e&&Lm(t,e)}function Rm(t,e){if(e&&(\"object\"===Nf(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return km(t)}var Mm=id,Nm=n(Mm);function Fm(t){var e;return Fm=Im?Dm(e=Nm).call(e):function(t){return t.__proto__||Nm(t)},Fm(t)}var zm={exports:{}},Um={exports:{}};!function(t){var e=yf,r=Rf;function n(o){return t.exports=n=\"function\"==typeof e&&\"symbol\"==typeof r?function(t){return typeof t}:function(t){return t&&\"function\"==typeof e&&t.constructor===e&&t!==e.prototype?\"symbol\":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Um);var qm=Um.exports,Wm=sv,Ym=te,Gm=Bp,Xm=P,Vm=Ze,Bm=rt,Hm=mr,Km=Error,Jm=m(\"\".replace),$m=String(new Km(\"zxcasd\").stack),Qm=/\\n\\s*at [^:]*:[^\\n]*/,Zm=Qm.test($m),tb=q,eb=!u((function(){var t=new Error(\"a\");return!(\"stack\"in t)||(Object.defineProperty(t,\"stack\",tb(1,7)),7!==t.stack)})),rb=mr,nb=function(t,e){if(Zm&&\"string\"==typeof t&&!Km.prepareStackTrace)for(;e--;)t=Jm(t,Qm,\"\");return t},ob=eb,ib=Error.captureStackTrace,ab=Qe,ub=C,sb=or,cb=At,fb=fh,lb=Hr,hb=ct,pb=Eh,vb=yh,db=oh,yb=TypeError,gb=function(t,e){this.stopped=t,this.result=e},mb=gb.prototype,bb=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),d=ab(e,f),y=function(t){return n&&db(n,\"normal\",t),new gb(!0,t)},g=function(t){return l?(sb(t),v?d(t[0],t[1],y):d(t[0],t[1])):v?d(t,y):d(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=vb(t)))throw new yb(cb(t)+\" is not iterable\");if(fb(o)){for(i=0,a=lb(t);a>i;i++)if((u=g(t[i]))&&hb(mb,u))return u;return new gb(!1)}n=pb(t,o)}for(s=h?t.next:n.next;!(c=ub(s,n)).done;){try{u=g(c.value)}catch(t){db(n,\"throw\",t)}if(\"object\"==typeof u&&u&&hb(mb,u))return u}return new gb(!1)},wb=ro,_b=Pr,Tb=ct,Eb=Ms,Ob=uc,Sb=function(t,e,r){for(var n=Gm(e),o=Vm.f,i=Xm.f,a=0;a2&&Ab(r,arguments[2]);var o=[];return Ib(t,Rb,{that:o}),kb(r,\"errors\",o),r};Ob?Ob(Mb,Cb):Sb(Mb,Cb,{name:!0});var Nb=Mb.prototype=xb(Cb.prototype,{constructor:jb(1,Mb),message:jb(1,\"\"),name:jb(1,\"AggregateError\")});_b({global:!0,constructor:!0,arity:2},{AggregateError:Mb});var Fb,zb,Ub,qb,Wb=st,Yb=di,Gb=I,Xb=ve(\"species\"),Vb=function(t){var e=Wb(t);Gb&&e&&!e[Xb]&&Yb(e,Xb,{configurable:!0,get:function(){return this}})},Bb=ct,Hb=TypeError,Kb=function(t,e){if(Bb(e,t))return t;throw new Hb(\"Incorrect invocation\")},Jb=or,$b=Wg,Qb=B,Zb=ve(\"species\"),tw=function(t,e){var r,n=Jb(t).constructor;return void 0===n||Qb(r=Jb(n)[Zb])?e:$b(r)},ew=/(?:ipad|iphone|ipod).*applewebkit/i.test(ft),rw=a,nw=p,ow=Qe,iw=A,aw=te,uw=u,sw=Do,cw=Ru,fw=je,lw=dd,hw=ew,pw=bl,vw=rw.setImmediate,dw=rw.clearImmediate,yw=rw.process,gw=rw.Dispatch,mw=rw.Function,bw=rw.MessageChannel,ww=rw.String,_w=0,Tw={},Ew=\"onreadystatechange\";uw((function(){Fb=rw.location}));var Ow=function(t){if(aw(Tw,t)){var e=Tw[t];delete Tw[t],e()}},Sw=function(t){return function(){Ow(t)}},xw=function(t){Ow(t.data)},kw=function(t){rw.postMessage(ww(t),Fb.protocol+\"//\"+Fb.host)};vw&&dw||(vw=function(t){lw(arguments.length,1);var e=iw(t)?t:mw(t),r=cw(arguments,1);return Tw[++_w]=function(){nw(e,void 0,r)},zb(_w),_w},dw=function(t){delete Tw[t]},pw?zb=function(t){yw.nextTick(Sw(t))}:gw&&gw.now?zb=function(t){gw.now(Sw(t))}:bw&&!hw?(qb=(Ub=new bw).port2,Ub.port1.onmessage=xw,zb=ow(qb.postMessage,qb)):rw.addEventListener&&iw(rw.postMessage)&&!rw.importScripts&&Fb&&\"file:\"!==Fb.protocol&&!uw(kw)?(zb=kw,rw.addEventListener(\"message\",xw,!1)):zb=Ew in fw(\"script\")?function(t){sw.appendChild(fw(\"script\"))[Ew]=function(){sw.removeChild(this),Ow(t)}}:function(t){setTimeout(Sw(t),0)});var jw={set:vw,clear:dw},Aw=function(){this.head=null,this.tail=null};Aw.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Pw,Iw,Dw,Lw,Cw,Rw=Aw,Mw=/ipad|iphone|ipod/i.test(ft)&&\"undefined\"!=typeof Pebble,Nw=/web0s(?!.*chrome)/i.test(ft),Fw=a,zw=Qe,Uw=P.f,qw=jw.set,Ww=Rw,Yw=ew,Gw=Mw,Xw=Nw,Vw=bl,Bw=Fw.MutationObserver||Fw.WebKitMutationObserver,Hw=Fw.document,Kw=Fw.process,Jw=Fw.Promise,$w=Uw(Fw,\"queueMicrotask\"),Qw=$w&&$w.value;if(!Qw){var Zw=new Ww,t_=function(){var t,e;for(Vw&&(t=Kw.domain)&&t.exit();e=Zw.get();)try{e()}catch(t){throw Zw.head&&Pw(),t}t&&t.enter()};Yw||Vw||Xw||!Bw||!Hw?!Gw&&Jw&&Jw.resolve?((Lw=Jw.resolve(void 0)).constructor=Jw,Cw=zw(Lw.then,Lw),Pw=function(){Cw(t_)}):Vw?Pw=function(){Kw.nextTick(t_)}:(qw=zw(qw,Fw),Pw=function(){qw(t_)}):(Iw=!0,Dw=Hw.createTextNode(\"\"),new Bw(t_).observe(Dw,{characterData:!0}),Pw=function(){Dw.data=Iw=!Iw}),Qw=function(t){Zw.head||Pw(),Zw.add(t)}}var e_=Qw,r_=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},n_=a.Promise,o_=\"object\"==typeof Deno&&Deno&&\"object\"==typeof Deno.version,i_=!o_&&!bl&&\"object\"==typeof window&&\"object\"==typeof document,a_=a,u_=n_,s_=A,c_=He,f_=vn,l_=ve,h_=i_,p_=o_,v_=gt,d_=u_&&u_.prototype,y_=l_(\"species\"),g_=!1,m_=s_(a_.PromiseRejectionEvent),b_=c_(\"Promise\",(function(){var t=f_(u_),e=t!==String(u_);if(!e&&66===v_)return!0;if(!d_.catch||!d_.finally)return!0;if(!v_||v_<51||!/native code/.test(t)){var r=new u_((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[y_]=n,!(g_=r.then((function(){}))instanceof n))return!0}return!e&&(h_||p_)&&!m_})),w_={CONSTRUCTOR:b_,REJECTION_EVENT:m_,SUBCLASSING:g_},__={},T_=Lt,E_=TypeError,O_=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new E_(\"Bad Promise constructor\");e=t,r=n})),this.resolve=T_(e),this.reject=T_(r)};__.f=function(t){return new O_(t)};var S_,x_,k_=Pr,j_=bl,A_=a,P_=C,I_=pi,D_=zi,L_=Vb,C_=Lt,R_=A,M_=rt,N_=Kb,F_=tw,z_=jw.set,U_=e_,q_=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},W_=r_,Y_=Rw,G_=ea,X_=n_,V_=w_,B_=__,H_=\"Promise\",K_=V_.CONSTRUCTOR,J_=V_.REJECTION_EVENT,$_=G_.getterFor(H_),Q_=G_.set,Z_=X_&&X_.prototype,tT=X_,eT=Z_,rT=A_.TypeError,nT=A_.document,oT=A_.process,iT=B_.f,aT=iT,uT=!!(nT&&nT.createEvent&&A_.dispatchEvent),sT=\"unhandledrejection\",cT=function(t){var e;return!(!M_(t)||!R_(e=t.then))&&e},fT=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&dT(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?c(new rT(\"Promise-chain cycle\")):(n=cT(r))?P_(n,r,s,c):s(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},lT=function(t,e){t.notified||(t.notified=!0,U_((function(){for(var r,n=t.reactions;r=n.get();)fT(r,t);t.notified=!1,e&&!t.rejection&&pT(t)})))},hT=function(t,e,r){var n,o;uT?((n=nT.createEvent(\"Event\")).promise=e,n.reason=r,n.initEvent(t,!1,!0),A_.dispatchEvent(n)):n={promise:e,reason:r},!J_&&(o=A_[\"on\"+t])?o(n):t===sT&&q_(\"Unhandled promise rejection\",r)},pT=function(t){P_(z_,A_,(function(){var e,r=t.facade,n=t.value;if(vT(t)&&(e=W_((function(){j_?oT.emit(\"unhandledRejection\",n,r):hT(sT,r,n)})),t.rejection=j_||vT(t)?2:1,e.error))throw e.value}))},vT=function(t){return 1!==t.rejection&&!t.parent},dT=function(t){P_(z_,A_,(function(){var e=t.facade;j_?oT.emit(\"rejectionHandled\",e):hT(\"rejectionhandled\",e,t.value)}))},yT=function(t,e,r){return function(n){t(e,n,r)}},gT=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,lT(t,!0))},mT=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new rT(\"Promise can't be resolved itself\");var n=cT(e);n?U_((function(){var r={done:!1};try{P_(n,e,yT(mT,r,t),yT(gT,r,t))}catch(e){gT(r,e,t)}})):(t.value=e,t.state=1,lT(t,!1))}catch(e){gT({done:!1},e,t)}}};K_&&(eT=(tT=function(t){N_(this,eT),C_(t),P_(S_,this);var e=$_(this);try{t(yT(mT,e),yT(gT,e))}catch(t){gT(e,t)}}).prototype,(S_=function(t){Q_(this,{type:H_,done:!1,notified:!1,parent:!1,reactions:new Y_,rejection:!1,state:0,value:void 0})}).prototype=I_(eT,\"then\",(function(t,e){var r=$_(this),n=iT(F_(this,tT));return r.parent=!0,n.ok=!R_(t)||t,n.fail=R_(e)&&e,n.domain=j_?oT.domain:void 0,0===r.state?r.reactions.add(n):U_((function(){fT(n,r)})),n.promise})),x_=function(){var t=new S_,e=$_(t);this.promise=t,this.resolve=yT(mT,e),this.reject=yT(gT,e)},B_.f=iT=function(t){return t===tT||undefined===t?new x_(t):aT(t)}),k_({global:!0,constructor:!0,wrap:!0,forced:K_},{Promise:tT}),D_(tT,H_,!1,!0),L_(H_);var bT=n_,wT=w_.CONSTRUCTOR||!zh((function(t){bT.all(t).then(void 0,(function(){}))})),_T=C,TT=Lt,ET=__,OT=r_,ST=bb;Pr({target:\"Promise\",stat:!0,forced:wT},{all:function(t){var e=this,r=ET.f(e),n=r.resolve,o=r.reject,i=OT((function(){var r=TT(e.resolve),i=[],a=0,u=1;ST(t,(function(t){var s=a++,c=!1;u++,_T(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var xT=Pr,kT=w_.CONSTRUCTOR;n_&&n_.prototype,xT({target:\"Promise\",proto:!0,forced:kT,real:!0},{catch:function(t){return this.then(void 0,t)}});var jT=C,AT=Lt,PT=__,IT=r_,DT=bb;Pr({target:\"Promise\",stat:!0,forced:wT},{race:function(t){var e=this,r=PT.f(e),n=r.reject,o=IT((function(){var o=AT(e.resolve);DT(t,(function(t){jT(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var LT=C,CT=__;Pr({target:\"Promise\",stat:!0,forced:w_.CONSTRUCTOR},{reject:function(t){var e=CT.f(this);return LT(e.reject,void 0,t),e.promise}});var RT=or,MT=rt,NT=__,FT=function(t,e){if(RT(t),MT(e)&&e.constructor===t)return e;var r=NT.f(t);return(0,r.resolve)(e),r.promise},zT=Pr,UT=n_,qT=w_.CONSTRUCTOR,WT=FT,YT=st(\"Promise\"),GT=!qT;zT({target:\"Promise\",stat:!0,forced:true},{resolve:function(t){return WT(GT&&this===YT?UT:this,t)}});var XT=C,VT=Lt,BT=__,HT=r_,KT=bb;Pr({target:\"Promise\",stat:!0,forced:wT},{allSettled:function(t){var e=this,r=BT.f(e),n=r.resolve,o=r.reject,i=HT((function(){var r=VT(e.resolve),o=[],i=0,a=1;KT(t,(function(t){var u=i++,s=!1;a++,XT(r,e,t).then((function(t){s||(s=!0,o[u]={status:\"fulfilled\",value:t},--a||n(o))}),(function(t){s||(s=!0,o[u]={status:\"rejected\",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var JT=C,$T=Lt,QT=st,ZT=__,tE=r_,eE=bb,rE=\"No one promise resolved\";Pr({target:\"Promise\",stat:!0,forced:wT},{any:function(t){var e=this,r=QT(\"AggregateError\"),n=ZT.f(e),o=n.resolve,i=n.reject,a=tE((function(){var n=$T(e.resolve),a=[],u=0,s=1,c=!1;eE(t,(function(t){var f=u++,l=!1;s++,JT(n,e,t).then((function(t){l||c||(c=!0,o(t))}),(function(t){l||c||(l=!0,a[f]=t,--s||i(new r(a,rE)))}))})),--s||i(new r(a,rE))}));return a.error&&i(a.value),n.promise}});var nE=Pr,oE=n_,iE=u,aE=st,uE=A,sE=tw,cE=FT,fE=oE&&oE.prototype;nE({target:\"Promise\",proto:!0,real:!0,forced:!!oE&&iE((function(){fE.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=sE(this,aE(\"Promise\")),r=uE(t);return this.then(r?function(r){return cE(e,t()).then((function(){return r}))}:t,r?function(r){return cE(e,t()).then((function(){throw r}))}:t)}});var lE=nt.Promise,hE=__;Pr({target:\"Promise\",stat:!0},{withResolvers:function(){var t=hE.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var pE=lE,vE=__,dE=r_;Pr({target:\"Promise\",stat:!0,forced:!0},{try:function(t){var e=vE.f(this),r=dE(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var yE=pE,gE=mv;!function(t){var e=qm.default,r=Nr,n=yf,o=jm,i=Mm,a=Wm,u=up,s=Pm,c=yE,f=gE,l=jp;function h(){t.exports=h=function(){return v},t.exports.__esModule=!0,t.exports.default=t.exports;var p,v={},d=Object.prototype,y=d.hasOwnProperty,g=r||function(t,e,r){t[e]=r.value},m=\"function\"==typeof n?n:{},b=m.iterator||\"@@iterator\",w=m.asyncIterator||\"@@asyncIterator\",_=m.toStringTag||\"@@toStringTag\";function T(t,e,n){return r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{T({},\"\")}catch(p){T=function(t,e,r){return t[e]=r}}function E(t,e,r,n){var i=e&&e.prototype instanceof P?e:P,a=o(i.prototype),u=new W(n||[]);return g(a,\"_invoke\",{value:F(t,r,u)}),a}function O(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}v.wrap=E;var S=\"suspendedStart\",x=\"suspendedYield\",k=\"executing\",j=\"completed\",A={};function P(){}function I(){}function D(){}var L={};T(L,b,(function(){return this}));var C=i&&i(i(Y([])));C&&C!==d&&y.call(C,b)&&(L=C);var R=D.prototype=P.prototype=o(L);function M(t){var e;a(e=[\"next\",\"throw\",\"return\"]).call(e,(function(e){T(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,r){function n(o,i,a,u){var s=O(t[o],t,i);if(\"throw\"!==s.type){var c=s.arg,f=c.value;return f&&\"object\"==e(f)&&y.call(f,\"__await\")?r.resolve(f.__await).then((function(t){n(\"next\",t,a,u)}),(function(t){n(\"throw\",t,a,u)})):r.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n(\"throw\",t,a,u)}))}u(s.arg)}var o;g(this,\"_invoke\",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function F(t,e,r){var n=S;return function(o,i){if(n===k)throw new Error(\"Generator is already running\");if(n===j){if(\"throw\"===o)throw i;return{value:p,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=z(a,r);if(u){if(u===A)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(n===S)throw n=j,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=k;var s=O(t,e,r);if(\"normal\"===s.type){if(n=r.done?j:x,s.arg===A)continue;return{value:s.arg,done:r.done}}\"throw\"===s.type&&(n=j,r.method=\"throw\",r.arg=s.arg)}}}function z(t,e){var r=e.method,n=t.iterator[r];if(n===p)return e.delegate=null,\"throw\"===r&&t.iterator.return&&(e.method=\"return\",e.arg=p,z(t,e),\"throw\"===e.method)||\"return\"!==r&&(e.method=\"throw\",e.arg=new TypeError(\"The iterator does not provide a '\"+r+\"' method\")),A;var o=O(n,t.iterator,e.arg);if(\"throw\"===o.type)return e.method=\"throw\",e.arg=o.arg,e.delegate=null,A;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,\"return\"!==e.method&&(e.method=\"next\",e.arg=p),e.delegate=null,A):i:(e.method=\"throw\",e.arg=new TypeError(\"iterator result is not an object\"),e.delegate=null,A)}function U(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),u(e=this.tryEntries).call(e,r)}function q(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function W(t){this.tryEntries=[{tryLoc:\"root\"}],a(t).call(t,U,this),this.reset(!0)}function Y(t){if(t||\"\"===t){var r=t[b];if(r)return r.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--n){var o=this.tryEntries[n],i=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var a=y.call(o,\"catchLoc\"),u=y.call(o,\"finallyLoc\");if(a&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),q(r),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;q(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,r){return this.delegate={iterator:Y(t),resultName:e,nextLoc:r},\"next\"===this.method&&(this.arg=p),A}},v}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports}(zm);var mE=(0,zm.exports)(),bE=mE;try{regeneratorRuntime=mE}catch(t){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=mE:Function(\"r\",\"regeneratorRuntime = r\")(mE)}var wE=n(bE),_E={exports:{}},TE=u((function(){if(\"function\"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,\"a\",{value:8})}})),EE=u,OE=rt,SE=T,xE=TE,kE=Object.isExtensible,jE=EE((function(){kE(1)}))||xE?function(t){return!!OE(t)&&((!xE||\"ArrayBuffer\"!==SE(t))&&(!kE||kE(t)))}:kE,AE=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),PE=Pr,IE=m,DE=po,LE=rt,CE=te,RE=Ze.f,ME=Jo,NE=Zo,FE=jE,zE=AE,UE=!1,qE=ie(\"meta\"),WE=0,YE=function(t){RE(t,qE,{value:{objectID:\"O\"+WE++,weakData:{}}})},GE=_E.exports={enable:function(){GE.enable=function(){},UE=!0;var t=ME.f,e=IE([].splice),r={};r[qE]=1,t(r).length&&(ME.f=function(r){for(var n=t(r),o=0,i=n.length;o1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),hO(i,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),wO&&lO(i,\"size\",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+\" Iterator\",o=EO(e),i=EO(n);gO(t,e,(function(t,e){TO(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?mO(\"keys\"===e?r.key:\"values\"===e?r.value:[r.key,r.value],!1):(t.target=void 0,mO(void 0,!0))}),r?\"entries\":\"values\",!r,!0),bO(e)}};sO(\"Map\",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var SO=n(nt.Map),xO=ca.some;Pr({target:\"Array\",proto:!0,forced:!ml(\"some\")},{some:function(t){return xO(this,t,arguments.length>1?arguments[1]:void 0)}});var kO=nl(\"Array\",\"some\"),jO=ct,AO=kO,PO=Array.prototype,IO=n((function(t){var e=t.some;return t===PO||jO(PO,t)&&e===PO.some?AO:e})),DO=nl(\"Array\",\"keys\"),LO=fn,CO=te,RO=ct,MO=DO,NO=Array.prototype,FO={DOMTokenList:!0,NodeList:!0},zO=n((function(t){var e=t.keys;return t===NO||RO(NO,t)&&e===NO.keys||CO(FO,LO(t))?MO:e})),UO=ii,qO=Math.floor,WO=function(t,e){var r=t.length,n=qO(r/2);return r<8?YO(t,e):GO(t,WO(UO(t,0,n),e),WO(UO(t,n),e),e)},YO=function(t,e){for(var r,n,o=t.length,i=1;i0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},GO=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a3)){if(sS)return!0;if(fS)return fS<603;var t,e,r,n,o=\"\";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)lS.push({k:e+n,v:r})}for(lS.sort((function(t,e){return e.v-t.v})),n=0;nnS(r)?1:-1}}(t)),r=eS(o),n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&\"number\"==typeof this.delay&&(this._timeout=Dd((function(){t.flush()}),this.delay))}},{key:\"flush\",value:function(){var t,e;cv(t=Uv(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:\"extend\",value:function(e,r){var n=new t(r);if(void 0!==e.flush)throw new Error(\"Target object already has a property flush\");e.flush=function(){n.flush()};var o=[{name:\"flush\",original:void 0}];if(r&&r.replace)for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function QS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rwE.mark((function r(){var n,o,i,a,u;return wE.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=$S(e),r.prev=1,n.s();case 3:if((o=n.n()).done){r.next=10;break}if(i=Lp(o.value,2),a=i[0],u=i[1],!t(u,a)){r.next=8;break}return r.next=8,[a,u];case 8:r.next=3;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(1),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:case\"end\":return r.stop()}}),r,null,[[1,12,15,18]])}))()})}},{key:\"forEach\",value:function(t){var e,r=$S(this._pairs);try{for(r.s();!(e=r.n()).done;){var n=Lp(e.value,2),o=n[0];t(n[1],o)}}catch(t){r.e(t)}finally{r.f()}}},{key:\"map\",value:function(t){var e=this._pairs;return new r({[IS]:()=>wE.mark((function r(){var n,o,i,a,u;return wE.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=$S(e),r.prev=1,n.s();case 3:if((o=n.n()).done){r.next=9;break}return i=Lp(o.value,2),a=i[0],u=i[1],r.next=7,[a,t(u,a)];case 7:r.next=3;break;case 9:r.next=14;break;case 11:r.prev=11,r.t0=r.catch(1),n.e(r.t0);case 14:return r.prev=14,n.f(),r.finish(14);case 17:case\"end\":return r.stop()}}),r,null,[[1,11,14,17]])}))()})}},{key:\"max\",value:function(t){var e=JS(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=Lp(r.value,2),a=i[0],u=i[1],s=t(u,a);s>o&&(o=s,n=u)}return n}},{key:\"min\",value:function(t){var e=JS(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=Lp(r.value,2),a=i[0],u=i[1],s=t(u,a);s=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r-1:0),o=1;oo?1:no)&&(n=a,o=u)}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:\"min\",value:function(t){var e,r,n=null,o=null,i=rx(PS(e=this._data).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a[t];\"number\"==typeof u&&(null==o||uwE.mark((function r(){var n,o,i,a;return wE.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=rx(t),r.prev=1,n.s();case 3:if((o=n.n()).done){r.next=11;break}if(i=o.value,null==(a=e.get(i))){r.next=9;break}return r.next=9,[i,a];case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),n.e(r.t0);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case\"end\":return r.stop()}}),r,null,[[1,13,16,19]])}))()})}var r;return new ZS({[IS]:cl(r=zS(this._data)).call(r,this._data)})}}]),n}(HS);function ax(t,e){var r=void 0!==Rp&&Xh(t)||t[\"@@iterator\"];if(!r){if(Kp(t)||(r=function(t,e){var r;if(!t)return;if(\"string\"==typeof t)return ux(t,e);var n=qp(r=Object.prototype.toString.call(t)).call(r,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Wh(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ux(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ux(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&R[0]<4?1:+(R[0]+R[1])),!j&&ct&&(!(R=ct.match(/Edge\\/(\\d+)/))||R[1]>=74)&&(R=ct.match(/Chrome\\/(\\d+)/))&&(j=+R[1]);var gt=j,yt=gt,mt=s,bt=r.String,wt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol(\"symbol detection\");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),kt=wt&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,_t=at,xt=T,Et=ht,Ot=Object,Ct=kt?function(t){return\"symbol\"==typeof t}:function(t){var e=_t(\"Symbol\");return xt(e)&&Et(e.prototype,Ot(t))},St=String,Tt=function(t){try{return St(t)}catch(t){return\"Object\"}},Mt=T,Pt=Tt,Dt=TypeError,It=function(t){if(Mt(t))return t;throw new Dt(Pt(t)+\" is not a function\")},Bt=It,Ft=Y,zt=function(t,e){var i=t[e];return Ft(i)?void 0:Bt(i)},Nt=B,At=T,Rt=et,jt=TypeError,Lt={exports:{}},Ht=r,Wt=Object.defineProperty,Vt=function(t,e){try{Wt(Ht,t,{value:e,configurable:!0,writable:!0})}catch(i){Ht[t]=e}return e},qt=\"__core-js_shared__\",Ut=r[qt]||Vt(qt,{}),Yt=Ut;(Lt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.33.0\",mode:\"pure\",copyright:\"© 2014-2023 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE\",source:\"https://github.com/zloirock/core-js\"});var Xt=Lt.exports,Kt=G,Gt=Object,$t=function(t){return Gt(Kt(t))},Zt=$t,Qt=y({}.hasOwnProperty),Jt=Object.hasOwn||function(t,e){return Qt(Zt(t),e)},te=y,ee=0,ie=Math.random(),oe=te(1..toString),ne=function(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+oe(++ee+ie,36)},re=Xt,se=Jt,ae=ne,he=wt,de=kt,le=r.Symbol,ce=re(\"wks\"),ue=de?le.for||le:le&&le.withoutSetter||ae,fe=function(t){return se(ce,t)||(ce[t]=he&&se(le,t)?le[t]:ue(\"Symbol.\"+t)),ce[t]},pe=B,ve=et,ge=Ct,ye=zt,me=function(t,e){var i,o;if(\"string\"===e&&At(i=t.toString)&&!Rt(o=Nt(i,t)))return o;if(At(i=t.valueOf)&&!Rt(o=Nt(i,t)))return o;if(\"string\"!==e&&At(i=t.toString)&&!Rt(o=Nt(i,t)))return o;throw new jt(\"Can't convert object to primitive value\")},be=TypeError,we=fe(\"toPrimitive\"),ke=function(t,e){if(!ve(t)||ge(t))return t;var i,o=ye(t,we);if(o){if(void 0===e&&(e=\"default\"),i=pe(o,t,e),!ve(i)||ge(i))return i;throw new be(\"Can't convert object to primitive value\")}return void 0===e&&(e=\"number\"),me(t,e)},_e=Ct,xe=function(t){var e=ke(t,\"string\");return _e(e)?e:e+\"\"},Ee=et,Oe=r.document,Ce=Ee(Oe)&&Ee(Oe.createElement),Se=function(t){return Ce?Oe.createElement(t):{}},Te=Se,Me=!P&&!s((function(){return 7!==Object.defineProperty(Te(\"div\"),\"a\",{get:function(){return 7}}).a})),Pe=P,De=B,Ie=F,Be=L,Fe=Q,ze=xe,Ne=Jt,Ae=Me,Re=Object.getOwnPropertyDescriptor;M.f=Pe?Re:function(t,e){if(t=Fe(t),e=ze(e),Ae)try{return Re(t,e)}catch(t){}if(Ne(t,e))return Be(!De(Ie.f,t,e),t[e])};var je=s,Le=T,He=/#|\\.prototype\\./,We=function(t,e){var i=qe[Ve(t)];return i===Ye||i!==Ue&&(Le(e)?je(e):!!e)},Ve=We.normalize=function(t){return String(t).replace(He,\".\").toLowerCase()},qe=We.data={},Ue=We.NATIVE=\"N\",Ye=We.POLYFILL=\"P\",Xe=We,Ke=It,Ge=a,$e=E(E.bind),Ze=function(t,e){return Ke(t),void 0===e?t:Ge?$e(t,e):function(){return t.apply(e,arguments)}},Qe={},Je=P&&s((function(){return 42!==Object.defineProperty((function(){}),\"prototype\",{value:42,writable:!1}).prototype})),ti=et,ei=String,ii=TypeError,oi=function(t){if(ti(t))return t;throw new ii(ei(t)+\" is not an object\")},ni=P,ri=Me,si=Je,ai=oi,hi=xe,di=TypeError,li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,ui=\"enumerable\",fi=\"configurable\",pi=\"writable\";Qe.f=ni?si?function(t,e,i){if(ai(t),e=hi(e),ai(i),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in i&&pi in i&&!i[pi]){var o=ci(t,e);o&&o[pi]&&(t[e]=i.value,i={configurable:fi in i?i[fi]:o[fi],enumerable:ui in i?i[ui]:o[ui],writable:!1})}return li(t,e,i)}:li:function(t,e,i){if(ai(t),e=hi(e),ai(i),ri)try{return li(t,e,i)}catch(t){}if(\"get\"in i||\"set\"in i)throw new di(\"Accessors not supported\");return\"value\"in i&&(t[e]=i.value),t};var vi=Qe,gi=L,yi=P?function(t,e,i){return vi.f(t,e,gi(1,i))}:function(t,e,i){return t[e]=i,t},mi=r,bi=u,wi=E,ki=T,_i=M.f,xi=Xe,Ei=it,Oi=Ze,Ci=yi,Si=Jt,Ti=function(t){var e=function(i,o,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,o)}return new t(i,o,n)}return bi(t,this,arguments)};return e.prototype=t.prototype,e},Mi=function(t,e){var i,o,n,r,s,a,h,d,l,c=t.target,u=t.global,f=t.stat,p=t.proto,v=u?mi:f?mi[c]:(mi[c]||{}).prototype,g=u?Ei:Ei[c]||Ci(Ei,c,{})[c],y=g.prototype;for(r in e)o=!(i=xi(u?r:c+(f?\".\":\"#\")+r,t.forced))&&v&&Si(v,r),a=g[r],o&&(h=t.dontCallGetSet?(l=_i(v,r))&&l.value:v[r]),s=o&&h?h:e[r],o&&typeof a==typeof s||(d=t.bind&&o?Oi(s,mi):t.wrap&&o?Ti(s):p&&ki(s)?wi(s):s,(t.sham||s&&s.sham||a&&a.sham)&&Ci(d,\"sham\",!0),Ci(g,r,d),p&&(Si(Ei,n=c+\"Prototype\")||Ci(Ei,n,{}),Ci(Ei[n],r,s),t.real&&y&&(i||!y[r])&&Ci(y,r,s)))},Pi=Math.ceil,Di=Math.floor,Ii=Math.trunc||function(t){var e=+t;return(e>0?Di:Pi)(e)},Bi=function(t){var e=+t;return e!=e||0===e?0:Ii(e)},Fi=Bi,zi=Math.max,Ni=Math.min,Ai=function(t,e){var i=Fi(t);return i<0?zi(i+e,0):Ni(i,e)},Ri=Bi,ji=Math.min,Li=function(t){return t>0?ji(Ri(t),9007199254740991):0},Hi=function(t){return Li(t.length)},Wi=Q,Vi=Ai,qi=Hi,Ui=function(t){return function(e,i,o){var n,r=Wi(e),s=qi(r),a=Vi(o,s);if(t&&i!=i){for(;s>a;)if((n=r[a++])!=n)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},Yi={includes:Ui(!0),indexOf:Ui(!1)},Xi={},Ki=Jt,Gi=Q,$i=Yi.indexOf,Zi=Xi,Qi=y([].push),Ji=function(t,e){var i,o=Gi(t),n=0,r=[];for(i in o)!Ki(Zi,i)&&Ki(o,i)&&Qi(r,i);for(;e.length>n;)Ki(o,i=e[n++])&&(~$i(r,i)||Qi(r,i));return r},to=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],eo=Ji,io=to,oo=Object.keys||function(t){return eo(t,io)},no={};no.f=Object.getOwnPropertySymbols;var ro=P,so=y,ao=B,ho=s,lo=oo,co=no,uo=F,fo=$t,po=U,vo=Object.assign,go=Object.defineProperty,yo=so([].concat),mo=!vo||ho((function(){if(ro&&1!==vo({b:1},vo(go({},\"a\",{enumerable:!0,get:function(){go(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(\"assign detection\"),o=\"abcdefghijklmnopqrst\";return t[i]=7,o.split(\"\").forEach((function(t){e[t]=t})),7!==vo({},t)[i]||lo(vo({},e)).join(\"\")!==o}))?function(t,e){for(var i=fo(t),o=arguments.length,n=1,r=co.f,s=uo.f;o>n;)for(var a,h=po(arguments[n++]),d=r?yo(lo(h),r(h)):lo(h),l=d.length,c=0;l>c;)a=d[c++],ro&&!ao(s,h,a)||(i[a]=h[a]);return i}:vo,bo=mo;Mi({target:\"Object\",stat:!0,arity:2,forced:Object.assign!==bo},{assign:bo});var wo=o(it.Object.assign),ko=y([].slice),_o=y,xo=It,Eo=et,Oo=Jt,Co=ko,So=a,To=Function,Mo=_o([].concat),Po=_o([].join),Do={},Io=So?To.bind:function(t){var e=xo(this),i=e.prototype,o=Co(arguments,1),n=function(){var i=Mo(o,Co(arguments));return this instanceof n?function(t,e,i){if(!Oo(Do,e)){for(var o=[],n=0;n=.1;)(p=+r[c++%s])>l&&(p=l),f=Math.sqrt(p*p/(1+d*d)),e+=f=a<0?-f:f,i+=d*f,!0===u?t.lineTo(e,i):t.moveTo(e,i),l-=p,u=!u}var Ko={circle:Vo,dashedLine:Xo,database:Yo,diamond:function(t,e,i,o){t.beginPath(),t.lineTo(e,i+o),t.lineTo(e+o,i),t.lineTo(e,i-o),t.lineTo(e-o,i),t.closePath()},ellipse:Uo,ellipse_vis:Uo,hexagon:function(t,e,i,o){t.beginPath();var n=2*Math.PI/6;t.moveTo(e+o,i);for(var r=1;r<6;r++)t.lineTo(e+o*Math.cos(n*r),i+o*Math.sin(n*r));t.closePath()},roundRect:qo,square:function(t,e,i,o){t.beginPath(),t.rect(e-o,i-o,2*o,2*o),t.closePath()},star:function(t,e,i,o){t.beginPath(),i+=.1*(o*=.82);for(var n=0;n<10;n++){var r=n%2==0?1.3*o:.5*o;t.lineTo(e+r*Math.sin(2*n*Math.PI/10),i-r*Math.cos(2*n*Math.PI/10))}t.closePath()},triangle:function(t,e,i,o){t.beginPath(),i+=.275*(o*=1.15);var n=2*o,r=n/2,s=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-r*r);t.moveTo(e,i-(a-s)),t.lineTo(e+r,i+s),t.lineTo(e-r,i+s),t.lineTo(e,i-(a-s)),t.closePath()},triangleDown:function(t,e,i,o){t.beginPath(),i-=.275*(o*=1.15);var n=2*o,r=n/2,s=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-r*r);t.moveTo(e,i+(a-s)),t.lineTo(e+r,i-s),t.lineTo(e-r,i-s),t.lineTo(e,i+(a-s)),t.closePath()}};var Go={exports:{}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,o=this._callbacks[\"$\"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks[\"$\"+t],this;for(var n=0;n=a?t?\"\":void 0:(o=mn(r,s))<55296||o>56319||s+1===a||(n=mn(r,s+1))<56320||n>57343?t?yn(r,s):o:t?bn(r,s,s+2):n-56320+(o-55296<<10)+65536}},kn={codeAt:wn(!1),charAt:wn(!0)},_n=T,xn=r.WeakMap,En=_n(xn)&&/native code/.test(String(xn)),On=ne,Cn=Xt(\"keys\"),Sn=function(t){return Cn[t]||(Cn[t]=On(t))},Tn=En,Mn=r,Pn=et,Dn=yi,In=Jt,Bn=Ut,Fn=Sn,zn=Xi,Nn=\"Object already initialized\",An=Mn.TypeError,Rn=Mn.WeakMap;if(Tn||Bn.state){var jn=Bn.state||(Bn.state=new Rn);jn.get=jn.get,jn.has=jn.has,jn.set=jn.set,Qo=function(t,e){if(jn.has(t))throw new An(Nn);return e.facade=t,jn.set(t,e),e},Jo=function(t){return jn.get(t)||{}},tn=function(t){return jn.has(t)}}else{var Ln=Fn(\"state\");zn[Ln]=!0,Qo=function(t,e){if(In(t,Ln))throw new An(Nn);return e.facade=t,Dn(t,Ln,e),e},Jo=function(t){return In(t,Ln)?t[Ln]:{}},tn=function(t){return In(t,Ln)}}var Hn={set:Qo,get:Jo,has:tn,enforce:function(t){return tn(t)?Jo(t):Qo(t,{})},getterFor:function(t){return function(e){var i;if(!Pn(e)||(i=Jo(e)).type!==t)throw new An(\"Incompatible receiver, \"+t+\" required\");return i}}},Wn=P,Vn=Jt,qn=Function.prototype,Un=Wn&&Object.getOwnPropertyDescriptor,Yn=Vn(qn,\"name\"),Xn={EXISTS:Yn,PROPER:Yn&&\"something\"===function(){}.name,CONFIGURABLE:Yn&&(!Wn||Wn&&Un(qn,\"name\").configurable)},Kn={},Gn=P,$n=Je,Zn=Qe,Qn=oi,Jn=Q,tr=oo;Kn.f=Gn&&!$n?Object.defineProperties:function(t,e){Qn(t);for(var i,o=Jn(e),n=tr(e),r=n.length,s=0;r>s;)Zn.f(t,i=n[s++],o[i]);return t};var er,ir=at(\"document\",\"documentElement\"),or=oi,nr=Kn,rr=to,sr=Xi,ar=ir,hr=Se,dr=\"prototype\",lr=\"script\",cr=Sn(\"IE_PROTO\"),ur=function(){},fr=function(t){return\"<\"+lr+\">\"+t+\"\"},pr=function(t){t.write(fr(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e},vr=function(){try{er=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,i;vr=\"undefined\"!=typeof document?document.domain&&er?pr(er):(e=hr(\"iframe\"),i=\"java\"+lr+\":\",e.style.display=\"none\",ar.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(fr(\"document.F=Object\")),t.close(),t.F):pr(er);for(var o=rr.length;o--;)delete vr[dr][rr[o]];return vr()};sr[cr]=!0;var gr,yr,mr,br=Object.create||function(t,e){var i;return null!==t?(ur[dr]=or(t),i=new ur,ur[dr]=null,i[cr]=t):i=vr(),void 0===e?i:nr.f(i,e)},wr=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),kr=Jt,_r=T,xr=$t,Er=wr,Or=Sn(\"IE_PROTO\"),Cr=Object,Sr=Cr.prototype,Tr=Er?Cr.getPrototypeOf:function(t){var e=xr(t);if(kr(e,Or))return e[Or];var i=e.constructor;return _r(i)&&e instanceof i?i.prototype:e instanceof Cr?Sr:null},Mr=yi,Pr=function(t,e,i,o){return o&&o.enumerable?t[e]=i:Mr(t,e,i),t},Dr=s,Ir=T,Br=et,Fr=br,zr=Tr,Nr=Pr,Ar=fe(\"iterator\"),Rr=!1;[].keys&&(\"next\"in(mr=[].keys())?(yr=zr(zr(mr)))!==Object.prototype&&(gr=yr):Rr=!0);var jr=!Br(gr)||Dr((function(){var t={};return gr[Ar].call(t)!==t}));Ir((gr=jr?{}:Fr(gr))[Ar])||Nr(gr,Ar,(function(){return this}));var Lr={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Rr},Hr=dn,Wr=en?{}.toString:function(){return\"[object \"+Hr(this)+\"]\"},Vr=en,qr=Qe.f,Ur=yi,Yr=Jt,Xr=Wr,Kr=fe(\"toStringTag\"),Gr=function(t,e,i,o){if(t){var n=i?t:t.prototype;Yr(n,Kr)||qr(n,Kr,{configurable:!0,value:e}),o&&!Vr&&Ur(n,\"toString\",Xr)}},$r={},Zr=Lr.IteratorPrototype,Qr=br,Jr=L,ts=Gr,es=$r,is=function(){return this},os=y,ns=It,rs=T,ss=String,as=TypeError,hs=function(t,e,i){try{return os(ns(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},ds=oi,ls=function(t){if(\"object\"==typeof t||rs(t))return t;throw new as(\"Can't set \"+ss(t)+\" as a prototype\")},cs=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var t,e=!1,i={};try{(t=hs(Object.prototype,\"__proto__\",\"set\"))(i,[]),e=i instanceof Array}catch(t){}return function(i,o){return ds(i),ls(o),e?t(i,o):i.__proto__=o,i}}():void 0),us=Mi,fs=B,ps=Xn,vs=function(t,e,i,o){var n=e+\" Iterator\";return t.prototype=Qr(Zr,{next:Jr(+!o,i)}),ts(t,n,!1,!0),es[n]=is,t},gs=Tr,ys=Gr,ms=Pr,bs=$r,ws=Lr,ks=ps.PROPER,_s=ws.BUGGY_SAFARI_ITERATORS,xs=fe(\"iterator\"),Es=\"keys\",Os=\"values\",Cs=\"entries\",Ss=function(){return this},Ts=function(t,e,i,o,n,r,s){vs(i,e,o);var a,h,d,l=function(t){if(t===n&&v)return v;if(!_s&&t&&t in f)return f[t];switch(t){case Es:case Os:case Cs:return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+\" Iterator\",u=!1,f=t.prototype,p=f[xs]||f[\"@@iterator\"]||n&&f[n],v=!_s&&p||l(n),g=\"Array\"===e&&f.entries||p;if(g&&(a=gs(g.call(new t)))!==Object.prototype&&a.next&&(ys(a,c,!0,!0),bs[c]=Ss),ks&&n===Os&&p&&p.name!==Os&&(u=!0,v=function(){return fs(p,this)}),n)if(h={values:l(Os),keys:r?v:l(Es),entries:l(Cs)},s)for(d in h)(_s||u||!(d in f))&&ms(f,d,h[d]);else us({target:e,proto:!0,forced:_s||u},h);return s&&f[xs]!==v&&ms(f,xs,v,{name:n}),bs[e]=v,h},Ms=function(t,e){return{value:t,done:e}},Ps=kn.charAt,Ds=un,Is=Hn,Bs=Ts,Fs=Ms,zs=\"String Iterator\",Ns=Is.set,As=Is.getterFor(zs);Bs(String,\"String\",(function(t){Ns(this,{type:zs,string:Ds(t),index:0})}),(function(){var t,e=As(this),i=e.string,o=e.index;return o>=i.length?Fs(void 0,!0):(t=Ps(i,o),e.index+=t.length,Fs(t,!1))}));var Rs=B,js=oi,Ls=zt,Hs=function(t,e,i){var o,n;js(t);try{if(!(o=Ls(t,\"return\"))){if(\"throw\"===e)throw i;return i}o=Rs(o,t)}catch(t){n=!0,o=t}if(\"throw\"===e)throw i;if(n)throw o;return js(o),i},Ws=oi,Vs=Hs,qs=$r,Us=fe(\"iterator\"),Ys=Array.prototype,Xs=function(t){return void 0!==t&&(qs.Array===t||Ys[Us]===t)},Ks=T,Gs=Ut,$s=y(Function.toString);Ks(Gs.inspectSource)||(Gs.inspectSource=function(t){return $s(t)});var Zs=Gs.inspectSource,Qs=y,Js=s,ta=T,ea=dn,ia=Zs,oa=function(){},na=[],ra=at(\"Reflect\",\"construct\"),sa=/^\\s*(?:class|function)\\b/,aa=Qs(sa.exec),ha=!sa.test(oa),da=function(t){if(!ta(t))return!1;try{return ra(oa,na,t),!0}catch(t){return!1}},la=function(t){if(!ta(t))return!1;switch(ea(t)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1}try{return ha||!!aa(sa,ia(t))}catch(t){return!0}};la.sham=!0;var ca=!ra||Js((function(){var t;return da(da.call)||!da(Object)||!da((function(){t=!0}))||t}))?la:da,ua=xe,fa=Qe,pa=L,va=function(t,e,i){var o=ua(e);o in t?fa.f(t,o,pa(0,i)):t[o]=i},ga=dn,ya=zt,ma=Y,ba=$r,wa=fe(\"iterator\"),ka=function(t){if(!ma(t))return ya(t,wa)||ya(t,\"@@iterator\")||ba[ga(t)]},_a=B,xa=It,Ea=oi,Oa=Tt,Ca=ka,Sa=TypeError,Ta=function(t,e){var i=arguments.length<2?Ca(t):e;if(xa(i))return Ea(_a(i,t));throw new Sa(Oa(t)+\" is not iterable\")},Ma=Ze,Pa=B,Da=$t,Ia=function(t,e,i,o){try{return o?e(Ws(i)[0],i[1]):e(i)}catch(e){Vs(t,\"throw\",e)}},Ba=Xs,Fa=ca,za=Hi,Na=va,Aa=Ta,Ra=ka,ja=Array,La=fe(\"iterator\"),Ha=!1;try{var Wa=0,Va={next:function(){return{done:!!Wa++}},return:function(){Ha=!0}};Va[La]=function(){return this},Array.from(Va,(function(){throw 2}))}catch(t){}var qa=function(t){var e=Da(t),i=Fa(this),o=arguments.length,n=o>1?arguments[1]:void 0,r=void 0!==n;r&&(n=Ma(n,o>2?arguments[2]:void 0));var s,a,h,d,l,c,u=Ra(e),f=0;if(!u||this===ja&&Ba(u))for(s=za(e),a=i?new this(s):ja(s);s>f;f++)c=r?n(e[f],f):e[f],Na(a,f,c);else for(l=(d=Aa(e,u)).next,a=i?new this:[];!(h=Pa(l,d)).done;f++)c=r?Ia(d,n,[h.value,f],!0):h.value,Na(a,f,c);return a.length=f,a},Ua=function(t,e){try{if(!e&&!Ha)return!1}catch(t){return!1}var i=!1;try{var o={};o[La]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i};Mi({target:\"Array\",stat:!0,forced:!Ua((function(t){Array.from(t)}))},{from:qa});var Ya=it.Array.from,Xa=o(Ya),Ka=Q,Ga=$r,$a=Hn;Qe.f;var Za=Ts,Qa=Ms,Ja=\"Array Iterator\",th=$a.set,eh=$a.getterFor(Ja);Za(Array,\"Array\",(function(t,e){th(this,{type:Ja,target:Ka(t),index:0,kind:e})}),(function(){var t=eh(this),e=t.target,i=t.kind,o=t.index++;if(!e||o>=e.length)return t.target=void 0,Qa(void 0,!0);switch(i){case\"keys\":return Qa(o,!1);case\"values\":return Qa(e[o],!1)}return Qa([o,e[o]],!1)}),\"values\"),Ga.Arguments=Ga.Array;var ih=ka,oh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},nh=r,rh=dn,sh=yi,ah=$r,hh=fe(\"toStringTag\");for(var dh in oh){var lh=nh[dh],ch=lh&&lh.prototype;ch&&rh(ch)!==hh&&sh(ch,hh,dh),ah[dh]=ah.Array}var uh=ih,fh=o(uh),ph=o(uh);function vh(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var gh={exports:{}},yh=Mi,mh=P,bh=Qe.f;yh({target:\"Object\",stat:!0,forced:Object.defineProperty!==bh,sham:!mh},{defineProperty:bh});var wh=it.Object,kh=gh.exports=function(t,e,i){return wh.defineProperty(t,e,i)};wh.defineProperty.sham&&(kh.sham=!0);var _h=gh.exports,xh=o(_h),Eh=k,Oh=Array.isArray||function(t){return\"Array\"===Eh(t)},Ch=TypeError,Sh=function(t){if(t>9007199254740991)throw Ch(\"Maximum allowed index exceeded\");return t},Th=Oh,Mh=ca,Ph=et,Dh=fe(\"species\"),Ih=Array,Bh=function(t){var e;return Th(t)&&(e=t.constructor,(Mh(e)&&(e===Ih||Th(e.prototype))||Ph(e)&&null===(e=e[Dh]))&&(e=void 0)),void 0===e?Ih:e},Fh=function(t,e){return new(Bh(t))(0===e?0:e)},zh=s,Nh=gt,Ah=fe(\"species\"),Rh=function(t){return Nh>=51||!zh((function(){var e=[];return(e.constructor={})[Ah]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},jh=Mi,Lh=s,Hh=Oh,Wh=et,Vh=$t,qh=Hi,Uh=Sh,Yh=va,Xh=Fh,Kh=Rh,Gh=gt,$h=fe(\"isConcatSpreadable\"),Zh=Gh>=51||!Lh((function(){var t=[];return t[$h]=!1,t.concat()[0]!==t})),Qh=function(t){if(!Wh(t))return!1;var e=t[$h];return void 0!==e?!!e:Hh(t)};jh({target:\"Array\",proto:!0,arity:1,forced:!Zh||!Kh(\"concat\")},{concat:function(t){var e,i,o,n,r,s=Vh(this),a=Xh(s,0),h=0;for(e=-1,o=arguments.length;em;m++)if((a||m in v)&&(f=g(u=v[m],m,p),t))if(e)w[m]=f;else if(f)switch(t){case 3:return!0;case 5:return u;case 6:return m;case 2:Bd(w,u)}else switch(t){case 4:return!1;case 7:Bd(w,u)}return r?-1:o||n?n:w}},zd={forEach:Fd(0),map:Fd(1),filter:Fd(2),some:Fd(3),every:Fd(4),find:Fd(5),findIndex:Fd(6),filterReject:Fd(7)},Nd=Mi,Ad=r,Rd=B,jd=y,Ld=P,Hd=wt,Wd=s,Vd=Jt,qd=ht,Ud=oi,Yd=Q,Xd=xe,Kd=un,Gd=L,$d=br,Zd=oo,Qd=Jh,Jd=id,tl=no,el=M,il=Qe,ol=Kn,nl=F,rl=Pr,sl=vd,al=Xt,hl=Xi,dl=ne,ll=fe,cl=gd,ul=_d,fl=Sd,pl=Gr,vl=Hn,gl=zd.forEach,yl=Sn(\"hidden\"),ml=\"Symbol\",bl=\"prototype\",wl=vl.set,kl=vl.getterFor(ml),_l=Object[bl],xl=Ad.Symbol,El=xl&&xl[bl],Ol=Ad.RangeError,Cl=Ad.TypeError,Sl=Ad.QObject,Tl=el.f,Ml=il.f,Pl=Jd.f,Dl=nl.f,Il=jd([].push),Bl=al(\"symbols\"),Fl=al(\"op-symbols\"),zl=al(\"wks\"),Nl=!Sl||!Sl[bl]||!Sl[bl].findChild,Al=function(t,e,i){var o=Tl(_l,e);o&&delete _l[e],Ml(t,e,i),o&&t!==_l&&Ml(_l,e,o)},Rl=Ld&&Wd((function(){return 7!==$d(Ml({},\"a\",{get:function(){return Ml(this,\"a\",{value:7}).a}})).a}))?Al:Ml,jl=function(t,e){var i=Bl[t]=$d(El);return wl(i,{type:ml,tag:t,description:e}),Ld||(i.description=e),i},Ll=function(t,e,i){t===_l&&Ll(Fl,e,i),Ud(t);var o=Xd(e);return Ud(i),Vd(Bl,o)?(i.enumerable?(Vd(t,yl)&&t[yl][o]&&(t[yl][o]=!1),i=$d(i,{enumerable:Gd(0,!1)})):(Vd(t,yl)||Ml(t,yl,Gd(1,{})),t[yl][o]=!0),Rl(t,o,i)):Ml(t,o,i)},Hl=function(t,e){Ud(t);var i=Yd(e),o=Zd(i).concat(Ul(i));return gl(o,(function(e){Ld&&!Rd(Wl,i,e)||Ll(t,e,i[e])})),t},Wl=function(t){var e=Xd(t),i=Rd(Dl,this,e);return!(this===_l&&Vd(Bl,e)&&!Vd(Fl,e))&&(!(i||!Vd(this,e)||!Vd(Bl,e)||Vd(this,yl)&&this[yl][e])||i)},Vl=function(t,e){var i=Yd(t),o=Xd(e);if(i!==_l||!Vd(Bl,o)||Vd(Fl,o)){var n=Tl(i,o);return!n||!Vd(Bl,o)||Vd(i,yl)&&i[yl][o]||(n.enumerable=!0),n}},ql=function(t){var e=Pl(Yd(t)),i=[];return gl(e,(function(t){Vd(Bl,t)||Vd(hl,t)||Il(i,t)})),i},Ul=function(t){var e=t===_l,i=Pl(e?Fl:Yd(t)),o=[];return gl(i,(function(t){!Vd(Bl,t)||e&&!Vd(_l,t)||Il(o,Bl[t])})),o};Hd||(xl=function(){if(qd(El,this))throw new Cl(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?Kd(arguments[0]):void 0,e=dl(t),i=function(t){this===_l&&Rd(i,Fl,t),Vd(this,yl)&&Vd(this[yl],e)&&(this[yl][e]=!1);var o=Gd(1,t);try{Rl(this,e,o)}catch(t){if(!(t instanceof Ol))throw t;Al(this,e,o)}};return Ld&&Nl&&Rl(_l,e,{configurable:!0,set:i}),jl(e,t)},rl(El=xl[bl],\"toString\",(function(){return kl(this).tag})),rl(xl,\"withoutSetter\",(function(t){return jl(dl(t),t)})),nl.f=Wl,il.f=Ll,ol.f=Hl,el.f=Vl,Qd.f=Jd.f=ql,tl.f=Ul,cl.f=function(t){return jl(ll(t),t)},Ld&&sl(El,\"description\",{configurable:!0,get:function(){return kl(this).description}})),Nd({global:!0,constructor:!0,wrap:!0,forced:!Hd,sham:!Hd},{Symbol:xl}),gl(Zd(zl),(function(t){ul(t)})),Nd({target:ml,stat:!0,forced:!Hd},{useSetter:function(){Nl=!0},useSimple:function(){Nl=!1}}),Nd({target:\"Object\",stat:!0,forced:!Hd,sham:!Ld},{create:function(t,e){return void 0===e?$d(t):Hl($d(t),e)},defineProperty:Ll,defineProperties:Hl,getOwnPropertyDescriptor:Vl}),Nd({target:\"Object\",stat:!0,forced:!Hd},{getOwnPropertyNames:ql}),fl(),pl(xl,ml),hl[yl]=!0;var Yl=wt&&!!Symbol.for&&!!Symbol.keyFor,Xl=Mi,Kl=at,Gl=Jt,$l=un,Zl=Xt,Ql=Yl,Jl=Zl(\"string-to-symbol-registry\"),tc=Zl(\"symbol-to-string-registry\");Xl({target:\"Symbol\",stat:!0,forced:!Ql},{for:function(t){var e=$l(t);if(Gl(Jl,e))return Jl[e];var i=Kl(\"Symbol\")(e);return Jl[e]=i,tc[i]=e,i}});var ec=Mi,ic=Jt,oc=Ct,nc=Tt,rc=Yl,sc=Xt(\"symbol-to-string-registry\");ec({target:\"Symbol\",stat:!0,forced:!rc},{keyFor:function(t){if(!oc(t))throw new TypeError(nc(t)+\" is not a symbol\");if(ic(sc,t))return sc[t]}});var ac=Oh,hc=T,dc=k,lc=un,cc=y([].push),uc=Mi,fc=at,pc=u,vc=B,gc=y,yc=s,mc=T,bc=Ct,wc=ko,kc=function(t){if(hc(t))return t;if(ac(t)){for(var e=t.length,i=[],o=0;ot.length)&&(e=t.length);for(var i=0,o=new Array(e);i1?arguments[1]:void 0)}});var Sf=zo(\"Array\").map,Tf=ht,Mf=Sf,Pf=Array.prototype,Df=function(t){var e=t.map;return t===Pf||Tf(Pf,t)&&e===Pf.map?Mf:e},If=o(Df),Bf=$t,Ff=oo;Mi({target:\"Object\",stat:!0,forced:s((function(){Ff(1)}))},{keys:function(t){return Ff(Bf(t))}});var zf=o(it.Object.keys),Nf=Mi,Af=Date,Rf=y(Af.prototype.getTime);Nf({target:\"Date\",stat:!0},{now:function(){return Rf(new Af)}});var jf=o(it.Date.now),Lf=s,Hf=function(t,e){var i=[][t];return!!i&&Lf((function(){i.call(null,e||function(){return 1},1)}))},Wf=zd.forEach,Vf=Hf(\"forEach\")?[].forEach:function(t){return Wf(this,t,arguments.length>1?arguments[1]:void 0)};Mi({target:\"Array\",proto:!0,forced:[].forEach!==Vf},{forEach:Vf});var qf=zo(\"Array\").forEach,Uf=dn,Yf=Jt,Xf=ht,Kf=qf,Gf=Array.prototype,$f={DOMTokenList:!0,NodeList:!0},Zf=function(t){var e=t.forEach;return t===Gf||Xf(Gf,t)&&e===Gf.forEach||Yf($f,Uf(t))?Kf:e},Qf=o(Zf),Jf=Mi,tp=Oh,ep=y([].reverse),ip=[1,2];Jf({target:\"Array\",proto:!0,forced:String(ip)===String(ip.reverse())},{reverse:function(){return tp(this)&&(this.length=this.length),ep(this)}});var op=zo(\"Array\").reverse,np=ht,rp=op,sp=Array.prototype,ap=function(t){var e=t.reverse;return t===sp||np(sp,t)&&e===sp.reverse?rp:e},hp=o(ap),dp=Tt,lp=TypeError,cp=function(t,e){if(!delete t[e])throw new lp(\"Cannot delete property \"+dp(e)+\" of \"+dp(t))},up=Mi,fp=$t,pp=Ai,vp=Bi,gp=Hi,yp=Su,mp=Sh,bp=Fh,wp=va,kp=cp,_p=Rh(\"splice\"),xp=Math.max,Ep=Math.min;up({target:\"Array\",proto:!0,forced:!_p},{splice:function(t,e){var i,o,n,r,s,a,h=fp(this),d=gp(h),l=pp(t,d),c=arguments.length;for(0===c?i=o=0:1===c?(i=0,o=d-l):(i=c-2,o=Ep(xp(vp(e),0),d-l)),mp(d+i-o),n=bp(h,o),r=0;rd-o+i;r--)kp(h,r-1)}else if(i>o)for(r=d-o;r>l;r--)a=r+i-1,(s=r+o-1)in h?h[a]=h[s]:kp(h,a);for(r=0;r1?arguments[1]:void 0)}});var Ip=zo(\"Array\").includes,Bp=et,Fp=k,zp=fe(\"match\"),Np=function(t){var e;return Bp(t)&&(void 0!==(e=t[zp])?!!e:\"RegExp\"===Fp(t))},Ap=TypeError,Rp=fe(\"match\"),jp=Mi,Lp=function(t){if(Np(t))throw new Ap(\"The method doesn't accept regular expressions\");return t},Hp=G,Wp=un,Vp=function(t){var e=/./;try{\"/./\"[t](e)}catch(i){try{return e[Rp]=!1,\"/./\"[t](e)}catch(t){}}return!1},qp=y(\"\".indexOf);jp({target:\"String\",proto:!0,forced:!Vp(\"includes\")},{includes:function(t){return!!~qp(Wp(Hp(this)),Wp(Lp(t)),arguments.length>1?arguments[1]:void 0)}});var Up=zo(\"String\").includes,Yp=ht,Xp=Ip,Kp=Up,Gp=Array.prototype,$p=String.prototype,Zp=function(t){var e=t.includes;return t===Gp||Yp(Gp,t)&&e===Gp.includes?Xp:\"string\"==typeof t||t===$p||Yp($p,t)&&e===$p.includes?Kp:e},Qp=o(Zp),Jp=$t,tv=Tr,ev=wr;Mi({target:\"Object\",stat:!0,forced:s((function(){tv(1)})),sham:!ev},{getPrototypeOf:function(t){return tv(Jp(t))}});var iv=it.Object.getPrototypeOf,ov=o(iv),nv=zd.filter;Mi({target:\"Array\",proto:!0,forced:!Rh(\"filter\")},{filter:function(t){return nv(this,t,arguments.length>1?arguments[1]:void 0)}});var rv=zo(\"Array\").filter,sv=ht,av=rv,hv=Array.prototype,dv=function(t){var e=t.filter;return t===hv||sv(hv,t)&&e===hv.filter?av:e},lv=o(dv),cv=\"\\t\\n\\v\\f\\r                 \\u2028\\u2029\\ufeff\",uv=G,fv=un,pv=cv,vv=y(\"\".replace),gv=RegExp(\"^[\"+pv+\"]+\"),yv=RegExp(\"(^|[^\"+pv+\"])[\"+pv+\"]+$\"),mv=function(t){return function(e){var i=fv(uv(e));return 1&t&&(i=vv(i,gv,\"\")),2&t&&(i=vv(i,yv,\"$1\")),i}},bv={start:mv(1),end:mv(2),trim:mv(3)},wv=r,kv=s,_v=y,xv=un,Ev=bv.trim,Ov=cv,Cv=wv.parseInt,Sv=wv.Symbol,Tv=Sv&&Sv.iterator,Mv=/^[+-]?0x/i,Pv=_v(Mv.exec),Dv=8!==Cv(Ov+\"08\")||22!==Cv(Ov+\"0x16\")||Tv&&!kv((function(){Cv(Object(Tv))}))?function(t,e){var i=Ev(xv(t));return Cv(i,e>>>0||(Pv(Mv,i)?16:10))}:Cv;Mi({global:!0,forced:parseInt!==Dv},{parseInt:Dv});var Iv=o(it.parseInt),Bv=Mi,Fv=Yi.indexOf,zv=Hf,Nv=E([].indexOf),Av=!!Nv&&1/Nv([1],1,-0)<0;Bv({target:\"Array\",proto:!0,forced:Av||!zv(\"indexOf\")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Av?Nv(this,t,e)||0:Fv(this,t,e)}});var Rv=zo(\"Array\").indexOf,jv=ht,Lv=Rv,Hv=Array.prototype,Wv=function(t){var e=t.indexOf;return t===Hv||jv(Hv,t)&&e===Hv.indexOf?Lv:e},Vv=o(Wv);Mi({target:\"Object\",stat:!0,sham:!P},{create:br});var qv=it.Object,Uv=function(t,e){return qv.create(t,e)},Yv=o(Uv),Xv=it,Kv=u;Xv.JSON||(Xv.JSON={stringify:JSON.stringify});var Gv=function(t,e,i){return Kv(Xv.JSON.stringify,null,arguments)},$v=o(Gv),Zv=\"function\"==typeof Bun&&Bun&&\"string\"==typeof Bun.version,Qv=TypeError,Jv=r,tg=u,eg=T,ig=Zv,og=dt,ng=ko,rg=function(t,e){if(ti,s=eg(o)?o:sg(o),a=r?ng(arguments,i):[],h=r?function(){tg(s,this,a)}:s;return e?t(h,n):t(h)}:t},dg=Mi,lg=r,cg=hg(lg.setInterval,!0);dg({global:!0,bind:!0,forced:lg.setInterval!==cg},{setInterval:cg});var ug=Mi,fg=r,pg=hg(fg.setTimeout,!0);ug({global:!0,bind:!0,forced:fg.setTimeout!==pg},{setTimeout:pg});var vg=o(it.setTimeout),gg=$t,yg=Ai,mg=Hi,bg=function(t){for(var e=gg(this),i=mg(e),o=arguments.length,n=yg(o>1?arguments[1]:void 0,i),r=o>2?arguments[2]:void 0,s=void 0===r?i:yg(r,i);s>n;)e[n++]=t;return e};Mi({target:\"Array\",proto:!0},{fill:bg});var wg,kg=zo(\"Array\").fill,_g=ht,xg=kg,Eg=Array.prototype,Og=function(t){var e=t.fill;return t===Eg||_g(Eg,t)&&e===Eg.fill?xg:e},Cg=o(Og);\n/*! Hammer.JS - v2.0.17-rc - 2019-12-16\n\t * http://naver.github.io/egjs\n\t *\n\t * Forked By Naver egjs\n\t * Copyright (c) hammerjs\n\t * Licensed under the MIT license */\nfunction Sg(){return Sg=Object.assign||function(t){for(var e=1;e-1}var vy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Lg&&(t=this.compute()),jg&&this.manager.element.style&&Yg[t]&&(this.manager.element.style[Rg]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return uy(this.manager.recognizers,(function(e){fy(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(py(t,Vg))return Vg;var e=py(t,qg),i=py(t,Ug);return e&&i?Vg:e||i?e?qg:Ug:py(t,Wg)?Wg:Hg}(t.join(\" \"))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,n=py(o,Vg)&&!Yg[Vg],r=py(o,Ug)&&!Yg[Ug],s=py(o,qg)&&!Yg[qg];if(n){var a=1===t.pointers.length,h=t.distance<2,d=t.deltaTime<250;if(a&&h&&d)return}if(!s||!r)return n||r&&i&ay||s&&i&hy?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function gy(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function yy(t){var e=t.length;if(1===e)return{x:Fg(t[0].clientX),y:Fg(t[0].clientY)};for(var i=0,o=0,n=0;n=zg(e)?t<0?oy:ny:e<0?ry:sy}function _y(t,e,i){return{x:e/t||0,y:i/t||0}}function xy(t,e){var i=t.session,o=e.pointers,n=o.length;i.firstInput||(i.firstInput=my(e)),n>1&&!i.firstMultiple?i.firstMultiple=my(e):1===n&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,h=e.center=yy(o);e.timeStamp=Ng(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=wy(a,h),e.distance=by(a,h),function(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},r=t.prevInput||{};e.eventType!==Jg&&r.eventType!==ty||(n=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}(i,e),e.offsetDirection=ky(e.deltaX,e.deltaY);var d,l,c=_y(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=zg(c.x)>zg(c.y)?c.x:c.y,e.scale=s?(d=s.pointers,by((l=o)[0],l[1],cy)/by(d[0],d[1],cy)):1,e.rotation=s?function(t,e){return wy(e[1],e[0],cy)+wy(t[1],t[0],cy)}(s.pointers,o):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,o,n,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==ey&&(a>Qg||void 0===s.velocity)){var h=e.deltaX-s.deltaX,d=e.deltaY-s.deltaY,l=_y(a,h,d);o=l.x,n=l.y,i=zg(l.x)>zg(l.y)?l.x:l.y,r=ky(h,d),t.lastInterval=e}else i=s.velocity,o=s.velocityX,n=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=o,e.velocityY=n,e.direction=r}(i,e);var u,f=t.element,p=e.srcEvent;gy(u=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=u),e.target=f}function Ey(t,e,i){var o=i.pointers.length,n=i.changedPointers.length,r=e&Jg&&o-n==0,s=e&(ty|ey)&&o-n==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,xy(t,i),t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function Oy(t){return t.trim().split(/\\s+/g)}function Cy(t,e,i){uy(Oy(e),(function(e){t.addEventListener(e,i,!1)}))}function Sy(t,e,i){uy(Oy(e),(function(e){t.removeEventListener(e,i,!1)}))}function Ty(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var My=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){fy(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Cy(this.element,this.evEl,this.domHandler),this.evTarget&&Cy(this.target,this.evTarget,this.domHandler),this.evWin&&Cy(Ty(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Sy(this.element,this.evEl,this.domHandler),this.evTarget&&Sy(this.target,this.evTarget,this.domHandler),this.evWin&&Sy(Ty(this.element),this.evWin,this.domHandler)},t}();function Py(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;oi[e]})):o.sort()),o}var Ry={touchstart:Jg,touchmove:2,touchend:ty,touchcancel:ey},jy=function(t){function e(){var i;return e.prototype.evTarget=\"touchstart touchmove touchend touchcancel\",(i=t.apply(this,arguments)||this).targetIds={},i}return Tg(e,t),e.prototype.handler=function(t){var e=Ry[t.type],i=Ly.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:$g,srcEvent:t})},e}(My);function Ly(t,e){var i,o,n=Ny(t.touches),r=this.targetIds;if(e&(2|Jg)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var s=Ny(t.changedTouches),a=[],h=this.target;if(o=n.filter((function(t){return gy(t.target,h)})),e===Jg)for(i=0;i-1&&o.splice(t,1)}),Vy)}}function Uy(t,e){t&Jg?(this.primaryTouch=e.changedPointers[0].identifier,qy.call(this,e)):t&(ty|ey)&&qy.call(this,e)}function Yy(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,o=0;o-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function o(i){e.manager.emit(i,t)}i<8&&o(e.options.event+Qy(i)),o(e.options.event),t.additionalEvent&&o(t.additionalEvent),i>=8&&o(e.options.event+Qy(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Gy},e.canEmit=function(){for(var t=0;te.threshold&&n&e.direction},i.attrTest=function(t){return em.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=im(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(em),nm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Sg({event:\"swipe\",threshold:10,velocity:.3,direction:ay|hy,pointers:1},e))||this}Tg(e,t);var i=e.prototype;return i.getTouchAction=function(){return om.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,o=this.options.direction;return o&(ay|hy)?i=e.overallVelocity:o&ay?i=e.overallVelocityX:o&hy&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&o&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&zg(i)>this.options.velocity&&e.eventType&ty},i.emit=function(t){var e=im(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(em),rm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Sg({event:\"pinch\",threshold:0,pointers:2},e))||this}Tg(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Vg]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?\"in\":\"out\";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(em),sm=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Sg({event:\"rotate\",threshold:0,pointers:2},e))||this}Tg(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Vg]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(em),am=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,Sg({event:\"press\",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}Tg(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Hg]},i.process=function(t){var e=this,i=this.options,o=t.pointers.length===i.pointers,n=t.distancei.time;if(this._input=t,!n||!o||t.eventType&(ty|ey)&&!r)this.reset();else if(t.eventType&Jg)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(t.eventType&ty)return 8;return Gy},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&t.eventType&ty?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=Ng(),this.manager.emit(this.options.event,this._input)))},e}(Jy),hm={domEvents:!1,touchAction:Lg,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}},dm=[[sm,{enable:!1}],[rm,{enable:!1},[\"rotate\"]],[nm,{direction:ay}],[om,{direction:ay},[\"swipe\"]],[tm],[tm,{event:\"doubletap\",taps:2},[\"tap\"]],[am]];function lm(t,e){var i,o=t.element;o.style&&(uy(t.options.cssProps,(function(n,r){i=Ag(o.style,r),e?(t.oldCssProps[i]=o.style[i],o.style[i]=n):o.style[i]=t.oldCssProps[i]||\"\"})),e||(t.oldCssProps={}))}var cm=function(){function t(t,e){var i,o=this;this.options=Dg({},hm,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(Kg?zy:Gg?jy:Xg?Xy:Wy))(i,Ey),this.touchAction=new vy(this,this.options.touchAction),lm(this,!0),uy(this.options.recognizers,(function(t){var e=o.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Dg(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var o=this.recognizers,n=e.curRecognizer;(!n||n&&8&n.state)&&(e.curRecognizer=null,n=null);for(var r=0;r\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,o,i),t.apply(this,arguments)}}var gm=vm((function(t,e,i){for(var o=Object.keys(e),n=0;n=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function xm(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(\" \"),i=t(\" \"),o=t(\" \"),n=0;n2&&void 0!==arguments[2]&&arguments[2];for(var o in t)if(void 0!==e[o])if(null===e[o]||\"object\"!==gu(e[o]))Fm(t,e,o,i);else{var n=t[o],r=e[o];Bm(n)&&Bm(r)&&zm(n,r,i)}}function Nm(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Of(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(var n=0;n3&&void 0!==arguments[3]&&arguments[3];if(Of(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&!Qp(t).call(t,n))if(i[n]&&i[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?Rm(e[n],i[n]):Fm(e,i,n,o);else if(Of(i[n])){e[n]=[];for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)||!0===i)if(\"object\"===gu(e[n])&&null!==e[n]&&ov(e[n])===Object.prototype)void 0===t[n]?t[n]=Rm({},e[n],i):\"object\"===gu(t[n])&&null!==t[n]&&ov(t[n])===Object.prototype?Rm(t[n],e[n],i):Fm(t,e,n,o);else if(Of(e[n])){var r;t[n]=mf(r=e[n]).call(r)}else Fm(t,e,n,o);return t}function jm(t,e){var i;return yf(i=[]).call(i,lf(t),[e])}function Lm(t){return t.getBoundingClientRect().top}function Hm(t,e){if(Of(t))for(var i=t.length,o=0;o3&&void 0!==arguments[3]?arguments[3]:{},n=function(t){return null!=t},r=function(t){return null!==t&&\"object\"===gu(t)};if(!r(t))throw new Error(\"Parameter mergeTarget must be an object\");if(!r(e))throw new Error(\"Parameter options must be an object\");if(!n(i))throw new Error(\"Parameter option must have a value\");if(!r(o))throw new Error(\"Parameter globalOptions must be an object\");var s=e[i],a=r(o)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(o)?o[i]:void 0,h=a?a.enabled:void 0;if(void 0!==s){if(\"boolean\"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!n(a))return;t[i]=Yv(a)}if(r(s)){var d=!0;void 0!==s.enabled?d=s.enabled:void 0!==h&&(d=a.enabled),function(t,e,i){r(t[i])||(t[i]={});var o=e[i],n=t[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}(t,e,i),t[i].enabled=d}}}var Jm={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function tb(t,e){var i;Of(e)||(e=[e]);var o,n=_m(t);try{for(n.s();!(o=n.n()).done;){var r=o.value;if(r){i=r[e[0]];for(var s=1;s0&&void 0!==arguments[0]?arguments[0]:1;vh(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return wu(t,[{key:\"insertTo\",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:\"setUpdateCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\");this.updateCallback=t}},{key:\"setCloseCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\");this.closeCallback=t}},{key:\"_isColorString\",value:function(t){if(\"string\"==typeof t)return eb[t]}},{key:\"setColor\",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(\"none\"!==t){var i,o=this._isColorString(t);if(void 0!==o&&(t=o),!0===Im(t)){if(!0===$m(t)){var n=t.substr(4).substr(0,t.length-5).split(\",\");i={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===function(t){return Pm.test(t)}(t)){var r=t.substr(5).substr(0,t.length-6).split(\",\");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===Gm(t)){var s=Wm(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:\"1.0\";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \"+$v(t));this._setColor(i,e)}}},{key:\"show\",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display=\"block\",this._generateHueCircle()}},{key:\"_hide\",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=wo({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display=\"none\",vg((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:\"_save\",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:\"_apply\",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:\"_loadLast\",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert(\"There is no last color to load...\")}},{key:\"_setColor\",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=wo({},t)),this.color=t;var e=Ym(t.r,t.g,t.b),i=2*Math.PI,o=this.r*e.s,n=this.centerCoordinates.x+o*Math.sin(i*e.h),r=this.centerCoordinates.y+o*Math.cos(i*e.h);this.colorPickerSelector.style.left=n-.5*this.colorPickerSelector.clientWidth+\"px\",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+\"px\",this._updatePicker(t)}},{key:\"_setOpacity\",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:\"_setBrightness\",value:function(t){var e=Ym(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=Xm(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:\"_updatePicker\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Ym(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext(\"2d\");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,n),i.putImageData(this.hueCircle,0,0),i.fillStyle=\"rgba(0,0,0,\"+(1-e.v)+\")\",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Cg(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}},{key:\"_setSize\",value:function(){this.colorPickerCanvas.style.width=\"100%\",this.colorPickerCanvas.style.height=\"100%\",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:\"_create\",value:function(){var t,e,i,o;if(this.frame=document.createElement(\"div\"),this.frame.className=\"vis-color-picker\",this.colorPickerDiv=document.createElement(\"div\"),this.colorPickerSelector=document.createElement(\"div\"),this.colorPickerSelector.className=\"vis-selector\",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement(\"canvas\"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var n=this.colorPickerCanvas.getContext(\"2d\");this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1),this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement(\"DIV\");r.style.color=\"red\",r.style.fontWeight=\"bold\",r.style.padding=\"10px\",r.innerText=\"Error: your browser does not support HTML canvas\",this.colorPickerCanvas.appendChild(r)}this.colorPickerDiv.className=\"vis-color\",this.opacityDiv=document.createElement(\"div\"),this.opacityDiv.className=\"vis-opacity\",this.brightnessDiv=document.createElement(\"div\"),this.brightnessDiv.className=\"vis-brightness\",this.arrowDiv=document.createElement(\"div\"),this.arrowDiv.className=\"vis-arrow\",this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\",this.opacityRange.min=\"0\",this.opacityRange.max=\"100\"}catch(t){}this.opacityRange.value=\"100\",this.opacityRange.className=\"vis-range\",this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\",this.brightnessRange.min=\"0\",this.brightnessRange.max=\"100\"}catch(t){}this.brightnessRange.value=\"100\",this.brightnessRange.className=\"vis-range\",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement(\"div\"),this.brightnessLabel.className=\"vis-label vis-brightness\",this.brightnessLabel.innerText=\"brightness:\",this.opacityLabel=document.createElement(\"div\"),this.opacityLabel.className=\"vis-label vis-opacity\",this.opacityLabel.innerText=\"opacity:\",this.newColorDiv=document.createElement(\"div\"),this.newColorDiv.className=\"vis-new-color\",this.newColorDiv.innerText=\"new\",this.initialColorDiv=document.createElement(\"div\"),this.initialColorDiv.className=\"vis-initial-color\",this.initialColorDiv.innerText=\"initial\",this.cancelButton=document.createElement(\"div\"),this.cancelButton.className=\"vis-button vis-cancel\",this.cancelButton.innerText=\"cancel\",this.cancelButton.onclick=Wo(t=this._hide).call(t,this,!1),this.applyButton=document.createElement(\"div\"),this.applyButton.className=\"vis-button vis-apply\",this.applyButton.innerText=\"apply\",this.applyButton.onclick=Wo(e=this._apply).call(e,this),this.saveButton=document.createElement(\"div\"),this.saveButton.className=\"vis-button vis-save\",this.saveButton.innerText=\"save\",this.saveButton.onclick=Wo(i=this._save).call(i,this),this.loadButton=document.createElement(\"div\"),this.loadButton.className=\"vis-button vis-load\",this.loadButton.innerText=\"load last\",this.loadButton.onclick=Wo(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:\"_bindHammer\",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Om(this.colorPickerCanvas),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"hammer.input\",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on(\"tap\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panstart\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panmove\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panend\",(function(e){t._moveSelector(e)}))}},{key:\"_generateHueCircle\",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext(\"2d\");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,o,n,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;var a,h=2*Math.PI/360,d=1/this.r;for(o=0;o<360;o++)for(n=0;n3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};vh(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.hideOption=r,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},wo(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new ib(n),this.wrapper=void 0}return wu(t,[{key:\"setOptions\",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if(\"string\"==typeof t)this.options.filter=t;else if(Of(t))this.options.filter=t.join();else if(\"object\"===gu(t)){if(null==t)throw new TypeError(\"options cannot be null\");void 0!==t.container&&(this.options.container=t.container),void 0!==lv(t)&&(this.options.filter=lv(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else\"boolean\"==typeof t?(this.options.filter=!0,e=t):\"function\"==typeof t&&(this.options.filter=t,e=!0);!1===lv(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:\"setModuleOptions\",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:\"_create\",value:function(){this._clean(),this.changedOptions=[];var t=lv(this.options),e=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,\"function\"==typeof t?i=(i=t(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):!0!==t&&-1===Vv(t).call(t,o)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),e++);this._makeButton(),this._push()}},{key:\"_push\",value:function(){this.wrapper=document.createElement(\"div\"),this.wrapper.className=\"vis-configuration-wrapper\",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2],o=document.createElement(\"div\");if(o.className=\"vis-configuration vis-config-label vis-config-s\"+e.length,!0===i){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(ob(\"i\",\"b\",t))}else o.innerText=t+\":\";return o}},{key:\"_makeDropdown\",value:function(t,e,i){var o=document.createElement(\"select\");o.className=\"vis-configuration vis-config-select\";var n=0;void 0!==e&&-1!==Vv(t).call(t,e)&&(n=Vv(t).call(t,e));for(var r=0;rr&&1!==r&&(a.max=Math.ceil(e*l),d=a.max,h=\"range increased\"),a.value=e}else a.value=o;var c=document.createElement(\"input\");c.className=\"vis-configuration vis-config-rangeinput\",c.value=a.value;var u=this;a.onchange=function(){c.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){c.value=this.value};var f=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,f,a,c);\"\"!==h&&this.popupHistory[p]!==d&&(this.popupHistory[p]=d,this._setupPopup(h,p))}},{key:\"_makeButton\",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-button\",e.innerText=\"generate options\",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className=\"vis-configuration vis-config-button hover\"},e.onmouseout=function(){e.className=\"vis-configuration vis-config-button\"},this.optionsContainer=document.createElement(\"div\"),this.optionsContainer.className=\"vis-configuration vis-config-option-container\",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:\"_setupPopup\",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,n=lv(this.options),r=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){o=!0;var a=t[s],h=jm(e,s);if(\"function\"==typeof n&&!1===(o=n(s,e))&&!Of(a)&&\"string\"!=typeof a&&\"boolean\"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,o=this._handleObject(a,h,!0),this.allowCreation=!1===i),!1!==o){r=!0;var d=this._getValue(h);if(Of(a))this._handleArray(a,d,h);else if(\"string\"==typeof a)this._makeTextInput(a,d,h);else if(\"boolean\"==typeof a)this._makeCheckbox(a,d,h);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var l=jm(h,\"enabled\"),c=this._getValue(l);if(!0===c){var u=this._makeLabel(s,h,!0);this._makeItem(h,u),r=this._handleObject(a,h)||r}else this._makeCheckbox(a,c,h)}else{var f=this._makeLabel(s,h,!0);this._makeItem(h,f),r=this._handleObject(a,h)||r}}else console.error(\"dont know how to handle\",a,s,h)}}return r}},{key:\"_handleArray\",value:function(t,e,i){\"string\"==typeof t[0]&&\"color\"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):\"string\"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):\"number\"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:\"_update\",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit(\"configChange\",i),this.initialized=!0,this.parent.setOptions(i)}},{key:\"_constructOptions\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i;t=\"false\"!==(t=\"true\"===t||t)&&t;for(var n=0;nn-this.padding&&(a=!0),r=a?this.x-i:this.x,s=h?this.y-e:this.y}else(s=this.y-e)+e+this.padding>o&&(s=o-e-this.padding),sn&&(r=n-i-this.padding),rs.distance?\" in \"+t.printLocation(r.path,e,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+t.printLocation(s.path,s.closestMatch,\"\"):r.distance<=8?'. Did you mean \"'+r.closestMatch+'\"?'+t.printLocation(r.path,e):\". Did you mean one of these: \"+t.print(zf(i))+t.printLocation(o,e),console.error('%cUnknown option detected: \"'+e+'\"'+n,hb),ab=!0}},{key:\"findInOptions\",value:function(e,i,o){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,a=\"\",h=[],d=e.toLowerCase(),l=void 0;for(var c in i){var u=void 0;if(void 0!==i[c].__type__&&!0===r){var f=t.findInOptions(e,i[c],jm(o,c));s>f.distance&&(a=f.closestMatch,h=f.path,s=f.distance,l=f.indexMatch)}else{var p;-1!==Vv(p=c.toLowerCase()).call(p,d)&&(l=c),s>(u=t.levenshteinDistance(e,c))&&(a=c,h=mf(n=o).call(n),s=u)}}return{closestMatch:a,path:h,distance:s,indexMatch:l}}},{key:\"printLocation\",value:function(t,e){for(var i=\"\\n\\n\"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"Problem value found at: \\n\")+\"options = {\\n\",o=0;o\":!0,\"--\":!0},kb=\"\",_b=0,xb=\"\",Eb=\"\",Ob=bb.NULL;function Cb(){_b++,xb=kb.charAt(_b)}function Sb(){return kb.charAt(_b+1)}function Tb(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function Mb(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Pb(t,e,i){for(var o=e.split(\".\"),n=t;o.length;){var r=o.shift();o.length?(n[r]||(n[r]={}),n=n[r]):n[r]=i}}function Db(t,e){for(var i,o,n=null,r=[t],s=t;s.parent;)r.push(s.parent),s=s.parent;if(s.nodes)for(i=0,o=s.nodes.length;i=0;i--){var a,h=r[i];h.nodes||(h.nodes=[]),-1===Vv(a=h.nodes).call(a,n)&&h.nodes.push(n)}e.attr&&(n.attr=Mb(n.attr,e.attr))}function Ib(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=Mb({},t.edge);e.attr=Mb(i,e.attr)}}function Bb(t,e,i,o,n){var r={from:e,to:i,type:o};return t.edge&&(r.attr=Mb({},t.edge)),r.attr=Mb(r.attr||{},n),null!=n&&n.hasOwnProperty(\"arrows\")&&null!=n.arrows&&(r.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),r}function Fb(){for(Ob=bb.NULL,Eb=\"\";\" \"===xb||\"\\t\"===xb||\"\\n\"===xb||\"\\r\"===xb;)Cb();do{var t=!1;if(\"#\"===xb){for(var e=_b-1;\" \"===kb.charAt(e)||\"\\t\"===kb.charAt(e);)e--;if(\"\\n\"===kb.charAt(e)||\"\"===kb.charAt(e)){for(;\"\"!=xb&&\"\\n\"!=xb;)Cb();t=!0}}if(\"/\"===xb&&\"/\"===Sb()){for(;\"\"!=xb&&\"\\n\"!=xb;)Cb();t=!0}if(\"/\"===xb&&\"*\"===Sb()){for(;\"\"!=xb;){if(\"*\"===xb&&\"/\"===Sb()){Cb(),Cb();break}Cb()}t=!0}for(;\" \"===xb||\"\\t\"===xb||\"\\n\"===xb||\"\\r\"===xb;)Cb()}while(t);if(\"\"!==xb){var i=xb+Sb();if(wb[i])return Ob=bb.DELIMITER,Eb=i,Cb(),void Cb();if(wb[xb])return Ob=bb.DELIMITER,Eb=xb,void Cb();if(Tb(xb)||\"-\"===xb){for(Eb+=xb,Cb();Tb(xb);)Eb+=xb,Cb();return\"false\"===Eb?Eb=!1:\"true\"===Eb?Eb=!0:isNaN(Number(Eb))||(Eb=Number(Eb)),void(Ob=bb.IDENTIFIER)}if('\"'===xb){for(Cb();\"\"!=xb&&('\"'!=xb||'\"'===xb&&'\"'===Sb());)'\"'===xb?(Eb+=xb,Cb()):\"\\\\\"===xb&&\"n\"===Sb()?(Eb+=\"\\n\",Cb()):Eb+=xb,Cb();if('\"'!=xb)throw Lb('End of string \" expected');return Cb(),void(Ob=bb.IDENTIFIER)}for(Ob=bb.UNKNOWN;\"\"!=xb;)Eb+=xb,Cb();throw new SyntaxError('Syntax error in part \"'+Hb(Eb,30)+'\"')}Ob=bb.DELIMITER}function zb(t){for(;\"\"!==Eb&&\"}\"!=Eb;)Nb(t),\";\"===Eb&&Fb()}function Nb(t){var e=Ab(t);if(e)Rb(t,e);else{var i=function(t){if(\"node\"===Eb)return Fb(),t.node=jb(),\"node\";if(\"edge\"===Eb)return Fb(),t.edge=jb(),\"edge\";if(\"graph\"===Eb)return Fb(),t.graph=jb(),\"graph\";return null}(t);if(!i){if(Ob!=bb.IDENTIFIER)throw Lb(\"Identifier expected\");var o=Eb;if(Fb(),\"=\"===Eb){if(Fb(),Ob!=bb.IDENTIFIER)throw Lb(\"Identifier expected\");t[o]=Eb,Fb()}else!function(t,e){var i={id:e},o=jb();o&&(i.attr=o);Db(t,i),Rb(t,e)}(t,o)}}}function Ab(t){var e=null;if(\"subgraph\"===Eb&&((e={}).type=\"subgraph\",Fb(),Ob===bb.IDENTIFIER&&(e.id=Eb,Fb())),\"{\"===Eb){if(Fb(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,zb(e),\"}\"!=Eb)throw Lb(\"Angle bracket } expected\");Fb(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function Rb(t,e){for(;\"->\"===Eb||\"--\"===Eb;){var i,o=Eb;Fb();var n=Ab(t);if(n)i=n;else{if(Ob!=bb.IDENTIFIER)throw Lb(\"Identifier or subgraph expected\");Db(t,{id:i=Eb}),Fb()}Ib(t,Bb(t,e,i,o,jb())),e=i}}function jb(){for(var t,e,i=null,o={dashed:!0,solid:!1,dotted:[1,5]},n={dot:\"circle\",box:\"box\",crow:\"crow\",curve:\"curve\",icurve:\"inv_curve\",normal:\"triangle\",inv:\"inv_triangle\",diamond:\"diamond\",tee:\"bar\",vee:\"vee\"},r=new Array,s=new Array;\"[\"===Eb;){for(Fb(),i={};\"\"!==Eb&&\"]\"!=Eb;){if(Ob!=bb.IDENTIFIER)throw Lb(\"Attribute name expected\");var a=Eb;if(Fb(),\"=\"!=Eb)throw Lb(\"Equal sign = expected\");if(Fb(),Ob!=bb.IDENTIFIER)throw Lb(\"Attribute value expected\");var h=Eb;\"style\"===a&&(h=o[h]),\"arrowhead\"===a&&(a=\"arrows\",h={to:{enabled:!0,type:n[h]}}),\"arrowtail\"===a&&(a=\"arrows\",h={from:{enabled:!0,type:n[h]}}),r.push({attr:i,name:a,value:h}),s.push(a),Fb(),\",\"==Eb&&Fb()}if(\"]\"!=Eb)throw Lb(\"Bracket ] expected\");Fb()}if(Qp(s).call(s,\"dir\")){var d={arrows:{}};for(t=0;t\"===t.type&&(e.arrows=\"to\"),e};Qf(n=i.edges).call(n,(function(t){var e,i,n,s,a,h,d;(e=t.from instanceof Object?t.from.nodes:{id:t.from},i=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges)&&Qf(n=t.from.edges).call(n,(function(t){var e=r(t);o.edges.push(e)}));(a=i,h=function(e,i){var n=Bb(o,e.id,i.id,t.type,t.attr),s=r(n);o.edges.push(s)},Of(s=e)?Qf(s).call(s,(function(t){Of(a)?Qf(a).call(a,(function(e){h(t,e)})):h(t,a)})):Of(a)?Qf(a).call(a,(function(t){h(s,t)})):h(s,a),t.to instanceof Object&&t.to.edges)&&Qf(d=t.to.edges).call(d,(function(t){var e=r(t);o.edges.push(e)}))}))}return i.attr&&(o.options=i.attr),o}var Ub=Object.freeze({__proto__:null,DOTToGraph:qb,parseDOT:gb});function Yb(t,e){var i,o={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=e&&(null!=e.fixed&&(o.nodes.fixed=e.fixed),null!=e.parseColor&&(o.nodes.parseColor=e.parseColor),null!=e.inheritColor&&(o.edges.inheritColor=e.inheritColor));var n=t.edges,r=If(n).call(n,(function(t){var e={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),\"Directed\"===t.type&&(e.arrows=\"to\"),t.color&&!1===o.edges.inheritColor&&(e.color=t.color),e}));return{nodes:If(i=t.nodes).call(i,(function(t){var e={id:t.id,fixed:o.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.size&&(e.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),null!=t.title&&(e.title=t.title),null!=t.x&&(e.x=t.x),null!=t.y&&(e.y=t.y),null!=t.color&&(!0===o.nodes.parseColor?e.color=t.color:e.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),e})),edges:r}}var Xb=Object.freeze({__proto__:null,parseGephi:Yb}),Kb=Object.freeze({__proto__:null,cn:{addDescription:\"单击空白处放置新节点。\",addEdge:\"添加连接线\",addNode:\"添加节点\",back:\"返回\",close:\"關閉\",createEdgeError:\"无法将连接线连接到群集。\",del:\"删除选定\",deleteClusterError:\"无法删除群集。\",edgeDescription:\"单击某个节点并将该连接线拖动到另一个节点以连接它们。\",edit:\"编辑\",editClusterError:\"无法编辑群集。\",editEdge:\"编辑连接线\",editEdgeDescription:\"单击控制节点并将它们拖到节点上连接。\",editNode:\"编辑节点\"},cs:{addDescription:\"Kluknutím do prázdného prostoru můžete přidat nový vrchol.\",addEdge:\"Přidat hranu\",addNode:\"Přidat vrchol\",back:\"Zpět\",close:\"Zavřít\",createEdgeError:\"Nelze připojit hranu ke shluku.\",del:\"Smazat výběr\",deleteClusterError:\"Nelze mazat shluky.\",edgeDescription:\"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.\",edit:\"Upravit\",editClusterError:\"Nelze upravovat shluky.\",editEdge:\"Upravit hranu\",editEdgeDescription:\"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.\",editNode:\"Upravit vrchol\"},de:{addDescription:\"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.\",addEdge:\"Kante hinzufügen\",addNode:\"Knoten hinzufügen\",back:\"Zurück\",close:\"Schließen\",createEdgeError:\"Es ist nicht möglich, Kanten mit Clustern zu verbinden.\",del:\"Lösche Auswahl\",deleteClusterError:\"Cluster können nicht gelöscht werden.\",edgeDescription:\"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.\",edit:\"Editieren\",editClusterError:\"Cluster können nicht editiert werden.\",editEdge:\"Kante editieren\",editEdgeDescription:\"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.\",editNode:\"Knoten editieren\"},en:{addDescription:\"Click in an empty space to place a new node.\",addEdge:\"Add Edge\",addNode:\"Add Node\",back:\"Back\",close:\"Close\",createEdgeError:\"Cannot link edges to a cluster.\",del:\"Delete selected\",deleteClusterError:\"Clusters cannot be deleted.\",edgeDescription:\"Click on a node and drag the edge to another node to connect them.\",edit:\"Edit\",editClusterError:\"Clusters cannot be edited.\",editEdge:\"Edit Edge\",editEdgeDescription:\"Click on the control points and drag them to a node to connect to it.\",editNode:\"Edit Node\"},es:{addDescription:\"Haga clic en un lugar vacío para colocar un nuevo nodo.\",addEdge:\"Añadir arista\",addNode:\"Añadir nodo\",back:\"Atrás\",close:\"Cerrar\",createEdgeError:\"No se puede conectar una arista a un grupo.\",del:\"Eliminar selección\",deleteClusterError:\"No es posible eliminar grupos.\",edgeDescription:\"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.\",edit:\"Editar\",editClusterError:\"No es posible editar grupos.\",editEdge:\"Editar arista\",editEdgeDescription:\"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.\",editNode:\"Editar nodo\"},fr:{addDescription:\"Cliquez dans un endroit vide pour placer un nœud.\",addEdge:\"Ajouter un lien\",addNode:\"Ajouter un nœud\",back:\"Retour\",close:\"Fermer\",createEdgeError:\"Impossible de créer un lien vers un cluster.\",del:\"Effacer la sélection\",deleteClusterError:\"Les clusters ne peuvent pas être effacés.\",edgeDescription:\"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.\",edit:\"Éditer\",editClusterError:\"Les clusters ne peuvent pas être édités.\",editEdge:\"Éditer le lien\",editEdgeDescription:\"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.\",editNode:\"Éditer le nœud\"},it:{addDescription:\"Clicca per aggiungere un nuovo nodo\",addEdge:\"Aggiungi un vertice\",addNode:\"Aggiungi un nodo\",back:\"Indietro\",close:\"Chiudere\",createEdgeError:\"Non si possono collegare vertici ad un cluster\",del:\"Cancella la selezione\",deleteClusterError:\"I cluster non possono essere cancellati\",edgeDescription:\"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.\",edit:\"Modifica\",editClusterError:\"I clusters non possono essere modificati.\",editEdge:\"Modifica il vertice\",editEdgeDescription:\"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.\",editNode:\"Modifica il nodo\"},nl:{addDescription:\"Klik op een leeg gebied om een nieuwe node te maken.\",addEdge:\"Link toevoegen\",addNode:\"Node toevoegen\",back:\"Terug\",close:\"Sluiten\",createEdgeError:\"Kan geen link maken naar een cluster.\",del:\"Selectie verwijderen\",deleteClusterError:\"Clusters kunnen niet worden verwijderd.\",edgeDescription:\"Klik op een node en sleep de link naar een andere node om ze te verbinden.\",edit:\"Wijzigen\",editClusterError:\"Clusters kunnen niet worden aangepast.\",editEdge:\"Link wijzigen\",editEdgeDescription:\"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.\",editNode:\"Node wijzigen\"},pt:{addDescription:\"Clique em um espaço em branco para adicionar um novo nó\",addEdge:\"Adicionar aresta\",addNode:\"Adicionar nó\",back:\"Voltar\",close:\"Fechar\",createEdgeError:\"Não foi possível linkar arestas a um cluster.\",del:\"Remover selecionado\",deleteClusterError:\"Clusters não puderam ser removidos.\",edgeDescription:\"Clique em um nó e arraste a aresta até outro nó para conectá-los\",edit:\"Editar\",editClusterError:\"Clusters não puderam ser editados.\",editEdge:\"Editar aresta\",editEdgeDescription:\"Clique nos pontos de controle e os arraste para um nó para conectá-los\",editNode:\"Editar nó\"},ru:{addDescription:\"Кликните в свободное место, чтобы добавить новый узел.\",addEdge:\"Добавить ребро\",addNode:\"Добавить узел\",back:\"Назад\",close:\"Закрывать\",createEdgeError:\"Невозможно соединить ребра в кластер.\",del:\"Удалить выбранное\",deleteClusterError:\"Кластеры не могут быть удалены\",edgeDescription:\"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.\",edit:\"Редактировать\",editClusterError:\"Кластеры недоступны для редактирования.\",editEdge:\"Редактировать ребро\",editEdgeDescription:\"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.\",editNode:\"Редактировать узел\"},uk:{addDescription:\"Kлікніть на вільне місце, щоб додати новий вузол.\",addEdge:\"Додати край\",addNode:\"Додати вузол\",back:\"Назад\",close:\"Закрити\",createEdgeError:\"Не можливо об'єднати краї в групу.\",del:\"Видалити обране\",deleteClusterError:\"Групи не можуть бути видалені.\",edgeDescription:\"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.\",edit:\"Редагувати\",editClusterError:\"Групи недоступні для редагування.\",editEdge:\"Редагувати край\",editEdgeDescription:\"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.\",editNode:\"Редагувати вузол\"}});var Gb=function(){function t(){vh(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement(\"canvas\")}return wu(t,[{key:\"init\",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var i=Math.floor(e/2),o=Math.floor(e/4),n=Math.floor(e/8),r=Math.floor(e/16),s=Math.floor(t/2),a=Math.floor(t/4),h=Math.floor(t/8),d=Math.floor(t/16);this.canvas.width=3*a,this.canvas.height=i,this.coordinates=[[0,0,s,i],[s,0,a,o],[s,o,h,n],[5*h,o,d,r]],this._fillMipMap()}}},{key:\"initialized\",value:function(){return void 0!==this.coordinates}},{key:\"_fillMipMap\",value:function(){var t=this.canvas.getContext(\"2d\"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var i=1;i2){e*=.5;for(var s=0;e>2&&s=this.NUM_ITERATIONS&&(s=this.NUM_ITERATIONS-1);var a=this.coordinates[s];t.drawImage(this.canvas,a[0],a[1],a[2],a[3],i,o,n,r)}else t.drawImage(this.image,i,o,n,r)}}]),t}(),$b=function(){function t(e){vh(this,t),this.images={},this.imageBroken={},this.callback=e}return wu(t,[{key:\"_tryloadBrokenUrl\",value:function(t,e,i){void 0!==t&&void 0!==i&&(void 0!==e?(i.image.onerror=function(){console.error(\"Could not load brokenImage:\",e)},i.image.src=e):console.warn(\"No broken url image defined\"))}},{key:\"_redrawWithImage\",value:function(t){this.callback&&this.callback(t)}},{key:\"load\",value:function(t,e){var i=this,o=this.images[t];if(o)return o;var n=new Gb;return this.images[t]=n,n.image.onload=function(){i._fixImageCoordinates(n.image),n.init(),i._redrawWithImage(n)},n.image.onerror=function(){console.error(\"Could not load image:\",t),i._tryloadBrokenUrl(t,e,n)},n.image.src=t,n}},{key:\"_fixImageCoordinates\",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),Zb={exports:{}},Qb=s((function(){if(\"function\"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,\"a\",{value:8})}})),Jb=s,tw=et,ew=k,iw=Qb,ow=Object.isExtensible,nw=Jb((function(){ow(1)}))||iw?function(t){return!!tw(t)&&((!iw||\"ArrayBuffer\"!==ew(t))&&(!ow||ow(t)))}:ow,rw=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),sw=Mi,aw=y,hw=Xi,dw=et,lw=Jt,cw=Qe.f,uw=Jh,fw=id,pw=nw,vw=rw,gw=!1,yw=ne(\"meta\"),mw=0,bw=function(t){cw(t,yw,{value:{objectID:\"O\"+mw++,weakData:{}}})},ww=Zb.exports={enable:function(){ww.enable=function(){},gw=!0;var t=uw.f,e=aw([].splice),i={};i[yw]=1,t(i).length&&(uw.f=function(i){for(var o=t(i),n=0,r=o.length;nr;r++)if((a=y(t[r]))&&Tw(Fw,a))return a;return new Bw(!1)}o=Mw(t,n)}for(h=u?t.next:o.next;!(d=xw(h,o)).done;){try{a=y(d.value)}catch(t){Dw(o,\"throw\",t)}if(\"object\"==typeof a&&a&&Tw(Fw,a))return a}return new Bw(!1)},Nw=ht,Aw=TypeError,Rw=function(t,e){if(Nw(e,t))return t;throw new Aw(\"Incorrect invocation\")},jw=Mi,Lw=r,Hw=kw,Ww=s,Vw=yi,qw=zw,Uw=Rw,Yw=T,Xw=et,Kw=Y,Gw=Gr,$w=Qe.f,Zw=zd.forEach,Qw=P,Jw=Hn.set,tk=Hn.getterFor,ek=function(t,e,i){var o,n=-1!==t.indexOf(\"Map\"),r=-1!==t.indexOf(\"Weak\"),s=n?\"set\":\"add\",a=Lw[t],h=a&&a.prototype,d={};if(Qw&&Yw(a)&&(r||h.forEach&&!Ww((function(){(new a).entries().next()})))){var l=(o=e((function(e,i){Jw(Uw(e,l),{type:t,collection:new a}),Kw(i)||qw(i,e[s],{that:e,AS_ENTRIES:n})}))).prototype,c=tk(t);Zw([\"add\",\"clear\",\"delete\",\"forEach\",\"get\",\"has\",\"set\",\"keys\",\"values\",\"entries\"],(function(t){var e=\"add\"===t||\"set\"===t;!(t in h)||r&&\"clear\"===t||Vw(l,t,(function(i,o){var n=c(this).collection;if(!e&&r&&!Xw(i))return\"get\"===t&&void 0;var s=n[t](0===i?0:i,o);return e?this:s}))})),r||$w(l,\"size\",{configurable:!0,get:function(){return c(this).collection.size}})}else o=i.getConstructor(e,t,n,s),Hw.enable();return Gw(o,t,!1,!0),d[t]=o,jw({global:!0,forced:!0},d),r||i.setStrong(o,t,n),o},ik=Pr,ok=function(t,e,i){for(var o in e)i&&i.unsafe&&t[o]?t[o]=e[o]:ik(t,o,e[o],i);return t},nk=at,rk=vd,sk=P,ak=fe(\"species\"),hk=br,dk=vd,lk=ok,ck=Ze,uk=Rw,fk=Y,pk=zw,vk=Ts,gk=Ms,yk=function(t){var e=nk(t);sk&&e&&!e[ak]&&rk(e,ak,{configurable:!0,get:function(){return this}})},mk=P,bk=kw.fastKey,wk=Hn.set,kk=Hn.getterFor,_k={getConstructor:function(t,e,i,o){var n=t((function(t,n){uk(t,r),wk(t,{type:e,index:hk(null),first:void 0,last:void 0,size:0}),mk||(t.size=0),fk(n)||pk(n,t[o],{that:t,AS_ENTRIES:i})})),r=n.prototype,s=kk(e),a=function(t,e,i){var o,n,r=s(t),a=h(t,e);return a?a.value=i:(r.last=a={index:n=bk(e,!0),key:e,value:i,previous:o=r.last,next:void 0,removed:!1},r.first||(r.first=a),o&&(o.next=a),mk?r.size++:t.size++,\"F\"!==n&&(r.index[n]=a)),t},h=function(t,e){var i,o=s(t),n=bk(e);if(\"F\"!==n)return o.index[n];for(i=o.first;i;i=i.next)if(i.key===e)return i};return lk(r,{clear:function(){for(var t=s(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,mk?t.size=0:this.size=0},delete:function(t){var e=this,i=s(e),o=h(e,t);if(o){var n=o.next,r=o.previous;delete i.index[o.index],o.removed=!0,r&&(r.next=n),n&&(n.previous=r),i.first===o&&(i.first=n),i.last===o&&(i.last=r),mk?i.size--:e.size--}return!!o},forEach:function(t){for(var e,i=s(this),o=ck(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!h(this,t)}}),lk(r,i?{get:function(t){var e=h(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),mk&&dk(r,\"size\",{configurable:!0,get:function(){return s(this).size}}),n},setStrong:function(t,e,i){var o=e+\" Iterator\",n=kk(e),r=kk(o);vk(t,e,(function(t,e){wk(this,{type:o,target:t,state:n(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?gk(\"keys\"===e?i.key:\"values\"===e?i.value:[i.key,i.value],!1):(t.target=void 0,gk(void 0,!0))}),i?\"entries\":\"values\",!i,!0),yk(e)}};ek(\"Map\",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),_k);var xk=o(it.Map),Ek=function(){function t(){vh(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:\"#2B7CE9\",background:\"#97C2FC\",highlight:{border:\"#2B7CE9\",background:\"#D2E5FF\"},hover:{border:\"#2B7CE9\",background:\"#D2E5FF\"}},{border:\"#FFA500\",background:\"#FFFF00\",highlight:{border:\"#FFA500\",background:\"#FFFFA3\"},hover:{border:\"#FFA500\",background:\"#FFFFA3\"}},{border:\"#FA0A10\",background:\"#FB7E81\",highlight:{border:\"#FA0A10\",background:\"#FFAFB1\"},hover:{border:\"#FA0A10\",background:\"#FFAFB1\"}},{border:\"#41A906\",background:\"#7BE141\",highlight:{border:\"#41A906\",background:\"#A1EC76\"},hover:{border:\"#41A906\",background:\"#A1EC76\"}},{border:\"#E129F0\",background:\"#EB7DF4\",highlight:{border:\"#E129F0\",background:\"#F0B3F5\"},hover:{border:\"#E129F0\",background:\"#F0B3F5\"}},{border:\"#7C29F0\",background:\"#AD85E4\",highlight:{border:\"#7C29F0\",background:\"#D3BDF0\"},hover:{border:\"#7C29F0\",background:\"#D3BDF0\"}},{border:\"#C37F00\",background:\"#FFA807\",highlight:{border:\"#C37F00\",background:\"#FFCA66\"},hover:{border:\"#C37F00\",background:\"#FFCA66\"}},{border:\"#4220FB\",background:\"#6E6EFD\",highlight:{border:\"#4220FB\",background:\"#9B9BFD\"},hover:{border:\"#4220FB\",background:\"#9B9BFD\"}},{border:\"#FD5A77\",background:\"#FFC0CB\",highlight:{border:\"#FD5A77\",background:\"#FFD1D9\"},hover:{border:\"#FD5A77\",background:\"#FFD1D9\"}},{border:\"#4AD63A\",background:\"#C2FABC\",highlight:{border:\"#4AD63A\",background:\"#E6FFE3\"},hover:{border:\"#4AD63A\",background:\"#E6FFE3\"}},{border:\"#990000\",background:\"#EE0000\",highlight:{border:\"#BB0000\",background:\"#FF3333\"},hover:{border:\"#BB0000\",background:\"#FF3333\"}},{border:\"#FF6000\",background:\"#FF6000\",highlight:{border:\"#FF6000\",background:\"#FF6000\"},hover:{border:\"#FF6000\",background:\"#FF6000\"}},{border:\"#97C2FC\",background:\"#2B7CE9\",highlight:{border:\"#D2E5FF\",background:\"#2B7CE9\"},hover:{border:\"#D2E5FF\",background:\"#2B7CE9\"}},{border:\"#399605\",background:\"#255C03\",highlight:{border:\"#399605\",background:\"#255C03\"},hover:{border:\"#399605\",background:\"#255C03\"}},{border:\"#B70054\",background:\"#FF007E\",highlight:{border:\"#B70054\",background:\"#FF007E\"},hover:{border:\"#B70054\",background:\"#FF007E\"}},{border:\"#AD85E4\",background:\"#7C29F0\",highlight:{border:\"#D3BDF0\",background:\"#7C29F0\"},hover:{border:\"#D3BDF0\",background:\"#7C29F0\"}},{border:\"#4557FA\",background:\"#000EA1\",highlight:{border:\"#6E6EFD\",background:\"#000EA1\"},hover:{border:\"#6E6EFD\",background:\"#000EA1\"}},{border:\"#FFC0CB\",background:\"#FD5A77\",highlight:{border:\"#FFD1D9\",background:\"#FD5A77\"},hover:{border:\"#FFD1D9\",background:\"#FD5A77\"}},{border:\"#C2FABC\",background:\"#74D66A\",highlight:{border:\"#E6FFE3\",background:\"#74D66A\"},hover:{border:\"#E6FFE3\",background:\"#74D66A\"}},{border:\"#EE0000\",background:\"#990000\",highlight:{border:\"#FF3333\",background:\"#BB0000\"},hover:{border:\"#FF3333\",background:\"#BB0000\"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},wo(this.options,this.defaultOptions)}return wu(t,[{key:\"setOptions\",value:function(t){var e=[\"useDefaultGroups\"];if(void 0!==t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&-1===Vv(e).call(e,i)){var o=t[i];this.add(i,o)}}},{key:\"clear\",value:function(){this._groups=new xk,this._groupNames=[]}},{key:\"get\",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._groups.get(t);if(void 0===i&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,(i={}).color=this._groups.get(this._groupNames[o]),this._groups.set(t,i)}else{var n=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(i={}).color=this._defaultGroups[n],this._groups.set(t,i)}return i}},{key:\"add\",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}();Mi({target:\"Number\",stat:!0},{isNaN:function(t){return t!=t}});var Ok=o(it.Number.isNaN),Ck=r.isFinite,Sk=Number.isFinite||function(t){return\"number\"==typeof t&&Ck(t)};Mi({target:\"Number\",stat:!0},{isFinite:Sk});var Tk=o(it.Number.isFinite),Mk=zd.some;Mi({target:\"Array\",proto:!0,forced:!Hf(\"some\")},{some:function(t){return Mk(this,t,arguments.length>1?arguments[1]:void 0)}});var Pk=zo(\"Array\").some,Dk=ht,Ik=Pk,Bk=Array.prototype,Fk=function(t){var e=t.some;return t===Bk||Dk(Bk,t)&&e===Bk.some?Ik:e},zk=o(Fk),Nk=o(it.Object.getOwnPropertySymbols),Ak={exports:{}},Rk=Mi,jk=s,Lk=Q,Hk=M.f,Wk=P;Rk({target:\"Object\",stat:!0,forced:!Wk||jk((function(){Hk(1)})),sham:!Wk},{getOwnPropertyDescriptor:function(t,e){return Hk(Lk(t),e)}});var Vk=it.Object,qk=Ak.exports=function(t,e){return Vk.getOwnPropertyDescriptor(t,e)};Vk.getOwnPropertyDescriptor.sham&&(qk.sham=!0);var Uk=Ak.exports,Yk=o(Uk),Xk=Ef,Kk=Q,Gk=M,$k=va;Mi({target:\"Object\",stat:!0,sham:!P},{getOwnPropertyDescriptors:function(t){for(var e,i,o=Kk(t),n=Gk.f,r=Xk(o),s={},a=0;r.length>a;)void 0!==(i=n(o,e=r[a++]))&&$k(s,e,i);return s}});var Zk=o(it.Object.getOwnPropertyDescriptors),Qk={exports:{}},Jk=Mi,t_=P,e_=Kn.f;Jk({target:\"Object\",stat:!0,forced:Object.defineProperties!==e_,sham:!t_},{defineProperties:e_});var i_=it.Object,o_=Qk.exports=function(t,e){return i_.defineProperties(t,e)};i_.defineProperties.sham&&(o_.sham=!0);var n_=o(Qk.exports),r_=o(_h);function s_(t,e,i){return(e=mu(e))in t?xh(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var a_=r,h_=s,d_=un,l_=bv.trim,c_=cv,u_=y(\"\".charAt),f_=a_.parseFloat,p_=a_.Symbol,v_=p_&&p_.iterator,g_=1/f_(c_+\"-0\")!=-1/0||v_&&!h_((function(){f_(Object(v_))}))?function(t){var e=l_(d_(t)),i=f_(e);return 0===i&&\"-\"===u_(e,0)?-0:i}:f_;Mi({global:!0,forced:parseFloat!==g_},{parseFloat:g_});var y_=o(it.parseFloat),m_=Mi,b_=s,w_=id.f;m_({target:\"Object\",stat:!0,forced:b_((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:w_});var k_=it.Object,__=function(t){return k_.getOwnPropertyNames(t)},x_=o(__);function E_(t,e){var i=[\"node\",\"edge\",\"label\"],o=!0,n=tb(e,\"chosen\");if(\"boolean\"==typeof n)o=n;else if(\"object\"===gu(n)){if(-1===Vv(i).call(i,t))throw new Error(\"choosify: subOption '\"+t+\"' should be one of '\"+i.join(\"', '\")+\"'\");var r=tb(e,[\"chosen\",t]);\"boolean\"!=typeof r&&\"function\"!=typeof r||(o=r)}return o}function O_(t,e,i){if(t.width<=0||t.height<=0)return!1;if(void 0!==i){var o={x:e.x-i.x,y:e.y-i.y};if(0!==i.angle){var n=-i.angle;e={x:Math.cos(n)*o.x-Math.sin(n)*o.y,y:Math.sin(n)*o.x+Math.cos(n)*o.y}}else e=o}var r=t.x+t.width,s=t.y+t.width;return t.lefte.x&&t.tope.y}function C_(t){return\"string\"==typeof t&&\"\"!==t}function S_(t,e,i,o){var n=o.x,r=o.y;if(\"function\"==typeof o.distanceToBorder){var s=o.distanceToBorder(t,e),a=Math.sin(e)*s,h=Math.cos(e)*s;h===s?(n+=s,r=o.y):a===s?(n=o.x,r-=s):(n+=h,r-=a)}else o.shape.width>o.shape.height?(n=o.x+.5*o.shape.width,r=o.y-i):(n=o.x+i,r=o.y-.5*o.shape.height);return{x:n,y:r}}var T_=zo(\"Array\").values,M_=dn,P_=Jt,D_=ht,I_=T_,B_=Array.prototype,F_={DOMTokenList:!0,NodeList:!0},z_=function(t){var e=t.values;return t===B_||D_(B_,t)&&e===B_.values||P_(F_,M_(t))?I_:e},N_=o(z_),A_=function(){function t(e){vh(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return wu(t,[{key:\"_add\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"normal\";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var o=e;void 0!==e&&\"\"!==e||(o=\" \");var n=this.measureText(o,i),r=wo({},N_(n));r.text=e,r.width=n.width,r.mod=i,void 0!==e&&\"\"!==e||(r.width=0),this.lines[t].blocks.push(r),this.lines[t].width+=r.width}},{key:\"curWidth\",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:\"append\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"normal\";this._add(this.current,t,e)}},{key:\"newLine\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"normal\";this._add(this.current,t,e),this.current++}},{key:\"determineLineHeights\",value:function(){for(var t=0;tt&&(t=o.width),e+=o.height}this.width=t,this.height=e}},{key:\"removeEmptyBlocks\",value:function(){for(var t=[],e=0;e\"://,\"\"://,\"\"://,\"\":/<\\/b>/,\"\":/<\\/i>/,\"\":/<\\/code>/,\"*\":/\\*/,_:/_/,\"`\":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},j_=function(){function t(e){vh(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer=\"\",this.modStack=[],this.blocks=[]}return wu(t,[{key:\"mod\",value:function(){return 0===this.modStack.length?\"normal\":this.modStack[0]}},{key:\"modName\",value:function(){return 0===this.modStack.length?\"normal\":\"mono\"===this.modStack[0]?\"mono\":this.bold&&this.ital?\"boldital\":this.bold?\"bold\":this.ital?\"ital\":void 0}},{key:\"emitBlock\",value:function(){this.spacing&&(this.add(\" \"),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer=\"\")}},{key:\"add\",value:function(t){\" \"===t&&(this.spacing=!0),this.spacing&&(this.buffer+=\" \",this.spacing=!1),\" \"!=t&&(this.buffer+=t)}},{key:\"parseWS\",value:function(t){return!!/[ \\t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:\"setTag\",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:\"unsetTag\",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:\"parseStartTag\",value:function(t,e){return!(this.mono||this[t]||!this.match(e))&&(this.setTag(t),!0)}},{key:\"match\",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=df(this.prepareRegExp(t),2),o=i[0],n=i[1],r=o.test(this.text.substr(this.position,n));return r&&e&&(this.position+=n-1),r}},{key:\"parseEndTag\",value:function(t,e,i){var o=this.mod()===t;return!(!(o=\"mono\"===t?o&&this.mono:o&&!this.mono)||!this.match(e))&&(void 0!==i?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:\"replace\",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:\"prepareRegExp\",value:function(t){var e,i;if(t instanceof RegExp)i=t,e=1;else{var o=R_[t];i=void 0!==o?o:new RegExp(t),e=t.length}return[i,e]}}]),t}(),L_=function(){function t(e,i,o,n){var r=this;vh(this,t),this.ctx=e,this.parent=i,this.selected=o,this.hover=n;this.lines=new A_((function(t,i){if(void 0===t)return 0;var s=r.parent.getFormattingValues(e,o,n,i),a=0;\"\"!==t&&(a=r.ctx.measureText(t).width);return{width:a,values:s}}))}return wu(t,[{key:\"process\",value:function(t){if(!C_(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\\r\\n/g,\"\\n\")).replace(/\\r/g,\"\\n\");var i=String(t).split(\"\\n\"),o=i.length;if(e.multi)for(var n=0;n0)for(var s=0;s0)for(var u=0;u\")||e.parseStartTag(\"ital\",\"\")||e.parseStartTag(\"mono\",\"\")||e.parseEndTag(\"bold\",\"\")||e.parseEndTag(\"ital\",\"\")||e.parseEndTag(\"mono\",\"\"))||i(o)||e.add(o),e.position++}return e.emitBlock(),e.blocks}},{key:\"splitMarkdownBlocks\",value:function(t){for(var e=this,i=new j_(t),o=!0,n=function(t){return!!/\\\\/.test(t)&&(i.positionthis.parent.fontOptions.maxWdt}},{key:\"getLongestFit\",value:function(t){for(var e=\"\",i=0;i1&&void 0!==arguments[1]?arguments[1]:\"normal\",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var o=(t=(t=t.replace(/^( +)/g,\"$1\\r\")).replace(/([^\\r][^ ]*)( +)/g,\"$1\\r$2\\r\")).split(\"\\r\");o.length>0;){var n=this.getLongestFit(o);if(0===n){var r=o[0],s=this.getLongestFitWord(r);this.lines.newLine(mf(r).call(r,0,s),e),o[0]=mf(r).call(r,s)}else{var a=n;\" \"===o[n-1]?n--:\" \"===o[a]&&a++;var h=mf(o).call(o,0,n).join(\"\");n==o.length&&i?this.lines.append(h,e):this.lines.newLine(h,e),o=mf(o).call(o,a)}}}}]),t}(),H_=[\"bold\",\"ital\",\"boldital\",\"mono\"],W_=function(){function t(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];vh(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(i),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=o}return wu(t,[{key:\"setOptions\",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),C_(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if(\"string\"==typeof t.font)this.baseSize=this.fontOptions.size;else if(\"object\"===gu(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:\"initFontOptions\",value:function(e){var i=this;Hm(H_,(function(t){i.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Hm(e,(function(t,e){null!=t&&\"object\"!==gu(t)&&(i.fontOptions[e]=t)}))}},{key:\"constrain\",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:\"middle\"},i=tb(t,\"widthConstraint\");if(\"number\"==typeof i)e.maxWdt=Number(i),e.minWdt=Number(i);else if(\"object\"===gu(i)){var o=tb(t,[\"widthConstraint\",\"maximum\"]);\"number\"==typeof o&&(e.maxWdt=Number(o));var n=tb(t,[\"widthConstraint\",\"minimum\"]);\"number\"==typeof n&&(e.minWdt=Number(n))}var r=tb(t,\"heightConstraint\");if(\"number\"==typeof r)e.minHgt=Number(r);else if(\"object\"===gu(r)){var s=tb(t,[\"heightConstraint\",\"minimum\"]);\"number\"==typeof s&&(e.minHgt=Number(s));var a=tb(t,[\"heightConstraint\",\"valign\"]);\"string\"==typeof a&&(\"top\"!==a&&\"bottom\"!==a||(e.valign=a))}return e}},{key:\"update\",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Rm(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=E_(\"label\",e)}},{key:\"adjustSizes\",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:\"addFontOptionsToPile\",value:function(t,e){for(var i=0;i5&&void 0!==arguments[5]?arguments[5]:\"middle\";if(void 0!==this.elementOptions.label){var s=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&s=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,o,n,e,i,r),this._drawBackground(t),this._drawText(t,e,this.size.yLine,r,s))}}},{key:\"_drawBackground\",value:function(t){if(void 0!==this.fontOptions.background&&\"none\"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:\"_drawText\",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"middle\",n=arguments.length>4?arguments[4]:void 0,r=df(this._setAlignment(t,e,i,o),2);e=r[0],i=r[1],t.textAlign=\"left\",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(\"top\"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),\"bottom\"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(var s=0;s0&&(t.lineWidth=l.strokeWidth,t.strokeStyle=f,t.lineJoin=\"round\"),t.fillStyle=u,l.strokeWidth>0&&t.strokeText(l.text,e+h,i+l.vadjust),t.fillText(l.text,e+h,i+l.vadjust),h+=l.width}i+=a.height}}}},{key:\"_setAlignment\",value:function(t,e,i,o){if(this.isEdgeLabel&&\"horizontal\"!==this.fontOptions.align&&!1===this.pointToSelf){e=0,i=0;\"top\"===this.fontOptions.align?(t.textBaseline=\"alphabetic\",i-=4):\"bottom\"===this.fontOptions.align?(t.textBaseline=\"hanging\",i+=4):t.textBaseline=\"middle\"}else t.textBaseline=o;return[e,i]}},{key:\"_getColor\",value:function(t,e,i){var o=t||\"#000000\",n=i||\"#ffffff\";if(e<=this.elementOptions.scaling.label.drawThreshold){var r=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));o=Vm(o,r),n=Vm(n,r)}return[o,n]}},{key:\"getTextSize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:\"getSize\",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var i=.5*-this.size.width;switch(this.fontOptions.align){case\"middle\":t=i,e=.5*-this.size.height;break;case\"top\":t=i,e=-(this.size.height+2);break;case\"bottom\":t=i,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:\"calculateLabelSize\",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"middle\";this._processLabel(t,e,i),this.size.left=o-.5*this.size.width,this.size.top=n-.5*this.size.height,this.size.yLine=n+.5*(1-this.lineCount)*this.fontOptions.size,\"hanging\"===r&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:\"getFormattingValues\",value:function(t,e,i,o){var n=function(t,e,i){return\"normal\"===e?\"mod\"===i?\"\":t[i]:void 0!==t[e][i]?t[e][i]:t[i]},r={color:n(this.fontOptions,o,\"color\"),size:n(this.fontOptions,o,\"size\"),face:n(this.fontOptions,o,\"face\"),mod:n(this.fontOptions,o,\"mod\"),vadjust:n(this.fontOptions,o,\"vadjust\"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||i)&&(\"normal\"===o&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?r.mod=\"bold\":\"function\"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(r,this.elementOptions.id,e,i));var s=\"\";return void 0!==r.mod&&\"\"!==r.mod&&(s+=r.mod+\" \"),s+=r.size+\"px \"+r.face,t.font=s.replace(/\"/g,\"\"),r.font=t.font,r.height=r.size,r}},{key:\"differentState\",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:\"_processLabelText\",value:function(t,e,i,o){return new L_(t,this,e,i).process(o)}},{key:\"_processLabel\",value:function(t,e,i){if(!1!==this.labelDirty||this.differentState(e,i)){var o=this._processLabelText(t,e,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:\"performFill\",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),Cg(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:\"_addBoundingBoxMargin\",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:\"_updateBoundingBox\",value:function(t,e,i,o,n){void 0!==i&&this.resize(i,o,n),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:\"updateBoundingBox\",value:function(t,e,i,o,n){this._updateBoundingBox(t,e,i,o,n)}},{key:\"getDimensionsFromLabel\",value:function(t,e,i){this.textSize=this.labelModule.getTextSize(t,e,i);var o=this.textSize.width,n=this.textSize.height;return 0===o&&(o=14,n=14),{width:o,height:n}}}]),t}();function gx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var yx=function(t){cx(i,t);var e=gx(i);function i(t,o,n){var r;return vh(this,i),(r=e.call(this,t,o,n))._setMargins(n),r}return wu(i,[{key:\"resize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i);this.width=o.width+this.margin.right+this.margin.left,this.height=o.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:\"draw\",value:function(t,e,i,o,n,r){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,r),qo(t,this.left,this.top,this.width,this.height,r.borderRadius),this.performFill(t,r),this.updateBoundingBox(e,i,t,o,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,o,n)}},{key:\"updateBoundingBox\",value:function(t,e,i,o,n){this._updateBoundingBox(t,e,i,o,n);var r=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(r)}},{key:\"distanceToBorder\",value:function(t,e){t&&this.resize(t);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}}]),i}(vx);function mx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var bx=function(t){cx(i,t);var e=mx(i);function i(t,o,n){var r;return vh(this,i),(r=e.call(this,t,o,n)).labelOffset=0,r.selected=!1,r}return wu(i,[{key:\"setOptions\",value:function(t,e,i){this.options=t,void 0===e&&void 0===i||this.setImages(e,i)}},{key:\"setImages\",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:\"switchImages\",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:\"_getImagePadding\",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;\"object\"==gu(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:\"_resizeImage\",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var i=1,o=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:o=this.imageObj.height/this.imageObj.width),t=2*this.options.size*i,e=2*this.options.size*o}else{var n=this._getImagePadding();t=this.imageObj.width+n.left+n.right,e=this.imageObj.height+n.top+n.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:\"_drawRawCircle\",value:function(t,e,i,o){this.initContextForDraw(t,o),Vo(t,e,i,o.size),this.performFill(t,o)}},{key:\"_drawImageAtPosition\",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale);var o=this._getImagePadding(),n=this.left+o.left,r=this.top+o.top,s=this.width-o.left-o.right,a=this.height-o.top-o.bottom;this.imageObj.drawImageAtPosition(t,i,n,r,s,a),this.disableShadow(t,e)}}},{key:\"_drawImageLabel\",value:function(t,e,i,o,n){var r=0;if(void 0!==this.height){r=.5*this.height;var s=this.labelModule.getTextSize(t,o,n);s.lineCount>=1&&(r+=s.height/2)}var a=i+r;this.options.label&&(this.labelOffset=r),this.labelModule.draw(t,e,a,o,n,\"hanging\")}}]),i}(vx);function wx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var kx=function(t){cx(i,t);var e=wx(i);function i(t,o,n){var r;return vh(this,i),(r=e.call(this,t,o,n))._setMargins(n),r}return wu(i,[{key:\"resize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i),n=Math.max(o.width+this.margin.right+this.margin.left,o.height+this.margin.top+this.margin.bottom);this.options.size=n/2,this.width=n,this.height=n,this.radius=this.width/2}}},{key:\"draw\",value:function(t,e,i,o,n,r){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,r),this.updateBoundingBox(e,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,i,o,n)}},{key:\"updateBoundingBox\",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:\"distanceToBorder\",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(bx);function _x(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var xx=function(t){cx(i,t);var e=_x(i);function i(t,o,n,r,s){var a;return vh(this,i),(a=e.call(this,t,o,n)).setImages(r,s),a}return wu(i,[{key:\"resize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var o=2*this.options.size;return this.width=o,this.height=o,void(this.radius=.5*this.width)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:\"draw\",value:function(t,e,i,o,n,r){this.switchImages(o),this.resize();var s=e,a=i;\"top-left\"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=i,s+=this.width/2,a+=this.height/2):(this.left=e-this.width/2,this.top=i-this.height/2),this._drawRawCircle(t,s,a,r),t.save(),t.clip(),this._drawImageAtPosition(t,r),t.restore(),this._drawImageLabel(t,s,a,o,n),this.updateBoundingBox(e,i)}},{key:\"updateBoundingBox\",value:function(t,e){\"top-left\"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:\"distanceToBorder\",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(bx);function Ex(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Ox=function(t){cx(i,t);var e=Ex(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"resize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,i)){var n,r;this.labelModule.getTextSize(t,e,i);var s=2*o.size;this.width=null!==(n=this.customSizeWidth)&&void 0!==n?n:s,this.height=null!==(r=this.customSizeHeight)&&void 0!==r?r:s,this.radius=.5*this.width}}},{key:\"_drawShape\",value:function(t,e,i,o,n,r,s,a){var h,d=this;return this.resize(t,r,s,a),this.left=o-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,a),(h=e,Object.prototype.hasOwnProperty.call(Ko,h)?Ko[h]:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(vx);function Cx(t,e){var i=zf(t);if(Nk){var o=Nk(t);e&&(o=lv(o).call(o,(function(e){return Yk(t,e).enumerable}))),i.push.apply(i,o)}return i}function Sx(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var o=this.getDimensionsFromLabel(t,e,i);this.height=2*o.height,this.width=o.width+o.height,this.radius=.5*this.width}}},{key:\"draw\",value:function(t,e,i,o,n,r){this.resize(t,o,n),this.left=e-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(t,r),Uo(t,this.left,this.top,this.width,this.height),this.performFill(t,r),this.updateBoundingBox(e,i,t,o,n),this.labelModule.draw(t,e,i,o,n)}},{key:\"distanceToBorder\",value:function(t,e){t&&this.resize(t);var i=.5*this.width,o=.5*this.height,n=Math.sin(e)*i,r=Math.cos(e)*o;return i*o/Math.sqrt(n*n+r*r)}}]),i}(vx);function Rx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var jx=function(t){cx(i,t);var e=Rx(i);function i(t,o,n){var r;return vh(this,i),(r=e.call(this,t,o,n))._setMargins(n),r}return wu(i,[{key:\"resize\",value:function(t,e,i){this.needsRefresh(e,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:\"draw\",value:function(t,e,i,o,n,r){var s=this;return this.resize(t,o,n),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=i-this.height/2,this._icon(t,e,i,o,n,r),{drawExternalLabel:function(){if(void 0!==s.options.label){s.labelModule.draw(t,s.left+s.iconSize.width/2+s.margin.left,i+s.height/2+5,o)}s.updateBoundingBox(e,i)}}}},{key:\"updateBoundingBox\",value:function(t,e){if(this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:\"_icon\",value:function(t,e,i,o,n,r){var s=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:o?\"bold\":\"\",(null!=this.options.icon.weight&&o?5:0)+s+\"px\",this.options.icon.face].join(\" \"),t.fillStyle=this.options.icon.color||\"black\",t.textAlign=\"center\",t.textBaseline=\"middle\",this.enableShadow(t,r),t.fillText(this.options.icon.code,e,i),this.disableShadow(t,r)):console.error(\"When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.\")}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(vx);function Lx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Hx=function(t){cx(i,t);var e=Lx(i);function i(t,o,n,r,s){var a;return vh(this,i),(a=e.call(this,t,o,n)).setImages(r,s),a}return wu(i,[{key:\"resize\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var o=2*this.options.size;return this.width=o,void(this.height=o)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:\"draw\",value:function(t,e,i,o,n,r){t.save(),this.switchImages(o),this.resize();var s=e,a=i;if(\"top-left\"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=i,s+=this.width/2,a+=this.height/2):(this.left=e-this.width/2,this.top=i-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,l=(o?d:h)/this.body.view.scale;t.lineWidth=Math.min(this.width,l),t.beginPath();var c=o?this.options.color.highlight.border:n?this.options.color.hover.border:this.options.color.border,u=o?this.options.color.highlight.background:n?this.options.color.hover.background:this.options.color.background;void 0!==r.opacity&&(c=Vm(c,r.opacity),u=Vm(u,r.opacity)),t.strokeStyle=c,t.fillStyle=u,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),Cg(t).call(t),this.performStroke(t,r),t.closePath()}this._drawImageAtPosition(t,r),this._drawImageLabel(t,s,a,o,n),this.updateBoundingBox(e,i),t.restore()}},{key:\"updateBoundingBox\",value:function(t,e){this.resize(),\"top-left\"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(bx);function Wx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Vx=function(t){cx(i,t);var e=Wx(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"draw\",value:function(t,e,i,o,n,r){return this._drawShape(t,\"square\",2,e,i,o,n,r)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ox);function qx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Ux=function(t){cx(i,t);var e=qx(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"draw\",value:function(t,e,i,o,n,r){return this._drawShape(t,\"hexagon\",4,e,i,o,n,r)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ox);function Yx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Xx=function(t){cx(i,t);var e=Yx(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"draw\",value:function(t,e,i,o,n,r){return this._drawShape(t,\"star\",4,e,i,o,n,r)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ox);function Kx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Gx=function(t){cx(i,t);var e=Kx(i);function i(t,o,n){var r;return vh(this,i),(r=e.call(this,t,o,n))._setMargins(n),r}return wu(i,[{key:\"resize\",value:function(t,e,i){this.needsRefresh(e,i)&&(this.textSize=this.labelModule.getTextSize(t,e,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:\"draw\",value:function(t,e,i,o,n,r){this.resize(t,o,n),this.left=e-this.width/2,this.top=i-this.height/2,this.enableShadow(t,r),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,o,n),this.disableShadow(t,r),this.updateBoundingBox(e,i,t,o,n)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(vx);function $x(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Zx=function(t){cx(i,t);var e=$x(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"draw\",value:function(t,e,i,o,n,r){return this._drawShape(t,\"triangle\",3,e,i,o,n,r)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ox);function Qx(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var Jx=function(t){cx(i,t);var e=Qx(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"draw\",value:function(t,e,i,o,n,r){return this._drawShape(t,\"triangleDown\",3,e,i,o,n,r)}},{key:\"distanceToBorder\",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ox);function tE(t,e){var i=zf(t);if(Nk){var o=Nk(t);e&&(o=lv(o).call(o,(function(e){return Yk(t,e).enumerable}))),i.push.apply(i,o)}return i}function eE(t){for(var e=1;et.left&&this.shape.topt.top}},{key:\"isBoundingBoxOverlappingWith\",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:\"checkOpacity\",value:function(t){return 0<=t&&t<=1}},{key:\"checkCoordinateOrigin\",value:function(t){return void 0===t||\"center\"===t||\"top-left\"===t}},{key:\"updateGroupOptions\",value:function(e,i,o){var n;if(void 0!==o){var r=e.group;if(void 0!==i&&void 0!==i.group&&r!==i.group)throw new Error(\"updateGroupOptions: group values in options don't match.\");if(\"number\"==typeof r||\"string\"==typeof r&&\"\"!=r){var s=o.get(r);void 0!==s.opacity&&void 0===i.opacity&&(t.checkOpacity(s.opacity)||(console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \"+s.opacity),s.opacity=void 0));var a=lv(n=x_(i)).call(n,(function(t){return null!=i[t]}));a.push(\"font\"),Am(a,e,s),e.color=Um(e.color)}}}},{key:\"parseOptions\",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0;if(Am([\"color\",\"fixed\",\"shadow\"],e,i,o),t.checkMass(i),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \"+e.opacity),e.opacity=void 0)),void 0!==i.opacity&&(t.checkOpacity(i.opacity)||(console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \"+i.opacity),i.opacity=void 0)),i.shapeProperties&&!t.checkCoordinateOrigin(i.shapeProperties.coordinateOrigin)&&console.error(\"Invalid option for node coordinateOrigin, found: \"+i.shapeProperties.coordinateOrigin),Qm(e,i,\"shadow\",n),void 0!==i.color&&null!==i.color){var s=Um(i.color);zm(e.color,s)}else!0===o&&null===i.color&&(e.color=Zm(n.color));void 0!==i.fixed&&null!==i.fixed&&(\"boolean\"==typeof i.fixed?(e.fixed.x=i.fixed,e.fixed.y=i.fixed):(void 0!==i.fixed.x&&\"boolean\"==typeof i.fixed.x&&(e.fixed.x=i.fixed.x),void 0!==i.fixed.y&&\"boolean\"==typeof i.fixed.y&&(e.fixed.y=i.fixed.y))),!0===o&&null===i.font&&(e.font=Zm(n.font)),t.updateGroupOptions(e,i,r),void 0!==i.scaling&&Qm(e.scaling,i.scaling,\"label\",n.scaling)}},{key:\"checkMass\",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var i=\"\";void 0!==e&&(i=\" in node id: \"+e),console.error(\"%cNegative or zero mass disallowed\"+i+\", setting mass to 1.\",pb),t.mass=1}}}]),t}();function oE(t,e){var i=void 0!==cf&&ph(t)||t[\"@@iterator\"];if(!i){if(Of(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return nE(t,e);var o=mf(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===o&&t.constructor&&(o=t.constructor.name);if(\"Map\"===o||\"Set\"===o)return Xa(t);if(\"Arguments\"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return nE(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function nE(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i1?console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \"+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var i=0,o=zf(this.body.nodes);i1&&void 0!==arguments[1]&&arguments[1],o=this.body.data.nodes;if(e.isDataViewLike(\"id\",t))this.body.data.nodes=t;else if(Of(t))this.body.data.nodes=new e.DataSet,this.body.data.nodes.add(t);else{if(t)throw new TypeError(\"Array or DataSet expected\");this.body.data.nodes=new e.DataSet}if(o&&Hm(this.nodesListeners,(function(t,e){o.off(e,t)})),this.body.nodes={},this.body.data.nodes){var n=this;Hm(this.nodesListeners,(function(t,e){n.body.data.nodes.on(e,t)}));var r=this.body.data.nodes.getIds();this.add(r,!0)}!1===i&&this.body.emitter.emit(\"_dataChanged\")}},{key:\"add\",value:function(t){for(var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:iE)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:\"refresh\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Hm(this.body.nodes,(function(i,o){var n=t.body.data.nodes.get(o);void 0!==n&&(!0===e&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(n))}))}},{key:\"getPositions\",value:function(t){var e={};if(void 0!==t){if(!0===Of(t)){for(var i=0;i0?(o=i/a)*o:i;return a===1/0?1/0:a*bE(n)}});var wE=o(it.Math.hypot);function kE(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var _E=function(){function t(){vh(this,t)}return wu(t,null,[{key:\"transform\",value:function(t,e){Of(t)||(t=[t]);for(var i=e.point.x,o=e.point.y,n=e.angle,r=e.length,s=0;s4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,n):this._drawLine(t,e,n)}},{key:\"_drawLine\",value:function(t,e,i,o,n){if(this.from!=this.to)this._line(t,e,i,o,n);else{var r=df(this._getCircleData(t),3),s=r[0],a=r[1],h=r[2];this._circle(t,e,s,a,h)}}},{key:\"_drawDashedLine\",value:function(t,e,i,o,n){t.lineCap=\"round\";var r=Of(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(r),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,i);else{var s=df(this._getCircleData(t),3),a=s[0],h=s[1],d=s[2];this._circle(t,e,a,h,d)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)Xo(t,this.from.x,this.from.y,this.to.x,this.to.y,r);else{var l=df(this._getCircleData(t),3),c=l[0],u=l[1],f=l[2];this._circle(t,e,c,u,f)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:\"findBorderPosition\",value:function(t,e,i){return this.from!=this.to?this._findBorderPosition(t,e,i):this._findBorderPositionCircle(t,e,i)}},{key:\"findBorderPositions\",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,i=df(mf(e=this._getCircleData(t)).call(e,0,2),2),o=i[0],n=i[1];return{from:this._findBorderPositionCircle(this.from,t,{x:o,y:n,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:o,y:n,low:.6,high:.8,direction:1})}}},{key:\"_getCircleData\",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var i=S_(t,this.options.selfReference.angle,e,this.from);return[i.x,i.y,e]}},{key:\"_pointOnCircle\",value:function(t,e,i,o){var n=2*o*Math.PI;return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:\"_findBorderPositionCircle\",value:function(t,e,i){var o,n=i.x,r=i.y,s=i.low,a=i.high,h=i.direction,d=this.options.selfReference.size,l=.5*(s+a),c=0;!0===this.options.arrowStrikethrough&&(-1===h?c=this.options.endPointOffset.from:1===h&&(c=this.options.endPointOffset.to));var u=0;do{l=.5*(s+a),o=this._pointOnCircle(n,r,d,l);var f=Math.atan2(t.y-o.y,t.x-o.x),p=t.distanceToBorder(e,f)+c-Math.sqrt(Math.pow(o.x-t.x,2)+Math.pow(o.y-t.y,2));if(Math.abs(p)<.05)break;p>0?h>0?s=l:a=l:h>0?a=l:s=l,++u}while(s<=a&&u<10);return AE(AE({},o),{},{t:l})}},{key:\"getLineWidth\",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:\"getColor\",value:function(t,e){if(!1!==e.inheritsColor){if(\"both\"===e.inheritsColor&&this.from.id!==this.to.id){var i=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=this.from.options.color.highlight.border,n=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(o=Vm(this.from.options.color.border,e.opacity),n=Vm(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?n=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(o=this.from.options.color.border),i.addColorStop(0,o),i.addColorStop(1,n),i}return\"to\"===e.inheritsColor?Vm(this.to.options.color.border,e.opacity):Vm(this.from.options.color.border,e.opacity)}return Vm(e.color,e.opacity)}},{key:\"_circle\",value:function(t,e,i,o,n){this.enableShadow(t,e);var r=0,s=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var a=this.options.selfReference.angle,h=this.options.selfReference.angle+Math.PI,d=this._findBorderPositionCircle(this.from,t,{x:i,y:o,low:a,high:h,direction:-1}),l=this._findBorderPositionCircle(this.from,t,{x:i,y:o,low:a,high:h,direction:1});r=Math.atan2(d.y-o,d.x-i),s=Math.atan2(l.y-o,l.x-i)}t.beginPath(),t.arc(i,o,n,r,s,!1),t.stroke(),this.disableShadow(t,e)}},{key:\"getDistanceToEdge\",value:function(t,e,i,o,n,r){if(this.from!=this.to)return this._getDistanceToEdge(t,e,i,o,n,r);var s=df(this._getCircleData(void 0),3),a=s[0],h=s[1],d=s[2],l=a-n,c=h-r;return Math.abs(Math.sqrt(l*l+c*c)-d)}},{key:\"_getDistanceToLine\",value:function(t,e,i,o,n,r){var s=i-t,a=o-e,h=((n-t)*s+(r-e)*a)/(s*s+a*a);h>1?h=1:h<0&&(h=0);var d=t+h*s-n,l=e+h*a-r;return Math.sqrt(d*d+l*l)}},{key:\"getArrowData\",value:function(t,e,i,o,n,r){var s,a,h,d,l,c,u,f=r.width;\"from\"===e?(h=this.from,d=this.to,l=r.fromArrowScale<0,c=Math.abs(r.fromArrowScale),u=r.fromArrowType):\"to\"===e?(h=this.to,d=this.from,l=r.toArrowScale<0,c=Math.abs(r.toArrowScale),u=r.toArrowType):(h=this.to,d=this.from,l=r.middleArrowScale<0,c=Math.abs(r.middleArrowScale),u=r.middleArrowType);var p=15*c+3*f;if(h!=d){var v=p/wE(h.x-d.x,h.y-d.y);if(\"middle\"!==e)if(!0===this.options.smooth.enabled){var g=this._findBorderPosition(h,t,{via:i}),y=this.getPoint(g.t+v*(\"from\"===e?1:-1),i);s=Math.atan2(g.y-y.y,g.x-y.x),a=g}else s=Math.atan2(h.y-d.y,h.x-d.x),a=this._findBorderPosition(h,t);else{var m=(l?-v:v)/2,b=this.getPoint(.5+m,i),w=this.getPoint(.5-m,i);s=Math.atan2(b.y-w.y,b.x-w.x),a=this.getPoint(.5,i)}}else{var k=df(this._getCircleData(t),3),_=k[0],x=k[1],E=k[2];if(\"from\"===e){var O=this.options.selfReference.angle,C=this.options.selfReference.angle+Math.PI,S=this._findBorderPositionCircle(this.from,t,{x:_,y:x,low:O,high:C,direction:-1});s=-2*S.t*Math.PI+1.5*Math.PI+.1*Math.PI,a=S}else if(\"to\"===e){var T=this.options.selfReference.angle,M=this.options.selfReference.angle+Math.PI,P=this._findBorderPositionCircle(this.from,t,{x:_,y:x,low:T,high:M,direction:1});s=-2*P.t*Math.PI+1.5*Math.PI-1.1*Math.PI,a=P}else{var D=this.options.selfReference.angle/(2*Math.PI);a=this._pointOnCircle(_,x,E,D),s=-2*D*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:a,core:{x:a.x-.9*p*Math.cos(s),y:a.y-.9*p*Math.sin(s)},angle:s,length:p,type:u}}},{key:\"drawArrowHead\",value:function(t,e,i,o,n){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,zE.draw(t,n)&&(this.enableShadow(t,e),Cg(t).call(t),this.disableShadow(t,e))}},{key:\"enableShadow\",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:\"disableShadow\",value:function(t,e){!0===e.shadow&&(t.shadowColor=\"rgba(0,0,0,0)\",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:\"drawBackground\",value:function(t,e){if(!1!==e.background){var i={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.dashes=i.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:\"setStrokeDashed\",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var i=Of(e)?e:[5,5];t.setLineDash(i)}else console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\");else void 0!==t.setLineDash?t.setLineDash([]):console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\")}}]),t}();function jE(t,e){var i=zf(t);if(Nk){var o=Nk(t);e&&(o=lv(o).call(o,(function(e){return Yk(t,e).enumerable}))),i.push.apply(i,o)}return i}function LE(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),r=!1,s=1,a=0,h=this.to,d=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(h=this.from,r=!0,d=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(d=0);var l=0;do{o=.5*(a+s),i=this.getPoint(o,n);var c=Math.atan2(h.y-i.y,h.x-i.x),u=h.distanceToBorder(e,c)+d-Math.sqrt(Math.pow(i.x-h.x,2)+Math.pow(i.y-h.y,2));if(Math.abs(u)<.2)break;u<0?!1===r?a=o:s=o:!1===r?s=o:a=o,++l}while(a<=s&&l<10);return LE(LE({},i),{},{t:o})}},{key:\"_getDistanceToBezierEdge\",value:function(t,e,i,o,n,r,s){var a,h,d,l,c,u=1e9,f=t,p=e;for(h=1;h<10;h++)d=.1*h,l=Math.pow(1-d,2)*t+2*d*(1-d)*s.x+Math.pow(d,2)*i,c=Math.pow(1-d,2)*e+2*d*(1-d)*s.y+Math.pow(d,2)*o,h>0&&(u=(a=this._getDistanceToLine(f,p,l,c,n,r))1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var i=df(this._getCircleData(),3),o=i[0],n=i[1],r=i[2],s=2*Math.PI*(1-t);return{x:o+r*Math.sin(s),y:n+r-r*(1-Math.cos(s))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:\"_findBorderPosition\",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:\"_getDistanceToEdge\",value:function(t,e,i,o,n,r){return this._getDistanceToBezierEdge(t,e,i,o,n,r,this.via)}}]),i}(WE);function UE(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var YE=function(t){cx(i,t);var e=UE(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"_line\",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:\"getViaNode\",value:function(){return this._getViaCoordinates()}},{key:\"_getViaCoordinates\",value:function(){var t,e,i=this.options.smooth.roundness,o=this.options.smooth.type,n=Math.abs(this.from.x-this.to.x),r=Math.abs(this.from.y-this.to.y);if(\"discrete\"===o||\"diagonalCross\"===o){var s,a;s=a=n<=r?i*r:i*n,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(a=-a);var h=this.from.x+s,d=this.from.y+a;return\"discrete\"===o&&(n<=r?h=nthis.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var w=this.from.x+t,k=this.from.y+e;return n<=r?w=this.from.x<=this.to.x?this.to.xw?this.to.x:w:k=this.from.y>=this.to.y?this.to.y>k?this.to.y:k:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,i.via)}},{key:\"_getDistanceToEdge\",value:function(t,e,i,o,n,r){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,i,o,n,r,s)}},{key:\"getPoint\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=t;return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y}}}]),i}(WE);function XE(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var KE=function(t){cx(i,t);var e=XE(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"_getDistanceToBezierEdge2\",value:function(t,e,i,o,n,r,s,a){for(var h=1e9,d=t,l=e,c=[0,0,0,0],u=1;u<10;u++){var f=.1*u;c[0]=Math.pow(1-f,3),c[1]=3*f*Math.pow(1-f,2),c[2]=3*Math.pow(f,2)*(1-f),c[3]=Math.pow(f,3);var p=c[0]*t+c[1]*s.x+c[2]*a.x+c[3]*i,v=c[0]*e+c[1]*s.y+c[2]*a.y+c[3]*o;if(u>0){var g=this._getDistanceToLine(d,l,p,v,n,r);h=gMath.abs(r)||!0===this.options.smooth.forceDirection||\"horizontal\"===this.options.smooth.forceDirection)&&\"vertical\"!==this.options.smooth.forceDirection?(e=this.from.y,o=this.to.y,t=this.from.x-s*n,i=this.to.x+s*n):(e=this.from.y-s*r,o=this.to.y+s*r,t=this.from.x,i=this.to.x),[{x:t,y:e},{x:i,y:o}]}},{key:\"getViaNode\",value:function(){return this._getViaCoordinates()}},{key:\"_findBorderPosition\",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:\"_getDistanceToEdge\",value:function(t,e,i,o,n,r){var s=df(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),a=s[0],h=s[1];return this._getDistanceToBezierEdge2(t,e,i,o,n,r,a,h)}},{key:\"getPoint\",value:function(t){var e=df(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),i=e[0],o=e[1],n=t,r=[Math.pow(1-n,3),3*n*Math.pow(1-n,2),3*Math.pow(n,2)*(1-n),Math.pow(n,3)];return{x:r[0]*this.fromPoint.x+r[1]*i.x+r[2]*o.x+r[3]*this.toPoint.x,y:r[0]*this.fromPoint.y+r[1]*i.y+r[2]*o.y+r[3]*this.toPoint.y}}}]),i}(KE);function ZE(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var QE=function(t){cx(i,t);var e=ZE(i);function i(t,o,n){return vh(this,i),e.call(this,t,o,n)}return wu(i,[{key:\"_line\",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:\"getViaNode\",value:function(){}},{key:\"getPoint\",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:\"_findBorderPosition\",value:function(t,e){var i=this.to,o=this.from;t.id===this.from.id&&(i=this.from,o=this.to);var n=Math.atan2(i.y-o.y,i.x-o.x),r=i.x-o.x,s=i.y-o.y,a=Math.sqrt(r*r+s*s),h=(a-t.distanceToBorder(e,n))/a;return{x:(1-h)*o.x+h*i.x,y:(1-h)*o.y+h*i.y,t:0}}},{key:\"_getDistanceToEdge\",value:function(t,e,i,o,n,r){return this._getDistanceToLine(t,e,i,o,n,r)}}]),i}(RE),JE=function(){function t(e,i,o,n,r){if(vh(this,t),void 0===i)throw new Error(\"No body provided\");this.options=Zm(n),this.globalOptions=n,this.defaultOptions=r,this.body=i,this.imagelist=o,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new W_(this.body,this.options,!0),this.setOptions(e)}return wu(t,[{key:\"setOptions\",value:function(e){if(e){var i=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=y_(e.value));var o=[e,this.options,this.defaultOptions];return this.chooser=E_(\"edge\",o),this.updateLabelModule(e),i=this.updateEdgeType()||i,this._setInteractionWidths(),this.connect(),i}}},{key:\"getFormattingValues\",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,o=this.options.color.inherit,n={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var r=this.options.selectionWidth;\"function\"==typeof r?n.width=r(n.width):\"number\"==typeof r&&(n.width+=r),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.highlight,n.shadow=this.options.shadow.enabled}else if(this.hover){var s=this.options.hoverWidth;\"function\"==typeof s?n.width=s(n.width):\"number\"==typeof s&&(n.width+=s),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.hover,n.shadow=this.options.shadow.enabled}}else\"function\"==typeof this.chooser&&(this.chooser(n,this.options.id,this.selected,this.hover),void 0!==n.color&&(n.inheritsColor=!1),!1===n.shadow&&(n.shadowColor===this.options.shadow.color&&n.shadowSize===this.options.shadow.size&&n.shadowX===this.options.shadow.x&&n.shadowY===this.options.shadow.y||(n.shadow=!0)));else n.shadow=this.options.shadow.enabled,n.width=Math.max(n.width,.3/this.body.view.scale);return n}},{key:\"updateLabelModule\",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:\"updateEdgeType\",value:function(){var t=this.options.smooth,e=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof qE&&!0===t.enabled&&\"dynamic\"===t.type||this.edgeType instanceof $E&&!0===t.enabled&&\"cubicBezier\"===t.type||this.edgeType instanceof YE&&!0===t.enabled&&\"dynamic\"!==t.type&&\"cubicBezier\"!==t.type||this.edgeType instanceof QE&&!1===t.type.enabled)&&(i=!1),!0===i&&(e=this.cleanup())),!0===i?!0===t.enabled?\"dynamic\"===t.type?(e=!0,this.edgeType=new qE(this.options,this.body,this.labelModule)):\"cubicBezier\"===t.type?this.edgeType=new $E(this.options,this.body,this.labelModule):this.edgeType=new YE(this.options,this.body,this.labelModule):this.edgeType=new QE(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:\"connect\",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:\"disconnect\",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:\"getTitle\",value:function(){return this.title}},{key:\"isSelected\",value:function(){return this.selected}},{key:\"getValue\",value:function(){return this.options.value}},{key:\"setValueRange\",value:function(t,e,i){if(void 0!==this.options.value){var o=this.options.scaling.customScalingFunction(t,e,i,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var r=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*r}this.options.width=this.options.scaling.min+o*n}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:\"_setInteractionWidths\",value:function(){\"function\"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,\"function\"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:\"draw\",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,i),this.drawLabel(t,i)}}},{key:\"drawArrows\",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(o.from=this.edgeType.getArrowData(t,\"from\",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=o.from.core),e.fromArrowSrc&&(o.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(o.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(o.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(o.to=this.edgeType.getArrowData(t,\"to\",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=o.to.core),e.toArrowSrc&&(o.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(o.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(o.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(o.middle=this.edgeType.getArrowData(t,\"middle\",i,this.selected,this.hover,e),e.middleArrowSrc&&(o.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(o.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(o.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,o.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,o.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,o.to)}}},{key:\"drawLabel\",value:function(t,e){if(void 0!==this.options.label){var i,o=this.from,n=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),o.id!=n.id){this.labelModule.pointToSelf=!1,i=this.edgeType.getPoint(.5,e),t.save();var r=this._getRotation(t);0!=r.angle&&(t.translate(r.x,r.y),t.rotate(r.angle)),this.labelModule.draw(t,i.x,i.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var s=S_(t,this.options.selfReference.angle,this.options.selfReference.size,o);i=this._pointOnCircle(s.x,s.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,i.x,i.y,this.selected,this.hover)}}}},{key:\"getItemsOnPoint\",value:function(t){var e=[];if(this.labelModule.visible()){var i=this._getRotation();O_(this.labelModule.getSize(),t,i)&&e.push({edgeId:this.id,labelId:0})}var o={left:t.x,top:t.y};return this.isOverlappingWith(o)&&e.push({edgeId:this.id}),e}},{key:\"isOverlappingWith\",value:function(t){if(this.connected){var e=this.from.x,i=this.from.y,o=this.to.x,n=this.to.y,r=t.left,s=t.top;return this.edgeType.getDistanceToEdge(e,i,o,n,r,s)<10}return!1}},{key:\"_getRotation\",value:function(t){var e=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var o={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return o;if(\"horizontal\"===this.options.font.align)return o;var n=this.from.y-this.to.y,r=this.from.x-this.to.x,s=Math.atan2(n,r);return(s<-1&&r<0||s>0&&r<0)&&(s+=Math.PI),o.angle=s,o}},{key:\"_pointOnCircle\",value:function(t,e,i,o){return{x:t+i*Math.cos(o),y:e-i*Math.sin(o)}}},{key:\"select\",value:function(){this.selected=!0}},{key:\"unselect\",value:function(){this.selected=!1}},{key:\"cleanup\",value:function(){return this.edgeType.cleanup()}},{key:\"remove\",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:\"endPointsValid\",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:\"parseOptions\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Nm([\"endPointOffset\",\"arrowStrikethrough\",\"id\",\"from\",\"hidden\",\"hoverWidth\",\"labelHighlightBold\",\"length\",\"line\",\"opacity\",\"physics\",\"scaling\",\"selectionWidth\",\"selfReferenceSize\",\"selfReference\",\"to\",\"title\",\"value\",\"width\",\"font\",\"chosen\",\"widthConstraint\"],t,e,i),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(Tk(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==o.endPointOffset.from?o.endPointOffset.from:0,console.error(\"endPointOffset.from is not a valid number\"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(Tk(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==o.endPointOffset.to?o.endPointOffset.to:0,console.error(\"endPointOffset.to is not a valid number\"))),C_(e.label)?t.label=e.label:C_(t.label)||(t.label=void 0),Qm(t,e,\"smooth\",o),Qm(t,e,\"shadow\",o),Qm(t,e,\"background\",o),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===i&&null===e.dashes&&(t.dashes=Yv(o.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),Qm(t.scaling,e.scaling,\"label\",o.scaling)):!0===i&&null===e.scaling&&(t.scaling=Yv(o.scaling)),void 0!==e.arrows&&null!==e.arrows)if(\"string\"==typeof e.arrows){var r=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=Vv(r).call(r,\"to\"),t.arrows.middle.enabled=-1!=Vv(r).call(r,\"middle\"),t.arrows.from.enabled=-1!=Vv(r).call(r,\"from\")}else{if(\"object\"!==gu(e.arrows))throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\"+$v(e.arrows));Qm(t.arrows,e.arrows,\"to\",o.arrows),Qm(t.arrows,e.arrows,\"middle\",o.arrows),Qm(t.arrows,e.arrows,\"from\",o.arrows)}else!0===i&&null===e.arrows&&(t.arrows=Yv(o.arrows));if(void 0!==e.color&&null!==e.color){var s=Im(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,a=t.color;if(n)Rm(a,o.color,!1,i);else for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&delete a[h];if(Im(a))a.color=a,a.highlight=a,a.hover=a,a.inherit=!1,void 0===s.opacity&&(a.opacity=1);else{var d=!1;void 0!==s.color&&(a.color=s.color,d=!0),void 0!==s.highlight&&(a.highlight=s.highlight,d=!0),void 0!==s.hover&&(a.hover=s.hover,d=!0),void 0!==s.inherit&&(a.inherit=s.inherit),void 0!==s.opacity&&(a.opacity=Math.min(1,Math.max(0,s.opacity))),!0===d?a.inherit=!1:void 0===a.inherit&&(a.inherit=\"from\")}}else!0===i&&null===e.color&&(t.color=Zm(o.color));!0===i&&null===e.font&&(t.font=Zm(o.font)),Object.prototype.hasOwnProperty.call(e,\"selfReferenceSize\")&&(console.warn(\"The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}\"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),tO=function(){function t(e,i,o){var n,r=this;vh(this,t),this.body=e,this.images=i,this.groups=o,this.body.functions.createEdge=Wo(n=this.create).call(n,this),this.edgesListeners={add:function(t,e){r.add(e.items)},update:function(t,e){r.update(e.items)},remove:function(t,e){r.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:\"arrow\"},middle:{enabled:!1,scaleFactor:1,type:\"arrow\"},from:{enabled:!1,scaleFactor:1,type:\"arrow\"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:\"#848484\",highlight:\"#848484\",hover:\"#848484\",inherit:\"from\",opacity:1},dashes:!1,font:{color:\"#343434\",size:14,face:\"arial\",background:\"none\",strokeWidth:2,strokeColor:\"#ffffff\",align:\"horizontal\",multi:!1,vadjust:0,bold:{mod:\"bold\"},boldital:{mod:\"bold italic\"},ital:{mod:\"italic\"},mono:{mod:\"\",size:15,face:\"courier new\",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,o){if(e===t)return.5;var n=1/(e-t);return Math.max(0,(o-t)*n)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:\"rgba(0,0,0,0.5)\",size:10,x:5,y:5},background:{enabled:!1,color:\"rgba(111,111,111,1)\",size:10,dashes:!1},smooth:{enabled:!0,type:\"dynamic\",forceDirection:\"none\",roundness:.5},title:void 0,width:1,value:void 0},Rm(this.options,this.defaultOptions),this.bindEventListeners()}return wu(t,[{key:\"bindEventListeners\",value:function(){var t,e,i=this;this.body.emitter.on(\"_forceDisableDynamicCurves\",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];\"dynamic\"===t&&(t=\"continuous\");var o=!1;for(var n in i.body.edges)if(Object.prototype.hasOwnProperty.call(i.body.edges,n)){var r=i.body.edges[n],s=i.body.data.edges.get(n);if(null!=s){var a=s.smooth;void 0!==a&&!0===a.enabled&&\"dynamic\"===a.type&&(void 0===t?r.setOptions({smooth:!1}):r.setOptions({smooth:{type:t}}),o=!0)}}!0===e&&!0===o&&i.body.emitter.emit(\"_dataChanged\")})),this.body.emitter.on(\"_dataUpdated\",(function(){i.reconnectEdges()})),this.body.emitter.on(\"refreshEdges\",Wo(t=this.refresh).call(t,this)),this.body.emitter.on(\"refresh\",Wo(e=this.refresh).call(e,this)),this.body.emitter.on(\"destroy\",(function(){Hm(i.edgesListeners,(function(t,e){i.body.data.edges&&i.body.data.edges.off(e,t)})),delete i.body.functions.createEdge,delete i.edgesListeners.add,delete i.edgesListeners.update,delete i.edgesListeners.remove,delete i.edgesListeners}))}},{key:\"setOptions\",value:function(t){if(void 0!==t){JE.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(e=this.body.edges[i].updateEdgeType()||e);if(void 0!==t.font)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit(\"_dataChanged\")}}},{key:\"setData\",value:function(t){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.edges;if(e.isDataViewLike(\"id\",t))this.body.data.edges=t;else if(Of(t))this.body.data.edges=new e.DataSet,this.body.data.edges.add(t);else{if(t)throw new TypeError(\"Array or DataSet expected\");this.body.data.edges=new e.DataSet}if(n&&Hm(this.edgesListeners,(function(t,e){n.off(e,t)})),this.body.edges={},this.body.data.edges){Hm(this.edgesListeners,(function(t,e){i.body.data.edges.on(e,t)}));var r=this.body.data.edges.getIds();this.add(r,!0)}this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\"),!1===o&&this.body.emitter.emit(\"_dataChanged\")}},{key:\"add\",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.edges,o=this.body.data.edges,n=0;n1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var i=this.body.edges;Hm(t,(function(t){var e=i[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit(\"_dataChanged\")}}},{key:\"refresh\",value:function(){var t=this;Hm(this.body.edges,(function(e,i){var o=t.body.data.edges.get(i);void 0!==o&&e.setOptions(o)}))}},{key:\"create\",value:function(t){return new JE(t,this.body,this.images,this.options,this.defaultOptions)}},{key:\"reconnectEdges\",value:function(){var t,e=this.body.nodes,i=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var o=i[t];o.from=null,o.to=null,o.connect()}}},{key:\"getConnectedNodes\",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var i=this.body.edges[t];void 0!==i.fromId&&e.push(i.fromId),void 0!==i.toId&&e.push(i.toId)}return e}},{key:\"_updateState\",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:\"_removeInvalidEdges\",value:function(){var t=this,e=[];Hm(this.body.edges,(function(i,o){var n=t.body.nodes[i.toId],r=t.body.nodes[i.fromId];void 0!==n&&!0===n.isCluster||void 0!==r&&!0===r.isCluster||void 0!==n&&void 0!==r||e.push(o)})),this.remove(e,!1)}},{key:\"_addMissingEdges\",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,i=[];Qf(t).call(t,(function(t,o){void 0===e[o]&&i.push(o)})),this.add(i,!0)}}}]),t}(),eO=function(){function t(e,i,o){vh(this,t),this.body=e,this.physicsBody=i,this.barnesHutTree,this.setOptions(o),this._rng=Em(\"BARNES HUT SOLVER\")}return wu(t,[{key:\"setOptions\",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:\"solve\",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,n=this._formBarnesHutTree(e,i);this.barnesHutTree=n;for(var r=0;r0&&this._getForceContributions(n.root,t)}}},{key:\"_getForceContributions\",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:\"_getForceContribution\",value:function(t,e){if(t.childrenCount>0){var i=t.centerOfMass.x-e.x,o=t.centerOfMass.y-e.y,n=Math.sqrt(i*i+o*o);n*t.calcSize>this.thetaInversed?this._calculateForces(n,i,o,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(n,i,o,e,t)}}},{key:\"_calculateForces\",value:function(t,e,i,o,n){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&o.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,t-o.shape.radius));var r=this.options.gravitationalConstant*n.mass*o.options.mass/Math.pow(t,3),s=e*r,a=i*r;this.physicsBody.forces[o.id].x+=s,this.physicsBody.forces[o.id].y+=a}},{key:\"_formBarnesHutTree\",value:function(t,e){for(var i,o=e.length,n=t[e[0]].x,r=t[e[0]].y,s=t[e[0]].x,a=t[e[0]].y,h=1;h0&&(ls&&(s=l),ca&&(a=c))}var u=Math.abs(s-n)-Math.abs(a-r);u>0?(r-=.5*u,a+=.5*u):(n+=.5*u,s-=.5*u);var f=Math.max(1e-5,Math.abs(s-n)),p=.5*f,v=.5*(n+s),g=.5*(r+a),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-p,maxX:v+p,minY:g-p,maxY:g+p},size:f,calcSize:1/f,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var m=0;m0&&this._placeInTree(y.root,i);return y}},{key:\"_updateBranchMass\",value:function(t,e){var i=t.centerOfMass,o=t.mass+e.options.mass,n=1/o;i.x=i.x*t.mass+e.x*e.options.mass,i.x*=n,i.y=i.y*t.mass+e.y*e.options.mass,i.y*=n,t.mass=o;var r=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?n.maxY>e.y?\"NW\":\"SW\":n.maxY>e.y?\"NE\":\"SE\",this._placeInRegion(t,e,o)}},{key:\"_placeInRegion\",value:function(t,e,i){var o=t.children[i];switch(o.childrenCount){case 0:o.children.data=e,o.childrenCount=1,this._updateBranchMass(o,e);break;case 1:o.children.data.x===e.x&&o.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,e));break;case 4:this._placeInTree(o,e)}}},{key:\"_splitBranch\",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,\"NW\"),this._insertRegion(t,\"NE\"),this._insertRegion(t,\"SW\"),this._insertRegion(t,\"SE\"),null!=e&&this._placeInTree(t,e)}},{key:\"_insertRegion\",value:function(t,e){var i,o,n,r,s=.5*t.size;switch(e){case\"NW\":i=t.range.minX,o=t.range.minX+s,n=t.range.minY,r=t.range.minY+s;break;case\"NE\":i=t.range.minX+s,o=t.range.maxX,n=t.range.minY,r=t.range.minY+s;break;case\"SW\":i=t.range.minX,o=t.range.minX+s,n=t.range.minY+s,r=t.range.maxY;break;case\"SE\":i=t.range.minX+s,o=t.range.maxX,n=t.range.minY+s,r=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:n,maxY:r},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:\"_debug\",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:\"_drawBranch\",value:function(t,e,i){void 0===i&&(i=\"#FF0000\"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=i,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),iO=function(){function t(e,i,o){vh(this,t),this._rng=Em(\"REPULSION SOLVER\"),this.body=e,this.physicsBody=i,this.setOptions(o)}return wu(t,[{key:\"setOptions\",value:function(t){this.options=t}},{key:\"solve\",value:function(){for(var t,e,i,o,n,r,s,a,h=this.body.nodes,d=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,c=this.options.nodeDistance,u=-2/3/c,f=0;f0){var r=n.edges.length+1,s=this.options.centralGravity*r*n.options.mass;o[n.id].x=e*s,o[n.id].y=i*s}}}]),i}(sO),cO=function(){function t(e){vh(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:\"barnesHut\",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},wo(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return wu(t,[{key:\"bindEventListeners\",value:function(){var t=this;this.body.emitter.on(\"initPhysics\",(function(){t.initPhysics()})),this.body.emitter.on(\"_layoutFailed\",(function(){t.layoutFailed=!0})),this.body.emitter.on(\"resetPhysics\",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on(\"disablePhysics\",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on(\"restorePhysics\",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on(\"startSimulation\",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on(\"stopSimulation\",(function(){t.stopSimulation()})),this.body.emitter.on(\"destroy\",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on(\"_dataChanged\",(function(){t.updatePhysicsData()}))}},{key:\"setOptions\",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Am([\"stabilization\"],this.options,t),Qm(this.options,t,\"stabilization\"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&((\"number\"!=typeof e.x||Ok(e.x))&&(e.x=0),(\"number\"!=typeof e.y||Ok(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:\"init\",value:function(){var t;\"forceAtlas2Based\"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new hO(this.body,this.physicsBody,t),this.edgesSolver=new nO(this.body,this.physicsBody,t),this.gravitySolver=new lO(this.body,this.physicsBody,t)):\"repulsion\"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new iO(this.body,this.physicsBody,t),this.edgesSolver=new nO(this.body,this.physicsBody,t),this.gravitySolver=new sO(this.body,this.physicsBody,t)):\"hierarchicalRepulsion\"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new oO(this.body,this.physicsBody,t),this.edgesSolver=new rO(this.body,this.physicsBody,t),this.gravitySolver=new sO(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new eO(this.body,this.physicsBody,t),this.edgesSolver=new nO(this.body,this.physicsBody,t),this.gravitySolver=new sO(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:\"initPhysics\",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit(\"fit\",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit(\"fit\"))}},{key:\"startSimulation\",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit(\"_resizeNodes\"),void 0===this.viewFunction&&(this.viewFunction=Wo(t=this.simulationStep).call(t,this),this.body.emitter.on(\"initRedraw\",this.viewFunction),this.body.emitter.emit(\"_startRendering\"))):this.body.emitter.emit(\"_redraw\")}},{key:\"stopSimulation\",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off(\"initRedraw\",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit(\"_stopRendering\"))}},{key:\"simulationStep\",value:function(){var t=jf();this.physicsTick(),(jf()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:\"_emitStabilized\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&vg((function(){t.body.emitter.emit(\"stabilized\",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:\"physicsStep\",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:\"adjustTimeStep\",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:\"moveNodes\",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,i=0,o=0;oo&&(t=t>0?o:-o),t}},{key:\"_performStep\",value:function(t){var e=this.body.nodes[t],i=this.physicsBody.forces[t];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:o.x,vy:o.y},!1===e.options.fixed.x?(o.x=this.calculateComponentVelocity(o.x,i.x,e.options.mass),e.x+=o.x*this.timestep):(i.x=0,o.x=0),!1===e.options.fixed.y?(o.y=this.calculateComponentVelocity(o.y,i.y,e.options.mass),e.y+=o.y*this.timestep):(i.y=0,o.y=0),Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))}},{key:\"_freezeNodes\",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var i=t[e].options.fixed;this.freezeCache[e]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:\"_restoreFrozenNodes\",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:\"stabilize\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;\"number\"!=typeof e&&(e=this.options.stabilization.iterations,console.error(\"The stabilize method needs a numeric amount of iterations. Switching to default: \",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit(\"_resizeNodes\"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit(\"_blockRedraw\"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,vg((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:\"_startStabilizing\",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit(\"startStabilizing\"),this.startedStabilization=!0,!0)}},{key:\"_stabilizationBatch\",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations1&&void 0!==arguments[1]?arguments[1]:[],o=1e9,n=-1e9,r=1e9,s=-1e9;if(i.length>0)for(var a=0;a(e=t[i[a]]).shape.boundingBox.left&&(r=e.shape.boundingBox.left),se.shape.boundingBox.top&&(o=e.shape.boundingBox.top),n1&&void 0!==arguments[1]?arguments[1]:[],o=1e9,n=-1e9,r=1e9,s=-1e9;if(i.length>0)for(var a=0;a(e=t[i[a]]).x&&(r=e.x),se.y&&(o=e.y),n=t&&i.push(n.id)}for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error(\"Cannot call clusterByNodeData without a joinCondition function in the options.\");e=this._checkOptions(e);var o={},n={};Hm(this.body.nodes,(function(i,r){i.options&&!0===e.joinCondition(i.options)&&(o[r]=i,Hm(i.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(n[e.id]=e)})))})),this._cluster(o,n,e,i)}},{key:\"clusterByEdgeCount\",value:function(t,e){var i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var n,r,s,a=[],h={},d=function(){var o={},d={},c=i.body.nodeIndices[l],u=i.body.nodes[c];if(void 0===h[c]){s=0,r=[];for(var f=0;f0&&zf(d).length>0&&!0===v){var m=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:\"clusterBridges\",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:\"clusterByConnection\",value:function(t,e){var i,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error(\"No nodeId supplied to clusterByConnection!\");if(void 0===this.body.nodes[t])throw new Error(\"The nodeId given to clusterByConnection does not exist!\");var n=this.body.nodes[t];void 0===(e=this._checkOptions(e,n)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=n.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=n.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=n.options.fixed.x,e.clusterNodeProperties.fixed.y=n.options.fixed.y);var r={},s={},a=n.id,h=mO.cloneOptions(n);r[a]=n;for(var d=0;d-1&&(s[y.id]=y)}this._cluster(r,s,e,o)}},{key:\"_createClusterEdges\",value:function(t,e,i,o){for(var n,r,s,a,h,d,l=zf(t),c=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:\"_cluster\",value:function(t,e,i){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&void 0!==this.clusteredNodes[r]&&n.push(r);for(var s=0;sn?e.x:n,r=e.ys?e.y:s;return{x:.5*(o+n),y:.5*(r+s)}}},{key:\"openCluster\",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error(\"No clusterNodeId supplied to openCluster.\");var o=this.body.nodes[t];if(void 0===o)throw new Error(\"The clusterNodeId supplied to openCluster does not exist.\");if(!0!==o.isCluster||void 0===o.containedNodes||void 0===o.containedEdges)throw new Error(\"The node:\"+t+\" is not a valid cluster.\");var n=this.findNode(t),r=Vv(n).call(n,t)-1;if(r>=0){var s=n[r];return this.body.nodes[s]._openChildCluster(t),delete this.body.nodes[t],void(!0===i&&this.body.emitter.emit(\"_dataChanged\"))}var a=o.containedNodes,h=o.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&\"function\"==typeof e.releaseFunction){var d={},l={x:o.x,y:o.y};for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var u=this.body.nodes[c];d[c]={x:u.x,y:u.y}}var f=e.releaseFunction(l,d);for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var v=this.body.nodes[p];void 0!==f[p]&&(v.x=void 0===f[p].x?o.x:f[p].x,v.y=void 0===f[p].y?o.y:f[p].y)}}else Hm(a,(function(t){!1===t.options.fixed.x&&(t.x=o.x),!1===t.options.fixed.y&&(t.y=o.y)}));for(var g in a)if(Object.prototype.hasOwnProperty.call(a,g)){var y=this.body.nodes[g];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[g]}for(var m=[],b=0;b0&&n<100;){var r=e.pop();if(void 0!==r){var s=this.body.edges[r];if(void 0!==s){n++;var a=s.clusteringEdgeReplacingIds;if(void 0===a)o.push(r);else for(var h=0;ho&&(o=r.edges.length),t+=r.edges.length,e+=Math.pow(r.edges.length,2),i+=1}t/=i;var s=(e/=i)-Math.pow(t,2),a=Math.sqrt(s),h=Math.floor(t+2*a);return h>o&&(h=o),h}},{key:\"_createClusteredEdge\",value:function(t,e,i,o,n){var r=mO.cloneOptions(i,\"edge\");Rm(r,o),r.from=t,r.to=e,r.id=\"clusterEdge:\"+yO(),void 0!==n&&Rm(r,n);var s=this.body.functions.createEdge(r);return s.clusteringEdgeReplacingIds=[i.id],s.connect(),this.body.edges[s.id]=s,s}},{key:\"_clusterEdges\",value:function(t,e,i,o){if(e instanceof JE){var n=e,r={};r[n.id]=n,e=r}if(t instanceof iE){var s=t,a={};a[s.id]=s,t=a}if(null==i)throw new Error(\"_clusterEdges: parameter clusterNode required\");for(var h in void 0===o&&(o=i.clusterEdgeProperties),this._createClusterEdges(t,e,i,o),e)if(Object.prototype.hasOwnProperty.call(e,h)&&void 0!==this.body.edges[h]){var d=this.body.edges[h];this._backupEdgeOptions(d),d.setOptions({physics:!1})}for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(this.clusteredNodes[l]={clusterId:i.id,node:this.body.nodes[l]},this.body.nodes[l].setOptions({physics:!1}))}},{key:\"_getClusterNodeForNode\",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var i=e.clusterId;if(void 0!==i)return this.body.nodes[i]}}}},{key:\"_filter\",value:function(t,e){var i=[];return Hm(t,(function(t){e(t)&&i.push(t)})),i}},{key:\"_updateState\",value:function(){var t,e=this,i=[],o={},n=function(t){Hm(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes){if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,t))void 0===this.body.nodes[t]&&i.push(t)}n((function(t){for(var e=0;e0}t.endPointsValid()&&n||(o[i]=i)})),n((function(t){Hm(o,(function(i){delete t.containedEdges[i],Hm(t.edges,(function(n,r){n.id!==i?n.clusteringEdgeReplacingIds=e._filter(n.clusteringEdgeReplacingIds,(function(t){return!o[t]})):t.edges[r]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Hm(o,(function(t){delete e.clusteredEdges[t]})),Hm(o,(function(t){delete e.body.edges[t]})),Hm(zf(this.body.edges),(function(t){var i=e.body.edges[t],o=e._isClusteredNode(i.fromId)||e._isClusteredNode(i.toId);if(o!==e._isClusteredEdge(i.id))if(o){var n=e._getClusterNodeForNode(i.fromId);void 0!==n&&e._clusterEdges(e.body.nodes[i.fromId],i,n);var r=e._getClusterNodeForNode(i.toId);void 0!==r&&e._clusterEdges(e.body.nodes[i.toId],i,r)}else delete e._clusterEdges[t],e._restoreEdge(i)}));for(var s=!1,a=!0,h=function(){var t=[];n((function(e){var i=zf(e.containedNodes).length,o=!0===e.options.allowSingleNodeCluster;(o&&i<1||!o&&i<2)&&t.push(e.id)}));for(var i=0;i0,s=s||a};a;)h();s&&this._updateState()}},{key:\"_isClusteredNode\",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:\"_isClusteredEdge\",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();var _O=function(){function t(e,i){var o;vh(this,t),void 0!==window&&(o=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===o?function(t){t()}:o,this.body=e,this.canvas=i,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},wo(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return wu(t,[{key:\"bindEventListeners\",value:function(){var t,e=this;this.body.emitter.on(\"dragStart\",(function(){e.dragging=!0})),this.body.emitter.on(\"dragEnd\",(function(){e.dragging=!1})),this.body.emitter.on(\"zoom\",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=vg((function(){var t;e.zooming=!1,Wo(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on(\"_resizeNodes\",(function(){e._resizeNodes()})),this.body.emitter.on(\"_redraw\",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on(\"_blockRedraw\",(function(){e.allowRedraw=!1})),this.body.emitter.on(\"_allowRedraw\",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on(\"_requestRedraw\",Wo(t=this._requestRedraw).call(t,this)),this.body.emitter.on(\"_startRendering\",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on(\"_stopRendering\",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on(\"destroy\",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:\"setOptions\",value:function(t){if(void 0!==t){Nm([\"hideEdgesOnDrag\",\"hideEdgesOnZoom\",\"hideNodesOnDrag\"],this.options,t)}}},{key:\"_requestNextFrame\",value:function(t,e){if(\"undefined\"!=typeof window){var i,o=window;return!0===this.requiresTimeout?i=vg(t,e):o.requestAnimationFrame&&(i=o.requestAnimationFrame(t)),i}}},{key:\"_startRendering\",value:function(){var t;!0===this.renderingActive&&(void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(Wo(t=this._renderStep).call(t,this),this.simulationInterval)))}},{key:\"_renderStep\",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:\"redraw\",value:function(){this.body.emitter.emit(\"setSize\"),this._redraw()}},{key:\"_requestRedraw\",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:\"_redraw\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit(\"initRedraw\"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,n),0===this.canvas.frame.clientWidth)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit(\"beforeDrawing\",i),i.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(i),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var r=this._drawNodes(i,t).drawExternalLabels;e.drawExternalLabels=r}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(i),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit(\"afterDrawing\",i),i.closePath(),i.restore(),!0===t&&i.clearRect(0,0,o,n)}}},{key:\"_resizeNodes\",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,i=this.body.nodes;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&((e=i[o]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:\"_drawNodes\",value:function(t){for(var e,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.nodes,r=this.body.nodeIndices,s=[],a=[],h=this.canvas.DOMtoCanvas({x:-20,y:-20}),d=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),l={top:h.y,left:h.x,bottom:d.y,right:d.x},c=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:\"_setCameraState\",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;1!=t&&1!=e?i=.5*this.cameraState.scale*(t+e):1!=t?i=this.cameraState.scale*t:1!=e&&(i=this.cameraState.scale*e),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),n={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=n.x*this.body.view.scale,this.body.view.translation.y+=n.y*this.body.view.scale}}},{key:\"_prepareValue\",value:function(t){if(\"number\"==typeof t)return t+\"px\";if(\"string\"==typeof t){if(-1!==Vv(t).call(t,\"%\")||-1!==Vv(t).call(t,\"px\"))return t;if(-1===Vv(t).call(t,\"%\"))return t+\"px\"}throw new Error(\"Could not use the value supplied for width or height:\"+t)}},{key:\"_create\",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement(\"div\"),this.frame.className=\"vis-network\",this.frame.style.position=\"relative\",this.frame.style.overflow=\"hidden\",this.frame.tabIndex=0,this.frame.canvas=document.createElement(\"canvas\"),this.frame.canvas.style.position=\"relative\",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement(\"DIV\");t.style.color=\"red\",t.style.fontWeight=\"bold\",t.style.padding=\"10px\",t.innerText=\"Error: your browser does not support HTML canvas\",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:\"_bindHammer\",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new ub(this.frame.canvas),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.get(\"pan\").set({threshold:5,direction:ub.DIRECTION_ALL}),EO(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on(\"tap\",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on(\"doubletap\",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on(\"press\",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on(\"panstart\",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on(\"panmove\",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on(\"panend\",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on(\"pinch\",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener(\"wheel\",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener(\"mousemove\",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener(\"contextmenu\",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new ub(this.frame),OO(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:\"setSize\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var i=!1,o=this.frame.canvas.width,n=this.frame.canvas.height,r=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(r),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width=\"100%\",this.frame.canvas.style.height=\"100%\",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var s=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),a=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===s&&this.frame.canvas.height===a||this._getCameraState(r),this.frame.canvas.width!==s&&(this.frame.canvas.width=s,i=!0),this.frame.canvas.height!==a&&(this.frame.canvas.height=a,i=!0)}return!0===i&&(this.body.emitter.emit(\"resize\",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(n/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:\"getContext\",value:function(){return this.frame.canvas.getContext(\"2d\")}},{key:\"_determinePixelRatio\",value:function(){var t=this.getContext();if(void 0===t)throw new Error(\"Could not get canvax context\");var e=1;return\"undefined\"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:\"_setPixelRatio\",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:\"setTransform\",value:function(){var t=this.getContext();if(void 0===t)throw new Error(\"Could not get canvax context\");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:\"_XconvertDOMtoCanvas\",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:\"_XconvertCanvasToDOM\",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:\"_YconvertDOMtoCanvas\",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:\"_YconvertCanvasToDOM\",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:\"canvasToDOM\",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:\"DOMtoCanvas\",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}();var SO=function(){function t(e,i){var o,n,r=this;vh(this,t),this.body=e,this.canvas=i,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction=\"easeInOutQuint\",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on(\"fit\",Wo(o=this.fit).call(o,this)),this.body.emitter.on(\"animationFinished\",(function(){r.body.emitter.emit(\"_stopRendering\")})),this.body.emitter.on(\"unlockNode\",Wo(n=this.releaseNode).call(n,this))}return wu(t,[{key:\"setOptions\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:\"fit\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var i=wo({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!Of(i.nodes))throw new TypeError(\"Nodes has to be an array of ids.\");if(0===i.nodes.length&&(i.nodes=e),!(\"number\"==typeof i.minZoomLevel&&i.minZoomLevel>0))throw new TypeError(\"Min zoom level has to be a number higher than zero.\");if(!(\"number\"==typeof i.maxZoomLevel&&i.minZoomLevel<=i.maxZoomLevel))throw new TypeError(\"Max zoom level has to be a number higher than min zoom level.\");return i}(t,this.body.nodeIndices);var i,o,n=this.canvas.frame.canvas.clientWidth,r=this.canvas.frame.canvas.clientHeight;if(0===n||0===r)o=1,i=mO.getRange(this.body.nodes,t.nodes);else if(!0===e){var s=0;for(var a in this.body.nodes){if(Object.prototype.hasOwnProperty.call(this.body.nodes,a))!0===this.body.nodes[a].predefinedPosition&&(s+=1)}if(s>.5*this.body.nodeIndices.length)return void this.fit(t,!1);i=mO.getRange(this.body.nodes,t.nodes),o=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,o*=Math.min(n/600,r/600)}else{this.body.emitter.emit(\"_resizeNodes\"),i=mO.getRange(this.body.nodes,t.nodes);var h=n/(1.1*Math.abs(i.maxX-i.minX)),d=r/(1.1*Math.abs(i.maxY-i.minY));o=h<=d?h:d}o>t.maxZoomLevel?o=t.maxZoomLevel:o1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=i,e.lockedOnNode=t,this.moveTo(e)}else console.error(\"Node: \"+t+\" cannot be found.\")}},{key:\"moveTo\",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!Tk(t.offset.x))throw new TypeError('The option \"offset.x\" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!Tk(t.offset.y))throw new TypeError('The option \"offset.y\" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!Tk(t.position.x))throw new TypeError('The option \"position.x\" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!Tk(t.position.y))throw new TypeError('The option \"position.y\" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option \"scale\" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction=\"easeInOutQuad\"),this.animateView(t)}else t={}}},{key:\"animateView\",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,i,o=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n=o.x-t.position.x,r=o.y-t.position.y;if(this.targetTranslation={x:this.sourceTranslation.x+n*this.targetScale+t.offset.x,y:this.sourceTranslation.y+r*this.targetScale+t.offset.y},0===t.animation.duration)if(null!=this.lockedOnNodeId)this.viewFunction=Wo(e=this._lockedRedraw).call(e,this),this.body.emitter.on(\"initRedraw\",this.viewFunction);else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit(\"_requestRedraw\");else this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=Wo(i=this._transitionRedraw).call(i,this),this.body.emitter.on(\"initRedraw\",this.viewFunction),this.body.emitter.emit(\"_startRendering\")}}},{key:\"_lockedRedraw\",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),o=i.x-t,n=i.y-e,r=this.body.view.translation,s={x:r.x+o*this.body.view.scale+this.lockedOnNodeOffset.x,y:r.y+n*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=s}},{key:\"releaseNode\",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off(\"initRedraw\",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:\"_transitionRedraw\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e=Jm[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*e,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*e,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*e},this.easingTime>=1){var i;if(this.body.emitter.off(\"initRedraw\",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId)this.viewFunction=Wo(i=this._lockedRedraw).call(i,this),this.body.emitter.on(\"initRedraw\",this.viewFunction);this.body.emitter.emit(\"animationFinished\")}}},{key:\"getScale\",value:function(){return this.body.view.scale}},{key:\"getViewPosition\",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function TO(t){var e,i=t&&t.preventDefault||!1,o=t&&t.container||window,n={},r={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[\"\"+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s[\"F\"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s[\"num\"+e]={code:96+e,shift:!1};s[\"num*\"]={code:106,shift:!1},s[\"num+\"]={code:107,shift:!1},s[\"num-\"]={code:109,shift:!1},s[\"num/\"]={code:111,shift:!1},s[\"num.\"]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s[\"=\"]={code:187,shift:!1},s[\"-\"]={code:189,shift:!1},s[\"]\"]={code:221,shift:!1},s[\"[\"]={code:219,shift:!1};var a=function(t){d(t,\"keydown\")},h=function(t){d(t,\"keyup\")},d=function(t,e){if(void 0!==r[e][t.keyCode]){for(var o=r[e][t.keyCode],n=0;n700&&(this.body.emitter.emit(\"fit\",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:\"_stopMovement\",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off(\"initRedraw\",this.boundFunctions[t]),this.body.emitter.emit(\"_stopRendering\"));this.boundFunctions={}}},{key:\"_moveUp\",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:\"_moveDown\",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:\"_moveLeft\",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:\"_moveRight\",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:\"_zoomIn\",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=e/t,n=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,r=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=e,this.body.view.translation={x:n,y:r},this.body.emitter.emit(\"zoom\",{direction:\"+\",scale:this.body.view.scale,pointer:null})}},{key:\"_zoomOut\",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=e/t,n=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,r=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=e,this.body.view.translation={x:n,y:r},this.body.emitter.emit(\"zoom\",{direction:\"-\",scale:this.body.view.scale,pointer:null})}},{key:\"configureKeyboardBindings\",value:function(){var t,e,i,o,n,r,s,a,h,d,l,c,u,f,p,v,g,y,m,b,w,k,_,x,E=this;(void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled)&&(!0===this.options.keyboard.bindToWindow?this.keycharm=TO({container:window,preventDefault:!0}):this.keycharm=TO({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(Wo(t=this.keycharm).call(t,\"up\",(function(){E.bindToRedraw(\"_moveUp\")}),\"keydown\"),Wo(e=this.keycharm).call(e,\"down\",(function(){E.bindToRedraw(\"_moveDown\")}),\"keydown\"),Wo(i=this.keycharm).call(i,\"left\",(function(){E.bindToRedraw(\"_moveLeft\")}),\"keydown\"),Wo(o=this.keycharm).call(o,\"right\",(function(){E.bindToRedraw(\"_moveRight\")}),\"keydown\"),Wo(n=this.keycharm).call(n,\"=\",(function(){E.bindToRedraw(\"_zoomIn\")}),\"keydown\"),Wo(r=this.keycharm).call(r,\"num+\",(function(){E.bindToRedraw(\"_zoomIn\")}),\"keydown\"),Wo(s=this.keycharm).call(s,\"num-\",(function(){E.bindToRedraw(\"_zoomOut\")}),\"keydown\"),Wo(a=this.keycharm).call(a,\"-\",(function(){E.bindToRedraw(\"_zoomOut\")}),\"keydown\"),Wo(h=this.keycharm).call(h,\"[\",(function(){E.bindToRedraw(\"_zoomOut\")}),\"keydown\"),Wo(d=this.keycharm).call(d,\"]\",(function(){E.bindToRedraw(\"_zoomIn\")}),\"keydown\"),Wo(l=this.keycharm).call(l,\"pageup\",(function(){E.bindToRedraw(\"_zoomIn\")}),\"keydown\"),Wo(c=this.keycharm).call(c,\"pagedown\",(function(){E.bindToRedraw(\"_zoomOut\")}),\"keydown\"),Wo(u=this.keycharm).call(u,\"up\",(function(){E.unbindFromRedraw(\"_moveUp\")}),\"keyup\"),Wo(f=this.keycharm).call(f,\"down\",(function(){E.unbindFromRedraw(\"_moveDown\")}),\"keyup\"),Wo(p=this.keycharm).call(p,\"left\",(function(){E.unbindFromRedraw(\"_moveLeft\")}),\"keyup\"),Wo(v=this.keycharm).call(v,\"right\",(function(){E.unbindFromRedraw(\"_moveRight\")}),\"keyup\"),Wo(g=this.keycharm).call(g,\"=\",(function(){E.unbindFromRedraw(\"_zoomIn\")}),\"keyup\"),Wo(y=this.keycharm).call(y,\"num+\",(function(){E.unbindFromRedraw(\"_zoomIn\")}),\"keyup\"),Wo(m=this.keycharm).call(m,\"num-\",(function(){E.unbindFromRedraw(\"_zoomOut\")}),\"keyup\"),Wo(b=this.keycharm).call(b,\"-\",(function(){E.unbindFromRedraw(\"_zoomOut\")}),\"keyup\"),Wo(w=this.keycharm).call(w,\"[\",(function(){E.unbindFromRedraw(\"_zoomOut\")}),\"keyup\"),Wo(k=this.keycharm).call(k,\"]\",(function(){E.unbindFromRedraw(\"_zoomIn\")}),\"keyup\"),Wo(_=this.keycharm).call(_,\"pageup\",(function(){E.unbindFromRedraw(\"_zoomIn\")}),\"keyup\"),Wo(x=this.keycharm).call(x,\"pagedown\",(function(){E.unbindFromRedraw(\"_zoomOut\")}),\"keyup\")))}}]),t}();function PO(t,e){var i=void 0!==cf&&ph(t)||t[\"@@iterator\"];if(!i){if(Of(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return DO(t,e);var o=mf(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===o&&t.constructor&&(o=t.constructor.name);if(\"Map\"===o||\"Set\"===o)return Xa(t);if(\"Arguments\"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return DO(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function DO(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:\"onTap\",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,i),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent(\"click\",t,e)}},{key:\"onDoubleTap\",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent(\"doubleClick\",t,e)}},{key:\"onHold\",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,i),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent(\"click\",t,e),this.selectionHandler.generateClickEvent(\"hold\",t,e)}},{key:\"onRelease\",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent(\"release\",t,e),this.touchTime=(new Date).valueOf()}}},{key:\"onContext\",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent(\"oncontext\",t,e)}},{key:\"checkSelectionChanges\",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:\"_determineDifference\",value:function(t,e){var i=function(t,e){for(var i=[],o=0;o=n.minX&&i.x<=n.maxX&&i.y>=n.minY&&i.y<=n.maxY}));Qf(r).call(r,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var s=this.getPointer(t.center);this.selectionHandler.commitAndEmit(s,t),this.selectionHandler.generateClickEvent(\"dragEnd\",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit(\"_requestRedraw\")}else{var a=this.drag.selection;a&&a.length?(Qf(a).call(a,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent(\"dragEnd\",t,this.getPointer(t.center)),this.body.emitter.emit(\"startSimulation\")):(this.selectionHandler.generateClickEvent(\"dragEnd\",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit(\"_requestRedraw\"))}}},{key:\"onPinch\",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var i=this.pinch.scale*t.scale;this.zoom(i,e)}},{key:\"zoom\",value:function(t,e){if(!0===this.options.zoomView){var i=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var o=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var n=this.body.view.translation,r=t/i,s=(1-r)*e.x+n.x*r,a=(1-r)*e.y+n.y*r;if(this.body.view.scale=t,this.body.view.translation={x:s,y:a},null!=o){var h=this.canvas.canvasToDOM(o);this.drag.pointer.x=h.x,this.drag.pointer.y=h.y}this.body.emitter.emit(\"_requestRedraw\"),i0&&(this.popupObj=d[l[l.length-1]],r=!0)}if(void 0===this.popupObj&&!1===r){for(var u,f=this.body.edgeIndices,p=this.body.edges,v=[],g=0;g0&&(this.popupObj=p[v[v.length-1]],s=\"edge\")}void 0!==this.popupObj?this.popupObj.id!==n&&(void 0===this.popup&&(this.popup=new fb(this.canvas.frame)),this.popup.popupTargetType=s,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit(\"showPopup\",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit(\"hidePopup\"))}},{key:\"_checkHidePopup\",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),i=!1;if(\"node\"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var o=this.selectionHandler.getNodeAt(t);i=void 0!==o&&o.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit(\"hidePopup\"))}}]),t}();ek(\"Set\",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),_k);var BO=o(it.Set),FO=y,zO=ok,NO=kw.getWeakData,AO=Rw,RO=oi,jO=Y,LO=et,HO=zw,WO=Jt,VO=Hn.set,qO=Hn.getterFor,UO=zd.find,YO=zd.findIndex,XO=FO([].splice),KO=0,GO=function(t){return t.frozen||(t.frozen=new $O)},$O=function(){this.entries=[]},ZO=function(t,e){return UO(t.entries,(function(t){return t[0]===e}))};$O.prototype={get:function(t){var e=ZO(this,t);if(e)return e[1]},has:function(t){return!!ZO(this,t)},set:function(t,e){var i=ZO(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=YO(this.entries,(function(e){return e[0]===t}));return~e&&XO(this.entries,e,1),!!~e}};var QO,JO={getConstructor:function(t,e,i,o){var n=t((function(t,n){AO(t,r),VO(t,{type:e,id:KO++,frozen:void 0}),jO(n)||HO(n,t[o],{that:t,AS_ENTRIES:i})})),r=n.prototype,s=qO(e),a=function(t,e,i){var o=s(t),n=NO(RO(e),!0);return!0===n?GO(o).set(e,i):n[o.id]=i,t};return zO(r,{delete:function(t){var e=s(this);if(!LO(t))return!1;var i=NO(t);return!0===i?GO(e).delete(t):i&&WO(i,e.id)&&delete i[e.id]},has:function(t){var e=s(this);if(!LO(t))return!1;var i=NO(t);return!0===i?GO(e).has(t):i&&WO(i,e.id)}}),zO(r,i?{get:function(t){var e=s(this);if(LO(t)){var i=NO(t);return!0===i?GO(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),n}},tC=rw,eC=r,iC=y,oC=ok,nC=kw,rC=ek,sC=JO,aC=et,hC=Hn.enforce,dC=s,lC=En,cC=Object,uC=Array.isArray,fC=cC.isExtensible,pC=cC.isFrozen,vC=cC.isSealed,gC=cC.freeze,yC=cC.seal,mC={},bC={},wC=!eC.ActiveXObject&&\"ActiveXObject\"in eC,kC=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_C=rC(\"WeakMap\",kC,sC),xC=_C.prototype,EC=iC(xC.set);if(lC)if(wC){QO=sC.getConstructor(kC,\"WeakMap\",!0),nC.enable();var OC=iC(xC.delete),CC=iC(xC.has),SC=iC(xC.get);oC(xC,{delete:function(t){if(aC(t)&&!fC(t)){var e=hC(this);return e.frozen||(e.frozen=new QO),OC(this,t)||e.frozen.delete(t)}return OC(this,t)},has:function(t){if(aC(t)&&!fC(t)){var e=hC(this);return e.frozen||(e.frozen=new QO),CC(this,t)||e.frozen.has(t)}return CC(this,t)},get:function(t){if(aC(t)&&!fC(t)){var e=hC(this);return e.frozen||(e.frozen=new QO),CC(this,t)?SC(this,t):e.frozen.get(t)}return SC(this,t)},set:function(t,e){if(aC(t)&&!fC(t)){var i=hC(this);i.frozen||(i.frozen=new QO),CC(this,t)?EC(this,t,e):i.frozen.set(t,e)}else EC(this,t,e);return this}})}else tC&&dC((function(){var t=gC([]);return EC(new _C,t,1),!pC(t)}))&&oC(xC,{set:function(t,e){var i;return uC(t)&&(pC(t)?i=mC:vC(t)&&(i=bC)),EC(this,t,e),i===mC&&gC(t),i===bC&&yC(t),this}});var TC,MC,PC,DC,IC,BC=o(it.WeakMap);function FC(t,e,i,o){if(\"a\"===i&&!o)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"==typeof e?t!==e||!o:!e.has(t))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===i?o:\"a\"===i?o.call(t):o?o.value:e.get(t)}function zC(t,e,i,o,n){if(\"m\"===o)throw new TypeError(\"Private method is not writable\");if(\"a\"===o&&!n)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"==typeof e?t!==e||!n:!e.has(t))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===o?n.call(t,i):n?n.value=i:e.set(t,i),i}function NC(t,e){var i=void 0!==cf&&ph(t)||t[\"@@iterator\"];if(!i){if(Of(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return AC(t,e);var o=mf(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===o&&t.constructor&&(o=t.constructor.name);if(\"Map\"===o||\"Set\"===o)return Xa(t);if(\"Arguments\"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return AC(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function AC(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:function(){};vh(this,t),PC.set(this,new jC),DC.set(this,new jC),IC.set(this,void 0),zC(this,IC,e,\"f\")}return wu(t,[{key:\"sizeNodes\",get:function(){return FC(this,PC,\"f\").size}},{key:\"sizeEdges\",get:function(){return FC(this,DC,\"f\").size}},{key:\"getNodes\",value:function(){return FC(this,PC,\"f\").getSelection()}},{key:\"getEdges\",value:function(){return FC(this,DC,\"f\").getSelection()}},{key:\"addNodes\",value:function(){var t;(t=FC(this,PC,\"f\")).add.apply(t,arguments)}},{key:\"addEdges\",value:function(){var t;(t=FC(this,DC,\"f\")).add.apply(t,arguments)}},{key:\"deleteNodes\",value:function(t){FC(this,PC,\"f\").delete(t)}},{key:\"deleteEdges\",value:function(t){FC(this,DC,\"f\").delete(t)}},{key:\"clear\",value:function(){FC(this,PC,\"f\").clear(),FC(this,DC,\"f\").clear()}},{key:\"commit\",value:function(){for(var t,e,i={nodes:FC(this,PC,\"f\").commit(),edges:FC(this,DC,\"f\").commit()},o=arguments.length,n=new Array(o),r=0;r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function WC(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i4&&void 0!==arguments[4]&&arguments[4],r=this._initBaseEvent(e,i);if(!0===n)r.nodes=[],r.edges=[];else{var s=this.getSelection();r.nodes=s.nodes,r.edges=s.edges}void 0!==o&&(r.previousSelection=o),\"click\"==t&&(r.items=this.getClickedItems(i)),void 0!==e.controlEdge&&(r.controlEdge=e.controlEdge),this.body.emitter.emit(t,r)}},{key:\"selectObject\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;if(void 0!==t){if(t instanceof iE){var i;if(!0===e)(i=this._selectionAccumulator).addEdges.apply(i,lf(t.edges));this._selectionAccumulator.addNodes(t)}else this._selectionAccumulator.addEdges(t);return!0}return!1}},{key:\"deselectObject\",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:\"_getAllNodesOverlappingWith\",value:function(t){for(var e=[],i=this.body.nodes,o=0;o1&&void 0!==arguments[1])||arguments[1],i=this._pointerToPositionObject(t),o=this._getAllNodesOverlappingWith(i);return o.length>0?!0===e?this.body.nodes[o[o.length-1]]:o[o.length-1]:void 0}},{key:\"_getEdgesOverlappingWith\",value:function(t,e){for(var i=this.body.edges,o=0;o1&&void 0!==arguments[1])||arguments[1],i=this.canvas.DOMtoCanvas(t),o=10,n=null,r=this.body.edges,s=0;s0&&(this.generateClickEvent(\"deselectEdge\",e,t,n),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent(\"deselectNode\",e,t,n),i=!0),o.nodes.added.length>0&&(this.generateClickEvent(\"selectNode\",e,t),i=!0),o.edges.added.length>0&&(this.generateClickEvent(\"selectEdge\",e,t),i=!0),!0===i&&this.generateClickEvent(\"select\",e,t)}},{key:\"getSelection\",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:\"getSelectedNodes\",value:function(){return this._selectionAccumulator.getNodes()}},{key:\"getSelectedEdges\",value:function(){return this._selectionAccumulator.getEdges()}},{key:\"getSelectedNodeIds\",value:function(){var t;return If(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:\"getSelectedEdgeIds\",value:function(){var t;return If(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:\"setSelection\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError(\"Selection must be an object with nodes and/or edges properties\");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var i,o=HC(t.nodes);try{for(o.s();!(i=o.n()).done;){var n=i.value,r=this.body.nodes[n];if(!r)throw new RangeError('Node with id \"'+n+'\" not found');this.selectObject(r,e.highlightEdges)}}catch(t){o.e(t)}finally{o.f()}}if(t.edges){var s,a=HC(t.edges);try{for(a.s();!(s=a.n()).done;){var h=s.value,d=this.body.edges[h];if(!d)throw new RangeError('Edge with id \"'+h+'\" not found');this.selectObject(d)}}catch(t){a.e(t)}finally{a.f()}}this.body.emitter.emit(\"_requestRedraw\"),this._selectionAccumulator.commit()}},{key:\"selectNodes\",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw\"Selection must be an array with ids\";this.setSelection({nodes:t},{highlightEdges:e})}},{key:\"selectEdges\",value:function(t){if(!t||void 0===t.length)throw\"Selection must be an array with ids\";this.setSelection({edges:t})}},{key:\"updateSelection\",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:\"getClickedItems\",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),i=[],o=this.body.nodeIndices,n=this.body.nodes,r=o.length-1;r>=0;r--){var s=n[o[r]].getItemsOnPoint(e);i.push.apply(i,s)}for(var a=this.body.edgeIndices,h=this.body.edges,d=a.length-1;d>=0;d--){var l=h[a[d]].getItemsOnPoint(e);i.push.apply(i,l)}return i}}]),t}(),qC=hd,UC=Math.floor,YC=function(t,e){var i=t.length,o=UC(i/2);return i<8?XC(t,e):KC(t,YC(qC(t,0,o),e),YC(qC(t,o),e),e)},XC=function(t,e){for(var i,o,n=t.length,r=1;r0;)t[o]=t[--o];o!==r++&&(t[o]=i)}return t},KC=function(t,e,i,o){for(var n=e.length,r=i.length,s=0,a=0;s3)){if(uS)return!0;if(pS)return pS<603;var t,e,i,o,n=\"\";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(o=0;o<47;o++)vS.push({k:e+o,v:i})}for(vS.sort((function(t,e){return e.v-t.v})),o=0;oaS(i)?1:-1}}(t)),i=rS(n),o=0;o=0:a>h;h+=d)h in s&&(n=i(n,s[h],h,r));return n}},FS={left:BS(!1),right:BS(!0)},zS=\"process\"===k(r.process),NS=FS.left;Mi({target:\"Array\",proto:!0,forced:!zS&>>79&><83||!Hf(\"reduce\")},{reduce:function(t){var e=arguments.length;return NS(this,t,e,e>1?arguments[1]:void 0)}});var AS=zo(\"Array\").reduce,RS=ht,jS=AS,LS=Array.prototype,HS=function(t){var e=t.reduce;return t===LS||RS(LS,t)&&e===LS.reduce?jS:e},WS=o(HS);function VS(t){var e=function(){if(\"undefined\"==typeof Reflect||!sx)return!1;if(sx.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sx(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=px(t);if(e){var n=px(this).constructor;i=sx(o,arguments,n)}else i=o.apply(this,arguments);return ux(this,i)}}var qS=function(){function t(){vh(this,t)}return wu(t,[{key:\"abstract\",value:function(){throw new Error(\"Can't instantiate abstract class!\")}},{key:\"fake_use\",value:function(){}},{key:\"curveType\",value:function(){return this.abstract()}},{key:\"getPosition\",value:function(t){return this.fake_use(t),this.abstract()}},{key:\"setPosition\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,i),this.abstract()}},{key:\"getTreeSize\",value:function(t){return this.fake_use(t),this.abstract()}},{key:\"sort\",value:function(t){this.fake_use(t),this.abstract()}},{key:\"fix\",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:\"shift\",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),US=function(t){cx(i,t);var e=VS(i);function i(t){var o;return vh(this,i),(o=e.call(this)).layout=t,o}return wu(i,[{key:\"curveType\",value:function(){return\"horizontal\"}},{key:\"getPosition\",value:function(t){return t.x}},{key:\"setPosition\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.x=e}},{key:\"getTreeSize\",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:\"sort\",value:function(t){SS(t).call(t,(function(t,e){return t.x-e.x}))}},{key:\"fix\",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:\"shift\",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),i}(qS),YS=function(t){cx(i,t);var e=VS(i);function i(t){var o;return vh(this,i),(o=e.call(this)).layout=t,o}return wu(i,[{key:\"curveType\",value:function(){return\"vertical\"}},{key:\"getPosition\",value:function(t){return t.y}},{key:\"setPosition\",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.y=e}},{key:\"getTreeSize\",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:\"sort\",value:function(t){SS(t).call(t,(function(t,e){return t.y-e.y}))}},{key:\"fix\",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:\"shift\",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),i}(qS),XS=zd.every;Mi({target:\"Array\",proto:!0,forced:!Hf(\"every\")},{every:function(t){return XS(this,t,arguments.length>1?arguments[1]:void 0)}});var KS=zo(\"Array\").every,GS=ht,$S=KS,ZS=Array.prototype,QS=function(t){var e=t.every;return t===ZS||GS(ZS,t)&&e===ZS.every?$S:e},JS=o(QS);function tT(t,e){var i=void 0!==cf&&ph(t)||t[\"@@iterator\"];if(!i){if(Of(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return eT(t,e);var o=mf(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===o&&t.constructor&&(o=t.constructor.name);if(\"Map\"===o||\"Set\"===o)return Xa(t);if(\"Arguments\"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return eT(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function eT(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i=e[o])&&(e[o]=e[i]+1)})),e}function oT(t,e,i,o){var n,r,s=Yv(null),a=WS(n=lf(N_(o).call(o))).call(n,(function(t,e){return t+1+e.edges.length}),0),h=i+\"Id\",d=\"to\"===i?1:-1,l=tT(o);try{var c,u=function(){var n=df(r.value,2),l=n[0],c=n[1];if(!o.has(l)||!t(c))return 0;s[l]=0;for(var u,f,p=[c],v=0,g=function(){var t,n;if(!o.has(l))return 0;var r=s[u.id]+d;if(Qf(t=lv(n=u.edges).call(n,(function(t){return t.connected&&t.to!==t.from&&t[i]!==u&&o.has(t.toId)&&o.has(t.fromId)}))).call(t,(function(t){var o=t[h],n=s[o];(null==n||e(r,n))&&(s[o]=r,p.push(t[i]))})),v>a)return{v:{v:iT(o,s)}};++v};u=p.pop();)if(0!==(f=g())&&f)return f.v};for(l.s();!(r=l.n()).done;)if(0!==(c=u())&&c)return c.v}catch(t){l.e(t)}finally{l.f()}return s}var nT=function(){function t(){vh(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return wu(t,[{key:\"addRelation\",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:\"checkIfTree\",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:\"numTrees\",value:function(){return this.treeIndex+1}},{key:\"setTreeIndex\",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:\"ensureLevel\",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:\"getMaxLevel\",value:function(t){var e=this,i={};return function t(o){if(void 0!==i[o])return i[o];var n=e.levels[o];if(e.childrenReference[o]){var r=e.childrenReference[o];if(r.length>0)for(var s=0;s0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit(\"_resetHierarchicalLayout\"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===o)return this.body.emitter.emit(\"refresh\"),Rm(e,this.optionsBackup)}return e}},{key:\"_resetRNG\",value:function(t){this.initialRandomSeed=t,this._rng=Em(this.initialRandomSeed)}},{key:\"adaptAllOptionsForHierarchicalLayout\",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:\"hierarchicalRepulsion\"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||\"barnesHut\"):\"object\"===gu(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||\"barnesHut\",t.physics.solver=\"hierarchicalRepulsion\"):!1!==t.physics&&(e.solver=\"barnesHut\",t.physics={solver:\"hierarchicalRepulsion\"});var i=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:\"dynamic\"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:\"dynamic\"}},t.edges.smooth=!1;else if(\"boolean\"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var o=t.edges.smooth;void 0!==o.type&&\"dynamic\"!==o.type&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:void 0===o.enabled||o.enabled,type:void 0===o.type?\"dynamic\":o.type,roundness:void 0===o.roundness?.5:o.roundness,forceDirection:void 0!==o.forceDirection&&o.forceDirection}},t.edges.smooth={enabled:void 0===o.enabled||o.enabled,type:i,roundness:void 0===o.roundness?.5:o.roundness,forceDirection:void 0!==o.forceDirection&&o.forceDirection}}this.body.emitter.emit(\"_forceDisableDynamicCurves\",i)}return t}},{key:\"positionInitially\",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,i=0;in){for(var s=t.length;t.length>n&&o<=10;){o+=1;var a=t.length;if(o%3==0?this.body.modules.clustering.clusterBridges(r):this.body.modules.clustering.clusterOutliers(r),a==t.length&&o%3!=0)return this._declusterAll(),this.body.emitter.emit(\"_layoutFailed\"),void console.info(\"This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.\")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*s)})}o>10&&console.info(\"The clustering didn't succeed within the amount of interations allowed, progressing with partial result.\"),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var h=0;h0){var t,e,i=!1,o=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new nT,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(i=!0,this.hierarchical.levels[e]=t.options.level):o=!0);if(!0===o&&!0===i)throw new Error(\"To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.\");if(!0===o){var n=this.options.hierarchical.sortMethod;\"hubsize\"===n?this._determineLevelsByHubsize():\"directed\"===n?this._determineLevelsDirected():\"custom\"===n&&this._determineLevelsCustomCallback()}for(var r in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,r)&&this.hierarchical.ensureLevel(r);var s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}},{key:\"_condenseHierarchy\",value:function(){var t=this,e=!1,i={},o=function(e,i){var o=t.hierarchical.trees;for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&o[n]===e&&t.direction.shift(n,i)},n=function(){for(var e=[],i=0;i0)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1e9,o=1e9,n=1e9,r=1e9,s=-1e9;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var h=t.body.nodes[a],d=t.hierarchical.levels[h.id],l=t.direction.getPosition(h),c=df(t._getSpaceAroundNode(h,e),2),u=c[0],f=c[1];o=Math.min(u,o),n=Math.min(f,n),d<=i&&(r=Math.min(l,r),s=Math.max(l,s))}return[r,s,o,n]},a=function(e,i,o){for(var n=t.hierarchical,r=0;r1)for(var h=0;h2&&void 0!==arguments[2]&&arguments[2],a=t.direction.getPosition(i),h=t.direction.getPosition(o),d=Math.abs(h-a),l=t.options.hierarchical.nodeSpacing;if(d>l){var c={},u={};r(i,c),r(o,u);var f=function(e,i){var o=t.hierarchical.getMaxLevel(e.id),n=t.hierarchical.getMaxLevel(i.id);return Math.min(o,n)}(i,o),p=s(c,f),v=s(u,f),g=p[1],y=v[0],m=v[2];if(Math.abs(g-y)>l){var b=g-y+l;b<-m+l&&(b=-m+l),b<0&&(t._shiftBlock(o.id,b),e=!0,!0===n&&t._centerParent(o))}}},d=function(o,n){for(var a=n.id,h=n.edges,d=t.hierarchical.levels[n.id],l=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,c={},u=[],f=0;f0?f=Math.min(u,c-t.options.hierarchical.nodeSpacing):u<0&&(f=-Math.min(-u,l-t.options.hierarchical.nodeSpacing)),0!=f&&(t._shiftBlock(n.id,f),e=!0)}(b),function(i){var o=t.direction.getPosition(n),r=df(t._getSpaceAroundNode(n),2),s=r[0],a=r[1],h=i-o,d=o;h>0?d=Math.min(o+(a-t.options.hierarchical.nodeSpacing),i):h<0&&(d=Math.max(o-(s-t.options.hierarchical.nodeSpacing),i)),d!==o&&(t.direction.setPosition(n,d),e=!0)}(b=m(o,h))};!0===this.options.hierarchical.blockShifting&&(function(i){var o=t.hierarchical.getLevels();o=hp(o).call(o);for(var n=0;n0&&Math.abs(c)0&&(h=this.direction.getPosition(o[r-1])+a),this.direction.setPosition(s,h,e),this._validatePositionAndContinue(s,e,h),n++}}}}},{key:\"_placeBranchNodes\",value:function(t,e){var i,o=this.hierarchical.childrenReference[t];if(void 0!==o){for(var n=[],r=0;re&&void 0===this.positionedNodes[a.id]))return;var d=this.options.hierarchical.nodeSpacing,l=void 0;l=0===s?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(n[s-1])+d,this.direction.setPosition(a,l,h),this._validatePositionAndContinue(a,h,l)}var c=this._getCenterPosition(n);this.direction.setPosition(this.body.nodes[t],c,e)}}},{key:\"_validatePositionAndContinue\",value:function(t,e,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(i-ot}),\"from\",t)}(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:\"_generateMap\",value:function(){var t=this;this._crawlNetwork((function(e,i){t.hierarchical.levels[i.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,i.id)})),this.hierarchical.checkIfTree()}},{key:\"_crawlNetwork\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},n=function i(n,r){if(void 0===o[n.id]){var s;t.hierarchical.setTreeIndex(n,r),o[n.id]=!0;for(var a=t._getActiveEdges(n),h=0;h=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function aT(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i0&&!1!==this.options.deleteNode||0===i&&!1!==this.options.deleteEdge)&&(!0===s&&this._createSeperator(4),this._createDeleteButton(r)),this._bindElementEvents(this.closeDiv,Wo(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent(\"select\",Wo(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit(\"_redraw\")}},{key:\"addNodeMode\",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode=\"addNode\",!0===this.guiEnabled){var e,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Wo(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent(\"click\",Wo(t=this._performAddNode).call(t,this))}},{key:\"editNode\",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler.getSelectedNodes()[0];if(void 0!==e){if(this.inMode=\"editNode\",\"function\"!=typeof this.options.editNode)throw new Error(\"No function has been configured to handle the editing of nodes.\");if(!0!==e.isCluster){var i=Rm({},e.options,!1);if(i.x=e.x,i.y=e.y,2!==this.options.editNode.length)throw new Error(\"The function for edit does not support two arguments (data, callback)\");this.options.editNode(i,(function(e){null!=e&&\"editNode\"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:\"addEdgeMode\",value:function(){var t,e,i,o,n;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode=\"addEdge\",!0===this.guiEnabled){var r,s=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(s),this._createSeperator(),this._createDescription(s.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Wo(r=this.toggleEditMode).call(r,this))}this._temporaryBindUI(\"onTouch\",Wo(t=this._handleConnect).call(t,this)),this._temporaryBindUI(\"onDragEnd\",Wo(e=this._finishConnect).call(e,this)),this._temporaryBindUI(\"onDrag\",Wo(i=this._dragControlNode).call(i,this)),this._temporaryBindUI(\"onRelease\",Wo(o=this._finishConnect).call(o,this)),this._temporaryBindUI(\"onDragStart\",Wo(n=this._dragStartEdge).call(n,this)),this._temporaryBindUI(\"onHold\",(function(){}))}},{key:\"editEdgeMode\",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode=\"editEdge\",\"object\"!==gu(this.options.editEdge)||\"function\"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Wo(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0!==this.edgeBeingEditedId){var i,o,n,r,s=this.body.edges[this.edgeBeingEditedId],a=this._getNewTargetNode(s.from.x,s.from.y),h=this._getNewTargetNode(s.to.x,s.to.y);this.temporaryIds.nodes.push(a.id),this.temporaryIds.nodes.push(h.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this.body.nodes[h.id]=h,this.body.nodeIndices.push(h.id),this._temporaryBindUI(\"onTouch\",Wo(i=this._controlNodeTouch).call(i,this)),this._temporaryBindUI(\"onTap\",(function(){})),this._temporaryBindUI(\"onHold\",(function(){})),this._temporaryBindUI(\"onDragStart\",Wo(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI(\"onDrag\",Wo(n=this._controlNodeDrag).call(n,this)),this._temporaryBindUI(\"onDragEnd\",Wo(r=this._controlNodeDragEnd).call(r,this)),this._temporaryBindUI(\"onMouseMove\",(function(){})),this._temporaryBindEvent(\"beforeDrawing\",(function(t){var e=s.edgeType.findBorderPositions(t);!1===a.selected&&(a.x=e.from.x,a.y=e.from.y),!1===h.selected&&(h.x=e.to.x,h.y=e.to.y)})),this.body.emitter.emit(\"_redraw\")}else this.showManipulatorToolbar()}else{var d=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(d.from.id,d.to.id)}}},{key:\"deleteSelected\",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode=\"delete\";var e=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(e.length>0){for(var n=0;n0&&\"function\"==typeof this.options.deleteEdge&&(o=this.options.deleteEdge);if(\"function\"==typeof o){var r={nodes:e,edges:i};if(2!==o.length)throw new Error(\"The function for delete does not support two arguments (data, callback)\");o(r,(function(e){null!=e&&\"delete\"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit(\"startSimulation\"),t.showManipulatorToolbar()):(t.body.emitter.emit(\"startSimulation\"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit(\"startSimulation\"),this.showManipulatorToolbar()}},{key:\"_setup\",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:\"_createWrappers\",value:function(){var t,e;(void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement(\"div\"),this.manipulationDiv.className=\"vis-manipulation\",!0===this.editMode?this.manipulationDiv.style.display=\"block\":this.manipulationDiv.style.display=\"none\",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement(\"div\"),this.editModeDiv.className=\"vis-edit-mode\",!0===this.editMode?this.editModeDiv.style.display=\"none\":this.editModeDiv.style.display=\"block\",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv)&&(this.closeDiv=document.createElement(\"button\"),this.closeDiv.className=\"vis-close\",this.closeDiv.setAttribute(\"aria-label\",null!==(t=null===(e=this.options.locales[this.options.locale])||void 0===e?void 0:e.close)&&void 0!==t?t:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:\"_getNewTargetNode\",value:function(t,e){var i=Rm({},this.options.controlNodeStyle);i.id=\"targetNode\"+yO(),i.hidden=!1,i.physics=!1,i.x=t,i.y=e;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:t,right:t,top:e,bottom:e},o}},{key:\"_createEditButton\",value:function(){var t;this._clean(),this.manipulationDOM={},Dm(this.editModeDiv);var e=this.options.locales[this.options.locale],i=this._createButton(\"editMode\",\"vis-edit vis-edit-mode\",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,Wo(t=this.toggleEditMode).call(t,this))}},{key:\"_clean\",value:function(){this.inMode=!1,!0===this.guiEnabled&&(Dm(this.editModeDiv),Dm(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit(\"restorePhysics\")}},{key:\"_cleanupDOMEventListeners\",value:function(){var t,e,i=sT(Pp(t=this._domEventListenerCleanupQueue).call(t,0));try{for(i.s();!(e=i.n()).done;){(0,e.value)()}}catch(t){i.e(t)}finally{i.f()}}},{key:\"_removeManipulationDOM\",value:function(){this._clean(),Dm(this.manipulationDiv),Dm(this.editModeDiv),Dm(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:\"_createSeperator\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM[\"seperatorLineDiv\"+t]=document.createElement(\"div\"),this.manipulationDOM[\"seperatorLineDiv\"+t].className=\"vis-separator-line\",this.manipulationDiv.appendChild(this.manipulationDOM[\"seperatorLineDiv\"+t])}},{key:\"_createAddNodeButton\",value:function(t){var e,i=this._createButton(\"addNode\",\"vis-add\",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Wo(e=this.addNodeMode).call(e,this))}},{key:\"_createAddEdgeButton\",value:function(t){var e,i=this._createButton(\"addEdge\",\"vis-connect\",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Wo(e=this.addEdgeMode).call(e,this))}},{key:\"_createEditNodeButton\",value:function(t){var e,i=this._createButton(\"editNode\",\"vis-edit\",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Wo(e=this.editNode).call(e,this))}},{key:\"_createEditEdgeButton\",value:function(t){var e,i=this._createButton(\"editEdge\",\"vis-edit\",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Wo(e=this.editEdgeMode).call(e,this))}},{key:\"_createDeleteButton\",value:function(t){var e,i;i=this.options.rtl?\"vis-delete-rtl\":\"vis-delete\";var o=this._createButton(\"delete\",i,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Wo(e=this.deleteSelected).call(e,this))}},{key:\"_createBackButton\",value:function(t){var e,i=this._createButton(\"back\",\"vis-back\",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Wo(e=this.showManipulatorToolbar).call(e,this))}},{key:\"_createButton\",value:function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"vis-label\";return this.manipulationDOM[t+\"Div\"]=document.createElement(\"button\"),this.manipulationDOM[t+\"Div\"].className=\"vis-button \"+e,this.manipulationDOM[t+\"Label\"]=document.createElement(\"div\"),this.manipulationDOM[t+\"Label\"].className=o,this.manipulationDOM[t+\"Label\"].innerText=i,this.manipulationDOM[t+\"Div\"].appendChild(this.manipulationDOM[t+\"Label\"]),this.manipulationDOM[t+\"Div\"]}},{key:\"_createDescription\",value:function(t){this.manipulationDOM.descriptionLabel=document.createElement(\"div\"),this.manipulationDOM.descriptionLabel.className=\"vis-none\",this.manipulationDOM.descriptionLabel.innerText=t,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:\"_temporaryBindEvent\",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:\"_temporaryBindUI\",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error(\"This UI function does not exist. Typo? You tried: \"+t+\" possible are: \"+$v(zf(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:\"_unbindTemporaryUIs\",value:function(){for(var t in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:\"_unbindTemporaryEvents\",value:function(){for(var t=0;t=0;s--)if(n[s]!==this.selectedControlNode.id){r=this.body.nodes[n[s]];break}if(void 0!==r&&void 0!==this.selectedControlNode)if(!0===r.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var a=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===a.id?this._performEditEdge(r.id,o.to.id):this._performEditEdge(o.from.id,r.id)}else o.updateEdgeType(),this.body.emitter.emit(\"restorePhysics\");this.body.emitter.emit(\"_redraw\")}}},{key:\"_handleConnect\",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=wo({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var e=this.lastTouch,i=this.selectionHandler.getNodeAt(e);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var n=this.body.functions.createEdge({id:\"connectionEdge\"+yO(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:\"continuous\",roundness:.5}});this.body.edges[n.id]=n,this.body.edgeIndices.push(n.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(n.id)}this.touchTime=(new Date).valueOf()}}},{key:\"_dragControlNode\",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),o=void 0;void 0!==this.temporaryIds.edges[0]&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var n=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,s=n.length-1;s>=0;s--){var a;if(-1===Vv(a=this.temporaryIds.nodes).call(a,n[s])){r=this.body.nodes[n[s]];break}}if(t.controlEdge={from:o,to:r?r.id:void 0},this.selectionHandler.generateClickEvent(\"controlNodeDragging\",t,e),void 0!==this.temporaryIds.nodes[0]){var h=this.body.nodes[this.temporaryIds.nodes[0]];h.x=this.canvas._XconvertDOMtoCanvas(e.x),h.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit(\"_redraw\")}else this.interactionHandler.onDrag(t)}},{key:\"_finishConnect\",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),o=void 0;void 0!==this.temporaryIds.edges[0]&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var n=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,s=n.length-1;s>=0;s--){var a;if(-1===Vv(a=this.temporaryIds.nodes).call(a,n[s])){r=this.body.nodes[n[s]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==r&&(!0===r.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[o]&&void 0!==this.body.nodes[r.id]&&this._performAddEdge(o,r.id)),t.controlEdge={from:o,to:r?r.id:void 0},this.selectionHandler.generateClickEvent(\"controlNodeDragEnd\",t,e),this.body.emitter.emit(\"_redraw\")}},{key:\"_dragStartEdge\",value:function(t){var e=this.lastTouch;this.selectionHandler.generateClickEvent(\"dragStart\",t,e,void 0,!0)}},{key:\"_performAddNode\",value:function(t){var e=this,i={id:yO(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:\"new\"};if(\"function\"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error(\"The function for add does not support two arguments (data,callback)\");this.options.addNode(i,(function(t){null!=t&&\"addNode\"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:\"_performAddEdge\",value:function(t,e){var i=this,o={from:t,to:e};if(\"function\"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error(\"The function for connect does not support two arguments (data,callback)\");this.options.addEdge(o,(function(t){null!=t&&\"addEdge\"===i.inMode&&(i.body.data.edges.getDataSet().add(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:\"_performEditEdge\",value:function(t,e){var i=this,o={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},n=this.options.editEdge;if(\"object\"===gu(n)&&(n=n.editWithoutDrag),\"function\"==typeof n){if(2!==n.length)throw new Error(\"The function for edit does not support two arguments (data, callback)\");n(o,(function(t){null==t||\"editEdge\"!==i.inMode?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit(\"_redraw\"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),dT=\"string\",lT=\"boolean\",cT=\"number\",uT=\"array\",fT=\"object\",pT=[\"arrow\",\"bar\",\"box\",\"circle\",\"crow\",\"curve\",\"diamond\",\"image\",\"inv_curve\",\"inv_triangle\",\"triangle\",\"vee\"],vT={borderWidth:{number:cT},borderWidthSelected:{number:cT,undefined:\"undefined\"},brokenImage:{string:dT,undefined:\"undefined\"},chosen:{label:{boolean:lT,function:\"function\"},node:{boolean:lT,function:\"function\"},__type__:{object:fT,boolean:lT}},color:{border:{string:dT},background:{string:dT},highlight:{border:{string:dT},background:{string:dT},__type__:{object:fT,string:dT}},hover:{border:{string:dT},background:{string:dT},__type__:{object:fT,string:dT}},__type__:{object:fT,string:dT}},opacity:{number:cT,undefined:\"undefined\"},fixed:{x:{boolean:lT},y:{boolean:lT},__type__:{object:fT,boolean:lT}},font:{align:{string:dT},color:{string:dT},size:{number:cT},face:{string:dT},background:{string:dT},strokeWidth:{number:cT},strokeColor:{string:dT},vadjust:{number:cT},multi:{boolean:lT,string:dT},bold:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},boldital:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},ital:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},mono:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},__type__:{object:fT,string:dT}},group:{string:dT,number:cT,undefined:\"undefined\"},heightConstraint:{minimum:{number:cT},valign:{string:dT},__type__:{object:fT,boolean:lT,number:cT}},hidden:{boolean:lT},icon:{face:{string:dT},code:{string:dT},size:{number:cT},color:{string:dT},weight:{string:dT,number:cT},__type__:{object:fT}},id:{string:dT,number:cT},image:{selected:{string:dT,undefined:\"undefined\"},unselected:{string:dT,undefined:\"undefined\"},__type__:{object:fT,string:dT}},imagePadding:{top:{number:cT},right:{number:cT},bottom:{number:cT},left:{number:cT},__type__:{object:fT,number:cT}},label:{string:dT,undefined:\"undefined\"},labelHighlightBold:{boolean:lT},level:{number:cT,undefined:\"undefined\"},margin:{top:{number:cT},right:{number:cT},bottom:{number:cT},left:{number:cT},__type__:{object:fT,number:cT}},mass:{number:cT},physics:{boolean:lT},scaling:{min:{number:cT},max:{number:cT},label:{enabled:{boolean:lT},min:{number:cT},max:{number:cT},maxVisible:{number:cT},drawThreshold:{number:cT},__type__:{object:fT,boolean:lT}},customScalingFunction:{function:\"function\"},__type__:{object:fT}},shadow:{enabled:{boolean:lT},color:{string:dT},size:{number:cT},x:{number:cT},y:{number:cT},__type__:{object:fT,boolean:lT}},shape:{string:[\"custom\",\"ellipse\",\"circle\",\"database\",\"box\",\"text\",\"image\",\"circularImage\",\"diamond\",\"dot\",\"star\",\"triangle\",\"triangleDown\",\"square\",\"icon\",\"hexagon\"]},ctxRenderer:{function:\"function\"},shapeProperties:{borderDashes:{boolean:lT,array:uT},borderRadius:{number:cT},interpolation:{boolean:lT},useImageSize:{boolean:lT},useBorderWithImage:{boolean:lT},coordinateOrigin:{string:[\"center\",\"top-left\"]},__type__:{object:fT}},size:{number:cT},title:{string:dT,dom:\"dom\",undefined:\"undefined\"},value:{number:cT,undefined:\"undefined\"},widthConstraint:{minimum:{number:cT},maximum:{number:cT},__type__:{object:fT,boolean:lT,number:cT}},x:{number:cT},y:{number:cT},__type__:{object:fT}},gT={configure:{enabled:{boolean:lT},filter:{boolean:lT,string:dT,array:uT,function:\"function\"},container:{dom:\"dom\"},showButton:{boolean:lT},__type__:{object:fT,boolean:lT,string:dT,array:uT,function:\"function\"}},edges:{arrows:{to:{enabled:{boolean:lT},scaleFactor:{number:cT},type:{string:pT},imageHeight:{number:cT},imageWidth:{number:cT},src:{string:dT},__type__:{object:fT,boolean:lT}},middle:{enabled:{boolean:lT},scaleFactor:{number:cT},type:{string:pT},imageWidth:{number:cT},imageHeight:{number:cT},src:{string:dT},__type__:{object:fT,boolean:lT}},from:{enabled:{boolean:lT},scaleFactor:{number:cT},type:{string:pT},imageWidth:{number:cT},imageHeight:{number:cT},src:{string:dT},__type__:{object:fT,boolean:lT}},__type__:{string:[\"from\",\"to\",\"middle\"],object:fT}},endPointOffset:{from:{number:cT},to:{number:cT},__type__:{object:fT,number:cT}},arrowStrikethrough:{boolean:lT},background:{enabled:{boolean:lT},color:{string:dT},size:{number:cT},dashes:{boolean:lT,array:uT},__type__:{object:fT,boolean:lT}},chosen:{label:{boolean:lT,function:\"function\"},edge:{boolean:lT,function:\"function\"},__type__:{object:fT,boolean:lT}},color:{color:{string:dT},highlight:{string:dT},hover:{string:dT},inherit:{string:[\"from\",\"to\",\"both\"],boolean:lT},opacity:{number:cT},__type__:{object:fT,string:dT}},dashes:{boolean:lT,array:uT},font:{color:{string:dT},size:{number:cT},face:{string:dT},background:{string:dT},strokeWidth:{number:cT},strokeColor:{string:dT},align:{string:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},vadjust:{number:cT},multi:{boolean:lT,string:dT},bold:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},boldital:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},ital:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},mono:{color:{string:dT},size:{number:cT},face:{string:dT},mod:{string:dT},vadjust:{number:cT},__type__:{object:fT,string:dT}},__type__:{object:fT,string:dT}},hidden:{boolean:lT},hoverWidth:{function:\"function\",number:cT},label:{string:dT,undefined:\"undefined\"},labelHighlightBold:{boolean:lT},length:{number:cT,undefined:\"undefined\"},physics:{boolean:lT},scaling:{min:{number:cT},max:{number:cT},label:{enabled:{boolean:lT},min:{number:cT},max:{number:cT},maxVisible:{number:cT},drawThreshold:{number:cT},__type__:{object:fT,boolean:lT}},customScalingFunction:{function:\"function\"},__type__:{object:fT}},selectionWidth:{function:\"function\",number:cT},selfReferenceSize:{number:cT},selfReference:{size:{number:cT},angle:{number:cT},renderBehindTheNode:{boolean:lT},__type__:{object:fT}},shadow:{enabled:{boolean:lT},color:{string:dT},size:{number:cT},x:{number:cT},y:{number:cT},__type__:{object:fT,boolean:lT}},smooth:{enabled:{boolean:lT},type:{string:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"]},roundness:{number:cT},forceDirection:{string:[\"horizontal\",\"vertical\",\"none\"],boolean:lT},__type__:{object:fT,boolean:lT}},title:{string:dT,undefined:\"undefined\"},width:{number:cT},widthConstraint:{maximum:{number:cT},__type__:{object:fT,boolean:lT,number:cT}},value:{number:cT,undefined:\"undefined\"},__type__:{object:fT}},groups:{useDefaultGroups:{boolean:lT},__any__:vT,__type__:{object:fT}},interaction:{dragNodes:{boolean:lT},dragView:{boolean:lT},hideEdgesOnDrag:{boolean:lT},hideEdgesOnZoom:{boolean:lT},hideNodesOnDrag:{boolean:lT},hover:{boolean:lT},keyboard:{enabled:{boolean:lT},speed:{x:{number:cT},y:{number:cT},zoom:{number:cT},__type__:{object:fT}},bindToWindow:{boolean:lT},autoFocus:{boolean:lT},__type__:{object:fT,boolean:lT}},multiselect:{boolean:lT},navigationButtons:{boolean:lT},selectable:{boolean:lT},selectConnectedEdges:{boolean:lT},hoverConnectedEdges:{boolean:lT},tooltipDelay:{number:cT},zoomView:{boolean:lT},zoomSpeed:{number:cT},__type__:{object:fT}},layout:{randomSeed:{undefined:\"undefined\",number:cT,string:dT},improvedLayout:{boolean:lT},clusterThreshold:{number:cT},hierarchical:{enabled:{boolean:lT},levelSeparation:{number:cT},nodeSpacing:{number:cT},treeSpacing:{number:cT},blockShifting:{boolean:lT},edgeMinimization:{boolean:lT},parentCentralization:{boolean:lT},direction:{string:[\"UD\",\"DU\",\"LR\",\"RL\"]},sortMethod:{string:[\"hubsize\",\"directed\"]},shakeTowards:{string:[\"leaves\",\"roots\"]},__type__:{object:fT,boolean:lT}},__type__:{object:fT}},manipulation:{enabled:{boolean:lT},initiallyActive:{boolean:lT},addNode:{boolean:lT,function:\"function\"},addEdge:{boolean:lT,function:\"function\"},editNode:{function:\"function\"},editEdge:{editWithoutDrag:{function:\"function\"},__type__:{object:fT,boolean:lT,function:\"function\"}},deleteNode:{boolean:lT,function:\"function\"},deleteEdge:{boolean:lT,function:\"function\"},controlNodeStyle:vT,__type__:{object:fT,boolean:lT}},nodes:vT,physics:{enabled:{boolean:lT},barnesHut:{theta:{number:cT},gravitationalConstant:{number:cT},centralGravity:{number:cT},springLength:{number:cT},springConstant:{number:cT},damping:{number:cT},avoidOverlap:{number:cT},__type__:{object:fT}},forceAtlas2Based:{theta:{number:cT},gravitationalConstant:{number:cT},centralGravity:{number:cT},springLength:{number:cT},springConstant:{number:cT},damping:{number:cT},avoidOverlap:{number:cT},__type__:{object:fT}},repulsion:{centralGravity:{number:cT},springLength:{number:cT},springConstant:{number:cT},nodeDistance:{number:cT},damping:{number:cT},__type__:{object:fT}},hierarchicalRepulsion:{centralGravity:{number:cT},springLength:{number:cT},springConstant:{number:cT},nodeDistance:{number:cT},damping:{number:cT},avoidOverlap:{number:cT},__type__:{object:fT}},maxVelocity:{number:cT},minVelocity:{number:cT},solver:{string:[\"barnesHut\",\"repulsion\",\"hierarchicalRepulsion\",\"forceAtlas2Based\"]},stabilization:{enabled:{boolean:lT},iterations:{number:cT},updateInterval:{number:cT},onlyDynamicEdges:{boolean:lT},fit:{boolean:lT},__type__:{object:fT,boolean:lT}},timestep:{number:cT},adaptiveTimestep:{boolean:lT},wind:{x:{number:cT},y:{number:cT},__type__:{object:fT}},__type__:{object:fT,boolean:lT}},autoResize:{boolean:lT},clickToUse:{boolean:lT},locale:{string:dT},locales:{__any__:{any:\"any\"},__type__:{object:fT}},height:{string:dT},width:{string:dT},__type__:{object:fT}},yT={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#97C2FC\"],highlight:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]},hover:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[0,0,50,1],strokeColor:[\"color\",\"#ffffff\"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:[\"ellipse\",\"box\",\"circle\",\"database\",\"diamond\",\"dot\",\"square\",\"star\",\"text\",\"triangle\",\"triangleDown\",\"hexagon\"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:\"arrow\"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:\"arrow\"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:\"arrow\"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:[\"color\",\"#848484\"],highlight:[\"color\",\"#848484\"],hover:[\"color\",\"#848484\"],inherit:[\"from\",\"to\",\"both\",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[2,0,50,1],strokeColor:[\"color\",\"#ffffff\"],align:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"],forceDirection:[\"horizontal\",\"vertical\",\"none\"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:[\"UD\",\"DU\",\"LR\",\"RL\"],sortMethod:[\"hubsize\",\"directed\"],shakeTowards:[\"leaves\",\"roots\"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:[\"barnesHut\",\"forceAtlas2Based\",\"repulsion\",\"hierarchicalRepulsion\"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},mT=function(t,e,i){var o;return!(!Qp(t).call(t,\"physics\")||!Qp(o=yT.physics.solver).call(o,e)||i.physics.solver===e||\"wind\"===e)},bT=Object.freeze({__proto__:null,allOptions:gT,configuratorHideOption:mT,configureOptions:yT}),wT=function(){function t(){vh(this,t)}return wu(t,[{key:\"getDistances\",value:function(t,e,i){for(var o={},n=t.edges,r=0;r2&&void 0!==arguments[2]&&arguments[2],o=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var n=0,r=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),s=1e9,a=0,h=0,d=0,l=0,c=0;s>.01&&n1&&c<5;){c+=1,this._moveNode(a,h,d);var f=df(this._getEnergy(a),3);l=f[0],h=f[1],d=f[2]}}}},{key:\"_getHighestEnergyNode\",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,o=0,n=e[0],r=0,s=0,a=0;a {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isFunction(x) {\n return typeof x === 'function';\n}\n//# sourceMappingURL=isFunction.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar _enable_super_gross_mode_that_will_cause_bad_things = false;\nexport var config = {\n Promise: undefined,\n set useDeprecatedSynchronousErrorHandling(value) {\n if (value) {\n var error = /*@__PURE__*/ new Error();\n /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \\n' + error.stack);\n }\n else if (_enable_super_gross_mode_that_will_cause_bad_things) {\n /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3');\n }\n _enable_super_gross_mode_that_will_cause_bad_things = value;\n },\n get useDeprecatedSynchronousErrorHandling() {\n return _enable_super_gross_mode_that_will_cause_bad_things;\n },\n};\n//# sourceMappingURL=config.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function hostReportError(err) {\n setTimeout(function () { throw err; }, 0);\n}\n//# sourceMappingURL=hostReportError.js.map\n","/** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport var empty = {\n closed: true,\n next: function (value) { },\n error: function (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); })();\n//# sourceMappingURL=isArray.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isObject(x) {\n return x !== null && typeof x === 'object';\n}\n//# sourceMappingURL=isObject.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar UnsubscriptionErrorImpl = /*@__PURE__*/ (function () {\n function UnsubscriptionErrorImpl(errors) {\n Error.call(this);\n this.message = errors ?\n errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ') : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n return this;\n }\n UnsubscriptionErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return UnsubscriptionErrorImpl;\n})();\nexport var UnsubscriptionError = UnsubscriptionErrorImpl;\n//# sourceMappingURL=UnsubscriptionError.js.map\n","/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */\nimport { isArray } from './util/isArray';\nimport { isObject } from './util/isObject';\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nvar Subscription = /*@__PURE__*/ (function () {\n function Subscription(unsubscribe) {\n this.closed = false;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._ctorUnsubscribe = true;\n this._unsubscribe = unsubscribe;\n }\n }\n Subscription.prototype.unsubscribe = function () {\n var errors;\n if (this.closed) {\n return;\n }\n var _a = this, _parentOrParents = _a._parentOrParents, _ctorUnsubscribe = _a._ctorUnsubscribe, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\n this.closed = true;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (_parentOrParents instanceof Subscription) {\n _parentOrParents.remove(this);\n }\n else if (_parentOrParents !== null) {\n for (var index = 0; index < _parentOrParents.length; ++index) {\n var parent_1 = _parentOrParents[index];\n parent_1.remove(this);\n }\n }\n if (isFunction(_unsubscribe)) {\n if (_ctorUnsubscribe) {\n this._unsubscribe = undefined;\n }\n try {\n _unsubscribe.call(this);\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];\n }\n }\n if (isArray(_subscriptions)) {\n var index = -1;\n var len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject(sub)) {\n try {\n sub.unsubscribe();\n }\n catch (e) {\n errors = errors || [];\n if (e instanceof UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(e.errors));\n }\n else {\n errors.push(e);\n }\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n };\n Subscription.prototype.add = function (teardown) {\n var subscription = teardown;\n if (!teardown) {\n return Subscription.EMPTY;\n }\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (!(subscription instanceof Subscription)) {\n var tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default: {\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n }\n var _parentOrParents = subscription._parentOrParents;\n if (_parentOrParents === null) {\n subscription._parentOrParents = this;\n }\n else if (_parentOrParents instanceof Subscription) {\n if (_parentOrParents === this) {\n return subscription;\n }\n subscription._parentOrParents = [_parentOrParents, this];\n }\n else if (_parentOrParents.indexOf(this) === -1) {\n _parentOrParents.push(this);\n }\n else {\n return subscription;\n }\n var subscriptions = this._subscriptions;\n if (subscriptions === null) {\n this._subscriptions = [subscription];\n }\n else {\n subscriptions.push(subscription);\n }\n return subscription;\n };\n Subscription.prototype.remove = function (subscription) {\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n}());\nexport { Subscription };\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError) ? err.errors : err); }, []);\n}\n//# sourceMappingURL=Subscription.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var rxSubscriber = /*@__PURE__*/ (function () {\n return typeof Symbol === 'function'\n ? /*@__PURE__*/ Symbol('rxSubscriber')\n : '@@rxSubscriber_' + /*@__PURE__*/ Math.random();\n})();\nexport var $$rxSubscriber = rxSubscriber;\n//# sourceMappingURL=rxSubscriber.js.map\n","/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { empty as emptyObserver } from './Observer';\nimport { Subscription } from './Subscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nvar Subscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subscriber, _super);\n function Subscriber(destinationOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this.syncErrorValue = null;\n _this.syncErrorThrown = false;\n _this.syncErrorThrowable = false;\n _this.isStopped = false;\n switch (arguments.length) {\n case 0:\n _this.destination = emptyObserver;\n break;\n case 1:\n if (!destinationOrNext) {\n _this.destination = emptyObserver;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n _this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;\n _this.destination = destinationOrNext;\n destinationOrNext.add(_this);\n }\n else {\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext);\n }\n break;\n }\n default:\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete);\n break;\n }\n return _this;\n }\n Subscriber.prototype[rxSubscriberSymbol] = function () { return this; };\n Subscriber.create = function (next, error, complete) {\n var subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n };\n Subscriber.prototype.next = function (value) {\n if (!this.isStopped) {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n this.destination.error(err);\n this.unsubscribe();\n };\n Subscriber.prototype._complete = function () {\n this.destination.complete();\n this.unsubscribe();\n };\n Subscriber.prototype._unsubscribeAndRecycle = function () {\n var _parentOrParents = this._parentOrParents;\n this._parentOrParents = null;\n this.unsubscribe();\n this.closed = false;\n this.isStopped = false;\n this._parentOrParents = _parentOrParents;\n return this;\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar SafeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SafeSubscriber, _super);\n function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this._parentSubscriber = _parentSubscriber;\n var next;\n var context = _this;\n if (isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (observerOrNext !== emptyObserver) {\n context = Object.create(observerOrNext);\n if (isFunction(context.unsubscribe)) {\n _this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = _this.unsubscribe.bind(_this);\n }\n }\n _this._context = context;\n _this._next = next;\n _this._error = error;\n _this._complete = complete;\n return _this;\n }\n SafeSubscriber.prototype.next = function (value) {\n if (!this.isStopped && this._next) {\n var _parentSubscriber = this._parentSubscriber;\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n var useDeprecatedSynchronousErrorHandling = config.useDeprecatedSynchronousErrorHandling;\n if (this._error) {\n if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parentSubscriber.syncErrorThrowable) {\n this.unsubscribe();\n if (useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n hostReportError(err);\n }\n else {\n if (useDeprecatedSynchronousErrorHandling) {\n _parentSubscriber.syncErrorValue = err;\n _parentSubscriber.syncErrorThrown = true;\n }\n else {\n hostReportError(err);\n }\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.complete = function () {\n var _this = this;\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n if (this._complete) {\n var wrappedComplete = function () { return _this._complete.call(_this._context); };\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(wrappedComplete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, wrappedComplete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n }\n };\n SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {\n if (!config.useDeprecatedSynchronousErrorHandling) {\n throw new Error('bad call');\n }\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n else {\n hostReportError(err);\n return true;\n }\n }\n return false;\n };\n SafeSubscriber.prototype._unsubscribe = function () {\n var _parentSubscriber = this._parentSubscriber;\n this._context = null;\n this._parentSubscriber = null;\n _parentSubscriber.unsubscribe();\n };\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\n//# sourceMappingURL=Subscriber.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var observable = /*@__PURE__*/ (function () { return typeof Symbol === 'function' && Symbol.observable || '@@observable'; })();\n//# sourceMappingURL=observable.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map\n","/** PURE_IMPORTS_START _identity PURE_IMPORTS_END */\nimport { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map\n","/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */\nimport { canReportError } from './util/canReportError';\nimport { toSubscriber } from './util/toSubscriber';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nvar Observable = /*@__PURE__*/ (function () {\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n sink.add(operator.call(sink, this.source));\n }\n else {\n sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?\n this._subscribe(sink) :\n this._trySubscribe(sink));\n }\n if (config.useDeprecatedSynchronousErrorHandling) {\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n }\n return sink;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n sink.syncErrorThrown = true;\n sink.syncErrorValue = err;\n }\n if (canReportError(sink)) {\n sink.error(err);\n }\n else {\n console.warn(err);\n }\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscription;\n subscription = _this.subscribe(function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n if (subscription) {\n subscription.unsubscribe();\n }\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var source = this.source;\n return source && source.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n if (operations.length === 0) {\n return this;\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n if (!promiseCtor) {\n promiseCtor = config.Promise || Promise;\n }\n if (!promiseCtor) {\n throw new Error('no Promise impl found');\n }\n return promiseCtor;\n}\n//# sourceMappingURL=Observable.js.map\n","/** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { empty as emptyObserver } from '../Observer';\nexport function toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriberSymbol]) {\n return nextOrObserver[rxSubscriberSymbol]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber(emptyObserver);\n }\n return new Subscriber(nextOrObserver, error, complete);\n}\n//# sourceMappingURL=toSubscriber.js.map\n","/** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nexport function canReportError(observer) {\n while (observer) {\n var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped;\n if (closed_1 || isStopped) {\n return false;\n }\n else if (destination && destination instanceof Subscriber) {\n observer = destination;\n }\n else {\n observer = null;\n }\n }\n return true;\n}\n//# sourceMappingURL=canReportError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () {\n function ObjectUnsubscribedErrorImpl() {\n Error.call(this);\n this.message = 'object unsubscribed';\n this.name = 'ObjectUnsubscribedError';\n return this;\n }\n ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return ObjectUnsubscribedErrorImpl;\n})();\nexport var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;\n//# sourceMappingURL=ObjectUnsubscribedError.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from './Subscription';\nvar SubjectSubscription = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, subscriber) {\n var _this = _super.call(this) || this;\n _this.subject = subject;\n _this.subscriber = subscriber;\n _this.closed = false;\n return _this;\n }\n SubjectSubscription.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.closed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription));\nexport { SubjectSubscription };\n//# sourceMappingURL=SubjectSubscription.js.map\n","/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nvar SubjectSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n return _this;\n }\n return SubjectSubscriber;\n}(Subscriber));\nexport { SubjectSubscriber };\nvar Subject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.observers = [];\n _this.closed = false;\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype[rxSubscriberSymbol] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._trySubscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return _super.prototype._trySubscribe.call(this, subscriber);\n }\n };\n Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n// find the complete implementation of crypto (msCrypto) on IE11.\nvar getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto);\nvar rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\nexport default function rng() {\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n\n return getRandomValues(rnds8);\n}","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n\n return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join('');\n}\n\nexport default bytesToUuid;","import rng from './rng.js';\nimport bytesToUuid from './bytesToUuid.js';\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof options == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nexport default v4;","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { v4 } from 'uuid';\n\nfunction ownKeys$2(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return _assertThisInitialized(self);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function () {};\n return {\n s: F,\n n: function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function (e) {\n throw e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function () {\n it = it.call(o);\n },\n n: function () {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function (e) {\n didErr = true;\n err = e;\n },\n f: function () {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nvar check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global$a =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n\nvar objectGetOwnPropertyDescriptor = {};\n\nvar fails$9 = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\nvar fails$8 = fails$9;\n\n// Detect IE8's incomplete defineProperty implementation\nvar descriptors = !fails$8(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\nvar fails$7 = fails$9;\n\nvar functionBindNative = !fails$7(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n\nvar NATIVE_BIND$2 = functionBindNative;\n\nvar call$4 = Function.prototype.call;\n\nvar functionCall = NATIVE_BIND$2 ? call$4.bind(call$4) : function () {\n return call$4.apply(call$4, arguments);\n};\n\nvar objectPropertyIsEnumerable = {};\n\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nobjectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor$1(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n\nvar createPropertyDescriptor$2 = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\nvar NATIVE_BIND$1 = functionBindNative;\n\nvar FunctionPrototype$1 = Function.prototype;\nvar call$3 = FunctionPrototype$1.call;\nvar uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$3, call$3);\n\nvar functionUncurryThisRaw = function (fn) {\n return NATIVE_BIND$1 ? uncurryThisWithBind(fn) : function () {\n return call$3.apply(fn, arguments);\n };\n};\n\nvar uncurryThisRaw$1 = functionUncurryThisRaw;\n\nvar toString$1 = uncurryThisRaw$1({}.toString);\nvar stringSlice = uncurryThisRaw$1(''.slice);\n\nvar classofRaw$2 = function (it) {\n return stringSlice(toString$1(it), 8, -1);\n};\n\nvar classofRaw$1 = classofRaw$2;\nvar uncurryThisRaw = functionUncurryThisRaw;\n\nvar functionUncurryThis = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);\n};\n\nvar uncurryThis$9 = functionUncurryThis;\nvar fails$6 = fails$9;\nvar classof$3 = classofRaw$2;\n\nvar $Object$3 = Object;\nvar split = uncurryThis$9(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar indexedObject = fails$6(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object$3('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof$3(it) == 'String' ? split(it, '') : $Object$3(it);\n} : $Object$3;\n\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nvar isNullOrUndefined$2 = function (it) {\n return it === null || it === undefined;\n};\n\nvar isNullOrUndefined$1 = isNullOrUndefined$2;\n\nvar $TypeError$5 = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nvar requireObjectCoercible$2 = function (it) {\n if (isNullOrUndefined$1(it)) throw $TypeError$5(\"Can't call method on \" + it);\n return it;\n};\n\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject$1 = indexedObject;\nvar requireObjectCoercible$1 = requireObjectCoercible$2;\n\nvar toIndexedObject$4 = function (it) {\n return IndexedObject$1(requireObjectCoercible$1(it));\n};\n\nvar documentAll$2 = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;\n\nvar documentAll_1 = {\n all: documentAll$2,\n IS_HTMLDDA: IS_HTMLDDA\n};\n\nvar $documentAll$1 = documentAll_1;\n\nvar documentAll$1 = $documentAll$1.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nvar isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll$1;\n} : function (argument) {\n return typeof argument == 'function';\n};\n\nvar isCallable$b = isCallable$c;\nvar $documentAll = documentAll_1;\n\nvar documentAll = $documentAll.all;\n\nvar isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable$b(it);\n};\n\nvar global$9 = global$a;\nvar isCallable$a = isCallable$c;\n\nvar aFunction = function (argument) {\n return isCallable$a(argument) ? argument : undefined;\n};\n\nvar getBuiltIn$5 = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];\n};\n\nvar uncurryThis$8 = functionUncurryThis;\n\nvar objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);\n\nvar getBuiltIn$4 = getBuiltIn$5;\n\nvar engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';\n\nvar global$8 = global$a;\nvar userAgent = engineUserAgent;\n\nvar process = global$8.process;\nvar Deno = global$8.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nvar engineV8Version = version;\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar V8_VERSION = engineV8Version;\nvar fails$5 = fails$9;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nvar symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar NATIVE_SYMBOL$1 = symbolConstructorDetection;\n\nvar useSymbolAsUid = NATIVE_SYMBOL$1\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n\nvar getBuiltIn$3 = getBuiltIn$5;\nvar isCallable$9 = isCallable$c;\nvar isPrototypeOf = objectIsPrototypeOf;\nvar USE_SYMBOL_AS_UID$1 = useSymbolAsUid;\n\nvar $Object$2 = Object;\n\nvar isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn$3('Symbol');\n return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));\n};\n\nvar $String$1 = String;\n\nvar tryToString$1 = function (argument) {\n try {\n return $String$1(argument);\n } catch (error) {\n return 'Object';\n }\n};\n\nvar isCallable$8 = isCallable$c;\nvar tryToString = tryToString$1;\n\nvar $TypeError$4 = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nvar aCallable$2 = function (argument) {\n if (isCallable$8(argument)) return argument;\n throw $TypeError$4(tryToString(argument) + ' is not a function');\n};\n\nvar aCallable$1 = aCallable$2;\nvar isNullOrUndefined = isNullOrUndefined$2;\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nvar getMethod$1 = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable$1(func);\n};\n\nvar call$2 = functionCall;\nvar isCallable$7 = isCallable$c;\nvar isObject$5 = isObject$6;\n\nvar $TypeError$3 = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nvar ordinaryToPrimitive$1 = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$2(fn, input))) return val;\n if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$2(fn, input))) return val;\n if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$2(fn, input))) return val;\n throw $TypeError$3(\"Can't convert object to primitive value\");\n};\n\nvar shared$3 = {exports: {}};\n\nvar global$7 = global$a;\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty$2 = Object.defineProperty;\n\nvar defineGlobalProperty$3 = function (key, value) {\n try {\n defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global$7[key] = value;\n } return value;\n};\n\nvar global$6 = global$a;\nvar defineGlobalProperty$2 = defineGlobalProperty$3;\n\nvar SHARED = '__core-js_shared__';\nvar store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});\n\nvar sharedStore = store$3;\n\nvar store$2 = sharedStore;\n\n(shared$3.exports = function (key, value) {\n return store$2[key] || (store$2[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.25.5',\n mode: 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n\nvar requireObjectCoercible = requireObjectCoercible$2;\n\nvar $Object$1 = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nvar toObject$2 = function (argument) {\n return $Object$1(requireObjectCoercible(argument));\n};\n\nvar uncurryThis$7 = functionUncurryThis;\nvar toObject$1 = toObject$2;\n\nvar hasOwnProperty = uncurryThis$7({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nvar hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject$1(it), key);\n};\n\nvar uncurryThis$6 = functionUncurryThis;\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis$6(1.0.toString);\n\nvar uid$2 = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n\nvar global$5 = global$a;\nvar shared$2 = shared$3.exports;\nvar hasOwn$6 = hasOwnProperty_1;\nvar uid$1 = uid$2;\nvar NATIVE_SYMBOL = symbolConstructorDetection;\nvar USE_SYMBOL_AS_UID = useSymbolAsUid;\n\nvar WellKnownSymbolsStore = shared$2('wks');\nvar Symbol$1 = global$5.Symbol;\nvar symbolFor = Symbol$1 && Symbol$1['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;\n\nvar wellKnownSymbol$5 = function (name) {\n if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {\n WellKnownSymbolsStore[name] = Symbol$1[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n\nvar call$1 = functionCall;\nvar isObject$4 = isObject$6;\nvar isSymbol$1 = isSymbol$2;\nvar getMethod = getMethod$1;\nvar ordinaryToPrimitive = ordinaryToPrimitive$1;\nvar wellKnownSymbol$4 = wellKnownSymbol$5;\n\nvar $TypeError$2 = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nvar toPrimitive$1 = function (input, pref) {\n if (!isObject$4(input) || isSymbol$1(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call$1(exoticToPrim, input, pref);\n if (!isObject$4(result) || isSymbol$1(result)) return result;\n throw $TypeError$2(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n\nvar toPrimitive = toPrimitive$1;\nvar isSymbol = isSymbol$2;\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nvar toPropertyKey$2 = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n\nvar global$4 = global$a;\nvar isObject$3 = isObject$6;\n\nvar document$1 = global$4.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);\n\nvar documentCreateElement$1 = function (it) {\n return EXISTS$1 ? document$1.createElement(it) : {};\n};\n\nvar DESCRIPTORS$7 = descriptors;\nvar fails$4 = fails$9;\nvar createElement = documentCreateElement$1;\n\n// Thanks to IE8 for its funny defineProperty\nvar ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n\nvar DESCRIPTORS$6 = descriptors;\nvar call = functionCall;\nvar propertyIsEnumerableModule = objectPropertyIsEnumerable;\nvar createPropertyDescriptor$1 = createPropertyDescriptor$2;\nvar toIndexedObject$3 = toIndexedObject$4;\nvar toPropertyKey$1 = toPropertyKey$2;\nvar hasOwn$5 = hasOwnProperty_1;\nvar IE8_DOM_DEFINE$1 = ie8DomDefine;\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nobjectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject$3(O);\n P = toPropertyKey$1(P);\n if (IE8_DOM_DEFINE$1) try {\n return $getOwnPropertyDescriptor$1(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n\nvar objectDefineProperty = {};\n\nvar DESCRIPTORS$5 = descriptors;\nvar fails$3 = fails$9;\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nvar v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n\nvar isObject$2 = isObject$6;\n\nvar $String = String;\nvar $TypeError$1 = TypeError;\n\n// `Assert: Type(argument) is Object`\nvar anObject$4 = function (argument) {\n if (isObject$2(argument)) return argument;\n throw $TypeError$1($String(argument) + ' is not an object');\n};\n\nvar DESCRIPTORS$4 = descriptors;\nvar IE8_DOM_DEFINE = ie8DomDefine;\nvar V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;\nvar anObject$3 = anObject$4;\nvar toPropertyKey = toPropertyKey$2;\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE$1 = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nobjectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {\n anObject$3(O);\n P = toPropertyKey(P);\n anObject$3(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject$3(O);\n P = toPropertyKey(P);\n anObject$3(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\nvar DESCRIPTORS$3 = descriptors;\nvar definePropertyModule$3 = objectDefineProperty;\nvar createPropertyDescriptor = createPropertyDescriptor$2;\n\nvar createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {\n return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\nvar makeBuiltIn$2 = {exports: {}};\n\nvar DESCRIPTORS$2 = descriptors;\nvar hasOwn$4 = hasOwnProperty_1;\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn$4(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));\n\nvar functionName = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n\nvar uncurryThis$5 = functionUncurryThis;\nvar isCallable$6 = isCallable$c;\nvar store$1 = sharedStore;\n\nvar functionToString = uncurryThis$5(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable$6(store$1.inspectSource)) {\n store$1.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nvar inspectSource$2 = store$1.inspectSource;\n\nvar global$3 = global$a;\nvar isCallable$5 = isCallable$c;\n\nvar WeakMap$1 = global$3.WeakMap;\n\nvar weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));\n\nvar shared$1 = shared$3.exports;\nvar uid = uid$2;\n\nvar keys = shared$1('keys');\n\nvar sharedKey$2 = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n\nvar hiddenKeys$4 = {};\n\nvar NATIVE_WEAK_MAP = weakMapBasicDetection;\nvar global$2 = global$a;\nvar isObject$1 = isObject$6;\nvar createNonEnumerableProperty$1 = createNonEnumerableProperty$2;\nvar hasOwn$3 = hasOwnProperty_1;\nvar shared = sharedStore;\nvar sharedKey$1 = sharedKey$2;\nvar hiddenKeys$3 = hiddenKeys$4;\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError$1 = global$2.TypeError;\nvar WeakMap = global$2.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject$1(it) || (state = get(it)).type !== TYPE) {\n throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey$1('state');\n hiddenKeys$3[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty$1(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn$3(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn$3(it, STATE);\n };\n}\n\nvar internalState = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\nvar fails$2 = fails$9;\nvar isCallable$4 = isCallable$c;\nvar hasOwn$2 = hasOwnProperty_1;\nvar DESCRIPTORS$1 = descriptors;\nvar CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;\nvar inspectSource$1 = inspectSource$2;\nvar InternalStateModule = internalState;\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty$1 = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {\n return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {\n defineProperty$1(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn$2(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn$2(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn$1(function toString() {\n return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);\n}, 'toString');\n\nvar isCallable$3 = isCallable$c;\nvar definePropertyModule$2 = objectDefineProperty;\nvar makeBuiltIn = makeBuiltIn$2.exports;\nvar defineGlobalProperty$1 = defineGlobalProperty$3;\n\nvar defineBuiltIn$1 = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable$3(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty$1(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule$2.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n\nvar objectGetOwnPropertyNames = {};\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nvar mathTrunc = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n\nvar trunc = mathTrunc;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nvar toIntegerOrInfinity$2 = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n\nvar toIntegerOrInfinity$1 = toIntegerOrInfinity$2;\n\nvar max = Math.max;\nvar min$1 = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nvar toAbsoluteIndex$1 = function (index, length) {\n var integer = toIntegerOrInfinity$1(index);\n return integer < 0 ? max(integer + length, 0) : min$1(integer, length);\n};\n\nvar toIntegerOrInfinity = toIntegerOrInfinity$2;\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nvar toLength$1 = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\nvar toLength = toLength$1;\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nvar lengthOfArrayLike$2 = function (obj) {\n return toLength(obj.length);\n};\n\nvar toIndexedObject$2 = toIndexedObject$4;\nvar toAbsoluteIndex = toAbsoluteIndex$1;\nvar lengthOfArrayLike$1 = lengthOfArrayLike$2;\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod$1 = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject$2($this);\n var length = lengthOfArrayLike$1(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nvar arrayIncludes = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod$1(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod$1(false)\n};\n\nvar uncurryThis$4 = functionUncurryThis;\nvar hasOwn$1 = hasOwnProperty_1;\nvar toIndexedObject$1 = toIndexedObject$4;\nvar indexOf = arrayIncludes.indexOf;\nvar hiddenKeys$2 = hiddenKeys$4;\n\nvar push$1 = uncurryThis$4([].push);\n\nvar objectKeysInternal = function (object, names) {\n var O = toIndexedObject$1(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn$1(O, key = names[i++])) {\n ~indexOf(result, key) || push$1(result, key);\n }\n return result;\n};\n\n// IE8- don't enum bug keys\nvar enumBugKeys$3 = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n\nvar internalObjectKeys$1 = objectKeysInternal;\nvar enumBugKeys$2 = enumBugKeys$3;\n\nvar hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nobjectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys$1(O, hiddenKeys$1);\n};\n\nvar objectGetOwnPropertySymbols = {};\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nobjectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;\n\nvar getBuiltIn$2 = getBuiltIn$5;\nvar uncurryThis$3 = functionUncurryThis;\nvar getOwnPropertyNamesModule = objectGetOwnPropertyNames;\nvar getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;\nvar anObject$2 = anObject$4;\n\nvar concat = uncurryThis$3([].concat);\n\n// all object keys, includes non-enumerable and symbols\nvar ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject$2(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n\nvar hasOwn = hasOwnProperty_1;\nvar ownKeys = ownKeys$1;\nvar getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;\nvar definePropertyModule$1 = objectDefineProperty;\n\nvar copyConstructorProperties$1 = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule$1.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nvar fails$1 = fails$9;\nvar isCallable$2 = isCallable$c;\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced$1 = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable$2(detection) ? fails$1(detection)\n : !!detection;\n};\n\nvar normalize = isForced$1.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced$1.data = {};\nvar NATIVE = isForced$1.NATIVE = 'N';\nvar POLYFILL = isForced$1.POLYFILL = 'P';\n\nvar isForced_1 = isForced$1;\n\nvar global$1 = global$a;\nvar getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;\nvar createNonEnumerableProperty = createNonEnumerableProperty$2;\nvar defineBuiltIn = defineBuiltIn$1;\nvar defineGlobalProperty = defineGlobalProperty$3;\nvar copyConstructorProperties = copyConstructorProperties$1;\nvar isForced = isForced_1;\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nvar _export = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global$1;\n } else if (STATIC) {\n target = global$1[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global$1[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n\nvar uncurryThis$2 = functionUncurryThis;\nvar aCallable = aCallable$2;\nvar NATIVE_BIND = functionBindNative;\n\nvar bind$1 = uncurryThis$2(uncurryThis$2.bind);\n\n// optional / simple context binding\nvar functionBindContext = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\nvar classof$2 = classofRaw$2;\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray$1 = Array.isArray || function isArray(argument) {\n return classof$2(argument) == 'Array';\n};\n\nvar wellKnownSymbol$3 = wellKnownSymbol$5;\n\nvar TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG$1] = 'z';\n\nvar toStringTagSupport = String(test) === '[object z]';\n\nvar TO_STRING_TAG_SUPPORT = toStringTagSupport;\nvar isCallable$1 = isCallable$c;\nvar classofRaw = classofRaw$2;\nvar wellKnownSymbol$2 = wellKnownSymbol$5;\n\nvar TO_STRING_TAG = wellKnownSymbol$2('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nvar classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;\n};\n\nvar uncurryThis$1 = functionUncurryThis;\nvar fails = fails$9;\nvar isCallable = isCallable$c;\nvar classof = classof$1;\nvar getBuiltIn$1 = getBuiltIn$5;\nvar inspectSource = inspectSource$2;\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn$1('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis$1(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nvar isConstructor$1 = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n\nvar isArray = isArray$1;\nvar isConstructor = isConstructor$1;\nvar isObject = isObject$6;\nvar wellKnownSymbol$1 = wellKnownSymbol$5;\n\nvar SPECIES = wellKnownSymbol$1('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesConstructor$1 = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n\nvar arraySpeciesConstructor = arraySpeciesConstructor$1;\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesCreate$1 = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n\nvar bind = functionBindContext;\nvar uncurryThis = functionUncurryThis;\nvar IndexedObject = indexedObject;\nvar toObject = toObject$2;\nvar lengthOfArrayLike = lengthOfArrayLike$2;\nvar arraySpeciesCreate = arraySpeciesCreate$1;\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nvar arrayIteration = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n\nvar objectDefineProperties = {};\n\nvar internalObjectKeys = objectKeysInternal;\nvar enumBugKeys$1 = enumBugKeys$3;\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nvar objectKeys$1 = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys$1);\n};\n\nvar DESCRIPTORS = descriptors;\nvar V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;\nvar definePropertyModule = objectDefineProperty;\nvar anObject$1 = anObject$4;\nvar toIndexedObject = toIndexedObject$4;\nvar objectKeys = objectKeys$1;\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nobjectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject$1(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n\nvar getBuiltIn = getBuiltIn$5;\n\nvar html$1 = getBuiltIn('document', 'documentElement');\n\n/* global ActiveXObject -- old IE, WSH */\n\nvar anObject = anObject$4;\nvar definePropertiesModule = objectDefineProperties;\nvar enumBugKeys = enumBugKeys$3;\nvar hiddenKeys = hiddenKeys$4;\nvar html = html$1;\nvar documentCreateElement = documentCreateElement$1;\nvar sharedKey = sharedKey$2;\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nvar objectCreate = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n\nvar wellKnownSymbol = wellKnownSymbol$5;\nvar create = objectCreate;\nvar defineProperty = objectDefineProperty.f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nvar addToUnscopables$1 = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n\nvar $ = _export;\nvar $find = arrayIteration.find;\nvar addToUnscopables = addToUnscopables$1;\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n\nvar CONSTANT = {\n GLOBAL: {\n HIDE: '__react_tooltip_hide_event',\n REBUILD: '__react_tooltip_rebuild_event',\n SHOW: '__react_tooltip_show_event'\n }\n};\n\n/**\n * Static methods for react-tooltip\n */\nvar dispatchGlobalEvent = function dispatchGlobalEvent(eventName, opts) {\n // Compatible with IE\n // @see http://stackoverflow.com/questions/26596123/internet-explorer-9-10-11-event-constructor-doesnt-work\n // @see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent\n var event;\n if (typeof window.CustomEvent === 'function') {\n event = new window.CustomEvent(eventName, {\n detail: opts\n });\n } else {\n event = document.createEvent('Event');\n event.initEvent(eventName, false, true, opts);\n }\n window.dispatchEvent(event);\n};\nfunction staticMethods (target) {\n /**\n * Hide all tooltip\n * @trigger ReactTooltip.hide()\n */\n target.hide = function (target) {\n dispatchGlobalEvent(CONSTANT.GLOBAL.HIDE, {\n target: target\n });\n };\n\n /**\n * Rebuild all tooltip\n * @trigger ReactTooltip.rebuild()\n */\n target.rebuild = function () {\n dispatchGlobalEvent(CONSTANT.GLOBAL.REBUILD);\n };\n\n /**\n * Show specific tooltip\n * @trigger ReactTooltip.show()\n */\n target.show = function (target) {\n dispatchGlobalEvent(CONSTANT.GLOBAL.SHOW, {\n target: target\n });\n };\n target.prototype.globalRebuild = function () {\n if (this.mount) {\n this.unbindListener();\n this.bindListener();\n }\n };\n target.prototype.globalShow = function (event) {\n if (this.mount) {\n var hasTarget = event && event.detail && event.detail.target && true || false;\n // Create a fake event, specific show will limit the type to `solid`\n // only `float` type cares e.clientX e.clientY\n this.showTooltip({\n currentTarget: hasTarget && event.detail.target\n }, true);\n }\n };\n target.prototype.globalHide = function (event) {\n if (this.mount) {\n var hasTarget = event && event.detail && event.detail.target && true || false;\n this.hideTooltip({\n currentTarget: hasTarget && event.detail.target\n }, hasTarget);\n }\n };\n}\n\n/**\n * Events that should be bound to the window\n */\nfunction windowListener (target) {\n target.prototype.bindWindowEvents = function (resizeHide) {\n // ReactTooltip.hide\n window.removeEventListener(CONSTANT.GLOBAL.HIDE, this.globalHide);\n window.addEventListener(CONSTANT.GLOBAL.HIDE, this.globalHide, false);\n\n // ReactTooltip.rebuild\n window.removeEventListener(CONSTANT.GLOBAL.REBUILD, this.globalRebuild);\n window.addEventListener(CONSTANT.GLOBAL.REBUILD, this.globalRebuild, false);\n\n // ReactTooltip.show\n window.removeEventListener(CONSTANT.GLOBAL.SHOW, this.globalShow);\n window.addEventListener(CONSTANT.GLOBAL.SHOW, this.globalShow, false);\n\n // Resize\n if (resizeHide) {\n window.removeEventListener('resize', this.onWindowResize);\n window.addEventListener('resize', this.onWindowResize, false);\n }\n };\n target.prototype.unbindWindowEvents = function () {\n window.removeEventListener(CONSTANT.GLOBAL.HIDE, this.globalHide);\n window.removeEventListener(CONSTANT.GLOBAL.REBUILD, this.globalRebuild);\n window.removeEventListener(CONSTANT.GLOBAL.SHOW, this.globalShow);\n window.removeEventListener('resize', this.onWindowResize);\n };\n\n /**\n * invoked by resize event of window\n */\n target.prototype.onWindowResize = function () {\n if (!this.mount) return;\n this.hideTooltip();\n };\n}\n\n/**\n * Custom events to control showing and hiding of tooltip\n *\n * @attributes\n * - `event` {String}\n * - `eventOff` {String}\n */\n\nvar checkStatus = function checkStatus(dataEventOff, e) {\n var show = this.state.show;\n var id = this.props.id;\n var isCapture = this.isCapture(e.currentTarget);\n var currentItem = e.currentTarget.getAttribute('currentItem');\n if (!isCapture) e.stopPropagation();\n if (show && currentItem === 'true') {\n if (!dataEventOff) this.hideTooltip(e);\n } else {\n e.currentTarget.setAttribute('currentItem', 'true');\n setUntargetItems(e.currentTarget, this.getTargetArray(id));\n this.showTooltip(e);\n }\n};\nvar setUntargetItems = function setUntargetItems(currentTarget, targetArray) {\n for (var i = 0; i < targetArray.length; i++) {\n if (currentTarget !== targetArray[i]) {\n targetArray[i].setAttribute('currentItem', 'false');\n } else {\n targetArray[i].setAttribute('currentItem', 'true');\n }\n }\n};\nvar customListeners = {\n id: '9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf',\n set: function set(target, event, listener) {\n if (this.id in target) {\n var map = target[this.id];\n map[event] = listener;\n } else {\n // this is workaround for WeakMap, which is not supported in older browsers, such as IE\n Object.defineProperty(target, this.id, {\n configurable: true,\n value: _defineProperty({}, event, listener)\n });\n }\n },\n get: function get(target, event) {\n var map = target[this.id];\n if (map !== undefined) {\n return map[event];\n }\n }\n};\nfunction customEvent (target) {\n target.prototype.isCustomEvent = function (ele) {\n var event = this.state.event;\n return event || !!ele.getAttribute('data-event');\n };\n\n /* Bind listener for custom event */\n target.prototype.customBindListener = function (ele) {\n var _this = this;\n var _this$state = this.state,\n event = _this$state.event,\n eventOff = _this$state.eventOff;\n var dataEvent = ele.getAttribute('data-event') || event;\n var dataEventOff = ele.getAttribute('data-event-off') || eventOff;\n dataEvent.split(' ').forEach(function (event) {\n ele.removeEventListener(event, customListeners.get(ele, event));\n var customListener = checkStatus.bind(_this, dataEventOff);\n customListeners.set(ele, event, customListener);\n ele.addEventListener(event, customListener, false);\n });\n if (dataEventOff) {\n dataEventOff.split(' ').forEach(function (event) {\n ele.removeEventListener(event, _this.hideTooltip);\n ele.addEventListener(event, _this.hideTooltip, false);\n });\n }\n };\n\n /* Unbind listener for custom event */\n target.prototype.customUnbindListener = function (ele) {\n var _this$state2 = this.state,\n event = _this$state2.event,\n eventOff = _this$state2.eventOff;\n var dataEvent = event || ele.getAttribute('data-event');\n var dataEventOff = eventOff || ele.getAttribute('data-event-off');\n ele.removeEventListener(dataEvent, customListeners.get(ele, event));\n if (dataEventOff) ele.removeEventListener(dataEventOff, this.hideTooltip);\n };\n}\n\n/**\n * Util method to judge if it should follow capture model\n */\n\nfunction isCapture (target) {\n target.prototype.isCapture = function (currentTarget) {\n return currentTarget && currentTarget.getAttribute('data-iscapture') === 'true' || this.props.isCapture || false;\n };\n}\n\n/**\n * Util method to get effect\n */\n\nfunction getEffect (target) {\n target.prototype.getEffect = function (currentTarget) {\n var dataEffect = currentTarget.getAttribute('data-effect');\n return dataEffect || this.props.effect || 'float';\n };\n}\n\n/**\n * Util method to get effect\n */\nvar makeProxy = function makeProxy(e) {\n var proxy = {};\n for (var key in e) {\n if (typeof e[key] === 'function') {\n proxy[key] = e[key].bind(e);\n } else {\n proxy[key] = e[key];\n }\n }\n return proxy;\n};\nvar bodyListener = function bodyListener(callback, options, e) {\n var _options$respectEffec = options.respectEffect,\n respectEffect = _options$respectEffec === void 0 ? false : _options$respectEffec,\n _options$customEvent = options.customEvent,\n customEvent = _options$customEvent === void 0 ? false : _options$customEvent;\n var id = this.props.id;\n var tip = null;\n var forId;\n var target = e.target;\n var lastTarget;\n // walk up parent chain until tip is found\n // there is no match if parent visible area is matched by mouse position, so some corner cases might not work as expected\n while (tip === null && target !== null) {\n lastTarget = target;\n tip = target.getAttribute('data-tip') || null;\n forId = target.getAttribute('data-for') || null;\n target = target.parentElement;\n }\n target = lastTarget || e.target;\n if (this.isCustomEvent(target) && !customEvent) {\n return;\n }\n var isTargetBelongsToTooltip = id == null && forId == null || forId === id;\n if (tip != null && (!respectEffect || this.getEffect(target) === 'float') && isTargetBelongsToTooltip) {\n var proxy = makeProxy(e);\n proxy.currentTarget = target;\n callback(proxy);\n }\n};\nvar findCustomEvents = function findCustomEvents(targetArray, dataAttribute) {\n var events = {};\n targetArray.forEach(function (target) {\n var event = target.getAttribute(dataAttribute);\n if (event) event.split(' ').forEach(function (event) {\n return events[event] = true;\n });\n });\n return events;\n};\nvar getBody = function getBody() {\n return document.getElementsByTagName('body')[0];\n};\nfunction bodyMode (target) {\n target.prototype.isBodyMode = function () {\n return !!this.props.bodyMode;\n };\n target.prototype.bindBodyListener = function (targetArray) {\n var _this = this;\n var _this$state = this.state,\n event = _this$state.event,\n eventOff = _this$state.eventOff,\n possibleCustomEvents = _this$state.possibleCustomEvents,\n possibleCustomEventsOff = _this$state.possibleCustomEventsOff;\n var body = getBody();\n var customEvents = findCustomEvents(targetArray, 'data-event');\n var customEventsOff = findCustomEvents(targetArray, 'data-event-off');\n if (event != null) customEvents[event] = true;\n if (eventOff != null) customEventsOff[eventOff] = true;\n possibleCustomEvents.split(' ').forEach(function (event) {\n return customEvents[event] = true;\n });\n possibleCustomEventsOff.split(' ').forEach(function (event) {\n return customEventsOff[event] = true;\n });\n this.unbindBodyListener(body);\n var listeners = this.bodyModeListeners = {};\n if (event == null) {\n listeners.mouseover = bodyListener.bind(this, this.showTooltip, {});\n listeners.mousemove = bodyListener.bind(this, this.updateTooltip, {\n respectEffect: true\n });\n listeners.mouseout = bodyListener.bind(this, this.hideTooltip, {});\n }\n for (var _event in customEvents) {\n listeners[_event] = bodyListener.bind(this, function (e) {\n var targetEventOff = e.currentTarget.getAttribute('data-event-off') || eventOff;\n checkStatus.call(_this, targetEventOff, e);\n }, {\n customEvent: true\n });\n }\n for (var _event2 in customEventsOff) {\n listeners[_event2] = bodyListener.bind(this, this.hideTooltip, {\n customEvent: true\n });\n }\n for (var _event3 in listeners) {\n body.addEventListener(_event3, listeners[_event3]);\n }\n };\n target.prototype.unbindBodyListener = function (body) {\n body = body || getBody();\n var listeners = this.bodyModeListeners;\n for (var event in listeners) {\n body.removeEventListener(event, listeners[event]);\n }\n };\n}\n\n/**\n * Tracking target removing from DOM.\n * It's necessary to hide tooltip when it's target disappears.\n * Otherwise, the tooltip would be shown forever until another target\n * is triggered.\n *\n * If MutationObserver is not available, this feature just doesn't work.\n */\n\n// https://hacks.mozilla.org/2012/05/dom-mutationobserver-reacting-to-dom-changes-without-killing-browser-performance/\nvar getMutationObserverClass = function getMutationObserverClass() {\n return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;\n};\nfunction trackRemoval (target) {\n target.prototype.bindRemovalTracker = function () {\n var _this = this;\n var MutationObserver = getMutationObserverClass();\n if (MutationObserver == null) return;\n var observer = new MutationObserver(function (mutations) {\n for (var m1 = 0; m1 < mutations.length; m1++) {\n var mutation = mutations[m1];\n for (var m2 = 0; m2 < mutation.removedNodes.length; m2++) {\n var element = mutation.removedNodes[m2];\n if (element === _this.state.currentTarget) {\n _this.hideTooltip();\n return;\n }\n }\n }\n });\n observer.observe(window.document, {\n childList: true,\n subtree: true\n });\n this.removalTracker = observer;\n };\n target.prototype.unbindRemovalTracker = function () {\n if (this.removalTracker) {\n this.removalTracker.disconnect();\n this.removalTracker = null;\n }\n };\n}\n\n/**\n * Calculate the position of tooltip\n *\n * @params\n * - `e` {Event} the event of current mouse\n * - `target` {Element} the currentTarget of the event\n * - `node` {DOM} the react-tooltip object\n * - `place` {String} top / right / bottom / left\n * - `effect` {String} float / solid\n * - `offset` {Object} the offset to default position\n *\n * @return {Object}\n * - `isNewState` {Bool} required\n * - `newState` {Object}\n * - `position` {Object} {left: {Number}, top: {Number}}\n */\nfunction getPosition (e, target, node, place, desiredPlace, effect, offset) {\n var _getDimensions = getDimensions(node),\n tipWidth = _getDimensions.width,\n tipHeight = _getDimensions.height;\n var _getDimensions2 = getDimensions(target),\n targetWidth = _getDimensions2.width,\n targetHeight = _getDimensions2.height;\n var _getCurrentOffset = getCurrentOffset(e, target, effect),\n mouseX = _getCurrentOffset.mouseX,\n mouseY = _getCurrentOffset.mouseY;\n var defaultOffset = getDefaultPosition(effect, targetWidth, targetHeight, tipWidth, tipHeight);\n var _calculateOffset = calculateOffset(offset),\n extraOffsetX = _calculateOffset.extraOffsetX,\n extraOffsetY = _calculateOffset.extraOffsetY;\n var windowWidth = window.innerWidth;\n var windowHeight = window.innerHeight;\n var _getParent = getParent(node),\n parentTop = _getParent.parentTop,\n parentLeft = _getParent.parentLeft;\n\n // Get the edge offset of the tooltip\n var getTipOffsetLeft = function getTipOffsetLeft(place) {\n var offsetX = defaultOffset[place].l;\n return mouseX + offsetX + extraOffsetX;\n };\n var getTipOffsetRight = function getTipOffsetRight(place) {\n var offsetX = defaultOffset[place].r;\n return mouseX + offsetX + extraOffsetX;\n };\n var getTipOffsetTop = function getTipOffsetTop(place) {\n var offsetY = defaultOffset[place].t;\n return mouseY + offsetY + extraOffsetY;\n };\n var getTipOffsetBottom = function getTipOffsetBottom(place) {\n var offsetY = defaultOffset[place].b;\n return mouseY + offsetY + extraOffsetY;\n };\n\n //\n // Functions to test whether the tooltip's sides are inside\n // the client window for a given orientation p\n //\n // _____________\n // | | <-- Right side\n // | p = 'left' |\\\n // | |/ |\\\n // |_____________| |_\\ <-- Mouse\n // / \\ |\n // |\n // |\n // Bottom side\n //\n var outsideLeft = function outsideLeft(p) {\n return getTipOffsetLeft(p) < 0;\n };\n var outsideRight = function outsideRight(p) {\n return getTipOffsetRight(p) > windowWidth;\n };\n var outsideTop = function outsideTop(p) {\n return getTipOffsetTop(p) < 0;\n };\n var outsideBottom = function outsideBottom(p) {\n return getTipOffsetBottom(p) > windowHeight;\n };\n\n // Check whether the tooltip with orientation p is completely inside the client window\n var outside = function outside(p) {\n return outsideLeft(p) || outsideRight(p) || outsideTop(p) || outsideBottom(p);\n };\n var inside = function inside(p) {\n return !outside(p);\n };\n var placeIsInside = {\n top: inside('top'),\n bottom: inside('bottom'),\n left: inside('left'),\n right: inside('right')\n };\n function choose() {\n var allPlaces = desiredPlace.split(',').concat(place, ['top', 'bottom', 'left', 'right']);\n var _iterator = _createForOfIteratorHelper(allPlaces),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var d = _step.value;\n if (placeIsInside[d]) return d;\n }\n // if nothing is inside, just use the old place.\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return place;\n }\n var chosen = choose();\n var isNewState = false;\n var newPlace;\n if (chosen && chosen !== place) {\n isNewState = true;\n newPlace = chosen;\n }\n if (isNewState) {\n return {\n isNewState: true,\n newState: {\n place: newPlace\n }\n };\n }\n return {\n isNewState: false,\n position: {\n left: parseInt(getTipOffsetLeft(place) - parentLeft, 10),\n top: parseInt(getTipOffsetTop(place) - parentTop, 10)\n }\n };\n}\nvar getDimensions = function getDimensions(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n height = _node$getBoundingClie.height,\n width = _node$getBoundingClie.width;\n return {\n height: parseInt(height, 10),\n width: parseInt(width, 10)\n };\n};\n\n// Get current mouse offset\nvar getCurrentOffset = function getCurrentOffset(e, currentTarget, effect) {\n var boundingClientRect = currentTarget.getBoundingClientRect();\n var targetTop = boundingClientRect.top;\n var targetLeft = boundingClientRect.left;\n var _getDimensions3 = getDimensions(currentTarget),\n targetWidth = _getDimensions3.width,\n targetHeight = _getDimensions3.height;\n if (effect === 'float') {\n return {\n mouseX: e.clientX,\n mouseY: e.clientY\n };\n }\n return {\n mouseX: targetLeft + targetWidth / 2,\n mouseY: targetTop + targetHeight / 2\n };\n};\n\n// List all possibility of tooltip final offset\n// This is useful in judging if it is necessary for tooltip to switch position when out of window\nvar getDefaultPosition = function getDefaultPosition(effect, targetWidth, targetHeight, tipWidth, tipHeight) {\n var top;\n var right;\n var bottom;\n var left;\n var disToMouse = 3;\n var triangleHeight = 2;\n var cursorHeight = 12; // Optimize for float bottom only, cause the cursor will hide the tooltip\n\n if (effect === 'float') {\n top = {\n l: -(tipWidth / 2),\n r: tipWidth / 2,\n t: -(tipHeight + disToMouse + triangleHeight),\n b: -disToMouse\n };\n bottom = {\n l: -(tipWidth / 2),\n r: tipWidth / 2,\n t: disToMouse + cursorHeight,\n b: tipHeight + disToMouse + triangleHeight + cursorHeight\n };\n left = {\n l: -(tipWidth + disToMouse + triangleHeight),\n r: -disToMouse,\n t: -(tipHeight / 2),\n b: tipHeight / 2\n };\n right = {\n l: disToMouse,\n r: tipWidth + disToMouse + triangleHeight,\n t: -(tipHeight / 2),\n b: tipHeight / 2\n };\n } else if (effect === 'solid') {\n top = {\n l: -(tipWidth / 2),\n r: tipWidth / 2,\n t: -(targetHeight / 2 + tipHeight + triangleHeight),\n b: -(targetHeight / 2)\n };\n bottom = {\n l: -(tipWidth / 2),\n r: tipWidth / 2,\n t: targetHeight / 2,\n b: targetHeight / 2 + tipHeight + triangleHeight\n };\n left = {\n l: -(tipWidth + targetWidth / 2 + triangleHeight),\n r: -(targetWidth / 2),\n t: -(tipHeight / 2),\n b: tipHeight / 2\n };\n right = {\n l: targetWidth / 2,\n r: tipWidth + targetWidth / 2 + triangleHeight,\n t: -(tipHeight / 2),\n b: tipHeight / 2\n };\n }\n return {\n top: top,\n bottom: bottom,\n left: left,\n right: right\n };\n};\n\n// Consider additional offset into position calculation\nvar calculateOffset = function calculateOffset(offset) {\n var extraOffsetX = 0;\n var extraOffsetY = 0;\n if (Object.prototype.toString.apply(offset) === '[object String]') {\n offset = JSON.parse(offset.toString().replace(/'/g, '\"'));\n }\n for (var key in offset) {\n if (key === 'top') {\n extraOffsetY -= parseInt(offset[key], 10);\n } else if (key === 'bottom') {\n extraOffsetY += parseInt(offset[key], 10);\n } else if (key === 'left') {\n extraOffsetX -= parseInt(offset[key], 10);\n } else if (key === 'right') {\n extraOffsetX += parseInt(offset[key], 10);\n }\n }\n return {\n extraOffsetX: extraOffsetX,\n extraOffsetY: extraOffsetY\n };\n};\n\n// Get the offset of the parent elements\nvar getParent = function getParent(currentTarget) {\n var currentParent = currentTarget;\n while (currentParent) {\n var computedStyle = window.getComputedStyle(currentParent);\n // transform and will-change: transform change the containing block\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_Block\n if (computedStyle.getPropertyValue('transform') !== 'none' || computedStyle.getPropertyValue('will-change') === 'transform') break;\n currentParent = currentParent.parentElement;\n }\n var parentTop = currentParent && currentParent.getBoundingClientRect().top || 0;\n var parentLeft = currentParent && currentParent.getBoundingClientRect().left || 0;\n return {\n parentTop: parentTop,\n parentLeft: parentLeft\n };\n};\n\n/**\n * To get the tooltip content\n * it may comes from data-tip or this.props.children\n * it should support multiline\n *\n * @params\n * - `tip` {String} value of data-tip\n * - `children` {ReactElement} this.props.children\n * - `multiline` {Any} could be Bool(true/false) or String('true'/'false')\n *\n * @return\n * - String or react component\n */\nfunction TipContent(tip, children, getContent, multiline) {\n if (children) return children;\n if (getContent !== undefined && getContent !== null) return getContent; // getContent can be 0, '', etc.\n if (getContent === null) return null; // Tip not exist and children is null or undefined\n\n var regexp = //;\n if (!multiline || multiline === 'false' || !regexp.test(tip)) {\n // No trim(), so that user can keep their input\n return tip;\n }\n\n // Multiline tooltip content\n return tip.split(regexp).map(function (d, i) {\n return /*#__PURE__*/React.createElement(\"span\", {\n key: i,\n className: \"multi-line\"\n }, d);\n });\n}\n\n/**\n * Support aria- and role in ReactTooltip\n *\n * @params props {Object}\n * @return {Object}\n */\nfunction parseAria(props) {\n var ariaObj = {};\n Object.keys(props).filter(function (prop) {\n // aria-xxx and role is acceptable\n return /(^aria-\\w+$|^role$)/.test(prop);\n }).forEach(function (prop) {\n ariaObj[prop] = props[prop];\n });\n return ariaObj;\n}\n\n/**\n * Convert nodelist to array\n * @see https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/core/createArrayFromMixed.js#L24\n * NodeLists are functions in Safari\n */\n\nfunction nodeListToArray (nodeList) {\n var length = nodeList.length;\n if (nodeList.hasOwnProperty) {\n return Array.prototype.slice.call(nodeList);\n }\n return new Array(length).fill().map(function (index) {\n return nodeList[index];\n });\n}\n\nfunction generateUUID() {\n return 't' + v4();\n}\n\nvar baseCss = \".__react_component_tooltip {\\n border-radius: 3px;\\n display: inline-block;\\n font-size: 13px;\\n left: -999em;\\n opacity: 0;\\n position: fixed;\\n pointer-events: none;\\n transition: opacity 0.3s ease-out;\\n top: -999em;\\n visibility: hidden;\\n z-index: 999;\\n}\\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\\n pointer-events: auto;\\n}\\n.__react_component_tooltip::before, .__react_component_tooltip::after {\\n content: \\\"\\\";\\n width: 0;\\n height: 0;\\n position: absolute;\\n}\\n.__react_component_tooltip.show {\\n opacity: 0.9;\\n margin-top: 0;\\n margin-left: 0;\\n visibility: visible;\\n}\\n.__react_component_tooltip.place-top::before {\\n bottom: 0;\\n left: 50%;\\n margin-left: -11px;\\n}\\n.__react_component_tooltip.place-bottom::before {\\n top: 0;\\n left: 50%;\\n margin-left: -11px;\\n}\\n.__react_component_tooltip.place-left::before {\\n right: 0;\\n top: 50%;\\n margin-top: -9px;\\n}\\n.__react_component_tooltip.place-right::before {\\n left: 0;\\n top: 50%;\\n margin-top: -9px;\\n}\\n.__react_component_tooltip .multi-line {\\n display: block;\\n padding: 2px 0;\\n text-align: center;\\n}\";\n\n/**\n * Default pop-up style values (text color, background color).\n */\nvar defaultColors = {\n dark: {\n text: '#fff',\n background: '#222',\n border: 'transparent',\n arrow: '#222'\n },\n success: {\n text: '#fff',\n background: '#8DC572',\n border: 'transparent',\n arrow: '#8DC572'\n },\n warning: {\n text: '#fff',\n background: '#F0AD4E',\n border: 'transparent',\n arrow: '#F0AD4E'\n },\n error: {\n text: '#fff',\n background: '#BE6464',\n border: 'transparent',\n arrow: '#BE6464'\n },\n info: {\n text: '#fff',\n background: '#337AB7',\n border: 'transparent',\n arrow: '#337AB7'\n },\n light: {\n text: '#222',\n background: '#fff',\n border: 'transparent',\n arrow: '#fff'\n }\n};\nfunction getDefaultPopupColors(type) {\n return defaultColors[type] ? _objectSpread2({}, defaultColors[type]) : undefined;\n}\nvar DEFAULT_PADDING = '8px 21px';\nvar DEFAULT_RADIUS = {\n tooltip: 3,\n arrow: 0\n};\n\n/**\n * Generates the specific tooltip style for use on render.\n */\nfunction generateTooltipStyle(uuid, customColors, type, hasBorder, padding, radius) {\n return generateStyle(uuid, getPopupColors(customColors, type, hasBorder), padding, radius);\n}\n\n/**\n * Generates the tooltip style rules based on the element-specified \"data-type\" property.\n */\nfunction generateStyle(uuid, colors) {\n var padding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_PADDING;\n var radius = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_RADIUS;\n var textColor = colors.text;\n var backgroundColor = colors.background;\n var borderColor = colors.border;\n var arrowColor = colors.arrow;\n var arrowRadius = radius.arrow;\n var tooltipRadius = radius.tooltip;\n return \"\\n \\t.\".concat(uuid, \" {\\n\\t color: \").concat(textColor, \";\\n\\t background: \").concat(backgroundColor, \";\\n\\t border: 1px solid \").concat(borderColor, \";\\n\\t border-radius: \").concat(tooltipRadius, \"px;\\n\\t padding: \").concat(padding, \";\\n \\t}\\n\\n \\t.\").concat(uuid, \".place-top {\\n margin-top: -10px;\\n }\\n .\").concat(uuid, \".place-top::before {\\n content: \\\"\\\";\\n background-color: inherit;\\n position: absolute;\\n z-index: 2;\\n width: 20px;\\n height: 12px;\\n }\\n .\").concat(uuid, \".place-top::after {\\n content: \\\"\\\";\\n position: absolute;\\n width: 10px;\\n height: 10px;\\n border-top-right-radius: \").concat(arrowRadius, \"px;\\n border: 1px solid \").concat(borderColor, \";\\n background-color: \").concat(arrowColor, \";\\n z-index: -2;\\n bottom: -6px;\\n left: 50%;\\n margin-left: -6px;\\n transform: rotate(135deg);\\n }\\n\\n .\").concat(uuid, \".place-bottom {\\n margin-top: 10px;\\n }\\n .\").concat(uuid, \".place-bottom::before {\\n content: \\\"\\\";\\n background-color: inherit;\\n position: absolute;\\n z-index: -1;\\n width: 18px;\\n height: 10px;\\n }\\n .\").concat(uuid, \".place-bottom::after {\\n content: \\\"\\\";\\n position: absolute;\\n width: 10px;\\n height: 10px;\\n border-top-right-radius: \").concat(arrowRadius, \"px;\\n border: 1px solid \").concat(borderColor, \";\\n background-color: \").concat(arrowColor, \";\\n z-index: -2;\\n top: -6px;\\n left: 50%;\\n margin-left: -6px;\\n transform: rotate(45deg);\\n }\\n\\n .\").concat(uuid, \".place-left {\\n margin-left: -10px;\\n }\\n .\").concat(uuid, \".place-left::before {\\n content: \\\"\\\";\\n background-color: inherit;\\n position: absolute;\\n z-index: -1;\\n width: 10px;\\n height: 18px;\\n }\\n .\").concat(uuid, \".place-left::after {\\n content: \\\"\\\";\\n position: absolute;\\n width: 10px;\\n height: 10px;\\n border-top-right-radius: \").concat(arrowRadius, \"px;\\n border: 1px solid \").concat(borderColor, \";\\n background-color: \").concat(arrowColor, \";\\n z-index: -2;\\n right: -6px;\\n top: 50%;\\n margin-top: -6px;\\n transform: rotate(45deg);\\n }\\n\\n .\").concat(uuid, \".place-right {\\n margin-left: 10px;\\n }\\n .\").concat(uuid, \".place-right::before {\\n content: \\\"\\\";\\n background-color: inherit;\\n position: absolute;\\n z-index: -1;\\n width: 10px;\\n height: 18px;\\n }\\n .\").concat(uuid, \".place-right::after {\\n content: \\\"\\\";\\n position: absolute;\\n width: 10px;\\n height: 10px;\\n border-top-right-radius: \").concat(arrowRadius, \"px;\\n border: 1px solid \").concat(borderColor, \";\\n background-color: \").concat(arrowColor, \";\\n z-index: -2;\\n left: -6px;\\n top: 50%;\\n margin-top: -6px;\\n transform: rotate(-135deg);\\n }\\n \");\n}\nfunction getPopupColors(customColors, type, hasBorder) {\n var textColor = customColors.text;\n var backgroundColor = customColors.background;\n var borderColor = customColors.border;\n var arrowColor = customColors.arrow ? customColors.arrow : customColors.background;\n var colors = getDefaultPopupColors(type);\n if (textColor) {\n colors.text = textColor;\n }\n if (backgroundColor) {\n colors.background = backgroundColor;\n }\n if (hasBorder) {\n if (borderColor) {\n colors.border = borderColor;\n } else {\n colors.border = type === 'light' ? 'black' : 'white';\n }\n }\n if (arrowColor) {\n colors.arrow = arrowColor;\n }\n return colors;\n}\n\nvar _class, _class2;\n\n/* Polyfill */\nvar ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_class = isCapture(_class = getEffect(_class = bodyMode(_class = trackRemoval(_class = (_class2 = /*#__PURE__*/function (_React$Component) {\n _inherits(ReactTooltip, _React$Component);\n var _super = _createSuper(ReactTooltip);\n function ReactTooltip(props) {\n var _this;\n _classCallCheck(this, ReactTooltip);\n _this = _super.call(this, props);\n _this.state = {\n uuid: props.uuid || generateUUID(),\n place: props.place || 'top',\n // Direction of tooltip\n desiredPlace: props.place || 'top',\n type: props.type || 'dark',\n // Color theme of tooltip\n effect: props.effect || 'float',\n // float or fixed\n show: false,\n border: false,\n borderClass: 'border',\n customColors: {},\n customRadius: {},\n offset: {},\n padding: props.padding,\n extraClass: '',\n html: false,\n delayHide: 0,\n delayShow: 0,\n event: props.event || null,\n eventOff: props.eventOff || null,\n currentEvent: null,\n // Current mouse event\n currentTarget: null,\n // Current target of mouse event\n ariaProps: parseAria(props),\n // aria- and role attributes\n isEmptyTip: false,\n disable: false,\n possibleCustomEvents: props.possibleCustomEvents || '',\n possibleCustomEventsOff: props.possibleCustomEventsOff || '',\n originTooltip: null,\n isMultiline: false\n };\n _this.bind(['showTooltip', 'updateTooltip', 'hideTooltip', 'hideTooltipOnScroll', 'getTooltipContent', 'globalRebuild', 'globalShow', 'globalHide', 'onWindowResize', 'mouseOnToolTip']);\n _this.mount = true;\n _this.delayShowLoop = null;\n _this.delayHideLoop = null;\n _this.delayReshow = null;\n _this.intervalUpdateContent = null;\n return _this;\n }\n\n /**\n * For unify the bind and unbind listener\n */\n _createClass(ReactTooltip, [{\n key: \"bind\",\n value: function bind(methodArray) {\n var _this2 = this;\n methodArray.forEach(function (method) {\n _this2[method] = _this2[method].bind(_this2);\n });\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this$props = this.props;\n _this$props.insecure;\n var resizeHide = _this$props.resizeHide,\n disableInternalStyle = _this$props.disableInternalStyle;\n this.mount = true;\n this.bindListener(); // Bind listener for tooltip\n this.bindWindowEvents(resizeHide); // Bind global event for static method\n\n if (!disableInternalStyle) {\n this.injectStyles(); // Inject styles for each DOM root having tooltip.\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.mount = false;\n this.clearTimer();\n this.unbindListener();\n this.removeScrollListener(this.state.currentTarget);\n this.unbindWindowEvents();\n }\n\n /* Look for the closest DOM root having tooltip and inject styles. */\n }, {\n key: \"injectStyles\",\n value: function injectStyles() {\n var tooltipRef = this.tooltipRef;\n if (!tooltipRef) {\n return;\n }\n var parentNode = tooltipRef.parentNode;\n while (parentNode.parentNode) {\n parentNode = parentNode.parentNode;\n }\n var domRoot;\n switch (parentNode.constructor.name) {\n case 'Document':\n case 'HTMLDocument':\n case undefined:\n domRoot = parentNode.head;\n break;\n case 'ShadowRoot':\n default:\n domRoot = parentNode;\n break;\n }\n\n // Prevent styles duplication.\n if (!domRoot.querySelector('style[data-react-tooltip]')) {\n var style = document.createElement('style');\n style.textContent = baseCss;\n style.setAttribute('data-react-tooltip', 'true');\n domRoot.appendChild(style);\n }\n }\n\n /**\n * Return if the mouse is on the tooltip.\n * @returns {boolean} true - mouse is on the tooltip\n */\n }, {\n key: \"mouseOnToolTip\",\n value: function mouseOnToolTip() {\n var show = this.state.show;\n if (show && this.tooltipRef) {\n /* old IE or Firefox work around */\n if (!this.tooltipRef.matches) {\n /* old IE work around */\n if (this.tooltipRef.msMatchesSelector) {\n this.tooltipRef.matches = this.tooltipRef.msMatchesSelector;\n } else {\n /* old Firefox work around */\n this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector;\n }\n }\n return this.tooltipRef.matches(':hover');\n }\n return false;\n }\n\n /**\n * Pick out corresponded target elements\n */\n }, {\n key: \"getTargetArray\",\n value: function getTargetArray(id) {\n var targetArray = [];\n var selector;\n if (!id) {\n selector = '[data-tip]:not([data-for])';\n } else {\n var escaped = id.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"');\n selector = \"[data-tip][data-for=\\\"\".concat(escaped, \"\\\"]\");\n }\n\n // Scan document for shadow DOM elements\n nodeListToArray(document.getElementsByTagName('*')).filter(function (element) {\n return element.shadowRoot;\n }).forEach(function (element) {\n targetArray = targetArray.concat(nodeListToArray(element.shadowRoot.querySelectorAll(selector)));\n });\n return targetArray.concat(nodeListToArray(document.querySelectorAll(selector)));\n }\n\n /**\n * Bind listener to the target elements\n * These listeners used to trigger showing or hiding the tooltip\n */\n }, {\n key: \"bindListener\",\n value: function bindListener() {\n var _this3 = this;\n var _this$props2 = this.props,\n id = _this$props2.id,\n globalEventOff = _this$props2.globalEventOff,\n isCapture = _this$props2.isCapture;\n var targetArray = this.getTargetArray(id);\n targetArray.forEach(function (target) {\n if (target.getAttribute('currentItem') === null) {\n target.setAttribute('currentItem', 'false');\n }\n _this3.unbindBasicListener(target);\n if (_this3.isCustomEvent(target)) {\n _this3.customUnbindListener(target);\n }\n });\n if (this.isBodyMode()) {\n this.bindBodyListener(targetArray);\n } else {\n targetArray.forEach(function (target) {\n var isCaptureMode = _this3.isCapture(target);\n var effect = _this3.getEffect(target);\n if (_this3.isCustomEvent(target)) {\n _this3.customBindListener(target);\n return;\n }\n target.addEventListener('mouseenter', _this3.showTooltip, isCaptureMode);\n target.addEventListener('focus', _this3.showTooltip, isCaptureMode);\n if (effect === 'float') {\n target.addEventListener('mousemove', _this3.updateTooltip, isCaptureMode);\n }\n target.addEventListener('mouseleave', _this3.hideTooltip, isCaptureMode);\n target.addEventListener('blur', _this3.hideTooltip, isCaptureMode);\n });\n }\n\n // Global event to hide tooltip\n if (globalEventOff) {\n window.removeEventListener(globalEventOff, this.hideTooltip);\n window.addEventListener(globalEventOff, this.hideTooltip, isCapture);\n }\n\n // Track removal of targetArray elements from DOM\n this.bindRemovalTracker();\n }\n\n /**\n * Unbind listeners on target elements\n */\n }, {\n key: \"unbindListener\",\n value: function unbindListener() {\n var _this4 = this;\n var _this$props3 = this.props,\n id = _this$props3.id,\n globalEventOff = _this$props3.globalEventOff;\n if (this.isBodyMode()) {\n this.unbindBodyListener();\n } else {\n var targetArray = this.getTargetArray(id);\n targetArray.forEach(function (target) {\n _this4.unbindBasicListener(target);\n if (_this4.isCustomEvent(target)) _this4.customUnbindListener(target);\n });\n }\n if (globalEventOff) window.removeEventListener(globalEventOff, this.hideTooltip);\n this.unbindRemovalTracker();\n }\n\n /**\n * Invoke this before bind listener and unmount the component\n * it is necessary to invoke this even when binding custom event\n * so that the tooltip can switch between custom and default listener\n */\n }, {\n key: \"unbindBasicListener\",\n value: function unbindBasicListener(target) {\n var isCaptureMode = this.isCapture(target);\n target.removeEventListener('mouseenter', this.showTooltip, isCaptureMode);\n target.removeEventListener('mousemove', this.updateTooltip, isCaptureMode);\n target.removeEventListener('mouseleave', this.hideTooltip, isCaptureMode);\n }\n }, {\n key: \"getTooltipContent\",\n value: function getTooltipContent() {\n var _this$props4 = this.props,\n getContent = _this$props4.getContent,\n children = _this$props4.children;\n\n // Generate tooltip content\n var content;\n if (getContent) {\n if (Array.isArray(getContent)) {\n content = getContent[0] && getContent[0](this.state.originTooltip);\n } else {\n content = getContent(this.state.originTooltip);\n }\n }\n return TipContent(this.state.originTooltip, children, content, this.state.isMultiline);\n }\n }, {\n key: \"isEmptyTip\",\n value: function isEmptyTip(placeholder) {\n return typeof placeholder === 'string' && placeholder === '' || placeholder === null;\n }\n\n /**\n * When mouse enter, show the tooltip\n */\n }, {\n key: \"showTooltip\",\n value: function showTooltip(e, isGlobalCall) {\n if (!this.tooltipRef) {\n return;\n }\n if (isGlobalCall) {\n // Don't trigger other elements belongs to other ReactTooltip\n var targetArray = this.getTargetArray(this.props.id);\n var isMyElement = targetArray.some(function (ele) {\n return ele === e.currentTarget;\n });\n if (!isMyElement) return;\n }\n // Get the tooltip content\n // calculate in this phrase so that tip width height can be detected\n var _this$props5 = this.props,\n multiline = _this$props5.multiline,\n getContent = _this$props5.getContent;\n var originTooltip = e.currentTarget.getAttribute('data-tip');\n var isMultiline = e.currentTarget.getAttribute('data-multiline') || multiline || false;\n\n // If it is focus event or called by ReactTooltip.show, switch to `solid` effect\n var switchToSolid = e instanceof window.FocusEvent || isGlobalCall;\n\n // if it needs to skip adding hide listener to scroll\n var scrollHide = true;\n if (e.currentTarget.getAttribute('data-scroll-hide')) {\n scrollHide = e.currentTarget.getAttribute('data-scroll-hide') === 'true';\n } else if (this.props.scrollHide != null) {\n scrollHide = this.props.scrollHide;\n }\n\n // adding aria-describedby to target to make tooltips read by screen readers\n if (e && e.currentTarget && e.currentTarget.setAttribute) {\n e.currentTarget.setAttribute('aria-describedby', this.props.id || this.state.uuid);\n }\n\n // Make sure the correct place is set\n var desiredPlace = e.currentTarget.getAttribute('data-place') || this.props.place || 'top';\n var effect = switchToSolid && 'solid' || this.getEffect(e.currentTarget);\n var offset = e.currentTarget.getAttribute('data-offset') || this.props.offset || {};\n var result = getPosition(e, e.currentTarget, this.tooltipRef, desiredPlace.split(',')[0], desiredPlace, effect, offset);\n if (result.position && this.props.overridePosition) {\n result.position = this.props.overridePosition(result.position, e, e.currentTarget, this.tooltipRef, desiredPlace, desiredPlace, effect, offset);\n }\n var place = result.isNewState ? result.newState.place : desiredPlace.split(',')[0];\n\n // To prevent previously created timers from triggering\n this.clearTimer();\n var target = e.currentTarget;\n var reshowDelay = this.state.show ? target.getAttribute('data-delay-update') || this.props.delayUpdate : 0;\n var self = this;\n var updateState = function updateState() {\n self.setState({\n originTooltip: originTooltip,\n isMultiline: isMultiline,\n desiredPlace: desiredPlace,\n place: place,\n type: target.getAttribute('data-type') || self.props.type || 'dark',\n customColors: {\n text: target.getAttribute('data-text-color') || self.props.textColor || null,\n background: target.getAttribute('data-background-color') || self.props.backgroundColor || null,\n border: target.getAttribute('data-border-color') || self.props.borderColor || null,\n arrow: target.getAttribute('data-arrow-color') || self.props.arrowColor || null\n },\n customRadius: {\n tooltip: target.getAttribute('data-tooltip-radius') || self.props.tooltipRadius || '3',\n arrow: target.getAttribute('data-arrow-radius') || self.props.arrowRadius || '0'\n },\n effect: effect,\n offset: offset,\n padding: target.getAttribute('data-padding') || self.props.padding,\n html: (target.getAttribute('data-html') ? target.getAttribute('data-html') === 'true' : self.props.html) || false,\n delayShow: target.getAttribute('data-delay-show') || self.props.delayShow || 0,\n delayHide: target.getAttribute('data-delay-hide') || self.props.delayHide || 0,\n delayUpdate: target.getAttribute('data-delay-update') || self.props.delayUpdate || 0,\n border: (target.getAttribute('data-border') ? target.getAttribute('data-border') === 'true' : self.props.border) || false,\n borderClass: target.getAttribute('data-border-class') || self.props.borderClass || 'border',\n extraClass: target.getAttribute('data-class') || self.props[\"class\"] || self.props.className || '',\n disable: (target.getAttribute('data-tip-disable') ? target.getAttribute('data-tip-disable') === 'true' : self.props.disable) || false,\n currentTarget: target\n }, function () {\n if (scrollHide) {\n self.addScrollListener(self.state.currentTarget);\n }\n self.updateTooltip(e);\n if (getContent && Array.isArray(getContent)) {\n self.intervalUpdateContent = setInterval(function () {\n if (self.mount) {\n var _getContent = self.props.getContent;\n var placeholder = TipContent(originTooltip, '', _getContent[0](), isMultiline);\n var isEmptyTip = self.isEmptyTip(placeholder);\n self.setState({\n isEmptyTip: isEmptyTip\n });\n self.updatePosition();\n }\n }, getContent[1]);\n }\n });\n };\n\n // If there is no delay call immediately, don't allow events to get in first.\n if (reshowDelay) {\n this.delayReshow = setTimeout(updateState, reshowDelay);\n } else {\n updateState();\n }\n }\n\n /**\n * When mouse hover, update tool tip\n */\n }, {\n key: \"updateTooltip\",\n value: function updateTooltip(e) {\n var _this5 = this;\n var _this$state = this.state,\n delayShow = _this$state.delayShow,\n disable = _this$state.disable;\n var _this$props6 = this.props,\n afterShow = _this$props6.afterShow,\n disableProp = _this$props6.disable;\n var placeholder = this.getTooltipContent();\n var eventTarget = e.currentTarget || e.target;\n\n // Check if the mouse is actually over the tooltip, if so don't hide the tooltip\n if (this.mouseOnToolTip()) {\n return;\n }\n\n // if the tooltip is empty, disable the tooltip\n if (this.isEmptyTip(placeholder) || disable || disableProp) {\n return;\n }\n var delayTime = !this.state.show ? parseInt(delayShow, 10) : 0;\n var updateState = function updateState() {\n if (Array.isArray(placeholder) && placeholder.length > 0 || placeholder) {\n var isInvisible = !_this5.state.show;\n _this5.setState({\n currentEvent: e,\n currentTarget: eventTarget,\n show: true\n }, function () {\n _this5.updatePosition(function () {\n if (isInvisible && afterShow) {\n afterShow(e);\n }\n });\n });\n }\n };\n if (this.delayShowLoop) {\n clearTimeout(this.delayShowLoop);\n }\n if (delayTime) {\n this.delayShowLoop = setTimeout(updateState, delayTime);\n } else {\n this.delayShowLoop = null;\n updateState();\n }\n }\n\n /*\n * If we're mousing over the tooltip remove it when we leave.\n */\n }, {\n key: \"listenForTooltipExit\",\n value: function listenForTooltipExit() {\n var show = this.state.show;\n if (show && this.tooltipRef) {\n this.tooltipRef.addEventListener('mouseleave', this.hideTooltip);\n }\n }\n }, {\n key: \"removeListenerForTooltipExit\",\n value: function removeListenerForTooltipExit() {\n var show = this.state.show;\n if (show && this.tooltipRef) {\n this.tooltipRef.removeEventListener('mouseleave', this.hideTooltip);\n }\n }\n\n /**\n * When mouse leave, hide tooltip\n */\n }, {\n key: \"hideTooltip\",\n value: function hideTooltip(e, hasTarget) {\n var _this6 = this;\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n isScroll: false\n };\n var disable = this.state.disable;\n var isScroll = options.isScroll;\n var delayHide = isScroll ? 0 : this.state.delayHide;\n var _this$props7 = this.props,\n afterHide = _this$props7.afterHide,\n disableProp = _this$props7.disable;\n var placeholder = this.getTooltipContent();\n if (!this.mount) return;\n if (this.isEmptyTip(placeholder) || disable || disableProp) return; // if the tooltip is empty, disable the tooltip\n if (hasTarget) {\n // Don't trigger other elements belongs to other ReactTooltip\n var targetArray = this.getTargetArray(this.props.id);\n var isMyElement = targetArray.some(function (ele) {\n return ele === e.currentTarget;\n });\n if (!isMyElement || !this.state.show) return;\n }\n\n // clean up aria-describedby when hiding tooltip\n if (e && e.currentTarget && e.currentTarget.removeAttribute) {\n e.currentTarget.removeAttribute('aria-describedby');\n }\n var resetState = function resetState() {\n var isVisible = _this6.state.show;\n // Check if the mouse is actually over the tooltip, if so don't hide the tooltip\n if (_this6.mouseOnToolTip()) {\n _this6.listenForTooltipExit();\n return;\n }\n _this6.removeListenerForTooltipExit();\n _this6.setState({\n show: false\n }, function () {\n _this6.removeScrollListener(_this6.state.currentTarget);\n if (isVisible && afterHide) {\n afterHide(e);\n }\n });\n };\n this.clearTimer();\n if (delayHide) {\n this.delayHideLoop = setTimeout(resetState, parseInt(delayHide, 10));\n } else {\n resetState();\n }\n }\n\n /**\n * When scroll, hide tooltip\n */\n }, {\n key: \"hideTooltipOnScroll\",\n value: function hideTooltipOnScroll(event, hasTarget) {\n this.hideTooltip(event, hasTarget, {\n isScroll: true\n });\n }\n\n /**\n * Add scroll event listener when tooltip show\n * automatically hide the tooltip when scrolling\n */\n }, {\n key: \"addScrollListener\",\n value: function addScrollListener(currentTarget) {\n var isCaptureMode = this.isCapture(currentTarget);\n window.addEventListener('scroll', this.hideTooltipOnScroll, isCaptureMode);\n }\n }, {\n key: \"removeScrollListener\",\n value: function removeScrollListener(currentTarget) {\n var isCaptureMode = this.isCapture(currentTarget);\n window.removeEventListener('scroll', this.hideTooltipOnScroll, isCaptureMode);\n }\n\n // Calculation the position\n }, {\n key: \"updatePosition\",\n value: function updatePosition(callbackAfter) {\n var _this7 = this;\n var _this$state2 = this.state,\n currentEvent = _this$state2.currentEvent,\n currentTarget = _this$state2.currentTarget,\n place = _this$state2.place,\n desiredPlace = _this$state2.desiredPlace,\n effect = _this$state2.effect,\n offset = _this$state2.offset;\n var node = this.tooltipRef;\n var result = getPosition(currentEvent, currentTarget, node, place, desiredPlace, effect, offset);\n if (result.position && this.props.overridePosition) {\n result.position = this.props.overridePosition(result.position, currentEvent, currentTarget, node, place, desiredPlace, effect, offset);\n }\n if (result.isNewState) {\n // Switch to reverse placement\n return this.setState(result.newState, function () {\n _this7.updatePosition(callbackAfter);\n });\n }\n if (callbackAfter && typeof callbackAfter === 'function') {\n callbackAfter();\n }\n\n // Set tooltip position\n node.style.left = result.position.left + 'px';\n node.style.top = result.position.top + 'px';\n }\n\n /**\n * CLear all kinds of timeout of interval\n */\n }, {\n key: \"clearTimer\",\n value: function clearTimer() {\n if (this.delayShowLoop) {\n clearTimeout(this.delayShowLoop);\n this.delayShowLoop = null;\n }\n if (this.delayHideLoop) {\n clearTimeout(this.delayHideLoop);\n this.delayHideLoop = null;\n }\n if (this.delayReshow) {\n clearTimeout(this.delayReshow);\n this.delayReshow = null;\n }\n if (this.intervalUpdateContent) {\n clearInterval(this.intervalUpdateContent);\n this.intervalUpdateContent = null;\n }\n }\n }, {\n key: \"hasCustomColors\",\n value: function hasCustomColors() {\n var _this8 = this;\n return Boolean(Object.keys(this.state.customColors).find(function (color) {\n return color !== 'border' && _this8.state.customColors[color];\n }) || this.state.border && this.state.customColors['border']);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this9 = this;\n var _this$state3 = this.state,\n extraClass = _this$state3.extraClass,\n html = _this$state3.html,\n ariaProps = _this$state3.ariaProps,\n disable = _this$state3.disable,\n uuid = _this$state3.uuid;\n var content = this.getTooltipContent();\n var isEmptyTip = this.isEmptyTip(content);\n var style = this.props.disableInternalStyle ? '' : generateTooltipStyle(this.state.uuid, this.state.customColors, this.state.type, this.state.border, this.state.padding, this.state.customRadius);\n var tooltipClass = '__react_component_tooltip' + \" \".concat(this.state.uuid) + (this.state.show && !disable && !isEmptyTip ? ' show' : '') + (this.state.border ? ' ' + this.state.borderClass : '') + \" place-\".concat(this.state.place) + // top, bottom, left, right\n \" type-\".concat(this.hasCustomColors() ? 'custom' : this.state.type) + (\n // dark, success, warning, error, info, light, custom\n this.props.delayUpdate ? ' allow_hover' : '') + (this.props.clickable ? ' allow_click' : '');\n var Wrapper = this.props.wrapper;\n if (ReactTooltip.supportedWrappers.indexOf(Wrapper) < 0) {\n Wrapper = ReactTooltip.defaultProps.wrapper;\n }\n var wrapperClassName = [tooltipClass, extraClass].filter(Boolean).join(' ');\n if (html) {\n var htmlContent = \"\".concat(content).concat(style ? \"\\n\") : '');\n return /*#__PURE__*/React.createElement(Wrapper, _extends({\n className: \"\".concat(wrapperClassName),\n id: this.props.id || uuid,\n ref: function ref(_ref) {\n return _this9.tooltipRef = _ref;\n }\n }, ariaProps, {\n \"data-id\": \"tooltip\",\n dangerouslySetInnerHTML: {\n __html: htmlContent\n }\n }));\n } else {\n return /*#__PURE__*/React.createElement(Wrapper, _extends({\n className: \"\".concat(wrapperClassName),\n id: this.props.id || uuid\n }, ariaProps, {\n ref: function ref(_ref2) {\n return _this9.tooltipRef = _ref2;\n },\n \"data-id\": \"tooltip\"\n }), style && /*#__PURE__*/React.createElement(\"style\", {\n dangerouslySetInnerHTML: {\n __html: style\n },\n \"aria-hidden\": \"true\"\n }), content);\n }\n }\n }], [{\n key: \"propTypes\",\n get: function get() {\n return {\n uuid: PropTypes.string,\n children: PropTypes.any,\n place: PropTypes.string,\n type: PropTypes.string,\n effect: PropTypes.string,\n offset: PropTypes.object,\n padding: PropTypes.string,\n multiline: PropTypes.bool,\n border: PropTypes.bool,\n borderClass: PropTypes.string,\n textColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n borderColor: PropTypes.string,\n arrowColor: PropTypes.string,\n arrowRadius: PropTypes.string,\n tooltipRadius: PropTypes.string,\n insecure: PropTypes.bool,\n \"class\": PropTypes.string,\n className: PropTypes.string,\n id: PropTypes.string,\n html: PropTypes.bool,\n delayHide: PropTypes.number,\n delayUpdate: PropTypes.number,\n delayShow: PropTypes.number,\n event: PropTypes.string,\n eventOff: PropTypes.string,\n isCapture: PropTypes.bool,\n globalEventOff: PropTypes.string,\n getContent: PropTypes.any,\n afterShow: PropTypes.func,\n afterHide: PropTypes.func,\n overridePosition: PropTypes.func,\n disable: PropTypes.bool,\n scrollHide: PropTypes.bool,\n resizeHide: PropTypes.bool,\n wrapper: PropTypes.string,\n bodyMode: PropTypes.bool,\n possibleCustomEvents: PropTypes.string,\n possibleCustomEventsOff: PropTypes.string,\n clickable: PropTypes.bool,\n disableInternalStyle: PropTypes.bool\n };\n }\n }, {\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n var ariaProps = prevState.ariaProps;\n var newAriaProps = parseAria(nextProps);\n var isChanged = Object.keys(newAriaProps).some(function (props) {\n return newAriaProps[props] !== ariaProps[props];\n });\n if (!isChanged) {\n return null;\n }\n return _objectSpread2(_objectSpread2({}, prevState), {}, {\n ariaProps: newAriaProps\n });\n }\n }]);\n return ReactTooltip;\n}(React.Component), _defineProperty(_class2, \"defaultProps\", {\n insecure: true,\n resizeHide: true,\n wrapper: 'div',\n clickable: false\n}), _defineProperty(_class2, \"supportedWrappers\", ['div', 'span']), _defineProperty(_class2, \"displayName\", 'ReactTooltip'), _class2)) || _class) || _class) || _class) || _class) || _class) || _class) || _class;\n\nexport { ReactTooltip as default };\n//# sourceMappingURL=index.es.js.map\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Serialize the positional info of a point, position (start and end points),\n * or node.\n *\n * @param {Node | NodeLike | Position | PositionLike | Point | PointLike | null | undefined} [value]\n * Node, position, or point.\n * @returns {string}\n * Pretty printed positional info of a node (`string`).\n *\n * In the format of a range `ls:cs-le:ce` (when given `node` or `position`)\n * or a point `l:c` (when given `point`), where `l` stands for line, `c` for\n * column, `s` for `start`, and `e` for end.\n * An empty string (`''`) is returned if the given value is neither `node`,\n * `position`, nor `point`.\n */\nexport function stringifyPosition(value) {\n // Nothing.\n if (!value || typeof value !== 'object') {\n return ''\n }\n\n // Node.\n if ('position' in value || 'type' in value) {\n return position(value.position)\n }\n\n // Position.\n if ('start' in value || 'end' in value) {\n return position(value)\n }\n\n // Point.\n if ('line' in value || 'column' in value) {\n return point(value)\n }\n\n // ?\n return ''\n}\n\n/**\n * @param {Point | PointLike | null | undefined} point\n * @returns {string}\n */\nfunction point(point) {\n return index(point && point.line) + ':' + index(point && point.column)\n}\n\n/**\n * @param {Position | PositionLike | null | undefined} pos\n * @returns {string}\n */\nfunction position(pos) {\n return point(pos && pos.start) + '-' + point(pos && pos.end)\n}\n\n/**\n * @param {number | null | undefined} value\n * @returns {number}\n */\nfunction index(value) {\n return value && typeof value === 'number' ? value : 1\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {object & {type: string, position?: Position | undefined}} NodeLike\n */\n\nimport {stringifyPosition} from 'unist-util-stringify-position'\n\n/**\n * Message.\n */\nexport class VFileMessage extends Error {\n /**\n * Create a message for `reason` at `place` from `origin`.\n *\n * When an error is passed in as `reason`, the `stack` is copied.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n *\n * > 👉 **Note**: you should use markdown.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns\n * Instance of `VFileMessage`.\n */\n // To do: next major: expose `undefined` everywhere instead of `null`.\n constructor(reason, place, origin) {\n /** @type {[string | null, string | null]} */\n const parts = [null, null]\n /** @type {Position} */\n let position = {\n // @ts-expect-error: we always follows the structure of `position`.\n start: {line: null, column: null},\n // @ts-expect-error: \"\n end: {line: null, column: null}\n }\n\n super()\n\n if (typeof place === 'string') {\n origin = place\n place = undefined\n }\n\n if (typeof origin === 'string') {\n const index = origin.indexOf(':')\n\n if (index === -1) {\n parts[1] = origin\n } else {\n parts[0] = origin.slice(0, index)\n parts[1] = origin.slice(index + 1)\n }\n }\n\n if (place) {\n // Node.\n if ('type' in place || 'position' in place) {\n if (place.position) {\n // To do: next major: deep clone.\n // @ts-expect-error: looks like a position.\n position = place.position\n }\n }\n // Position.\n else if ('start' in place || 'end' in place) {\n // @ts-expect-error: looks like a position.\n // To do: next major: deep clone.\n position = place\n }\n // Point.\n else if ('line' in place || 'column' in place) {\n // To do: next major: deep clone.\n position.start = place\n }\n }\n\n // Fields from `Error`.\n /**\n * Serialized positional info of error.\n *\n * On normal errors, this would be something like `ParseError`, buit in\n * `VFile` messages we use this space to show where an error happened.\n */\n this.name = stringifyPosition(place) || '1:1'\n\n /**\n * Reason for message.\n *\n * @type {string}\n */\n this.message = typeof reason === 'object' ? reason.message : reason\n\n /**\n * Stack of message.\n *\n * This is used by normal errors to show where something happened in\n * programming code, irrelevant for `VFile` messages,\n *\n * @type {string}\n */\n this.stack = ''\n\n if (typeof reason === 'object' && reason.stack) {\n this.stack = reason.stack\n }\n\n /**\n * Reason for message.\n *\n * > 👉 **Note**: you should use markdown.\n *\n * @type {string}\n */\n this.reason = this.message\n\n /* eslint-disable no-unused-expressions */\n /**\n * State of problem.\n *\n * * `true` — marks associated file as no longer processable (error)\n * * `false` — necessitates a (potential) change (warning)\n * * `null | undefined` — for things that might not need changing (info)\n *\n * @type {boolean | null | undefined}\n */\n this.fatal\n\n /**\n * Starting line of error.\n *\n * @type {number | null}\n */\n this.line = position.start.line\n\n /**\n * Starting column of error.\n *\n * @type {number | null}\n */\n this.column = position.start.column\n\n /**\n * Full unist position.\n *\n * @type {Position | null}\n */\n this.position = position\n\n /**\n * Namespace of message (example: `'my-package'`).\n *\n * @type {string | null}\n */\n this.source = parts[0]\n\n /**\n * Category of message (example: `'my-rule'`).\n *\n * @type {string | null}\n */\n this.ruleId = parts[1]\n\n /**\n * Path of a file (used throughout the `VFile` ecosystem).\n *\n * @type {string | null}\n */\n this.file\n\n // The following fields are “well known”.\n // Not standard.\n // Feel free to add other non-standard fields to your messages.\n\n /**\n * Specify the source value that’s being reported, which is deemed\n * incorrect.\n *\n * @type {string | null}\n */\n this.actual\n\n /**\n * Suggest acceptable values that can be used instead of `actual`.\n *\n * @type {Array | null}\n */\n this.expected\n\n /**\n * Link to docs for the message.\n *\n * > 👉 **Note**: this must be an absolute URL that can be passed as `x`\n * > to `new URL(x)`.\n *\n * @type {string | null}\n */\n this.url\n\n /**\n * Long form description of the message (you should use markdown).\n *\n * @type {string | null}\n */\n this.note\n /* eslint-enable no-unused-expressions */\n }\n}\n\nVFileMessage.prototype.file = ''\nVFileMessage.prototype.name = ''\nVFileMessage.prototype.reason = ''\nVFileMessage.prototype.message = ''\nVFileMessage.prototype.stack = ''\nVFileMessage.prototype.fatal = null\nVFileMessage.prototype.column = null\nVFileMessage.prototype.line = null\nVFileMessage.prototype.source = null\nVFileMessage.prototype.ruleId = null\nVFileMessage.prototype.position = null\n","// A derivative work based on:\n// .\n// Which is licensed:\n//\n// MIT License\n//\n// Copyright (c) 2013 James Halliday\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A derivative work based on:\n//\n// Parts of that are extracted from Node’s internal `path` module:\n// .\n// Which is licensed:\n//\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nexport const path = {basename, dirname, extname, join, sep: '/'}\n\n/* eslint-disable max-depth, complexity */\n\n/**\n * Get the basename from a path.\n *\n * @param {string} path\n * File path.\n * @param {string | undefined} [ext]\n * Extension to strip.\n * @returns {string}\n * Stem or basename.\n */\nfunction basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') {\n throw new TypeError('\"ext\" argument must be a string')\n }\n\n assertPath(path)\n let start = 0\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let seenNonSlash\n\n if (ext === undefined || ext.length === 0 || ext.length > path.length) {\n while (index--) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // path component.\n seenNonSlash = true\n end = index + 1\n }\n }\n\n return end < 0 ? '' : path.slice(start, end)\n }\n\n if (ext === path) {\n return ''\n }\n\n let firstNonSlashEnd = -1\n let extIndex = ext.length - 1\n\n while (index--) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else {\n if (firstNonSlashEnd < 0) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching.\n seenNonSlash = true\n firstNonSlashEnd = index + 1\n }\n\n if (extIndex > -1) {\n // Try to match the explicit extension.\n if (path.charCodeAt(index) === ext.charCodeAt(extIndex--)) {\n if (extIndex < 0) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = index\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIndex = -1\n end = firstNonSlashEnd\n }\n }\n }\n }\n\n if (start === end) {\n end = firstNonSlashEnd\n } else if (end < 0) {\n end = path.length\n }\n\n return path.slice(start, end)\n}\n\n/**\n * Get the dirname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\nfunction dirname(path) {\n assertPath(path)\n\n if (path.length === 0) {\n return '.'\n }\n\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n // Prefix `--` is important to not run on `0`.\n while (--index) {\n if (path.charCodeAt(index) === 47 /* `/` */) {\n if (unmatchedSlash) {\n end = index\n break\n }\n } else if (!unmatchedSlash) {\n // We saw the first non-path separator\n unmatchedSlash = true\n }\n }\n\n return end < 0\n ? path.charCodeAt(0) === 47 /* `/` */\n ? '/'\n : '.'\n : end === 1 && path.charCodeAt(0) === 47 /* `/` */\n ? '//'\n : path.slice(0, end)\n}\n\n/**\n * Get an extname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * Extname.\n */\nfunction extname(path) {\n assertPath(path)\n\n let index = path.length\n\n let end = -1\n let startPart = 0\n let startDot = -1\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find.\n let preDotState = 0\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n while (index--) {\n const code = path.charCodeAt(index)\n\n if (code === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (unmatchedSlash) {\n startPart = index + 1\n break\n }\n\n continue\n }\n\n if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // extension.\n unmatchedSlash = true\n end = index + 1\n }\n\n if (code === 46 /* `.` */) {\n // If this is our first dot, mark it as the start of our extension.\n if (startDot < 0) {\n startDot = index\n } else if (preDotState !== 1) {\n preDotState = 1\n }\n } else if (startDot > -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension.\n preDotState = -1\n }\n }\n\n if (\n startDot < 0 ||\n end < 0 ||\n // We saw a non-dot character immediately before the dot.\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly `..`.\n (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n ) {\n return ''\n }\n\n return path.slice(startDot, end)\n}\n\n/**\n * Join segments from a path.\n *\n * @param {Array} segments\n * Path segments.\n * @returns {string}\n * File path.\n */\nfunction join(...segments) {\n let index = -1\n /** @type {string | undefined} */\n let joined\n\n while (++index < segments.length) {\n assertPath(segments[index])\n\n if (segments[index]) {\n joined =\n joined === undefined ? segments[index] : joined + '/' + segments[index]\n }\n }\n\n return joined === undefined ? '.' : normalize(joined)\n}\n\n/**\n * Normalize a basic file path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\n// Note: `normalize` is not exposed as `path.normalize`, so some code is\n// manually removed from it.\nfunction normalize(path) {\n assertPath(path)\n\n const absolute = path.charCodeAt(0) === 47 /* `/` */\n\n // Normalize the path according to POSIX rules.\n let value = normalizeString(path, !absolute)\n\n if (value.length === 0 && !absolute) {\n value = '.'\n }\n\n if (value.length > 0 && path.charCodeAt(path.length - 1) === 47 /* / */) {\n value += '/'\n }\n\n return absolute ? '/' + value : value\n}\n\n/**\n * Resolve `.` and `..` elements in a path with directory names.\n *\n * @param {string} path\n * File path.\n * @param {boolean} allowAboveRoot\n * Whether `..` can move above root.\n * @returns {string}\n * File path.\n */\nfunction normalizeString(path, allowAboveRoot) {\n let result = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let index = -1\n /** @type {number | undefined} */\n let code\n /** @type {number} */\n let lastSlashIndex\n\n while (++index <= path.length) {\n if (index < path.length) {\n code = path.charCodeAt(index)\n } else if (code === 47 /* `/` */) {\n break\n } else {\n code = 47 /* `/` */\n }\n\n if (code === 47 /* `/` */) {\n if (lastSlash === index - 1 || dots === 1) {\n // Empty.\n } else if (lastSlash !== index - 1 && dots === 2) {\n if (\n result.length < 2 ||\n lastSegmentLength !== 2 ||\n result.charCodeAt(result.length - 1) !== 46 /* `.` */ ||\n result.charCodeAt(result.length - 2) !== 46 /* `.` */\n ) {\n if (result.length > 2) {\n lastSlashIndex = result.lastIndexOf('/')\n\n if (lastSlashIndex !== result.length - 1) {\n if (lastSlashIndex < 0) {\n result = ''\n lastSegmentLength = 0\n } else {\n result = result.slice(0, lastSlashIndex)\n lastSegmentLength = result.length - 1 - result.lastIndexOf('/')\n }\n\n lastSlash = index\n dots = 0\n continue\n }\n } else if (result.length > 0) {\n result = ''\n lastSegmentLength = 0\n lastSlash = index\n dots = 0\n continue\n }\n }\n\n if (allowAboveRoot) {\n result = result.length > 0 ? result + '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (result.length > 0) {\n result += '/' + path.slice(lastSlash + 1, index)\n } else {\n result = path.slice(lastSlash + 1, index)\n }\n\n lastSegmentLength = index - lastSlash - 1\n }\n\n lastSlash = index\n dots = 0\n } else if (code === 46 /* `.` */ && dots > -1) {\n dots++\n } else {\n dots = -1\n }\n }\n\n return result\n}\n\n/**\n * Make sure `path` is a string.\n *\n * @param {string} path\n * File path.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError(\n 'Path must be a string. Received ' + JSON.stringify(path)\n )\n }\n}\n\n/* eslint-enable max-depth, complexity */\n","// Somewhat based on:\n// .\n// But I don’t think one tiny line of code can be copyrighted. 😅\nexport const proc = {cwd}\n\nfunction cwd() {\n return '/'\n}\n","/**\n * @typedef URL\n * @property {string} hash\n * @property {string} host\n * @property {string} hostname\n * @property {string} href\n * @property {string} origin\n * @property {string} password\n * @property {string} pathname\n * @property {string} port\n * @property {string} protocol\n * @property {string} search\n * @property {any} searchParams\n * @property {string} username\n * @property {() => string} toString\n * @property {() => string} toJSON\n */\n\n/**\n * Check if `fileUrlOrPath` looks like a URL.\n *\n * @param {unknown} fileUrlOrPath\n * File path or URL.\n * @returns {fileUrlOrPath is URL}\n * Whether it’s a URL.\n */\n// From: \nexport function isUrl(fileUrlOrPath) {\n return (\n fileUrlOrPath !== null &&\n typeof fileUrlOrPath === 'object' &&\n // @ts-expect-error: indexable.\n fileUrlOrPath.href &&\n // @ts-expect-error: indexable.\n fileUrlOrPath.origin\n )\n}\n","/// \n\nimport {isUrl} from './minurl.shared.js'\n\n// See: \n\n/**\n * @param {string | URL} path\n * File URL.\n * @returns {string}\n * File URL.\n */\nexport function urlToPath(path) {\n if (typeof path === 'string') {\n path = new URL(path)\n } else if (!isUrl(path)) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'The \"path\" argument must be of type string or an instance of URL. Received `' +\n path +\n '`'\n )\n error.code = 'ERR_INVALID_ARG_TYPE'\n throw error\n }\n\n if (path.protocol !== 'file:') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError('The URL must be of scheme file')\n error.code = 'ERR_INVALID_URL_SCHEME'\n throw error\n }\n\n return getPathFromURLPosix(path)\n}\n\n/**\n * Get a path from a POSIX URL.\n *\n * @param {URL} url\n * URL.\n * @returns {string}\n * File path.\n */\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL host must be \"localhost\" or empty on darwin'\n )\n error.code = 'ERR_INVALID_FILE_URL_HOST'\n throw error\n }\n\n const pathname = url.pathname\n let index = -1\n\n while (++index < pathname.length) {\n if (\n pathname.charCodeAt(index) === 37 /* `%` */ &&\n pathname.charCodeAt(index + 1) === 50 /* `2` */\n ) {\n const third = pathname.charCodeAt(index + 2)\n if (third === 70 /* `F` */ || third === 102 /* `f` */) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL path must not include encoded / characters'\n )\n error.code = 'ERR_INVALID_FILE_URL_PATH'\n throw error\n }\n }\n }\n\n return decodeURIComponent(pathname)\n}\n\nexport {isUrl} from './minurl.shared.js'\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: \n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * .\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array} sources\n * An array of URLs to the original source files.\n * @property {Array} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n","/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n","export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n","// To do: remove `void`s\n// To do: remove `null` from output of our APIs, allow it as user APIs.\n\n/**\n * @typedef {(error?: Error | null | undefined, ...output: Array) => void} Callback\n * Callback.\n *\n * @typedef {(...input: Array) => any} Middleware\n * Ware.\n *\n * @typedef Pipeline\n * Pipeline.\n * @property {Run} run\n * Run the pipeline.\n * @property {Use} use\n * Add middleware.\n *\n * @typedef {(...input: Array) => void} Run\n * Call all middleware.\n *\n * Calls `done` on completion with either an error or the output of the\n * last middleware.\n *\n * > 👉 **Note**: as the length of input defines whether async functions get a\n * > `next` function,\n * > it’s recommended to keep `input` at one value normally.\n\n *\n * @typedef {(fn: Middleware) => Pipeline} Use\n * Add middleware.\n */\n\n/**\n * Create new middleware.\n *\n * @returns {Pipeline}\n * Pipeline.\n */\nexport function trough() {\n /** @type {Array} */\n const fns = []\n /** @type {Pipeline} */\n const pipeline = {run, use}\n\n return pipeline\n\n /** @type {Run} */\n function run(...values) {\n let middlewareIndex = -1\n /** @type {Callback} */\n const callback = values.pop()\n\n if (typeof callback !== 'function') {\n throw new TypeError('Expected function as last argument, not ' + callback)\n }\n\n next(null, ...values)\n\n /**\n * Run the next `fn`, or we’re done.\n *\n * @param {Error | null | undefined} error\n * @param {Array} output\n */\n function next(error, ...output) {\n const fn = fns[++middlewareIndex]\n let index = -1\n\n if (error) {\n callback(error)\n return\n }\n\n // Copy non-nullish input into values.\n while (++index < values.length) {\n if (output[index] === null || output[index] === undefined) {\n output[index] = values[index]\n }\n }\n\n // Save the newly created `output` for the next call.\n values = output\n\n // Next or done.\n if (fn) {\n wrap(fn, next)(...output)\n } else {\n callback(null, ...output)\n }\n }\n }\n\n /** @type {Use} */\n function use(middelware) {\n if (typeof middelware !== 'function') {\n throw new TypeError(\n 'Expected `middelware` to be a function, not ' + middelware\n )\n }\n\n fns.push(middelware)\n return pipeline\n }\n}\n\n/**\n * Wrap `middleware` into a uniform interface.\n *\n * You can pass all input to the resulting function.\n * `callback` is then called with the output of `middleware`.\n *\n * If `middleware` accepts more arguments than the later given in input,\n * an extra `done` function is passed to it after that input,\n * which must be called by `middleware`.\n *\n * The first value in `input` is the main input value.\n * All other input values are the rest input values.\n * The values given to `callback` are the input values,\n * merged with every non-nullish output value.\n *\n * * if `middleware` throws an error,\n * returns a promise that is rejected,\n * or calls the given `done` function with an error,\n * `callback` is called with that error\n * * if `middleware` returns a value or returns a promise that is resolved,\n * that value is the main output value\n * * if `middleware` calls `done`,\n * all non-nullish values except for the first one (the error) overwrite the\n * output values\n *\n * @param {Middleware} middleware\n * Function to wrap.\n * @param {Callback} callback\n * Callback called with the output of `middleware`.\n * @returns {Run}\n * Wrapped middleware.\n */\nexport function wrap(middleware, callback) {\n /** @type {boolean} */\n let called\n\n return wrapped\n\n /**\n * Call `middleware`.\n * @this {any}\n * @param {Array} parameters\n * @returns {void}\n */\n function wrapped(...parameters) {\n const fnExpectsCallback = middleware.length > parameters.length\n /** @type {any} */\n let result\n\n if (fnExpectsCallback) {\n parameters.push(done)\n }\n\n try {\n result = middleware.apply(this, parameters)\n } catch (error) {\n const exception = /** @type {Error} */ (error)\n\n // Well, this is quite the pickle.\n // `middleware` received a callback and called it synchronously, but that\n // threw an error.\n // The only thing left to do is to throw the thing instead.\n if (fnExpectsCallback && called) {\n throw exception\n }\n\n return done(exception)\n }\n\n if (!fnExpectsCallback) {\n if (result && result.then && typeof result.then === 'function') {\n result.then(then, done)\n } else if (result instanceof Error) {\n done(result)\n } else {\n then(result)\n }\n }\n }\n\n /**\n * Call `callback`, only once.\n *\n * @type {Callback}\n */\n function done(error, ...output) {\n if (!called) {\n called = true\n callback(error, ...output)\n }\n }\n\n /**\n * Call `done` with one value.\n *\n * @param {any} [value]\n */\n function then(value) {\n done(null, value)\n }\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n","/**\n * @typedef {import('mdast').Root|import('mdast').Content} Node\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s.\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML.\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} value\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\n return value.type === 'html' && !includeHtml ? '' : value.value\n }\n\n if (includeImageAlt && 'alt' in value && value.alt) {\n return value.alt\n }\n\n if ('children' in value) {\n return all(value.children, includeImageAlt, includeHtml)\n }\n }\n\n if (Array.isArray(value)) {\n return all(value, includeImageAlt, includeHtml)\n }\n\n return ''\n}\n\n/**\n * Serialize a list of nodes.\n *\n * @param {Array} values\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized nodes.\n */\nfunction all(values, includeImageAlt, includeHtml) {\n /** @type {Array} */\n const result = []\n let index = -1\n\n while (++index < values.length) {\n result[index] = one(values[index], includeImageAlt, includeHtml)\n }\n\n return result.join('')\n}\n\n/**\n * Check if `value` looks like a node.\n *\n * @param {unknown} value\n * Thing.\n * @returns {value is Node}\n * Whether `value` is a node.\n */\nfunction node(value) {\n return Boolean(value && typeof value === 'object')\n}\n","/**\n * Like `Array#splice`, but smarter for giant arrays.\n *\n * `Array#splice` takes all items to be inserted as individual argument which\n * causes a stack overflow in V8 when trying to insert 100k items for instance.\n *\n * Otherwise, this does not return the removed items, and takes `items` as an\n * array instead of rest parameters.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array} list\n * List to operate on.\n * @param {number} start\n * Index to remove/insert at (can be negative).\n * @param {number} remove\n * Number of items to remove.\n * @param {Array} items\n * Items to inject into `list`.\n * @returns {void}\n * Nothing.\n */\nexport function splice(list, start, remove, items) {\n const end = list.length\n let chunkStart = 0\n /** @type {Array} */\n let parameters\n\n // Make start between zero and `end` (included).\n if (start < 0) {\n start = -start > end ? 0 : end + start\n } else {\n start = start > end ? end : start\n }\n remove = remove > 0 ? remove : 0\n\n // No need to chunk the items if there’s only a couple (10k) items.\n if (items.length < 10000) {\n parameters = Array.from(items)\n parameters.unshift(start, remove)\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters)\n } else {\n // Delete `remove` items starting from `start`\n if (remove) list.splice(start, remove)\n\n // Insert the items in chunks to not cause stack overflows.\n while (chunkStart < items.length) {\n parameters = items.slice(chunkStart, chunkStart + 10000)\n parameters.unshift(start, 0)\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters)\n chunkStart += 10000\n start += 10000\n }\n }\n}\n\n/**\n * Append `items` (an array) at the end of `list` (another array).\n * When `list` was empty, returns `items` instead.\n *\n * This prevents a potentially expensive operation when `list` is empty,\n * and adds items in batches to prevent V8 from hanging.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array} list\n * List to operate on.\n * @param {Array} items\n * Items to add to `list`.\n * @returns {Array}\n * Either `list` or `items`.\n */\nexport function push(list, items) {\n if (list.length > 0) {\n splice(list, list.length, 0, items)\n return list\n }\n return items\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Handles} Handles\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n * @typedef {import('micromark-util-types').NormalizedExtension} NormalizedExtension\n */\n\nimport {splice} from 'micromark-util-chunked'\n\nconst hasOwnProperty = {}.hasOwnProperty\n\n/**\n * Combine multiple syntax extensions into one.\n *\n * @param {Array} extensions\n * List of syntax extensions.\n * @returns {NormalizedExtension}\n * A single combined extension.\n */\nexport function combineExtensions(extensions) {\n /** @type {NormalizedExtension} */\n const all = {}\n let index = -1\n\n while (++index < extensions.length) {\n syntaxExtension(all, extensions[index])\n }\n\n return all\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {NormalizedExtension} all\n * Extension to merge into.\n * @param {Extension} extension\n * Extension to merge.\n * @returns {void}\n */\nfunction syntaxExtension(all, extension) {\n /** @type {keyof Extension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n /** @type {Record} */\n const left = maybe || (all[hook] = {})\n /** @type {Record | undefined} */\n const right = extension[hook]\n /** @type {string} */\n let code\n\n if (right) {\n for (code in right) {\n if (!hasOwnProperty.call(left, code)) left[code] = []\n const value = right[code]\n constructs(\n // @ts-expect-error Looks like a list.\n left[code],\n Array.isArray(value) ? value : value ? [value] : []\n )\n }\n }\n }\n}\n\n/**\n * Merge `list` into `existing` (both lists of constructs).\n * Mutates `existing`.\n *\n * @param {Array} existing\n * @param {Array} list\n * @returns {void}\n */\nfunction constructs(existing, list) {\n let index = -1\n /** @type {Array} */\n const before = []\n\n while (++index < list.length) {\n // @ts-expect-error Looks like an object.\n ;(list[index].add === 'after' ? existing : before).push(list[index])\n }\n\n splice(existing, 0, 0, before)\n}\n\n/**\n * Combine multiple HTML extensions into one.\n *\n * @param {Array} htmlExtensions\n * List of HTML extensions.\n * @returns {HtmlExtension}\n * A single combined HTML extension.\n */\nexport function combineHtmlExtensions(htmlExtensions) {\n /** @type {HtmlExtension} */\n const handlers = {}\n let index = -1\n\n while (++index < htmlExtensions.length) {\n htmlExtension(handlers, htmlExtensions[index])\n }\n\n return handlers\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {HtmlExtension} all\n * Extension to merge into.\n * @param {HtmlExtension} extension\n * Extension to merge.\n * @returns {void}\n */\nfunction htmlExtension(all, extension) {\n /** @type {keyof HtmlExtension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n const left = maybe || (all[hook] = {})\n const right = extension[hook]\n /** @type {keyof Handles} */\n let type\n\n if (right) {\n for (type in right) {\n // @ts-expect-error assume document vs regular handler are managed correctly.\n left[type] = right[type]\n }\n }\n }\n}\n","// This module is generated by `script/`.\n//\n// CommonMark handles attention (emphasis, strong) markers based on what comes\n// before or after them.\n// One such difference is if those characters are Unicode punctuation.\n// This script is generated from the Unicode data.\n\n/**\n * Regular expression that matches a unicode punctuation character.\n */\nexport const unicodePunctuationRegex =\n /[!-\\/:-@\\[-`\\{-~\\xA1\\xA7\\xAB\\xB6\\xB7\\xBB\\xBF\\u037E\\u0387\\u055A-\\u055F\\u0589\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3\\u05F4\\u0609\\u060A\\u060C\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B\\u169C\\u16EB-\\u16ED\\u1735\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944\\u1945\\u1A1E\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B5A-\\u1B60\\u1B7D\\u1B7E\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D\\u207E\\u208D\\u208E\\u2308-\\u230B\\u2329\\u232A\\u2768-\\u2775\\u27C5\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC\\u29FD\\u2CF9-\\u2CFC\\u2CFE\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE\\uA9DF\\uAA5C-\\uAA5F\\uAADE\\uAADF\\uAAF0\\uAAF1\\uABEB\\uFD3E\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A\\uFF1B\\uFF1F\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65]/\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n */\n\nimport {unicodePunctuationRegex} from './lib/unicode-punctuation-regex.js'\n\n/**\n * Check whether the character code represents an ASCII alpha (`a` through `z`,\n * case insensitive).\n *\n * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.\n *\n * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)\n * to U+005A (`Z`).\n *\n * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)\n * to U+007A (`z`).\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiAlpha = regexCheck(/[A-Za-z]/)\n\n/**\n * Check whether the character code represents an ASCII alphanumeric (`a`\n * through `z`, case insensitive, or `0` through `9`).\n *\n * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha\n * (see `asciiAlpha`).\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiAlphanumeric = regexCheck(/[\\dA-Za-z]/)\n\n/**\n * Check whether the character code represents an ASCII atext.\n *\n * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in\n * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),\n * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F\n * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E\n * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE\n * (`{`) to U+007E TILDE (`~`).\n *\n * See:\n * **\\[RFC5322]**:\n * [Internet Message Format](https://tools.ietf.org/html/rfc5322).\n * P. Resnick.\n * IETF.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiAtext = regexCheck(/[#-'*+\\--9=?A-Z^-~]/)\n\n/**\n * Check whether a character code is an ASCII control character.\n *\n * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)\n * to U+001F (US), or U+007F (DEL).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function asciiControl(code) {\n return (\n // Special whitespace codes (which have negative values), C0 and Control\n // character DEL\n code !== null && (code < 32 || code === 127)\n )\n}\n\n/**\n * Check whether the character code represents an ASCII digit (`0` through `9`).\n *\n * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to\n * U+0039 (`9`).\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiDigit = regexCheck(/\\d/)\n\n/**\n * Check whether the character code represents an ASCII hex digit (`a` through\n * `f`, case insensitive, or `0` through `9`).\n *\n * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex\n * digit, or an ASCII lower hex digit.\n *\n * An **ASCII upper hex digit** is a character in the inclusive range U+0041\n * (`A`) to U+0046 (`F`).\n *\n * An **ASCII lower hex digit** is a character in the inclusive range U+0061\n * (`a`) to U+0066 (`f`).\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiHexDigit = regexCheck(/[\\dA-Fa-f]/)\n\n/**\n * Check whether the character code represents ASCII punctuation.\n *\n * An **ASCII punctuation** is a character in the inclusive ranges U+0021\n * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT\n * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT\n * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/)\n\n/**\n * Check whether a character code is a markdown line ending.\n *\n * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN\n * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).\n *\n * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE\n * RETURN (CR) are replaced by these virtual characters depending on whether\n * they occurred together.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEnding(code) {\n return code !== null && code < -2\n}\n\n/**\n * Check whether a character code is a markdown line ending (see\n * `markdownLineEnding`) or markdown space (see `markdownSpace`).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEndingOrSpace(code) {\n return code !== null && (code < 0 || code === 32)\n}\n\n/**\n * Check whether a character code is a markdown space.\n *\n * A **markdown space** is the concrete character U+0020 SPACE (SP) and the\n * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).\n *\n * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is\n * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL\n * SPACE (VS) characters, depending on the column at which the tab occurred.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownSpace(code) {\n return code === -2 || code === -1 || code === 32\n}\n\n// Size note: removing ASCII from the regex and using `asciiPunctuation` here\n// In fact adds to the bundle size.\n/**\n * Check whether the character code represents Unicode punctuation.\n *\n * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,\n * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`\n * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`\n * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII\n * punctuation (see `asciiPunctuation`).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodePunctuation = regexCheck(unicodePunctuationRegex)\n\n/**\n * Check whether the character code represents Unicode whitespace.\n *\n * Note that this does handle micromark specific markdown whitespace characters.\n * See `markdownLineEndingOrSpace` to check that.\n *\n * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,\n * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),\n * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\\[UNICODE]**).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodeWhitespace = regexCheck(/\\s/)\n\n/**\n * Create a code check from a regex.\n *\n * @param {RegExp} regex\n * @returns {(code: Code) => boolean}\n */\nfunction regexCheck(regex) {\n return check\n\n /**\n * Check whether a code matches the bound regex.\n *\n * @param {Code} code\n * Character code.\n * @returns {boolean}\n * Whether the character code matches the bound regex.\n */\n function check(code) {\n return code !== null && regex.test(String.fromCharCode(code))\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenType} TokenType\n */\n\nimport {markdownSpace} from 'micromark-util-character'\n\n// To do: implement `spaceOrTab`, `spaceOrTabMinMax`, `spaceOrTabWithOptions`.\n\n/**\n * Parse spaces and tabs.\n *\n * There is no `nok` parameter:\n *\n * * spaces in markdown are often optional, in which case this factory can be\n * used and `ok` will be switched to whether spaces were found or not\n * * one line ending or space can be detected with `markdownSpace(code)` right\n * before using `factorySpace`\n *\n * ###### Examples\n *\n * Where `␉` represents a tab (plus how much it expands) and `␠` represents a\n * single space.\n *\n * ```markdown\n * ␉\n * ␠␠␠␠\n * ␉␠\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {TokenType} type\n * Type (`' \\t'`).\n * @param {number | undefined} [max=Infinity]\n * Max (exclusive).\n * @returns\n * Start state.\n */\nexport function factorySpace(effects, ok, type, max) {\n const limit = max ? max - 1 : Number.POSITIVE_INFINITY\n let size = 0\n return start\n\n /** @type {State} */\n function start(code) {\n if (markdownSpace(code)) {\n effects.enter(type)\n return prefix(code)\n }\n return ok(code)\n }\n\n /** @type {State} */\n function prefix(code) {\n if (markdownSpace(code) && size++ < limit) {\n effects.consume(code)\n return prefix\n }\n effects.exit(type)\n return ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').Initializer} Initializer\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {InitialConstruct} */\nexport const content = {\n tokenize: initializeContent\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Initializer}\n */\nfunction initializeContent(effects) {\n const contentStart = effects.attempt(\n this.parser.constructs.contentInitial,\n afterContentStartConstruct,\n paragraphInitial\n )\n /** @type {Token} */\n let previous\n return contentStart\n\n /** @type {State} */\n function afterContentStartConstruct(code) {\n if (code === null) {\n effects.consume(code)\n return\n }\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, contentStart, 'linePrefix')\n }\n\n /** @type {State} */\n function paragraphInitial(code) {\n effects.enter('paragraph')\n return lineStart(code)\n }\n\n /** @type {State} */\n function lineStart(code) {\n const token = effects.enter('chunkText', {\n contentType: 'text',\n previous\n })\n if (previous) {\n previous.next = token\n }\n previous = token\n return data(code)\n }\n\n /** @type {State} */\n function data(code) {\n if (code === null) {\n effects.exit('chunkText')\n effects.exit('paragraph')\n effects.consume(code)\n return\n }\n if (markdownLineEnding(code)) {\n effects.consume(code)\n effects.exit('chunkText')\n return lineStart\n }\n\n // Data.\n effects.consume(code)\n return data\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').ContainerState} ContainerState\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').Initializer} Initializer\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\n/**\n * @typedef {[Construct, ContainerState]} StackItem\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\nimport {splice} from 'micromark-util-chunked'\n/** @type {InitialConstruct} */\nexport const document = {\n tokenize: initializeDocument\n}\n\n/** @type {Construct} */\nconst containerConstruct = {\n tokenize: tokenizeContainer\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Initializer}\n */\nfunction initializeDocument(effects) {\n const self = this\n /** @type {Array} */\n const stack = []\n let continued = 0\n /** @type {TokenizeContext | undefined} */\n let childFlow\n /** @type {Token | undefined} */\n let childToken\n /** @type {number} */\n let lineStartOffset\n return start\n\n /** @type {State} */\n function start(code) {\n // First we iterate through the open blocks, starting with the root\n // document, and descending through last children down to the last open\n // block.\n // Each block imposes a condition that the line must satisfy if the block is\n // to remain open.\n // For example, a block quote requires a `>` character.\n // A paragraph requires a non-blank line.\n // In this phase we may match all or just some of the open blocks.\n // But we cannot close unmatched blocks yet, because we may have a lazy\n // continuation line.\n if (continued < stack.length) {\n const item = stack[continued]\n self.containerState = item[1]\n return effects.attempt(\n item[0].continuation,\n documentContinue,\n checkNewContainers\n )(code)\n }\n\n // Done.\n return checkNewContainers(code)\n }\n\n /** @type {State} */\n function documentContinue(code) {\n continued++\n\n // Note: this field is called `_closeFlow` but it also closes containers.\n // Perhaps a good idea to rename it but it’s already used in the wild by\n // extensions.\n if (self.containerState._closeFlow) {\n self.containerState._closeFlow = undefined\n if (childFlow) {\n closeFlow()\n }\n\n // Note: this algorithm for moving events around is similar to the\n // algorithm when dealing with lazy lines in `writeToChild`.\n const indexBeforeExits = self.events.length\n let indexBeforeFlow = indexBeforeExits\n /** @type {Point | undefined} */\n let point\n\n // Find the flow chunk.\n while (indexBeforeFlow--) {\n if (\n self.events[indexBeforeFlow][0] === 'exit' &&\n self.events[indexBeforeFlow][1].type === 'chunkFlow'\n ) {\n point = self.events[indexBeforeFlow][1].end\n break\n }\n }\n exitContainers(continued)\n\n // Fix positions.\n let index = indexBeforeExits\n while (index < self.events.length) {\n self.events[index][1].end = Object.assign({}, point)\n index++\n }\n\n // Inject the exits earlier (they’re still also at the end).\n splice(\n self.events,\n indexBeforeFlow + 1,\n 0,\n self.events.slice(indexBeforeExits)\n )\n\n // Discard the duplicate exits.\n self.events.length = index\n return checkNewContainers(code)\n }\n return start(code)\n }\n\n /** @type {State} */\n function checkNewContainers(code) {\n // Next, after consuming the continuation markers for existing blocks, we\n // look for new block starts (e.g. `>` for a block quote).\n // If we encounter a new block start, we close any blocks unmatched in\n // step 1 before creating the new block as a child of the last matched\n // block.\n if (continued === stack.length) {\n // No need to `check` whether there’s a container, of `exitContainers`\n // would be moot.\n // We can instead immediately `attempt` to parse one.\n if (!childFlow) {\n return documentContinued(code)\n }\n\n // If we have concrete content, such as block HTML or fenced code,\n // we can’t have containers “pierce” into them, so we can immediately\n // start.\n if (childFlow.currentConstruct && childFlow.currentConstruct.concrete) {\n return flowStart(code)\n }\n\n // If we do have flow, it could still be a blank line,\n // but we’d be interrupting it w/ a new container if there’s a current\n // construct.\n // To do: next major: remove `_gfmTableDynamicInterruptHack` (no longer\n // needed in micromark-extension-gfm-table@1.0.6).\n self.interrupt = Boolean(\n childFlow.currentConstruct && !childFlow._gfmTableDynamicInterruptHack\n )\n }\n\n // Check if there is a new container.\n self.containerState = {}\n return effects.check(\n containerConstruct,\n thereIsANewContainer,\n thereIsNoNewContainer\n )(code)\n }\n\n /** @type {State} */\n function thereIsANewContainer(code) {\n if (childFlow) closeFlow()\n exitContainers(continued)\n return documentContinued(code)\n }\n\n /** @type {State} */\n function thereIsNoNewContainer(code) {\n self.parser.lazy[self.now().line] = continued !== stack.length\n lineStartOffset = self.now().offset\n return flowStart(code)\n }\n\n /** @type {State} */\n function documentContinued(code) {\n // Try new containers.\n self.containerState = {}\n return effects.attempt(\n containerConstruct,\n containerContinue,\n flowStart\n )(code)\n }\n\n /** @type {State} */\n function containerContinue(code) {\n continued++\n stack.push([self.currentConstruct, self.containerState])\n // Try another.\n return documentContinued(code)\n }\n\n /** @type {State} */\n function flowStart(code) {\n if (code === null) {\n if (childFlow) closeFlow()\n exitContainers(0)\n effects.consume(code)\n return\n }\n childFlow = childFlow || self.parser.flow(self.now())\n effects.enter('chunkFlow', {\n contentType: 'flow',\n previous: childToken,\n _tokenizer: childFlow\n })\n return flowContinue(code)\n }\n\n /** @type {State} */\n function flowContinue(code) {\n if (code === null) {\n writeToChild(effects.exit('chunkFlow'), true)\n exitContainers(0)\n effects.consume(code)\n return\n }\n if (markdownLineEnding(code)) {\n effects.consume(code)\n writeToChild(effects.exit('chunkFlow'))\n // Get ready for the next line.\n continued = 0\n self.interrupt = undefined\n return start\n }\n effects.consume(code)\n return flowContinue\n }\n\n /**\n * @param {Token} token\n * @param {boolean | undefined} [eof]\n * @returns {void}\n */\n function writeToChild(token, eof) {\n const stream = self.sliceStream(token)\n if (eof) stream.push(null)\n token.previous = childToken\n if (childToken) childToken.next = token\n childToken = token\n childFlow.defineSkip(token.start)\n childFlow.write(stream)\n\n // Alright, so we just added a lazy line:\n //\n // ```markdown\n // > a\n // b.\n //\n // Or:\n //\n // > ~~~c\n // d\n //\n // Or:\n //\n // > | e |\n // f\n // ```\n //\n // The construct in the second example (fenced code) does not accept lazy\n // lines, so it marked itself as done at the end of its first line, and\n // then the content construct parses `d`.\n // Most constructs in markdown match on the first line: if the first line\n // forms a construct, a non-lazy line can’t “unmake” it.\n //\n // The construct in the third example is potentially a GFM table, and\n // those are *weird*.\n // It *could* be a table, from the first line, if the following line\n // matches a condition.\n // In this case, that second line is lazy, which “unmakes” the first line\n // and turns the whole into one content block.\n //\n // We’ve now parsed the non-lazy and the lazy line, and can figure out\n // whether the lazy line started a new flow block.\n // If it did, we exit the current containers between the two flow blocks.\n if (self.parser.lazy[token.start.line]) {\n let index = childFlow.events.length\n while (index--) {\n if (\n // The token starts before the line ending…\n childFlow.events[index][1].start.offset < lineStartOffset &&\n // …and either is not ended yet…\n (!childFlow.events[index][1].end ||\n // …or ends after it.\n childFlow.events[index][1].end.offset > lineStartOffset)\n ) {\n // Exit: there’s still something open, which means it’s a lazy line\n // part of something.\n return\n }\n }\n\n // Note: this algorithm for moving events around is similar to the\n // algorithm when closing flow in `documentContinue`.\n const indexBeforeExits = self.events.length\n let indexBeforeFlow = indexBeforeExits\n /** @type {boolean | undefined} */\n let seen\n /** @type {Point | undefined} */\n let point\n\n // Find the previous chunk (the one before the lazy line).\n while (indexBeforeFlow--) {\n if (\n self.events[indexBeforeFlow][0] === 'exit' &&\n self.events[indexBeforeFlow][1].type === 'chunkFlow'\n ) {\n if (seen) {\n point = self.events[indexBeforeFlow][1].end\n break\n }\n seen = true\n }\n }\n exitContainers(continued)\n\n // Fix positions.\n index = indexBeforeExits\n while (index < self.events.length) {\n self.events[index][1].end = Object.assign({}, point)\n index++\n }\n\n // Inject the exits earlier (they’re still also at the end).\n splice(\n self.events,\n indexBeforeFlow + 1,\n 0,\n self.events.slice(indexBeforeExits)\n )\n\n // Discard the duplicate exits.\n self.events.length = index\n }\n }\n\n /**\n * @param {number} size\n * @returns {void}\n */\n function exitContainers(size) {\n let index = stack.length\n\n // Exit open containers.\n while (index-- > size) {\n const entry = stack[index]\n self.containerState = entry[1]\n entry[0].exit.call(self, effects)\n }\n stack.length = size\n }\n function closeFlow() {\n childFlow.write([null])\n childToken = undefined\n childFlow = undefined\n self.containerState._closeFlow = undefined\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeContainer(effects, ok, nok) {\n // Always populated by defaults.\n\n return factorySpace(\n effects,\n effects.attempt(this.parser.constructs.document, ok, nok),\n 'linePrefix',\n this.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4\n )\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nexport const blankLine = {\n tokenize: tokenizeBlankLine,\n partial: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLine(effects, ok, nok) {\n return start\n\n /**\n * Start of blank line.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n return markdownSpace(code)\n ? factorySpace(effects, after, 'linePrefix')(code)\n : after(code)\n }\n\n /**\n * At eof/eol, after optional whitespace.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return code === null || markdownLineEnding(code) ? ok(code) : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Token} Token\n */\n\nimport {splice} from 'micromark-util-chunked'\n/**\n * Tokenize subcontent.\n *\n * @param {Array} events\n * List of events.\n * @returns {boolean}\n * Whether subtokens were found.\n */\nexport function subtokenize(events) {\n /** @type {Record} */\n const jumps = {}\n let index = -1\n /** @type {Event} */\n let event\n /** @type {number | undefined} */\n let lineIndex\n /** @type {number} */\n let otherIndex\n /** @type {Event} */\n let otherEvent\n /** @type {Array} */\n let parameters\n /** @type {Array} */\n let subevents\n /** @type {boolean | undefined} */\n let more\n while (++index < events.length) {\n while (index in jumps) {\n index = jumps[index]\n }\n event = events[index]\n\n // Add a hook for the GFM tasklist extension, which needs to know if text\n // is in the first content of a list item.\n if (\n index &&\n event[1].type === 'chunkFlow' &&\n events[index - 1][1].type === 'listItemPrefix'\n ) {\n subevents = event[1]._tokenizer.events\n otherIndex = 0\n if (\n otherIndex < subevents.length &&\n subevents[otherIndex][1].type === 'lineEndingBlank'\n ) {\n otherIndex += 2\n }\n if (\n otherIndex < subevents.length &&\n subevents[otherIndex][1].type === 'content'\n ) {\n while (++otherIndex < subevents.length) {\n if (subevents[otherIndex][1].type === 'content') {\n break\n }\n if (subevents[otherIndex][1].type === 'chunkText') {\n subevents[otherIndex][1]._isInFirstContentOfListItem = true\n otherIndex++\n }\n }\n }\n }\n\n // Enter.\n if (event[0] === 'enter') {\n if (event[1].contentType) {\n Object.assign(jumps, subcontent(events, index))\n index = jumps[index]\n more = true\n }\n }\n // Exit.\n else if (event[1]._container) {\n otherIndex = index\n lineIndex = undefined\n while (otherIndex--) {\n otherEvent = events[otherIndex]\n if (\n otherEvent[1].type === 'lineEnding' ||\n otherEvent[1].type === 'lineEndingBlank'\n ) {\n if (otherEvent[0] === 'enter') {\n if (lineIndex) {\n events[lineIndex][1].type = 'lineEndingBlank'\n }\n otherEvent[1].type = 'lineEnding'\n lineIndex = otherIndex\n }\n } else {\n break\n }\n }\n if (lineIndex) {\n // Fix position.\n event[1].end = Object.assign({}, events[lineIndex][1].start)\n\n // Switch container exit w/ line endings.\n parameters = events.slice(lineIndex, index)\n parameters.unshift(event)\n splice(events, lineIndex, index - lineIndex + 1, parameters)\n }\n }\n }\n return !more\n}\n\n/**\n * Tokenize embedded tokens.\n *\n * @param {Array} events\n * @param {number} eventIndex\n * @returns {Record}\n */\nfunction subcontent(events, eventIndex) {\n const token = events[eventIndex][1]\n const context = events[eventIndex][2]\n let startPosition = eventIndex - 1\n /** @type {Array} */\n const startPositions = []\n const tokenizer =\n token._tokenizer || context.parser[token.contentType](token.start)\n const childEvents = tokenizer.events\n /** @type {Array<[number, number]>} */\n const jumps = []\n /** @type {Record} */\n const gaps = {}\n /** @type {Array} */\n let stream\n /** @type {Token | undefined} */\n let previous\n let index = -1\n /** @type {Token | undefined} */\n let current = token\n let adjust = 0\n let start = 0\n const breaks = [start]\n\n // Loop forward through the linked tokens to pass them in order to the\n // subtokenizer.\n while (current) {\n // Find the position of the event for this token.\n while (events[++startPosition][1] !== current) {\n // Empty.\n }\n startPositions.push(startPosition)\n if (!current._tokenizer) {\n stream = context.sliceStream(current)\n if (!current.next) {\n stream.push(null)\n }\n if (previous) {\n tokenizer.defineSkip(current.start)\n }\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = true\n }\n tokenizer.write(stream)\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = undefined\n }\n }\n\n // Unravel the next token.\n previous = current\n current = current.next\n }\n\n // Now, loop back through all events (and linked tokens), to figure out which\n // parts belong where.\n current = token\n while (++index < childEvents.length) {\n if (\n // Find a void token that includes a break.\n childEvents[index][0] === 'exit' &&\n childEvents[index - 1][0] === 'enter' &&\n childEvents[index][1].type === childEvents[index - 1][1].type &&\n childEvents[index][1].start.line !== childEvents[index][1].end.line\n ) {\n start = index + 1\n breaks.push(start)\n // Help GC.\n current._tokenizer = undefined\n current.previous = undefined\n current = current.next\n }\n }\n\n // Help GC.\n tokenizer.events = []\n\n // If there’s one more token (which is the cases for lines that end in an\n // EOF), that’s perfect: the last point we found starts it.\n // If there isn’t then make sure any remaining content is added to it.\n if (current) {\n // Help GC.\n current._tokenizer = undefined\n current.previous = undefined\n } else {\n breaks.pop()\n }\n\n // Now splice the events from the subtokenizer into the current events,\n // moving back to front so that splice indices aren’t affected.\n index = breaks.length\n while (index--) {\n const slice = childEvents.slice(breaks[index], breaks[index + 1])\n const start = startPositions.pop()\n jumps.unshift([start, start + slice.length - 1])\n splice(events, start, 2, slice)\n }\n index = -1\n while (++index < jumps.length) {\n gaps[adjust + jumps[index][0]] = adjust + jumps[index][1]\n adjust += jumps[index][1] - jumps[index][0] - 1\n }\n return gaps\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\nimport {subtokenize} from 'micromark-util-subtokenize'\n/**\n * No name because it must not be turned off.\n * @type {Construct}\n */\nexport const content = {\n tokenize: tokenizeContent,\n resolve: resolveContent\n}\n\n/** @type {Construct} */\nconst continuationConstruct = {\n tokenize: tokenizeContinuation,\n partial: true\n}\n\n/**\n * Content is transparent: it’s parsed right now. That way, definitions are also\n * parsed right now: before text in paragraphs (specifically, media) are parsed.\n *\n * @type {Resolver}\n */\nfunction resolveContent(events) {\n subtokenize(events)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeContent(effects, ok) {\n /** @type {Token | undefined} */\n let previous\n return chunkStart\n\n /**\n * Before a content chunk.\n *\n * ```markdown\n * > | abc\n * ^\n * ```\n *\n * @type {State}\n */\n function chunkStart(code) {\n effects.enter('content')\n previous = effects.enter('chunkContent', {\n contentType: 'content'\n })\n return chunkInside(code)\n }\n\n /**\n * In a content chunk.\n *\n * ```markdown\n * > | abc\n * ^^^\n * ```\n *\n * @type {State}\n */\n function chunkInside(code) {\n if (code === null) {\n return contentEnd(code)\n }\n\n // To do: in `markdown-rs`, each line is parsed on its own, and everything\n // is stitched together resolving.\n if (markdownLineEnding(code)) {\n return effects.check(\n continuationConstruct,\n contentContinue,\n contentEnd\n )(code)\n }\n\n // Data.\n effects.consume(code)\n return chunkInside\n }\n\n /**\n *\n *\n * @type {State}\n */\n function contentEnd(code) {\n effects.exit('chunkContent')\n effects.exit('content')\n return ok(code)\n }\n\n /**\n *\n *\n * @type {State}\n */\n function contentContinue(code) {\n effects.consume(code)\n effects.exit('chunkContent')\n previous.next = effects.enter('chunkContent', {\n contentType: 'content',\n previous\n })\n previous = previous.next\n return chunkInside\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeContinuation(effects, ok, nok) {\n const self = this\n return startLookahead\n\n /**\n *\n *\n * @type {State}\n */\n function startLookahead(code) {\n effects.exit('chunkContent')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, prefixed, 'linePrefix')\n }\n\n /**\n *\n *\n * @type {State}\n */\n function prefixed(code) {\n if (code === null || markdownLineEnding(code)) {\n return nok(code)\n }\n\n // Always populated by defaults.\n\n const tail = self.events[self.events.length - 1]\n if (\n !self.parser.constructs.disable.null.includes('codeIndented') &&\n tail &&\n tail[1].type === 'linePrefix' &&\n tail[2].sliceSerialize(tail[1], true).length >= 4\n ) {\n return ok(code)\n }\n return effects.interrupt(self.parser.constructs.flow, nok, ok)(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').Initializer} Initializer\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\nimport {blankLine, content} from 'micromark-core-commonmark'\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {InitialConstruct} */\nexport const flow = {\n tokenize: initializeFlow\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Initializer}\n */\nfunction initializeFlow(effects) {\n const self = this\n const initial = effects.attempt(\n // Try to parse a blank line.\n blankLine,\n atBlankEnding,\n // Try to parse initial flow (essentially, only code).\n effects.attempt(\n this.parser.constructs.flowInitial,\n afterConstruct,\n factorySpace(\n effects,\n effects.attempt(\n this.parser.constructs.flow,\n afterConstruct,\n effects.attempt(content, afterConstruct)\n ),\n 'linePrefix'\n )\n )\n )\n return initial\n\n /** @type {State} */\n function atBlankEnding(code) {\n if (code === null) {\n effects.consume(code)\n return\n }\n effects.enter('lineEndingBlank')\n effects.consume(code)\n effects.exit('lineEndingBlank')\n self.currentConstruct = undefined\n return initial\n }\n\n /** @type {State} */\n function afterConstruct(code) {\n if (code === null) {\n effects.consume(code)\n return\n }\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n self.currentConstruct = undefined\n return initial\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').Initializer} Initializer\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\nexport const resolver = {\n resolveAll: createResolver()\n}\nexport const string = initializeFactory('string')\nexport const text = initializeFactory('text')\n\n/**\n * @param {'string' | 'text'} field\n * @returns {InitialConstruct}\n */\nfunction initializeFactory(field) {\n return {\n tokenize: initializeText,\n resolveAll: createResolver(\n field === 'text' ? resolveAllLineSuffixes : undefined\n )\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Initializer}\n */\n function initializeText(effects) {\n const self = this\n const constructs = this.parser.constructs[field]\n const text = effects.attempt(constructs, start, notText)\n return start\n\n /** @type {State} */\n function start(code) {\n return atBreak(code) ? text(code) : notText(code)\n }\n\n /** @type {State} */\n function notText(code) {\n if (code === null) {\n effects.consume(code)\n return\n }\n effects.enter('data')\n effects.consume(code)\n return data\n }\n\n /** @type {State} */\n function data(code) {\n if (atBreak(code)) {\n effects.exit('data')\n return text(code)\n }\n\n // Data.\n effects.consume(code)\n return data\n }\n\n /**\n * @param {Code} code\n * @returns {boolean}\n */\n function atBreak(code) {\n if (code === null) {\n return true\n }\n const list = constructs[code]\n let index = -1\n if (list) {\n // Always populated by defaults.\n\n while (++index < list.length) {\n const item = list[index]\n if (!item.previous || item.previous.call(self, self.previous)) {\n return true\n }\n }\n }\n return false\n }\n }\n}\n\n/**\n * @param {Resolver | undefined} [extraResolver]\n * @returns {Resolver}\n */\nfunction createResolver(extraResolver) {\n return resolveAllText\n\n /** @type {Resolver} */\n function resolveAllText(events, context) {\n let index = -1\n /** @type {number | undefined} */\n let enter\n\n // A rather boring computation (to merge adjacent `data` events) which\n // improves mm performance by 29%.\n while (++index <= events.length) {\n if (enter === undefined) {\n if (events[index] && events[index][1].type === 'data') {\n enter = index\n index++\n }\n } else if (!events[index] || events[index][1].type !== 'data') {\n // Don’t do anything if there is one data token.\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end\n events.splice(enter + 2, index - enter - 2)\n index = enter + 2\n }\n enter = undefined\n }\n }\n return extraResolver ? extraResolver(events, context) : events\n }\n}\n\n/**\n * A rather ugly set of instructions which again looks at chunks in the input\n * stream.\n * The reason to do this here is that it is *much* faster to parse in reverse.\n * And that we can’t hook into `null` to split the line suffix before an EOF.\n * To do: figure out if we can make this into a clean utility, or even in core.\n * As it will be useful for GFMs literal autolink extension (and maybe even\n * tables?)\n *\n * @type {Resolver}\n */\nfunction resolveAllLineSuffixes(events, context) {\n let eventIndex = 0 // Skip first.\n\n while (++eventIndex <= events.length) {\n if (\n (eventIndex === events.length ||\n events[eventIndex][1].type === 'lineEnding') &&\n events[eventIndex - 1][1].type === 'data'\n ) {\n const data = events[eventIndex - 1][1]\n const chunks = context.sliceStream(data)\n let index = chunks.length\n let bufferIndex = -1\n let size = 0\n /** @type {boolean | undefined} */\n let tabs\n while (index--) {\n const chunk = chunks[index]\n if (typeof chunk === 'string') {\n bufferIndex = chunk.length\n while (chunk.charCodeAt(bufferIndex - 1) === 32) {\n size++\n bufferIndex--\n }\n if (bufferIndex) break\n bufferIndex = -1\n }\n // Number\n else if (chunk === -2) {\n tabs = true\n size++\n } else if (chunk === -1) {\n // Empty\n } else {\n // Replacement character, exit.\n index++\n break\n }\n }\n if (size) {\n const token = {\n type:\n eventIndex === events.length || tabs || size < 2\n ? 'lineSuffix'\n : 'hardBreakTrailing',\n start: {\n line: data.end.line,\n column: data.end.column - size,\n offset: data.end.offset - size,\n _index: data.start._index + index,\n _bufferIndex: index\n ? bufferIndex\n : data.start._bufferIndex + bufferIndex\n },\n end: Object.assign({}, data.end)\n }\n data.end = Object.assign({}, token.start)\n if (data.start.offset === data.end.offset) {\n Object.assign(data, token)\n } else {\n events.splice(\n eventIndex,\n 0,\n ['enter', token, context],\n ['exit', token, context]\n )\n eventIndex += 2\n }\n }\n eventIndex++\n }\n }\n return events\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\n/**\n * Call all `resolveAll`s.\n *\n * @param {Array<{resolveAll?: Resolver | undefined}>} constructs\n * List of constructs, optionally with `resolveAll`s.\n * @param {Array} events\n * List of events.\n * @param {TokenizeContext} context\n * Context used by `tokenize`.\n * @returns {Array}\n * Changed events.\n */\nexport function resolveAll(constructs, events, context) {\n /** @type {Array} */\n const called = []\n let index = -1\n\n while (++index < constructs.length) {\n const resolve = constructs[index].resolveAll\n\n if (resolve && !called.includes(resolve)) {\n events = resolve(events, context)\n called.push(resolve)\n }\n }\n\n return events\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').ParseContext} ParseContext\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenType} TokenType\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\n/**\n * @callback Restore\n * @returns {void}\n *\n * @typedef Info\n * @property {Restore} restore\n * @property {number} from\n *\n * @callback ReturnHandle\n * Handle a successful run.\n * @param {Construct} construct\n * @param {Info} info\n * @returns {void}\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\nimport {push, splice} from 'micromark-util-chunked'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/**\n * Create a tokenizer.\n * Tokenizers deal with one type of data (e.g., containers, flow, text).\n * The parser is the object dealing with it all.\n * `initialize` works like other constructs, except that only its `tokenize`\n * function is used, in which case it doesn’t receive an `ok` or `nok`.\n * `from` can be given to set the point before the first character, although\n * when further lines are indented, they must be set with `defineSkip`.\n *\n * @param {ParseContext} parser\n * @param {InitialConstruct} initialize\n * @param {Omit | undefined} [from]\n * @returns {TokenizeContext}\n */\nexport function createTokenizer(parser, initialize, from) {\n /** @type {Point} */\n let point = Object.assign(\n from\n ? Object.assign({}, from)\n : {\n line: 1,\n column: 1,\n offset: 0\n },\n {\n _index: 0,\n _bufferIndex: -1\n }\n )\n /** @type {Record} */\n const columnStart = {}\n /** @type {Array} */\n const resolveAllConstructs = []\n /** @type {Array} */\n let chunks = []\n /** @type {Array} */\n let stack = []\n /** @type {boolean | undefined} */\n let consumed = true\n\n /**\n * Tools used for tokenizing.\n *\n * @type {Effects}\n */\n const effects = {\n consume,\n enter,\n exit,\n attempt: constructFactory(onsuccessfulconstruct),\n check: constructFactory(onsuccessfulcheck),\n interrupt: constructFactory(onsuccessfulcheck, {\n interrupt: true\n })\n }\n\n /**\n * State and tools for resolving and serializing.\n *\n * @type {TokenizeContext}\n */\n const context = {\n previous: null,\n code: null,\n containerState: {},\n events: [],\n parser,\n sliceStream,\n sliceSerialize,\n now,\n defineSkip,\n write\n }\n\n /**\n * The state function.\n *\n * @type {State | void}\n */\n let state = initialize.tokenize.call(context, effects)\n\n /**\n * Track which character we expect to be consumed, to catch bugs.\n *\n * @type {Code}\n */\n let expectedCode\n if (initialize.resolveAll) {\n resolveAllConstructs.push(initialize)\n }\n return context\n\n /** @type {TokenizeContext['write']} */\n function write(slice) {\n chunks = push(chunks, slice)\n main()\n\n // Exit if we’re not done, resolve might change stuff.\n if (chunks[chunks.length - 1] !== null) {\n return []\n }\n addResult(initialize, 0)\n\n // Otherwise, resolve, and exit.\n context.events = resolveAll(resolveAllConstructs, context.events, context)\n return context.events\n }\n\n //\n // Tools.\n //\n\n /** @type {TokenizeContext['sliceSerialize']} */\n function sliceSerialize(token, expandTabs) {\n return serializeChunks(sliceStream(token), expandTabs)\n }\n\n /** @type {TokenizeContext['sliceStream']} */\n function sliceStream(token) {\n return sliceChunks(chunks, token)\n }\n\n /** @type {TokenizeContext['now']} */\n function now() {\n // This is a hot path, so we clone manually instead of `Object.assign({}, point)`\n const {line, column, offset, _index, _bufferIndex} = point\n return {\n line,\n column,\n offset,\n _index,\n _bufferIndex\n }\n }\n\n /** @type {TokenizeContext['defineSkip']} */\n function defineSkip(value) {\n columnStart[value.line] = value.column\n accountForPotentialSkip()\n }\n\n //\n // State management.\n //\n\n /**\n * Main loop (note that `_index` and `_bufferIndex` in `point` are modified by\n * `consume`).\n * Here is where we walk through the chunks, which either include strings of\n * several characters, or numerical character codes.\n * The reason to do this in a loop instead of a call is so the stack can\n * drain.\n *\n * @returns {void}\n */\n function main() {\n /** @type {number} */\n let chunkIndex\n while (point._index < chunks.length) {\n const chunk = chunks[point._index]\n\n // If we’re in a buffer chunk, loop through it.\n if (typeof chunk === 'string') {\n chunkIndex = point._index\n if (point._bufferIndex < 0) {\n point._bufferIndex = 0\n }\n while (\n point._index === chunkIndex &&\n point._bufferIndex < chunk.length\n ) {\n go(chunk.charCodeAt(point._bufferIndex))\n }\n } else {\n go(chunk)\n }\n }\n }\n\n /**\n * Deal with one code.\n *\n * @param {Code} code\n * @returns {void}\n */\n function go(code) {\n consumed = undefined\n expectedCode = code\n state = state(code)\n }\n\n /** @type {Effects['consume']} */\n function consume(code) {\n if (markdownLineEnding(code)) {\n point.line++\n point.column = 1\n point.offset += code === -3 ? 2 : 1\n accountForPotentialSkip()\n } else if (code !== -1) {\n point.column++\n point.offset++\n }\n\n // Not in a string chunk.\n if (point._bufferIndex < 0) {\n point._index++\n } else {\n point._bufferIndex++\n\n // At end of string chunk.\n // @ts-expect-error Points w/ non-negative `_bufferIndex` reference\n // strings.\n if (point._bufferIndex === chunks[point._index].length) {\n point._bufferIndex = -1\n point._index++\n }\n }\n\n // Expose the previous character.\n context.previous = code\n\n // Mark as consumed.\n consumed = true\n }\n\n /** @type {Effects['enter']} */\n function enter(type, fields) {\n /** @type {Token} */\n // @ts-expect-error Patch instead of assign required fields to help GC.\n const token = fields || {}\n token.type = type\n token.start = now()\n context.events.push(['enter', token, context])\n stack.push(token)\n return token\n }\n\n /** @type {Effects['exit']} */\n function exit(type) {\n const token = stack.pop()\n token.end = now()\n context.events.push(['exit', token, context])\n return token\n }\n\n /**\n * Use results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulconstruct(construct, info) {\n addResult(construct, info.from)\n }\n\n /**\n * Discard results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulcheck(_, info) {\n info.restore()\n }\n\n /**\n * Factory to attempt/check/interrupt.\n *\n * @param {ReturnHandle} onreturn\n * @param {{interrupt?: boolean | undefined} | undefined} [fields]\n */\n function constructFactory(onreturn, fields) {\n return hook\n\n /**\n * Handle either an object mapping codes to constructs, a list of\n * constructs, or a single construct.\n *\n * @param {Array | Construct | ConstructRecord} constructs\n * @param {State} returnState\n * @param {State | undefined} [bogusState]\n * @returns {State}\n */\n function hook(constructs, returnState, bogusState) {\n /** @type {Array} */\n let listOfConstructs\n /** @type {number} */\n let constructIndex\n /** @type {Construct} */\n let currentConstruct\n /** @type {Info} */\n let info\n return Array.isArray(constructs) /* c8 ignore next 1 */\n ? handleListOfConstructs(constructs)\n : 'tokenize' in constructs\n ? // @ts-expect-error Looks like a construct.\n handleListOfConstructs([constructs])\n : handleMapOfConstructs(constructs)\n\n /**\n * Handle a list of construct.\n *\n * @param {ConstructRecord} map\n * @returns {State}\n */\n function handleMapOfConstructs(map) {\n return start\n\n /** @type {State} */\n function start(code) {\n const def = code !== null && map[code]\n const all = code !== null && map.null\n const list = [\n // To do: add more extension tests.\n /* c8 ignore next 2 */\n ...(Array.isArray(def) ? def : def ? [def] : []),\n ...(Array.isArray(all) ? all : all ? [all] : [])\n ]\n return handleListOfConstructs(list)(code)\n }\n }\n\n /**\n * Handle a list of construct.\n *\n * @param {Array} list\n * @returns {State}\n */\n function handleListOfConstructs(list) {\n listOfConstructs = list\n constructIndex = 0\n if (list.length === 0) {\n return bogusState\n }\n return handleConstruct(list[constructIndex])\n }\n\n /**\n * Handle a single construct.\n *\n * @param {Construct} construct\n * @returns {State}\n */\n function handleConstruct(construct) {\n return start\n\n /** @type {State} */\n function start(code) {\n // To do: not needed to store if there is no bogus state, probably?\n // Currently doesn’t work because `inspect` in document does a check\n // w/o a bogus, which doesn’t make sense. But it does seem to help perf\n // by not storing.\n info = store()\n currentConstruct = construct\n if (!construct.partial) {\n context.currentConstruct = construct\n }\n\n // Always populated by defaults.\n\n if (\n construct.name &&\n context.parser.constructs.disable.null.includes(construct.name)\n ) {\n return nok(code)\n }\n return construct.tokenize.call(\n // If we do have fields, create an object w/ `context` as its\n // prototype.\n // This allows a “live binding”, which is needed for `interrupt`.\n fields ? Object.assign(Object.create(context), fields) : context,\n effects,\n ok,\n nok\n )(code)\n }\n }\n\n /** @type {State} */\n function ok(code) {\n consumed = true\n onreturn(currentConstruct, info)\n return returnState\n }\n\n /** @type {State} */\n function nok(code) {\n consumed = true\n info.restore()\n if (++constructIndex < listOfConstructs.length) {\n return handleConstruct(listOfConstructs[constructIndex])\n }\n return bogusState\n }\n }\n }\n\n /**\n * @param {Construct} construct\n * @param {number} from\n * @returns {void}\n */\n function addResult(construct, from) {\n if (construct.resolveAll && !resolveAllConstructs.includes(construct)) {\n resolveAllConstructs.push(construct)\n }\n if (construct.resolve) {\n splice(\n context.events,\n from,\n context.events.length - from,\n construct.resolve(context.events.slice(from), context)\n )\n }\n if (construct.resolveTo) {\n context.events = construct.resolveTo(context.events, context)\n }\n }\n\n /**\n * Store state.\n *\n * @returns {Info}\n */\n function store() {\n const startPoint = now()\n const startPrevious = context.previous\n const startCurrentConstruct = context.currentConstruct\n const startEventsIndex = context.events.length\n const startStack = Array.from(stack)\n return {\n restore,\n from: startEventsIndex\n }\n\n /**\n * Restore state.\n *\n * @returns {void}\n */\n function restore() {\n point = startPoint\n context.previous = startPrevious\n context.currentConstruct = startCurrentConstruct\n context.events.length = startEventsIndex\n stack = startStack\n accountForPotentialSkip()\n }\n }\n\n /**\n * Move the current point a bit forward in the line when it’s on a column\n * skip.\n *\n * @returns {void}\n */\n function accountForPotentialSkip() {\n if (point.line in columnStart && point.column < 2) {\n point.column = columnStart[point.line]\n point.offset += columnStart[point.line] - 1\n }\n }\n}\n\n/**\n * Get the chunks from a slice of chunks in the range of a token.\n *\n * @param {Array} chunks\n * @param {Pick} token\n * @returns {Array}\n */\nfunction sliceChunks(chunks, token) {\n const startIndex = token.start._index\n const startBufferIndex = token.start._bufferIndex\n const endIndex = token.end._index\n const endBufferIndex = token.end._bufferIndex\n /** @type {Array} */\n let view\n if (startIndex === endIndex) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)]\n } else {\n view = chunks.slice(startIndex, endIndex)\n if (startBufferIndex > -1) {\n const head = view[0]\n if (typeof head === 'string') {\n view[0] = head.slice(startBufferIndex)\n } else {\n view.shift()\n }\n }\n if (endBufferIndex > 0) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view.push(chunks[endIndex].slice(0, endBufferIndex))\n }\n }\n return view\n}\n\n/**\n * Get the string value of a slice of chunks.\n *\n * @param {Array} chunks\n * @param {boolean | undefined} [expandTabs=false]\n * @returns {string}\n */\nfunction serializeChunks(chunks, expandTabs) {\n let index = -1\n /** @type {Array} */\n const result = []\n /** @type {boolean | undefined} */\n let atTab\n while (++index < chunks.length) {\n const chunk = chunks[index]\n /** @type {string} */\n let value\n if (typeof chunk === 'string') {\n value = chunk\n } else\n switch (chunk) {\n case -5: {\n value = '\\r'\n break\n }\n case -4: {\n value = '\\n'\n break\n }\n case -3: {\n value = '\\r' + '\\n'\n break\n }\n case -2: {\n value = expandTabs ? ' ' : '\\t'\n break\n }\n case -1: {\n if (!expandTabs && atTab) continue\n value = ' '\n break\n }\n default: {\n // Currently only replacement character.\n value = String.fromCharCode(chunk)\n }\n }\n atTab = chunk === -2\n result.push(value)\n }\n return result.join('')\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nexport const thematicBreak = {\n name: 'thematicBreak',\n tokenize: tokenizeThematicBreak\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeThematicBreak(effects, ok, nok) {\n let size = 0\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Start of thematic break.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('thematicBreak')\n // To do: parse indent like `markdown-rs`.\n return before(code)\n }\n\n /**\n * After optional whitespace, at marker.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n marker = code\n return atBreak(code)\n }\n\n /**\n * After something, before something else.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === marker) {\n effects.enter('thematicBreakSequence')\n return sequence(code)\n }\n if (size >= 3 && (code === null || markdownLineEnding(code))) {\n effects.exit('thematicBreak')\n return ok(code)\n }\n return nok(code)\n }\n\n /**\n * In sequence.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function sequence(code) {\n if (code === marker) {\n effects.consume(code)\n size++\n return sequence\n }\n effects.exit('thematicBreakSequence')\n return markdownSpace(code)\n ? factorySpace(effects, atBreak, 'whitespace')(code)\n : atBreak(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').ContainerState} ContainerState\n * @typedef {import('micromark-util-types').Exiter} Exiter\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {asciiDigit, markdownSpace} from 'micromark-util-character'\nimport {blankLine} from './blank-line.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/** @type {Construct} */\nexport const list = {\n name: 'list',\n tokenize: tokenizeListStart,\n continuation: {\n tokenize: tokenizeListContinuation\n },\n exit: tokenizeListEnd\n}\n\n/** @type {Construct} */\nconst listItemPrefixWhitespaceConstruct = {\n tokenize: tokenizeListItemPrefixWhitespace,\n partial: true\n}\n\n/** @type {Construct} */\nconst indentConstruct = {\n tokenize: tokenizeIndent,\n partial: true\n}\n\n// To do: `markdown-rs` parses list items on their own and later stitches them\n// together.\n\n/**\n * @type {Tokenizer}\n * @this {TokenizeContext}\n */\nfunction tokenizeListStart(effects, ok, nok) {\n const self = this\n const tail = self.events[self.events.length - 1]\n let initialSize =\n tail && tail[1].type === 'linePrefix'\n ? tail[2].sliceSerialize(tail[1], true).length\n : 0\n let size = 0\n return start\n\n /** @type {State} */\n function start(code) {\n const kind =\n self.containerState.type ||\n (code === 42 || code === 43 || code === 45\n ? 'listUnordered'\n : 'listOrdered')\n if (\n kind === 'listUnordered'\n ? !self.containerState.marker || code === self.containerState.marker\n : asciiDigit(code)\n ) {\n if (!self.containerState.type) {\n self.containerState.type = kind\n effects.enter(kind, {\n _container: true\n })\n }\n if (kind === 'listUnordered') {\n effects.enter('listItemPrefix')\n return code === 42 || code === 45\n ? effects.check(thematicBreak, nok, atMarker)(code)\n : atMarker(code)\n }\n if (!self.interrupt || code === 49) {\n effects.enter('listItemPrefix')\n effects.enter('listItemValue')\n return inside(code)\n }\n }\n return nok(code)\n }\n\n /** @type {State} */\n function inside(code) {\n if (asciiDigit(code) && ++size < 10) {\n effects.consume(code)\n return inside\n }\n if (\n (!self.interrupt || size < 2) &&\n (self.containerState.marker\n ? code === self.containerState.marker\n : code === 41 || code === 46)\n ) {\n effects.exit('listItemValue')\n return atMarker(code)\n }\n return nok(code)\n }\n\n /**\n * @type {State}\n **/\n function atMarker(code) {\n effects.enter('listItemMarker')\n effects.consume(code)\n effects.exit('listItemMarker')\n self.containerState.marker = self.containerState.marker || code\n return effects.check(\n blankLine,\n // Can’t be empty when interrupting.\n self.interrupt ? nok : onBlank,\n effects.attempt(\n listItemPrefixWhitespaceConstruct,\n endOfPrefix,\n otherPrefix\n )\n )\n }\n\n /** @type {State} */\n function onBlank(code) {\n self.containerState.initialBlankLine = true\n initialSize++\n return endOfPrefix(code)\n }\n\n /** @type {State} */\n function otherPrefix(code) {\n if (markdownSpace(code)) {\n effects.enter('listItemPrefixWhitespace')\n effects.consume(code)\n effects.exit('listItemPrefixWhitespace')\n return endOfPrefix\n }\n return nok(code)\n }\n\n /** @type {State} */\n function endOfPrefix(code) {\n self.containerState.size =\n initialSize +\n self.sliceSerialize(effects.exit('listItemPrefix'), true).length\n return ok(code)\n }\n}\n\n/**\n * @type {Tokenizer}\n * @this {TokenizeContext}\n */\nfunction tokenizeListContinuation(effects, ok, nok) {\n const self = this\n self.containerState._closeFlow = undefined\n return effects.check(blankLine, onBlank, notBlank)\n\n /** @type {State} */\n function onBlank(code) {\n self.containerState.furtherBlankLines =\n self.containerState.furtherBlankLines ||\n self.containerState.initialBlankLine\n\n // We have a blank line.\n // Still, try to consume at most the items size.\n return factorySpace(\n effects,\n ok,\n 'listItemIndent',\n self.containerState.size + 1\n )(code)\n }\n\n /** @type {State} */\n function notBlank(code) {\n if (self.containerState.furtherBlankLines || !markdownSpace(code)) {\n self.containerState.furtherBlankLines = undefined\n self.containerState.initialBlankLine = undefined\n return notInCurrentItem(code)\n }\n self.containerState.furtherBlankLines = undefined\n self.containerState.initialBlankLine = undefined\n return effects.attempt(indentConstruct, ok, notInCurrentItem)(code)\n }\n\n /** @type {State} */\n function notInCurrentItem(code) {\n // While we do continue, we signal that the flow should be closed.\n self.containerState._closeFlow = true\n // As we’re closing flow, we’re no longer interrupting.\n self.interrupt = undefined\n // Always populated by defaults.\n\n return factorySpace(\n effects,\n effects.attempt(list, ok, nok),\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n }\n}\n\n/**\n * @type {Tokenizer}\n * @this {TokenizeContext}\n */\nfunction tokenizeIndent(effects, ok, nok) {\n const self = this\n return factorySpace(\n effects,\n afterPrefix,\n 'listItemIndent',\n self.containerState.size + 1\n )\n\n /** @type {State} */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return tail &&\n tail[1].type === 'listItemIndent' &&\n tail[2].sliceSerialize(tail[1], true).length === self.containerState.size\n ? ok(code)\n : nok(code)\n }\n}\n\n/**\n * @type {Exiter}\n * @this {TokenizeContext}\n */\nfunction tokenizeListEnd(effects) {\n effects.exit(this.containerState.type)\n}\n\n/**\n * @type {Tokenizer}\n * @this {TokenizeContext}\n */\nfunction tokenizeListItemPrefixWhitespace(effects, ok, nok) {\n const self = this\n\n // Always populated by defaults.\n\n return factorySpace(\n effects,\n afterPrefix,\n 'listItemPrefixWhitespace',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4 + 1\n )\n\n /** @type {State} */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return !markdownSpace(code) &&\n tail &&\n tail[1].type === 'listItemPrefixWhitespace'\n ? ok(code)\n : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Exiter} Exiter\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nexport const blockQuote = {\n name: 'blockQuote',\n tokenize: tokenizeBlockQuoteStart,\n continuation: {\n tokenize: tokenizeBlockQuoteContinuation\n },\n exit\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlockQuoteStart(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of block quote.\n *\n * ```markdown\n * > | > a\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (code === 62) {\n const state = self.containerState\n if (!state.open) {\n effects.enter('blockQuote', {\n _container: true\n })\n state.open = true\n }\n effects.enter('blockQuotePrefix')\n effects.enter('blockQuoteMarker')\n effects.consume(code)\n effects.exit('blockQuoteMarker')\n return after\n }\n return nok(code)\n }\n\n /**\n * After `>`, before optional whitespace.\n *\n * ```markdown\n * > | > a\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (markdownSpace(code)) {\n effects.enter('blockQuotePrefixWhitespace')\n effects.consume(code)\n effects.exit('blockQuotePrefixWhitespace')\n effects.exit('blockQuotePrefix')\n return ok\n }\n effects.exit('blockQuotePrefix')\n return ok(code)\n }\n}\n\n/**\n * Start of block quote continuation.\n *\n * ```markdown\n * | > a\n * > | > b\n * ^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlockQuoteContinuation(effects, ok, nok) {\n const self = this\n return contStart\n\n /**\n * Start of block quote continuation.\n *\n * Also used to parse the first block quote opening.\n *\n * ```markdown\n * | > a\n * > | > b\n * ^\n * ```\n *\n * @type {State}\n */\n function contStart(code) {\n if (markdownSpace(code)) {\n // Always populated by defaults.\n\n return factorySpace(\n effects,\n contBefore,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n }\n return contBefore(code)\n }\n\n /**\n * At `>`, after optional whitespace.\n *\n * Also used to parse the first block quote opening.\n *\n * ```markdown\n * | > a\n * > | > b\n * ^\n * ```\n *\n * @type {State}\n */\n function contBefore(code) {\n return effects.attempt(blockQuote, ok, nok)(code)\n }\n}\n\n/** @type {Exiter} */\nfunction exit(effects) {\n effects.exit('blockQuote')\n}\n","/**\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenType} TokenType\n */\n\nimport {\n asciiControl,\n markdownLineEndingOrSpace,\n markdownLineEnding\n} from 'micromark-util-character'\n/**\n * Parse destinations.\n *\n * ###### Examples\n *\n * ```markdown\n * \n * b>\n * \n * \n * a\n * a\\)b\n * a(b)c\n * a(b)\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {State} nok\n * State switched to when unsuccessful.\n * @param {TokenType} type\n * Type for whole (`` or `b`).\n * @param {TokenType} literalType\n * Type when enclosed (``).\n * @param {TokenType} literalMarkerType\n * Type for enclosing (`<` and `>`).\n * @param {TokenType} rawType\n * Type when not enclosed (`b`).\n * @param {TokenType} stringType\n * Type for the value (`a` or `b`).\n * @param {number | undefined} [max=Infinity]\n * Depth of nested parens (inclusive).\n * @returns {State}\n * Start state.\n */ // eslint-disable-next-line max-params\nexport function factoryDestination(\n effects,\n ok,\n nok,\n type,\n literalType,\n literalMarkerType,\n rawType,\n stringType,\n max\n) {\n const limit = max || Number.POSITIVE_INFINITY\n let balance = 0\n return start\n\n /**\n * Start of destination.\n *\n * ```markdown\n * > | \n * ^\n * > | aa\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (code === 60) {\n effects.enter(type)\n effects.enter(literalType)\n effects.enter(literalMarkerType)\n effects.consume(code)\n effects.exit(literalMarkerType)\n return enclosedBefore\n }\n\n // ASCII control, space, closing paren.\n if (code === null || code === 32 || code === 41 || asciiControl(code)) {\n return nok(code)\n }\n effects.enter(type)\n effects.enter(rawType)\n effects.enter(stringType)\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return raw(code)\n }\n\n /**\n * After `<`, at an enclosed destination.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function enclosedBefore(code) {\n if (code === 62) {\n effects.enter(literalMarkerType)\n effects.consume(code)\n effects.exit(literalMarkerType)\n effects.exit(literalType)\n effects.exit(type)\n return ok\n }\n effects.enter(stringType)\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return enclosed(code)\n }\n\n /**\n * In enclosed destination.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function enclosed(code) {\n if (code === 62) {\n effects.exit('chunkString')\n effects.exit(stringType)\n return enclosedBefore(code)\n }\n if (code === null || code === 60 || markdownLineEnding(code)) {\n return nok(code)\n }\n effects.consume(code)\n return code === 92 ? enclosedEscape : enclosed\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function enclosedEscape(code) {\n if (code === 60 || code === 62 || code === 92) {\n effects.consume(code)\n return enclosed\n }\n return enclosed(code)\n }\n\n /**\n * In raw destination.\n *\n * ```markdown\n * > | aa\n * ^\n * ```\n *\n * @type {State}\n */\n function raw(code) {\n if (\n !balance &&\n (code === null || code === 41 || markdownLineEndingOrSpace(code))\n ) {\n effects.exit('chunkString')\n effects.exit(stringType)\n effects.exit(rawType)\n effects.exit(type)\n return ok(code)\n }\n if (balance < limit && code === 40) {\n effects.consume(code)\n balance++\n return raw\n }\n if (code === 41) {\n effects.consume(code)\n balance--\n return raw\n }\n\n // ASCII control (but *not* `\\0`) and space and `(`.\n // Note: in `markdown-rs`, `\\0` exists in codes, in `micromark-js` it\n // doesn’t.\n if (code === null || code === 32 || code === 40 || asciiControl(code)) {\n return nok(code)\n }\n effects.consume(code)\n return code === 92 ? rawEscape : raw\n }\n\n /**\n * After `\\`, at special character.\n *\n * ```markdown\n * > | a\\*a\n * ^\n * ```\n *\n * @type {State}\n */\n function rawEscape(code) {\n if (code === 40 || code === 41 || code === 92) {\n effects.consume(code)\n return raw\n }\n return raw(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').TokenType} TokenType\n */\n\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/**\n * Parse labels.\n *\n * > 👉 **Note**: labels in markdown are capped at 999 characters in the string.\n *\n * ###### Examples\n *\n * ```markdown\n * [a]\n * [a\n * b]\n * [a\\]b]\n * ```\n *\n * @this {TokenizeContext}\n * Tokenize context.\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {State} nok\n * State switched to when unsuccessful.\n * @param {TokenType} type\n * Type of the whole label (`[a]`).\n * @param {TokenType} markerType\n * Type for the markers (`[` and `]`).\n * @param {TokenType} stringType\n * Type for the identifier (`a`).\n * @returns {State}\n * Start state.\n */ // eslint-disable-next-line max-params\nexport function factoryLabel(effects, ok, nok, type, markerType, stringType) {\n const self = this\n let size = 0\n /** @type {boolean} */\n let seen\n return start\n\n /**\n * Start of label.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(type)\n effects.enter(markerType)\n effects.consume(code)\n effects.exit(markerType)\n effects.enter(stringType)\n return atBreak\n }\n\n /**\n * In label, at something, before something else.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (\n size > 999 ||\n code === null ||\n code === 91 ||\n (code === 93 && !seen) ||\n // To do: remove in the future once we’ve switched from\n // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,\n // which doesn’t need this.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n (code === 94 &&\n !size &&\n '_hiddenFootnoteSupport' in self.parser.constructs)\n ) {\n return nok(code)\n }\n if (code === 93) {\n effects.exit(stringType)\n effects.enter(markerType)\n effects.consume(code)\n effects.exit(markerType)\n effects.exit(type)\n return ok\n }\n\n // To do: indent? Link chunks and EOLs together?\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return atBreak\n }\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return labelInside(code)\n }\n\n /**\n * In label, in text.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function labelInside(code) {\n if (\n code === null ||\n code === 91 ||\n code === 93 ||\n markdownLineEnding(code) ||\n size++ > 999\n ) {\n effects.exit('chunkString')\n return atBreak(code)\n }\n effects.consume(code)\n if (!seen) seen = !markdownSpace(code)\n return code === 92 ? labelEscape : labelInside\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | [a\\*a]\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code)\n size++\n return labelInside\n }\n return labelInside(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenType} TokenType\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/**\n * Parse titles.\n *\n * ###### Examples\n *\n * ```markdown\n * \"a\"\n * 'b'\n * (c)\n * \"a\n * b\"\n * 'a\n * b'\n * (a\\)b)\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {State} nok\n * State switched to when unsuccessful.\n * @param {TokenType} type\n * Type of the whole title (`\"a\"`, `'b'`, `(c)`).\n * @param {TokenType} markerType\n * Type for the markers (`\"`, `'`, `(`, and `)`).\n * @param {TokenType} stringType\n * Type for the value (`a`).\n * @returns {State}\n * Start state.\n */ // eslint-disable-next-line max-params\nexport function factoryTitle(effects, ok, nok, type, markerType, stringType) {\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Start of title.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (code === 34 || code === 39 || code === 40) {\n effects.enter(type)\n effects.enter(markerType)\n effects.consume(code)\n effects.exit(markerType)\n marker = code === 40 ? 41 : code\n return begin\n }\n return nok(code)\n }\n\n /**\n * After opening marker.\n *\n * This is also used at the closing marker.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function begin(code) {\n if (code === marker) {\n effects.enter(markerType)\n effects.consume(code)\n effects.exit(markerType)\n effects.exit(type)\n return ok\n }\n effects.enter(stringType)\n return atBreak(code)\n }\n\n /**\n * At something, before something else.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === marker) {\n effects.exit(stringType)\n return begin(marker)\n }\n if (code === null) {\n return nok(code)\n }\n\n // Note: blank lines can’t exist in content.\n if (markdownLineEnding(code)) {\n // To do: use `space_or_tab_eol_with_options`, connect.\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, atBreak, 'linePrefix')\n }\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return inside(code)\n }\n\n /**\n *\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker || code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n return atBreak(code)\n }\n effects.consume(code)\n return code === 92 ? escape : inside\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | \"a\\*b\"\n * ^\n * ```\n *\n * @type {State}\n */\n function escape(code) {\n if (code === marker || code === 92) {\n effects.consume(code)\n return inside\n }\n return inside(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/**\n * Parse spaces and tabs.\n *\n * There is no `nok` parameter:\n *\n * * line endings or spaces in markdown are often optional, in which case this\n * factory can be used and `ok` will be switched to whether spaces were found\n * or not\n * * one line ending or space can be detected with\n * `markdownLineEndingOrSpace(code)` right before using `factoryWhitespace`\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @returns\n * Start state.\n */\nexport function factoryWhitespace(effects, ok) {\n /** @type {boolean} */\n let seen\n return start\n\n /** @type {State} */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n seen = true\n return start\n }\n if (markdownSpace(code)) {\n return factorySpace(\n effects,\n start,\n seen ? 'linePrefix' : 'lineSuffix'\n )(code)\n }\n return ok(code)\n }\n}\n","/**\n * Normalize an identifier (as found in references, definitions).\n *\n * Collapses markdown whitespace, trim, and then lower- and uppercase.\n *\n * Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\n * lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\n * uppercase character (U+0398 (`Θ`)).\n * So, to get a canonical form, we perform both lower- and uppercase.\n *\n * Using uppercase last makes sure keys will never interact with default\n * prototypal values (such as `constructor`): nothing in the prototype of\n * `Object` is uppercase.\n *\n * @param {string} value\n * Identifier to normalize.\n * @returns {string}\n * Normalized identifier.\n */\nexport function normalizeIdentifier(value) {\n return (\n value\n // Collapse markdown whitespace.\n .replace(/[\\t\\n\\r ]+/g, ' ')\n // Trim.\n .replace(/^ | $/g, '')\n // Some characters are considered “uppercase”, but if their lowercase\n // counterpart is uppercased will result in a different uppercase\n // character.\n // Hence, to get that form, we perform both lower- and uppercase.\n // Upper case makes sure keys will not interact with default prototypal\n // methods: no method is uppercase.\n .toLowerCase()\n .toUpperCase()\n )\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factoryDestination} from 'micromark-factory-destination'\nimport {factoryLabel} from 'micromark-factory-label'\nimport {factorySpace} from 'micromark-factory-space'\nimport {factoryTitle} from 'micromark-factory-title'\nimport {factoryWhitespace} from 'micromark-factory-whitespace'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n/** @type {Construct} */\nexport const definition = {\n name: 'definition',\n tokenize: tokenizeDefinition\n}\n\n/** @type {Construct} */\nconst titleBefore = {\n tokenize: tokenizeTitleBefore,\n partial: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDefinition(effects, ok, nok) {\n const self = this\n /** @type {string} */\n let identifier\n return start\n\n /**\n * At start of a definition.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Do not interrupt paragraphs (but do follow definitions).\n // To do: do `interrupt` the way `markdown-rs` does.\n // To do: parse whitespace the way `markdown-rs` does.\n effects.enter('definition')\n return before(code)\n }\n\n /**\n * After optional whitespace, at `[`.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n // To do: parse whitespace the way `markdown-rs` does.\n\n return factoryLabel.call(\n self,\n effects,\n labelAfter,\n // Note: we don’t need to reset the way `markdown-rs` does.\n nok,\n 'definitionLabel',\n 'definitionLabelMarker',\n 'definitionLabelString'\n )(code)\n }\n\n /**\n * After label.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function labelAfter(code) {\n identifier = normalizeIdentifier(\n self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1)\n )\n if (code === 58) {\n effects.enter('definitionMarker')\n effects.consume(code)\n effects.exit('definitionMarker')\n return markerAfter\n }\n return nok(code)\n }\n\n /**\n * After marker.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function markerAfter(code) {\n // Note: whitespace is optional.\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, destinationBefore)(code)\n : destinationBefore(code)\n }\n\n /**\n * Before destination.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function destinationBefore(code) {\n return factoryDestination(\n effects,\n destinationAfter,\n // Note: we don’t need to reset the way `markdown-rs` does.\n nok,\n 'definitionDestination',\n 'definitionDestinationLiteral',\n 'definitionDestinationLiteralMarker',\n 'definitionDestinationRaw',\n 'definitionDestinationString'\n )(code)\n }\n\n /**\n * After destination.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function destinationAfter(code) {\n return effects.attempt(titleBefore, after, after)(code)\n }\n\n /**\n * After definition.\n *\n * ```markdown\n * > | [a]: b\n * ^\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return markdownSpace(code)\n ? factorySpace(effects, afterWhitespace, 'whitespace')(code)\n : afterWhitespace(code)\n }\n\n /**\n * After definition, after optional whitespace.\n *\n * ```markdown\n * > | [a]: b\n * ^\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function afterWhitespace(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('definition')\n\n // Note: we don’t care about uniqueness.\n // It’s likely that that doesn’t happen very frequently.\n // It is more likely that it wastes precious time.\n self.parser.defined.push(identifier)\n\n // To do: `markdown-rs` interrupt.\n // // You’d be interrupting.\n // tokenizer.interrupt = true\n return ok(code)\n }\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTitleBefore(effects, ok, nok) {\n return titleBefore\n\n /**\n * After destination, at whitespace.\n *\n * ```markdown\n * > | [a]: b\n * ^\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function titleBefore(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, beforeMarker)(code)\n : nok(code)\n }\n\n /**\n * At title.\n *\n * ```markdown\n * | [a]: b\n * > | \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function beforeMarker(code) {\n return factoryTitle(\n effects,\n titleAfter,\n nok,\n 'definitionTitle',\n 'definitionTitleMarker',\n 'definitionTitleString'\n )(code)\n }\n\n /**\n * After title.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function titleAfter(code) {\n return markdownSpace(code)\n ? factorySpace(effects, titleAfterOptionalWhitespace, 'whitespace')(code)\n : titleAfterOptionalWhitespace(code)\n }\n\n /**\n * After title, after optional whitespace.\n *\n * ```markdown\n * > | [a]: b \"c\"\n * ^\n * ```\n *\n * @type {State}\n */\n function titleAfterOptionalWhitespace(code) {\n return code === null || markdownLineEnding(code) ? ok(code) : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nexport const codeIndented = {\n name: 'codeIndented',\n tokenize: tokenizeCodeIndented\n}\n\n/** @type {Construct} */\nconst furtherStart = {\n tokenize: tokenizeFurtherStart,\n partial: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeIndented(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of code (indented).\n *\n * > **Parsing note**: it is not needed to check if this first line is a\n * > filled line (that it has a non-whitespace character), because blank lines\n * > are parsed already, so we never run into that.\n *\n * ```markdown\n * > | aaa\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: manually check if interrupting like `markdown-rs`.\n\n effects.enter('codeIndented')\n // To do: use an improved `space_or_tab` function like `markdown-rs`,\n // so that we can drop the next state.\n return factorySpace(effects, afterPrefix, 'linePrefix', 4 + 1)(code)\n }\n\n /**\n * At start, after 1 or 4 spaces.\n *\n * ```markdown\n * > | aaa\n * ^\n * ```\n *\n * @type {State}\n */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return tail &&\n tail[1].type === 'linePrefix' &&\n tail[2].sliceSerialize(tail[1], true).length >= 4\n ? atBreak(code)\n : nok(code)\n }\n\n /**\n * At a break.\n *\n * ```markdown\n * > | aaa\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === null) {\n return after(code)\n }\n if (markdownLineEnding(code)) {\n return effects.attempt(furtherStart, atBreak, after)(code)\n }\n effects.enter('codeFlowValue')\n return inside(code)\n }\n\n /**\n * In code content.\n *\n * ```markdown\n * > | aaa\n * ^^^^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFlowValue')\n return atBreak(code)\n }\n effects.consume(code)\n return inside\n }\n\n /** @type {State} */\n function after(code) {\n effects.exit('codeIndented')\n // To do: allow interrupting like `markdown-rs`.\n // Feel free to interrupt.\n // tokenizer.interrupt = false\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeFurtherStart(effects, ok, nok) {\n const self = this\n return furtherStart\n\n /**\n * At eol, trying to parse another indent.\n *\n * ```markdown\n * > | aaa\n * ^\n * | bbb\n * ```\n *\n * @type {State}\n */\n function furtherStart(code) {\n // To do: improve `lazy` / `pierce` handling.\n // If this is a lazy line, it can’t be code.\n if (self.parser.lazy[self.now().line]) {\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return furtherStart\n }\n\n // To do: the code here in `micromark-js` is a bit different from\n // `markdown-rs` because there it can attempt spaces.\n // We can’t yet.\n //\n // To do: use an improved `space_or_tab` function like `markdown-rs`,\n // so that we can drop the next state.\n return factorySpace(effects, afterPrefix, 'linePrefix', 4 + 1)(code)\n }\n\n /**\n * At start, after 1 or 4 spaces.\n *\n * ```markdown\n * > | aaa\n * ^\n * ```\n *\n * @type {State}\n */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return tail &&\n tail[1].type === 'linePrefix' &&\n tail[2].sliceSerialize(tail[1], true).length >= 4\n ? ok(code)\n : markdownLineEnding(code)\n ? furtherStart(code)\n : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nimport {splice} from 'micromark-util-chunked'\n/** @type {Construct} */\nexport const headingAtx = {\n name: 'headingAtx',\n tokenize: tokenizeHeadingAtx,\n resolve: resolveHeadingAtx\n}\n\n/** @type {Resolver} */\nfunction resolveHeadingAtx(events, context) {\n let contentEnd = events.length - 2\n let contentStart = 3\n /** @type {Token} */\n let content\n /** @type {Token} */\n let text\n\n // Prefix whitespace, part of the opening.\n if (events[contentStart][1].type === 'whitespace') {\n contentStart += 2\n }\n\n // Suffix whitespace, part of the closing.\n if (\n contentEnd - 2 > contentStart &&\n events[contentEnd][1].type === 'whitespace'\n ) {\n contentEnd -= 2\n }\n if (\n events[contentEnd][1].type === 'atxHeadingSequence' &&\n (contentStart === contentEnd - 1 ||\n (contentEnd - 4 > contentStart &&\n events[contentEnd - 2][1].type === 'whitespace'))\n ) {\n contentEnd -= contentStart + 1 === contentEnd ? 2 : 4\n }\n if (contentEnd > contentStart) {\n content = {\n type: 'atxHeadingText',\n start: events[contentStart][1].start,\n end: events[contentEnd][1].end\n }\n text = {\n type: 'chunkText',\n start: events[contentStart][1].start,\n end: events[contentEnd][1].end,\n contentType: 'text'\n }\n splice(events, contentStart, contentEnd - contentStart + 1, [\n ['enter', content, context],\n ['enter', text, context],\n ['exit', text, context],\n ['exit', content, context]\n ])\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHeadingAtx(effects, ok, nok) {\n let size = 0\n return start\n\n /**\n * Start of a heading (atx).\n *\n * ```markdown\n * > | ## aa\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse indent like `markdown-rs`.\n effects.enter('atxHeading')\n return before(code)\n }\n\n /**\n * After optional whitespace, at `#`.\n *\n * ```markdown\n * > | ## aa\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n effects.enter('atxHeadingSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening sequence.\n *\n * ```markdown\n * > | ## aa\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === 35 && size++ < 6) {\n effects.consume(code)\n return sequenceOpen\n }\n\n // Always at least one `#`.\n if (code === null || markdownLineEndingOrSpace(code)) {\n effects.exit('atxHeadingSequence')\n return atBreak(code)\n }\n return nok(code)\n }\n\n /**\n * After something, before something else.\n *\n * ```markdown\n * > | ## aa\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === 35) {\n effects.enter('atxHeadingSequence')\n return sequenceFurther(code)\n }\n if (code === null || markdownLineEnding(code)) {\n effects.exit('atxHeading')\n // To do: interrupt like `markdown-rs`.\n // // Feel free to interrupt.\n // tokenizer.interrupt = false\n return ok(code)\n }\n if (markdownSpace(code)) {\n return factorySpace(effects, atBreak, 'whitespace')(code)\n }\n\n // To do: generate `data` tokens, add the `text` token later.\n // Needs edit map, see: `markdown.rs`.\n effects.enter('atxHeadingText')\n return data(code)\n }\n\n /**\n * In further sequence (after whitespace).\n *\n * Could be normal “visible” hashes in the heading or a final sequence.\n *\n * ```markdown\n * > | ## aa ##\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceFurther(code) {\n if (code === 35) {\n effects.consume(code)\n return sequenceFurther\n }\n effects.exit('atxHeadingSequence')\n return atBreak(code)\n }\n\n /**\n * In text.\n *\n * ```markdown\n * > | ## aa\n * ^\n * ```\n *\n * @type {State}\n */\n function data(code) {\n if (code === null || code === 35 || markdownLineEndingOrSpace(code)) {\n effects.exit('atxHeadingText')\n return atBreak(code)\n }\n effects.consume(code)\n return data\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nexport const setextUnderline = {\n name: 'setextUnderline',\n tokenize: tokenizeSetextUnderline,\n resolveTo: resolveToSetextUnderline\n}\n\n/** @type {Resolver} */\nfunction resolveToSetextUnderline(events, context) {\n // To do: resolve like `markdown-rs`.\n let index = events.length\n /** @type {number | undefined} */\n let content\n /** @type {number | undefined} */\n let text\n /** @type {number | undefined} */\n let definition\n\n // Find the opening of the content.\n // It’ll always exist: we don’t tokenize if it isn’t there.\n while (index--) {\n if (events[index][0] === 'enter') {\n if (events[index][1].type === 'content') {\n content = index\n break\n }\n if (events[index][1].type === 'paragraph') {\n text = index\n }\n }\n // Exit\n else {\n if (events[index][1].type === 'content') {\n // Remove the content end (if needed we’ll add it later)\n events.splice(index, 1)\n }\n if (!definition && events[index][1].type === 'definition') {\n definition = index\n }\n }\n }\n const heading = {\n type: 'setextHeading',\n start: Object.assign({}, events[text][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n\n // Change the paragraph to setext heading text.\n events[text][1].type = 'setextHeadingText'\n\n // If we have definitions in the content, we’ll keep on having content,\n // but we need move it.\n if (definition) {\n events.splice(text, 0, ['enter', heading, context])\n events.splice(definition + 1, 0, ['exit', events[content][1], context])\n events[content][1].end = Object.assign({}, events[definition][1].end)\n } else {\n events[content][1] = heading\n }\n\n // Add the heading exit at the end.\n events.push(['exit', heading, context])\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeSetextUnderline(effects, ok, nok) {\n const self = this\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * At start of heading (setext) underline.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n let index = self.events.length\n /** @type {boolean | undefined} */\n let paragraph\n // Find an opening.\n while (index--) {\n // Skip enter/exit of line ending, line prefix, and content.\n // We can now either have a definition or a paragraph.\n if (\n self.events[index][1].type !== 'lineEnding' &&\n self.events[index][1].type !== 'linePrefix' &&\n self.events[index][1].type !== 'content'\n ) {\n paragraph = self.events[index][1].type === 'paragraph'\n break\n }\n }\n\n // To do: handle lazy/pierce like `markdown-rs`.\n // To do: parse indent like `markdown-rs`.\n if (!self.parser.lazy[self.now().line] && (self.interrupt || paragraph)) {\n effects.enter('setextHeadingLine')\n marker = code\n return before(code)\n }\n return nok(code)\n }\n\n /**\n * After optional whitespace, at `-` or `=`.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n effects.enter('setextHeadingLineSequence')\n return inside(code)\n }\n\n /**\n * In sequence.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code)\n return inside\n }\n effects.exit('setextHeadingLineSequence')\n return markdownSpace(code)\n ? factorySpace(effects, after, 'lineSuffix')(code)\n : after(code)\n }\n\n /**\n * After sequence, after optional whitespace.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('setextHeadingLine')\n return ok(code)\n }\n return nok(code)\n }\n}\n","/**\n * List of lowercase HTML “block” tag names.\n *\n * The list, when parsing HTML (flow), results in more relaxed rules (condition\n * 6).\n * Because they are known blocks, the HTML-like syntax doesn’t have to be\n * strictly parsed.\n * For tag names not in this list, a more strict algorithm (condition 7) is used\n * to detect whether the HTML-like syntax is seen as HTML (flow) or not.\n *\n * This is copied from:\n * .\n *\n * > 👉 **Note**: `search` was added in `CommonMark@0.31`.\n */\nexport const htmlBlockNames = [\n 'address',\n 'article',\n 'aside',\n 'base',\n 'basefont',\n 'blockquote',\n 'body',\n 'caption',\n 'center',\n 'col',\n 'colgroup',\n 'dd',\n 'details',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'footer',\n 'form',\n 'frame',\n 'frameset',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hr',\n 'html',\n 'iframe',\n 'legend',\n 'li',\n 'link',\n 'main',\n 'menu',\n 'menuitem',\n 'nav',\n 'noframes',\n 'ol',\n 'optgroup',\n 'option',\n 'p',\n 'param',\n 'search',\n 'section',\n 'summary',\n 'table',\n 'tbody',\n 'td',\n 'tfoot',\n 'th',\n 'thead',\n 'title',\n 'tr',\n 'track',\n 'ul'\n]\n\n/**\n * List of lowercase HTML “raw” tag names.\n *\n * The list, when parsing HTML (flow), results in HTML that can include lines\n * without exiting, until a closing tag also in this list is found (condition\n * 1).\n *\n * This module is copied from:\n * .\n *\n * > 👉 **Note**: `textarea` was added in `CommonMark@0.30`.\n */\nexport const htmlRawNames = ['pre', 'script', 'style', 'textarea']\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nimport {htmlBlockNames, htmlRawNames} from 'micromark-util-html-tag-name'\nimport {blankLine} from './blank-line.js'\n\n/** @type {Construct} */\nexport const htmlFlow = {\n name: 'htmlFlow',\n tokenize: tokenizeHtmlFlow,\n resolveTo: resolveToHtmlFlow,\n concrete: true\n}\n\n/** @type {Construct} */\nconst blankLineBefore = {\n tokenize: tokenizeBlankLineBefore,\n partial: true\n}\nconst nonLazyContinuationStart = {\n tokenize: tokenizeNonLazyContinuationStart,\n partial: true\n}\n\n/** @type {Resolver} */\nfunction resolveToHtmlFlow(events) {\n let index = events.length\n while (index--) {\n if (events[index][0] === 'enter' && events[index][1].type === 'htmlFlow') {\n break\n }\n }\n if (index > 1 && events[index - 2][1].type === 'linePrefix') {\n // Add the prefix start to the HTML token.\n events[index][1].start = events[index - 2][1].start\n // Add the prefix start to the HTML line token.\n events[index + 1][1].start = events[index - 2][1].start\n // Remove the line prefix.\n events.splice(index - 2, 2)\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHtmlFlow(effects, ok, nok) {\n const self = this\n /** @type {number} */\n let marker\n /** @type {boolean} */\n let closingTag\n /** @type {string} */\n let buffer\n /** @type {number} */\n let index\n /** @type {Code} */\n let markerB\n return start\n\n /**\n * Start of HTML (flow).\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse indent like `markdown-rs`.\n return before(code)\n }\n\n /**\n * At `<`, after optional whitespace.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n effects.enter('htmlFlow')\n effects.enter('htmlFlowData')\n effects.consume(code)\n return open\n }\n\n /**\n * After `<`, at tag name or other stuff.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 33) {\n effects.consume(code)\n return declarationOpen\n }\n if (code === 47) {\n effects.consume(code)\n closingTag = true\n return tagCloseStart\n }\n if (code === 63) {\n effects.consume(code)\n marker = 3\n // To do:\n // tokenizer.concrete = true\n // To do: use `markdown-rs` style interrupt.\n // While we’re in an instruction instead of a declaration, we’re on a `?`\n // right now, so we do need to search for `>`, similar to declarations.\n return self.interrupt ? ok : continuationDeclarationInside\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n // @ts-expect-error: not null.\n buffer = String.fromCharCode(code)\n return tagName\n }\n return nok(code)\n }\n\n /**\n * After ` | \n * ^\n * > | \n * ^\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function declarationOpen(code) {\n if (code === 45) {\n effects.consume(code)\n marker = 2\n return commentOpenInside\n }\n if (code === 91) {\n effects.consume(code)\n marker = 5\n index = 0\n return cdataOpenInside\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n marker = 4\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok : continuationDeclarationInside\n }\n return nok(code)\n }\n\n /**\n * After ` | \n * ^\n * ```\n *\n * @type {State}\n */\n function commentOpenInside(code) {\n if (code === 45) {\n effects.consume(code)\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok : continuationDeclarationInside\n }\n return nok(code)\n }\n\n /**\n * After ` | &<]]>\n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function cdataOpenInside(code) {\n const value = 'CDATA['\n if (code === value.charCodeAt(index++)) {\n effects.consume(code)\n if (index === value.length) {\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok : continuation\n }\n return cdataOpenInside\n }\n return nok(code)\n }\n\n /**\n * After ` | \n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseStart(code) {\n if (asciiAlpha(code)) {\n effects.consume(code)\n // @ts-expect-error: not null.\n buffer = String.fromCharCode(code)\n return tagName\n }\n return nok(code)\n }\n\n /**\n * In tag name.\n *\n * ```markdown\n * > | \n * ^^\n * > | \n * ^^\n * ```\n *\n * @type {State}\n */\n function tagName(code) {\n if (\n code === null ||\n code === 47 ||\n code === 62 ||\n markdownLineEndingOrSpace(code)\n ) {\n const slash = code === 47\n const name = buffer.toLowerCase()\n if (!slash && !closingTag && htmlRawNames.includes(name)) {\n marker = 1\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok(code) : continuation(code)\n }\n if (htmlBlockNames.includes(buffer.toLowerCase())) {\n marker = 6\n if (slash) {\n effects.consume(code)\n return basicSelfClosing\n }\n\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok(code) : continuation(code)\n }\n marker = 7\n // Do not support complete HTML when interrupting.\n return self.interrupt && !self.parser.lazy[self.now().line]\n ? nok(code)\n : closingTag\n ? completeClosingTagAfter(code)\n : completeAttributeNameBefore(code)\n }\n\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n buffer += String.fromCharCode(code)\n return tagName\n }\n return nok(code)\n }\n\n /**\n * After closing slash of a basic tag name.\n *\n * ```markdown\n * > |
\n * ^\n * ```\n *\n * @type {State}\n */\n function basicSelfClosing(code) {\n if (code === 62) {\n effects.consume(code)\n // // Do not form containers.\n // tokenizer.concrete = true\n return self.interrupt ? ok : continuation\n }\n return nok(code)\n }\n\n /**\n * After closing slash of a complete tag name.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeClosingTagAfter(code) {\n if (markdownSpace(code)) {\n effects.consume(code)\n return completeClosingTagAfter\n }\n return completeEnd(code)\n }\n\n /**\n * At an attribute name.\n *\n * At first, this state is used after a complete tag name, after whitespace,\n * where it expects optional attributes or the end of the tag.\n * It is also reused after attributes, when expecting more optional\n * attributes.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeNameBefore(code) {\n if (code === 47) {\n effects.consume(code)\n return completeEnd\n }\n\n // ASCII alphanumerical and `:` and `_`.\n if (code === 58 || code === 95 || asciiAlpha(code)) {\n effects.consume(code)\n return completeAttributeName\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return completeAttributeNameBefore\n }\n return completeEnd(code)\n }\n\n /**\n * In attribute name.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeName(code) {\n // ASCII alphanumerical and `-`, `.`, `:`, and `_`.\n if (\n code === 45 ||\n code === 46 ||\n code === 58 ||\n code === 95 ||\n asciiAlphanumeric(code)\n ) {\n effects.consume(code)\n return completeAttributeName\n }\n return completeAttributeNameAfter(code)\n }\n\n /**\n * After attribute name, at an optional initializer, the end of the tag, or\n * whitespace.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeNameAfter(code) {\n if (code === 61) {\n effects.consume(code)\n return completeAttributeValueBefore\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return completeAttributeNameAfter\n }\n return completeAttributeNameBefore(code)\n }\n\n /**\n * Before unquoted, double quoted, or single quoted attribute value, allowing\n * whitespace.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeValueBefore(code) {\n if (\n code === null ||\n code === 60 ||\n code === 61 ||\n code === 62 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 34 || code === 39) {\n effects.consume(code)\n markerB = code\n return completeAttributeValueQuoted\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return completeAttributeValueBefore\n }\n return completeAttributeValueUnquoted(code)\n }\n\n /**\n * In double or single quoted attribute value.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeValueQuoted(code) {\n if (code === markerB) {\n effects.consume(code)\n markerB = null\n return completeAttributeValueQuotedAfter\n }\n if (code === null || markdownLineEnding(code)) {\n return nok(code)\n }\n effects.consume(code)\n return completeAttributeValueQuoted\n }\n\n /**\n * In unquoted attribute value.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeValueUnquoted(code) {\n if (\n code === null ||\n code === 34 ||\n code === 39 ||\n code === 47 ||\n code === 60 ||\n code === 61 ||\n code === 62 ||\n code === 96 ||\n markdownLineEndingOrSpace(code)\n ) {\n return completeAttributeNameAfter(code)\n }\n effects.consume(code)\n return completeAttributeValueUnquoted\n }\n\n /**\n * After double or single quoted attribute value, before whitespace or the\n * end of the tag.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAttributeValueQuotedAfter(code) {\n if (code === 47 || code === 62 || markdownSpace(code)) {\n return completeAttributeNameBefore(code)\n }\n return nok(code)\n }\n\n /**\n * In certain circumstances of a complete tag where only an `>` is allowed.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeEnd(code) {\n if (code === 62) {\n effects.consume(code)\n return completeAfter\n }\n return nok(code)\n }\n\n /**\n * After `>` in a complete tag.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function completeAfter(code) {\n if (code === null || markdownLineEnding(code)) {\n // // Do not form containers.\n // tokenizer.concrete = true\n return continuation(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return completeAfter\n }\n return nok(code)\n }\n\n /**\n * In continuation of any HTML kind.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuation(code) {\n if (code === 45 && marker === 2) {\n effects.consume(code)\n return continuationCommentInside\n }\n if (code === 60 && marker === 1) {\n effects.consume(code)\n return continuationRawTagOpen\n }\n if (code === 62 && marker === 4) {\n effects.consume(code)\n return continuationClose\n }\n if (code === 63 && marker === 3) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n if (code === 93 && marker === 5) {\n effects.consume(code)\n return continuationCdataInside\n }\n if (markdownLineEnding(code) && (marker === 6 || marker === 7)) {\n effects.exit('htmlFlowData')\n return effects.check(\n blankLineBefore,\n continuationAfter,\n continuationStart\n )(code)\n }\n if (code === null || markdownLineEnding(code)) {\n effects.exit('htmlFlowData')\n return continuationStart(code)\n }\n effects.consume(code)\n return continuation\n }\n\n /**\n * In continuation, at eol.\n *\n * ```markdown\n * > | \n * ^\n * | asd\n * ```\n *\n * @type {State}\n */\n function continuationStart(code) {\n return effects.check(\n nonLazyContinuationStart,\n continuationStartNonLazy,\n continuationAfter\n )(code)\n }\n\n /**\n * In continuation, at eol, before non-lazy content.\n *\n * ```markdown\n * > | \n * ^\n * | asd\n * ```\n *\n * @type {State}\n */\n function continuationStartNonLazy(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return continuationBefore\n }\n\n /**\n * In continuation, before non-lazy content.\n *\n * ```markdown\n * | \n * > | asd\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n return continuationStart(code)\n }\n effects.enter('htmlFlowData')\n return continuation(code)\n }\n\n /**\n * In comment continuation, after one `-`, expecting another.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationCommentInside(code) {\n if (code === 45) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In raw continuation, after `<`, at `/`.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationRawTagOpen(code) {\n if (code === 47) {\n effects.consume(code)\n buffer = ''\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In raw continuation, after ` | \n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function continuationRawEndTag(code) {\n if (code === 62) {\n const name = buffer.toLowerCase()\n if (htmlRawNames.includes(name)) {\n effects.consume(code)\n return continuationClose\n }\n return continuation(code)\n }\n if (asciiAlpha(code) && buffer.length < 8) {\n effects.consume(code)\n // @ts-expect-error: not null.\n buffer += String.fromCharCode(code)\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In cdata continuation, after `]`, expecting `]>`.\n *\n * ```markdown\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationCdataInside(code) {\n if (code === 93) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In declaration or instruction continuation, at `>`.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationDeclarationInside(code) {\n if (code === 62) {\n effects.consume(code)\n return continuationClose\n }\n\n // More dashes.\n if (code === 45 && marker === 2) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In closed continuation: everything we get until the eol/eof is part of it.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationClose(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('htmlFlowData')\n return continuationAfter(code)\n }\n effects.consume(code)\n return continuationClose\n }\n\n /**\n * Done.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationAfter(code) {\n effects.exit('htmlFlow')\n // // Feel free to interrupt.\n // tokenizer.interrupt = false\n // // No longer concrete.\n // tokenizer.concrete = false\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuationStart(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * At eol, before continuation.\n *\n * ```markdown\n * > | * ```js\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return after\n }\n return nok(code)\n }\n\n /**\n * A continuation.\n *\n * ```markdown\n * | * ```js\n * > | b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLineBefore(effects, ok, nok) {\n return start\n\n /**\n * Before eol, expecting blank line.\n *\n * ```markdown\n * > |
\n * ^\n * |\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return effects.attempt(blankLine, ok, nok)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nconst nonLazyContinuation = {\n tokenize: tokenizeNonLazyContinuation,\n partial: true\n}\n\n/** @type {Construct} */\nexport const codeFenced = {\n name: 'codeFenced',\n tokenize: tokenizeCodeFenced,\n concrete: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeFenced(effects, ok, nok) {\n const self = this\n /** @type {Construct} */\n const closeStart = {\n tokenize: tokenizeCloseStart,\n partial: true\n }\n let initialPrefix = 0\n let sizeOpen = 0\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Start of code.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse whitespace like `markdown-rs`.\n return beforeSequenceOpen(code)\n }\n\n /**\n * In opening fence, after prefix, at sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeSequenceOpen(code) {\n const tail = self.events[self.events.length - 1]\n initialPrefix =\n tail && tail[1].type === 'linePrefix'\n ? tail[2].sliceSerialize(tail[1], true).length\n : 0\n marker = code\n effects.enter('codeFenced')\n effects.enter('codeFencedFence')\n effects.enter('codeFencedFenceSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening fence sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === marker) {\n sizeOpen++\n effects.consume(code)\n return sequenceOpen\n }\n if (sizeOpen < 3) {\n return nok(code)\n }\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, infoBefore, 'whitespace')(code)\n : infoBefore(code)\n }\n\n /**\n * In opening fence, after the sequence (and optional whitespace), before info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function infoBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return self.interrupt\n ? ok(code)\n : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFencedFenceInfo')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return info(code)\n }\n\n /**\n * In info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function info(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return infoBefore(code)\n }\n if (markdownSpace(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return factorySpace(effects, metaBefore, 'whitespace')(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return info\n }\n\n /**\n * In opening fence, after info and whitespace, before meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function metaBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n return infoBefore(code)\n }\n effects.enter('codeFencedFenceMeta')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return meta(code)\n }\n\n /**\n * In meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function meta(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceMeta')\n return infoBefore(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return meta\n }\n\n /**\n * At eol/eof in code, before a non-lazy closing fence or content.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function atNonLazyBreak(code) {\n return effects.attempt(closeStart, after, contentBefore)(code)\n }\n\n /**\n * Before code content, not a closing fence, at eol.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return contentStart\n }\n\n /**\n * Before code content, not a closing fence.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentStart(code) {\n return initialPrefix > 0 && markdownSpace(code)\n ? factorySpace(\n effects,\n beforeContentChunk,\n 'linePrefix',\n initialPrefix + 1\n )(code)\n : beforeContentChunk(code)\n }\n\n /**\n * Before code content, after optional prefix.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeContentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFlowValue')\n return contentChunk(code)\n }\n\n /**\n * In code content.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^^^^^^^^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFlowValue')\n return beforeContentChunk(code)\n }\n effects.consume(code)\n return contentChunk\n }\n\n /**\n * After code.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n effects.exit('codeFenced')\n return ok(code)\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeCloseStart(effects, ok, nok) {\n let size = 0\n return startBefore\n\n /**\n *\n *\n * @type {State}\n */\n function startBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return start\n }\n\n /**\n * Before closing fence, at optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Always populated by defaults.\n\n // To do: `enter` here or in next state?\n effects.enter('codeFencedFence')\n return markdownSpace(code)\n ? factorySpace(\n effects,\n beforeSequenceClose,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : beforeSequenceClose(code)\n }\n\n /**\n * In closing fence, after optional whitespace, at sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function beforeSequenceClose(code) {\n if (code === marker) {\n effects.enter('codeFencedFenceSequence')\n return sequenceClose(code)\n }\n return nok(code)\n }\n\n /**\n * In closing fence sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n if (code === marker) {\n size++\n effects.consume(code)\n return sequenceClose\n }\n if (size >= sizeOpen) {\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, sequenceCloseAfter, 'whitespace')(code)\n : sequenceCloseAfter(code)\n }\n return nok(code)\n }\n\n /**\n * After closing fence sequence, after optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceCloseAfter(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return ok(code)\n }\n return nok(code)\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuation(effects, ok, nok) {\n const self = this\n return start\n\n /**\n *\n *\n * @type {State}\n */\n function start(code) {\n if (code === null) {\n return nok(code)\n }\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineStart\n }\n\n /**\n *\n *\n * @type {State}\n */\n function lineStart(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n","/// \n\n/* eslint-env browser */\n\nconst element = document.createElement('i')\n\n/**\n * @param {string} value\n * @returns {string|false}\n */\nexport function decodeNamedCharacterReference(value) {\n const characterReference = '&' + value + ';'\n element.innerHTML = characterReference\n const char = element.textContent\n\n // Some named character references do not require the closing semicolon\n // (`¬`, for instance), which leads to situations where parsing the assumed\n // named reference of `¬it;` will result in the string `¬it;`.\n // When we encounter a trailing semicolon after parsing, and the character\n // reference to decode was not a semicolon (`;`), we can assume that the\n // matching was not complete.\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n if (char.charCodeAt(char.length - 1) === 59 /* `;` */ && value !== 'semi') {\n return false\n }\n\n // If the decoded string is equal to the input, the character reference was\n // not valid.\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n return char === characterReference ? false : char\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {\n asciiAlphanumeric,\n asciiDigit,\n asciiHexDigit\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterReference = {\n name: 'characterReference',\n tokenize: tokenizeCharacterReference\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterReference(effects, ok, nok) {\n const self = this\n let size = 0\n /** @type {number} */\n let max\n /** @type {(code: Code) => boolean} */\n let test\n return start\n\n /**\n * Start of character reference.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterReference')\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n return open\n }\n\n /**\n * After `&`, at `#` for numeric references or alphanumeric for named\n * references.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 35) {\n effects.enter('characterReferenceMarkerNumeric')\n effects.consume(code)\n effects.exit('characterReferenceMarkerNumeric')\n return numeric\n }\n effects.enter('characterReferenceValue')\n max = 31\n test = asciiAlphanumeric\n return value(code)\n }\n\n /**\n * After `#`, at `x` for hexadecimals or digit for decimals.\n *\n * ```markdown\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function numeric(code) {\n if (code === 88 || code === 120) {\n effects.enter('characterReferenceMarkerHexadecimal')\n effects.consume(code)\n effects.exit('characterReferenceMarkerHexadecimal')\n effects.enter('characterReferenceValue')\n max = 6\n test = asciiHexDigit\n return value\n }\n effects.enter('characterReferenceValue')\n max = 7\n test = asciiDigit\n return value(code)\n }\n\n /**\n * After markers (`&#x`, `&#`, or `&`), in value, before `;`.\n *\n * The character reference kind defines what and how many characters are\n * allowed.\n *\n * ```markdown\n * > | a&b\n * ^^^\n * > | a{b\n * ^^^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function value(code) {\n if (code === 59 && size) {\n const token = effects.exit('characterReferenceValue')\n if (\n test === asciiAlphanumeric &&\n !decodeNamedCharacterReference(self.sliceSerialize(token))\n ) {\n return nok(code)\n }\n\n // To do: `markdown-rs` uses a different name:\n // `CharacterReferenceMarkerSemi`.\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n effects.exit('characterReference')\n return ok\n }\n if (test(code) && size++ < max) {\n effects.consume(code)\n return value\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {asciiPunctuation} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterEscape = {\n name: 'characterEscape',\n tokenize: tokenizeCharacterEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of character escape.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterEscape')\n effects.enter('escapeMarker')\n effects.consume(code)\n effects.exit('escapeMarker')\n return inside\n }\n\n /**\n * After `\\`, at punctuation.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // ASCII punctuation.\n if (asciiPunctuation(code)) {\n effects.enter('characterEscapeValue')\n effects.consume(code)\n effects.exit('characterEscapeValue')\n effects.exit('characterEscape')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const lineEnding = {\n name: 'lineEnding',\n tokenize: tokenizeLineEnding\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLineEnding(effects, ok) {\n return start\n\n /** @type {State} */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, ok, 'linePrefix')\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factoryDestination} from 'micromark-factory-destination'\nimport {factoryLabel} from 'micromark-factory-label'\nimport {factoryTitle} from 'micromark-factory-title'\nimport {factoryWhitespace} from 'micromark-factory-whitespace'\nimport {markdownLineEndingOrSpace} from 'micromark-util-character'\nimport {push, splice} from 'micromark-util-chunked'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const labelEnd = {\n name: 'labelEnd',\n tokenize: tokenizeLabelEnd,\n resolveTo: resolveToLabelEnd,\n resolveAll: resolveAllLabelEnd\n}\n\n/** @type {Construct} */\nconst resourceConstruct = {\n tokenize: tokenizeResource\n}\n/** @type {Construct} */\nconst referenceFullConstruct = {\n tokenize: tokenizeReferenceFull\n}\n/** @type {Construct} */\nconst referenceCollapsedConstruct = {\n tokenize: tokenizeReferenceCollapsed\n}\n\n/** @type {Resolver} */\nfunction resolveAllLabelEnd(events) {\n let index = -1\n while (++index < events.length) {\n const token = events[index][1]\n if (\n token.type === 'labelImage' ||\n token.type === 'labelLink' ||\n token.type === 'labelEnd'\n ) {\n // Remove the marker.\n events.splice(index + 1, token.type === 'labelImage' ? 4 : 2)\n token.type = 'data'\n index++\n }\n }\n return events\n}\n\n/** @type {Resolver} */\nfunction resolveToLabelEnd(events, context) {\n let index = events.length\n let offset = 0\n /** @type {Token} */\n let token\n /** @type {number | undefined} */\n let open\n /** @type {number | undefined} */\n let close\n /** @type {Array} */\n let media\n\n // Find an opening.\n while (index--) {\n token = events[index][1]\n if (open) {\n // If we see another link, or inactive link label, we’ve been here before.\n if (\n token.type === 'link' ||\n (token.type === 'labelLink' && token._inactive)\n ) {\n break\n }\n\n // Mark other link openings as inactive, as we can’t have links in\n // links.\n if (events[index][0] === 'enter' && token.type === 'labelLink') {\n token._inactive = true\n }\n } else if (close) {\n if (\n events[index][0] === 'enter' &&\n (token.type === 'labelImage' || token.type === 'labelLink') &&\n !token._balanced\n ) {\n open = index\n if (token.type !== 'labelLink') {\n offset = 2\n break\n }\n }\n } else if (token.type === 'labelEnd') {\n close = index\n }\n }\n const group = {\n type: events[open][1].type === 'labelLink' ? 'link' : 'image',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n const label = {\n type: 'label',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[close][1].end)\n }\n const text = {\n type: 'labelText',\n start: Object.assign({}, events[open + offset + 2][1].end),\n end: Object.assign({}, events[close - 2][1].start)\n }\n media = [\n ['enter', group, context],\n ['enter', label, context]\n ]\n\n // Opening marker.\n media = push(media, events.slice(open + 1, open + offset + 3))\n\n // Text open.\n media = push(media, [['enter', text, context]])\n\n // Always populated by defaults.\n\n // Between.\n media = push(\n media,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + offset + 4, close - 3),\n context\n )\n )\n\n // Text close, marker close, label close.\n media = push(media, [\n ['exit', text, context],\n events[close - 2],\n events[close - 1],\n ['exit', label, context]\n ])\n\n // Reference, resource, or so.\n media = push(media, events.slice(close + 1))\n\n // Media close.\n media = push(media, [['exit', group, context]])\n splice(events, open, events.length, media)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelEnd(effects, ok, nok) {\n const self = this\n let index = self.events.length\n /** @type {Token} */\n let labelStart\n /** @type {boolean} */\n let defined\n\n // Find an opening.\n while (index--) {\n if (\n (self.events[index][1].type === 'labelImage' ||\n self.events[index][1].type === 'labelLink') &&\n !self.events[index][1]._balanced\n ) {\n labelStart = self.events[index][1]\n break\n }\n }\n return start\n\n /**\n * Start of label end.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // If there is not an okay opening.\n if (!labelStart) {\n return nok(code)\n }\n\n // If the corresponding label (link) start is marked as inactive,\n // it means we’d be wrapping a link, like this:\n //\n // ```markdown\n // > | a [b [c](d) e](f) g.\n // ^\n // ```\n //\n // We can’t have that, so it’s just balanced brackets.\n if (labelStart._inactive) {\n return labelEndNok(code)\n }\n defined = self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })\n )\n )\n effects.enter('labelEnd')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelEnd')\n return after\n }\n\n /**\n * After `]`.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Note: `markdown-rs` also parses GFM footnotes here, which for us is in\n // an extension.\n\n // Resource (`[asd](fgh)`)?\n if (code === 40) {\n return effects.attempt(\n resourceConstruct,\n labelEndOk,\n defined ? labelEndOk : labelEndNok\n )(code)\n }\n\n // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference?\n if (code === 91) {\n return effects.attempt(\n referenceFullConstruct,\n labelEndOk,\n defined ? referenceNotFull : labelEndNok\n )(code)\n }\n\n // Shortcut (`[asd]`) reference?\n return defined ? labelEndOk(code) : labelEndNok(code)\n }\n\n /**\n * After `]`, at `[`, but not at a full reference.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceNotFull(code) {\n return effects.attempt(\n referenceCollapsedConstruct,\n labelEndOk,\n labelEndNok\n )(code)\n }\n\n /**\n * Done, we found something.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndOk(code) {\n // Note: `markdown-rs` does a bunch of stuff here.\n return ok(code)\n }\n\n /**\n * Done, it’s nothing.\n *\n * There was an okay opening, but we didn’t match anything.\n *\n * ```markdown\n * > | [a](b c\n * ^\n * > | [a][b c\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndNok(code) {\n labelStart._balanced = true\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeResource(effects, ok, nok) {\n return resourceStart\n\n /**\n * At a resource.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceStart(code) {\n effects.enter('resource')\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n return resourceBefore\n }\n\n /**\n * In resource, after `(`, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBefore(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceOpen)(code)\n : resourceOpen(code)\n }\n\n /**\n * In resource, after optional whitespace, at `)` or a destination.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceOpen(code) {\n if (code === 41) {\n return resourceEnd(code)\n }\n return factoryDestination(\n effects,\n resourceDestinationAfter,\n resourceDestinationMissing,\n 'resourceDestination',\n 'resourceDestinationLiteral',\n 'resourceDestinationLiteralMarker',\n 'resourceDestinationRaw',\n 'resourceDestinationString',\n 32\n )(code)\n }\n\n /**\n * In resource, after destination, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceBetween)(code)\n : resourceEnd(code)\n }\n\n /**\n * At invalid destination.\n *\n * ```markdown\n * > | [a](<<) b\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationMissing(code) {\n return nok(code)\n }\n\n /**\n * In resource, after destination and whitespace, at `(` or title.\n *\n * ```markdown\n * > | [a](b ) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBetween(code) {\n if (code === 34 || code === 39 || code === 40) {\n return factoryTitle(\n effects,\n resourceTitleAfter,\n nok,\n 'resourceTitle',\n 'resourceTitleMarker',\n 'resourceTitleString'\n )(code)\n }\n return resourceEnd(code)\n }\n\n /**\n * In resource, after title, at optional whitespace.\n *\n * ```markdown\n * > | [a](b \"c\") d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceTitleAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceEnd)(code)\n : resourceEnd(code)\n }\n\n /**\n * In resource, at `)`.\n *\n * ```markdown\n * > | [a](b) d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceEnd(code) {\n if (code === 41) {\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n effects.exit('resource')\n return ok\n }\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceFull(effects, ok, nok) {\n const self = this\n return referenceFull\n\n /**\n * In a reference (full), at the `[`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFull(code) {\n return factoryLabel.call(\n self,\n effects,\n referenceFullAfter,\n referenceFullMissing,\n 'reference',\n 'referenceMarker',\n 'referenceString'\n )(code)\n }\n\n /**\n * In a reference (full), after `]`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullAfter(code) {\n return self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1)\n )\n )\n ? ok(code)\n : nok(code)\n }\n\n /**\n * In reference (full) that was missing.\n *\n * ```markdown\n * > | [a][b d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullMissing(code) {\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceCollapsed(effects, ok, nok) {\n return referenceCollapsedStart\n\n /**\n * In reference (collapsed), at `[`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedStart(code) {\n // We only attempt a collapsed label if there’s a `[`.\n\n effects.enter('reference')\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n return referenceCollapsedOpen\n }\n\n /**\n * In reference (collapsed), at `]`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedOpen(code) {\n if (code === 93) {\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n effects.exit('reference')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartImage = {\n name: 'labelStartImage',\n tokenize: tokenizeLabelStartImage,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartImage(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (image) start.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelImage')\n effects.enter('labelImageMarker')\n effects.consume(code)\n effects.exit('labelImageMarker')\n return open\n }\n\n /**\n * After `!`, at `[`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 91) {\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelImage')\n return after\n }\n return nok(code)\n }\n\n /**\n * After `![`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * This is needed in because, when GFM footnotes are enabled, images never\n * form when started with a `^`.\n * Instead, links form:\n *\n * ```markdown\n * ![^a](b)\n *\n * ![^a][b]\n *\n * [b]: c\n * ```\n *\n * ```html\n *

!^a

\n *

!^a

\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // To do: use a new field to do this, this is still needed for\n // `micromark-extension-gfm-footnote`, but the `label-start-link`\n // behavior isn’t.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n */\n\nimport {\n markdownLineEndingOrSpace,\n unicodePunctuation,\n unicodeWhitespace\n} from 'micromark-util-character'\n/**\n * Classify whether a code represents whitespace, punctuation, or something\n * else.\n *\n * Used for attention (emphasis, strong), whose sequences can open or close\n * based on the class of surrounding characters.\n *\n * > 👉 **Note**: eof (`null`) is seen as whitespace.\n *\n * @param {Code} code\n * Code.\n * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}\n * Group.\n */\nexport function classifyCharacter(code) {\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return 1\n }\n if (unicodePunctuation(code)) {\n return 2\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {push, splice} from 'micromark-util-chunked'\nimport {classifyCharacter} from 'micromark-util-classify-character'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const attention = {\n name: 'attention',\n tokenize: tokenizeAttention,\n resolveAll: resolveAllAttention\n}\n\n/**\n * Take all events and resolve attention to emphasis or strong.\n *\n * @type {Resolver}\n */\nfunction resolveAllAttention(events, context) {\n let index = -1\n /** @type {number} */\n let open\n /** @type {Token} */\n let group\n /** @type {Token} */\n let text\n /** @type {Token} */\n let openingSequence\n /** @type {Token} */\n let closingSequence\n /** @type {number} */\n let use\n /** @type {Array} */\n let nextEvents\n /** @type {number} */\n let offset\n\n // Walk through all events.\n //\n // Note: performance of this is fine on an mb of normal markdown, but it’s\n // a bottleneck for malicious stuff.\n while (++index < events.length) {\n // Find a token that can close.\n if (\n events[index][0] === 'enter' &&\n events[index][1].type === 'attentionSequence' &&\n events[index][1]._close\n ) {\n open = index\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (\n events[open][0] === 'exit' &&\n events[open][1].type === 'attentionSequence' &&\n events[open][1]._open &&\n // If the markers are the same:\n context.sliceSerialize(events[open][1]).charCodeAt(0) ===\n context.sliceSerialize(events[index][1]).charCodeAt(0)\n ) {\n // If the opening can close or the closing can open,\n // and the close size *is not* a multiple of three,\n // but the sum of the opening and closing size *is* multiple of three,\n // then don’t match.\n if (\n (events[open][1]._close || events[index][1]._open) &&\n (events[index][1].end.offset - events[index][1].start.offset) % 3 &&\n !(\n (events[open][1].end.offset -\n events[open][1].start.offset +\n events[index][1].end.offset -\n events[index][1].start.offset) %\n 3\n )\n ) {\n continue\n }\n\n // Number of markers to use from the sequence.\n use =\n events[open][1].end.offset - events[open][1].start.offset > 1 &&\n events[index][1].end.offset - events[index][1].start.offset > 1\n ? 2\n : 1\n const start = Object.assign({}, events[open][1].end)\n const end = Object.assign({}, events[index][1].start)\n movePoint(start, -use)\n movePoint(end, use)\n openingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start,\n end: Object.assign({}, events[open][1].end)\n }\n closingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start: Object.assign({}, events[index][1].start),\n end\n }\n text = {\n type: use > 1 ? 'strongText' : 'emphasisText',\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n }\n group = {\n type: use > 1 ? 'strong' : 'emphasis',\n start: Object.assign({}, openingSequence.start),\n end: Object.assign({}, closingSequence.end)\n }\n events[open][1].end = Object.assign({}, openingSequence.start)\n events[index][1].start = Object.assign({}, closingSequence.end)\n nextEvents = []\n\n // If there are more markers in the opening, add them before.\n if (events[open][1].end.offset - events[open][1].start.offset) {\n nextEvents = push(nextEvents, [\n ['enter', events[open][1], context],\n ['exit', events[open][1], context]\n ])\n }\n\n // Opening.\n nextEvents = push(nextEvents, [\n ['enter', group, context],\n ['enter', openingSequence, context],\n ['exit', openingSequence, context],\n ['enter', text, context]\n ])\n\n // Always populated by defaults.\n\n // Between.\n nextEvents = push(\n nextEvents,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + 1, index),\n context\n )\n )\n\n // Closing.\n nextEvents = push(nextEvents, [\n ['exit', text, context],\n ['enter', closingSequence, context],\n ['exit', closingSequence, context],\n ['exit', group, context]\n ])\n\n // If there are more markers in the closing, add them after.\n if (events[index][1].end.offset - events[index][1].start.offset) {\n offset = 2\n nextEvents = push(nextEvents, [\n ['enter', events[index][1], context],\n ['exit', events[index][1], context]\n ])\n } else {\n offset = 0\n }\n splice(events, open - 1, index - open + 3, nextEvents)\n index = open + nextEvents.length - offset - 2\n break\n }\n }\n }\n }\n\n // Remove remaining sequences.\n index = -1\n while (++index < events.length) {\n if (events[index][1].type === 'attentionSequence') {\n events[index][1].type = 'data'\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAttention(effects, ok) {\n const attentionMarkers = this.parser.constructs.attentionMarkers.null\n const previous = this.previous\n const before = classifyCharacter(previous)\n\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Before a sequence.\n *\n * ```markdown\n * > | **\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n marker = code\n effects.enter('attentionSequence')\n return inside(code)\n }\n\n /**\n * In a sequence.\n *\n * ```markdown\n * > | **\n * ^^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code)\n return inside\n }\n const token = effects.exit('attentionSequence')\n\n // To do: next major: move this to resolver, just like `markdown-rs`.\n const after = classifyCharacter(code)\n\n // Always populated by defaults.\n\n const open =\n !after || (after === 2 && before) || attentionMarkers.includes(code)\n const close =\n !before || (before === 2 && after) || attentionMarkers.includes(previous)\n token._open = Boolean(marker === 42 ? open : open && (before || !close))\n token._close = Boolean(marker === 42 ? close : close && (after || !open))\n return ok(code)\n }\n}\n\n/**\n * Move a point a bit.\n *\n * Note: `move` only works inside lines! It’s not possible to move past other\n * chunks (replacement characters, tabs, or line endings).\n *\n * @param {Point} point\n * @param {number} offset\n * @returns {void}\n */\nfunction movePoint(point, offset) {\n point.column += offset\n point.offset += offset\n point._bufferIndex += offset\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n asciiAtext,\n asciiControl\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const autolink = {\n name: 'autolink',\n tokenize: tokenizeAutolink\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAutolink(effects, ok, nok) {\n let size = 0\n return start\n\n /**\n * Start of an autolink.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('autolink')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.enter('autolinkProtocol')\n return open\n }\n\n /**\n * After `<`, at protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (asciiAlpha(code)) {\n effects.consume(code)\n return schemeOrEmailAtext\n }\n return emailAtext(code)\n }\n\n /**\n * At second byte of protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeOrEmailAtext(code) {\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) {\n // Count the previous alphabetical from `open` too.\n size = 1\n return schemeInsideOrEmailAtext(code)\n }\n return emailAtext(code)\n }\n\n /**\n * In ambiguous protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeInsideOrEmailAtext(code) {\n if (code === 58) {\n effects.consume(code)\n size = 0\n return urlInside\n }\n\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (\n (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) &&\n size++ < 32\n ) {\n effects.consume(code)\n return schemeInsideOrEmailAtext\n }\n size = 0\n return emailAtext(code)\n }\n\n /**\n * After protocol, in URL.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function urlInside(code) {\n if (code === 62) {\n effects.exit('autolinkProtocol')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n\n // ASCII control, space, or `<`.\n if (code === null || code === 32 || code === 60 || asciiControl(code)) {\n return nok(code)\n }\n effects.consume(code)\n return urlInside\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailAtext(code) {\n if (code === 64) {\n effects.consume(code)\n return emailAtSignOrDot\n }\n if (asciiAtext(code)) {\n effects.consume(code)\n return emailAtext\n }\n return nok(code)\n }\n\n /**\n * In label, after at-sign or dot.\n *\n * ```markdown\n * > | ab\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function emailAtSignOrDot(code) {\n return asciiAlphanumeric(code) ? emailLabel(code) : nok(code)\n }\n\n /**\n * In label, where `.` and `>` are allowed.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailLabel(code) {\n if (code === 46) {\n effects.consume(code)\n size = 0\n return emailAtSignOrDot\n }\n if (code === 62) {\n // Exit, then change the token type.\n effects.exit('autolinkProtocol').type = 'autolinkEmail'\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n return emailValue(code)\n }\n\n /**\n * In label, where `.` and `>` are *not* allowed.\n *\n * Though, this is also used in `emailLabel` to parse other values.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailValue(code) {\n // ASCII alphanumeric or `-`.\n if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) {\n const next = code === 45 ? emailValue : emailLabel\n effects.consume(code)\n return next\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const htmlText = {\n name: 'htmlText',\n tokenize: tokenizeHtmlText\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHtmlText(effects, ok, nok) {\n const self = this\n /** @type {NonNullable | undefined} */\n let marker\n /** @type {number} */\n let index\n /** @type {State} */\n let returnState\n return start\n\n /**\n * Start of HTML (text).\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('htmlText')\n effects.enter('htmlTextData')\n effects.consume(code)\n return open\n }\n\n /**\n * After `<`, at tag name or other stuff.\n *\n * ```markdown\n * > | a c\n * ^\n * > | a c\n * ^\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 33) {\n effects.consume(code)\n return declarationOpen\n }\n if (code === 47) {\n effects.consume(code)\n return tagCloseStart\n }\n if (code === 63) {\n effects.consume(code)\n return instruction\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagOpen\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * > | a c\n * ^\n * > | a &<]]> c\n * ^\n * ```\n *\n * @type {State}\n */\n function declarationOpen(code) {\n if (code === 45) {\n effects.consume(code)\n return commentOpenInside\n }\n if (code === 91) {\n effects.consume(code)\n index = 0\n return cdataOpenInside\n }\n if (asciiAlpha(code)) {\n effects.consume(code)\n return declaration\n }\n return nok(code)\n }\n\n /**\n * In a comment, after ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentOpenInside(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return nok(code)\n }\n\n /**\n * In comment.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function comment(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 45) {\n effects.consume(code)\n return commentClose\n }\n if (markdownLineEnding(code)) {\n returnState = comment\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return comment\n }\n\n /**\n * In comment, after `-`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentClose(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return comment(code)\n }\n\n /**\n * In comment, after `--`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentEnd(code) {\n return code === 62\n ? end(code)\n : code === 45\n ? commentClose(code)\n : comment(code)\n }\n\n /**\n * After ` | a &<]]> b\n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function cdataOpenInside(code) {\n const value = 'CDATA['\n if (code === value.charCodeAt(index++)) {\n effects.consume(code)\n return index === value.length ? cdata : cdataOpenInside\n }\n return nok(code)\n }\n\n /**\n * In CDATA.\n *\n * ```markdown\n * > | a &<]]> b\n * ^^^\n * ```\n *\n * @type {State}\n */\n function cdata(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataClose\n }\n if (markdownLineEnding(code)) {\n returnState = cdata\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return cdata\n }\n\n /**\n * In CDATA, after `]`, at another `]`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataClose(code) {\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In CDATA, after `]]`, at `>`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataEnd(code) {\n if (code === 62) {\n return end(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In declaration.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function declaration(code) {\n if (code === null || code === 62) {\n return end(code)\n }\n if (markdownLineEnding(code)) {\n returnState = declaration\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return declaration\n }\n\n /**\n * In instruction.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instruction(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 63) {\n effects.consume(code)\n return instructionClose\n }\n if (markdownLineEnding(code)) {\n returnState = instruction\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return instruction\n }\n\n /**\n * In instruction, after `?`, at `>`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instructionClose(code) {\n return code === 62 ? end(code) : instruction(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseStart(code) {\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagClose\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagClose(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagClose\n }\n return tagCloseBetween(code)\n }\n\n /**\n * In closing tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseBetween(code) {\n if (markdownLineEnding(code)) {\n returnState = tagCloseBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagCloseBetween\n }\n return end(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpen(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagOpen\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In opening tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenBetween(code) {\n if (code === 47) {\n effects.consume(code)\n return end\n }\n\n // ASCII alphabetical and `:` and `_`.\n if (code === 58 || code === 95 || asciiAlpha(code)) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenBetween\n }\n return end(code)\n }\n\n /**\n * In attribute name.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeName(code) {\n // ASCII alphabetical and `-`, `.`, `:`, and `_`.\n if (\n code === 45 ||\n code === 46 ||\n code === 58 ||\n code === 95 ||\n asciiAlphanumeric(code)\n ) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n return tagOpenAttributeNameAfter(code)\n }\n\n /**\n * After attribute name, before initializer, the end of the tag, or\n * whitespace.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeNameAfter(code) {\n if (code === 61) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeNameAfter\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeNameAfter\n }\n return tagOpenBetween(code)\n }\n\n /**\n * Before unquoted, double quoted, or single quoted attribute value, allowing\n * whitespace.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueBefore(code) {\n if (\n code === null ||\n code === 60 ||\n code === 61 ||\n code === 62 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 34 || code === 39) {\n effects.consume(code)\n marker = code\n return tagOpenAttributeValueQuoted\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueBefore\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * In double or single quoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuoted(code) {\n if (code === marker) {\n effects.consume(code)\n marker = undefined\n return tagOpenAttributeValueQuotedAfter\n }\n if (code === null) {\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueQuoted\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueQuoted\n }\n\n /**\n * In unquoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueUnquoted(code) {\n if (\n code === null ||\n code === 34 ||\n code === 39 ||\n code === 60 ||\n code === 61 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * After double or single quoted attribute value, before whitespace or the end\n * of the tag.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuotedAfter(code) {\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In certain circumstances of a tag where only an `>` is allowed.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function end(code) {\n if (code === 62) {\n effects.consume(code)\n effects.exit('htmlTextData')\n effects.exit('htmlText')\n return ok\n }\n return nok(code)\n }\n\n /**\n * At eol.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * > | a \n * ```\n *\n * @type {State}\n */\n function lineEndingBefore(code) {\n effects.exit('htmlTextData')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineEndingAfter\n }\n\n /**\n * After eol, at optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfter(code) {\n // Always populated by defaults.\n\n return markdownSpace(code)\n ? factorySpace(\n effects,\n lineEndingAfterPrefix,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : lineEndingAfterPrefix(code)\n }\n\n /**\n * After eol, after optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfterPrefix(code) {\n effects.enter('htmlTextData')\n return returnState(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartLink = {\n name: 'labelStartLink',\n tokenize: tokenizeLabelStartLink,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartLink(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (link) start.\n *\n * ```markdown\n * > | a [b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelLink')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelLink')\n return after\n }\n\n /** @type {State} */\n function after(code) {\n // To do: this isn’t needed in `micromark-extension-gfm-footnote`,\n // remove.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const hardBreakEscape = {\n name: 'hardBreakEscape',\n tokenize: tokenizeHardBreakEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHardBreakEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of a hard break (escape).\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('hardBreakEscape')\n effects.consume(code)\n return after\n }\n\n /**\n * After `\\`, at eol.\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (markdownLineEnding(code)) {\n effects.exit('hardBreakEscape')\n return ok(code)\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const codeText = {\n name: 'codeText',\n tokenize: tokenizeCodeText,\n resolve: resolveCodeText,\n previous\n}\n\n// To do: next major: don’t resolve, like `markdown-rs`.\n/** @type {Resolver} */\nfunction resolveCodeText(events) {\n let tailExitIndex = events.length - 4\n let headEnterIndex = 3\n /** @type {number} */\n let index\n /** @type {number | undefined} */\n let enter\n\n // If we start and end with an EOL or a space.\n if (\n (events[headEnterIndex][1].type === 'lineEnding' ||\n events[headEnterIndex][1].type === 'space') &&\n (events[tailExitIndex][1].type === 'lineEnding' ||\n events[tailExitIndex][1].type === 'space')\n ) {\n index = headEnterIndex\n\n // And we have data.\n while (++index < tailExitIndex) {\n if (events[index][1].type === 'codeTextData') {\n // Then we have padding.\n events[headEnterIndex][1].type = 'codeTextPadding'\n events[tailExitIndex][1].type = 'codeTextPadding'\n headEnterIndex += 2\n tailExitIndex -= 2\n break\n }\n }\n }\n\n // Merge adjacent spaces and data.\n index = headEnterIndex - 1\n tailExitIndex++\n while (++index <= tailExitIndex) {\n if (enter === undefined) {\n if (index !== tailExitIndex && events[index][1].type !== 'lineEnding') {\n enter = index\n }\n } else if (\n index === tailExitIndex ||\n events[index][1].type === 'lineEnding'\n ) {\n events[enter][1].type = 'codeTextData'\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end\n events.splice(enter + 2, index - enter - 2)\n tailExitIndex -= index - enter - 2\n index = enter + 2\n }\n enter = undefined\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previous(code) {\n // If there is a previous code, there will always be a tail.\n return (\n code !== 96 ||\n this.events[this.events.length - 1][1].type === 'characterEscape'\n )\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeText(effects, ok, nok) {\n const self = this\n let sizeOpen = 0\n /** @type {number} */\n let size\n /** @type {Token} */\n let token\n return start\n\n /**\n * Start of code (text).\n *\n * ```markdown\n * > | `a`\n * ^\n * > | \\`a`\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('codeText')\n effects.enter('codeTextSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === 96) {\n effects.consume(code)\n sizeOpen++\n return sequenceOpen\n }\n effects.exit('codeTextSequence')\n return between(code)\n }\n\n /**\n * Between something and something else.\n *\n * ```markdown\n * > | `a`\n * ^^\n * ```\n *\n * @type {State}\n */\n function between(code) {\n // EOF.\n if (code === null) {\n return nok(code)\n }\n\n // To do: next major: don’t do spaces in resolve, but when compiling,\n // like `markdown-rs`.\n // Tabs don’t work, and virtual spaces don’t make sense.\n if (code === 32) {\n effects.enter('space')\n effects.consume(code)\n effects.exit('space')\n return between\n }\n\n // Closing fence? Could also be data.\n if (code === 96) {\n token = effects.enter('codeTextSequence')\n size = 0\n return sequenceClose(code)\n }\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return between\n }\n\n // Data.\n effects.enter('codeTextData')\n return data(code)\n }\n\n /**\n * In data.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function data(code) {\n if (\n code === null ||\n code === 32 ||\n code === 96 ||\n markdownLineEnding(code)\n ) {\n effects.exit('codeTextData')\n return between(code)\n }\n effects.consume(code)\n return data\n }\n\n /**\n * In closing sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n // More.\n if (code === 96) {\n effects.consume(code)\n size++\n return sequenceClose\n }\n\n // Done!\n if (size === sizeOpen) {\n effects.exit('codeTextSequence')\n effects.exit('codeText')\n return ok(code)\n }\n\n // More or less accents: mark as data.\n token.type = 'codeTextData'\n return data(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n */\n\nimport {\n attention,\n autolink,\n blockQuote,\n characterEscape,\n characterReference,\n codeFenced,\n codeIndented,\n codeText,\n definition,\n hardBreakEscape,\n headingAtx,\n htmlFlow,\n htmlText,\n labelEnd,\n labelStartImage,\n labelStartLink,\n lineEnding,\n list,\n setextUnderline,\n thematicBreak\n} from 'micromark-core-commonmark'\nimport {resolver as resolveText} from './initialize/text.js'\n\n/** @satisfies {Extension['document']} */\nexport const document = {\n [42]: list,\n [43]: list,\n [45]: list,\n [48]: list,\n [49]: list,\n [50]: list,\n [51]: list,\n [52]: list,\n [53]: list,\n [54]: list,\n [55]: list,\n [56]: list,\n [57]: list,\n [62]: blockQuote\n}\n\n/** @satisfies {Extension['contentInitial']} */\nexport const contentInitial = {\n [91]: definition\n}\n\n/** @satisfies {Extension['flowInitial']} */\nexport const flowInitial = {\n [-2]: codeIndented,\n [-1]: codeIndented,\n [32]: codeIndented\n}\n\n/** @satisfies {Extension['flow']} */\nexport const flow = {\n [35]: headingAtx,\n [42]: thematicBreak,\n [45]: [setextUnderline, thematicBreak],\n [60]: htmlFlow,\n [61]: setextUnderline,\n [95]: thematicBreak,\n [96]: codeFenced,\n [126]: codeFenced\n}\n\n/** @satisfies {Extension['string']} */\nexport const string = {\n [38]: characterReference,\n [92]: characterEscape\n}\n\n/** @satisfies {Extension['text']} */\nexport const text = {\n [-5]: lineEnding,\n [-4]: lineEnding,\n [-3]: lineEnding,\n [33]: labelStartImage,\n [38]: characterReference,\n [42]: attention,\n [60]: [autolink, htmlText],\n [91]: labelStartLink,\n [92]: [hardBreakEscape, characterEscape],\n [93]: labelEnd,\n [95]: attention,\n [96]: codeText\n}\n\n/** @satisfies {Extension['insideSpan']} */\nexport const insideSpan = {\n null: [attention, resolveText]\n}\n\n/** @satisfies {Extension['attentionMarkers']} */\nexport const attentionMarkers = {\n null: [42, 95]\n}\n\n/** @satisfies {Extension['disable']} */\nexport const disable = {\n null: []\n}\n","/**\n * @typedef {import('micromark-util-types').Create} Create\n * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').ParseContext} ParseContext\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n */\n\nimport {combineExtensions} from 'micromark-util-combine-extensions'\nimport {content} from './initialize/content.js'\nimport {document} from './initialize/document.js'\nimport {flow} from './initialize/flow.js'\nimport {text, string} from './initialize/text.js'\nimport {createTokenizer} from './create-tokenizer.js'\nimport * as defaultConstructs from './constructs.js'\n\n/**\n * @param {ParseOptions | null | undefined} [options]\n * @returns {ParseContext}\n */\nexport function parse(options) {\n const settings = options || {}\n const constructs =\n /** @type {FullNormalizedExtension} */\n combineExtensions([defaultConstructs, ...(settings.extensions || [])])\n\n /** @type {ParseContext} */\n const parser = {\n defined: [],\n lazy: {},\n constructs,\n content: create(content),\n document: create(document),\n flow: create(flow),\n string: create(string),\n text: create(text)\n }\n return parser\n\n /**\n * @param {InitialConstruct} initial\n */\n function create(initial) {\n return creator\n /** @type {Create} */\n function creator(from) {\n return createTokenizer(parser, initial, from)\n }\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Value} Value\n */\n\n/**\n * @callback Preprocessor\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {boolean | null | undefined} [end=false]\n * @returns {Array}\n */\n\nconst search = /[\\0\\t\\n\\r]/g\n\n/**\n * @returns {Preprocessor}\n */\nexport function preprocess() {\n let column = 1\n let buffer = ''\n /** @type {boolean | undefined} */\n let start = true\n /** @type {boolean | undefined} */\n let atCarriageReturn\n return preprocessor\n\n /** @type {Preprocessor} */\n function preprocessor(value, encoding, end) {\n /** @type {Array} */\n const chunks = []\n /** @type {RegExpMatchArray | null} */\n let match\n /** @type {number} */\n let next\n /** @type {number} */\n let startPosition\n /** @type {number} */\n let endPosition\n /** @type {Code} */\n let code\n\n // @ts-expect-error `Buffer` does allow an encoding.\n value = buffer + value.toString(encoding)\n startPosition = 0\n buffer = ''\n if (start) {\n // To do: `markdown-rs` actually parses BOMs (byte order mark).\n if (value.charCodeAt(0) === 65279) {\n startPosition++\n }\n start = undefined\n }\n while (startPosition < value.length) {\n search.lastIndex = startPosition\n match = search.exec(value)\n endPosition =\n match && match.index !== undefined ? match.index : value.length\n code = value.charCodeAt(endPosition)\n if (!match) {\n buffer = value.slice(startPosition)\n break\n }\n if (code === 10 && startPosition === endPosition && atCarriageReturn) {\n chunks.push(-3)\n atCarriageReturn = undefined\n } else {\n if (atCarriageReturn) {\n chunks.push(-5)\n atCarriageReturn = undefined\n }\n if (startPosition < endPosition) {\n chunks.push(value.slice(startPosition, endPosition))\n column += endPosition - startPosition\n }\n switch (code) {\n case 0: {\n chunks.push(65533)\n column++\n break\n }\n case 9: {\n next = Math.ceil(column / 4) * 4\n chunks.push(-2)\n while (column++ < next) chunks.push(-1)\n break\n }\n case 10: {\n chunks.push(-4)\n column = 1\n break\n }\n default: {\n atCarriageReturn = true\n column = 1\n }\n }\n }\n startPosition = endPosition + 1\n }\n if (end) {\n if (atCarriageReturn) chunks.push(-5)\n if (buffer) chunks.push(buffer)\n chunks.push(null)\n }\n return chunks\n }\n}\n","/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base)\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 ||\n code === 11 ||\n (code > 13 && code < 32) ||\n // Control character (DEL) of C0, and C1 controls.\n (code > 126 && code < 160) ||\n // Lone high surrogates and low surrogates.\n (code > 55295 && code < 57344) ||\n // Noncharacters.\n (code > 64975 && code < 65008) /* eslint-disable no-bitwise */ ||\n (code & 65535) === 65535 ||\n (code & 65535) === 65534 /* eslint-enable no-bitwise */ ||\n // Out of range\n code > 1114111\n ) {\n return '\\uFFFD'\n }\n return String.fromCharCode(code)\n}\n","import {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nconst characterEscapeOrReference =\n /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @param {string} $2\n * @returns {string}\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1\n }\n\n // Reference.\n const head = $2.charCodeAt(0)\n if (head === 35) {\n const head = $2.charCodeAt(1)\n const hex = head === 120 || head === 88\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10)\n }\n return decodeNamedCharacterReference($2) || $0\n}\n","/**\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Value} Value\n *\n * @typedef {import('unist').Parent} UnistParent\n * @typedef {import('unist').Point} Point\n *\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').StaticPhrasingContent} StaticPhrasingContent\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').HTML} HTML\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('mdast').Text} Text\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('mdast').ReferenceType} ReferenceType\n * @typedef {import('../index.js').CompileData} CompileData\n */\n\n/**\n * @typedef {Root | Content} Node\n * @typedef {Extract} Parent\n *\n * @typedef {Omit & {type: 'fragment', children: Array}} Fragment\n */\n\n/**\n * @callback Transform\n * Extra transform, to change the AST afterwards.\n * @param {Root} tree\n * Tree to transform.\n * @returns {Root | undefined | null | void}\n * New tree or nothing (in which case the current tree is used).\n *\n * @callback Handle\n * Handle a token.\n * @param {CompileContext} this\n * Context.\n * @param {Token} token\n * Current token.\n * @returns {void}\n * Nothing.\n *\n * @typedef {Record} Handles\n * Token types mapping to handles\n *\n * @callback OnEnterError\n * Handle the case where the `right` token is open, but it is closed (by the\n * `left` token) or because we reached the end of the document.\n * @param {Omit} this\n * Context.\n * @param {Token | undefined} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {void}\n * Nothing.\n *\n * @callback OnExitError\n * Handle the case where the `right` token is open but it is closed by\n * exiting the `left` token.\n * @param {Omit} this\n * Context.\n * @param {Token} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {void}\n * Nothing.\n *\n * @typedef {[Token, OnEnterError | undefined]} TokenTuple\n * Open token on the stack, with an optional error handler for when\n * that token isn’t closed properly.\n */\n\n/**\n * @typedef Config\n * Configuration.\n *\n * We have our defaults, but extensions will add more.\n * @property {Array} canContainEols\n * Token types where line endings are used.\n * @property {Handles} enter\n * Opening handles.\n * @property {Handles} exit\n * Closing handles.\n * @property {Array} transforms\n * Tree transforms.\n *\n * @typedef {Partial} Extension\n * Change how markdown tokens from micromark are turned into mdast.\n *\n * @typedef CompileContext\n * mdast compiler context.\n * @property {Array} stack\n * Stack of nodes.\n * @property {Array} tokenStack\n * Stack of tokens.\n * @property {(key: Key) => CompileData[Key]} getData\n * Get data from the key/value store.\n * @property {(key: Key, value?: CompileData[Key]) => void} setData\n * Set data into the key/value store.\n * @property {(this: CompileContext) => void} buffer\n * Capture some of the output data.\n * @property {(this: CompileContext) => string} resume\n * Stop capturing and access the output data.\n * @property {(this: CompileContext, node: Kind, token: Token, onError?: OnEnterError) => Kind} enter\n * Enter a token.\n * @property {(this: CompileContext, token: Token, onError?: OnExitError) => Node} exit\n * Exit a token.\n * @property {TokenizeContext['sliceSerialize']} sliceSerialize\n * Get the string value of a token.\n * @property {Config} config\n * Configuration.\n *\n * @typedef FromMarkdownOptions\n * Configuration for how to build mdast.\n * @property {Array> | null | undefined} [mdastExtensions]\n * Extensions for this utility to change how tokens are turned into a tree.\n *\n * @typedef {ParseOptions & FromMarkdownOptions} Options\n * Configuration.\n */\n\n// To do: micromark: create a registry of tokens?\n// To do: next major: don’t return given `Node` from `enter`.\n// To do: next major: remove setter/getter.\n\nimport {toString} from 'mdast-util-to-string'\nimport {parse} from 'micromark/lib/parse.js'\nimport {preprocess} from 'micromark/lib/preprocess.js'\nimport {postprocess} from 'micromark/lib/postprocess.js'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nimport {decodeString} from 'micromark-util-decode-string'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {stringifyPosition} from 'unist-util-stringify-position'\nconst own = {}.hasOwnProperty\n\n/**\n * @param value\n * Markdown to parse.\n * @param encoding\n * Character encoding for when `value` is `Buffer`.\n * @param options\n * Configuration.\n * @returns\n * mdast tree.\n */\nexport const fromMarkdown =\n /**\n * @type {(\n * ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &\n * ((value: Value, options?: Options | null | undefined) => Root)\n * )}\n */\n\n /**\n * @param {Value} value\n * @param {Encoding | Options | null | undefined} [encoding]\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n */\n function (value, encoding, options) {\n if (typeof encoding !== 'string') {\n options = encoding\n encoding = undefined\n }\n return compiler(options)(\n postprocess(\n parse(options).document().write(preprocess()(value, encoding, true))\n )\n )\n }\n\n/**\n * Note this compiler only understand complete buffering, not streaming.\n *\n * @param {Options | null | undefined} [options]\n */\nfunction compiler(options) {\n /** @type {Config} */\n const config = {\n transforms: [],\n canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'],\n enter: {\n autolink: opener(link),\n autolinkProtocol: onenterdata,\n autolinkEmail: onenterdata,\n atxHeading: opener(heading),\n blockQuote: opener(blockQuote),\n characterEscape: onenterdata,\n characterReference: onenterdata,\n codeFenced: opener(codeFlow),\n codeFencedFenceInfo: buffer,\n codeFencedFenceMeta: buffer,\n codeIndented: opener(codeFlow, buffer),\n codeText: opener(codeText, buffer),\n codeTextData: onenterdata,\n data: onenterdata,\n codeFlowValue: onenterdata,\n definition: opener(definition),\n definitionDestinationString: buffer,\n definitionLabelString: buffer,\n definitionTitleString: buffer,\n emphasis: opener(emphasis),\n hardBreakEscape: opener(hardBreak),\n hardBreakTrailing: opener(hardBreak),\n htmlFlow: opener(html, buffer),\n htmlFlowData: onenterdata,\n htmlText: opener(html, buffer),\n htmlTextData: onenterdata,\n image: opener(image),\n label: buffer,\n link: opener(link),\n listItem: opener(listItem),\n listItemValue: onenterlistitemvalue,\n listOrdered: opener(list, onenterlistordered),\n listUnordered: opener(list),\n paragraph: opener(paragraph),\n reference: onenterreference,\n referenceString: buffer,\n resourceDestinationString: buffer,\n resourceTitleString: buffer,\n setextHeading: opener(heading),\n strong: opener(strong),\n thematicBreak: opener(thematicBreak)\n },\n exit: {\n atxHeading: closer(),\n atxHeadingSequence: onexitatxheadingsequence,\n autolink: closer(),\n autolinkEmail: onexitautolinkemail,\n autolinkProtocol: onexitautolinkprotocol,\n blockQuote: closer(),\n characterEscapeValue: onexitdata,\n characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,\n characterReferenceMarkerNumeric: onexitcharacterreferencemarker,\n characterReferenceValue: onexitcharacterreferencevalue,\n codeFenced: closer(onexitcodefenced),\n codeFencedFence: onexitcodefencedfence,\n codeFencedFenceInfo: onexitcodefencedfenceinfo,\n codeFencedFenceMeta: onexitcodefencedfencemeta,\n codeFlowValue: onexitdata,\n codeIndented: closer(onexitcodeindented),\n codeText: closer(onexitcodetext),\n codeTextData: onexitdata,\n data: onexitdata,\n definition: closer(),\n definitionDestinationString: onexitdefinitiondestinationstring,\n definitionLabelString: onexitdefinitionlabelstring,\n definitionTitleString: onexitdefinitiontitlestring,\n emphasis: closer(),\n hardBreakEscape: closer(onexithardbreak),\n hardBreakTrailing: closer(onexithardbreak),\n htmlFlow: closer(onexithtmlflow),\n htmlFlowData: onexitdata,\n htmlText: closer(onexithtmltext),\n htmlTextData: onexitdata,\n image: closer(onexitimage),\n label: onexitlabel,\n labelText: onexitlabeltext,\n lineEnding: onexitlineending,\n link: closer(onexitlink),\n listItem: closer(),\n listOrdered: closer(),\n listUnordered: closer(),\n paragraph: closer(),\n referenceString: onexitreferencestring,\n resourceDestinationString: onexitresourcedestinationstring,\n resourceTitleString: onexitresourcetitlestring,\n resource: onexitresource,\n setextHeading: closer(onexitsetextheading),\n setextHeadingLineSequence: onexitsetextheadinglinesequence,\n setextHeadingText: onexitsetextheadingtext,\n strong: closer(),\n thematicBreak: closer()\n }\n }\n configure(config, (options || {}).mdastExtensions || [])\n\n /** @type {CompileData} */\n const data = {}\n return compile\n\n /**\n * Turn micromark events into an mdast tree.\n *\n * @param {Array} events\n * Events.\n * @returns {Root}\n * mdast tree.\n */\n function compile(events) {\n /** @type {Root} */\n let tree = {\n type: 'root',\n children: []\n }\n /** @type {Omit} */\n const context = {\n stack: [tree],\n tokenStack: [],\n config,\n enter,\n exit,\n buffer,\n resume,\n setData,\n getData\n }\n /** @type {Array} */\n const listStack = []\n let index = -1\n while (++index < events.length) {\n // We preprocess lists to add `listItem` tokens, and to infer whether\n // items the list itself are spread out.\n if (\n events[index][1].type === 'listOrdered' ||\n events[index][1].type === 'listUnordered'\n ) {\n if (events[index][0] === 'enter') {\n listStack.push(index)\n } else {\n const tail = listStack.pop()\n index = prepareList(events, tail, index)\n }\n }\n }\n index = -1\n while (++index < events.length) {\n const handler = config[events[index][0]]\n if (own.call(handler, events[index][1].type)) {\n handler[events[index][1].type].call(\n Object.assign(\n {\n sliceSerialize: events[index][2].sliceSerialize\n },\n context\n ),\n events[index][1]\n )\n }\n }\n\n // Handle tokens still being open.\n if (context.tokenStack.length > 0) {\n const tail = context.tokenStack[context.tokenStack.length - 1]\n const handler = tail[1] || defaultOnError\n handler.call(context, undefined, tail[0])\n }\n\n // Figure out `root` position.\n tree.position = {\n start: point(\n events.length > 0\n ? events[0][1].start\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n ),\n end: point(\n events.length > 0\n ? events[events.length - 2][1].end\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n )\n }\n\n // Call transforms.\n index = -1\n while (++index < config.transforms.length) {\n tree = config.transforms[index](tree) || tree\n }\n return tree\n }\n\n /**\n * @param {Array} events\n * @param {number} start\n * @param {number} length\n * @returns {number}\n */\n function prepareList(events, start, length) {\n let index = start - 1\n let containerBalance = -1\n let listSpread = false\n /** @type {Token | undefined} */\n let listItem\n /** @type {number | undefined} */\n let lineIndex\n /** @type {number | undefined} */\n let firstBlankLineIndex\n /** @type {boolean | undefined} */\n let atMarker\n while (++index <= length) {\n const event = events[index]\n if (\n event[1].type === 'listUnordered' ||\n event[1].type === 'listOrdered' ||\n event[1].type === 'blockQuote'\n ) {\n if (event[0] === 'enter') {\n containerBalance++\n } else {\n containerBalance--\n }\n atMarker = undefined\n } else if (event[1].type === 'lineEndingBlank') {\n if (event[0] === 'enter') {\n if (\n listItem &&\n !atMarker &&\n !containerBalance &&\n !firstBlankLineIndex\n ) {\n firstBlankLineIndex = index\n }\n atMarker = undefined\n }\n } else if (\n event[1].type === 'linePrefix' ||\n event[1].type === 'listItemValue' ||\n event[1].type === 'listItemMarker' ||\n event[1].type === 'listItemPrefix' ||\n event[1].type === 'listItemPrefixWhitespace'\n ) {\n // Empty.\n } else {\n atMarker = undefined\n }\n if (\n (!containerBalance &&\n event[0] === 'enter' &&\n event[1].type === 'listItemPrefix') ||\n (containerBalance === -1 &&\n event[0] === 'exit' &&\n (event[1].type === 'listUnordered' ||\n event[1].type === 'listOrdered'))\n ) {\n if (listItem) {\n let tailIndex = index\n lineIndex = undefined\n while (tailIndex--) {\n const tailEvent = events[tailIndex]\n if (\n tailEvent[1].type === 'lineEnding' ||\n tailEvent[1].type === 'lineEndingBlank'\n ) {\n if (tailEvent[0] === 'exit') continue\n if (lineIndex) {\n events[lineIndex][1].type = 'lineEndingBlank'\n listSpread = true\n }\n tailEvent[1].type = 'lineEnding'\n lineIndex = tailIndex\n } else if (\n tailEvent[1].type === 'linePrefix' ||\n tailEvent[1].type === 'blockQuotePrefix' ||\n tailEvent[1].type === 'blockQuotePrefixWhitespace' ||\n tailEvent[1].type === 'blockQuoteMarker' ||\n tailEvent[1].type === 'listItemIndent'\n ) {\n // Empty\n } else {\n break\n }\n }\n if (\n firstBlankLineIndex &&\n (!lineIndex || firstBlankLineIndex < lineIndex)\n ) {\n listItem._spread = true\n }\n\n // Fix position.\n listItem.end = Object.assign(\n {},\n lineIndex ? events[lineIndex][1].start : event[1].end\n )\n events.splice(lineIndex || index, 0, ['exit', listItem, event[2]])\n index++\n length++\n }\n\n // Create a new list item.\n if (event[1].type === 'listItemPrefix') {\n listItem = {\n type: 'listItem',\n _spread: false,\n start: Object.assign({}, event[1].start),\n // @ts-expect-error: we’ll add `end` in a second.\n end: undefined\n }\n // @ts-expect-error: `listItem` is most definitely defined, TS...\n events.splice(index, 0, ['enter', listItem, event[2]])\n index++\n length++\n firstBlankLineIndex = undefined\n atMarker = true\n }\n }\n }\n events[start][1]._spread = listSpread\n return length\n }\n\n /**\n * Set data.\n *\n * @template {keyof CompileData} Key\n * Field type.\n * @param {Key} key\n * Key of field.\n * @param {CompileData[Key]} [value]\n * New value.\n * @returns {void}\n * Nothing.\n */\n function setData(key, value) {\n data[key] = value\n }\n\n /**\n * Get data.\n *\n * @template {keyof CompileData} Key\n * Field type.\n * @param {Key} key\n * Key of field.\n * @returns {CompileData[Key]}\n * Value.\n */\n function getData(key) {\n return data[key]\n }\n\n /**\n * Create an opener handle.\n *\n * @param {(token: Token) => Node} create\n * Create a node.\n * @param {Handle} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function opener(create, and) {\n return open\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {void}\n */\n function open(token) {\n enter.call(this, create(token), token)\n if (and) and.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @returns {void}\n */\n function buffer() {\n this.stack.push({\n type: 'fragment',\n children: []\n })\n }\n\n /**\n * @template {Node} Kind\n * Node type.\n * @this {CompileContext}\n * Context.\n * @param {Kind} node\n * Node to enter.\n * @param {Token} token\n * Corresponding token.\n * @param {OnEnterError | undefined} [errorHandler]\n * Handle the case where this token is open, but it is closed by something else.\n * @returns {Kind}\n * The given node.\n */\n function enter(node, token, errorHandler) {\n const parent = this.stack[this.stack.length - 1]\n // @ts-expect-error: Assume `Node` can exist as a child of `parent`.\n parent.children.push(node)\n this.stack.push(node)\n this.tokenStack.push([token, errorHandler])\n // @ts-expect-error: `end` will be patched later.\n node.position = {\n start: point(token.start)\n }\n return node\n }\n\n /**\n * Create a closer handle.\n *\n * @param {Handle} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function closer(and) {\n return close\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {void}\n */\n function close(token) {\n if (and) and.call(this, token)\n exit.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Token} token\n * Corresponding token.\n * @param {OnExitError | undefined} [onExitError]\n * Handle the case where another token is open.\n * @returns {Node}\n * The closed node.\n */\n function exit(token, onExitError) {\n const node = this.stack.pop()\n const open = this.tokenStack.pop()\n if (!open) {\n throw new Error(\n 'Cannot close `' +\n token.type +\n '` (' +\n stringifyPosition({\n start: token.start,\n end: token.end\n }) +\n '): it’s not open'\n )\n } else if (open[0].type !== token.type) {\n if (onExitError) {\n onExitError.call(this, token, open[0])\n } else {\n const handler = open[1] || defaultOnError\n handler.call(this, token, open[0])\n }\n }\n node.position.end = point(token.end)\n return node\n }\n\n /**\n * @this {CompileContext}\n * @returns {string}\n */\n function resume() {\n return toString(this.stack.pop())\n }\n\n //\n // Handlers.\n //\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistordered() {\n setData('expectingFirstListItemValue', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistitemvalue(token) {\n if (getData('expectingFirstListItemValue')) {\n const ancestor = this.stack[this.stack.length - 2]\n ancestor.start = Number.parseInt(this.sliceSerialize(token), 10)\n setData('expectingFirstListItemValue')\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfenceinfo() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.lang = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfencemeta() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.meta = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfence() {\n // Exit if this is the closing fence.\n if (getData('flowCodeInside')) return\n this.buffer()\n setData('flowCodeInside', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefenced() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/^(\\r?\\n|\\r)|(\\r?\\n|\\r)$/g, '')\n setData('flowCodeInside')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodeindented() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/(\\r?\\n|\\r)$/g, '')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitionlabelstring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiontitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiondestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitatxheadingsequence(token) {\n const node = this.stack[this.stack.length - 1]\n if (!node.depth) {\n const depth = this.sliceSerialize(token).length\n node.depth = depth\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadingtext() {\n setData('setextHeadingSlurpLineEnding', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadinglinesequence(token) {\n const node = this.stack[this.stack.length - 1]\n node.depth = this.sliceSerialize(token).charCodeAt(0) === 61 ? 1 : 2\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheading() {\n setData('setextHeadingSlurpLineEnding')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterdata(token) {\n const node = this.stack[this.stack.length - 1]\n let tail = node.children[node.children.length - 1]\n if (!tail || tail.type !== 'text') {\n // Add a new text node.\n tail = text()\n // @ts-expect-error: we’ll add `end` later.\n tail.position = {\n start: point(token.start)\n }\n // @ts-expect-error: Assume `parent` accepts `text`.\n node.children.push(tail)\n }\n this.stack.push(tail)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitdata(token) {\n const tail = this.stack.pop()\n tail.value += this.sliceSerialize(token)\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlineending(token) {\n const context = this.stack[this.stack.length - 1]\n // If we’re at a hard break, include the line ending in there.\n if (getData('atHardBreak')) {\n const tail = context.children[context.children.length - 1]\n tail.position.end = point(token.end)\n setData('atHardBreak')\n return\n }\n if (\n !getData('setextHeadingSlurpLineEnding') &&\n config.canContainEols.includes(context.type)\n ) {\n onenterdata.call(this, token)\n onexitdata.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithardbreak() {\n setData('atHardBreak', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmlflow() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmltext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcodetext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlink() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (getData('inReference')) {\n /** @type {ReferenceType} */\n const referenceType = getData('referenceType') || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n setData('referenceType')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitimage() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (getData('inReference')) {\n /** @type {ReferenceType} */\n const referenceType = getData('referenceType') || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n setData('referenceType')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabeltext(token) {\n const string = this.sliceSerialize(token)\n const ancestor = this.stack[this.stack.length - 2]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n ancestor.label = decodeString(string)\n // @ts-expect-error: same as above.\n ancestor.identifier = normalizeIdentifier(string).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabel() {\n const fragment = this.stack[this.stack.length - 1]\n const value = this.resume()\n const node = this.stack[this.stack.length - 1]\n // Assume a reference.\n setData('inReference', true)\n if (node.type === 'link') {\n /** @type {Array} */\n // @ts-expect-error: Assume static phrasing content.\n const children = fragment.children\n node.children = children\n } else {\n node.alt = value\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcedestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcetitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresource() {\n setData('inReference')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterreference() {\n setData('referenceType', 'collapsed')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitreferencestring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n node.label = label\n // @ts-expect-error: same as above.\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n setData('referenceType', 'full')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcharacterreferencemarker(token) {\n setData('characterReferenceType', token.type)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcharacterreferencevalue(token) {\n const data = this.sliceSerialize(token)\n const type = getData('characterReferenceType')\n /** @type {string} */\n let value\n if (type) {\n value = decodeNumericCharacterReference(\n data,\n type === 'characterReferenceMarkerNumeric' ? 10 : 16\n )\n setData('characterReferenceType')\n } else {\n const result = decodeNamedCharacterReference(data)\n value = result\n }\n const tail = this.stack.pop()\n tail.value += value\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkprotocol(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = this.sliceSerialize(token)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkemail(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = 'mailto:' + this.sliceSerialize(token)\n }\n\n //\n // Creaters.\n //\n\n /** @returns {Blockquote} */\n function blockQuote() {\n return {\n type: 'blockquote',\n children: []\n }\n }\n\n /** @returns {Code} */\n function codeFlow() {\n return {\n type: 'code',\n lang: null,\n meta: null,\n value: ''\n }\n }\n\n /** @returns {InlineCode} */\n function codeText() {\n return {\n type: 'inlineCode',\n value: ''\n }\n }\n\n /** @returns {Definition} */\n function definition() {\n return {\n type: 'definition',\n identifier: '',\n label: null,\n title: null,\n url: ''\n }\n }\n\n /** @returns {Emphasis} */\n function emphasis() {\n return {\n type: 'emphasis',\n children: []\n }\n }\n\n /** @returns {Heading} */\n function heading() {\n // @ts-expect-error `depth` will be set later.\n return {\n type: 'heading',\n depth: undefined,\n children: []\n }\n }\n\n /** @returns {Break} */\n function hardBreak() {\n return {\n type: 'break'\n }\n }\n\n /** @returns {HTML} */\n function html() {\n return {\n type: 'html',\n value: ''\n }\n }\n\n /** @returns {Image} */\n function image() {\n return {\n type: 'image',\n title: null,\n url: '',\n alt: null\n }\n }\n\n /** @returns {Link} */\n function link() {\n return {\n type: 'link',\n title: null,\n url: '',\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {List}\n */\n function list(token) {\n return {\n type: 'list',\n ordered: token.type === 'listOrdered',\n start: null,\n spread: token._spread,\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {ListItem}\n */\n function listItem(token) {\n return {\n type: 'listItem',\n spread: token._spread,\n checked: null,\n children: []\n }\n }\n\n /** @returns {Paragraph} */\n function paragraph() {\n return {\n type: 'paragraph',\n children: []\n }\n }\n\n /** @returns {Strong} */\n function strong() {\n return {\n type: 'strong',\n children: []\n }\n }\n\n /** @returns {Text} */\n function text() {\n return {\n type: 'text',\n value: ''\n }\n }\n\n /** @returns {ThematicBreak} */\n function thematicBreak() {\n return {\n type: 'thematicBreak'\n }\n }\n}\n\n/**\n * Copy a point-like value.\n *\n * @param {Point} d\n * Point-like value.\n * @returns {Point}\n * unist point.\n */\nfunction point(d) {\n return {\n line: d.line,\n column: d.column,\n offset: d.offset\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Array>} extensions\n * @returns {void}\n */\nfunction configure(combined, extensions) {\n let index = -1\n while (++index < extensions.length) {\n const value = extensions[index]\n if (Array.isArray(value)) {\n configure(combined, value)\n } else {\n extension(combined, value)\n }\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Extension} extension\n * @returns {void}\n */\nfunction extension(combined, extension) {\n /** @type {keyof Extension} */\n let key\n for (key in extension) {\n if (own.call(extension, key)) {\n if (key === 'canContainEols') {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n } else if (key === 'transforms') {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n } else if (key === 'enter' || key === 'exit') {\n const right = extension[key]\n if (right) {\n Object.assign(combined[key], right)\n }\n }\n }\n }\n}\n\n/** @type {OnEnterError} */\nfunction defaultOnError(left, right) {\n if (left) {\n throw new Error(\n 'Cannot close `' +\n left.type +\n '` (' +\n stringifyPosition({\n start: left.start,\n end: left.end\n }) +\n '): a different token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is open'\n )\n } else {\n throw new Error(\n 'Cannot close document, a token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is still open'\n )\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\nimport {subtokenize} from 'micromark-util-subtokenize'\n\n/**\n * @param {Array} events\n * @returns {Array}\n */\nexport function postprocess(events) {\n while (!subtokenize(events)) {\n // Empty\n }\n return events\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * @this {import('unified').Processor}\n * @type {import('unified').Plugin<[Options?] | void[], string, Root>}\n */\nexport default function remarkParse(options) {\n /** @type {import('unified').ParserFunction} */\n const parser = (doc) => {\n // Assume options.\n const settings = /** @type {Options} */ (this.data('settings'))\n\n return fromMarkdown(\n doc,\n Object.assign({}, settings, options, {\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: this.data('micromarkExtensions') || [],\n mdastExtensions: this.data('fromMarkdownExtensions') || []\n })\n )\n }\n\n Object.assign(this, {Parser: parser})\n}\n","import {asciiAlphanumeric} from 'micromark-util-character'\nimport {encode} from 'micromark-util-encode'\n/**\n * Make a value safe for injection as a URL.\n *\n * This encodes unsafe characters with percent-encoding and skips already\n * encoded sequences (see `normalizeUri`).\n * Further unsafe characters are encoded as character references (see\n * `micromark-util-encode`).\n *\n * A regex of allowed protocols can be given, in which case the URL is\n * sanitized.\n * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or\n * `/^https?$/i` for `img[src]` (this is what `github.com` allows).\n * If the URL includes an unknown protocol (one not matched by `protocol`, such\n * as a dangerous example, `javascript:`), the value is ignored.\n *\n * @param {string | undefined} url\n * URI to sanitize.\n * @param {RegExp | null | undefined} [protocol]\n * Allowed protocols.\n * @returns {string}\n * Sanitized URI.\n */\nexport function sanitizeUri(url, protocol) {\n const value = encode(normalizeUri(url || ''))\n if (!protocol) {\n return value\n }\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash > -1 && colon > slash) ||\n (questionMark > -1 && colon > questionMark) ||\n (numberSign > -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n protocol.test(value.slice(0, colon))\n ) {\n return value\n }\n return ''\n}\n\n/**\n * Normalize a URL.\n *\n * Encode unsafe characters with percent-encoding, skipping already encoded\n * sequences.\n *\n * @param {string} value\n * URI to normalize.\n * @returns {string}\n * Normalized URI.\n */\nexport function normalizeUri(value) {\n /** @type {Array} */\n const result = []\n let index = -1\n let start = 0\n let skip = 0\n while (++index < value.length) {\n const code = value.charCodeAt(index)\n /** @type {string} */\n let replace = ''\n\n // A correct percent encoded value.\n if (\n code === 37 &&\n asciiAlphanumeric(value.charCodeAt(index + 1)) &&\n asciiAlphanumeric(value.charCodeAt(index + 2))\n ) {\n skip = 2\n }\n // ASCII.\n else if (code < 128) {\n if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {\n replace = String.fromCharCode(code)\n }\n }\n // Astral.\n else if (code > 55295 && code < 57344) {\n const next = value.charCodeAt(index + 1)\n\n // A correct surrogate pair.\n if (code < 56320 && next > 56319 && next < 57344) {\n replace = String.fromCharCode(code, next)\n skip = 1\n }\n // Lone surrogate.\n else {\n replace = '\\uFFFD'\n }\n }\n // Unicode.\n else {\n replace = String.fromCharCode(code)\n }\n if (replace) {\n result.push(value.slice(start, index), encodeURIComponent(replace))\n start = index + skip + 1\n replace = ''\n }\n if (skip) {\n index += skip\n skip = 0\n }\n }\n return result.join('') + value.slice(start)\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @typedef {Record} Props\n * @typedef {null | undefined | string | Props | TestFunctionAnything | Array} Test\n * Check for an arbitrary node, unaware of TypeScript inferral.\n *\n * @callback TestFunctionAnything\n * Check if a node passes a test, unaware of TypeScript inferral.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | void}\n * Whether this node passes the test.\n */\n\n/**\n * @template {Node} Kind\n * Node type.\n * @typedef {Kind['type'] | Partial | TestFunctionPredicate | Array | TestFunctionPredicate>} PredicateTest\n * Check for a node that can be inferred by TypeScript.\n */\n\n/**\n * Check if a node passes a certain test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback TestFunctionPredicate\n * Complex test function for a node that can be inferred by TypeScript.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this node passes the test.\n */\n\n/**\n * @callback AssertAnything\n * Check that an arbitrary value is a node, unaware of TypeScript inferral.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if a node is a node and passes a certain node test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback AssertPredicate\n * Check that an arbitrary value is a specific node, aware of TypeScript.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @param test\n * A check for a specific node.\n * @param index\n * The node’s position in its parent.\n * @param parent\n * The node’s parent.\n * @returns\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n /**\n * @type {(\n * (() => false) &\n * ((node: unknown, test: PredicateTest, index: number, parent: Parent, context?: unknown) => node is Kind) &\n * ((node: unknown, test: PredicateTest, index?: null | undefined, parent?: null | undefined, context?: unknown) => node is Kind) &\n * ((node: unknown, test: Test, index: number, parent: Parent, context?: unknown) => boolean) &\n * ((node: unknown, test?: Test, index?: null | undefined, parent?: null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function is(node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n // @ts-expect-error Looks like a node.\n return node && node.type && typeof node.type === 'string'\n ? Boolean(check.call(context, node, index, parent))\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns\n * An assertion.\n */\nexport const convert =\n /**\n * @type {(\n * ((test: PredicateTest) => AssertPredicate) &\n * ((test?: Test) => AssertAnything)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {AssertAnything}\n */\n function (test) {\n if (test === undefined || test === null) {\n return ok\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array} tests\n * @returns {AssertAnything}\n */\nfunction anyFactory(tests) {\n /** @type {Array} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @param {Array} parameters\n * @returns {boolean}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].call(this, ...parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {AssertAnything}\n */\nfunction propsFactory(check) {\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n /** @type {string} */\n let key\n\n for (key in check) {\n // @ts-expect-error: hush, it sure works as an index.\n if (node[key] !== check[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {AssertAnything}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunctionAnything} check\n * @returns {AssertAnything}\n */\nfunction castFactory(check) {\n return assertion\n\n /**\n * @this {unknown}\n * @param {unknown} node\n * @param {Array} parameters\n * @returns {boolean}\n */\n function assertion(node, ...parameters) {\n return Boolean(\n node &&\n typeof node === 'object' &&\n 'type' in node &&\n // @ts-expect-error: fine.\n Boolean(check.call(this, node, ...parameters))\n )\n }\n}\n\nfunction ok() {\n return true\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n */\n\n/**\n * @typedef {boolean | 'skip'} Action\n * Union of the action types.\n *\n * @typedef {number} Index\n * Move to the sibling at `index` next (after node itself is completely\n * traversed).\n *\n * Useful if mutating the tree, such as removing the node the visitor is\n * currently on, or any of its previous siblings.\n * Results less than 0 or greater than or equal to `children.length` stop\n * traversing the parent.\n *\n * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple\n * List with one or two values, the first an action, the second an index.\n *\n * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult\n * Any value that can be returned from a visitor.\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform the parent of node (the last of `ancestors`).\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of an ancestor still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Array} ancestors\n * Ancestors of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * Tree type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {Visitor, Check>, Extract, Parent>>} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parents`.\n */\n\nimport {convert} from 'unist-util-is'\nimport {color} from './color.js'\n\n/**\n * Continue traversing as normal.\n */\nexport const CONTINUE = true\n\n/**\n * Stop traversing immediately.\n */\nexport const EXIT = false\n\n/**\n * Do not traverse this node’s children.\n */\nexport const SKIP = 'skip'\n\n/**\n * Visit nodes, with ancestral information.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visitParents =\n /**\n * @type {(\n * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) &\n * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n // @ts-expect-error no visitor given, so `visitor` is test.\n visitor = test\n test = null\n }\n\n const is = convert(test)\n const step = reverse ? -1 : 1\n\n factory(tree, undefined, [])()\n\n /**\n * @param {Node} node\n * @param {number | undefined} index\n * @param {Array} parents\n */\n function factory(node, index, parents) {\n /** @type {Record} */\n // @ts-expect-error: hush\n const value = node && typeof node === 'object' ? node : {}\n\n if (typeof value.type === 'string') {\n const name =\n // `hast`\n typeof value.tagName === 'string'\n ? value.tagName\n : // `xast`\n typeof value.name === 'string'\n ? value.name\n : undefined\n\n Object.defineProperty(visit, 'name', {\n value:\n 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')'\n })\n }\n\n return visit\n\n function visit() {\n /** @type {ActionTuple} */\n let result = []\n /** @type {ActionTuple} */\n let subresult\n /** @type {number} */\n let offset\n /** @type {Array} */\n let grandparents\n\n if (!test || is(node, index, parents[parents.length - 1] || null)) {\n result = toResult(visitor(node, parents))\n\n if (result[0] === EXIT) {\n return result\n }\n }\n\n // @ts-expect-error looks like a parent.\n if (node.children && result[0] !== SKIP) {\n // @ts-expect-error looks like a parent.\n offset = (reverse ? node.children.length : -1) + step\n // @ts-expect-error looks like a parent.\n grandparents = parents.concat(node)\n\n // @ts-expect-error looks like a parent.\n while (offset > -1 && offset < node.children.length) {\n // @ts-expect-error looks like a parent.\n subresult = factory(node.children[offset], offset, grandparents)()\n\n if (subresult[0] === EXIT) {\n return subresult\n }\n\n offset =\n typeof subresult[1] === 'number' ? subresult[1] : offset + step\n }\n }\n\n return result\n }\n }\n }\n )\n\n/**\n * Turn a return value into a clean result.\n *\n * @param {VisitorResult} value\n * Valid return values from visitors.\n * @returns {ActionTuple}\n * Clean result.\n */\nfunction toResult(value) {\n if (Array.isArray(value)) {\n return value\n }\n\n if (typeof value === 'number') {\n return [CONTINUE, value]\n }\n\n return [value]\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * Check if `Child` can be a child of `Ancestor`.\n *\n * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns\n * `never`.\n *\n * @template {Node} Ancestor\n * Node type.\n * @template {Node} Child\n * Node type.\n * @typedef {(\n * Ancestor extends Parent\n * ? Child extends Ancestor['children'][number]\n * ? Ancestor\n * : never\n * : never\n * )} ParentsOf\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends Node ? number | null : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends Node ? Ancestor | null : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Visited\n * Node type.\n * @template {Parent} Ancestor\n * Parent type.\n * @typedef {Visitor>} BuildVisitorFromMatch\n */\n\n/**\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n * @typedef {(\n * BuildVisitorFromMatch<\n * import('unist-util-visit-parents/complex-types.js').Matches,\n * Extract\n * >\n * )} BuildVisitorFromDescendants\n */\n\n/**\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} [Tree=Node]\n * Node type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {(\n * BuildVisitorFromDescendants<\n * import('unist-util-visit-parents/complex-types.js').InclusiveDescendant,\n * Check\n * >\n * )} BuildVisitor\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visit =\n /**\n * @type {(\n * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) &\n * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n visitor = test\n test = null\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {Node} node\n * @param {Array} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n return visitor(\n node,\n parent ? parent.children.indexOf(node) : null,\n parent\n )\n }\n }\n )\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n","/**\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {NodeLike | Node | null | undefined} [node]\n * Node.\n * @returns {Position}\n * Position.\n */\nexport function position(node) {\n return {start: pointStart(node), end: pointEnd(node)}\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'start' | 'end'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {NodeLike | Node | null | undefined} [node]\n * @returns {Point}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n // To do: next major: don’t return points when invalid.\n return {\n // @ts-expect-error: in practice, null is allowed.\n line: point.line || null,\n // @ts-expect-error: in practice, null is allowed.\n column: point.column || null,\n // @ts-expect-error: in practice, null is allowed.\n offset: point.offset > -1 ? point.offset : null\n }\n }\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Definition} Definition\n */\n\n/**\n * @typedef {Root | Content} Node\n *\n * @callback GetDefinition\n * Get a definition by identifier.\n * @param {string | null | undefined} [identifier]\n * Identifier of definition.\n * @returns {Definition | null}\n * Definition corresponding to `identifier` or `null`.\n */\n\nimport {visit} from 'unist-util-visit'\n\nconst own = {}.hasOwnProperty\n\n/**\n * Find definitions in `tree`.\n *\n * Uses CommonMark precedence, which means that earlier definitions are\n * preferred over duplicate later definitions.\n *\n * @param {Node} tree\n * Tree to check.\n * @returns {GetDefinition}\n * Getter.\n */\nexport function definitions(tree) {\n /** @type {Record} */\n const cache = Object.create(null)\n\n if (!tree || !tree.type) {\n throw new Error('mdast-util-definitions expected node')\n }\n\n visit(tree, 'definition', (definition) => {\n const id = clean(definition.identifier)\n if (id && !own.call(cache, id)) {\n cache[id] = definition\n }\n })\n\n return definition\n\n /** @type {GetDefinition} */\n function definition(identifier) {\n const id = clean(identifier)\n // To do: next major: return `undefined` when not found.\n return id && own.call(cache, id) ? cache[id] : null\n }\n}\n\n/**\n * @param {string | null | undefined} [value]\n * @returns {string}\n */\nfunction clean(value) {\n return String(value || '').toUpperCase()\n}\n","/**\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('hast').Element} Element\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {FootnoteReference} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function footnoteReference(state, node) {\n const id = String(node.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n const index = state.footnoteOrder.indexOf(id)\n /** @type {number} */\n let counter\n\n if (index === -1) {\n state.footnoteOrder.push(id)\n state.footnoteCounts[id] = 1\n counter = state.footnoteOrder.length\n } else {\n state.footnoteCounts[id]++\n counter = index + 1\n }\n\n const reuseCounter = state.footnoteCounts[id]\n\n /** @type {Element} */\n const link = {\n type: 'element',\n tagName: 'a',\n properties: {\n href: '#' + state.clobberPrefix + 'fn-' + safeId,\n id:\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (reuseCounter > 1 ? '-' + reuseCounter : ''),\n dataFootnoteRef: true,\n ariaDescribedBy: ['footnote-label']\n },\n children: [{type: 'text', value: String(counter)}]\n }\n state.patch(node, link)\n\n /** @type {Element} */\n const sup = {\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [link]\n }\n state.patch(node, sup)\n return state.applyData(node, sup)\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Reference} Reference\n * @typedef {import('mdast').Root} Root\n *\n * @typedef {import('./state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} References\n */\n\n// To do: next major: always return array.\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {References} node\n * Reference node (image, link).\n * @returns {ElementContent | Array}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return {type: 'text', value: '![' + node.alt + suffix}\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} Parents\n */\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | null | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: .\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === undefined || spread === null\n ? node.children.length > 1\n : spread\n}\n","const tab = 9 /* `\\t` */\nconst space = 32 /* ` ` */\n\n/**\n * Remove initial and final spaces and tabs at the line breaks in `value`.\n * Does not trim initial and final spaces and tabs of the value itself.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Trimmed value.\n */\nexport function trimLines(value) {\n const source = String(value)\n const search = /\\r?\\n|\\r/g\n let match = search.exec(source)\n let last = 0\n /** @type {Array} */\n const lines = []\n\n while (match) {\n lines.push(\n trimLine(source.slice(last, match.index), last > 0, true),\n match[0]\n )\n\n last = match.index + match[0].length\n match = search.exec(source)\n }\n\n lines.push(trimLine(source.slice(last), last > 0, false))\n\n return lines.join('')\n}\n\n/**\n * @param {string} value\n * Line to trim.\n * @param {boolean} start\n * Whether to trim the start of the line.\n * @param {boolean} end\n * Whether to trim the end of the line.\n * @returns {string}\n * Trimmed line.\n */\nfunction trimLine(value, start, end) {\n let startIndex = 0\n let endIndex = value.length\n\n if (start) {\n let code = value.codePointAt(startIndex)\n\n while (code === tab || code === space) {\n startIndex++\n code = value.codePointAt(startIndex)\n }\n }\n\n if (end) {\n let code = value.codePointAt(endIndex - 1)\n\n while (code === tab || code === space) {\n endIndex--\n code = value.codePointAt(endIndex - 1)\n }\n }\n\n return endIndex > startIndex ? value.slice(startIndex, endIndex) : ''\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {footnote} from './footnote.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n footnote,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n // To do: next major: return `undefined`.\n return null\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').Break} Break\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n // To do: next major, use `node.lang` w/o regex, the splitting’s been going\n // on for years in remark now.\n const lang = node.lang ? node.lang.match(/^[^ \\t]+(?=[ \\t]|$)/) : null\n /** @type {Properties} */\n const properties = {}\n\n if (lang) {\n properties.className = ['language-' + lang]\n }\n\n // Create ``.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `
`.\n  result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n  state.patch(node, result)\n  return result\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Delete} Delete\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Delete} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strikethrough(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'del',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Emphasis} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function emphasis(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'em',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Footnote} Footnote\n * @typedef {import('../state.js').State} State\n */\n\nimport {footnoteReference} from './footnote-reference.js'\n\n// To do: when both:\n// * \n// * \n// …are archived, remove this (also from mdast).\n// These inline notes are not used in GFM.\n\n/**\n * Turn an mdast `footnote` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Footnote} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function footnote(state, node) {\n  const footnoteById = state.footnoteById\n  let no = 1\n\n  while (no in footnoteById) no++\n\n  const identifier = String(no)\n\n  footnoteById[identifier] = {\n    type: 'footnoteDefinition',\n    identifier,\n    children: [{type: 'paragraph', children: node.children}],\n    position: node.position\n  }\n\n  return footnoteReference(state, {\n    type: 'footnoteReference',\n    identifier,\n    position: node.position\n  })\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Heading} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function heading(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'h' + node.depth,\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').HTML} Html\n * @typedef {import('../state.js').State} State\n * @typedef {import('../../index.js').Raw} Raw\n */\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n *   Info passed around.\n * @param {Html} node\n *   mdast node.\n * @returns {Raw | Element | null}\n *   hast node.\n */\nexport function html(state, node) {\n  if (state.dangerous) {\n    /** @type {Raw} */\n    const result = {type: 'raw', value: node.value}\n    state.patch(node, result)\n    return state.applyData(node, result)\n  }\n\n  // To do: next major: return `undefined`.\n  return null\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ImageReference} node\n *   mdast node.\n * @returns {ElementContent | Array}\n *   hast node.\n */\nexport function imageReference(state, node) {\n  const def = state.definition(node.identifier)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(def.url || ''), alt: node.alt}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Image} Image\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Image} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function image(state, node) {\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(node.url)}\n\n  if (node.alt !== null && node.alt !== undefined) {\n    properties.alt = node.alt\n  }\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {InlineCode} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function inlineCode(state, node) {\n  /** @type {Text} */\n  const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n  state.patch(node, text)\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'code',\n    properties: {},\n    children: [text]\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {LinkReference} node\n *   mdast node.\n * @returns {ElementContent | Array}\n *   hast node.\n */\nexport function linkReference(state, node) {\n  const def = state.definition(node.identifier)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(def.url || '')}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Link} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function link(state, node) {\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(node.url)}\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {List} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function list(state, node) {\n  /** @type {Properties} */\n  const properties = {}\n  const results = state.all(node)\n  let index = -1\n\n  if (typeof node.start === 'number' && node.start !== 1) {\n    properties.start = node.start\n  }\n\n  // Like GitHub, add a class for custom styling.\n  while (++index < results.length) {\n    const child = results[index]\n\n    if (\n      child.type === 'element' &&\n      child.tagName === 'li' &&\n      child.properties &&\n      Array.isArray(child.properties.className) &&\n      child.properties.className.includes('task-list-item')\n    ) {\n      properties.className = ['contains-task-list']\n      break\n    }\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: node.ordered ? 'ol' : 'ul',\n    properties,\n    children: state.wrap(results, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `paragraph` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Paragraph} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function paragraph(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'p',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `root` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastRoot} node\n *   mdast node.\n * @returns {HastRoot | HastElement}\n *   hast node.\n */\nexport function root(state, node) {\n  /** @type {HastRoot} */\n  const result = {type: 'root', children: state.wrap(state.all(node))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `strong` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Strong} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strong(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'strong',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Table} Table\n * @typedef {import('../state.js').State} State\n */\n\nimport {pointStart, pointEnd} from 'unist-util-position'\n\n/**\n * Turn an mdast `table` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Table} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function table(state, node) {\n  const rows = state.all(node)\n  const firstRow = rows.shift()\n  /** @type {Array} */\n  const tableContent = []\n\n  if (firstRow) {\n    /** @type {Element} */\n    const head = {\n      type: 'element',\n      tagName: 'thead',\n      properties: {},\n      children: state.wrap([firstRow], true)\n    }\n    state.patch(node.children[0], head)\n    tableContent.push(head)\n  }\n\n  if (rows.length > 0) {\n    /** @type {Element} */\n    const body = {\n      type: 'element',\n      tagName: 'tbody',\n      properties: {},\n      children: state.wrap(rows, true)\n    }\n\n    const start = pointStart(node.children[1])\n    const end = pointEnd(node.children[node.children.length - 1])\n    if (start.line && end.line) body.position = {start, end}\n    tableContent.push(body)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'table',\n    properties: {},\n    children: state.wrap(tableContent, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `tableCell` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableCell} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function tableCell(state, node) {\n  // Note: this function is normally not called: see `table-row` for how rows\n  // and their cells are compiled.\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'td', // Assume body cell.\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').TableRow} TableRow\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} Parents\n */\n\n/**\n * Turn an mdast `tableRow` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableRow} node\n *   mdast node.\n * @param {Parents | null | undefined} parent\n *   Parent of `node`.\n * @returns {Element}\n *   hast node.\n */\nexport function tableRow(state, node, parent) {\n  const siblings = parent ? parent.children : undefined\n  // Generate a body row when without parent.\n  const rowIndex = siblings ? siblings.indexOf(node) : 1\n  const tagName = rowIndex === 0 ? 'th' : 'td'\n  const align = parent && parent.type === 'table' ? parent.align : undefined\n  const length = align ? align.length : node.children.length\n  let cellIndex = -1\n  /** @type {Array} */\n  const cells = []\n\n  while (++cellIndex < length) {\n    // Note: can also be undefined.\n    const cell = node.children[cellIndex]\n    /** @type {Properties} */\n    const properties = {}\n    const alignValue = align ? align[cellIndex] : undefined\n\n    if (alignValue) {\n      properties.align = alignValue\n    }\n\n    /** @type {Element} */\n    let result = {type: 'element', tagName, properties, children: []}\n\n    if (cell) {\n      result.children = state.all(cell)\n      state.patch(cell, result)\n      result = state.applyData(node, result)\n    }\n\n    cells.push(result)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'tr',\n    properties: {},\n    children: state.wrap(cells, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').Text} HastText\n * @typedef {import('mdast').Text} MdastText\n * @typedef {import('../state.js').State} State\n */\n\nimport {trimLines} from 'trim-lines'\n\n/**\n * Turn an mdast `text` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastText} node\n *   mdast node.\n * @returns {HastText | HastElement}\n *   hast node.\n */\nexport function text(state, node) {\n  /** @type {HastText} */\n  const result = {type: 'text', value: trimLines(String(node.value))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ThematicBreak} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function thematicBreak(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'hr',\n    properties: {},\n    children: []\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Content} HastContent\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Content} MdastContent\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Parent} MdastParent\n * @typedef {import('mdast').Root} MdastRoot\n */\n\n/**\n * @typedef {HastRoot | HastContent} HastNodes\n * @typedef {MdastRoot | MdastContent} MdastNodes\n * @typedef {Extract} MdastParents\n *\n * @typedef EmbeddedHastFields\n *   hast fields.\n * @property {string | null | undefined} [hName]\n *   Generate a specific element with this tag name instead.\n * @property {HastProperties | null | undefined} [hProperties]\n *   Generate an element with these properties instead.\n * @property {Array | null | undefined} [hChildren]\n *   Generate an element with this content instead.\n *\n * @typedef {Record & EmbeddedHastFields} MdastData\n *   mdast data with embedded hast fields.\n *\n * @typedef {MdastNodes & {data?: MdastData | null | undefined}} MdastNodeWithData\n *   mdast node with embedded hast data.\n *\n * @typedef PointLike\n *   Point-like value.\n * @property {number | null | undefined} [line]\n *   Line.\n * @property {number | null | undefined} [column]\n *   Column.\n * @property {number | null | undefined} [offset]\n *   Offset.\n *\n * @typedef PositionLike\n *   Position-like value.\n * @property {PointLike | null | undefined} [start]\n *   Point-like value.\n * @property {PointLike | null | undefined} [end]\n *   Point-like value.\n *\n * @callback Handler\n *   Handle a node.\n * @param {State} state\n *   Info passed around.\n * @param {any} node\n *   mdast node to handle.\n * @param {MdastParents | null | undefined} parent\n *   Parent of `node`.\n * @returns {HastElementContent | Array | null | undefined}\n *   hast node.\n *\n * @callback HFunctionProps\n *   Signature of `state` for when props are passed.\n * @param {MdastNodes | PositionLike | null | undefined} node\n *   mdast node or unist position.\n * @param {string} tagName\n *   HTML tag name.\n * @param {HastProperties} props\n *   Properties.\n * @param {Array | null | undefined} [children]\n *   hast content.\n * @returns {HastElement}\n *   Compiled element.\n *\n * @callback HFunctionNoProps\n *   Signature of `state` for when no props are passed.\n * @param {MdastNodes | PositionLike | null | undefined} node\n *   mdast node or unist position.\n * @param {string} tagName\n *   HTML tag name.\n * @param {Array | null | undefined} [children]\n *   hast content.\n * @returns {HastElement}\n *   Compiled element.\n *\n * @typedef HFields\n *   Info on `state`.\n * @property {boolean} dangerous\n *   Whether HTML is allowed.\n * @property {string} clobberPrefix\n *   Prefix to use to prevent DOM clobbering.\n * @property {string} footnoteLabel\n *   Label to use to introduce the footnote section.\n * @property {string} footnoteLabelTagName\n *   HTML used for the footnote label.\n * @property {HastProperties} footnoteLabelProperties\n *   Properties on the HTML tag used for the footnote label.\n * @property {string} footnoteBackLabel\n *   Label to use from backreferences back to their footnote call.\n * @property {(identifier: string) => MdastDefinition | null} definition\n *   Definition cache.\n * @property {Record} footnoteById\n *   Footnote definitions by their identifier.\n * @property {Array} footnoteOrder\n *   Identifiers of order when footnote calls first appear in tree order.\n * @property {Record} footnoteCounts\n *   Counts for how often the same footnote was called.\n * @property {Handlers} handlers\n *   Applied handlers.\n * @property {Handler} unknownHandler\n *   Handler for any none not in `passThrough` or otherwise handled.\n * @property {(from: MdastNodes, node: HastNodes) => void} patch\n *   Copy a node’s positional info.\n * @property {(from: MdastNodes, to: Type) => Type | HastElement} applyData\n *   Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {(node: MdastNodes, parent: MdastParents | null | undefined) => HastElementContent | Array | null | undefined} one\n *   Transform an mdast node to hast.\n * @property {(node: MdastNodes) => Array} all\n *   Transform the children of an mdast parent to hast.\n * @property {(nodes: Array, loose?: boolean | null | undefined) => Array} wrap\n *   Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n * @property {(left: MdastNodeWithData | PositionLike | null | undefined, right: HastElementContent) => HastElementContent} augment\n *   Like `state` but lower-level and usable on non-elements.\n *   Deprecated: use `patch` and `applyData`.\n * @property {Array} passThrough\n *   List of node types to pass through untouched (except for their children).\n *\n * @typedef Options\n *   Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n *   Whether to persist raw HTML in markdown in the hast tree.\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n *   Prefix to use before the `id` attribute on footnotes to prevent it from\n *   *clobbering*.\n * @property {string | null | undefined} [footnoteBackLabel='Back to content']\n *   Label to use from backreferences back to their footnote call (affects\n *   screen readers).\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n *   Label to use for the footnotes section (affects screen readers).\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n *   Properties to use on the footnote label (note that `id: 'footnote-label'`\n *   is always added as footnote calls use it with `aria-describedby` to\n *   provide an accessible label).\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n *   Tag name to use for the footnote label.\n * @property {Handlers | null | undefined} [handlers]\n *   Extra handlers for nodes.\n * @property {Array | null | undefined} [passThrough]\n *   List of custom mdast node types to pass through (keep) in hast (note that\n *   the node itself is passed, but eventual children are transformed).\n * @property {Handler | null | undefined} [unknownHandler]\n *   Handler for all unknown nodes.\n *\n * @typedef {Record} Handlers\n *   Handle nodes.\n *\n * @typedef {HFunctionProps & HFunctionNoProps & HFields} State\n *   Info passed around.\n */\n\nimport {visit} from 'unist-util-visit'\nimport {position, pointStart, pointEnd} from 'unist-util-position'\nimport {generated} from 'unist-util-generated'\nimport {definitions} from 'mdast-util-definitions'\nimport {handlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n *   mdast node to transform.\n * @param {Options | null | undefined} [options]\n *   Configuration.\n * @returns {State}\n *   `state` function.\n */\nexport function createState(tree, options) {\n  const settings = options || {}\n  const dangerous = settings.allowDangerousHtml || false\n  /** @type {Record} */\n  const footnoteById = {}\n\n  // To do: next major: add `options` to state, remove:\n  // `dangerous`, `clobberPrefix`, `footnoteLabel`, `footnoteLabelTagName`,\n  // `footnoteLabelProperties`, `footnoteBackLabel`, `passThrough`,\n  // `unknownHandler`.\n\n  // To do: next major: move to `state.options.allowDangerousHtml`.\n  state.dangerous = dangerous\n  // To do: next major: move to `state.options`.\n  state.clobberPrefix =\n    settings.clobberPrefix === undefined || settings.clobberPrefix === null\n      ? 'user-content-'\n      : settings.clobberPrefix\n  // To do: next major: move to `state.options`.\n  state.footnoteLabel = settings.footnoteLabel || 'Footnotes'\n  // To do: next major: move to `state.options`.\n  state.footnoteLabelTagName = settings.footnoteLabelTagName || 'h2'\n  // To do: next major: move to `state.options`.\n  state.footnoteLabelProperties = settings.footnoteLabelProperties || {\n    className: ['sr-only']\n  }\n  // To do: next major: move to `state.options`.\n  state.footnoteBackLabel = settings.footnoteBackLabel || 'Back to content'\n  // To do: next major: move to `state.options`.\n  state.unknownHandler = settings.unknownHandler\n  // To do: next major: move to `state.options`.\n  state.passThrough = settings.passThrough\n\n  state.handlers = {...handlers, ...settings.handlers}\n\n  // To do: next major: replace utility with `definitionById` object, so we\n  // only walk once (as we need footnotes too).\n  state.definition = definitions(tree)\n  state.footnoteById = footnoteById\n  /** @type {Array} */\n  state.footnoteOrder = []\n  /** @type {Record} */\n  state.footnoteCounts = {}\n\n  state.patch = patch\n  state.applyData = applyData\n  state.one = oneBound\n  state.all = allBound\n  state.wrap = wrap\n  // To do: next major: remove `augment`.\n  state.augment = augment\n\n  visit(tree, 'footnoteDefinition', (definition) => {\n    const id = String(definition.identifier).toUpperCase()\n\n    // Mimick CM behavior of link definitions.\n    // See: .\n    if (!own.call(footnoteById, id)) {\n      footnoteById[id] = definition\n    }\n  })\n\n  // @ts-expect-error Hush, it’s fine!\n  return state\n\n  /**\n   * Finalise the created `right`, a hast node, from `left`, an mdast node.\n   *\n   * @param {MdastNodeWithData | PositionLike | null | undefined} left\n   * @param {HastElementContent} right\n   * @returns {HastElementContent}\n   */\n  /* c8 ignore start */\n  // To do: next major: remove.\n  function augment(left, right) {\n    // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n    if (left && 'data' in left && left.data) {\n      /** @type {MdastData} */\n      const data = left.data\n\n      if (data.hName) {\n        if (right.type !== 'element') {\n          right = {\n            type: 'element',\n            tagName: '',\n            properties: {},\n            children: []\n          }\n        }\n\n        right.tagName = data.hName\n      }\n\n      if (right.type === 'element' && data.hProperties) {\n        right.properties = {...right.properties, ...data.hProperties}\n      }\n\n      if ('children' in right && right.children && data.hChildren) {\n        right.children = data.hChildren\n      }\n    }\n\n    if (left) {\n      const ctx = 'type' in left ? left : {position: left}\n\n      if (!generated(ctx)) {\n        // @ts-expect-error: fine.\n        right.position = {start: pointStart(ctx), end: pointEnd(ctx)}\n      }\n    }\n\n    return right\n  }\n  /* c8 ignore stop */\n\n  /**\n   * Create an element for `node`.\n   *\n   * @type {HFunctionProps}\n   */\n  /* c8 ignore start */\n  // To do: next major: remove.\n  function state(node, tagName, props, children) {\n    if (Array.isArray(props)) {\n      children = props\n      props = {}\n    }\n\n    // @ts-expect-error augmenting an element yields an element.\n    return augment(node, {\n      type: 'element',\n      tagName,\n      properties: props || {},\n      children: children || []\n    })\n  }\n  /* c8 ignore stop */\n\n  /**\n   * Transform an mdast node into a hast node.\n   *\n   * @param {MdastNodes} node\n   *   mdast node.\n   * @param {MdastParents | null | undefined} [parent]\n   *   Parent of `node`.\n   * @returns {HastElementContent | Array | null | undefined}\n   *   Resulting hast node.\n   */\n  function oneBound(node, parent) {\n    // @ts-expect-error: that’s a state :)\n    return one(state, node, parent)\n  }\n\n  /**\n   * Transform the children of an mdast node into hast nodes.\n   *\n   * @param {MdastNodes} parent\n   *   mdast node to compile\n   * @returns {Array}\n   *   Resulting hast nodes.\n   */\n  function allBound(parent) {\n    // @ts-expect-error: that’s a state :)\n    return all(state, parent)\n  }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n *   mdast node to copy from.\n * @param {HastNodes} to\n *   hast node to copy into.\n * @returns {void}\n *   Nothing.\n */\nfunction patch(from, to) {\n  if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n *   Node type.\n * @param {MdastNodes} from\n *   mdast node to use data from.\n * @param {Type} to\n *   hast node to change.\n * @returns {Type | HastElement}\n *   Nothing.\n */\nfunction applyData(from, to) {\n  /** @type {Type | HastElement} */\n  let result = to\n\n  // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n  if (from && from.data) {\n    const hName = from.data.hName\n    const hChildren = from.data.hChildren\n    const hProperties = from.data.hProperties\n\n    if (typeof hName === 'string') {\n      // Transforming the node resulted in an element with a different name\n      // than wanted:\n      if (result.type === 'element') {\n        result.tagName = hName\n      }\n      // Transforming the node resulted in a non-element, which happens for\n      // raw, text, and root nodes (unless custom handlers are passed).\n      // The intent is likely to keep the content around (otherwise: pass\n      // `hChildren`).\n      else {\n        result = {\n          type: 'element',\n          tagName: hName,\n          properties: {},\n          children: []\n        }\n\n        // To do: next major: take the children from the `root`, or inject the\n        // raw/text/comment or so into the element?\n        // if ('children' in node) {\n        //   // @ts-expect-error: assume `children` are allowed in elements.\n        //   result.children = node.children\n        // } else {\n        //   // @ts-expect-error: assume `node` is allowed in elements.\n        //   result.children.push(node)\n        // }\n      }\n    }\n\n    if (result.type === 'element' && hProperties) {\n      result.properties = {...result.properties, ...hProperties}\n    }\n\n    if (\n      'children' in result &&\n      result.children &&\n      hChildren !== null &&\n      hChildren !== undefined\n    ) {\n      // @ts-expect-error: assume valid children are defined.\n      result.children = hChildren\n    }\n  }\n\n  return result\n}\n\n/**\n * Transform an mdast node into a hast node.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} node\n *   mdast node.\n * @param {MdastParents | null | undefined} [parent]\n *   Parent of `node`.\n * @returns {HastElementContent | Array | null | undefined}\n *   Resulting hast node.\n */\n// To do: next major: do not expose, keep bound.\nexport function one(state, node, parent) {\n  const type = node && node.type\n\n  // Fail on non-nodes.\n  if (!type) {\n    throw new Error('Expected node, got `' + node + '`')\n  }\n\n  if (own.call(state.handlers, type)) {\n    return state.handlers[type](state, node, parent)\n  }\n\n  if (state.passThrough && state.passThrough.includes(type)) {\n    // To do: next major: deep clone.\n    // @ts-expect-error: types of passed through nodes are expected to be added manually.\n    return 'children' in node ? {...node, children: all(state, node)} : node\n  }\n\n  if (state.unknownHandler) {\n    return state.unknownHandler(state, node, parent)\n  }\n\n  return defaultUnknownHandler(state, node)\n}\n\n/**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} parent\n *   mdast node to compile\n * @returns {Array}\n *   Resulting hast nodes.\n */\n// To do: next major: do not expose, keep bound.\nexport function all(state, parent) {\n  /** @type {Array} */\n  const values = []\n\n  if ('children' in parent) {\n    const nodes = parent.children\n    let index = -1\n    while (++index < nodes.length) {\n      const result = one(state, nodes[index], parent)\n\n      // To do: see if we van clean this? Can we merge texts?\n      if (result) {\n        if (index && nodes[index - 1].type === 'break') {\n          if (!Array.isArray(result) && result.type === 'text') {\n            result.value = result.value.replace(/^\\s+/, '')\n          }\n\n          if (!Array.isArray(result) && result.type === 'element') {\n            const head = result.children[0]\n\n            if (head && head.type === 'text') {\n              head.value = head.value.replace(/^\\s+/, '')\n            }\n          }\n        }\n\n        if (Array.isArray(result)) {\n          values.push(...result)\n        } else {\n          values.push(result)\n        }\n      }\n    }\n  }\n\n  return values\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} node\n *   Unknown mdast node.\n * @returns {HastText | HastElement}\n *   Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n  const data = node.data || {}\n  /** @type {HastText | HastElement} */\n  const result =\n    'value' in node &&\n    !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n      ? {type: 'text', value: node.value}\n      : {\n          type: 'element',\n          tagName: 'div',\n          properties: {},\n          children: all(state, node)\n        }\n\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastContent} Type\n *   Node type.\n * @param {Array} nodes\n *   List of nodes to wrap.\n * @param {boolean | null | undefined} [loose=false]\n *   Whether to add line endings at start and end.\n * @returns {Array}\n *   Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n  /** @type {Array} */\n  const result = []\n  let index = -1\n\n  if (loose) {\n    result.push({type: 'text', value: '\\n'})\n  }\n\n  while (++index < nodes.length) {\n    if (index) result.push({type: 'text', value: '\\n'})\n    result.push(nodes[index])\n  }\n\n  if (loose && nodes.length > 0) {\n    result.push({type: 'text', value: '\\n'})\n  }\n\n  return result\n}\n","/**\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef NodeLike\n * @property {PositionLike | null | undefined} [position]\n */\n\n/**\n * Check if `node` is generated.\n *\n * @param {NodeLike | null | undefined} [node]\n *   Node to check.\n * @returns {boolean}\n *   Whether `node` is generated (does not have positional info).\n */\nexport function generated(node) {\n  return (\n    !node ||\n    !node.position ||\n    !node.position.start ||\n    !node.position.start.line ||\n    !node.position.start.column ||\n    !node.position.end ||\n    !node.position.end.line ||\n    !node.position.end.column\n  )\n}\n","/**\n * @typedef {import('hast').Content} HastContent\n * @typedef {import('hast').Root} HastRoot\n *\n * @typedef {import('mdast').Content} MdastContent\n * @typedef {import('mdast').Root} MdastRoot\n *\n * @typedef {import('./state.js').Options} Options\n */\n\n/**\n * @typedef {HastRoot | HastContent} HastNodes\n * @typedef {MdastRoot | MdastContent} MdastNodes\n */\n\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * *   `hast-util-to-html` also has an option `allowDangerousHtml` which will\n *     output the raw HTML.\n *     This is typically discouraged as noted by the option name but is useful\n *     if you completely trust authors\n * *   `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n *     into standard hast nodes (`element`, `text`, etc).\n *     This is a heavy task as it needs a full HTML parser, but it is the only\n *     way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * 

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('./state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\nexport function footer(state) {\n /** @type {Array} */\n const listItems = []\n let index = -1\n\n while (++index < state.footnoteOrder.length) {\n const def = state.footnoteById[state.footnoteOrder[index]]\n\n if (!def) {\n continue\n }\n\n const content = state.all(def)\n const id = String(def.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let referenceIndex = 0\n /** @type {Array} */\n const backReferences = []\n\n while (++referenceIndex <= state.footnoteCounts[id]) {\n /** @type {Element} */\n const backReference = {\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (referenceIndex > 1 ? '-' + referenceIndex : ''),\n dataFootnoteBackref: true,\n className: ['data-footnote-backref'],\n ariaLabel: state.footnoteBackLabel\n },\n children: [{type: 'text', value: '↩'}]\n }\n\n if (referenceIndex > 1) {\n backReference.children.push({\n type: 'element',\n tagName: 'sup',\n children: [{type: 'text', value: String(referenceIndex)}]\n })\n }\n\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n backReferences.push(backReference)\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: state.clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(def, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: state.footnoteLabelTagName,\n properties: {\n // To do: use structured clone.\n ...JSON.parse(JSON.stringify(state.footnoteLabelProperties)),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: state.footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n blocking: spaceSeparated,\n capture: null,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n fetchPriority: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inert: boolean,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeToggle: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n popover: null,\n popoverTarget: null,\n popoverTargetAction: null,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shadowRootClonable: boolean,\n shadowRootDelegatesFocus: boolean,\n shadowRootMode: null,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n writingSuggestions: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationRawTagOpen(code) {\n if (code === 47) {\n effects.consume(code)\n buffer = ''\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In raw continuation, after ` | \n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function continuationRawEndTag(code) {\n if (code === 62) {\n const name = buffer.toLowerCase()\n if (htmlRawNames.includes(name)) {\n effects.consume(code)\n return continuationClose\n }\n return continuation(code)\n }\n if (asciiAlpha(code) && buffer.length < 8) {\n effects.consume(code)\n // @ts-expect-error: not null.\n buffer += String.fromCharCode(code)\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In cdata continuation, after `]`, expecting `]>`.\n *\n * ```markdown\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationCdataInside(code) {\n if (code === 93) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In declaration or instruction continuation, at `>`.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationDeclarationInside(code) {\n if (code === 62) {\n effects.consume(code)\n return continuationClose\n }\n\n // More dashes.\n if (code === 45 && marker === 2) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In closed continuation: everything we get until the eol/eof is part of it.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationClose(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('htmlFlowData')\n return continuationAfter(code)\n }\n effects.consume(code)\n return continuationClose\n }\n\n /**\n * Done.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationAfter(code) {\n effects.exit('htmlFlow')\n // // Feel free to interrupt.\n // tokenizer.interrupt = false\n // // No longer concrete.\n // tokenizer.concrete = false\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuationStart(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * At eol, before continuation.\n *\n * ```markdown\n * > | * ```js\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return after\n }\n return nok(code)\n }\n\n /**\n * A continuation.\n *\n * ```markdown\n * | * ```js\n * > | b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLineBefore(effects, ok, nok) {\n return start\n\n /**\n * Before eol, expecting blank line.\n *\n * ```markdown\n * > |
\n * ^\n * |\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return effects.attempt(blankLine, ok, nok)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nconst nonLazyContinuation = {\n tokenize: tokenizeNonLazyContinuation,\n partial: true\n}\n\n/** @type {Construct} */\nexport const codeFenced = {\n name: 'codeFenced',\n tokenize: tokenizeCodeFenced,\n concrete: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeFenced(effects, ok, nok) {\n const self = this\n /** @type {Construct} */\n const closeStart = {\n tokenize: tokenizeCloseStart,\n partial: true\n }\n let initialPrefix = 0\n let sizeOpen = 0\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Start of code.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse whitespace like `markdown-rs`.\n return beforeSequenceOpen(code)\n }\n\n /**\n * In opening fence, after prefix, at sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeSequenceOpen(code) {\n const tail = self.events[self.events.length - 1]\n initialPrefix =\n tail && tail[1].type === 'linePrefix'\n ? tail[2].sliceSerialize(tail[1], true).length\n : 0\n marker = code\n effects.enter('codeFenced')\n effects.enter('codeFencedFence')\n effects.enter('codeFencedFenceSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening fence sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === marker) {\n sizeOpen++\n effects.consume(code)\n return sequenceOpen\n }\n if (sizeOpen < 3) {\n return nok(code)\n }\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, infoBefore, 'whitespace')(code)\n : infoBefore(code)\n }\n\n /**\n * In opening fence, after the sequence (and optional whitespace), before info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function infoBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return self.interrupt\n ? ok(code)\n : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFencedFenceInfo')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return info(code)\n }\n\n /**\n * In info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function info(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return infoBefore(code)\n }\n if (markdownSpace(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return factorySpace(effects, metaBefore, 'whitespace')(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return info\n }\n\n /**\n * In opening fence, after info and whitespace, before meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function metaBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n return infoBefore(code)\n }\n effects.enter('codeFencedFenceMeta')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return meta(code)\n }\n\n /**\n * In meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function meta(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceMeta')\n return infoBefore(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return meta\n }\n\n /**\n * At eol/eof in code, before a non-lazy closing fence or content.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function atNonLazyBreak(code) {\n return effects.attempt(closeStart, after, contentBefore)(code)\n }\n\n /**\n * Before code content, not a closing fence, at eol.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return contentStart\n }\n\n /**\n * Before code content, not a closing fence.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentStart(code) {\n return initialPrefix > 0 && markdownSpace(code)\n ? factorySpace(\n effects,\n beforeContentChunk,\n 'linePrefix',\n initialPrefix + 1\n )(code)\n : beforeContentChunk(code)\n }\n\n /**\n * Before code content, after optional prefix.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeContentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFlowValue')\n return contentChunk(code)\n }\n\n /**\n * In code content.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^^^^^^^^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFlowValue')\n return beforeContentChunk(code)\n }\n effects.consume(code)\n return contentChunk\n }\n\n /**\n * After code.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n effects.exit('codeFenced')\n return ok(code)\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeCloseStart(effects, ok, nok) {\n let size = 0\n return startBefore\n\n /**\n *\n *\n * @type {State}\n */\n function startBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return start\n }\n\n /**\n * Before closing fence, at optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Always populated by defaults.\n\n // To do: `enter` here or in next state?\n effects.enter('codeFencedFence')\n return markdownSpace(code)\n ? factorySpace(\n effects,\n beforeSequenceClose,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : beforeSequenceClose(code)\n }\n\n /**\n * In closing fence, after optional whitespace, at sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function beforeSequenceClose(code) {\n if (code === marker) {\n effects.enter('codeFencedFenceSequence')\n return sequenceClose(code)\n }\n return nok(code)\n }\n\n /**\n * In closing fence sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n if (code === marker) {\n size++\n effects.consume(code)\n return sequenceClose\n }\n if (size >= sizeOpen) {\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, sequenceCloseAfter, 'whitespace')(code)\n : sequenceCloseAfter(code)\n }\n return nok(code)\n }\n\n /**\n * After closing fence sequence, after optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceCloseAfter(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return ok(code)\n }\n return nok(code)\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuation(effects, ok, nok) {\n const self = this\n return start\n\n /**\n *\n *\n * @type {State}\n */\n function start(code) {\n if (code === null) {\n return nok(code)\n }\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineStart\n }\n\n /**\n *\n *\n * @type {State}\n */\n function lineStart(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n","/// \n\n/* global document */\n\nconst element = document.createElement('i')\n\n/**\n * @param {string} value\n * @returns {string | false}\n */\nexport function decodeNamedCharacterReference(value) {\n const characterReference = '&' + value + ';'\n element.innerHTML = characterReference\n const character = element.textContent\n\n // Some named character references do not require the closing semicolon\n // (`¬`, for instance), which leads to situations where parsing the assumed\n // named reference of `¬it;` will result in the string `¬it;`.\n // When we encounter a trailing semicolon after parsing, and the character\n // reference to decode was not a semicolon (`;`), we can assume that the\n // matching was not complete.\n if (\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n character.charCodeAt(character.length - 1) === 59 /* `;` */ &&\n value !== 'semi'\n ) {\n return false\n }\n\n // If the decoded string is equal to the input, the character reference was\n // not valid.\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n return character === characterReference ? false : character\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {\n asciiAlphanumeric,\n asciiDigit,\n asciiHexDigit\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterReference = {\n name: 'characterReference',\n tokenize: tokenizeCharacterReference\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterReference(effects, ok, nok) {\n const self = this\n let size = 0\n /** @type {number} */\n let max\n /** @type {(code: Code) => boolean} */\n let test\n return start\n\n /**\n * Start of character reference.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterReference')\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n return open\n }\n\n /**\n * After `&`, at `#` for numeric references or alphanumeric for named\n * references.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 35) {\n effects.enter('characterReferenceMarkerNumeric')\n effects.consume(code)\n effects.exit('characterReferenceMarkerNumeric')\n return numeric\n }\n effects.enter('characterReferenceValue')\n max = 31\n test = asciiAlphanumeric\n return value(code)\n }\n\n /**\n * After `#`, at `x` for hexadecimals or digit for decimals.\n *\n * ```markdown\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function numeric(code) {\n if (code === 88 || code === 120) {\n effects.enter('characterReferenceMarkerHexadecimal')\n effects.consume(code)\n effects.exit('characterReferenceMarkerHexadecimal')\n effects.enter('characterReferenceValue')\n max = 6\n test = asciiHexDigit\n return value\n }\n effects.enter('characterReferenceValue')\n max = 7\n test = asciiDigit\n return value(code)\n }\n\n /**\n * After markers (`&#x`, `&#`, or `&`), in value, before `;`.\n *\n * The character reference kind defines what and how many characters are\n * allowed.\n *\n * ```markdown\n * > | a&b\n * ^^^\n * > | a{b\n * ^^^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function value(code) {\n if (code === 59 && size) {\n const token = effects.exit('characterReferenceValue')\n if (\n test === asciiAlphanumeric &&\n !decodeNamedCharacterReference(self.sliceSerialize(token))\n ) {\n return nok(code)\n }\n\n // To do: `markdown-rs` uses a different name:\n // `CharacterReferenceMarkerSemi`.\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n effects.exit('characterReference')\n return ok\n }\n if (test(code) && size++ < max) {\n effects.consume(code)\n return value\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {asciiPunctuation} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterEscape = {\n name: 'characterEscape',\n tokenize: tokenizeCharacterEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of character escape.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterEscape')\n effects.enter('escapeMarker')\n effects.consume(code)\n effects.exit('escapeMarker')\n return inside\n }\n\n /**\n * After `\\`, at punctuation.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // ASCII punctuation.\n if (asciiPunctuation(code)) {\n effects.enter('characterEscapeValue')\n effects.consume(code)\n effects.exit('characterEscapeValue')\n effects.exit('characterEscape')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const lineEnding = {\n name: 'lineEnding',\n tokenize: tokenizeLineEnding\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLineEnding(effects, ok) {\n return start\n\n /** @type {State} */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, ok, 'linePrefix')\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factoryDestination} from 'micromark-factory-destination'\nimport {factoryLabel} from 'micromark-factory-label'\nimport {factoryTitle} from 'micromark-factory-title'\nimport {factoryWhitespace} from 'micromark-factory-whitespace'\nimport {markdownLineEndingOrSpace} from 'micromark-util-character'\nimport {push, splice} from 'micromark-util-chunked'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const labelEnd = {\n name: 'labelEnd',\n tokenize: tokenizeLabelEnd,\n resolveTo: resolveToLabelEnd,\n resolveAll: resolveAllLabelEnd\n}\n\n/** @type {Construct} */\nconst resourceConstruct = {\n tokenize: tokenizeResource\n}\n/** @type {Construct} */\nconst referenceFullConstruct = {\n tokenize: tokenizeReferenceFull\n}\n/** @type {Construct} */\nconst referenceCollapsedConstruct = {\n tokenize: tokenizeReferenceCollapsed\n}\n\n/** @type {Resolver} */\nfunction resolveAllLabelEnd(events) {\n let index = -1\n while (++index < events.length) {\n const token = events[index][1]\n if (\n token.type === 'labelImage' ||\n token.type === 'labelLink' ||\n token.type === 'labelEnd'\n ) {\n // Remove the marker.\n events.splice(index + 1, token.type === 'labelImage' ? 4 : 2)\n token.type = 'data'\n index++\n }\n }\n return events\n}\n\n/** @type {Resolver} */\nfunction resolveToLabelEnd(events, context) {\n let index = events.length\n let offset = 0\n /** @type {Token} */\n let token\n /** @type {number | undefined} */\n let open\n /** @type {number | undefined} */\n let close\n /** @type {Array} */\n let media\n\n // Find an opening.\n while (index--) {\n token = events[index][1]\n if (open) {\n // If we see another link, or inactive link label, we’ve been here before.\n if (\n token.type === 'link' ||\n (token.type === 'labelLink' && token._inactive)\n ) {\n break\n }\n\n // Mark other link openings as inactive, as we can’t have links in\n // links.\n if (events[index][0] === 'enter' && token.type === 'labelLink') {\n token._inactive = true\n }\n } else if (close) {\n if (\n events[index][0] === 'enter' &&\n (token.type === 'labelImage' || token.type === 'labelLink') &&\n !token._balanced\n ) {\n open = index\n if (token.type !== 'labelLink') {\n offset = 2\n break\n }\n }\n } else if (token.type === 'labelEnd') {\n close = index\n }\n }\n const group = {\n type: events[open][1].type === 'labelLink' ? 'link' : 'image',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n const label = {\n type: 'label',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[close][1].end)\n }\n const text = {\n type: 'labelText',\n start: Object.assign({}, events[open + offset + 2][1].end),\n end: Object.assign({}, events[close - 2][1].start)\n }\n media = [\n ['enter', group, context],\n ['enter', label, context]\n ]\n\n // Opening marker.\n media = push(media, events.slice(open + 1, open + offset + 3))\n\n // Text open.\n media = push(media, [['enter', text, context]])\n\n // Always populated by defaults.\n\n // Between.\n media = push(\n media,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + offset + 4, close - 3),\n context\n )\n )\n\n // Text close, marker close, label close.\n media = push(media, [\n ['exit', text, context],\n events[close - 2],\n events[close - 1],\n ['exit', label, context]\n ])\n\n // Reference, resource, or so.\n media = push(media, events.slice(close + 1))\n\n // Media close.\n media = push(media, [['exit', group, context]])\n splice(events, open, events.length, media)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelEnd(effects, ok, nok) {\n const self = this\n let index = self.events.length\n /** @type {Token} */\n let labelStart\n /** @type {boolean} */\n let defined\n\n // Find an opening.\n while (index--) {\n if (\n (self.events[index][1].type === 'labelImage' ||\n self.events[index][1].type === 'labelLink') &&\n !self.events[index][1]._balanced\n ) {\n labelStart = self.events[index][1]\n break\n }\n }\n return start\n\n /**\n * Start of label end.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // If there is not an okay opening.\n if (!labelStart) {\n return nok(code)\n }\n\n // If the corresponding label (link) start is marked as inactive,\n // it means we’d be wrapping a link, like this:\n //\n // ```markdown\n // > | a [b [c](d) e](f) g.\n // ^\n // ```\n //\n // We can’t have that, so it’s just balanced brackets.\n if (labelStart._inactive) {\n return labelEndNok(code)\n }\n defined = self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })\n )\n )\n effects.enter('labelEnd')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelEnd')\n return after\n }\n\n /**\n * After `]`.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Note: `markdown-rs` also parses GFM footnotes here, which for us is in\n // an extension.\n\n // Resource (`[asd](fgh)`)?\n if (code === 40) {\n return effects.attempt(\n resourceConstruct,\n labelEndOk,\n defined ? labelEndOk : labelEndNok\n )(code)\n }\n\n // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference?\n if (code === 91) {\n return effects.attempt(\n referenceFullConstruct,\n labelEndOk,\n defined ? referenceNotFull : labelEndNok\n )(code)\n }\n\n // Shortcut (`[asd]`) reference?\n return defined ? labelEndOk(code) : labelEndNok(code)\n }\n\n /**\n * After `]`, at `[`, but not at a full reference.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceNotFull(code) {\n return effects.attempt(\n referenceCollapsedConstruct,\n labelEndOk,\n labelEndNok\n )(code)\n }\n\n /**\n * Done, we found something.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndOk(code) {\n // Note: `markdown-rs` does a bunch of stuff here.\n return ok(code)\n }\n\n /**\n * Done, it’s nothing.\n *\n * There was an okay opening, but we didn’t match anything.\n *\n * ```markdown\n * > | [a](b c\n * ^\n * > | [a][b c\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndNok(code) {\n labelStart._balanced = true\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeResource(effects, ok, nok) {\n return resourceStart\n\n /**\n * At a resource.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceStart(code) {\n effects.enter('resource')\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n return resourceBefore\n }\n\n /**\n * In resource, after `(`, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBefore(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceOpen)(code)\n : resourceOpen(code)\n }\n\n /**\n * In resource, after optional whitespace, at `)` or a destination.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceOpen(code) {\n if (code === 41) {\n return resourceEnd(code)\n }\n return factoryDestination(\n effects,\n resourceDestinationAfter,\n resourceDestinationMissing,\n 'resourceDestination',\n 'resourceDestinationLiteral',\n 'resourceDestinationLiteralMarker',\n 'resourceDestinationRaw',\n 'resourceDestinationString',\n 32\n )(code)\n }\n\n /**\n * In resource, after destination, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceBetween)(code)\n : resourceEnd(code)\n }\n\n /**\n * At invalid destination.\n *\n * ```markdown\n * > | [a](<<) b\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationMissing(code) {\n return nok(code)\n }\n\n /**\n * In resource, after destination and whitespace, at `(` or title.\n *\n * ```markdown\n * > | [a](b ) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBetween(code) {\n if (code === 34 || code === 39 || code === 40) {\n return factoryTitle(\n effects,\n resourceTitleAfter,\n nok,\n 'resourceTitle',\n 'resourceTitleMarker',\n 'resourceTitleString'\n )(code)\n }\n return resourceEnd(code)\n }\n\n /**\n * In resource, after title, at optional whitespace.\n *\n * ```markdown\n * > | [a](b \"c\") d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceTitleAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceEnd)(code)\n : resourceEnd(code)\n }\n\n /**\n * In resource, at `)`.\n *\n * ```markdown\n * > | [a](b) d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceEnd(code) {\n if (code === 41) {\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n effects.exit('resource')\n return ok\n }\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceFull(effects, ok, nok) {\n const self = this\n return referenceFull\n\n /**\n * In a reference (full), at the `[`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFull(code) {\n return factoryLabel.call(\n self,\n effects,\n referenceFullAfter,\n referenceFullMissing,\n 'reference',\n 'referenceMarker',\n 'referenceString'\n )(code)\n }\n\n /**\n * In a reference (full), after `]`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullAfter(code) {\n return self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1)\n )\n )\n ? ok(code)\n : nok(code)\n }\n\n /**\n * In reference (full) that was missing.\n *\n * ```markdown\n * > | [a][b d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullMissing(code) {\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceCollapsed(effects, ok, nok) {\n return referenceCollapsedStart\n\n /**\n * In reference (collapsed), at `[`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedStart(code) {\n // We only attempt a collapsed label if there’s a `[`.\n\n effects.enter('reference')\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n return referenceCollapsedOpen\n }\n\n /**\n * In reference (collapsed), at `]`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedOpen(code) {\n if (code === 93) {\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n effects.exit('reference')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartImage = {\n name: 'labelStartImage',\n tokenize: tokenizeLabelStartImage,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartImage(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (image) start.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelImage')\n effects.enter('labelImageMarker')\n effects.consume(code)\n effects.exit('labelImageMarker')\n return open\n }\n\n /**\n * After `!`, at `[`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 91) {\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelImage')\n return after\n }\n return nok(code)\n }\n\n /**\n * After `![`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * This is needed in because, when GFM footnotes are enabled, images never\n * form when started with a `^`.\n * Instead, links form:\n *\n * ```markdown\n * ![^a](b)\n *\n * ![^a][b]\n *\n * [b]: c\n * ```\n *\n * ```html\n *

!^a

\n *

!^a

\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // To do: use a new field to do this, this is still needed for\n // `micromark-extension-gfm-footnote`, but the `label-start-link`\n // behavior isn’t.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n */\n\nimport {\n markdownLineEndingOrSpace,\n unicodePunctuation,\n unicodeWhitespace\n} from 'micromark-util-character'\n/**\n * Classify whether a code represents whitespace, punctuation, or something\n * else.\n *\n * Used for attention (emphasis, strong), whose sequences can open or close\n * based on the class of surrounding characters.\n *\n * > 👉 **Note**: eof (`null`) is seen as whitespace.\n *\n * @param {Code} code\n * Code.\n * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}\n * Group.\n */\nexport function classifyCharacter(code) {\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return 1\n }\n if (unicodePunctuation(code)) {\n return 2\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {push, splice} from 'micromark-util-chunked'\nimport {classifyCharacter} from 'micromark-util-classify-character'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const attention = {\n name: 'attention',\n tokenize: tokenizeAttention,\n resolveAll: resolveAllAttention\n}\n\n/**\n * Take all events and resolve attention to emphasis or strong.\n *\n * @type {Resolver}\n */\nfunction resolveAllAttention(events, context) {\n let index = -1\n /** @type {number} */\n let open\n /** @type {Token} */\n let group\n /** @type {Token} */\n let text\n /** @type {Token} */\n let openingSequence\n /** @type {Token} */\n let closingSequence\n /** @type {number} */\n let use\n /** @type {Array} */\n let nextEvents\n /** @type {number} */\n let offset\n\n // Walk through all events.\n //\n // Note: performance of this is fine on an mb of normal markdown, but it’s\n // a bottleneck for malicious stuff.\n while (++index < events.length) {\n // Find a token that can close.\n if (\n events[index][0] === 'enter' &&\n events[index][1].type === 'attentionSequence' &&\n events[index][1]._close\n ) {\n open = index\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (\n events[open][0] === 'exit' &&\n events[open][1].type === 'attentionSequence' &&\n events[open][1]._open &&\n // If the markers are the same:\n context.sliceSerialize(events[open][1]).charCodeAt(0) ===\n context.sliceSerialize(events[index][1]).charCodeAt(0)\n ) {\n // If the opening can close or the closing can open,\n // and the close size *is not* a multiple of three,\n // but the sum of the opening and closing size *is* multiple of three,\n // then don’t match.\n if (\n (events[open][1]._close || events[index][1]._open) &&\n (events[index][1].end.offset - events[index][1].start.offset) % 3 &&\n !(\n (events[open][1].end.offset -\n events[open][1].start.offset +\n events[index][1].end.offset -\n events[index][1].start.offset) %\n 3\n )\n ) {\n continue\n }\n\n // Number of markers to use from the sequence.\n use =\n events[open][1].end.offset - events[open][1].start.offset > 1 &&\n events[index][1].end.offset - events[index][1].start.offset > 1\n ? 2\n : 1\n const start = Object.assign({}, events[open][1].end)\n const end = Object.assign({}, events[index][1].start)\n movePoint(start, -use)\n movePoint(end, use)\n openingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start,\n end: Object.assign({}, events[open][1].end)\n }\n closingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start: Object.assign({}, events[index][1].start),\n end\n }\n text = {\n type: use > 1 ? 'strongText' : 'emphasisText',\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n }\n group = {\n type: use > 1 ? 'strong' : 'emphasis',\n start: Object.assign({}, openingSequence.start),\n end: Object.assign({}, closingSequence.end)\n }\n events[open][1].end = Object.assign({}, openingSequence.start)\n events[index][1].start = Object.assign({}, closingSequence.end)\n nextEvents = []\n\n // If there are more markers in the opening, add them before.\n if (events[open][1].end.offset - events[open][1].start.offset) {\n nextEvents = push(nextEvents, [\n ['enter', events[open][1], context],\n ['exit', events[open][1], context]\n ])\n }\n\n // Opening.\n nextEvents = push(nextEvents, [\n ['enter', group, context],\n ['enter', openingSequence, context],\n ['exit', openingSequence, context],\n ['enter', text, context]\n ])\n\n // Always populated by defaults.\n\n // Between.\n nextEvents = push(\n nextEvents,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + 1, index),\n context\n )\n )\n\n // Closing.\n nextEvents = push(nextEvents, [\n ['exit', text, context],\n ['enter', closingSequence, context],\n ['exit', closingSequence, context],\n ['exit', group, context]\n ])\n\n // If there are more markers in the closing, add them after.\n if (events[index][1].end.offset - events[index][1].start.offset) {\n offset = 2\n nextEvents = push(nextEvents, [\n ['enter', events[index][1], context],\n ['exit', events[index][1], context]\n ])\n } else {\n offset = 0\n }\n splice(events, open - 1, index - open + 3, nextEvents)\n index = open + nextEvents.length - offset - 2\n break\n }\n }\n }\n }\n\n // Remove remaining sequences.\n index = -1\n while (++index < events.length) {\n if (events[index][1].type === 'attentionSequence') {\n events[index][1].type = 'data'\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAttention(effects, ok) {\n const attentionMarkers = this.parser.constructs.attentionMarkers.null\n const previous = this.previous\n const before = classifyCharacter(previous)\n\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Before a sequence.\n *\n * ```markdown\n * > | **\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n marker = code\n effects.enter('attentionSequence')\n return inside(code)\n }\n\n /**\n * In a sequence.\n *\n * ```markdown\n * > | **\n * ^^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code)\n return inside\n }\n const token = effects.exit('attentionSequence')\n\n // To do: next major: move this to resolver, just like `markdown-rs`.\n const after = classifyCharacter(code)\n\n // Always populated by defaults.\n\n const open =\n !after || (after === 2 && before) || attentionMarkers.includes(code)\n const close =\n !before || (before === 2 && after) || attentionMarkers.includes(previous)\n token._open = Boolean(marker === 42 ? open : open && (before || !close))\n token._close = Boolean(marker === 42 ? close : close && (after || !open))\n return ok(code)\n }\n}\n\n/**\n * Move a point a bit.\n *\n * Note: `move` only works inside lines! It’s not possible to move past other\n * chunks (replacement characters, tabs, or line endings).\n *\n * @param {Point} point\n * @param {number} offset\n * @returns {void}\n */\nfunction movePoint(point, offset) {\n point.column += offset\n point.offset += offset\n point._bufferIndex += offset\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n asciiAtext,\n asciiControl\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const autolink = {\n name: 'autolink',\n tokenize: tokenizeAutolink\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAutolink(effects, ok, nok) {\n let size = 0\n return start\n\n /**\n * Start of an autolink.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('autolink')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.enter('autolinkProtocol')\n return open\n }\n\n /**\n * After `<`, at protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (asciiAlpha(code)) {\n effects.consume(code)\n return schemeOrEmailAtext\n }\n return emailAtext(code)\n }\n\n /**\n * At second byte of protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeOrEmailAtext(code) {\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) {\n // Count the previous alphabetical from `open` too.\n size = 1\n return schemeInsideOrEmailAtext(code)\n }\n return emailAtext(code)\n }\n\n /**\n * In ambiguous protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeInsideOrEmailAtext(code) {\n if (code === 58) {\n effects.consume(code)\n size = 0\n return urlInside\n }\n\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (\n (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) &&\n size++ < 32\n ) {\n effects.consume(code)\n return schemeInsideOrEmailAtext\n }\n size = 0\n return emailAtext(code)\n }\n\n /**\n * After protocol, in URL.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function urlInside(code) {\n if (code === 62) {\n effects.exit('autolinkProtocol')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n\n // ASCII control, space, or `<`.\n if (code === null || code === 32 || code === 60 || asciiControl(code)) {\n return nok(code)\n }\n effects.consume(code)\n return urlInside\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailAtext(code) {\n if (code === 64) {\n effects.consume(code)\n return emailAtSignOrDot\n }\n if (asciiAtext(code)) {\n effects.consume(code)\n return emailAtext\n }\n return nok(code)\n }\n\n /**\n * In label, after at-sign or dot.\n *\n * ```markdown\n * > | ab\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function emailAtSignOrDot(code) {\n return asciiAlphanumeric(code) ? emailLabel(code) : nok(code)\n }\n\n /**\n * In label, where `.` and `>` are allowed.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailLabel(code) {\n if (code === 46) {\n effects.consume(code)\n size = 0\n return emailAtSignOrDot\n }\n if (code === 62) {\n // Exit, then change the token type.\n effects.exit('autolinkProtocol').type = 'autolinkEmail'\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n return emailValue(code)\n }\n\n /**\n * In label, where `.` and `>` are *not* allowed.\n *\n * Though, this is also used in `emailLabel` to parse other values.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailValue(code) {\n // ASCII alphanumeric or `-`.\n if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) {\n const next = code === 45 ? emailValue : emailLabel\n effects.consume(code)\n return next\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const htmlText = {\n name: 'htmlText',\n tokenize: tokenizeHtmlText\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHtmlText(effects, ok, nok) {\n const self = this\n /** @type {NonNullable | undefined} */\n let marker\n /** @type {number} */\n let index\n /** @type {State} */\n let returnState\n return start\n\n /**\n * Start of HTML (text).\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('htmlText')\n effects.enter('htmlTextData')\n effects.consume(code)\n return open\n }\n\n /**\n * After `<`, at tag name or other stuff.\n *\n * ```markdown\n * > | a c\n * ^\n * > | a c\n * ^\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 33) {\n effects.consume(code)\n return declarationOpen\n }\n if (code === 47) {\n effects.consume(code)\n return tagCloseStart\n }\n if (code === 63) {\n effects.consume(code)\n return instruction\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagOpen\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * > | a c\n * ^\n * > | a &<]]> c\n * ^\n * ```\n *\n * @type {State}\n */\n function declarationOpen(code) {\n if (code === 45) {\n effects.consume(code)\n return commentOpenInside\n }\n if (code === 91) {\n effects.consume(code)\n index = 0\n return cdataOpenInside\n }\n if (asciiAlpha(code)) {\n effects.consume(code)\n return declaration\n }\n return nok(code)\n }\n\n /**\n * In a comment, after ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentOpenInside(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return nok(code)\n }\n\n /**\n * In comment.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function comment(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 45) {\n effects.consume(code)\n return commentClose\n }\n if (markdownLineEnding(code)) {\n returnState = comment\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return comment\n }\n\n /**\n * In comment, after `-`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentClose(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return comment(code)\n }\n\n /**\n * In comment, after `--`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentEnd(code) {\n return code === 62\n ? end(code)\n : code === 45\n ? commentClose(code)\n : comment(code)\n }\n\n /**\n * After ` | a &<]]> b\n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function cdataOpenInside(code) {\n const value = 'CDATA['\n if (code === value.charCodeAt(index++)) {\n effects.consume(code)\n return index === value.length ? cdata : cdataOpenInside\n }\n return nok(code)\n }\n\n /**\n * In CDATA.\n *\n * ```markdown\n * > | a &<]]> b\n * ^^^\n * ```\n *\n * @type {State}\n */\n function cdata(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataClose\n }\n if (markdownLineEnding(code)) {\n returnState = cdata\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return cdata\n }\n\n /**\n * In CDATA, after `]`, at another `]`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataClose(code) {\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In CDATA, after `]]`, at `>`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataEnd(code) {\n if (code === 62) {\n return end(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In declaration.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function declaration(code) {\n if (code === null || code === 62) {\n return end(code)\n }\n if (markdownLineEnding(code)) {\n returnState = declaration\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return declaration\n }\n\n /**\n * In instruction.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instruction(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 63) {\n effects.consume(code)\n return instructionClose\n }\n if (markdownLineEnding(code)) {\n returnState = instruction\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return instruction\n }\n\n /**\n * In instruction, after `?`, at `>`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instructionClose(code) {\n return code === 62 ? end(code) : instruction(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseStart(code) {\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagClose\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagClose(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagClose\n }\n return tagCloseBetween(code)\n }\n\n /**\n * In closing tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseBetween(code) {\n if (markdownLineEnding(code)) {\n returnState = tagCloseBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagCloseBetween\n }\n return end(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpen(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagOpen\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In opening tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenBetween(code) {\n if (code === 47) {\n effects.consume(code)\n return end\n }\n\n // ASCII alphabetical and `:` and `_`.\n if (code === 58 || code === 95 || asciiAlpha(code)) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenBetween\n }\n return end(code)\n }\n\n /**\n * In attribute name.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeName(code) {\n // ASCII alphabetical and `-`, `.`, `:`, and `_`.\n if (\n code === 45 ||\n code === 46 ||\n code === 58 ||\n code === 95 ||\n asciiAlphanumeric(code)\n ) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n return tagOpenAttributeNameAfter(code)\n }\n\n /**\n * After attribute name, before initializer, the end of the tag, or\n * whitespace.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeNameAfter(code) {\n if (code === 61) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeNameAfter\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeNameAfter\n }\n return tagOpenBetween(code)\n }\n\n /**\n * Before unquoted, double quoted, or single quoted attribute value, allowing\n * whitespace.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueBefore(code) {\n if (\n code === null ||\n code === 60 ||\n code === 61 ||\n code === 62 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 34 || code === 39) {\n effects.consume(code)\n marker = code\n return tagOpenAttributeValueQuoted\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueBefore\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * In double or single quoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuoted(code) {\n if (code === marker) {\n effects.consume(code)\n marker = undefined\n return tagOpenAttributeValueQuotedAfter\n }\n if (code === null) {\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueQuoted\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueQuoted\n }\n\n /**\n * In unquoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueUnquoted(code) {\n if (\n code === null ||\n code === 34 ||\n code === 39 ||\n code === 60 ||\n code === 61 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * After double or single quoted attribute value, before whitespace or the end\n * of the tag.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuotedAfter(code) {\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In certain circumstances of a tag where only an `>` is allowed.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function end(code) {\n if (code === 62) {\n effects.consume(code)\n effects.exit('htmlTextData')\n effects.exit('htmlText')\n return ok\n }\n return nok(code)\n }\n\n /**\n * At eol.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * > | a \n * ```\n *\n * @type {State}\n */\n function lineEndingBefore(code) {\n effects.exit('htmlTextData')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineEndingAfter\n }\n\n /**\n * After eol, at optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfter(code) {\n // Always populated by defaults.\n\n return markdownSpace(code)\n ? factorySpace(\n effects,\n lineEndingAfterPrefix,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : lineEndingAfterPrefix(code)\n }\n\n /**\n * After eol, after optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfterPrefix(code) {\n effects.enter('htmlTextData')\n return returnState(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartLink = {\n name: 'labelStartLink',\n tokenize: tokenizeLabelStartLink,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartLink(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (link) start.\n *\n * ```markdown\n * > | a [b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelLink')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelLink')\n return after\n }\n\n /** @type {State} */\n function after(code) {\n // To do: this isn’t needed in `micromark-extension-gfm-footnote`,\n // remove.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const hardBreakEscape = {\n name: 'hardBreakEscape',\n tokenize: tokenizeHardBreakEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHardBreakEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of a hard break (escape).\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('hardBreakEscape')\n effects.consume(code)\n return after\n }\n\n /**\n * After `\\`, at eol.\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (markdownLineEnding(code)) {\n effects.exit('hardBreakEscape')\n return ok(code)\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const codeText = {\n name: 'codeText',\n tokenize: tokenizeCodeText,\n resolve: resolveCodeText,\n previous\n}\n\n// To do: next major: don’t resolve, like `markdown-rs`.\n/** @type {Resolver} */\nfunction resolveCodeText(events) {\n let tailExitIndex = events.length - 4\n let headEnterIndex = 3\n /** @type {number} */\n let index\n /** @type {number | undefined} */\n let enter\n\n // If we start and end with an EOL or a space.\n if (\n (events[headEnterIndex][1].type === 'lineEnding' ||\n events[headEnterIndex][1].type === 'space') &&\n (events[tailExitIndex][1].type === 'lineEnding' ||\n events[tailExitIndex][1].type === 'space')\n ) {\n index = headEnterIndex\n\n // And we have data.\n while (++index < tailExitIndex) {\n if (events[index][1].type === 'codeTextData') {\n // Then we have padding.\n events[headEnterIndex][1].type = 'codeTextPadding'\n events[tailExitIndex][1].type = 'codeTextPadding'\n headEnterIndex += 2\n tailExitIndex -= 2\n break\n }\n }\n }\n\n // Merge adjacent spaces and data.\n index = headEnterIndex - 1\n tailExitIndex++\n while (++index <= tailExitIndex) {\n if (enter === undefined) {\n if (index !== tailExitIndex && events[index][1].type !== 'lineEnding') {\n enter = index\n }\n } else if (\n index === tailExitIndex ||\n events[index][1].type === 'lineEnding'\n ) {\n events[enter][1].type = 'codeTextData'\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end\n events.splice(enter + 2, index - enter - 2)\n tailExitIndex -= index - enter - 2\n index = enter + 2\n }\n enter = undefined\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previous(code) {\n // If there is a previous code, there will always be a tail.\n return (\n code !== 96 ||\n this.events[this.events.length - 1][1].type === 'characterEscape'\n )\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeText(effects, ok, nok) {\n const self = this\n let sizeOpen = 0\n /** @type {number} */\n let size\n /** @type {Token} */\n let token\n return start\n\n /**\n * Start of code (text).\n *\n * ```markdown\n * > | `a`\n * ^\n * > | \\`a`\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('codeText')\n effects.enter('codeTextSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === 96) {\n effects.consume(code)\n sizeOpen++\n return sequenceOpen\n }\n effects.exit('codeTextSequence')\n return between(code)\n }\n\n /**\n * Between something and something else.\n *\n * ```markdown\n * > | `a`\n * ^^\n * ```\n *\n * @type {State}\n */\n function between(code) {\n // EOF.\n if (code === null) {\n return nok(code)\n }\n\n // To do: next major: don’t do spaces in resolve, but when compiling,\n // like `markdown-rs`.\n // Tabs don’t work, and virtual spaces don’t make sense.\n if (code === 32) {\n effects.enter('space')\n effects.consume(code)\n effects.exit('space')\n return between\n }\n\n // Closing fence? Could also be data.\n if (code === 96) {\n token = effects.enter('codeTextSequence')\n size = 0\n return sequenceClose(code)\n }\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return between\n }\n\n // Data.\n effects.enter('codeTextData')\n return data(code)\n }\n\n /**\n * In data.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function data(code) {\n if (\n code === null ||\n code === 32 ||\n code === 96 ||\n markdownLineEnding(code)\n ) {\n effects.exit('codeTextData')\n return between(code)\n }\n effects.consume(code)\n return data\n }\n\n /**\n * In closing sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n // More.\n if (code === 96) {\n effects.consume(code)\n size++\n return sequenceClose\n }\n\n // Done!\n if (size === sizeOpen) {\n effects.exit('codeTextSequence')\n effects.exit('codeText')\n return ok(code)\n }\n\n // More or less accents: mark as data.\n token.type = 'codeTextData'\n return data(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n */\n\nimport {\n attention,\n autolink,\n blockQuote,\n characterEscape,\n characterReference,\n codeFenced,\n codeIndented,\n codeText,\n definition,\n hardBreakEscape,\n headingAtx,\n htmlFlow,\n htmlText,\n labelEnd,\n labelStartImage,\n labelStartLink,\n lineEnding,\n list,\n setextUnderline,\n thematicBreak\n} from 'micromark-core-commonmark'\nimport {resolver as resolveText} from './initialize/text.js'\n\n/** @satisfies {Extension['document']} */\nexport const document = {\n [42]: list,\n [43]: list,\n [45]: list,\n [48]: list,\n [49]: list,\n [50]: list,\n [51]: list,\n [52]: list,\n [53]: list,\n [54]: list,\n [55]: list,\n [56]: list,\n [57]: list,\n [62]: blockQuote\n}\n\n/** @satisfies {Extension['contentInitial']} */\nexport const contentInitial = {\n [91]: definition\n}\n\n/** @satisfies {Extension['flowInitial']} */\nexport const flowInitial = {\n [-2]: codeIndented,\n [-1]: codeIndented,\n [32]: codeIndented\n}\n\n/** @satisfies {Extension['flow']} */\nexport const flow = {\n [35]: headingAtx,\n [42]: thematicBreak,\n [45]: [setextUnderline, thematicBreak],\n [60]: htmlFlow,\n [61]: setextUnderline,\n [95]: thematicBreak,\n [96]: codeFenced,\n [126]: codeFenced\n}\n\n/** @satisfies {Extension['string']} */\nexport const string = {\n [38]: characterReference,\n [92]: characterEscape\n}\n\n/** @satisfies {Extension['text']} */\nexport const text = {\n [-5]: lineEnding,\n [-4]: lineEnding,\n [-3]: lineEnding,\n [33]: labelStartImage,\n [38]: characterReference,\n [42]: attention,\n [60]: [autolink, htmlText],\n [91]: labelStartLink,\n [92]: [hardBreakEscape, characterEscape],\n [93]: labelEnd,\n [95]: attention,\n [96]: codeText\n}\n\n/** @satisfies {Extension['insideSpan']} */\nexport const insideSpan = {\n null: [attention, resolveText]\n}\n\n/** @satisfies {Extension['attentionMarkers']} */\nexport const attentionMarkers = {\n null: [42, 95]\n}\n\n/** @satisfies {Extension['disable']} */\nexport const disable = {\n null: []\n}\n","/**\n * @typedef {import('micromark-util-types').Create} Create\n * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').ParseContext} ParseContext\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n */\n\nimport {combineExtensions} from 'micromark-util-combine-extensions'\nimport {content} from './initialize/content.js'\nimport {document} from './initialize/document.js'\nimport {flow} from './initialize/flow.js'\nimport {text, string} from './initialize/text.js'\nimport {createTokenizer} from './create-tokenizer.js'\nimport * as defaultConstructs from './constructs.js'\n\n/**\n * @param {ParseOptions | null | undefined} [options]\n * @returns {ParseContext}\n */\nexport function parse(options) {\n const settings = options || {}\n const constructs =\n /** @type {FullNormalizedExtension} */\n combineExtensions([defaultConstructs, ...(settings.extensions || [])])\n\n /** @type {ParseContext} */\n const parser = {\n defined: [],\n lazy: {},\n constructs,\n content: create(content),\n document: create(document),\n flow: create(flow),\n string: create(string),\n text: create(text)\n }\n return parser\n\n /**\n * @param {InitialConstruct} initial\n */\n function create(initial) {\n return creator\n /** @type {Create} */\n function creator(from) {\n return createTokenizer(parser, initial, from)\n }\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Value} Value\n */\n\n/**\n * @callback Preprocessor\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {boolean | null | undefined} [end=false]\n * @returns {Array}\n */\n\nconst search = /[\\0\\t\\n\\r]/g\n\n/**\n * @returns {Preprocessor}\n */\nexport function preprocess() {\n let column = 1\n let buffer = ''\n /** @type {boolean | undefined} */\n let start = true\n /** @type {boolean | undefined} */\n let atCarriageReturn\n return preprocessor\n\n /** @type {Preprocessor} */\n function preprocessor(value, encoding, end) {\n /** @type {Array} */\n const chunks = []\n /** @type {RegExpMatchArray | null} */\n let match\n /** @type {number} */\n let next\n /** @type {number} */\n let startPosition\n /** @type {number} */\n let endPosition\n /** @type {Code} */\n let code\n\n // @ts-expect-error `Buffer` does allow an encoding.\n value = buffer + value.toString(encoding)\n startPosition = 0\n buffer = ''\n if (start) {\n // To do: `markdown-rs` actually parses BOMs (byte order mark).\n if (value.charCodeAt(0) === 65279) {\n startPosition++\n }\n start = undefined\n }\n while (startPosition < value.length) {\n search.lastIndex = startPosition\n match = search.exec(value)\n endPosition =\n match && match.index !== undefined ? match.index : value.length\n code = value.charCodeAt(endPosition)\n if (!match) {\n buffer = value.slice(startPosition)\n break\n }\n if (code === 10 && startPosition === endPosition && atCarriageReturn) {\n chunks.push(-3)\n atCarriageReturn = undefined\n } else {\n if (atCarriageReturn) {\n chunks.push(-5)\n atCarriageReturn = undefined\n }\n if (startPosition < endPosition) {\n chunks.push(value.slice(startPosition, endPosition))\n column += endPosition - startPosition\n }\n switch (code) {\n case 0: {\n chunks.push(65533)\n column++\n break\n }\n case 9: {\n next = Math.ceil(column / 4) * 4\n chunks.push(-2)\n while (column++ < next) chunks.push(-1)\n break\n }\n case 10: {\n chunks.push(-4)\n column = 1\n break\n }\n default: {\n atCarriageReturn = true\n column = 1\n }\n }\n }\n startPosition = endPosition + 1\n }\n if (end) {\n if (atCarriageReturn) chunks.push(-5)\n if (buffer) chunks.push(buffer)\n chunks.push(null)\n }\n return chunks\n }\n}\n","/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base)\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 ||\n code === 11 ||\n (code > 13 && code < 32) ||\n // Control character (DEL) of C0, and C1 controls.\n (code > 126 && code < 160) ||\n // Lone high surrogates and low surrogates.\n (code > 55295 && code < 57344) ||\n // Noncharacters.\n (code > 64975 && code < 65008) /* eslint-disable no-bitwise */ ||\n (code & 65535) === 65535 ||\n (code & 65535) === 65534 /* eslint-enable no-bitwise */ ||\n // Out of range\n code > 1114111\n ) {\n return '\\uFFFD'\n }\n return String.fromCharCode(code)\n}\n","import {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nconst characterEscapeOrReference =\n /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @param {string} $2\n * @returns {string}\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1\n }\n\n // Reference.\n const head = $2.charCodeAt(0)\n if (head === 35) {\n const head = $2.charCodeAt(1)\n const hex = head === 120 || head === 88\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10)\n }\n return decodeNamedCharacterReference($2) || $0\n}\n","/**\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Value} Value\n *\n * @typedef {import('unist').Parent} UnistParent\n * @typedef {import('unist').Point} Point\n *\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').StaticPhrasingContent} StaticPhrasingContent\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').HTML} HTML\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('mdast').Text} Text\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('mdast').ReferenceType} ReferenceType\n * @typedef {import('../index.js').CompileData} CompileData\n */\n\n/**\n * @typedef {Root | Content} Node\n * @typedef {Extract} Parent\n *\n * @typedef {Omit & {type: 'fragment', children: Array}} Fragment\n */\n\n/**\n * @callback Transform\n * Extra transform, to change the AST afterwards.\n * @param {Root} tree\n * Tree to transform.\n * @returns {Root | undefined | null | void}\n * New tree or nothing (in which case the current tree is used).\n *\n * @callback Handle\n * Handle a token.\n * @param {CompileContext} this\n * Context.\n * @param {Token} token\n * Current token.\n * @returns {void}\n * Nothing.\n *\n * @typedef {Record} Handles\n * Token types mapping to handles\n *\n * @callback OnEnterError\n * Handle the case where the `right` token is open, but it is closed (by the\n * `left` token) or because we reached the end of the document.\n * @param {Omit} this\n * Context.\n * @param {Token | undefined} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {void}\n * Nothing.\n *\n * @callback OnExitError\n * Handle the case where the `right` token is open but it is closed by\n * exiting the `left` token.\n * @param {Omit} this\n * Context.\n * @param {Token} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {void}\n * Nothing.\n *\n * @typedef {[Token, OnEnterError | undefined]} TokenTuple\n * Open token on the stack, with an optional error handler for when\n * that token isn’t closed properly.\n */\n\n/**\n * @typedef Config\n * Configuration.\n *\n * We have our defaults, but extensions will add more.\n * @property {Array} canContainEols\n * Token types where line endings are used.\n * @property {Handles} enter\n * Opening handles.\n * @property {Handles} exit\n * Closing handles.\n * @property {Array} transforms\n * Tree transforms.\n *\n * @typedef {Partial} Extension\n * Change how markdown tokens from micromark are turned into mdast.\n *\n * @typedef CompileContext\n * mdast compiler context.\n * @property {Array} stack\n * Stack of nodes.\n * @property {Array} tokenStack\n * Stack of tokens.\n * @property {(key: Key) => CompileData[Key]} getData\n * Get data from the key/value store.\n * @property {(key: Key, value?: CompileData[Key]) => void} setData\n * Set data into the key/value store.\n * @property {(this: CompileContext) => void} buffer\n * Capture some of the output data.\n * @property {(this: CompileContext) => string} resume\n * Stop capturing and access the output data.\n * @property {(this: CompileContext, node: Kind, token: Token, onError?: OnEnterError) => Kind} enter\n * Enter a token.\n * @property {(this: CompileContext, token: Token, onError?: OnExitError) => Node} exit\n * Exit a token.\n * @property {TokenizeContext['sliceSerialize']} sliceSerialize\n * Get the string value of a token.\n * @property {Config} config\n * Configuration.\n *\n * @typedef FromMarkdownOptions\n * Configuration for how to build mdast.\n * @property {Array> | null | undefined} [mdastExtensions]\n * Extensions for this utility to change how tokens are turned into a tree.\n *\n * @typedef {ParseOptions & FromMarkdownOptions} Options\n * Configuration.\n */\n\n// To do: micromark: create a registry of tokens?\n// To do: next major: don’t return given `Node` from `enter`.\n// To do: next major: remove setter/getter.\n\nimport {toString} from 'mdast-util-to-string'\nimport {parse} from 'micromark/lib/parse.js'\nimport {preprocess} from 'micromark/lib/preprocess.js'\nimport {postprocess} from 'micromark/lib/postprocess.js'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nimport {decodeString} from 'micromark-util-decode-string'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {stringifyPosition} from 'unist-util-stringify-position'\nconst own = {}.hasOwnProperty\n\n/**\n * @param value\n * Markdown to parse.\n * @param encoding\n * Character encoding for when `value` is `Buffer`.\n * @param options\n * Configuration.\n * @returns\n * mdast tree.\n */\nexport const fromMarkdown =\n /**\n * @type {(\n * ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &\n * ((value: Value, options?: Options | null | undefined) => Root)\n * )}\n */\n\n /**\n * @param {Value} value\n * @param {Encoding | Options | null | undefined} [encoding]\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n */\n function (value, encoding, options) {\n if (typeof encoding !== 'string') {\n options = encoding\n encoding = undefined\n }\n return compiler(options)(\n postprocess(\n parse(options).document().write(preprocess()(value, encoding, true))\n )\n )\n }\n\n/**\n * Note this compiler only understand complete buffering, not streaming.\n *\n * @param {Options | null | undefined} [options]\n */\nfunction compiler(options) {\n /** @type {Config} */\n const config = {\n transforms: [],\n canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'],\n enter: {\n autolink: opener(link),\n autolinkProtocol: onenterdata,\n autolinkEmail: onenterdata,\n atxHeading: opener(heading),\n blockQuote: opener(blockQuote),\n characterEscape: onenterdata,\n characterReference: onenterdata,\n codeFenced: opener(codeFlow),\n codeFencedFenceInfo: buffer,\n codeFencedFenceMeta: buffer,\n codeIndented: opener(codeFlow, buffer),\n codeText: opener(codeText, buffer),\n codeTextData: onenterdata,\n data: onenterdata,\n codeFlowValue: onenterdata,\n definition: opener(definition),\n definitionDestinationString: buffer,\n definitionLabelString: buffer,\n definitionTitleString: buffer,\n emphasis: opener(emphasis),\n hardBreakEscape: opener(hardBreak),\n hardBreakTrailing: opener(hardBreak),\n htmlFlow: opener(html, buffer),\n htmlFlowData: onenterdata,\n htmlText: opener(html, buffer),\n htmlTextData: onenterdata,\n image: opener(image),\n label: buffer,\n link: opener(link),\n listItem: opener(listItem),\n listItemValue: onenterlistitemvalue,\n listOrdered: opener(list, onenterlistordered),\n listUnordered: opener(list),\n paragraph: opener(paragraph),\n reference: onenterreference,\n referenceString: buffer,\n resourceDestinationString: buffer,\n resourceTitleString: buffer,\n setextHeading: opener(heading),\n strong: opener(strong),\n thematicBreak: opener(thematicBreak)\n },\n exit: {\n atxHeading: closer(),\n atxHeadingSequence: onexitatxheadingsequence,\n autolink: closer(),\n autolinkEmail: onexitautolinkemail,\n autolinkProtocol: onexitautolinkprotocol,\n blockQuote: closer(),\n characterEscapeValue: onexitdata,\n characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,\n characterReferenceMarkerNumeric: onexitcharacterreferencemarker,\n characterReferenceValue: onexitcharacterreferencevalue,\n codeFenced: closer(onexitcodefenced),\n codeFencedFence: onexitcodefencedfence,\n codeFencedFenceInfo: onexitcodefencedfenceinfo,\n codeFencedFenceMeta: onexitcodefencedfencemeta,\n codeFlowValue: onexitdata,\n codeIndented: closer(onexitcodeindented),\n codeText: closer(onexitcodetext),\n codeTextData: onexitdata,\n data: onexitdata,\n definition: closer(),\n definitionDestinationString: onexitdefinitiondestinationstring,\n definitionLabelString: onexitdefinitionlabelstring,\n definitionTitleString: onexitdefinitiontitlestring,\n emphasis: closer(),\n hardBreakEscape: closer(onexithardbreak),\n hardBreakTrailing: closer(onexithardbreak),\n htmlFlow: closer(onexithtmlflow),\n htmlFlowData: onexitdata,\n htmlText: closer(onexithtmltext),\n htmlTextData: onexitdata,\n image: closer(onexitimage),\n label: onexitlabel,\n labelText: onexitlabeltext,\n lineEnding: onexitlineending,\n link: closer(onexitlink),\n listItem: closer(),\n listOrdered: closer(),\n listUnordered: closer(),\n paragraph: closer(),\n referenceString: onexitreferencestring,\n resourceDestinationString: onexitresourcedestinationstring,\n resourceTitleString: onexitresourcetitlestring,\n resource: onexitresource,\n setextHeading: closer(onexitsetextheading),\n setextHeadingLineSequence: onexitsetextheadinglinesequence,\n setextHeadingText: onexitsetextheadingtext,\n strong: closer(),\n thematicBreak: closer()\n }\n }\n configure(config, (options || {}).mdastExtensions || [])\n\n /** @type {CompileData} */\n const data = {}\n return compile\n\n /**\n * Turn micromark events into an mdast tree.\n *\n * @param {Array} events\n * Events.\n * @returns {Root}\n * mdast tree.\n */\n function compile(events) {\n /** @type {Root} */\n let tree = {\n type: 'root',\n children: []\n }\n /** @type {Omit} */\n const context = {\n stack: [tree],\n tokenStack: [],\n config,\n enter,\n exit,\n buffer,\n resume,\n setData,\n getData\n }\n /** @type {Array} */\n const listStack = []\n let index = -1\n while (++index < events.length) {\n // We preprocess lists to add `listItem` tokens, and to infer whether\n // items the list itself are spread out.\n if (\n events[index][1].type === 'listOrdered' ||\n events[index][1].type === 'listUnordered'\n ) {\n if (events[index][0] === 'enter') {\n listStack.push(index)\n } else {\n const tail = listStack.pop()\n index = prepareList(events, tail, index)\n }\n }\n }\n index = -1\n while (++index < events.length) {\n const handler = config[events[index][0]]\n if (own.call(handler, events[index][1].type)) {\n handler[events[index][1].type].call(\n Object.assign(\n {\n sliceSerialize: events[index][2].sliceSerialize\n },\n context\n ),\n events[index][1]\n )\n }\n }\n\n // Handle tokens still being open.\n if (context.tokenStack.length > 0) {\n const tail = context.tokenStack[context.tokenStack.length - 1]\n const handler = tail[1] || defaultOnError\n handler.call(context, undefined, tail[0])\n }\n\n // Figure out `root` position.\n tree.position = {\n start: point(\n events.length > 0\n ? events[0][1].start\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n ),\n end: point(\n events.length > 0\n ? events[events.length - 2][1].end\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n )\n }\n\n // Call transforms.\n index = -1\n while (++index < config.transforms.length) {\n tree = config.transforms[index](tree) || tree\n }\n return tree\n }\n\n /**\n * @param {Array} events\n * @param {number} start\n * @param {number} length\n * @returns {number}\n */\n function prepareList(events, start, length) {\n let index = start - 1\n let containerBalance = -1\n let listSpread = false\n /** @type {Token | undefined} */\n let listItem\n /** @type {number | undefined} */\n let lineIndex\n /** @type {number | undefined} */\n let firstBlankLineIndex\n /** @type {boolean | undefined} */\n let atMarker\n while (++index <= length) {\n const event = events[index]\n if (\n event[1].type === 'listUnordered' ||\n event[1].type === 'listOrdered' ||\n event[1].type === 'blockQuote'\n ) {\n if (event[0] === 'enter') {\n containerBalance++\n } else {\n containerBalance--\n }\n atMarker = undefined\n } else if (event[1].type === 'lineEndingBlank') {\n if (event[0] === 'enter') {\n if (\n listItem &&\n !atMarker &&\n !containerBalance &&\n !firstBlankLineIndex\n ) {\n firstBlankLineIndex = index\n }\n atMarker = undefined\n }\n } else if (\n event[1].type === 'linePrefix' ||\n event[1].type === 'listItemValue' ||\n event[1].type === 'listItemMarker' ||\n event[1].type === 'listItemPrefix' ||\n event[1].type === 'listItemPrefixWhitespace'\n ) {\n // Empty.\n } else {\n atMarker = undefined\n }\n if (\n (!containerBalance &&\n event[0] === 'enter' &&\n event[1].type === 'listItemPrefix') ||\n (containerBalance === -1 &&\n event[0] === 'exit' &&\n (event[1].type === 'listUnordered' ||\n event[1].type === 'listOrdered'))\n ) {\n if (listItem) {\n let tailIndex = index\n lineIndex = undefined\n while (tailIndex--) {\n const tailEvent = events[tailIndex]\n if (\n tailEvent[1].type === 'lineEnding' ||\n tailEvent[1].type === 'lineEndingBlank'\n ) {\n if (tailEvent[0] === 'exit') continue\n if (lineIndex) {\n events[lineIndex][1].type = 'lineEndingBlank'\n listSpread = true\n }\n tailEvent[1].type = 'lineEnding'\n lineIndex = tailIndex\n } else if (\n tailEvent[1].type === 'linePrefix' ||\n tailEvent[1].type === 'blockQuotePrefix' ||\n tailEvent[1].type === 'blockQuotePrefixWhitespace' ||\n tailEvent[1].type === 'blockQuoteMarker' ||\n tailEvent[1].type === 'listItemIndent'\n ) {\n // Empty\n } else {\n break\n }\n }\n if (\n firstBlankLineIndex &&\n (!lineIndex || firstBlankLineIndex < lineIndex)\n ) {\n listItem._spread = true\n }\n\n // Fix position.\n listItem.end = Object.assign(\n {},\n lineIndex ? events[lineIndex][1].start : event[1].end\n )\n events.splice(lineIndex || index, 0, ['exit', listItem, event[2]])\n index++\n length++\n }\n\n // Create a new list item.\n if (event[1].type === 'listItemPrefix') {\n listItem = {\n type: 'listItem',\n _spread: false,\n start: Object.assign({}, event[1].start),\n // @ts-expect-error: we’ll add `end` in a second.\n end: undefined\n }\n // @ts-expect-error: `listItem` is most definitely defined, TS...\n events.splice(index, 0, ['enter', listItem, event[2]])\n index++\n length++\n firstBlankLineIndex = undefined\n atMarker = true\n }\n }\n }\n events[start][1]._spread = listSpread\n return length\n }\n\n /**\n * Set data.\n *\n * @template {keyof CompileData} Key\n * Field type.\n * @param {Key} key\n * Key of field.\n * @param {CompileData[Key]} [value]\n * New value.\n * @returns {void}\n * Nothing.\n */\n function setData(key, value) {\n data[key] = value\n }\n\n /**\n * Get data.\n *\n * @template {keyof CompileData} Key\n * Field type.\n * @param {Key} key\n * Key of field.\n * @returns {CompileData[Key]}\n * Value.\n */\n function getData(key) {\n return data[key]\n }\n\n /**\n * Create an opener handle.\n *\n * @param {(token: Token) => Node} create\n * Create a node.\n * @param {Handle} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function opener(create, and) {\n return open\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {void}\n */\n function open(token) {\n enter.call(this, create(token), token)\n if (and) and.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @returns {void}\n */\n function buffer() {\n this.stack.push({\n type: 'fragment',\n children: []\n })\n }\n\n /**\n * @template {Node} Kind\n * Node type.\n * @this {CompileContext}\n * Context.\n * @param {Kind} node\n * Node to enter.\n * @param {Token} token\n * Corresponding token.\n * @param {OnEnterError | undefined} [errorHandler]\n * Handle the case where this token is open, but it is closed by something else.\n * @returns {Kind}\n * The given node.\n */\n function enter(node, token, errorHandler) {\n const parent = this.stack[this.stack.length - 1]\n // @ts-expect-error: Assume `Node` can exist as a child of `parent`.\n parent.children.push(node)\n this.stack.push(node)\n this.tokenStack.push([token, errorHandler])\n // @ts-expect-error: `end` will be patched later.\n node.position = {\n start: point(token.start)\n }\n return node\n }\n\n /**\n * Create a closer handle.\n *\n * @param {Handle} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function closer(and) {\n return close\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {void}\n */\n function close(token) {\n if (and) and.call(this, token)\n exit.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Token} token\n * Corresponding token.\n * @param {OnExitError | undefined} [onExitError]\n * Handle the case where another token is open.\n * @returns {Node}\n * The closed node.\n */\n function exit(token, onExitError) {\n const node = this.stack.pop()\n const open = this.tokenStack.pop()\n if (!open) {\n throw new Error(\n 'Cannot close `' +\n token.type +\n '` (' +\n stringifyPosition({\n start: token.start,\n end: token.end\n }) +\n '): it’s not open'\n )\n } else if (open[0].type !== token.type) {\n if (onExitError) {\n onExitError.call(this, token, open[0])\n } else {\n const handler = open[1] || defaultOnError\n handler.call(this, token, open[0])\n }\n }\n node.position.end = point(token.end)\n return node\n }\n\n /**\n * @this {CompileContext}\n * @returns {string}\n */\n function resume() {\n return toString(this.stack.pop())\n }\n\n //\n // Handlers.\n //\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistordered() {\n setData('expectingFirstListItemValue', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistitemvalue(token) {\n if (getData('expectingFirstListItemValue')) {\n const ancestor = this.stack[this.stack.length - 2]\n ancestor.start = Number.parseInt(this.sliceSerialize(token), 10)\n setData('expectingFirstListItemValue')\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfenceinfo() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.lang = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfencemeta() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.meta = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfence() {\n // Exit if this is the closing fence.\n if (getData('flowCodeInside')) return\n this.buffer()\n setData('flowCodeInside', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefenced() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/^(\\r?\\n|\\r)|(\\r?\\n|\\r)$/g, '')\n setData('flowCodeInside')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodeindented() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/(\\r?\\n|\\r)$/g, '')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitionlabelstring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiontitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiondestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitatxheadingsequence(token) {\n const node = this.stack[this.stack.length - 1]\n if (!node.depth) {\n const depth = this.sliceSerialize(token).length\n node.depth = depth\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadingtext() {\n setData('setextHeadingSlurpLineEnding', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadinglinesequence(token) {\n const node = this.stack[this.stack.length - 1]\n node.depth = this.sliceSerialize(token).charCodeAt(0) === 61 ? 1 : 2\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheading() {\n setData('setextHeadingSlurpLineEnding')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterdata(token) {\n const node = this.stack[this.stack.length - 1]\n let tail = node.children[node.children.length - 1]\n if (!tail || tail.type !== 'text') {\n // Add a new text node.\n tail = text()\n // @ts-expect-error: we’ll add `end` later.\n tail.position = {\n start: point(token.start)\n }\n // @ts-expect-error: Assume `parent` accepts `text`.\n node.children.push(tail)\n }\n this.stack.push(tail)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitdata(token) {\n const tail = this.stack.pop()\n tail.value += this.sliceSerialize(token)\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlineending(token) {\n const context = this.stack[this.stack.length - 1]\n // If we’re at a hard break, include the line ending in there.\n if (getData('atHardBreak')) {\n const tail = context.children[context.children.length - 1]\n tail.position.end = point(token.end)\n setData('atHardBreak')\n return\n }\n if (\n !getData('setextHeadingSlurpLineEnding') &&\n config.canContainEols.includes(context.type)\n ) {\n onenterdata.call(this, token)\n onexitdata.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithardbreak() {\n setData('atHardBreak', true)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmlflow() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmltext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcodetext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlink() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (getData('inReference')) {\n /** @type {ReferenceType} */\n const referenceType = getData('referenceType') || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n setData('referenceType')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitimage() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (getData('inReference')) {\n /** @type {ReferenceType} */\n const referenceType = getData('referenceType') || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n setData('referenceType')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabeltext(token) {\n const string = this.sliceSerialize(token)\n const ancestor = this.stack[this.stack.length - 2]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n ancestor.label = decodeString(string)\n // @ts-expect-error: same as above.\n ancestor.identifier = normalizeIdentifier(string).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabel() {\n const fragment = this.stack[this.stack.length - 1]\n const value = this.resume()\n const node = this.stack[this.stack.length - 1]\n // Assume a reference.\n setData('inReference', true)\n if (node.type === 'link') {\n /** @type {Array} */\n // @ts-expect-error: Assume static phrasing content.\n const children = fragment.children\n node.children = children\n } else {\n node.alt = value\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcedestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcetitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresource() {\n setData('inReference')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterreference() {\n setData('referenceType', 'collapsed')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitreferencestring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n node.label = label\n // @ts-expect-error: same as above.\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n setData('referenceType', 'full')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcharacterreferencemarker(token) {\n setData('characterReferenceType', token.type)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcharacterreferencevalue(token) {\n const data = this.sliceSerialize(token)\n const type = getData('characterReferenceType')\n /** @type {string} */\n let value\n if (type) {\n value = decodeNumericCharacterReference(\n data,\n type === 'characterReferenceMarkerNumeric' ? 10 : 16\n )\n setData('characterReferenceType')\n } else {\n const result = decodeNamedCharacterReference(data)\n value = result\n }\n const tail = this.stack.pop()\n tail.value += value\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkprotocol(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = this.sliceSerialize(token)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkemail(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = 'mailto:' + this.sliceSerialize(token)\n }\n\n //\n // Creaters.\n //\n\n /** @returns {Blockquote} */\n function blockQuote() {\n return {\n type: 'blockquote',\n children: []\n }\n }\n\n /** @returns {Code} */\n function codeFlow() {\n return {\n type: 'code',\n lang: null,\n meta: null,\n value: ''\n }\n }\n\n /** @returns {InlineCode} */\n function codeText() {\n return {\n type: 'inlineCode',\n value: ''\n }\n }\n\n /** @returns {Definition} */\n function definition() {\n return {\n type: 'definition',\n identifier: '',\n label: null,\n title: null,\n url: ''\n }\n }\n\n /** @returns {Emphasis} */\n function emphasis() {\n return {\n type: 'emphasis',\n children: []\n }\n }\n\n /** @returns {Heading} */\n function heading() {\n // @ts-expect-error `depth` will be set later.\n return {\n type: 'heading',\n depth: undefined,\n children: []\n }\n }\n\n /** @returns {Break} */\n function hardBreak() {\n return {\n type: 'break'\n }\n }\n\n /** @returns {HTML} */\n function html() {\n return {\n type: 'html',\n value: ''\n }\n }\n\n /** @returns {Image} */\n function image() {\n return {\n type: 'image',\n title: null,\n url: '',\n alt: null\n }\n }\n\n /** @returns {Link} */\n function link() {\n return {\n type: 'link',\n title: null,\n url: '',\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {List}\n */\n function list(token) {\n return {\n type: 'list',\n ordered: token.type === 'listOrdered',\n start: null,\n spread: token._spread,\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {ListItem}\n */\n function listItem(token) {\n return {\n type: 'listItem',\n spread: token._spread,\n checked: null,\n children: []\n }\n }\n\n /** @returns {Paragraph} */\n function paragraph() {\n return {\n type: 'paragraph',\n children: []\n }\n }\n\n /** @returns {Strong} */\n function strong() {\n return {\n type: 'strong',\n children: []\n }\n }\n\n /** @returns {Text} */\n function text() {\n return {\n type: 'text',\n value: ''\n }\n }\n\n /** @returns {ThematicBreak} */\n function thematicBreak() {\n return {\n type: 'thematicBreak'\n }\n }\n}\n\n/**\n * Copy a point-like value.\n *\n * @param {Point} d\n * Point-like value.\n * @returns {Point}\n * unist point.\n */\nfunction point(d) {\n return {\n line: d.line,\n column: d.column,\n offset: d.offset\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Array>} extensions\n * @returns {void}\n */\nfunction configure(combined, extensions) {\n let index = -1\n while (++index < extensions.length) {\n const value = extensions[index]\n if (Array.isArray(value)) {\n configure(combined, value)\n } else {\n extension(combined, value)\n }\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Extension} extension\n * @returns {void}\n */\nfunction extension(combined, extension) {\n /** @type {keyof Extension} */\n let key\n for (key in extension) {\n if (own.call(extension, key)) {\n if (key === 'canContainEols') {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n } else if (key === 'transforms') {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n } else if (key === 'enter' || key === 'exit') {\n const right = extension[key]\n if (right) {\n Object.assign(combined[key], right)\n }\n }\n }\n }\n}\n\n/** @type {OnEnterError} */\nfunction defaultOnError(left, right) {\n if (left) {\n throw new Error(\n 'Cannot close `' +\n left.type +\n '` (' +\n stringifyPosition({\n start: left.start,\n end: left.end\n }) +\n '): a different token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is open'\n )\n } else {\n throw new Error(\n 'Cannot close document, a token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is still open'\n )\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\nimport {subtokenize} from 'micromark-util-subtokenize'\n\n/**\n * @param {Array} events\n * @returns {Array}\n */\nexport function postprocess(events) {\n while (!subtokenize(events)) {\n // Empty\n }\n return events\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * @this {import('unified').Processor}\n * @type {import('unified').Plugin<[Options?] | void[], string, Root>}\n */\nexport default function remarkParse(options) {\n /** @type {import('unified').ParserFunction} */\n const parser = (doc) => {\n // Assume options.\n const settings = /** @type {Options} */ (this.data('settings'))\n\n return fromMarkdown(\n doc,\n Object.assign({}, settings, options, {\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: this.data('micromarkExtensions') || [],\n mdastExtensions: this.data('fromMarkdownExtensions') || []\n })\n )\n }\n\n Object.assign(this, {Parser: parser})\n}\n","import {asciiAlphanumeric} from 'micromark-util-character'\nimport {encode} from 'micromark-util-encode'\n/**\n * Make a value safe for injection as a URL.\n *\n * This encodes unsafe characters with percent-encoding and skips already\n * encoded sequences (see `normalizeUri`).\n * Further unsafe characters are encoded as character references (see\n * `micromark-util-encode`).\n *\n * A regex of allowed protocols can be given, in which case the URL is\n * sanitized.\n * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or\n * `/^https?$/i` for `img[src]` (this is what `github.com` allows).\n * If the URL includes an unknown protocol (one not matched by `protocol`, such\n * as a dangerous example, `javascript:`), the value is ignored.\n *\n * @param {string | undefined} url\n * URI to sanitize.\n * @param {RegExp | null | undefined} [protocol]\n * Allowed protocols.\n * @returns {string}\n * Sanitized URI.\n */\nexport function sanitizeUri(url, protocol) {\n const value = encode(normalizeUri(url || ''))\n if (!protocol) {\n return value\n }\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash > -1 && colon > slash) ||\n (questionMark > -1 && colon > questionMark) ||\n (numberSign > -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n protocol.test(value.slice(0, colon))\n ) {\n return value\n }\n return ''\n}\n\n/**\n * Normalize a URL.\n *\n * Encode unsafe characters with percent-encoding, skipping already encoded\n * sequences.\n *\n * @param {string} value\n * URI to normalize.\n * @returns {string}\n * Normalized URI.\n */\nexport function normalizeUri(value) {\n /** @type {Array} */\n const result = []\n let index = -1\n let start = 0\n let skip = 0\n while (++index < value.length) {\n const code = value.charCodeAt(index)\n /** @type {string} */\n let replace = ''\n\n // A correct percent encoded value.\n if (\n code === 37 &&\n asciiAlphanumeric(value.charCodeAt(index + 1)) &&\n asciiAlphanumeric(value.charCodeAt(index + 2))\n ) {\n skip = 2\n }\n // ASCII.\n else if (code < 128) {\n if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {\n replace = String.fromCharCode(code)\n }\n }\n // Astral.\n else if (code > 55295 && code < 57344) {\n const next = value.charCodeAt(index + 1)\n\n // A correct surrogate pair.\n if (code < 56320 && next > 56319 && next < 57344) {\n replace = String.fromCharCode(code, next)\n skip = 1\n }\n // Lone surrogate.\n else {\n replace = '\\uFFFD'\n }\n }\n // Unicode.\n else {\n replace = String.fromCharCode(code)\n }\n if (replace) {\n result.push(value.slice(start, index), encodeURIComponent(replace))\n start = index + skip + 1\n replace = ''\n }\n if (skip) {\n index += skip\n skip = 0\n }\n }\n return result.join('') + value.slice(start)\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @typedef {Record} Props\n * @typedef {null | undefined | string | Props | TestFunctionAnything | Array} Test\n * Check for an arbitrary node, unaware of TypeScript inferral.\n *\n * @callback TestFunctionAnything\n * Check if a node passes a test, unaware of TypeScript inferral.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | void}\n * Whether this node passes the test.\n */\n\n/**\n * @template {Node} Kind\n * Node type.\n * @typedef {Kind['type'] | Partial | TestFunctionPredicate | Array | TestFunctionPredicate>} PredicateTest\n * Check for a node that can be inferred by TypeScript.\n */\n\n/**\n * Check if a node passes a certain test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback TestFunctionPredicate\n * Complex test function for a node that can be inferred by TypeScript.\n * @param {Node} node\n * A node.\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this node passes the test.\n */\n\n/**\n * @callback AssertAnything\n * Check that an arbitrary value is a node, unaware of TypeScript inferral.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if a node is a node and passes a certain node test.\n *\n * @template {Node} Kind\n * Node type.\n * @callback AssertPredicate\n * Check that an arbitrary value is a specific node, aware of TypeScript.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {node is Kind}\n * Whether this is a node and passes a test.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @param test\n * A check for a specific node.\n * @param index\n * The node’s position in its parent.\n * @param parent\n * The node’s parent.\n * @returns\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n /**\n * @type {(\n * (() => false) &\n * ((node: unknown, test: PredicateTest, index: number, parent: Parent, context?: unknown) => node is Kind) &\n * ((node: unknown, test: PredicateTest, index?: null | undefined, parent?: null | undefined, context?: unknown) => node is Kind) &\n * ((node: unknown, test: Test, index: number, parent: Parent, context?: unknown) => boolean) &\n * ((node: unknown, test?: Test, index?: null | undefined, parent?: null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function is(node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n // @ts-expect-error Looks like a node.\n return node && node.type && typeof node.type === 'string'\n ? Boolean(check.call(context, node, index, parent))\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns\n * An assertion.\n */\nexport const convert =\n /**\n * @type {(\n * ((test: PredicateTest) => AssertPredicate) &\n * ((test?: Test) => AssertAnything)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {AssertAnything}\n */\n function (test) {\n if (test === undefined || test === null) {\n return ok\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array} tests\n * @returns {AssertAnything}\n */\nfunction anyFactory(tests) {\n /** @type {Array} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @param {Array} parameters\n * @returns {boolean}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].call(this, ...parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {AssertAnything}\n */\nfunction propsFactory(check) {\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n /** @type {string} */\n let key\n\n for (key in check) {\n // @ts-expect-error: hush, it sure works as an index.\n if (node[key] !== check[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {AssertAnything}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunctionAnything} check\n * @returns {AssertAnything}\n */\nfunction castFactory(check) {\n return assertion\n\n /**\n * @this {unknown}\n * @param {unknown} node\n * @param {Array} parameters\n * @returns {boolean}\n */\n function assertion(node, ...parameters) {\n return Boolean(\n node &&\n typeof node === 'object' &&\n 'type' in node &&\n // @ts-expect-error: fine.\n Boolean(check.call(this, node, ...parameters))\n )\n }\n}\n\nfunction ok() {\n return true\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n */\n\n/**\n * @typedef {boolean | 'skip'} Action\n * Union of the action types.\n *\n * @typedef {number} Index\n * Move to the sibling at `index` next (after node itself is completely\n * traversed).\n *\n * Useful if mutating the tree, such as removing the node the visitor is\n * currently on, or any of its previous siblings.\n * Results less than 0 or greater than or equal to `children.length` stop\n * traversing the parent.\n *\n * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple\n * List with one or two values, the first an action, the second an index.\n *\n * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult\n * Any value that can be returned from a visitor.\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform the parent of node (the last of `ancestors`).\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of an ancestor still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Array} ancestors\n * Ancestors of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * Tree type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {Visitor, Check>, Extract, Parent>>} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parents`.\n */\n\nimport {convert} from 'unist-util-is'\nimport {color} from './color.js'\n\n/**\n * Continue traversing as normal.\n */\nexport const CONTINUE = true\n\n/**\n * Stop traversing immediately.\n */\nexport const EXIT = false\n\n/**\n * Do not traverse this node’s children.\n */\nexport const SKIP = 'skip'\n\n/**\n * Visit nodes, with ancestral information.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visitParents =\n /**\n * @type {(\n * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) &\n * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n // @ts-expect-error no visitor given, so `visitor` is test.\n visitor = test\n test = null\n }\n\n const is = convert(test)\n const step = reverse ? -1 : 1\n\n factory(tree, undefined, [])()\n\n /**\n * @param {Node} node\n * @param {number | undefined} index\n * @param {Array} parents\n */\n function factory(node, index, parents) {\n /** @type {Record} */\n // @ts-expect-error: hush\n const value = node && typeof node === 'object' ? node : {}\n\n if (typeof value.type === 'string') {\n const name =\n // `hast`\n typeof value.tagName === 'string'\n ? value.tagName\n : // `xast`\n typeof value.name === 'string'\n ? value.name\n : undefined\n\n Object.defineProperty(visit, 'name', {\n value:\n 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')'\n })\n }\n\n return visit\n\n function visit() {\n /** @type {ActionTuple} */\n let result = []\n /** @type {ActionTuple} */\n let subresult\n /** @type {number} */\n let offset\n /** @type {Array} */\n let grandparents\n\n if (!test || is(node, index, parents[parents.length - 1] || null)) {\n result = toResult(visitor(node, parents))\n\n if (result[0] === EXIT) {\n return result\n }\n }\n\n // @ts-expect-error looks like a parent.\n if (node.children && result[0] !== SKIP) {\n // @ts-expect-error looks like a parent.\n offset = (reverse ? node.children.length : -1) + step\n // @ts-expect-error looks like a parent.\n grandparents = parents.concat(node)\n\n // @ts-expect-error looks like a parent.\n while (offset > -1 && offset < node.children.length) {\n // @ts-expect-error looks like a parent.\n subresult = factory(node.children[offset], offset, grandparents)()\n\n if (subresult[0] === EXIT) {\n return subresult\n }\n\n offset =\n typeof subresult[1] === 'number' ? subresult[1] : offset + step\n }\n }\n\n return result\n }\n }\n }\n )\n\n/**\n * Turn a return value into a clean result.\n *\n * @param {VisitorResult} value\n * Valid return values from visitors.\n * @returns {ActionTuple}\n * Clean result.\n */\nfunction toResult(value) {\n if (Array.isArray(value)) {\n return value\n }\n\n if (typeof value === 'number') {\n return [CONTINUE, value]\n }\n\n return [value]\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n * @typedef {import('unist-util-is').Test} Test\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * Check if `Child` can be a child of `Ancestor`.\n *\n * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns\n * `never`.\n *\n * @template {Node} Ancestor\n * Node type.\n * @template {Node} Child\n * Node type.\n * @typedef {(\n * Ancestor extends Parent\n * ? Child extends Ancestor['children'][number]\n * ? Ancestor\n * : never\n * : never\n * )} ParentsOf\n */\n\n/**\n * @template {Node} [Visited=Node]\n * Visited node type.\n * @template {Parent} [Ancestor=Parent]\n * Ancestor type.\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends Node ? number | null : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends Node ? Ancestor | null : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n */\n\n/**\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Visited\n * Node type.\n * @template {Parent} Ancestor\n * Parent type.\n * @typedef {Visitor>} BuildVisitorFromMatch\n */\n\n/**\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n * @typedef {(\n * BuildVisitorFromMatch<\n * import('unist-util-visit-parents/complex-types.js').Matches,\n * Extract\n * >\n * )} BuildVisitorFromDescendants\n */\n\n/**\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n *\n * @template {Node} [Tree=Node]\n * Node type.\n * @template {Test} [Check=string]\n * Test type.\n * @typedef {(\n * BuildVisitorFromDescendants<\n * import('unist-util-visit-parents/complex-types.js').InclusiveDescendant,\n * Check\n * >\n * )} BuildVisitor\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @param tree\n * Tree to traverse.\n * @param test\n * `unist-util-is`-compatible test\n * @param visitor\n * Handle each node.\n * @param reverse\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns\n * Nothing.\n */\nexport const visit =\n /**\n * @type {(\n * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) &\n * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void)\n * )}\n */\n (\n /**\n * @param {Node} tree\n * @param {Test} test\n * @param {Visitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {void}\n */\n function (tree, test, visitor, reverse) {\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n visitor = test\n test = null\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {Node} node\n * @param {Array} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n return visitor(\n node,\n parent ? parent.children.indexOf(node) : null,\n parent\n )\n }\n }\n )\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n","/**\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {NodeLike | Node | null | undefined} [node]\n * Node.\n * @returns {Position}\n * Position.\n */\nexport function position(node) {\n return {start: pointStart(node), end: pointEnd(node)}\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'start' | 'end'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {NodeLike | Node | null | undefined} [node]\n * @returns {Point}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n // To do: next major: don’t return points when invalid.\n return {\n // @ts-expect-error: in practice, null is allowed.\n line: point.line || null,\n // @ts-expect-error: in practice, null is allowed.\n column: point.column || null,\n // @ts-expect-error: in practice, null is allowed.\n offset: point.offset > -1 ? point.offset : null\n }\n }\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Definition} Definition\n */\n\n/**\n * @typedef {Root | Content} Node\n *\n * @callback GetDefinition\n * Get a definition by identifier.\n * @param {string | null | undefined} [identifier]\n * Identifier of definition.\n * @returns {Definition | null}\n * Definition corresponding to `identifier` or `null`.\n */\n\nimport {visit} from 'unist-util-visit'\n\nconst own = {}.hasOwnProperty\n\n/**\n * Find definitions in `tree`.\n *\n * Uses CommonMark precedence, which means that earlier definitions are\n * preferred over duplicate later definitions.\n *\n * @param {Node} tree\n * Tree to check.\n * @returns {GetDefinition}\n * Getter.\n */\nexport function definitions(tree) {\n /** @type {Record} */\n const cache = Object.create(null)\n\n if (!tree || !tree.type) {\n throw new Error('mdast-util-definitions expected node')\n }\n\n visit(tree, 'definition', (definition) => {\n const id = clean(definition.identifier)\n if (id && !own.call(cache, id)) {\n cache[id] = definition\n }\n })\n\n return definition\n\n /** @type {GetDefinition} */\n function definition(identifier) {\n const id = clean(identifier)\n // To do: next major: return `undefined` when not found.\n return id && own.call(cache, id) ? cache[id] : null\n }\n}\n\n/**\n * @param {string | null | undefined} [value]\n * @returns {string}\n */\nfunction clean(value) {\n return String(value || '').toUpperCase()\n}\n","/**\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('hast').Element} Element\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {FootnoteReference} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function footnoteReference(state, node) {\n const id = String(node.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n const index = state.footnoteOrder.indexOf(id)\n /** @type {number} */\n let counter\n\n if (index === -1) {\n state.footnoteOrder.push(id)\n state.footnoteCounts[id] = 1\n counter = state.footnoteOrder.length\n } else {\n state.footnoteCounts[id]++\n counter = index + 1\n }\n\n const reuseCounter = state.footnoteCounts[id]\n\n /** @type {Element} */\n const link = {\n type: 'element',\n tagName: 'a',\n properties: {\n href: '#' + state.clobberPrefix + 'fn-' + safeId,\n id:\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (reuseCounter > 1 ? '-' + reuseCounter : ''),\n dataFootnoteRef: true,\n ariaDescribedBy: ['footnote-label']\n },\n children: [{type: 'text', value: String(counter)}]\n }\n state.patch(node, link)\n\n /** @type {Element} */\n const sup = {\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [link]\n }\n state.patch(node, sup)\n return state.applyData(node, sup)\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Reference} Reference\n * @typedef {import('mdast').Root} Root\n *\n * @typedef {import('./state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} References\n */\n\n// To do: next major: always return array.\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {References} node\n * Reference node (image, link).\n * @returns {ElementContent | Array}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return {type: 'text', value: '![' + node.alt + suffix}\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} Parents\n */\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | null | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: .\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === undefined || spread === null\n ? node.children.length > 1\n : spread\n}\n","const tab = 9 /* `\\t` */\nconst space = 32 /* ` ` */\n\n/**\n * Remove initial and final spaces and tabs at the line breaks in `value`.\n * Does not trim initial and final spaces and tabs of the value itself.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Trimmed value.\n */\nexport function trimLines(value) {\n const source = String(value)\n const search = /\\r?\\n|\\r/g\n let match = search.exec(source)\n let last = 0\n /** @type {Array} */\n const lines = []\n\n while (match) {\n lines.push(\n trimLine(source.slice(last, match.index), last > 0, true),\n match[0]\n )\n\n last = match.index + match[0].length\n match = search.exec(source)\n }\n\n lines.push(trimLine(source.slice(last), last > 0, false))\n\n return lines.join('')\n}\n\n/**\n * @param {string} value\n * Line to trim.\n * @param {boolean} start\n * Whether to trim the start of the line.\n * @param {boolean} end\n * Whether to trim the end of the line.\n * @returns {string}\n * Trimmed line.\n */\nfunction trimLine(value, start, end) {\n let startIndex = 0\n let endIndex = value.length\n\n if (start) {\n let code = value.codePointAt(startIndex)\n\n while (code === tab || code === space) {\n startIndex++\n code = value.codePointAt(startIndex)\n }\n }\n\n if (end) {\n let code = value.codePointAt(endIndex - 1)\n\n while (code === tab || code === space) {\n endIndex--\n code = value.codePointAt(endIndex - 1)\n }\n }\n\n return endIndex > startIndex ? value.slice(startIndex, endIndex) : ''\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {footnote} from './footnote.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n footnote,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n // To do: next major: return `undefined`.\n return null\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').Break} Break\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n // To do: next major, use `node.lang` w/o regex, the splitting’s been going\n // on for years in remark now.\n const lang = node.lang ? node.lang.match(/^[^ \\t]+(?=[ \\t]|$)/) : null\n /** @type {Properties} */\n const properties = {}\n\n if (lang) {\n properties.className = ['language-' + lang]\n }\n\n // Create ``.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `
`.\n  result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n  state.patch(node, result)\n  return result\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Delete} Delete\n * @typedef {import('../state.js').State} State\n\n */\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Delete} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strikethrough(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'del',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Emphasis} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function emphasis(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'em',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Footnote} Footnote\n * @typedef {import('../state.js').State} State\n */\n\nimport {footnoteReference} from './footnote-reference.js'\n\n// To do: when both:\n// * \n// * \n// …are archived, remove this (also from mdast).\n// These inline notes are not used in GFM.\n\n/**\n * Turn an mdast `footnote` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Footnote} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function footnote(state, node) {\n  const footnoteById = state.footnoteById\n  let no = 1\n\n  while (no in footnoteById) no++\n\n  const identifier = String(no)\n\n  footnoteById[identifier] = {\n    type: 'footnoteDefinition',\n    identifier,\n    children: [{type: 'paragraph', children: node.children}],\n    position: node.position\n  }\n\n  return footnoteReference(state, {\n    type: 'footnoteReference',\n    identifier,\n    position: node.position\n  })\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Heading} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function heading(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'h' + node.depth,\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').HTML} Html\n * @typedef {import('../state.js').State} State\n * @typedef {import('../../index.js').Raw} Raw\n */\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n *   Info passed around.\n * @param {Html} node\n *   mdast node.\n * @returns {Raw | Element | null}\n *   hast node.\n */\nexport function html(state, node) {\n  if (state.dangerous) {\n    /** @type {Raw} */\n    const result = {type: 'raw', value: node.value}\n    state.patch(node, result)\n    return state.applyData(node, result)\n  }\n\n  // To do: next major: return `undefined`.\n  return null\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ImageReference} node\n *   mdast node.\n * @returns {ElementContent | Array}\n *   hast node.\n */\nexport function imageReference(state, node) {\n  const def = state.definition(node.identifier)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(def.url || ''), alt: node.alt}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Image} Image\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Image} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function image(state, node) {\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(node.url)}\n\n  if (node.alt !== null && node.alt !== undefined) {\n    properties.alt = node.alt\n  }\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {InlineCode} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function inlineCode(state, node) {\n  /** @type {Text} */\n  const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n  state.patch(node, text)\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'code',\n    properties: {},\n    children: [text]\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {LinkReference} node\n *   mdast node.\n * @returns {ElementContent | Array}\n *   hast node.\n */\nexport function linkReference(state, node) {\n  const def = state.definition(node.identifier)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(def.url || '')}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Link} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function link(state, node) {\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(node.url)}\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {List} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function list(state, node) {\n  /** @type {Properties} */\n  const properties = {}\n  const results = state.all(node)\n  let index = -1\n\n  if (typeof node.start === 'number' && node.start !== 1) {\n    properties.start = node.start\n  }\n\n  // Like GitHub, add a class for custom styling.\n  while (++index < results.length) {\n    const child = results[index]\n\n    if (\n      child.type === 'element' &&\n      child.tagName === 'li' &&\n      child.properties &&\n      Array.isArray(child.properties.className) &&\n      child.properties.className.includes('task-list-item')\n    ) {\n      properties.className = ['contains-task-list']\n      break\n    }\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: node.ordered ? 'ol' : 'ul',\n    properties,\n    children: state.wrap(results, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `paragraph` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Paragraph} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function paragraph(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'p',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `root` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastRoot} node\n *   mdast node.\n * @returns {HastRoot | HastElement}\n *   hast node.\n */\nexport function root(state, node) {\n  /** @type {HastRoot} */\n  const result = {type: 'root', children: state.wrap(state.all(node))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `strong` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Strong} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strong(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'strong',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Table} Table\n * @typedef {import('../state.js').State} State\n */\n\nimport {pointStart, pointEnd} from 'unist-util-position'\n\n/**\n * Turn an mdast `table` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Table} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function table(state, node) {\n  const rows = state.all(node)\n  const firstRow = rows.shift()\n  /** @type {Array} */\n  const tableContent = []\n\n  if (firstRow) {\n    /** @type {Element} */\n    const head = {\n      type: 'element',\n      tagName: 'thead',\n      properties: {},\n      children: state.wrap([firstRow], true)\n    }\n    state.patch(node.children[0], head)\n    tableContent.push(head)\n  }\n\n  if (rows.length > 0) {\n    /** @type {Element} */\n    const body = {\n      type: 'element',\n      tagName: 'tbody',\n      properties: {},\n      children: state.wrap(rows, true)\n    }\n\n    const start = pointStart(node.children[1])\n    const end = pointEnd(node.children[node.children.length - 1])\n    if (start.line && end.line) body.position = {start, end}\n    tableContent.push(body)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'table',\n    properties: {},\n    children: state.wrap(tableContent, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `tableCell` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableCell} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function tableCell(state, node) {\n  // Note: this function is normally not called: see `table-row` for how rows\n  // and their cells are compiled.\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'td', // Assume body cell.\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('mdast').Content} Content\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').TableRow} TableRow\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * @typedef {Root | Content} Nodes\n * @typedef {Extract} Parents\n */\n\n/**\n * Turn an mdast `tableRow` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableRow} node\n *   mdast node.\n * @param {Parents | null | undefined} parent\n *   Parent of `node`.\n * @returns {Element}\n *   hast node.\n */\nexport function tableRow(state, node, parent) {\n  const siblings = parent ? parent.children : undefined\n  // Generate a body row when without parent.\n  const rowIndex = siblings ? siblings.indexOf(node) : 1\n  const tagName = rowIndex === 0 ? 'th' : 'td'\n  const align = parent && parent.type === 'table' ? parent.align : undefined\n  const length = align ? align.length : node.children.length\n  let cellIndex = -1\n  /** @type {Array} */\n  const cells = []\n\n  while (++cellIndex < length) {\n    // Note: can also be undefined.\n    const cell = node.children[cellIndex]\n    /** @type {Properties} */\n    const properties = {}\n    const alignValue = align ? align[cellIndex] : undefined\n\n    if (alignValue) {\n      properties.align = alignValue\n    }\n\n    /** @type {Element} */\n    let result = {type: 'element', tagName, properties, children: []}\n\n    if (cell) {\n      result.children = state.all(cell)\n      state.patch(cell, result)\n      result = state.applyData(node, result)\n    }\n\n    cells.push(result)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'tr',\n    properties: {},\n    children: state.wrap(cells, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').Text} HastText\n * @typedef {import('mdast').Text} MdastText\n * @typedef {import('../state.js').State} State\n */\n\nimport {trimLines} from 'trim-lines'\n\n/**\n * Turn an mdast `text` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastText} node\n *   mdast node.\n * @returns {HastText | HastElement}\n *   hast node.\n */\nexport function text(state, node) {\n  /** @type {HastText} */\n  const result = {type: 'text', value: trimLines(String(node.value))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ThematicBreak} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function thematicBreak(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'hr',\n    properties: {},\n    children: []\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Content} HastContent\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Content} MdastContent\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Parent} MdastParent\n * @typedef {import('mdast').Root} MdastRoot\n */\n\n/**\n * @typedef {HastRoot | HastContent} HastNodes\n * @typedef {MdastRoot | MdastContent} MdastNodes\n * @typedef {Extract} MdastParents\n *\n * @typedef EmbeddedHastFields\n *   hast fields.\n * @property {string | null | undefined} [hName]\n *   Generate a specific element with this tag name instead.\n * @property {HastProperties | null | undefined} [hProperties]\n *   Generate an element with these properties instead.\n * @property {Array | null | undefined} [hChildren]\n *   Generate an element with this content instead.\n *\n * @typedef {Record & EmbeddedHastFields} MdastData\n *   mdast data with embedded hast fields.\n *\n * @typedef {MdastNodes & {data?: MdastData | null | undefined}} MdastNodeWithData\n *   mdast node with embedded hast data.\n *\n * @typedef PointLike\n *   Point-like value.\n * @property {number | null | undefined} [line]\n *   Line.\n * @property {number | null | undefined} [column]\n *   Column.\n * @property {number | null | undefined} [offset]\n *   Offset.\n *\n * @typedef PositionLike\n *   Position-like value.\n * @property {PointLike | null | undefined} [start]\n *   Point-like value.\n * @property {PointLike | null | undefined} [end]\n *   Point-like value.\n *\n * @callback Handler\n *   Handle a node.\n * @param {State} state\n *   Info passed around.\n * @param {any} node\n *   mdast node to handle.\n * @param {MdastParents | null | undefined} parent\n *   Parent of `node`.\n * @returns {HastElementContent | Array | null | undefined}\n *   hast node.\n *\n * @callback HFunctionProps\n *   Signature of `state` for when props are passed.\n * @param {MdastNodes | PositionLike | null | undefined} node\n *   mdast node or unist position.\n * @param {string} tagName\n *   HTML tag name.\n * @param {HastProperties} props\n *   Properties.\n * @param {Array | null | undefined} [children]\n *   hast content.\n * @returns {HastElement}\n *   Compiled element.\n *\n * @callback HFunctionNoProps\n *   Signature of `state` for when no props are passed.\n * @param {MdastNodes | PositionLike | null | undefined} node\n *   mdast node or unist position.\n * @param {string} tagName\n *   HTML tag name.\n * @param {Array | null | undefined} [children]\n *   hast content.\n * @returns {HastElement}\n *   Compiled element.\n *\n * @typedef HFields\n *   Info on `state`.\n * @property {boolean} dangerous\n *   Whether HTML is allowed.\n * @property {string} clobberPrefix\n *   Prefix to use to prevent DOM clobbering.\n * @property {string} footnoteLabel\n *   Label to use to introduce the footnote section.\n * @property {string} footnoteLabelTagName\n *   HTML used for the footnote label.\n * @property {HastProperties} footnoteLabelProperties\n *   Properties on the HTML tag used for the footnote label.\n * @property {string} footnoteBackLabel\n *   Label to use from backreferences back to their footnote call.\n * @property {(identifier: string) => MdastDefinition | null} definition\n *   Definition cache.\n * @property {Record} footnoteById\n *   Footnote definitions by their identifier.\n * @property {Array} footnoteOrder\n *   Identifiers of order when footnote calls first appear in tree order.\n * @property {Record} footnoteCounts\n *   Counts for how often the same footnote was called.\n * @property {Handlers} handlers\n *   Applied handlers.\n * @property {Handler} unknownHandler\n *   Handler for any none not in `passThrough` or otherwise handled.\n * @property {(from: MdastNodes, node: HastNodes) => void} patch\n *   Copy a node’s positional info.\n * @property {(from: MdastNodes, to: Type) => Type | HastElement} applyData\n *   Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {(node: MdastNodes, parent: MdastParents | null | undefined) => HastElementContent | Array | null | undefined} one\n *   Transform an mdast node to hast.\n * @property {(node: MdastNodes) => Array} all\n *   Transform the children of an mdast parent to hast.\n * @property {(nodes: Array, loose?: boolean | null | undefined) => Array} wrap\n *   Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n * @property {(left: MdastNodeWithData | PositionLike | null | undefined, right: HastElementContent) => HastElementContent} augment\n *   Like `state` but lower-level and usable on non-elements.\n *   Deprecated: use `patch` and `applyData`.\n * @property {Array} passThrough\n *   List of node types to pass through untouched (except for their children).\n *\n * @typedef Options\n *   Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n *   Whether to persist raw HTML in markdown in the hast tree.\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n *   Prefix to use before the `id` attribute on footnotes to prevent it from\n *   *clobbering*.\n * @property {string | null | undefined} [footnoteBackLabel='Back to content']\n *   Label to use from backreferences back to their footnote call (affects\n *   screen readers).\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n *   Label to use for the footnotes section (affects screen readers).\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n *   Properties to use on the footnote label (note that `id: 'footnote-label'`\n *   is always added as footnote calls use it with `aria-describedby` to\n *   provide an accessible label).\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n *   Tag name to use for the footnote label.\n * @property {Handlers | null | undefined} [handlers]\n *   Extra handlers for nodes.\n * @property {Array | null | undefined} [passThrough]\n *   List of custom mdast node types to pass through (keep) in hast (note that\n *   the node itself is passed, but eventual children are transformed).\n * @property {Handler | null | undefined} [unknownHandler]\n *   Handler for all unknown nodes.\n *\n * @typedef {Record} Handlers\n *   Handle nodes.\n *\n * @typedef {HFunctionProps & HFunctionNoProps & HFields} State\n *   Info passed around.\n */\n\nimport {visit} from 'unist-util-visit'\nimport {position, pointStart, pointEnd} from 'unist-util-position'\nimport {generated} from 'unist-util-generated'\nimport {definitions} from 'mdast-util-definitions'\nimport {handlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n *   mdast node to transform.\n * @param {Options | null | undefined} [options]\n *   Configuration.\n * @returns {State}\n *   `state` function.\n */\nexport function createState(tree, options) {\n  const settings = options || {}\n  const dangerous = settings.allowDangerousHtml || false\n  /** @type {Record} */\n  const footnoteById = {}\n\n  // To do: next major: add `options` to state, remove:\n  // `dangerous`, `clobberPrefix`, `footnoteLabel`, `footnoteLabelTagName`,\n  // `footnoteLabelProperties`, `footnoteBackLabel`, `passThrough`,\n  // `unknownHandler`.\n\n  // To do: next major: move to `state.options.allowDangerousHtml`.\n  state.dangerous = dangerous\n  // To do: next major: move to `state.options`.\n  state.clobberPrefix =\n    settings.clobberPrefix === undefined || settings.clobberPrefix === null\n      ? 'user-content-'\n      : settings.clobberPrefix\n  // To do: next major: move to `state.options`.\n  state.footnoteLabel = settings.footnoteLabel || 'Footnotes'\n  // To do: next major: move to `state.options`.\n  state.footnoteLabelTagName = settings.footnoteLabelTagName || 'h2'\n  // To do: next major: move to `state.options`.\n  state.footnoteLabelProperties = settings.footnoteLabelProperties || {\n    className: ['sr-only']\n  }\n  // To do: next major: move to `state.options`.\n  state.footnoteBackLabel = settings.footnoteBackLabel || 'Back to content'\n  // To do: next major: move to `state.options`.\n  state.unknownHandler = settings.unknownHandler\n  // To do: next major: move to `state.options`.\n  state.passThrough = settings.passThrough\n\n  state.handlers = {...handlers, ...settings.handlers}\n\n  // To do: next major: replace utility with `definitionById` object, so we\n  // only walk once (as we need footnotes too).\n  state.definition = definitions(tree)\n  state.footnoteById = footnoteById\n  /** @type {Array} */\n  state.footnoteOrder = []\n  /** @type {Record} */\n  state.footnoteCounts = {}\n\n  state.patch = patch\n  state.applyData = applyData\n  state.one = oneBound\n  state.all = allBound\n  state.wrap = wrap\n  // To do: next major: remove `augment`.\n  state.augment = augment\n\n  visit(tree, 'footnoteDefinition', (definition) => {\n    const id = String(definition.identifier).toUpperCase()\n\n    // Mimick CM behavior of link definitions.\n    // See: .\n    if (!own.call(footnoteById, id)) {\n      footnoteById[id] = definition\n    }\n  })\n\n  // @ts-expect-error Hush, it’s fine!\n  return state\n\n  /**\n   * Finalise the created `right`, a hast node, from `left`, an mdast node.\n   *\n   * @param {MdastNodeWithData | PositionLike | null | undefined} left\n   * @param {HastElementContent} right\n   * @returns {HastElementContent}\n   */\n  /* c8 ignore start */\n  // To do: next major: remove.\n  function augment(left, right) {\n    // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n    if (left && 'data' in left && left.data) {\n      /** @type {MdastData} */\n      const data = left.data\n\n      if (data.hName) {\n        if (right.type !== 'element') {\n          right = {\n            type: 'element',\n            tagName: '',\n            properties: {},\n            children: []\n          }\n        }\n\n        right.tagName = data.hName\n      }\n\n      if (right.type === 'element' && data.hProperties) {\n        right.properties = {...right.properties, ...data.hProperties}\n      }\n\n      if ('children' in right && right.children && data.hChildren) {\n        right.children = data.hChildren\n      }\n    }\n\n    if (left) {\n      const ctx = 'type' in left ? left : {position: left}\n\n      if (!generated(ctx)) {\n        // @ts-expect-error: fine.\n        right.position = {start: pointStart(ctx), end: pointEnd(ctx)}\n      }\n    }\n\n    return right\n  }\n  /* c8 ignore stop */\n\n  /**\n   * Create an element for `node`.\n   *\n   * @type {HFunctionProps}\n   */\n  /* c8 ignore start */\n  // To do: next major: remove.\n  function state(node, tagName, props, children) {\n    if (Array.isArray(props)) {\n      children = props\n      props = {}\n    }\n\n    // @ts-expect-error augmenting an element yields an element.\n    return augment(node, {\n      type: 'element',\n      tagName,\n      properties: props || {},\n      children: children || []\n    })\n  }\n  /* c8 ignore stop */\n\n  /**\n   * Transform an mdast node into a hast node.\n   *\n   * @param {MdastNodes} node\n   *   mdast node.\n   * @param {MdastParents | null | undefined} [parent]\n   *   Parent of `node`.\n   * @returns {HastElementContent | Array | null | undefined}\n   *   Resulting hast node.\n   */\n  function oneBound(node, parent) {\n    // @ts-expect-error: that’s a state :)\n    return one(state, node, parent)\n  }\n\n  /**\n   * Transform the children of an mdast node into hast nodes.\n   *\n   * @param {MdastNodes} parent\n   *   mdast node to compile\n   * @returns {Array}\n   *   Resulting hast nodes.\n   */\n  function allBound(parent) {\n    // @ts-expect-error: that’s a state :)\n    return all(state, parent)\n  }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n *   mdast node to copy from.\n * @param {HastNodes} to\n *   hast node to copy into.\n * @returns {void}\n *   Nothing.\n */\nfunction patch(from, to) {\n  if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n *   Node type.\n * @param {MdastNodes} from\n *   mdast node to use data from.\n * @param {Type} to\n *   hast node to change.\n * @returns {Type | HastElement}\n *   Nothing.\n */\nfunction applyData(from, to) {\n  /** @type {Type | HastElement} */\n  let result = to\n\n  // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n  if (from && from.data) {\n    const hName = from.data.hName\n    const hChildren = from.data.hChildren\n    const hProperties = from.data.hProperties\n\n    if (typeof hName === 'string') {\n      // Transforming the node resulted in an element with a different name\n      // than wanted:\n      if (result.type === 'element') {\n        result.tagName = hName\n      }\n      // Transforming the node resulted in a non-element, which happens for\n      // raw, text, and root nodes (unless custom handlers are passed).\n      // The intent is likely to keep the content around (otherwise: pass\n      // `hChildren`).\n      else {\n        result = {\n          type: 'element',\n          tagName: hName,\n          properties: {},\n          children: []\n        }\n\n        // To do: next major: take the children from the `root`, or inject the\n        // raw/text/comment or so into the element?\n        // if ('children' in node) {\n        //   // @ts-expect-error: assume `children` are allowed in elements.\n        //   result.children = node.children\n        // } else {\n        //   // @ts-expect-error: assume `node` is allowed in elements.\n        //   result.children.push(node)\n        // }\n      }\n    }\n\n    if (result.type === 'element' && hProperties) {\n      result.properties = {...result.properties, ...hProperties}\n    }\n\n    if (\n      'children' in result &&\n      result.children &&\n      hChildren !== null &&\n      hChildren !== undefined\n    ) {\n      // @ts-expect-error: assume valid children are defined.\n      result.children = hChildren\n    }\n  }\n\n  return result\n}\n\n/**\n * Transform an mdast node into a hast node.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} node\n *   mdast node.\n * @param {MdastParents | null | undefined} [parent]\n *   Parent of `node`.\n * @returns {HastElementContent | Array | null | undefined}\n *   Resulting hast node.\n */\n// To do: next major: do not expose, keep bound.\nexport function one(state, node, parent) {\n  const type = node && node.type\n\n  // Fail on non-nodes.\n  if (!type) {\n    throw new Error('Expected node, got `' + node + '`')\n  }\n\n  if (own.call(state.handlers, type)) {\n    return state.handlers[type](state, node, parent)\n  }\n\n  if (state.passThrough && state.passThrough.includes(type)) {\n    // To do: next major: deep clone.\n    // @ts-expect-error: types of passed through nodes are expected to be added manually.\n    return 'children' in node ? {...node, children: all(state, node)} : node\n  }\n\n  if (state.unknownHandler) {\n    return state.unknownHandler(state, node, parent)\n  }\n\n  return defaultUnknownHandler(state, node)\n}\n\n/**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} parent\n *   mdast node to compile\n * @returns {Array}\n *   Resulting hast nodes.\n */\n// To do: next major: do not expose, keep bound.\nexport function all(state, parent) {\n  /** @type {Array} */\n  const values = []\n\n  if ('children' in parent) {\n    const nodes = parent.children\n    let index = -1\n    while (++index < nodes.length) {\n      const result = one(state, nodes[index], parent)\n\n      // To do: see if we van clean this? Can we merge texts?\n      if (result) {\n        if (index && nodes[index - 1].type === 'break') {\n          if (!Array.isArray(result) && result.type === 'text') {\n            result.value = result.value.replace(/^\\s+/, '')\n          }\n\n          if (!Array.isArray(result) && result.type === 'element') {\n            const head = result.children[0]\n\n            if (head && head.type === 'text') {\n              head.value = head.value.replace(/^\\s+/, '')\n            }\n          }\n        }\n\n        if (Array.isArray(result)) {\n          values.push(...result)\n        } else {\n          values.push(result)\n        }\n      }\n    }\n  }\n\n  return values\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastNodes} node\n *   Unknown mdast node.\n * @returns {HastText | HastElement}\n *   Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n  const data = node.data || {}\n  /** @type {HastText | HastElement} */\n  const result =\n    'value' in node &&\n    !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n      ? {type: 'text', value: node.value}\n      : {\n          type: 'element',\n          tagName: 'div',\n          properties: {},\n          children: all(state, node)\n        }\n\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastContent} Type\n *   Node type.\n * @param {Array} nodes\n *   List of nodes to wrap.\n * @param {boolean | null | undefined} [loose=false]\n *   Whether to add line endings at start and end.\n * @returns {Array}\n *   Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n  /** @type {Array} */\n  const result = []\n  let index = -1\n\n  if (loose) {\n    result.push({type: 'text', value: '\\n'})\n  }\n\n  while (++index < nodes.length) {\n    if (index) result.push({type: 'text', value: '\\n'})\n    result.push(nodes[index])\n  }\n\n  if (loose && nodes.length > 0) {\n    result.push({type: 'text', value: '\\n'})\n  }\n\n  return result\n}\n","/**\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef NodeLike\n * @property {PositionLike | null | undefined} [position]\n */\n\n/**\n * Check if `node` is generated.\n *\n * @param {NodeLike | null | undefined} [node]\n *   Node to check.\n * @returns {boolean}\n *   Whether `node` is generated (does not have positional info).\n */\nexport function generated(node) {\n  return (\n    !node ||\n    !node.position ||\n    !node.position.start ||\n    !node.position.start.line ||\n    !node.position.start.column ||\n    !node.position.end ||\n    !node.position.end.line ||\n    !node.position.end.column\n  )\n}\n","/**\n * @typedef {import('hast').Content} HastContent\n * @typedef {import('hast').Root} HastRoot\n *\n * @typedef {import('mdast').Content} MdastContent\n * @typedef {import('mdast').Root} MdastRoot\n *\n * @typedef {import('./state.js').Options} Options\n */\n\n/**\n * @typedef {HastRoot | HastContent} HastNodes\n * @typedef {MdastRoot | MdastContent} MdastNodes\n */\n\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * *   `hast-util-to-html` also has an option `allowDangerousHtml` which will\n *     output the raw HTML.\n *     This is typically discouraged as noted by the option name but is useful\n *     if you completely trust authors\n * *   `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n *     into standard hast nodes (`element`, `text`, etc).\n *     This is a heavy task as it needs a full HTML parser, but it is the only\n *     way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * 

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {HastNodes | null | undefined}\n * hast tree.\n */\n// To do: next major: always return a single `root`.\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, null)\n const foot = footer(state)\n\n if (foot) {\n // @ts-expect-error If there’s a footer, there were definitions, meaning block\n // content.\n // So assume `node` is a parent node.\n node.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n // To do: next major: always return root?\n return Array.isArray(node) ? {type: 'root', children: node} : node\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('./state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\nexport function footer(state) {\n /** @type {Array} */\n const listItems = []\n let index = -1\n\n while (++index < state.footnoteOrder.length) {\n const def = state.footnoteById[state.footnoteOrder[index]]\n\n if (!def) {\n continue\n }\n\n const content = state.all(def)\n const id = String(def.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let referenceIndex = 0\n /** @type {Array} */\n const backReferences = []\n\n while (++referenceIndex <= state.footnoteCounts[id]) {\n /** @type {Element} */\n const backReference = {\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n state.clobberPrefix +\n 'fnref-' +\n safeId +\n (referenceIndex > 1 ? '-' + referenceIndex : ''),\n dataFootnoteBackref: true,\n className: ['data-footnote-backref'],\n ariaLabel: state.footnoteBackLabel\n },\n children: [{type: 'text', value: '↩'}]\n }\n\n if (referenceIndex > 1) {\n backReference.children.push({\n type: 'element',\n tagName: 'sup',\n children: [{type: 'text', value: String(referenceIndex)}]\n })\n }\n\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n backReferences.push(backReference)\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: state.clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(def, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: state.footnoteLabelTagName,\n properties: {\n // To do: use structured clone.\n ...JSON.parse(JSON.stringify(state.footnoteLabelProperties)),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: state.footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n","/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n *\n * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n// Note: the `` overload doesn’t seem to work :'(\n\n/**\n * Plugin that turns markdown into HTML to support rehype.\n *\n * * If a destination processor is given, that processor runs with a new HTML\n * (hast) tree (bridge-mode).\n * As the given processor runs with a hast tree, and rehype plugins support\n * hast, that means rehype plugins can be used with the given processor.\n * The hast tree is discarded in the end.\n * It’s highly unlikely that you want to do this.\n * * The common case is to not pass a destination processor, in which case the\n * current processor continues running with a new HTML (hast) tree\n * (mutate-mode).\n * As the current processor continues with a hast tree, and rehype plugins\n * support hast, that means rehype plugins can be used after\n * `remark-rehype`.\n * It’s likely that this is what you want to do.\n *\n * @param destination\n * Optional unified processor.\n * @param options\n * Options passed to `mdast-util-to-hast`.\n */\nconst remarkRehype =\n /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */\n (\n function (destination, options) {\n return destination && 'run' in destination\n ? bridge(destination, options)\n : mutate(destination || options)\n }\n )\n\nexport default remarkRehype\n\n/**\n * Bridge-mode.\n * Runs the destination with the new hast tree.\n *\n * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}\n */\nfunction bridge(destination, options) {\n return (node, file, next) => {\n destination.run(toHast(node, options), file, (error) => {\n next(error)\n })\n }\n}\n\n/**\n * Mutate-mode.\n * Further plugins run on the hast tree.\n *\n * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}\n */\nfunction mutate(options) {\n // @ts-expect-error: assume a corresponding node is returned by `toHast`.\n return (node) => toHast(node, options)\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n blocking: spaceSeparated,\n capture: null,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n fetchPriority: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inert: boolean,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeToggle: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n popover: null,\n popoverTarget: null,\n popoverTargetAction: null,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shadowRootClonable: boolean,\n shadowRootDelegatesFocus: boolean,\n shadowRootMode: null,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n writingSuggestions: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `
` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `