e!4SSKrSSKrSSKrSSKrSSKrSSKrSSKr/SQrSr\RRS5(aSr O\R"5r "SS\ 5r\RS5rS rSS jrSS jrS rSS jr\S:Xa\"5 gg)N) ZipAppErrorcreate_archiveget_interpreterz8# -*- coding: utf-8 -*- import {module} {module}.{fn}() winutf-8c\rSrSrSrg)r!N)__name__ __module__ __qualname____firstlineno____static_attributes__r ,/opt/imh/python3.13/lib/python3.13/zipapp.pyrr!srrc## [U[[R45(a[ X5nUv SSS5 gUv g!,(df  g=f7fN) isinstancestrosPathLikeopen)archivemodefs r _maybe_openr%sA'C-.. ' AG!  ! s1AAA AAclU(a-SUR[5-S-nURU5 gg)zWrite a shebang line.#! N)encodeshebang_encodingwrite)r interpretershebangs r_write_file_prefixr%.s1+,,-=>>F rc[US5nURS5nUS:XaSnUR5 [US5n[XR5 UR U5 [ R "X55 SSS5 SSS5 U(a][U[5(aG[R"U[R"U5R[R-5 ggg!,(df  N{=f!,(df  N=f)z8Copy an application archive, modifying the shebang line.rbrrwbN)rreadreadliner%r"shutil copyfileobjrrrchmodstatst_modeS_IEXEC)r new_archiver#srcfirst_2dsts r _copy_archiver65s Wd #s((1+ e G LLN d +s s 0 IIg    s ( , $"z+s33 bggk2::T\\IJ4{, + $ #s#6C<3C+6C<+ C9 5C<< D c:Sn[US5(a[US5(aSnO-[R"U5nUR5(aSnU(a [ XU5 gUR 5(d [ S5eUS- R5nU(aU(a [ S5eU(dU(d [ S 5eSnU(aURS 5upn [S U RS 555n [S U RS 555n U S :XaU (aU (d[ SU-5e[RXS9nUcURS5nO'[US5(d[R"U5n[URS55nX;a[ SUS35e[US5n[!X5 U(a["R$O["R&n["R("USUS9nUHFnUR+U5nUbU"U5(dM&UR-UUR/55 MH U(a!UR1SUR3S55 SSS5 SSS5 U(aM[US5(d;UR5UR75R8[6R:-5 ggg!,(df  Nk=f!,(df  Nt=f)a*Create an application archive from SOURCE. The SOURCE can be the name of a directory, or a filename or a file-like object referring to an existing archive. The content of SOURCE is packed into an application archive in TARGET, which can be a filename or a file-like object. If SOURCE is a directory, TARGET can be omitted and will default to the name of SOURCE with .pyz appended. The created application archive will have a shebang line specifying that it should run with INTERPRETER (there will be no shebang line if INTERPRETER is None), and a __main__.py which runs MAIN (if MAIN is not specified, an existing __main__.py will be used). It is an error to specify MAIN for anything other than a directory source with no __main__.py, and it is an error to omit MAIN if the directory has no __main__.py. Fr*r+TNzSource does not existz __main__.pyz8Cannot specify entry point if the source has __main__.pyzArchive has no entry point:c3@# UHoR5v M g7fr isidentifier.0parts r !create_archive..{sD^T&&((^.c3@# UHoR5v M g7frr:r<s rr?r@|sBMD%%''MrAzInvalid entry point: )modulefnz.pyzr"*zThe target archive z$ overwrites one of the source files.r)w) compressionr)hasattrpathlibPathis_filer6existsr partitionallsplit MAIN_TEMPLATEformat with_suffixsortedrglobrr%zipfile ZIP_DEFLATED ZIP_STOREDZipFile relative_tor"as_posixwritestrr r.r/r0r1)sourcetargetr#mainfilter compressedsource_is_filehas_mainmain_pymodseprEmod_okfn_ok files_to_addfdrHzchildarcnames rrrLs}*Nvv76:#>#>f% >>  !Nfk2 ==??122&//1H  FH H H677G ~~c* "DSYYs^DDBBHHSMBBs v%5<= =&&c&9 ~##F+ VW % %f% &,,s+,L !&)M NP P VT "b2+/9w++))  __R+ >!%++F3>VG__GGE7#3#3#56& ='..*AB ? #76733 V[[]**T\\9:4{? > # "s,A L !%K; A K;L ; L L  Lc[US5nURS5S:Xa:UR5R5R [ 5sSSS5 $SSS5 g!,(df  g=f)Nr'r(r)rr*r+stripdecoder!)rrs rrrsS Wd #q 66!9 ::<%%'../?@ $ #  $ # #s AA'' A5cbSSKnUR5nURSSSSS9 URSSSS S9 URS S SS S9 URS SSSS9 URSSSSS9 URSSS9 URU5nUR(a[ R RUR5(d [S5e[UR5n[SRU=(d S55 [R"S5 [ R RUR5(aURbg[ R R!UR5(aD[ R R#URUR5(a [S5eUR$(a [S5e['URURUR(UR$UR*S9 g)zRun the zipapp command line interface. The ARGS parameter lets you specify the argument list directly. Omitting ARGS (or setting it to None) works as for argparse, using sys.argv[1:] as the argument list. rNz--outputz-ozAThe name of the output archive. Required if SOURCE is an archive.)defaulthelpz--pythonz-pzEThe name of the Python interpreter to use (default: no shebang line).z--mainz-mzLThe main function of the application (default: use an existing __main__.py).z --compressz-c store_truezQCompress files with the deflate method. Files are stored uncompressed by default.)actionrsz--infoFz)Display the interpreter from the archive.)rrrursr]z'Source directory (or existing archive).)rsz%Can only get info for an archive filezInterpreter: {}zz-In-place editing of archives is not supportedz,Cannot change the main function when copying)r#r_ra)argparseArgumentParser add_argument parse_argsinforpathisfiler] SystemExitrprintrRsysexitoutputrMsamefiler_rpythoncompress)argsrvparserr#s rr_r_s  $ $ &F  D$56  D$/0 $;<  d<=> % <> :<   T "D yyww~~dkk**DE E%dkk2  &&{'>h?@   ww~~dkk"" ;; 277>>$++#>#>#%77#3#3DKK#M#MLM M 99KL L4;; #{{"mm-r__main__r)NNNNF) contextlibrrJr,r/rrV__all__rQplatform startswithr!getfilesystemencoding ValueErrorrcontextmanagerrr%r6rrr_r r rrrs   > <<5!!002 *  K.@D+0^;BA .-b zFr