






import argparse


lowercase_          =		"""docs/source/_static/js/custom.js"""




def       __UpperCamelCase  (_SCREAMING_SNAKE_CASE		)    ->       List[str]:
  with open(__snake_case		,						encoding='utf-8'		,						newline='\n'		) as f:
    lowercase__           =  f.readlines()
  lowercase__           =  0

  # First let's put the right version
  while not lines[index].startswith('const stableVersion ='		):
    index += 1
  lowercase__           =  F"""const stableVersion = \"v{version}\"\n"""

  # Then update the dictionary
  while not lines[index].startswith('const versionMapping = {'		):
    index += 1

  # We go until the end
  while not lines[index].startswith('}'		):
    index += 1
  # We add the new version at the end
  lines[index - 1] += F"""    \"v{version}\": \"v{version}\",\n"""

  with open(__snake_case		,						'w'		,						encoding='utf-8'		,						newline='\n'		) as f:
    f.writelines(__snake_case		)


if __name__ == "__main__":
      lowercase_          =		argparse.ArgumentParser()
      parser.add_argument("""--version""", help="""Release version.""")
      lowercase_          =		parser.parse_args()
      update_custom_js(args.version)









from typing import TYPE_CHECKING

from ..utils import _LazyModule


lowercase_          =		{
    """config""": [
        """EXTERNAL_DATA_FORMAT_SIZE_LIMIT""",
        """OnnxConfig""",
        """OnnxConfigWithPast""",
        """OnnxSeq2SeqConfigWithPast""",
        """PatchingSpec""",
    ],
    """convert""": ["""export""", """validate_model_outputs"""],
    """features""": ["""FeaturesManager"""],
    """utils""": ["""ParameterFormat""", """compute_serialized_parameters_size"""],
}


if TYPE_CHECKING:
      from .config import (
          EXTERNAL_DATA_FORMAT_SIZE_LIMIT,
          OnnxConfig,
          OnnxConfigWithPast,
          OnnxSeqaSeqConfigWithPast,
          PatchingSpec,
      )
      from .convert import export, validate_model_outputs
      from .features import FeaturesManager
      from .utils import ParameterFormat, compute_serialized_parameters_size

else:
      import sys

      lowercase_          =		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


