
'''simple docstring'''






import argparse


__A	:	Optional[int]     =     'docs/source/_static/js/custom.js'





def      UpperCAmelCase      (		lowerCamelCase_  :Union[str, Any] ):







		'''simple docstring'''
		with open(lowerCamelCase_				,      encoding="""utf-8"""				,      newline="""\n""" ) as f:
				snake_case_		:							Union[str, Any]			       =						f.readlines()
		snake_case_		:							Dict			       =						0

		# First let's put the right version
		while not lines[index].startswith("""const stableVersion =""" ):
				index += 1
		snake_case_		:							Any			       =						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(lowerCamelCase_				,      """w"""				,      encoding="""utf-8"""				,      newline="""\n""" ) as f:
				f.writelines(lowerCamelCase_ )


if __name__ == "__main__":
							__A	:	Any     =     argparse.ArgumentParser()
							parser.add_argument('--version', help='Release version.')
							__A	:	Union[str, Any]     =     parser.parse_args()
							update_custom_js(args.version)



'''simple docstring'''






def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''
		if num < 0:
				return False

		snake_case_		:							int			       =						num
		snake_case_		:							int			       =						0
		while num > 0:
				snake_case_		:							Tuple			       =						rev_num * 10 + (num % 10)
				num //= 10

		return num_copy == rev_num


if __name__ == "__main__":
							import doctest

							doctest.testmod()