


'''simple docstring'''



import argparse


__A		='docs/source/_static/js/custom.js'







def       _UpperCamelCase (						UpperCamelCase__   ):
			with open(UpperCamelCase__	, encoding="""utf-8"""	, newline="""\n"""   ) as f:
						UpperCAmelCase__					:   str       				=       f.readlines()
			UpperCAmelCase__					:   Any       				=       0

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


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



'''simple docstring'''



def       _UpperCamelCase (						UpperCamelCase__ = 4_0_0_0_0_0_0   ):
			UpperCAmelCase__					:   List[str]       				=       [0, 1]
			UpperCAmelCase__					:   Any       				=       0
			while fib[i] <= n:
						fib.append(fib[i] + fib[i + 1]   )
						if fib[i + 2] > n:
									break
						i += 1
			UpperCAmelCase__					:   str       				=       0
			for j in range(len(UpperCamelCase__   ) - 1   ):
						if fib[j] % 2 == 0:
									total += fib[j]

			return total


if __name__ == "__main__":
		print(f"""{solution() = }""")