




"""simple docstring"""


import argparse


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


def  UpperCAmelCase__	(snake_case__							: Union[str, Any]   ):
  """simple docstring"""

  with open(snake_case__		,       encoding="""utf-8"""		,       newline="""\n"""   ) as f:
    _snake_case							:		str								=  f.readlines()
  _snake_case							:		Union[str, Any]								=  0

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


if __name__ == "__main__":
     A_ :    str      =    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__	(snake_case__							: int   ):
  """simple docstring"""

  _snake_case							:		Optional[Any]								=  (1 + 24 * n) ** 0.5
  return ((1 + root) / 6) % 1 == 0


def  UpperCAmelCase__	(snake_case__							: int = 50_00   ):
  """simple docstring"""

  _snake_case							:		List[str]								=  [(i * (3 * i - 1)) // 2 for i in range(1		,       snake_case__   )]
  for i, pentagonal_i in enumerate(snake_case__   ):
    for j in range(snake_case__		,       len(snake_case__   )   ):
      _snake_case							:		Dict								=  pentagonal_nums[j]
      _snake_case							:		Optional[Any]								=  pentagonal_i + pentagonal_j
      _snake_case							:		List[str]								=  pentagonal_j - pentagonal_i
      if is_pentagonal(snake_case__   ) and is_pentagonal(snake_case__   ):
        return b

  return -1


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


